1/******************************************************************************* 2 * Copyright 2020 Adobe 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 ******************************************************************************/ 16(function() { 17 "use strict"; 18 19 var NS = "cmp"; 20 var IS = "pdfviewer"; 21 var SDK_URL = "https://documentcloud.adobe.com/view-sdk/main.js"; 22 var SDK_READY_EVENT = "adobe_dc_view_sdk.ready"; 23 24 var selectors = { 25 self: "[data-" + NS + '-is="' + IS + '"]', 26 sdkScript: 'script[src="' + SDK_URL + '"]' 27 }; 28 29 function initSDK() { 30 var sdkIncluded = document.querySelectorAll(selectors.sdkScript).length > 0; 31 if (!window.adobe_dc_view_sdk && !sdkIncluded) { 32 var dcv = document.createElement("script"); 33 dcv.type = "text/javascript"; 34 dcv.src = SDK_URL; 35 document.body.appendChild(dcv); 36 } 37 } 38 39 function previewPdf(component) { 40 // prevents multiple initialization 41 component.removeAttribute("data-" + NS + "-is"); 42 43 // add the view sdk to the page 44 initSDK(); 45 46 // manage the preview 47 if (component.dataset && component.id) { 48 if (window.AdobeDC && window.AdobeDC.View) { 49 dcView(component); 50 } else { 51 document.addEventListener(SDK_READY_EVENT, function() { 52 dcView(component); 53 }); 54 } 55 } 56 } 57 58 function viewSettings(component){ 59 if(component.dataset.isAuthorized === 'true') { 60 return JSON.parse(component.dataset.cmpViewerConfigJson) 61 } else { 62 var settings = JSON.parse(component.dataset.cmpViewerConfigJson); 63 settings.showDownloadPDF = false; 64 settings.showPrintPDF = false; 65 return settings; 66 } 67 } 68 69 function dcView(component) { 70 var adobeDCView = new window.AdobeDC.View({ 71 clientId: component.dataset.cmpClientId, 72 divId: component.id + "-content", 73 reportSuiteId: component.dataset.cmpReportSuiteId 74 }); 75 var pdfViewSettings = viewSettings(component); 76 adobeDCView.previewFile({ 77 content: { location: { url: component.dataset.cmpDocumentPath } }, 78 metaData: { fileName: component.dataset.cmpDocumentFileName } 79 }, pdfViewSettings) 80 .then(adobeViewer => { 81 adobeViewer.getAPIs().then(apis => { 82 const hash = location.hash; 83 const param = new URL(location).searchParams; 84 const bookmarkTitle = param.get("bm"); 85 let destination = ""; 86 if(bookmarkTitle) destination = bookmarkTitle; 87 switch(hash) { 88 case '#fukusayo': 89 destination = 'å¯ä½ç¨'; 90 break; 91 case '#sougosayo': 92 destination = 'ç¸äºä½ç¨'; 93 break; 94 default: 95 } 96 if (destination) { 97 apis.getBookmarkAPIs() 98 .getBookmarks() 99 .then(result => { 100 const val = findBookmarkWithTitle(result, destination); 101 if (val) apis.getBookmarkAPIs().openBookmark(val.id); 102 }) 103 .catch(error => console.log(error)); 104 } 105 }); 106 }); 107 } 108 109 110 function findBookmarkWithTitle(array, title) { 111 let result; 112 for (let object of array) { 113 if (object.title.includes(title)) result = object; 114 if (result) { 115 break; 116 } else if (object.children instanceof Array) { 117 result = findBookmarkWithTitle(object.children, title); 118 } 119 } 120 return result; 121 } 122 123 /** 124 * Document ready handler and DOM mutation observers. Initializes Accordion components as necessary. 125 * 126 * @private 127 */ 128 function onDocumentReady() { 129 var elements = document.querySelectorAll(selectors.self); 130 for (var i = 0; i < elements.length; i++) { 131 previewPdf(elements[i]); 132 } 133 134 var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; 135 var body = document.querySelector("body"); 136 var observer = new MutationObserver(function(mutations) { 137 mutations.forEach(function(mutation) { 138 // needed for IE 139 var nodesArray = [].slice.call(mutation.addedNodes); 140 if (nodesArray.length > 0) { 141 nodesArray.forEach(function(addedNode) { 142 if (addedNode.querySelectorAll) { 143 var elementsArray = [].slice.call(addedNode.querySelectorAll(selectors.self)); 144 elementsArray.forEach(function(element) { 145 previewPdf(element); 146 }); 147 } 148 }); 149 } 150 }); 151 }); 152 153 observer.observe(body, { 154 subtree: true, 155 childList: true, 156 characterData: true 157 }); 158 159 } 160 161 if (document.readyState !== "loading") { 162 onDocumentReady(); 163 } else { 164 document.addEventListener("DOMContentLoaded", onDocumentReady); 165 } 166}()); 167 168 169 170(function() { 171 var qaLink; 172 var table = document.querySelector(".cmp-productmap-table"); 173 if (table) { 174 var index = -1; 175 var ths = table.querySelectorAll("th"); 176 var tds = table.querySelectorAll("td"); 177 for (var i = 0; i < ths.length; i++) { 178 if (ths[i].textContent == "製åï¼±ï¼ï¼¡") { 179 index = i; 180 break; 181 } 182 } 183 var td = tds[index]; 184 if (td) { 185 qaLink = td.querySelector("a").getAttribute("href"); 186 } 187 } 188 if (qaLink) { 189 var buttonRoot = document.querySelector('.pdfviewer .button'); 190 var wrapper = document.createElement("span"); 191 var anchor = document.createElement("a"); 192 wrapper.id = "pdfviewer-qa-button-wrapper"; 193 anchor.className = "cmp-button"; 194 anchor.id = "pdfviewer-qa-button"; 195 anchor.innerHTML = '<span class="cmp-button__text">
195製åQ&A</span>'; 196 anchor.setAttribute("href", qaLink); 197 wrapper.appendChild(anchor); 198 buttonRoot.appendChild(wrapper); 199 200 var children = buttonRoot.children; 201 202 if (children.length >= 1) { 203 buttonRoot.insertBefore(wrapper, children[2]); 204 } else { 205 buttonRoot.appendChild(wrapper); 206 } 207 } 208 209 210})(); 211 212/******************************************************************************* 213 * Copyright 2020 Adobe 214 * 215 * Licensed under the Apache License, Version 2.0 (the "License"); 216 * you may not use this file except in compliance with the License. 217 * You may obtain a copy of the License at 218 * 219 * http://www.apache.org/licenses/LICENSE-2.0 220 * 221 * Unless required by applicable law or agreed to in writing, software 222 * distributed under the License is distributed on an "AS IS" BASIS, 223 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 224 * See the License for the specific language governing permissions and 225 * limitations under the License. 226 ******************************************************************************/ 227(function() { 228 "use strict"; 229 230 var NS = "cmp"; 231 var IS = "pdfviewer"; 232 var SDK_URL = "https://documentservices.adobe.com/view-sdk/viewer.js"; 233 var SDK_READY_EVENT = "adobe_dc_view_sdk.ready"; 234 235 var selectors = { 236 self: "[data-" + NS + '-is="' + IS + '"]', 237 sdkScript: 'script[src="' + SDK_URL + '"]' 238 }; 239 240 function initSDK() { 241 var sdkIncluded = document.querySelectorAll(selectors.sdkScript).length > 0; 242 if (!window.adobe_dc_view_sdk && !sdkIncluded) { 243 var dcv = document.createElement("script"); 244 dcv.type = "text/javascript"; 245 dcv.src = SDK_URL; 246 document.body.appendChild(dcv); 247 } 248 } 249 250 function previewPdf(component) { 251 // prevents multiple initialization 252 component.removeAttribute("data-" + NS + "-is"); 253 254 // add the view sdk to the page 255 initSDK(); 256 257 // manage the preview 258 if (component.dataset && component.id) { 259 if (window.AdobeDC && window.AdobeDC.View) { 260 dcView(component); 261 } else { 262 document.addEventListener(SDK_READY_EVENT, function() { 263 dcView(component); 264 }); 265 } 266 } 267 } 268 269 function dcView(component) { 270 var adobeDCView = new window.AdobeDC.View({ 271 clientId: component.dataset.cmpClientId, 272 divId: component.id + "-content", 273 reportSuiteId: component.dataset.cmpReportSuiteId 274 }); 275 adobeDCView.previewFile({ 276 content: { location: { url: component.dataset.cmpDocumentPath } }, 277 metaData: { fileName: component.dataset.cmpDocumentFileName } 278 }, JSON.parse(component.dataset.cmpViewerConfigJson)); 279 } 280 281 /** 282 * Document ready handler and DOM mutation observers. Initializes Accordion components as necessary. 283 * 284 * @private 285 */ 286 function onDocumentReady() { 287 var elements = document.querySelectorAll(selectors.self); 288 for (var i = 0; i < elements.length; i++) { 289 previewPdf(elements[i]); 290 } 291 292 var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; 293 var body = document.querySelector("body"); 294 var observer = new MutationObserver(function(mutations) { 295 mutations.forEach(function(mutation) { 296 // needed for IE 297 var nodesArray = [].slice.call(mutation.addedNodes); 298 if (nodesArray.length > 0) { 299 nodesArray.forEach(function(addedNode) { 300 if (addedNode.querySelectorAll) { 301 var elementsArray = [].slice.call(addedNode.querySelectorAll(selectors.self)); 302 elementsArray.forEach(function(element) { 303 previewPdf(element); 304 }); 305 } 306 }); 307 } 308 }); 309 }); 310 311 observer.observe(body, { 312 subtree: true, 313 childList: true, 314 characterData: true 315 }); 316 317 } 318 319 if (document.readyState !== "loading") { 320 onDocumentReady(); 321 } else { 322 document.addEventListener("DOMContentLoaded", onDocumentReady); 323 } 324}()); 325 326/* ========== PDF VIEWER ANALYTICS TRACKING (DATALAYER) ========== */ 327(function() { 328 "use strict"; 329 330 /* ========== DATA LAYER PUSH ========== */ 331 function pushToDataLayer(state, action, userInitiated) { 332 window.adobeDataLayer = window.adobeDataLayer || []; 333 var eventData = { 334 event: "pdfViewerEvent", 335 pdfViewer: { 336 name: state.pdfName, 337 action: action, 338 currentPage: state.currentPage, 339 maxPageReached: state.maxPageReached, 340 totalPages: state.totalPages, 341 userInitiated: userInitiated 342 } 343 }; 344 window.adobeDataLayer.push(eventData); 345 } 346 347 /* ========== FETCH TOTAL PAGES FROM PDF BINARY ========== */ 348 function fetchPDFPageCount(pdfUrl, state) { 349 if (!pdfUrl || state.totalPages > 0) return; 350 351 var xhr = new XMLHttpRequest(); 352 xhr.open("GET", pdfUrl, true); 353 xhr.responseType = "arraybuffer"; 354 xhr.onload = function() { 355 if (xhr.status === 200 || xhr.status === 206) { 356 try { 357 var bytes = new Uint8Array(xhr.response); 358 var totalFound = 0; 359 360 // Strategy 1: Linearized PDF header â /Linearized ... /N 13 361 var headerEnd = Math.min(bytes.length, 10240); 362 var header = ""; 363 for (var h = 0; h < headerEnd; h++) { 364 header += String.fromCharCode(bytes[h]); 365 } 366 var linearMatch = header.match(/\/Linearized[\s\S]{0,200}\/N\s+(\d+)/); 367 if (linearMatch) { 368 totalFound = parseInt(linearMatch[1], 10); 369 } 370 371 // Strategy 2: Scan last 100KB for /Count 372 if (totalFound === 0) { 373 var scanStart = Math.max(0, bytes.length - 102400); 374 var chunk = ""; 375 for (var i = scanStart; i < bytes.length; i++) { 376 chunk += String.fromCharCode(bytes[i]); 377 } 378 totalFound = extractMaxCount(chunk); 379 } 380 381 // Strategy 3: Scan first 100KB for /Count 382 if (totalFound === 0) { 383 var scanEnd = Math.min(bytes.length, 102400); 384 var frontChunk = ""; 385 for (var j = 0; j < scanEnd; j++) { 386 frontChunk += String.fromCharCode(bytes[j]); 387 } 388 totalFound = extractMaxCount(frontChunk); 389 } 390 391 // Strategy 4: Full file scan (< 10MB) 392 if (totalFound === 0 && bytes.length < 10485760) { 393 var fullText = ""; 394 for (var k = 0; k < bytes.length; k++) { 395 fullText += String.fromCharCode(bytes[k]); 396 } 397 totalFound = extractMaxCount(fullText); 398 399 // Strategy 5: Count /Type /Page occurrences 400 if (totalFound === 0) { 401 var pageMatches = fullText.match(/\/Type\s*\/Page(?!\s*s)/g); 402 if (pageMatches) { 403 totalFound = pageMatches.length; 404 } 405 } 406 } 407 408 if (totalFound > 0 && totalFound < 10000) { 409 state.totalPages = totalFound; 410 } else { 411 pollDOMForPageCount(state); 412 } 413 } catch (e) { 414 pollDOMForPageCount(state); 415 } 416 } else { 417 pollDOMForPageCount(state); 418 } 419 }; 420 xhr.onerror = function() { 421 pollDOMForPageCount(state); 422 }; 423 xhr.send(); 424 } 425 426 function extractMaxCount(text) { 427 var matches = text.match(/\/Count\s+(\d+)/g); 428 if (!matches) return 0; 429 var maxCount = 0; 430 for (var i = 0; i < matches.length; i++) { 431 var num = parseInt(matches[i].replace(/\/Count\s+/, ""), 10); 432 if (num > maxCount && num < 10000) maxCount = num; 433 } 434 return maxCount; 435 } 436 437 /* ========== DOM POLLING FALLBACK ========== */ 438 function pollDOMForPageCount(state) { 439 var pollCount = 0; 440 var pollInterval = setInterval(function() { 441 pollCount++; 442 if (state.totalPages > 0 || pollCount >= 20) { 443 clearInterval(pollInterval); 444 return; 445 } 446 try { 447 // Check for "of N" or "/ N" pattern in small text elements 448 document.querySelectorAll('span, div, p').forEach(function(el) { 449 var txt = el.textContent.trim(); 450 if (txt.length < 20 && state.totalPages === 0) { 451 var ofMatch = txt.match(/(?:\/|of)\s*(\d+)/i); 452 if (ofMatch) { 453 var n = parseInt(ofMatch[1], 10); 454 if (n > 1 && n < 10000) { 455 state.totalPages = n; 456 } 457 } 458 } 459 }); 460 } catch (e) { 461 // ignore 462 } 463 }, 2000); 464 } 465 466 /* ========== WRAP AdobeDC.View ========== */ 467 var isWrapped = false;
468 469 function wrapAdobeDCView() { 470 if (isWrapped) return; 471 if (!window.AdobeDC || !window.AdobeDC.View) return; 472 isWrapped = true; 473 474 var OriginalView = window.AdobeDC.View; 475 476 window.AdobeDC.View = function(config) { 477 var instance = new OriginalView(config); 478 479 var state = { 480 totalPages: 0, 481 currentPage: 1, 482 maxPageReached: 1, 483 isViewerVisible: false, 484 initialLoadDone: false, 485 pdfName: "Unknown PDF", 486 pdfUrl: "" 487 }; 488 489 // Register callback BEFORE previewFile 490 try { 491 instance.registerCallback( 492 OriginalView.Enum.CallbackType.EVENT_LISTENER, 493 function(event) { 494 switch (event.type) { 495 case "PAGE_VIEW": 496 state.currentPage = event.data.pageNumber; 497 if (event.data.pageNumber > state.maxPageReached) { 498 state.maxPageReached = event.data.pageNumber; 499 } 500 pushToDataLayer(state, "PAGE_VIEW", state.initialLoadDone); 501 break; 502 503 case "DOCUMENT_OPEN": 504 state.initialLoadDone = true; 505 pushToDataLayer(state, "DOCUMENT_OPEN", false); 506 break; 507 508 case "DOCUMENT_DOWNLOAD": 509 pushToDataLayer(state, "DOCUMENT_DOWNLOAD", true); 510 break; 511 512 case "DOCUMENT_PRINT": 513 pushToDataLayer(state, "DOCUMENT_PRINT", true); 514 break; 515 516 case "ZOOM_LEVEL": 517 var zoomPct = event.data && event.data.zoomLevel 518 ? Math.round(event.data.zoomLevel * 100) + "%" 519 : ""; 520 pushToDataLayer(state, "ZOOM_LEVEL " + zoomPct, state.isViewerVisible); 521 break; 522 523 default: 524 break; 525 } 526 }, 527 { enablePDFAnalytics: true } 528 ); 529 } catch (e) { 530 } 531 532 // Wrap previewFile 533 var origPreviewFile = instance.previewFile.bind(instance); 534 instance.previewFile = function(fileInfo, viewerConfig) { 535 if (fileInfo && fileInfo.metaData && fileInfo.metaData.fileName) { 536 state.pdfName = fileInfo.metaData.fileName; 537 } 538 if (fileInfo && fileInfo.content && fileInfo.content.location && fileInfo.content.location.url) { 539 state.pdfUrl = fileInfo.content.location.url; 540 } 541 fetchPDFPageCount(state.pdfUrl, state); 542 return origPreviewFile(fileInfo, viewerConfig); 543 }; 544 545 // IntersectionObserver for viewport 546 if (config.divId) { 547 var el = document.getElementById(config.divId); 548 if (el) { 549 new IntersectionObserver(function(entries) { 550 entries.forEach(function(entry) { 551 if (entry.isIntersecting && !state.isViewerVisible) { 552 state.isViewerVisible = true; 553 pushToDataLayer(state, "VIEWPORT_VIEW", true); 554 } 555 }); 556 }, { threshold: 0.5 }).observe(el); 557 } 558 } 559 560 return instance; 561 }; 562 563 window.AdobeDC.View.Enum = OriginalView.Enum; 564 window.AdobeDC.View.prototype = OriginalView.prototype; 565 } 566 567 /* ========== INSTALL INTERCEPTOR ========== */ 568 if (window.AdobeDC && window.AdobeDC.View) { 569 wrapAdobeDCView(); 570 } else { 571 var _storedAdobeDC = window.AdobeDC; 572 try { 573 Object.defineProperty(window, "AdobeDC", { 574 get: function() { return _storedAdobeDC; }, 575 set: function(val) { 576 _storedAdobeDC = val; 577 if (val && val.View) { 578 wrapAdobeDCView(); 579 } 580 }, 581 configurable: true, 582 enumerable: true 583 }); 584 } catch (e) { 585 console.warn("=== defineProperty failed ===", e); 586 } 587 588 document.addEventListener("adobe_dc_view_sdk.ready", function() { 589 if (!isWrapped && _storedAdobeDC && _storedAdobeDC.View) { 590 wrapAdobeDCView(); 591 } 592 }); 593 } 594 595}()); 596/******************************************************************************* 597 * Copyright 2020 Adobe 598 * 599 * Licensed under the Apache License, Version 2.0 (the "License");
600 * you may not use this file except in compliance with the License. 601 * You may obtain a copy of the License at 602 * 603 * http://www.apache.org/licenses/LICENSE-2.0 604 * 605 * Unless required by applicable law or agreed to in writing, software 606 * distributed under the License is distributed on an "AS IS" BASIS, 607 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 608 * See the License for the specific language governing permissions and 609 * limitations under the License. 610 ******************************************************************************/ 611(function() { 612 "use strict"; 613 614 var NS = "cmp"; 615 var IS = "pdfviewer"; 616 var SDK_URL = "https://acrobatservices.adobe.com/view-sdk/viewer.js"; 617 var SDK_READY_EVENT = "adobe_dc_view_sdk.ready"; 618 619 var selectors = { 620 self: "[data-" + NS + '-is="' + IS + '"]', 621 sdkScript: 'script[src="' + SDK_URL + '"]' 622 }; 623 624 function initSDK() { 625 var sdkIncluded = document.querySelectorAll(selectors.sdkScript).length > 0; 626 if (!window.adobe_dc_view_sdk && !sdkIncluded) { 627 var dcv = document.createElement("script"); 628 dcv.type = "text/javascript"; 629 dcv.src = SDK_URL; 630 document.body.appendChild(dcv); 631 } 632 } 633 634 function previewPdf(component) { 635 // prevents multiple initialization 636 component.removeAttribute("data-" + NS + "-is"); 637 638 // add the view sdk to the page 639 initSDK(); 640 641 // manage the preview 642 if (component.dataset && component.id) { 643 if (window.AdobeDC && window.AdobeDC.View) { 644 dcView(component); 645 } else { 646 document.addEventListener(SDK_READY_EVENT, function() { 647 dcView(component); 648 }); 649 } 650 } 651 } 652 653 function dcView(component) { 654 var adobeDCView = new window.AdobeDC.View({ 655 clientId: component.dataset.cmpClientId, 656 divId: component.id + "-content", 657 reportSuiteId: component.dataset.cmpReportSuiteId, 658 locale: typeof Granite !== "undefined" && Granite && Granite.I18n ? Granite.I18n.getLocale() : navigator.language || navigator.userLanguage 659 }); 660 adobeDCView.previewFile({ 661 content: { location: { url: component.dataset.cmpDocumentPath } }, 662 metaData: { fileName: component.dataset.cmpDocumentFileName } 663 }, JSON.parse(component.dataset.cmpViewerConfigJson)); 664 } 665 666 /** 667 * Document ready handler and DOM mutation observers. Initializes Accordion components as necessary. 668 * 669 * @private 670 */ 671 function onDocumentReady() { 672 var elements = document.querySelectorAll(selectors.self); 673 for (var i = 0; i < elements.length; i++) { 674 previewPdf(elements[i]); 675 } 676 677 var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; 678 var body = document.querySelector("body"); 679 var observer = new MutationObserver(function(mutations) { 680 mutations.forEach(function(mutation) { 681 // needed for IE 682 var nodesArray = [].slice.call(mutation.addedNodes); 683 if (nodesArray.length > 0) { 684 nodesArray.forEach(function(addedNode) { 685 if (addedNode.querySelectorAll) { 686 var elementsArray = [].slice.call(addedNode.querySelectorAll(selectors.self)); 687 elementsArray.forEach(function(element) { 688 previewPdf(element); 689 }); 690 } 691 }); 692 } 693 }); 694 }); 695 696 observer.observe(body, { 697 subtree: true, 698 childList: true, 699 characterData: true 700 }); 701 702 } 703 704 if (document.readyState !== "loading") { 705 onDocumentReady(); 706 } else { 707 document.addEventListener("DOMContentLoaded", onDocumentReady); 708 } 709}()); 710 711!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
vendor: 4,998 bytes, lines 711-721
711),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=69)}({0:function(e,t,n){var r; 712/*! 713 * jQuery JavaScript Library v3.7.1 714 * https://jquery.com/ 715 * 716 * Copyright OpenJS Foundation and other contributors 717 * Released under the MIT license 718 * https://jquery.org/license 719 * 720 * Date: 2023-08-28T13:37Z 721 */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,d=o.indexOf,u={},h=u.toString,p=u.hasOwnProperty,f=p.toString,m=f.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=n.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in _)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[h.call(e)]||"object":typeof e}var C=/HTML$/i,S=function(e,t){return new S.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}S.fn=S.prototype={jquery:"3.7.1",constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(S.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(c&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(c,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e))&&(!(t=a(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&f.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=S.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?S.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!C.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(E(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l(a)},guid:1,support:g}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=o[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));
vendor: 22,682 bytes, line 721
721var T=o.pop,O=o.sort,$=o.splice,P="[\\x20\\t\\r\\n\\f]",I=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g");S.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function A(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}S.escapeSelector=function(e){return(e+"").replace(L,A)};var M=b,j=c;!function(){var e,t,r,i,a,l,c,u,h,f,m=j,v=S.expando,y=0,b=0,_=ee(),w=ee(),x=ee(),C=ee(),E=function(e,t){return e===t&&(a=!0),0},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",A="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+P+"*("+A+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+A+"))|)"+P+"*\\]",D=":("+A+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",F=new RegExp(P+"+","g"),N=new RegExp("^"+P+"*,"+P+"*"),B=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),U=new RegExp(P+"|>"),z=new RegExp(D),G=new RegExp("^"+A+"$"),V={ID:new RegExp("^#("+A+")"),CLASS:new RegExp("^\\.("+A+")"),TAG:new RegExp("^("+A+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+D),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,H=/^h\d$/i,W=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),K=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Z=function(){le()},J=he((function(e){return!0===e.disabled&&k(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(o=s.call(M.childNodes),M.childNodes),o[M.childNodes.length].nodeType}catch(e){m={apply:function(e,t){j.apply(e,s.call(t))},call:function(e){j.apply(e,s.call(arguments,1))}}}function Q(e,t,n,r){var i,o,a,s,c,d,p,f=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(le(t),t=t||l,u)){if(11!==y&&(c=W.exec(e)))if(i=c[1]){if(9===y){if(!(a=t.getElementById(i)))return n;if(a.id===i)return m.call(n,a),n}else if(f&&(a=f.getElementById(i))&&Q.contains(t,a)&&a.id===i)return m.call(n,a),n}else{if(c[2])return m.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(i)),n}if(!(C[e+" "]||h&&h.test(e))){if(p=e,f=t,1===y&&(U.test(e)||B.test(e))){for((f=Y.test(e)&&se(t.parentNode)||t)==t&&g.scope||((s=t.getAttribute("id"))?s=S.escapeSelector(s):t.setAttribute("id",s=v)),o=(d=de(e)).length;o--;)d[o]=(s?"#"+s:":scope")+" "+ue(d[o]);p=d.join(",")}try{return m.apply(n,f.querySelectorAll(p)),n}catch(t){C(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return ye(e.replace(I,"$1"),t,n,r)}function ee(){var e=[];return function n(r,i){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=i}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return k(t,"input")&&t.type===e}}function ie(e){return function(t){return(k(t,"input")||k(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,r=e?e.ownerDocument||e:M;return r!=l&&9===r.nodeType&&r.documentElement?(c=(l=r).documentElement,u=!S.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&M!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),g.getById=ne((function(e){return c.appendChild(e).id=S.expando,!l.getElementsByName||!l.getElementsByName(S.expando).length})),g.disconnectedMatch=ne((function(e){return f.call(e,"*")})),g.scope=ne((function(){return l.querySelectorAll(":scope")})),g.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),g.getById?(t.filter.ID=function(e){var t=e.replace(X,K);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&u){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(X,K);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&u){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&u)return t.getElementsByClassName(e)},h=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+P+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")")})),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),E=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==M&&Q.contains(M,e)?-1:t===l||t.ownerDocument==M&&Q.contains(M,t)?1:i?d.call(i,e)-d.call(i,t):0:4&n?-1:1)},l):l}for(e in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(le(e),u&&!C[t+" "]&&(!h||!h.test(t)))try{var n=f.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){C(t,!0)}return Q(t,l,null,[e]).length>0},Q.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),S.contains(e,t)},Q.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var r=t.attrHandle[n.toLowerCase()],i=r&&p.call(t.attrHandle,n.toLowerCase())?r(e,n,!u):void 0;return void 0!==i?i:e.getAttribute(n)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},S.uniqueSort=function(e){var t,n=[],r=0,o=0;if(a=!g.sortStable,i=!g.sortStable&&s.call(e,0),O.call(e,E),a){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)$.call(e,n[r],1)}return i=null,e},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(s.apply(this)))},(t=S.expr={cacheLength:50,createPseudo:te,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(X,K),e[3]=(e[3]||e[4]||e[5]||"").replace(X,K),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Q.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Q.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=de(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(X,K).toLowerCase();return"*"===e?function(){return!0}:function(e){return k(e,t)}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&_(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=Q.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(F," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,d,u,h,p,f=o!==a?"nextSibling":"previousSibling",m=t.parentNode,g=s&&t.nodeName.toLowerCase(),b=!l&&!s,_=!1;if(m){if(o){for(;f;){for(u=t;u=u[f];)if(s?k(u,g):1===u.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&b){for(_=(h=(c=(d=m[v]||(m[v]={}))[e]||[])[0]===y&&c[1])&&c[2],u=h&&m.childNodes[h];u=++h&&u&&u[f]||(_=h=0)||p.pop();)if(1===u.nodeType&&++_&&u===t){d[e]=[y,h,_];break}}else if(b&&(_=h=(c=(d=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===_)for(;(u=++h&&u&&u[f]||(_=h=0)||p.pop())&&(!(s?k(u,g):1===u.nodeType)||!++_||(b&&((d=u[v]||(u[v]={}))[e]=[y,_]),u!==t)););return(_-=i)===r||_%r==0&&_/r>=0}}},PSEUDO:function(e,n){var r,i=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Q.error("unsupported pseudo: "+e);return i[v]?i(n):i.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var r,o=i(e,n),a=o.length;a--;)e[r=d.call(e,o[a])]=!(t[r]=o[a])})):function(e){return i(e,0,r)}):i}},pseudos:{not:te((function(e){var t=[],n=[],r=ve(e.replace(I,"$1"));return r[v]?te((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Q(e,t).length>0}})),contains:te((function(e){return e=e.replace(X,K),function(t){return(t.textContent||S.text(t)).indexOf(e)>-1}})),lang:te((function(e){return G.test(e||"")||Q.error("unsupported lang: "+e),e=e.replace(X,K).toLowerCase(),function(t){var n;do{if(n=u?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return k(e,"input")&&!!e.checked||k(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return H.test(e.nodeName)},input:function(e){return q.test(e.nodeName)},button:function(e){return k(e,"input")&&"button"===e.type||k(e,"button")},text:function(e){var t;return k(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ae((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ae((function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ae((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ie(e);function ce(){}function de(e,n){var r,i,o,a,s,l,c,d=w[e+" "];if(d)return n?0:d.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(a in r&&!(i=N.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=B.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(I," ")}),s=s.slice(r.length)),t.filter)!(i=V[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?Q.error(e):w(e,l).slice(0)}function ue(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function he(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=b++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var c,d,u=[y,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(d=t[v]||(t[v]={}),i&&k(t,i))t=t[r]||t;else{if((c=d[o])&&c[0]===y&&c[1]===s)return u[2]=c[2];if(d[o]=u,u[2]=e(t,n,l))return!0}return!1}}function pe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function fe(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function me(e,t,n,r,i,o){return r&&!r[v]&&(r=me(r)),i&&!i[v]&&(i=me(i,o)),te((function(o,a,s,l){var c,u,h,p,f=[],g=[],v=a.length,y=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)Q(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!o&&t?y:fe(y,f,e,s,l);if(n?n(b,p=i||(o?e:v||r)?[]:a,s,l):p=b,r)for(c=fe(p,g),r(c,[],s,l),u=c.length;u--;)(h=c[u])&&(p[g[u]]=!(b[g[u]]=h));if(o){if(i||e){if(i){for(c=[],u=p.length;u--;)(h=p[u])&&c.push(b[u]=h);i(null,p=[],c,l)}for(u=p.length;u--;)(h=p[u])&&(c=i?d.call(o,h):f[u])>-1&&(o[c]=!(a[c]=h))}}else p=fe(p===a?p.splice(v,p.length):p),i?i(null,a,p,l):m.apply(a,p)}))}function ge(e){for(var n,i,o,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,u=he((function(e){return e===n}),l,!0),h=he((function(e){return d.call(n,e)>-1}),l,!0),p=[function(e,t,i){var o=!s&&(i||t!=r)||((n=t).nodeType?u(e,t,i):h(e,t,i));return n=null,o}];c<a;c++)if(i=t.relative[e[c].type])p=[he(pe(p),i)];else{if((i=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(o=++c;o<a&&!t.relative[e[o].type];o++);return me(c>1&&pe(p),c>1&&ue(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(I,"$1"),i,c<o&&ge(e.slice(c,o)),o<a&&ge(e=e.slice(o)),o<a&&ue(e))}p.push(i)}return pe(p)}function ve(e,n){var i,o=[],a=[],s=x[e+" "];if(!s){for(n||(n=de(e)),i=n.length;i--;)(s=ge(n[i]))[v]?o.push(s):a.push(s);(s=x(e,function(e,n){var i=n.length>0,o=e.length>0,a=function(a,s,c,d,h){var p,f,g,v=0,b="0",_=a&&[],w=[],x=r,C=a||o&&t.find.TAG("*",h),E=y+=null==x?1:Math.random()||.1,k=C.length;for(h&&(r=s==l||s||h);b!==k&&null!=(p=C[b]);b++){if(o&&p){for(f=0,s||p.ownerDocument==l||(le(p),c=!u);g=e[f++];)if(g(p,s||l,c)){m.call(d,p);break}h&&(y=E)}i&&((p=!g&&p)&&v--,a&&_.push(p))}if(v+=b,i&&b!==v){for(f=0;g=n[f++];)g(_,w,s,c);if(a){if(v>0)for(;b--;)_[b]||w[b]||(w[b]=T.call(d));w=fe(w)}m.apply(d,w),h&&!a&&w.length>0&&v+n.length>1&&S.uniqueSort(d)}return h&&(y=E,r=x),_};return i?te(a):a}(a,o))).selector=e}return s}function ye(e,n,r,i){var o,a,s,l,c,d="function"==typeof e&&e,h=!i&&de(e=d.selector||e);if(r=r||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&u&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(X,K),n)||[])[0]))return r;d&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(o=V.needsContext.test(e)?0:a.length;o--&&(s=a[o],!t.relative[l=s.type]);)if((c=t.find[l])&&(i=c(s.matches[0].replace(X,K),Y.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(o,1),!(e=i.length&&ue(a)))return m.apply(r,i),r;break}}return(d||ve(e,h))(i,n,!u,r,!n||Y.test(e)&&se(n.parentNode)||n),r}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,g.sortStable=v.split("").sort(E).join("")===v,le(),g.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),S.find=Q,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,Q.compile=ve,Q.select=ye,Q.setDocument=le,Q.tokenize=de,Q.escape=S.escapeSelector,Q.getText=S.text,Q.isXML=S.isXMLDoc,Q.selectors=S.expr,Q.support=S.support,Q.uniqueSort=S.uniqueSort}();var R=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},D=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},F=S.expr.match.needsContext,N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(e,t,n){return v(t)?S.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?S.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?S.grep(e,(function(e){return d.call(t,e)>-1!==n})):S.filter(t,e,n)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,(function(e){return 1===e.nodeType})))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter((function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return r>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack(B(this,e||[],!1))},not:function(e){return this.pushStack(B(this,e||[],!0))},is:function(e){return!!B(this,"string"==typeof e&&F.test(e)?S(e):e||[],!1).length}});var U,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||U,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:z.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,U=S(b);var G=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function q(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!F.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(S(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return R(e,"parentNode")},parentsUntil:function(e,t,n){return R(e,"parentNode",n)},next:function(e){return q(e,"nextSibling")},prev:function(e){return q(e,"previousSibling")},nextAll:function(e){return R(e,"nextSibling")},prevAll:function(e){return R(e,"previousSibling")},nextUntil:function(e,t,n){return R(e,"nextSibling",n)},prevUntil:function(e,t,n){return R(e,"previousSibling",n)},siblings:function(e){return D((e.parentNode||{}).firstChild,e)},children:function(e){return D(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},(function(e,t){S.fn[e]=function(n,r){var i=S.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(V[e]||S.uniqueSort(i),G.test(e)&&i.reverse()),this.pushStack(i)}}));var H=/[^\x20\t\r\n\f]+/g;function W(e){return e}function Y(e){throw e}function X(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return S.each(e.match(H)||[],(function(e,n){t[n]=!0})),t}(e):S.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){S.each(n,(function(n,r){v(r)?e.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return S.each(arguments,(function(e,t){for(var n;(n=S.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?S.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},S.extend({Deferred:function(e){var t=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return S.Deferred((function(n){S.each(t,(function(t,r){var i=v(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var o=0;function a(e,t,r,i){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<o)){if((n=r.apply(s,l))===t.promise())throw new TypeError("Thenable self
721-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(c)?i?c.call(n,a(o,t,W,i),a(o,t,Y,i)):(o++,c.call(n,a(o,t,W,i),a(o,t,Y,i),a(o,t,W,t.notifyWith))):(r!==W&&(s=void 0,l=[n]),(i||t.resolveWith)(s,l))}},d=i?c:function(){try{c()}catch(n){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(n,d.error),e+1>=o&&(r!==Y&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?d():(S.Deferred.getErrorHook?d.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(d.error=S.Deferred.getStackHook()),n.setTimeout(d))}}return S.Deferred((function(n){t[0][3].add(a(0,n,v(i)?i:W,n.notifyWith)),t[1][3].add(a(0,n,v(e)?e:W)),t[2][3].add(a(0,n,v(r)?r:Y))})).promise()},promise:function(e){return null!=e?S.extend(e,i):i}},o={};return S.each(t,(function(e,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=S.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(X(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)X(i[n],a(n),o.reject);return o.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&K.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){n.setTimeout((function(){throw e}))};var Z=S.Deferred();function J(){b.removeEventListener("DOMContentLoaded",J),n.removeEventListener("load",J),S.ready()}S.fn.ready=function(e){return Z.then(e).catch((function(e){S.readyException(e)})),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==e&&--S.readyWait>0||Z.resolveWith(b,[S]))}}),S.ready.then=Z.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(S.ready):(b.addEventListener("DOMContentLoaded",J),n.addEventListener("load",J));var Q=function(e,t,n,r,i,o,a){var s=0,l=e.length,c=null==n;if("object"===x(n))for(s in i=!0,n)Q(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(S(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):o},ee=/^-ms-/,te=/-([a-z])/g;function ne(e,t){return t.toUpperCase()}function re(e){return e.replace(ee,"ms-").replace(te,ne)}var ie=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function oe(){this.expando=S.expando+oe.uid++}oe.uid=1,oe.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ie(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[re(t)]=n;else for(r in t)i[re(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][re(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(re):(t=re(t))in r?[t]:t.match(H)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var ae=new oe,se=new oe,le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ce=/[A-Z]/g;function de(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ce,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:le.test(e)?JSON.parse(e):e)}(n)}catch(e){}se.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return se.hasData(e)||ae.hasData(e)},data:function(e,t,n){return se.access(e,t,n)},removeData:function(e,t){se.remove(e,t)},_data:function(e,t,n){return ae.access(e,t,n)},_removeData:function(e,t){ae.remove(e,t)}}),S.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=se.get(o),1===o.nodeType&&!ae.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=re(r.slice(5)),de(o,r,i[r]));ae.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){se.set(this,e)})):Q(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=se.get(o,e))||void 0!==(n=de(o,e))?n:void 0;this.each((function(){se.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){se.remove(this,e)}))}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ae.get(e,t),n&&(!r||Array.isArray(n)?r=ae.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){S.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ae.get(e,n)||ae.access(e,n,{empty:S.Callbacks("once memory").add((function(){ae.remove(e,[t+"queue",n])}))})}}),S.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?S.queue(this[0],e):void 0===t?this:this.each((function(){var n=S.queue(this,e,t);S._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&S.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){S.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=ae.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ue=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,he=new RegExp("^(?:([+-])=|)("+ue+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],fe=b.documentElement,me=function(e){return S.contains(e.ownerDocument,e)},ge={composed:!0};fe.getRootNode&&(me=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(ge)===e.ownerDocument});var ve=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===S.css(e,"display")};function ye(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},l=s(),c=n&&n[3]||(S.cssNumber[t]?"":"px"),d=e.nodeType&&(S.cssNumber[t]||"px"!==c&&+l)&&he.exec(S.css(e,t));if(d&&d[3]!==c){for(l/=2,c=c||d[3],d=+l||1;a--;)S.style(e,t,d+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),d/=o;d*=2,S.style(e,t,d+c),n=n||[]}return n&&(d=+d||+l||0,i=n[1]?d+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=d,r.end=i)),i}var be={};function _e(e){var t,n=e.ownerDocument,r=e.nodeName,i=be[r];
vendor: 15,910 bytes, line 721
721return i||(t=n.body.appendChild(n.createElement(r)),i=S.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),be[r]=i,i)}function we(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=ae.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ve(r)&&(i[o]=_e(r))):"none"!==n&&(i[o]="none",ae.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}S.fn.extend({show:function(){return we(this,!0)},hide:function(){return we(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ve(this)?S(this).show():S(this).hide()}))}});var xe,Ce,Se=/^(?:checkbox|radio)$/i,Ee=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ke=/^$|^module$|\/(?:java|ecma)script/i;xe=b.createDocumentFragment().appendChild(b.createElement("div")),(Ce=b.createElement("input")).setAttribute("type","radio"),Ce.setAttribute("checked","checked"),Ce.setAttribute("name","t"),xe.appendChild(Ce),g.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",g.option=!!xe.lastChild;var Te={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Oe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?S.merge([e],n):n}function $e(e,t){for(var n=0,r=e.length;n<r;n++)ae.set(e[n],"globalEval",!t||ae.get(t[n],"globalEval"))}Te.tbody=Te.tfoot=Te.colgroup=Te.caption=Te.thead,Te.th=Te.td,g.option||(Te.optgroup=Te.option=[1,"<select multiple='multiple'>","</select>"]);var Pe=/<|&#?\w+;/;function Ie(e,t,n,r,i){for(var o,a,s,l,c,d,u=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((o=e[p])||0===o)if("object"===x(o))S.merge(h,o.nodeType?[o]:o);else if(Pe.test(o)){for(a=a||u.appendChild(t.createElement("div")),s=(Ee.exec(o)||["",""])[1].toLowerCase(),l=Te[s]||Te._default,a.innerHTML=l[1]+S.htmlPrefilter(o)+l[2],d=l[0];d--;)a=a.lastChild;S.merge(h,a.childNodes),(a=u.firstChild).textContent=""}else h.push(t.createTextNode(o));for(u.textContent="",p=0;o=h[p++];)if(r&&S.inArray(o,r)>-1)i&&i.push(o);else if(c=me(o),a=Oe(u.appendChild(o),"script"),c&&$e(a),n)for(d=0;o=a[d++];)ke.test(o.type||"")&&n.push(o);return u}var Le=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Me(){return!1}function je(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)je(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Me;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each((function(){S.event.add(this,t,i,r,n)}))}function Re(e,t,n){n?(ae.set(e,t,!1),S.event.add(e,t,{namespace:!1,handler:function(e){var n,r=ae.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(S.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),ae.set(this,t,r),this[t](),n=ae.get(this,t),ae.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(ae.set(this,t,S.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ae)}})):void 0===ae.get(e,t)&&S.event.add(e,t,Ae)}S.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,c,d,u,h,p,f,m,g=ae.get(e);if(ie(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(fe,i),n.guid||(n.guid=S.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==S&&S.event.triggered!==t.type?S.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(H)||[""]).length;c--;)p=m=(s=Le.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),p&&(u=S.event.special[p]||{},p=(i?u.delegateType:u.bindType)||p,u=S.event.special[p]||{},d=S.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,f,a)||e.addEventListener&&e.addEventListener(p,a)),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,d):h.push(d),S.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,c,d,u,h,p,f,m,g=ae.hasData(e)&&ae.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(H)||[""]).length;c--;)if(p=m=(s=Le.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(u=S.event.special[p]||{},h=l[p=(r?u.delegateType:u.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)d=h[o],!i&&m!==d.origType||n&&n.guid!==d.guid||s&&!s.test(d.namespace)||r&&r!==d.selector&&("**"!==r||!d.selector)||(h.splice(o,1),d.selector&&h.delegateCount--,u.remove&&u.remove.call(e,d));a&&!h.length&&(u.teardown&&!1!==u.teardown.call(e,f,g.handle)||S.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)S.event.remove(e,p+t[c],n,r,!0);S.isEmptyObject(l)&&ae.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=S.event.fix(e),c=(ae.get(this,"events")||Object.create(null))[l.type]||[],d=S.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){for(a=S.event.handlers.call(this,l,c),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?S(i,this).index(c)>-1:S.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(S.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Se.test(t.type)&&t.click&&k(t,"input")&&Re(t,"click",!0),!1},trigger:function(e){var t=this||e;return Se.test(t.type)&&t.click&&k(t,"input")&&Re(t,"click"),!0},_default:function(e){var t=e.target;return Se.test(t.type)&&t.click&&k(t,"input")&&ae.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ae:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=ae.get(this,"handle"),r=S.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else S.event.simulate(t,e.target,S.event.fix(e))}S.event.special[e]={setup:function(){var r;if(Re(this,e,!0),!b.documentMode)return!1;(r=ae.get(this,t))||this.addEventListener(t,n),ae.set(this,t,(r||0)+1)},trigger:function(){return Re(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=ae.get(this,t)-1)?ae.set(this,t,e):(this.removeEventListener(t,n),ae.remove(this,t))},_default:function(t){return ae.get(t.target,e)},delegateType:t},S.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=ae.get(i,t);o||(b.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),ae.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=ae.get(i,t)-1;o?ae.set(i,t,o):(b.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),ae.remove(i,t))}}})),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){S.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||S.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),S.fn.extend({on:function(e,t,n,r){return je(this,e,t,n,r)},one:function(e,t,n,r){return je(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each((function(){S.event.remove(this,e,n,t)}))}});var De=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Be(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Ue(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ze(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ge(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(ae.hasData(e)&&(s=ae.get(e).events))for(i in ae.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);se.hasData(e)&&(o=se.access(e),a=S.extend({},o),se.set(t,a))}}function Ve(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Se.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function qe(e,t,n,r){t=l(t);var i,o,a,s,c,d,u=0,h=e.length,p=h-1,f=t[0],m=v(f);if(m||h>1&&"string"==typeof f&&!g.checkClone&&Fe.test(f))return e.each((function(i){var o=e.eq(i);m&&(t[0]=f.call(this,i,o.html())),qe(o,t,n,r)}));if(h&&(o=(i=Ie(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=S.map(Oe(i,"script"),Ue)).length;u<h;u++)c=i,u!==p&&(c=S.clone(c,!0,!0),s&&S.merge(a,Oe(c,"script"))),n.call(e[u],c,u);if(s)for(d=a[a.length-1].ownerDocument,S.map(a,ze),u=0;u<s;u++)c=a[u],ke.test(c.type||"")&&!ae.access(c,"globalEval")&&S.contains(d,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?S._evalUrl&&!c.noModule&&S._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},d):w(c.textContent.replace(Ne,""),c,d))}return e}function He(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(Oe(r)),r.parentNode&&(n&&me(r)&&$e(Oe(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=me(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=Oe(s),r=0,i=(o=Oe(e)).length;r<i;r++)Ve(o[r],a[r]);if(t)if(n)for(o=o||Oe(e),a=a||Oe(s),r=0,i=o.length;r<i;r++)Ge(o[r],a[r]);else Ge(e,s);return(a=Oe(s,"script")).length>0&&$e(a,!l&&Oe(e,"script")),s},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(ie(n)){if(t=n[ae.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[ae.expando]=void 0}n[se.expando]&&(n[se.expando]=void 0)}}}),S.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return Q(this,(function(e){return void 0===e?S.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return qe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Be(this,e).appendChild(e)}))},prepend:function(){return qe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Be(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return qe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return qe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(Oe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return S.clone(this,e,t)}))},html:function(e){return Q(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!De.test(e)&&!Te[(Ee.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(Oe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return qe(this,arguments,(function(t){var n=this.parentNode;S.inArray(this,e)<0&&(S.cleanData(Oe(this)),n&&n.replaceChild(t,this))}),e)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){S.fn[e]=function(e){for(var n,r=[],i=S(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),S(i[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var We=new RegExp("^("+ue+")(?!px)[a-z%]+$","i"),Ye=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ke=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ze=new RegExp(pe.join("|"),"i");function Je(e,t,n){var r,i,o,a,s=Ye.test(t),l=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(I,"$1")||void 0),""!==a||me(e)||(a=S.style(e,t)),!g.pixelBoxStyles()&&We.test(a)&&Ze.test(t)&&(r=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=r,l.minWidth=i,l.maxWidth=o)),void 0!==a?a+"":a}function Qe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(d){c.style.cssText="position:absolute;
721left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",fe.appendChild(c).appendChild(d);var e=n.getComputedStyle(d);r="1%"!==e.top,l=12===t(e.marginLeft),d.style.right="60%",a=36===t(e.right),i=36===t(e.width),d.style.position="absolute",o=12===t(d.offsetWidth/3),fe.removeChild(c),d=null}}function t(e){return Math.round(parseFloat(e))}var r,i,o,a,s,l,c=b.createElement("div"),d=b.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===d.style.backgroundClip,S.extend(g,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,r,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),r=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",fe.appendChild(e).appendChild(t).appendChild(r),i=n.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,fe.removeChild(e)),s}}))}();var et=["Webkit","Moz","ms"],tt=b.createElement("div").style,nt={};function rt(e){var t=S.cssProps[e]||nt[e];return t||(e in tt?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=et.length;n--;)if((e=et[n]+t)in tt)return e}(e)||e)}var it=/^(none|table(?!-c[ea]).+)/,ot={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function st(e,t,n){var r=he.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function lt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=S.css(e,n+pe[a],!0,i)),r?("content"===n&&(l-=S.css(e,"padding"+pe[a],!0,i)),"margin"!==n&&(l-=S.css(e,"border"+pe[a]+"Width",!0,i))):(l+=S.css(e,"padding"+pe[a],!0,i),"padding"!==n?l+=S.css(e,"border"+pe[a]+"Width",!0,i):s+=S.css(e,"border"+pe[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l+c}function ct(e,t,n){var r=Xe(e),i=(!g.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=Je(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(We.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&k(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+lt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function dt(e,t,n,r,i){return new dt.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Je(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=re(t),l=Ye.test(t),c=e.style;
vendor: 29,689 bytes, line 721
721if(l||(t=rt(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:c[t];"string"===(o=typeof n)&&(i=he.exec(n))&&i[1]&&(n=ye(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,a,s=re(t);return Ye.test(t)||(t=rt(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Je(e,t,r)),"normal"===i&&t in at&&(i=at[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],(function(e,t){S.cssHooks[t]={get:function(e,n,r){if(n)return!it.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ct(e,t,r):Ke(e,ot,(function(){return ct(e,t,r)}))},set:function(e,n,r){var i,o=Xe(e),a=!g.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===S.css(e,"boxSizing",!1,o),l=r?lt(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-lt(e,t,"border",!1,o)-.5)),l&&(i=he.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=S.css(e,t)),st(0,n,l)}}})),S.cssHooks.marginLeft=Qe(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Je(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(e,t){S.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+pe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(S.cssHooks[e+t].set=st)})),S.fn.extend({css:function(e,t){return Q(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)}),e,t,arguments.length>1)}}),S.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=dt.prototype.init,S.fx.step={};var ut,ht,pt=/^(?:toggle|show|hide)$/,ft=/queueHooks$/;function mt(){ht&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(mt):n.setTimeout(mt,S.fx.interval),S.fx.tick())}function gt(){return n.setTimeout((function(){ut=void 0})),ut=Date.now()}function vt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=pe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function yt(e,t,n){for(var r,i=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function bt(e,t,n){var r,i,o=0,a=bt.prefilters.length,s=S.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=ut||gt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:S.extend({},t),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:t,originalOptions:n,startTime:ut||gt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=S.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),d=c.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=re(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(d,c.opts.specialEasing);o<a;o++)if(r=bt.prefilters[o].call(c,e,d,c.opts))return v(r.stop)&&(S._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return S.map(d,yt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),S.fx.timer(S.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}S.Animation=S.extend(bt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ye(n.elem,e,he.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(H);for(var n,r=0,i=e.length;r<i;r++)n=e[r],bt.tweeners[n]=bt.tweeners[n]||[],bt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,c,d,u="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&ve(e),g=ae.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],pt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}p[r]=g&&g[r]||S.style(e,r)}if((l=!S.isEmptyObject(t))||!S.isEmptyObject(p))for(r in u&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=ae.get(e,"display")),"none"===(d=S.css(e,"display"))&&(c?d=c:(we([e],!0),c=e.style.display||c,d=S.css(e,"display"),we([e]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===S.css(e,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=ae.access(e,"fxshow",{display:c}),o&&(g.hidden=!m),m&&we([e],!0),h.done((function(){for(r in m||we([e]),ae.remove(e,"fxshow"),p)S.style(e,r,p[r])}))),l=yt(m?g[r]:0,r,h),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?bt.prefilters.unshift(e):bt.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ve).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=S.isEmptyObject(e),o=S.speed(t,n,r),a=function(){var t=bt(this,S.extend({},e),o);(i||ae.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=S.timers,a=ae.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ft.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||S.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=ae.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=S.timers,a=r?r.length:0;for(n.finish=!0,S.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),S.each(["toggle","show","hide"],(function(e,t){var n=S.fn[t];S.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(vt(t,!0),e,r,i)}})),S.each({slideDown:vt("show"),slideUp:vt("hide"),slideToggle:vt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){S.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(ut=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),ut=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){ht||(ht=!0,mt())},S.fx.stop=function(){ht=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(e,t){return e=S.fx&&S.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var _t,wt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return Q(this,S.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){S.removeAttr(this,e)}))}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?_t:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(H);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),_t={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=wt[t]||S.find.attr;wt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=wt[a],wt[a]=i,i=null!=n(e,t,r)?a:null,wt[a]=o),i}}));var xt=/^(?:input|select|textarea|button)$/i,Ct=/^(?:a|area)$/i;function St(e){return(e.match(H)||[]).join(" ")}function Et(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(H)||[]}S.fn.extend({prop:function(e,t){return Q(this,S.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[S.propFix[e]||e]}))}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||Ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(e){var t,n,r,i,o,a;return v(e)?this.each((function(t){S(this).addClass(e.call(this,t,Et(this)))})):(t=kt(e)).length?this.each((function(){if(r=Et(this),n=1===this.nodeType&&" "+St(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=St(n),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,r,i,o,a;return v(e)?this.each((function(t){S(this).removeClass(e.call(this,t,Et(this)))})):arguments.length?(t=kt(e)).length?this.each((function(){if(r=Et(this),n=1===this.nodeType&&" "+St(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=St(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return v(e)?this.each((function(n){S(this).toggleClass(e.call(this,n,Et(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=kt(e),this.each((function(){if(s)for(o=S(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==a||((r=Et(this))&&ae.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":ae.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+St(Et(n))+" ").indexOf(t)>-1)return!0;return!1}});var Tt=/\r/g;S.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,S(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,(function(e){return null==e?"":e+""}))),(t=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Tt,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:St(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=S.makeArray(t),a=i.length;a--;)((r=i[a]).selected=S.inArray(S.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=S.inArray(S(e).val(),t)>-1}},g.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Ot=n.location,$t={guid:Date.now()},Pt=/\?/;S.parseXML=function(e){var t,r;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return r=t&&t.getElementsByTagName("parsererror")[0],t&&!r||S.error("Invalid XML: "+(r?S.map(r.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var It=/^(?:focusinfocus|focusoutblur)$/,Lt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,r,i){var o,a,s,l,c,d,u,h,f=[r||b],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(a=h=s=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!It.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[S.expando]?e:new S.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:S.makeArray(t,[e]),u=S.event.special[m]||{},i||!u.trigger||!1!==u.trigger.apply(r,t))){if(!i&&!u.noBubble&&!y(r)){for(l=u.delegateType||m,It.test(l+m)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(r.ownerDocument||b)&&f.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=f[o++])&&!e.isPropagationStopped();)h=a,e.type=o>1?l:u.bindType||m,(d=(ae.get(a,"events")||Object.create(null))[e.type]&&ae.get(a,"handle"))&&d.apply(a,t),(d=c&&a[c])&&d.apply&&ie(a)&&(e.result=d.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(f.pop(),t)||!ie(r)||c&&v(r[m])&&!y(r)&&((s=r[c])&&(r[c]=null),S.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,Lt),r[m](),e.isPropagationStopped()&&h.removeEventListener(m,Lt),S.event.triggered=void 0,s&&(r[c]=s)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each((function(){S.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}});var At=/\[\]$/,Mt=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;function Dt(e,t,n,r){var i;if(Array.isArray(t))S.each(t,(function(t,i){n||At.test(e)?r(e,i):Dt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(i in t)Dt(e+"["+i+"]",t[i],n,r)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,(function(){i(this.name,this.value)}));else for(n in e)Dt(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Rt.test(this.nodeName)&&!jt.test(e)&&(this.checked||!Se.test(e))})).map((function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,(function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}})):{name:t.name,value:n.replace(Mt,"\r\n")}})).get()}});var Ft=/%20/g,Nt=/#.*$/,Bt=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)$/gm,zt=/^(?:GET|HEAD)$/,Gt=/^\/\//,Vt={},qt={},Ht="*/".concat("*"),Wt=b.createElement("a");function Yt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(H)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Xt(e,t,n,r){var i={},o=e===qt;function a(s){var l;return i[s]=!0,S.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||o||i[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Kt(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Wt.href=Ot.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ot.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ot.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ht,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Kt(Kt(e,S.ajaxSettings),t):Kt(S.ajaxSettings,e)},ajaxPrefilter:Yt(Vt),ajaxTransport:Yt(qt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,l,c,d,u,h,p=S.ajaxSetup({},t),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?S(f):S.event,g=S.Deferred(),v=S.Callbacks("once memory"),y=p.statusCode||{},_={},w={},x="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Ut.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||x;return r&&r.abort(t),E(0,t),this}};if(g.promise(C),p.url=((e||p.url||Ot.href)+"").replace(Gt,Ot.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(H)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Wt.protocol+"//"+Wt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=S.param(p.data,p.traditional)),Xt(Vt,p,t,C),c)return C;for(u in(d=S.event&&p.global)&&0==S.active++&&S.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!zt.test(p.type),i=p.url.replace(Nt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ft,"+")):(h=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Pt.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Bt,"$1"),h=(Pt.test(i)?"&":"?")+"_="+$t.guid+++h),p.url=i+h),p.ifModified&&(S.lastModified[i]&&C.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&C.setRequestHeader("If-None-Match",S.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ht+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(f,C,p)||c))return C.abort();if(x="abort",v.add(p.complete),C.done(p.success),C.fail(p.error),r=Xt(qt,p,t,C)){if(C.readyState=1,d&&m.trigger("ajaxSend",[C,p]),c)return C;p.async&&p.timeout>0&&(s=n.setTimeout((function(){C.abort("timeout")}),p.timeout));try{c=!1,r.send(_,E)}catch(e){if(c)throw e;E(-1,e)}}else E(-1,"No Transport");function E(e,t,a,l){var u,h,b,_,w,x=t;c||(c=!0,s&&n.clearTimeout(s),r=void 0,o=l||"",C.readyState=e>0?4:0,u=e>=200&&e<300||304===e,a&&(_=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,C,a)),!u&&S.inArray("script",p.dataTypes)>-1&&S.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=function(e,t,n,r){var i,o,a,s,l,c={},d=e.dataTypes.slice();if(d[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=d.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=d.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],d.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,_,C,u),u?(p.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=w),(w=C.getResponseHeader("etag"))&&(S.etag[i]=w)),204===e||"HEAD"===p.type?x="nocontent":304===e?x="notmodified":(x=_.state,h=_.data,u=!(b=_.error))):(b=x,!e&&x||(x="error",e<0&&(e=0))),C.status=e,C.statusText=(t||x)+"",u?g.resolveWith(f,[h,x,C]):g.rejectWith(f,[C,x,b]),C.statusCode(y),y=void 0,d&&m.trigger(u?"ajaxSuccess":"ajaxError",[C,p,u?h:b]),v.fireWith(f,[C,x]),d&&(m.trigger("ajaxComplete",[C,p]),--S.active||S.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],(function(e,t){S[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:e,type:t,dataType:i,data:n,success:r},S.isPlainObject(e)&&e))}})),S.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){S(this).wrapInner(e.call(this,t))})):this.each((function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){S(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Zt={0:200,1223:204},Jt=S.ajaxSettings.xhr();g.cors=!!Jt&&"withCredentials"in Jt,g.ajax=Jt=!!Jt,S.ajaxTransport((function(e){var t,r;if(g.cors||Jt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),S.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),S.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=S("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Qt,en=[],tn=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=en.pop()||S.expando+"_"+$t.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",(function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(tn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(tn,"$1"+i):!1!==e.jsonp&&(e.url+=(Pt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||S.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always((function(){void 0===o?S(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,en.push(i)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),g.createHTMLDocument=((Qt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Qt.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=Ie([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=St(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,(function(t){return e===t.elem})).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,c=S.css(e,"position"),d=S(e),u={};"static"===c&&(e.style.position="relative"),s=d.offset(),o=S.css(e,"to
721p"),l=S.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(r=d.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),v(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(u.top=t.top-s.top+a),null!=t.left&&(u.left=t.left-s.left+i),"using"in t?t.using.call(e,u):d.css(u)}},S.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){S.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||fe}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;S.fn[e]=function(r){return Q(this,(function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),S.each(["top","left"],(function(e,t){S.cssHooks[t]=Qe(g.pixelPosition,(function(e,n){if(n)return n=Je(e,t),We.test(n)?S(e).position()[t]+"px":n}))})),S.each({Height:"height",Width:"width"},(function(e,t){S.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){S.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return Q(this,(function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?S.css(t,n,s):S.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){S.fn[t]=function(e){return this.on(t,e)}})),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var nn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=k,S.isFunction=v,S.isWindow=y,S.camelCase=re,S.type=x,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(nn,"$1")},void 0===(r=function(){return S}.apply(t,[]))||(e.exports=r);var rn=n.jQuery,on=n.$;return S.noConflict=function(e){return n.$===S&&(n.$=on),e&&n.jQuery===S&&(n.jQuery=rn),S},void 0===i&&(n.jQuery=n.$=S),S}))},21:function(e,t,n){var r,i,o;!function(a){"use strict";i=[n(0)],void 0===(o="function"==typeof(r=function(e){return e.ui=e.ui||{},e.ui.version="1.13.2"})?r.apply(t,i):r)||(e.exports=o)}()},48:function(e,t,n){var r,i,o;!function(a){"use strict";i=[n(0)],void 0===(o="function"==typeof(r=function(e){var t=window.Slick||{};(n=0,t=function(t,r){var i,o=this;o.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(t),appendDots:e(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,n){return e('<button type="button" />').text(n+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 10,066 bytes, line 721
721sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=e(t),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,i=e(t).data("slick")||{},o.options=e.extend({},o.defaults,r,i),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,void 0!==document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=e.proxy(o.autoPlay,o),o.autoPlayClear=e.proxy(o.autoPlayClear,o),o.autoPlayIterator=e.proxy(o.autoPlayIterator,o),o.changeSlide=e.proxy(o.changeSlide,o),o.clickHandler=e.proxy(o.clickHandler,o),o.selectHandler=e.proxy(o.selectHandler,o),o.setPosition=e.proxy(o.setPosition,o),o.swipeHandler=e.proxy(o.swipeHandler,o),o.dragHandler=e.proxy(o.dragHandler,o),o.keyHandler=e.proxy(o.keyHandler,o),o.instanceUid=n++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(t,n,r){var i=this;if("boolean"==typeof n)r=n,n=null;else if(n<0||n>=i.slideCount)return!1;i.unload(),"number"==typeof n?0===n&&0===i.$slides.length?e(t).appendTo(i.$slideTrack):r?e(t).insertBefore(i.$slides.eq(n)):e(t).insertAfter(i.$slides.eq(n)):!0===r?e(t).prependTo(i.$slideTrack):e(t).appendTo(i.$slideTrack),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slides.each((function(t,n){e(n).attr("data-slick-index",t)})),i.$slidesCache=i.$slides,i.reinit()},t.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},t.prototype.animateSlide=function(t,n){var r={},i=this;i.animateHeight(),!0===i.options.rtl&&!1===i.options.vertical&&(t=-t),!1===i.transformsEnabled?!1===i.options.vertical?i.$slideTrack.animate({left:t},i.options.speed,i.options.easing,n):i.$slideTrack.animate({top:t},i.options.speed,i.options.easing,n):!1===i.cssTransitions?(!0===i.options.rtl&&(i.currentLeft=-i.currentLeft),e({animStart:i.currentLeft}).animate({animStart:t},{duration:i.options.speed,easing:i.options.easing,step:function(e){e=Math.ceil(e),!1===i.options.vertical?(r[i.animType]="translate("+e+"px, 0px)",i.$slideTrack.css(r)):(r[i.animType]="translate(0px,"+e+"px)",i.$slideTrack.css(r))},complete:function(){n&&n.call()}})):(i.applyTransition(),t=Math.ceil(t),!1===i.options.vertical?r[i.animType]="translate3d("+t+"px, 0px, 0px)":r[i.animType]="translate3d(0px,"+t+"px, 0px)",i.$slideTrack.css(r),n&&setTimeout((function(){i.disableTransition(),n.call()}),i.options.speed))},t.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=e(t).not(this.$slider)),t},t.prototype.asNavFor=function(t){var n=this.getNavTarget();null!==n&&"object"==typeof n&&n.each((function(){var n=e(this).slick("getSlick");n.unslicked||n.slideHandler(t,!0)}))},t.prototype.applyTransition=function(e){var t=this,n={};!1===t.options.fade?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},t.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var t,n,r=this;if(!0===r.options.dots&&r.slideCount>r.options.slidesToShow){for(r.$slider.addClass("slick-dotted"),n=e("<ul />").addClass(r.options.dotsClass),t=0;t<=r.getDotCount();t+=1)n.append(e("<li />").append(r.options.customPaging.call(this,r,t)));r.$dots=n.appendTo(r.options.appendDots),r.$dots.find("li").first().addClass("slick-active")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each((function(t,n){e(n).attr("data-slick-index",t).data("originalStyling",e(n).attr("style")||"")})),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,n,r,i,o,a,s=this;if(r=document.createDocumentFragment(),o=s.$slider.children(),s.options.rows>0){for(a=s.options.slidesPerRow*s.options.rows,i=Math.ceil(o.length/a),e=0;e<i;e++){var l=document.createElement("div");for(t=0;t<s.options.rows;t++){var c=document.createElement("div");for(n=0;n<s.options.slidesPerRow;n++){var d=e*a+(t*s.options.slidesPerRow+n);o.get(d)&&c.appendChild(o.get(d))}l.appendChild(c)}r.appendChild(l)}s.$slider.empty().append(r),s.$slider.children().children().children().css({width:100/s.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(t,n){var r,i,o,a=this,s=!1,l=a.$slider.width(),c=window.innerWidth||e(window).width();if("window"===a.respondTo?o=c:"slider"===a.respondTo?o=l:"min"===a.respondTo&&(o=Math.min(c,l)),a.options.responsive&&a.options.responsive.length&&null!==a.options.responsive){for(r in i=null,a.breakpoints)a.breakpoints.hasOwnProperty(r)&&(!1===a.originalSettings.mobileFirst?o<a.breakpoints[r]&&(i=a.breakpoints[r]):o>a.breakpoints[r]&&(i=a.breakpoints[r]));null!==i?null!==a.activeBreakpoint?(i!==a.activeBreakpoint||n)&&(a.activeBreakpoint=i,"unslick"===a.breakpointSettings[i]?a.unslick(i):(a.options=e.extend({},a.originalSettings,a.breakpointSettings[i]),!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t)),s=i):(a.activeBreakpoint=i,"unslick"===a.breakpointSettings[i]?a.unslick(i):(a.options=e.extend({},a.originalSettings,a.breakpointSettings[i]),!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t)),s=i):null!==a.activeBreakpoint&&(a.activeBreakpoint=null,a.options=a.originalSettings,!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t),s=i),t||!1===s||a.$slider.trigger("breakpoint",[a,s])}},t.prototype.changeSlide=function(t,n){var r,i,o=this,a=e(t.currentTarget);switch(a.is("a")&&t.preventDefault(),a.is("li")||(a=a.closest("li")),r=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,t.data.message){case"previous":i=0===r?o.options.slidesToScroll:o.options.slidesToShow-r,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-i,!1,n);break;case"next":i=0===r?o.options.slidesToScroll:r,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+i,!1,n);break;case"index":var s=0===t.data.index?0:t.data.index||a.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(s),!1,n),a.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,n;if(n=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var r in t){if(e<t[r]){e=n;break}n=t[r]}return e},t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.
721slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>0&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},t.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),e(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){e(this).attr("style",e(this).data("originalStyling"))})),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,t||n.$slider.trigger("destroy",[n])},t.prototype.disableTransition=function(e){var t=this,n={};n[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.fadeSlide=function(e,t){var n=this;!1===n.cssTransitions?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout((function(){n.disableTransition(e),t.call()}),n.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(n){n.stopImmediatePropagation();var r=e(this);setTimeout((function(){t.options.pauseOnFocus&&(t.focussed=r.is(":focus"),t.autoPlay())}),0)}))},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,n=0,r=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++r;else for(;t<e.slideCount;)++r,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)r=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++r,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else r=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return r-1},t.prototype.getLeft=function(e){var t,n,r,i,o=this,a=0;return o.slideOffset=0,n=o.$slides.first().outerHeight(!0),!0===o.options.infinite?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,i=-1,!0===o.options.vertical&&!0===o.options.centerMode&&(2===o.options.slidesToShow?i=-1.5:1===o.options.slidesToShow&&(i=-2)),a=n*o.options.slidesToShow*i),o.slideCount%o.options.slidesToScroll!=0&&e+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(e>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(e-o.slideCount))*o.slideWidth*-1,a=(o.options.slidesToShow-(e-o.slideCount))*n*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,a=o.slideCount%o.options.slidesToScroll*n*-1))):e+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(e+o.options.slidesToShow-o.slideCount)*o.slideWidth,a=(e+o.options.slidesToShow-o.slideCount)*n),o.slideCount<=o.options.slidesToShow&&(o.slideOffset=0,a=0),!0===o.options.centerMode&&o.slideCount<=o.options.slidesToShow?o.slideOffset=o.slideWidth*Math.floor(o.options.slidesToShow)/2-o.slideWidth*o.slideCount/2:!0===o.options.centerMode&&!0===o.options.infinite?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:!0===o.options.centerMode&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),t=!1===o.options.vertical?e*o.slideWidth*-1+o.slideOffset:e*n*-1+a,!0===o.options.variableWidth&&(r=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(e):o.$slideTrack.children(".slick-slide").eq(e+o.options.slidesToShow),t=!0===o.options.rtl?r[0]?-1*(o.$slideTrack.width()-r[0].offsetLeft-r.width()):0:r[0]?-1*r[0].offsetLeft:0,!0===o.options.centerMode&&(r=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(e):o.$slideTrack.children(".slick-slide").eq(e+o.options.slidesToShow+1),t=!0===o.options.rtl?r[0]?-1*(o.$slideTrack.width()-r[0].offsetLeft-r.width()):0:r[0]?-1*r[0].offsetLeft:0,t+=(o.$list.width()-r.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){return this.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,n=0,r=0,i=[];for(!1===t.options.infinite?e=t.slideCount:(n=-1*t.options.slidesToScroll,r=-1*t.options.slidesToScroll,e=2*t.slideCount);n<e;)i.push(n),n=r+t.options.slidesToScroll,r+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return i},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,n,r=this;return n=!0===r.options.centerMode?r.slideWidth*Math.floor(r.options.slidesToShow/2):0,!0===r.options.swipeToSlide?(r.$slideTrack.find(".slick-slide").each((function(i,o){if(o.offsetLeft-n+e(o
721).outerWidth()/2>-1*r.swipeLeft)return t=o,!1})),Math.abs(e(t).attr("data-slick-index")-r.currentSlide)||1):r.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},t.prototype.init=function(t){var n=this;e(n.$slider).hasClass("slick-initialized")||(e(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),t&&n.$slider.trigger("init",[n]),!0===n.options.accessibility&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},t.prototype.initADA=function(){var t=this,n=Math.ceil(t.slideCount/t.options.slidesToShow),r=t.getNavigableIndexes().filter((function(e){return e>=0&&e<t.slideCount}));t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each((function(n){var i=r.indexOf(n);if(e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+n,tabindex:-1}),-1!==i){var o="slick-slide-control"+t.instanceUid+i;e("#"+o).length&&e(this).attr({"aria-describedby":o})}})),t.$dots.attr("role","tablist").find("li").each((function(i){var o=r[i];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+i,"aria-controls":"slick-slide"+t.instanceUid+o,"aria-label":i+1+" of "+n,"aria-selected":null,tabindex:"-1"})})).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var i=t.currentSlide,o=i+t.options.slidesToShow;i<o;i++)t.options.focusOnChange?t.$slides.eq(i).attr({tabindex:"0"}):t.$slides.eq(i).removeAttr("tabindex");t.activateADA()},t.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"}
721,t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(t.setPosition)},t.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},t.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},t.prototype.lazyLoad=function(){var t,n,r,i=this;function o(t){e("img[data-lazy]",t).each((function(){var t=e(this),n=e(this).attr("data-lazy"),r=e(this).attr("data-srcset"),o=e(this).attr("data-sizes")||i.$slider.attr("data-sizes"),a=document.createElement("img");a.onload=function(){t.animate({opacity:0}
vendor: 7,097 bytes, line 721
721,100,(function(){r&&(t.attr("srcset",r),o&&t.attr("sizes",o)),t.attr("src",n).animate({opacity:1},200,(function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),i.$slider.trigger("lazyLoaded",[i,t,n])}))},a.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,t,n])},a.src=n}))}if(!0===i.options.centerMode?!0===i.options.infinite?r=(n=i.currentSlide+(i.options.slidesToShow/2+1))+i.options.slidesToShow+2:(n=Math.max(0,i.currentSlide-(i.options.slidesToShow/2+1)),r=i.options.slidesToShow/2+1+2+i.currentSlide):(n=i.options.infinite?i.options.slidesToShow+i.currentSlide:i.currentSlide,r=Math.ceil(n+i.options.slidesToShow),!0===i.options.fade&&(n>0&&n--,r<=i.slideCount&&r++)),t=i.$slider.find(".slick-slide").slice(n,r),"anticipated"===i.options.lazyLoad)for(var a=n-1,s=r,l=i.$slider.find(".slick-slide"),c=0;c<i.options.slidesToScroll;c++)a<0&&(a=i.slideCount-1),t=(t=t.add(l.eq(a))).add(l.eq(s)),a--,s++;o(t),i.slideCount<=i.options.slidesToShow?o(i.$slider.find(".slick-slide")):i.currentSlide>=i.slideCount-i.options.slidesToShow?o(i.$slider.find(".slick-cloned").slice(0,i.options.slidesToShow)):0===i.currentSlide&&o(i.$slider.find(".slick-cloned").slice(-1*i.options.slidesToShow))},t.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},t.prototype.postSlide=function(t){var n=this;n.unslicked||(n.$slider.trigger("afterChange",[n,t]),n.animating=!1,n.slideCount>n.options.slidesToShow&&n.setPosition(),n.swipeLeft=null,n.options.autoplay&&n.autoPlay(),!0===n.options.accessibility&&(n.initADA(),n.options.focusOnChange&&e(n.$slides.get(n.currentSlide)).attr("tabindex",0).focus()))},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(t){t=t||1;var n,r,i,o,a,s=this,l=e("img[data-lazy]",s.$slider);l.length?(n=l.first(),r=n.attr("data-lazy"),i=n.attr("data-srcset"),o=n.attr("data-sizes")||s.$slider.attr("data-sizes"),(a=document.createElement("img")).onload=function(){i&&(n.attr("srcset",i),o&&n.attr("sizes",o)),n.attr("src",r).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===s.options.adaptiveHeight&&s.setPosition(),s.$slider.trigger("lazyLoaded",[s,n,r]),s.progressiveLazyLoad()},a.onerror=function(){t<3?setTimeout((function(){s.progressiveLazyLoad(t+1)}),500):(n.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,n,r]),s.progressiveLazyLoad())},a.src=r):s.$slider.trigger("allImagesLoaded",[s])},t.prototype.refresh=function(t){var n,r,i=this;r=i.slideCount-i.options.slidesToShow,!i.options.infinite&&i.currentSlide>r&&(i.currentSlide=r),i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0),n=i.currentSlide,i.destroy(!0),e.extend(i,i.initials,{currentSlide:n}),i.init(),t||i.changeSlide({data:{message:"index",index:n}},!1)},t.prototype.registerBreakpoints=function(){var t,n,r,i=this,o=i.options.responsive||null;if("array"===e.type(o)&&o.length){for(t in i.respondTo=i.options.respondTo||"window",o)if(r=i.breakpoints.length-1,o.hasOwnProperty(t)){for(n=o[t].breakpoint;r>=0;)i.breakpoints[r]&&i.breakpoints[r]===n&&i.breakpoints.splice(r,1),r--;i.breakpoints.push(n),i.breakpointSettings[n]=o[t].settings}i.breakpoints.sort((function(e,t){return i.options.mobileFirst?e-t:t-e}))}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout((function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()}),50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,n){var r=this;if(e="boolean"==typeof e?!0===(t=e)?0:r.slideCount-1:!0===t?--e:e,r.slideCount<1||e<0||e>r.slideCount-1)return!1;r.unload(),!0===n?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(e).remove(),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slidesCache=r.$slides,r.reinit()},t.prototype.setCSS=function(e){var t,n,r=this,i={};!0===r.options.rtl&&(e=-e),t="left"==r.positionProp?Math.ceil(e)+"px":"0px",n="top"==r.positionProp?Math.ceil(e)+"px":"0px",i[r.positionProp]=e,!1===r.transformsEnabled?r.$slideTrack.css(i):(i={},!1===r.cssTransitions?(i[r.animType]="translate("+t+", "+n+")",r.$slideTrack.css(i)):(i[r.animType]="translate3d("+t+", "+n+", 0px)",r.$slideTrack.css(i)))},t.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var t,n=this;n.$slides.each((function(r,i){t=n.slideWidth*r*-1,!0===n.options.rtl?e(i).css({position:"relative",right:t,top:0,zIndex:n.options.zIndex-2,opacity:0}
721):e(i).css({position:"relative",left:t,top:0,zIndex:n.options.zIndex-2,opacity:0})})),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},t.prototype.setOption=t.prototype.slickSetOption=function(){var t,n,r,i,o,a=this,s=!1;if("object"===e.type(arguments[0])?(r=arguments[0],s=arguments[1],o="multiple"):"string"===e.type(arguments[0])&&(r=arguments[0],i=arguments[1],s=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?o="responsive":void 0!==arguments[1]&&(o="single")),"single"===o)a.options[r]=i;else if("multiple"===o)e.each(r,(function(e,t){a.options[e]=t}));else if("responsive"===o)for(n in i)if("array"!==e.type(a.options.responsive))a.options.responsive=[i[n]];else{for(t=a.options.responsive.length-1;t>=0;)a.options.responsive[t].breakpoint===i[n].breakpoint&&a.options.responsive.splice(t,1),t--;a.options.responsive.push(i[n])}s&&(a.unload(),a.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},t.prototype.setSlideClasses=function(e){var t,n,r,i,o=this;if(n=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(e).addClass("slick-current"),!0===o.options.centerMode){var a=o.options.slidesToShow%2==0?1:0;t=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(e>=t&&e<=o.slideCount-1-t?o.$slides.slice(e-t+a,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(r=o.options.slidesToShow+e,n.slice(r-t+1+a,r+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?n.eq(n.length-1-o.options.slidesToShow).addClass("slick-center"):e===o.slideCount-1&&n.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=o.slideCount-o.options.slidesToShow?o.$slides.slice(e,e+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=o.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(i=o.slideCount%o.options.slidesToShow,r=!0===o.options.infinite?o.options.slidesToShow+e:e,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-e<o.options.slidesToShow?n.slice(r-(o.options.slidesToShow-i),r+i).addClass("slick-active").attr("aria-hidden","false"):n.slice(r,r+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==o.options.lazyLoad&&"anticipated"!==o.options.lazyLoad||o.lazyLoad()},t.prototype.setupInfinite=function(){var t,n,r,i=this;if(!0===i.options.fade&&(i.options.centerMode=!1),!0===i.options.infinite&&!1===i.options.fade&&(n=null,i.slideCount>i.options.slidesToShow)){for(r=!0===i.options.centerMode?i.options.slidesToShow+1:i.options.slidesToShow,t=i.slideCount;t>i.slideCount-r;t-=1)n=t-1,e(i.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-i.slideCount).prependTo(i.$slideTrack).addClass("slick-cloned");for(t=0;t<r+i.slideCount;t+=1)n=t,e(i.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+i.slideCount).appendTo(i.$slideTrack).addClass("slick-cloned");i.$slideTrack.find(".slick-cloned").find("[id]").each((function(){e(this).attr("id","")}))}},t.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},t.prototype.selectHandler=function(t){var n=this,r=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),i=parseInt(r.attr("data-slick-index"));i||(i=0),n.slideCount<=n.options.slidesToShow?n.slideHandler(i,!1,!0):n.slideHandler(i)},t.prototype.slideHandler=function(e,t,n){var r,i,o,a,s,l,c=this;if(t=t||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===e))if(!1===t&&c.asNavFor(e),r=e,s=c.getLeft(r),a=c.getLeft(c.
vendor: 5,798 bytes, line 721
721currentSlide),c.currentLeft=null===c.swipeLeft?a:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(e<0||e>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(r=c.currentSlide,!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(a,(function(){c.postSlide(r)})):c.postSlide(r));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(e<0||e>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(r=c.currentSlide,!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(a,(function(){c.postSlide(r)})):c.postSlide(r));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),i=r<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+r:r>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:r-c.slideCount:r,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,i]),o=c.currentSlide,c.currentSlide=i,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(l=(l=c.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==n?(c.fadeSlideOut(o),c.fadeSlide(i,(function(){c.postSlide(i)}))):c.postSlide(i),void c.animateHeight();!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(s,(function(){c.postSlide(i)})):c.postSlide(i)}},t.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,t,n,r,i=this;return e=i.touchObject.startX-i.touchObject.curX,t=i.touchObject.startY-i.touchObject.curY,n=Math.atan2(t,e),(r=Math.round(180*n/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?!1===i.options.rtl?"left":"right":r>=135&&r<=225?!1===i.options.rtl?"right":"left":!0===i.options.verticalSwiping?r>=35&&r<=135?"down":"up":"vertical"},t.prototype.swipeEnd=function(e){var t,n,r=this;if(r.dragging=!1,r.swiping=!1,r.scrolling)return r.scrolling=!1,!1;if(r.interrupted=!1,r.shouldClick=!(r.touchObject.swipeLength>10),void 0===r.touchObject.curX)return!1;if(!0===r.touchObject.edgeHit&&r.$slider.trigger("edge",[r,r.swipeDirection()]),r.touchObject.swipeLength>=r.touchObject.minSwipe){switch(n=r.swipeDirection()){case"left":case"down":t=r.options.swipeToSlide?r.checkNavigable(r.currentSlide+r.getSlideCount()):r.currentSlide+r.getSlideCount(),r.currentDirection=0;break;case"right":case"up":t=r.options.swipeToSlide?r.checkNavigable(r.currentSlide-r.getSlideCount()):r.currentSlide-r.getSlideCount(),r.currentDirection=1}"vertical"!=n&&(r.slideHandler(t),r.touchObject={},r.$slider.trigger("swipe",[r,n]))}else r.touchObject.startX!==r.touchObject.curX&&(r.slideHandler(r.currentSlide),r.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},t.prototype.swipeMove=function(e){var t,n,r,i,o,a,s=this;return o=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!s.dragging||s.scrolling||o&&1!==o.length)&&(t=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==o?o[0].pageX:e.clientX,s.touchObject.curY=void 0!==o?o[0].pageY:e.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),a=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2))),!s.options.verticalSwiping&&!s.swiping&&a>4?(s.scrolling=!0,!1):(!0===s.options.verticalSwiping&&(s.touchObject.swipeLength=a),n=s.swipeDirection(),void 0!==e.originalEvent&&s.touchObject.swipeLength>4&&(s.swiping=!0,e.preventDefault()),i=(!1===s.options.rtl?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),!0===s.options.verticalSwiping&&(i=s.touchObject.curY>s.touchObject.startY?1:-1),r=s.touchObject.swipeLength,s.touchObject.edgeHit=!1,!1===s.options.infinite&&(0===s.currentSlide&&"right"===n||s.currentSlide>=s.getDotCount()&&"left"===n)&&(r=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),!1===s.options.vertical?s.swipeLeft=t+r*i:s.swipeLeft=t+r*(s.$list.height()/s.listWidth)*i,!0===s.options.verticalSwiping&&(s.swipeLeft=t+r*i),!0!==s.options.fade&&!1!==s.options.touchMove&&(!0===s.animating?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))))},t.prototype.swipeStart=function(e){var t,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return n.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==t?t.pageX:e.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==t?t.pageY:e.clientY,n.dragging=!0},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
vendor: 11,725 bytes, lines 721-747
721,t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},t.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,n,r=this,i=arguments[0],o=Array.prototype.slice.call(arguments,1),a=r.length;for(e=0;e<a;e++)if("object"==typeof i||void 0===i?r[e].slick=new t(r[e],i):n=r[e].slick[i].apply(r[e].slick,o),void 0!==n)return n;return r};var n})?r.apply(t,i):r)||(e.exports=o)}()},49:function(e,t,n){var r,i,o; 722/*! 723 * jQuery UI Widget 1.13.2 724 * http://jqueryui.com 725 * 726 * Copyright jQuery Foundation and other contributors 727 * Released under the MIT license. 728 * http://jquery.org/license 729 */!function(a){"use strict";i=[n(0),n(21)],void 0===(o="function"==typeof(r=function(e){var t=0,n=Array.prototype.hasOwnProperty,r=Array.prototype.slice;return e.cleanData=function(t){return function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)(r=e._data(i,"events"))&&r.remove&&e(i).triggerHandler("remove");t(n)}}(e.cleanData),e.widget=function(t,n,r){var i,o,a,s={},l=t.split(".")[0],c=l+"-"+(t=t.split(".")[1]);return r||(r=n,n=e.Widget),Array.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr.pseudos[c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},i=e[l][t],o=e[l][t]=function(e,t){if(!this||!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,i,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),(a=new n).options=e.widget.extend({},a.options),e.each(r,(function(e,t){s[e]="function"==typeof t?function(){function r(){return n.prototype[e].apply(this,arguments)}function i(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,o=this._superApply;return this._super=r,this._superApply=i,e=t.apply(this,arguments),this._super=n,this._superApply=o,e}}():t})),o.prototype=e.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||t},s,{constructor:o,namespace:l,widgetName:t,widgetFullName:c}),i?(e.each(i._childConstructors,(function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var i,o,a=r.call(arguments,1),s=0,l=a.length;s<l;s++)for(i in a[s])o=a[s][i],n.call(a[s],i)&&void 0!==o&&(e.isPlainObject(o)?t[i]=e.isPlainObject(t[i])?e.widget.extend({},t[i],o):e.widget.extend({},o):t[i]=o);return t},e.widget.bridge=function(t,n){var i=n.prototype.widgetFullName||t;e.fn[t]=function(o){var a="string"==typeof o,s=r.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each((function(){var n,r=e.data(this,i);return"instance"===o?(l=r,!1):r?"function"!=typeof r[o]||"_"===o.charAt(0)?e.error("no such method '"+o+"' for "+t+" widget instance"):(n=r[o].apply(r,s))!==r&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'")})):l=void 0:(s.length&&(o=e.widget.extend.apply(null,[o].concat(s))),this.each((function(){var t=e.data(this,i);t?(t.option(o||{}),t._init&&t._init()):e.data(this,i,new n(o,this))}))),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(n,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=t++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),n),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,n){t._removeClass(n,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var r,i,o,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},r=t.split("."),t=r.shift(),r.length){for(i=a[t]=e.widget.extend({},this.options[t]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(t=r.pop(),1===arguments.length)return void 0===i[t]?null:i[t];i[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=n}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,r,i;for(n in t)i=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&i&&i.length&&(r=e(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],r=this;function i(){var n=[];t.element.each((function(t,i){e.map(r.classesElementLookup,(function(e){return e})).some((function(e){return e.is(i)}))||n.push(i)})),r._on(e(n),{remove:"_untrackClassesElement"})}function o(o,a){var s,l;for(l=0;l<o.length;l++)s=r.classesElementLookup[o[l]]||e(),t.add?(i(),s=e(e.uniqueSort(s.get().concat(t.element.get())))):s=e(s.not(t.element).get()),r.classesElementLookup[o[l]]=s,n.push(o[l]),a&&t.classes[o[l]]&&n.push(t.classes[o[l]])}return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&o(t.keys.match(/\S+/g)||[],!0),t.extra&&o(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,(function(r,i){-1!==e.inArray(t.target,i)&&(n.classesElementLookup[r]=e(i.not(t.target).get()))})),this._off(e(t.target))},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,r){r="boolean"==typeof r?r:n;var i="string"==typeof e||null===e,o={extra:i?t:n,keys:i?e:t,element:i?this.element:e,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(t,n,r){var i,o=this;"boolean"!=typeof t&&(r=n,n=t,t=!1),r?(n=i=e(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),e.each(r,(function(r,a){function s(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||e.guid++);var l=r.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+o.eventNamespace,d=l[2];d?i.on(c,d,s):n.on(c,s)}))},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout((function(){return("string"==typeof e?n[e]:e).apply(n,arguments)}),t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,r){var i,o,a=this.options[t];if(r=r||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);return this.element.trigger(n,r),!("function"==typeof a&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,n){e.Widget.prototype["_"+t]=function(r,i,o){var a;"string"==typeof i&&(i={effect:i});var s=i?!0===i||"number"==typeof i?n:i.effect||n:t;"number"==typeof(i=i||{})?i={duration:i}:!0===i&&(i={}),a=!e.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&e.effects&&e.effects.effect[s]?r[t](i):s!==t&&r[s]?r[s](i.duration,i.easing,o):r.queue((function(n){e(this)[t](),o&&o.call(r[0]),n()}))}})),e.widget})?r.apply(t,i):r)||(e.exports=o)}()},59:function(e,t,n){var r,i,o; 730/*! 731 * jQuery UI Keycode 1.13.2 732 * http://jqueryui.com 733 * 734 * Copyright jQuery Foundation and other contributors 735 * Released under the MIT license. 736 * http://jquery.org/license 737 */!function(a){"use strict";i=[n(0),n(21)],void 0===(o="function"==typeof(r=function(e){return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?r.apply(t,i):r)||(e.exports=o)}()},60:function(e,t,n){var r,i,o; 738/*! 739 * jQuery UI Position 1.13.2 740 * http://jqueryui.com 741 * 742 * Copyright jQuery Foundation and other contributors 743 * Released under the MIT license. 744 * http://jquery.org/license 745 * 746 * http://api.jqueryui.com/position/ 747 */!function(a){"use strict";i=[n(0),n(21)],void 0===(o="function"==typeof(r=function(e){return function(){var t,n=Math.max,r=Math.abs,i=/left|center|right/,o=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,l=/%$/,c=e.fn.position;function d(e,t,n){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?n/100:1)]}function u(t,n){return parseInt(e.css(t,n),10)||0}function h(e){return null!=e&&e===e.window}function p(e){var t=e[0];return 9===t.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:h(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}e.position={scrollbarWidth:function(){if(void 0!==t)return t;var n,r,i=e("<div style='display:block;position:absolute;
vendor: 27,968 bytes, lines 747-752
747width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),o=i.children()[0];return e("body").append(i),n=o.offsetWidth,i.css("overflow","scroll"),n===(r=o.offsetWidth)&&(r=i[0].clientWidth),i.remove(),t=n-r},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),i="scroll"===n||"auto"===n&&t.width<t.element[0].scrollWidth;return{width:"scroll"===r||"auto"===r&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:i?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),r=h(n[0]),i=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:r,isDocument:i,offset:!r&&!i?e(t).offset():{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return c.apply(this,arguments);var l,h,f,m,g,v,y="string"==typeof(t=e.extend({},t)).of?e(document).find(t.of):e(t.of),b=e.position.getWithinInfo(t.within),_=e.position.getScrollInfo(b),w=(t.collision||"flip").split(" "),x={};return v=p(y),y[0].preventDefault&&(t.at="left top"),h=v.width,f=v.height,m=v.offset,g=e.extend({},m),e.each(["my","at"],(function(){var e,n,r=(t[this]||"").split(" ");1===r.length&&(r=i.test(r[0])?r.concat(["center"]):o.test(r[0])?["center"].concat(r):["center","center"]),r[0]=i.test(r[0])?r[0]:"center",r[1]=o.test(r[1])?r[1]:"center",e=a.exec(r[0]),n=a.exec(r[1]),x[this]=[e?e[0]:0,n?n[0]:0],t[this]=[s.exec(r[0])[0],s.exec(r[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===t.at[0]?g.left+=h:"center"===t.at[0]&&(g.left+=h/2),"bottom"===t.at[1]?g.top+=f:"center"===t.at[1]&&(g.top+=f/2),l=d(x.at,h,f),g.left+=l[0],g.top+=l[1],this.each((function(){var i,o,a=e(this),s=a.outerWidth(),c=a.outerHeight(),p=u(this,"marginLeft"),v=u(this,"marginTop"),C=s+p+u(this,"marginRight")+_.width,S=c+v+u(this,"marginBottom")+_.height,E=e.extend({},g),k=d(x.my,a.outerWidth(),a.outerHeight());"right"===t.my[0]?E.left-=s:"center"===t.my[0]&&(E.left-=s/2),"bottom"===t.my[1]?E.top-=c:"center"===t.my[1]&&(E.top-=c/2),E.left+=k[0],E.top+=k[1],i={marginLeft:p,marginTop:v},e.each(["left","top"],(function(n,r){e.ui.position[w[n]]&&e.ui.position[w[n]][r](E,{targetWidth:h,targetHeight:f,elemWidth:s,elemHeight:c,collisionPosition:i,collisionWidth:C,collisionHeight:S,offset:[l[0]+k[0],l[1]+k[1]],my:t.my,at:t.at,within:b,elem:a})})),t.using&&(o=function(e){var i=m.left-E.left,o=i+h-s,l=m.top-E.top,d=l+f-c,u={target:{element:y,left:m.left,top:m.top,width:h,height:f},element:{element:a,left:E.left,top:E.top,width:s,height:c},horizontal:o<0?"left":i>0?"right":"center",vertical:d<0?"top":l>0?"bottom":"middle"};h<s&&r(i+o)<h&&(u.horizontal="center"),f<c&&r(l+d)<f&&(u.vertical="middle"),n(r(i),r(o))>n(r(l),r(d))?u.important="horizontal":u.important="vertical",t.using.call(this,e,u)}),a.offset(e.extend(E,{using:o}))}))},e.ui.position={fit:{left:function(e,t){var r,i=t.within,o=i.isWindow?i.scrollLeft:i.offset.left,a=i.width,s=e.left-t.collisionPosition.marginLeft,l=o-s,c=s+t.collisionWidth-a-o;t.collisionWidth>a?l>0&&c<=0?(r=e.left+l+t.collisionWidth-a-o,e.left+=l-r):e.left=c>0&&l<=0?o:l>c?o+a-t.collisionWidth:o:l>0?e.left+=l:c>0?e.left-=c:e.left=n(e.left-s,e.left)},top:function(e,t){var r,i=t.within,o=i.isWindow?i.scrollTop:i.offset.top,a=t.within.height,s=e.top-t.collisionPosition.marginTop,l=o-s,c=s+t.collisionHeight-a-o;t.collisionHeight>a?l>0&&c<=0?(r=e.top+l+t.collisionHeight-a-o,e.top+=l-r):e.top=c>0&&l<=0?o:l>c?o+a-t.collisionHeight:o:l>0?e.top+=l:c>0?e.top-=c:e.top=n(e.top-s,e.top)}},flip:{left:function(e,t){var n,i,o=t.within,a=o.offset.left+o.scrollLeft,s=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=e.left-t.collisionPosition.marginLeft,d=c-l,u=c+t.collisionWidth-s-l,h="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];d<0?((n=e.left+h+p+f+t.collisionWidth-s-a)<0||n<r(d))&&(e.left+=h+p+f):u>0&&((i=e.left-t.collisionPosition.marginLeft+h+p+f-l)>0||r(i)<u)&&(e.left+=h+p+f)},top:function(e,t){var n,i,o=t.within,a=o.offset.top+o.scrollTop,s=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=e.top-t.collisionPosition.marginTop,d=c-l,u=c+t.collisionHeight-s-l,h="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,p="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,f=-2*t.offset[1];d<0?((i=e.top+h+p+f+t.collisionHeight-s-a)<0||i<r(d))&&(e.top+=h+p+f):u>0&&((n=e.top-t.collisionPosition.marginTop+h+p+f-l)>0||r(n)<u)&&(e.top+=h+p+f)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}(),e.ui.position})?r.apply(t,i):r)||(e.exports=o)}()},61:function(e,t,n){var r,i,o;!function(a){"use strict";i=[n(0),n(21)],void 0===(o="function"==typeof(r=function(e){return e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t}})?r.apply(t,i):r)||(e.exports=o)}()},64:function(e,t,n){var r,i,o; 748/*! 749 * Datepicker for Bootstrap v1.10.1 (https://github.com/uxsolutions/bootstrap-datepicker) 750 * 751 * Licensed under the Apache License v2.0 (https://www.apache.org/licenses/LICENSE-2.0) 752 */i=[n(0)],void 0===(o="function"==typeof(r=function(e,t){function n(){return new Date(Date.UTC.apply(Date,arguments))}function r(){var e=new Date;return n(e.getFullYear(),e.getMonth(),e.getDate())}function i(e,t){return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e.getUTCDate()===t.getUTCDate()}function o(n,r){return function(){return r!==t&&e.fn.datepicker.deprecated(r),this[n].apply(this,arguments)}}var a,s=(a={get:function(e){return this.slice(e)[0]},contains:function(e){for(var t=e&&e.valueOf(),n=0,r=this.length;n<r;n++)if(0<=this[n].valueOf()-t&&this[n].valueOf()-t<864e5)return n;return-1},remove:function(e){this.splice(e,1)},replace:function(e){e&&(Array.isArray(e)||(e=[e]),this.clear(),this.push.apply(this,e))},clear:function(){this.length=0},copy:function(){var e=new s;return e.replace(this),e}},function(){var t=[];return t.push.apply(t,arguments),e.extend(t,a),t}),l=function(t,n){e.data(t,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(n),this.dates=new s,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=e(t),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"),this.component&&0===this.component.length&&(this.component=!1),null===this.o.isInline?this.isInline=!this.component&&!this.isInput:this.isInline=this.o.isInline,this.picker=e(v.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",(function(e,t){return Number(t)+1})),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};l.prototype={constructor:l,_resolveViewName:function(t){return e.each(v.viewModes,(function(n,r){if(t===n||-1!==e.inArray(t,r.names))return t=n,!1})),t},_resolveDaysOfWeek:function(t){return Array.isArray(t)||(t=t.split(/[,\s]*/)),e.map(t,Number)},_check_template:function(n){try{return n!==t&&""!==n&&((n.match(/[<>]/g)||[]).length<=0||e(n).length>0)}catch(e){return!1}},_process_options:function(t){this._o=e.extend({},this._o,t);var i=this.o=e.extend({},this._o),o=i.language;g[o]||(o=o.split("-")[0],g[o]||(o=f.language)),i.language=o,i.startView=this._resolveViewName(i.startView),i.minViewMode=this._resolveViewName(i.minViewMode),i.maxViewMode=this._resolveViewName(i.maxViewMode),i.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,i.startView)),!0!==i.multidate&&(i.multidate=Number(i.multidate)||!1,!1!==i.multidate&&(i.multidate=Math.max(0,i.multidate))),i.multidateSeparator=String(i.multidateSeparator),i.weekStart%=7,i.weekEnd=(i.weekStart+6)%7;var a=v.parseFormat(i.format);i.startDate!==-1/0&&(i.startDate?i.startDate instanceof Date?i.startDate=this._local_to_utc(this._zero_time(i.startDate)):i.startDate=v.parseDate(i.startDate,a,i.language,i.assumeNearbyYear):i.startDate=-1/0),i.endDate!==1/0&&(i.endDate?i.endDate instanceof Date?i.endDate=this._local_to_utc(this._zero_time(i.endDate)):i.endDate=v.parseDate(i.endDate,a,i.language,i.assumeNearbyYear):i.endDate=1/0),i.daysOfWeekDisabled=this._resolveDaysOfWeek(i.daysOfWeekDisabled||[]),i.daysOfWeekHighlighted=this._resolveDaysOfWeek(i.daysOfWeekHighlighted||[]),i.datesDisabled=i.datesDisabled||[],Array.isArray(i.datesDisabled)||(i.datesDisabled=i.datesDisabled.split(",")),i.datesDisabled=e.map(i.datesDisabled,(function(e){return v.parseDate(e,a,i.language,i.assumeNearbyYear)}));var s=String(i.orientation).toLowerCase().split(/\s+/g),l=i.orientation.toLowerCase();if(s=e.grep(s,(function(e){return/^auto|left|right|top|bottom$/.test(e)})),i.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===s.length)switch(s[0]){case"top":case"bottom":i.orientation.y=s[0];break;case"left":case"right":i.orientation.x=s[0]}else l=e.grep(s,(function(e){return/^left|right$/.test(e)})),i.orientation.x=l[0]||"auto",l=e.grep(s,(function(e){return/^top|bottom$/.test(e)})),i.orientation.y=l[0]||"auto";if(i.defaultViewDate instanceof Date||"string"==typeof i.defaultViewDate)i.defaultViewDate=v.parseDate(i.defaultViewDate,a,i.language,i.assumeNearbyYear);else if(i.defaultViewDate){var c=i.defaultViewDate.year||(new Date).getFullYear(),d=i.defaultViewDate.month||0,u=i.defaultViewDate.day||1;i.defaultViewDate=n(c,d,u)}else i.defaultViewDate=r()},_applyEvents:function(e){for(var n,r,i,o=0;o<e.length;o++)n=e[o][0],2===e[o].length?(r=t,i=e[o][1]):3===e[o].length&&(r=e[o][1],i=e[o][2]),n.on(i,r)},_unapplyEvents:function(e){for(var n,r,i,o=0;o<e.length;o++)n=e[o][0],2===e[o].length?(i=t,r=e[o][1]):3===e[o].length&&(i=e[o][1],r=e[o][2]),n.off(r,i)},_buildEvents:function(){var t={keyup:e.proxy((function(t){-1===e.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()}),this),keydown:e.proxy(this.keydown,this),paste:e.proxy(this.paste,this)};!0===this.o.showOnFocus&&(t.focus=e.proxy(this.show,this)),this.isInput?this._events=[[this.element,t]]:this.component&&this.inputField.length?this._events=[[this.inputField,t],[this.component,{click:e.proxy(this.show,this)}]]:this._events=[[this.element,{click:e.proxy(this.show,this),keydown:e.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:e.proxy((function(e){this._focused_from=e.target}),this)}],[this.element,{blur:e.proxy((function(e){this._focused_from=e.target}),this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":e.proxy((function(e){this.update(e.date)}),this)}]),this._secondaryEvents=[[this.picker,{click:e.proxy(this.click,this)}],[this.picker,".prev, .next",{click:e.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:e.proxy(this.dayCellClick,this)}],[e(window),{resize:e.proxy(this.place,this)}],[e(document),{"mousedown touchstart":e.proxy((function(e){this.element.is(e.target)||this.element.find(e.target).length||this.picker.is(e.target)||this.picker.find(e.target).length||this.isInline||this.hide()}),this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,n){var r=n||this.dates.get(-1),i=this._utc_to_local(r);this.element.trigger({type:t,date:i,viewMode:this.viewMode,dates:e.map(this.dates,this._utc_to_local),format:e.proxy((function(e,t){0===arguments.length?(e=this.dates.length-1,t=this.o.format):"string"==typeof e&&(t=e,e=this.dates.length-1),t=t||this.o.format;var n=this.dates.get(e);return v.formatDate(n,t,this.o.language)}),this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&e(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")||(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide")),this},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(t){var n;if(t.originalEvent.clipboardData&&t.originalEvent.clipboardData.types&&-1!==e.inArray("text/plain",t.originalEvent.clipboardData.types))n=t.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;n=window.clipboardData.getData("Text")}this.setDate(n),this.update(),t.preventDefault()},_utc_to_local:function(e){if(!e)return e;var t=new Date(e.getTime()+6e4*e.getTimezoneOffset());return t.getTimezoneOffset()!==e.getTimezoneOffset()&&(t=new Date(e.getTime()+6e4*t.getTimezoneOffset())),t},_local_to_utc:function(e){return e&&new Date(e.getTime()-6e4*e.getTimezoneOffset())},_zero_time:function(e){return e&&new Date(e.getFullYear(),e.getMonth(),e.getDate())},_zero_utc_time:function(e){return e&&n(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())},getDates:function(){return e.map(this.dates,this._utc_to_local)},getUTCDates:function(){return e.map(this.dates,(function(e){return new Date(e)}))},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var e=this.dates.get(-1);return e!==t?new Date(e):null},clearDates:function(){this.inputField.val(""),this._trigger("changeDate"),this.update(),this.o.autoclose&&this.hide()},setDates:function(){var e=Array.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,e),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=Array.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,e.map(t,this._utc_to_local)),this},setDate:o("setDates"),setUTCDate:o("setUTCDates"),remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var e=this.getFormattedDate();return this.inputField.val(e),this},getFormattedDate:function(n){n===t&&(n=this.o.format);var r=this.o.language;return e.map(this.dates,(function(e){return v.formatDate(e,n,r)})).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(e){return this._process_options({startDate:e}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(e){return this._process_options({endDate:e}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(e){return this._process_options({daysOfWeekDisabled:e}),this.update(),this},setDaysOfWeekHighlighted:function(e){return this._process_options({daysOfWeekHighlighted:e}),this.update(),this},setDatesDisabled:function(e){return this._process_options({datesDisabled:e}),this.update(),this},place:function(){if(this.isInline)return this;var t=this.picker.outerWidth(),n=this.picker.outerHeight(),r=e(this.o.container),i=r.width(),o="body"===this.o.container?e(document).scrollTop():r.scrollTop(),a=r.offset(),s=[0];this.element.parents().each((function(){var t=e(this).css("z-index");"auto"!==t&&0!==Number(t)&&s.push(Number(t))}));var l=Math.max.apply(Math,s)+this.o.zIndexOffset,c=this.component?this.component.parent().offset():this.element.offset(),d=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),u=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),h=c.left-a.left,p=c.top-a.top;"body"!==this.o.container&&(p+=o),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(h-=t-u)):c.left<0?(this.picker.addClass("datepicker-orient-left"),h-=c.left-10):h+t>i?(this.picker.addClass("datepicker-orient-right"),h+=u-t):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var f=this.o.orientation.y;if("auto"===f&&(f=-o+p-n<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+f),"top"===f?p-=n+parseInt(this.picker.css("padding-top")):p+=d,this.o.rtl){var m=i-(h+u);this.picker.css({top:p,right:m,zIndex:l})}else this.picker.css({top:p,left:h,zIndex:l});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),n=[],r=!1;return arguments.length?(e.each(arguments,e.proxy((function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),n.push(t)}),this)),r=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=e.map(n,e.proxy((function(e){return v.parseDate(e,this.o.format,this.o.language,this.o.assumeNearbyYear)}),this)),n=e.grep(n,e.proxy((function(e){return!this.dateWithinRange(e)||!e}),this),!0),this.dates.replace(n),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),r?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&r&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,n="<tr>";for(this.o.calendarWeeks&&(n+='<th class="cw"> </th>');t<this.o.weekStart+7;)n+='<th class="dow',-1!==e.inArray(t,this.o.daysOfWeekDisabled)&&(n+=" disabled"),n+='">'+g[this.o.language].daysMin[t++%7]+"</th>";n+="</tr>",this.picker.find(".datepicker-days thead").append(n)}},fillMonths:function(){for(var e=this._utc_to_local(this.viewDate),t="",n=0;n<12;n++)t+='<span class="month'+(e&&e.getMonth()===n?" focused":"")+'">'+g[this.o.language].monthsShort[n]+"</span>";this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=e.map(t,(function(e){return e.valueOf()})):delete this.range,this.fill()},getClassNames:function(t){var n=[],o=this.viewDate.getUTCFullYear(),a=this.viewDate.getUTCMonth(),s=r();return t.getUTCFullYear()<o||t.getUTCFullYear()===o&&t.getUTCMonth()<a?n.push("old"):(t.getUTCFullYear()>o||t.getUTCFullYear()===o&&t.getUTCMonth()>a)&&n.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&i(t,s)&&n.push("today"),-1!==this.dates.contains(t)&&n.push("active"),this.dateWithinRange(t)||n.push("disabled"),this.dateIsDisabled(t)&&n.push("disabled","disabled-date"),-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&n.push("highlighted"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&n.push("range"),-1!==e.inArray(t.valueOf(),this.range)&&n.push("selected"),t.valueOf()===this.range[0]&&n.push("range-start"),t.valueOf()===this.range[this.range.length-1]&&n.push("range-end")),n},_fill_yearsView:function(n,r,i,o,a,s,l){for(var c,d,u,h="",p=i/10,f=this.picker.find(n),m=Math.floor(o/i)*i,g=m+9*p,v=Math.floor(this.viewDate.getFullYear()/p)*p,y=e.map(this.dates,(function(e){return Math.floor(e.getUTCFullYear()/p)*p})),b=m-p;b<=g+p;b+=p)c=[r],d=null,b===m-p?c.push("old"):b===g+p&&c.push("new"),-1!==e.inArray(b,y)&&c.push("active"),(b<a||b>s)&&c.push("disabled"),b===v&&c.push("focused"),l!==e.noop&&((u=l(new Date(b,0,1)))===t?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u}),!1===u.enabled&&c.push("disabled"),u.classes&&(c=c.concat(u.classes.split(/\s+/))),u.tooltip&&(d=u.tooltip)),h+='<span class="'+c.join(" ")+'"'+(d?' title="'+d+'"':"")+">"+b+"</span>";f.find(".datepicker-switch").text(m+"-"+g),f.find("td").html(h)},fill:function(){var i,o,a=new Date(this.viewDate),s=a.getUTCFullYear(),l=a.getUTCMonth(),c=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,d=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,u=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,p=g[this.o.language].today||g.en.today||"",f=g[this.o.language].clear||g.en.clear||"",m=g[this.o.language].titleFormat||g.en.titleFormat,y=r(),b=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&y>=this.o.startDate&&y<=this.o.endDate&&!this.weekOfDateIsDisabled(y);if(!isNaN(s)&&!isNaN(l)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(a,m,this.o.language)),this.picker.find("tfoot .today").text(p).css("display",b?"table-cell":"none"),this.picker.find("tfoot .clear").text(f).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var _=n(s,l,0),w=_.getUTCDate();_.setUTCDate(w-(_.getUTCDay()-this.o.weekStart+7)%7);var x=new Date(_);_.getUTCFullYear()<100&&x.setUTCFullYear(_.getUTCFullYear()),x.setUTCDate(x.getUTCDate()+42),x=x.valueOf();for(var C,S,E=[];_.valueOf()<x;){if((C=_.getUTCDay())===this.o.weekStart&&(E.push("<tr>"),this.o.calendarWeeks)){var k=new Date(+_+(this.o.weekStart-C-7)%7*864e5),T=new Date(Number(k)+(11-k.getUTCDay())%7*864e5),O=new Date(Number(O=n(T.getUTCFullYear(),0,1))+(11-O.getUTCDay())%7*864e5),$=(T-O)/864e5/7+1;E.push('<td class="cw">'+$+"</td>")}(S=this.getClassNames(_)).push("day");var P=_.getUTCDate();this.o.beforeShowDay!==e.noop&&((o=this.o.beforeShowDay(this._utc_to_local(_)))===t?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1===o.enabled&&S.push("disabled"),o.classes&&(S=S.concat(o.classes.split(/\s+/))),o.tooltip&&(i=o.tooltip),o.content&&(P=o.content)),S="function"==typeof e.uniqueSort?e.uniqueSort(S):e.unique(S),E.push('<td class="'+S.join(" ")+'"'+(i?' title="'+i+'"':"")+' data-date="'+_.getTime().toString()+'">'+P+"</td>"),i=null,C===this.o.weekEnd&&E.push("</tr>"),_.setUTCDate(_.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(E.join(""));var I=g[this.o.language].monthsTitle||g.en.monthsTitle||"Months",L=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?I:s).end().find("tbody span").removeClass("active");if(e.each(this.dates,(function(e,t){t.getUTCFullYear()===s&&L.eq(t.getUTCMonth()).addClass("active")})),(s<c||s>u)&&L.addClass("disabled"),s===c&&L.slice(0,d).addClass("disabled"),s===u&&L.slice(h+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var A=this;e.each(L,(function(n,r){var i=new Date(s,n,1),o=A.o.beforeShowMonth(i);o===t?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1!==o.enabled||e(r).hasClass("disabled")||e(r).addClass("disabled"),o.classes&&e(r).addClass(o.classes),o.tooltip&&e(r).prop("title",o.tooltip)}))}this._fill_yearsView(".datepicker-years","year",10,s,c,u,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,s,c,u,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,s,c,u,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var e,t,n=new Date(this.viewDate),r=n.getUTCFullYear(),i=n.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,a=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=1;switch(this.viewMode){case 4:c*=10;case 3:c*=10;case 2:c*=10;case 1:e=Math.floor(r/c)*c<=o,t=Math.floor(r/c)*c+c>s;break;case 0:e=r<=o&&i<=a,t=r>=s&&i>=l}this.picker.find(".prev").toggleClass("disabled",e),this.picker.find(".next").toggleClass("disabled",t)}},click:function(t){var i,o,a;t.preventDefault(),t.stopPropagation(),(i=e(t.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),i.hasClass("today")&&!i.hasClass("day")&&(this.setViewMode(0),this._setDate(r(),"linked"===this.o.todayBtn?null:"view")),i.hasClass("clear")&&this.clearDates(),i.hasClass("disabled")||(i.hasClass("month")||i.hasClass("year")||i.hasClass("decade")||i.hasClass("century"))&&(this.viewDate.setUTCDate(1),1===this.viewMode?(a=i.parent().find("span").index(i),o=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(a)):(a=0,o=Number(i.text()),this.viewDate.setUTCFullYear(o)),this._trigger(v.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(n(o,a,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(t){var n=e(t.currentTarget).data("date"),r=new Date(n);this.o.updateViewDate&&(r.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),r.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(r)},navArrowsClick:function(t){var n=e(t.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*v.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(v.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e||this.dates.clear(),-1!==t?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):!1===this.o.multidate?(this.dates.clear(),this.dates.push(e)):this.dates.push(e),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var n=new Date(e);return n.setUTCDate(e.getUTCDate()+t),n},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!(n=e)||isNaN(n.getTime()))return this.o.defaultViewDate;var n;if(!t)return e;var r,i,o=new Date(e.valueOf()),a=o.getUTCDate(),s=o.getUTCMonth(),l=Math.abs(t);if(t=t>0?1:-1,1===l)i=-1===t?function(){return o.getUTCMonth()===s}:function(){return o.getUTCMonth()!==r},r=s+t,o.setUTCMonth(r),r=(r+12)%12;else{for(var c=0;c<l;c++)o=this.moveMonth(o,t);
752r=o.getUTCMonth(),o.setUTCDate(a),i=function(){return r!==o.getUTCMonth()}}for(;i();)o.setUTCDate(--a),o.setUTCMonth(r);return o},moveYear:function(e,t){return this.moveMonth(e,12*t)},moveAvailableDate:function(e,t,n){do{if(e=this[n](e,t),!this.dateWithinRange(e))return!1;n="moveDay"}while(this.dateIsDisabled(e));return e},weekOfDateIsDisabled:function(t){return-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(t){return this.weekOfDateIsDisabled(t)||e.grep(this.o.datesDisabled,(function(e){return i(t,e)})).length>0},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(this.picker.is(":visible")){var t,n,r=!1,i=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(n=this.moveAvailableDate(i,t,"moveYear"))&&this._trigger("changeYear",this.viewDate):e.shiftKey?(n=this.moveAvailableDate(i,t,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===e.keyCode||39===e.keyCode?n=this.moveAvailableDate(i,t,"moveDay"):this.weekOfDateIsDisabled(i)||(n=this.moveAvailableDate(i,t,"moveWeek")):1===this.viewMode?(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(i,t,"moveMonth")):2===this.viewMode&&(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(i,t,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;i=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(i),r=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}r&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==e.keyCode&&27!==e.keyCode||(this.show(),e.stopPropagation())},setViewMode:function(e){this.viewMode=e,this.picker.children("div").hide().filter(".datepicker-"+v.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var c=function(t,n){e.data(t,"datepicker",this),this.element=e(t),this.inputs=e.map(n.inputs,(function(e){return e.jquery?e[0]:e})),delete n.inputs,this.keepEmptyValues=n.keepEmptyValues,delete n.keepEmptyValues,p.call(e(this.inputs),n).on("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,(function(t){return e.data(t,"datepicker")})),this.updateDates()};function d(t,n){var r=e(t).data(),i={},o=new RegExp("^"+n.toLowerCase()+"([A-Z])");function a(e,t){return t.toLowerCase()}for(var s in n=new RegExp("^"+n.toLowerCase()),r)n.test(s)&&(i[s.replace(o,a)]=r[s]);return i}function u(t){var n={};if(g[t]||(t=t.split("-")[0],g[t])){var r=g[t];return e.each(m,(function(e,t){t in r&&(n[t]=r[t])})),n}}c.prototype={updateDates:function(){this.dates=e.map(this.pickers,(function(e){return e.getUTCDate()})),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,(function(e){return e.valueOf()}));
vendor: 4,971 bytes, line 752
752e.each(this.pickers,(function(e,n){n.setRange(t)}))},clearDates:function(){e.each(this.pickers,(function(e,t){t.clearDates()}))},dateUpdated:function(n){if(!this.updating){this.updating=!0;var r=e.data(n.target,"datepicker");if(r!==t){var i=r.getUTCDate(),o=this.keepEmptyValues,a=e.inArray(n.target,this.inputs),s=a-1,l=a+1,c=this.inputs.length;if(-1!==a){if(e.each(this.pickers,(function(e,t){t.getUTCDate()||t!==r&&o||t.setUTCDate(i)})),i<this.dates[s])for(;s>=0&&i<this.dates[s]&&(this.pickers[s].element.val()||"").length>0;)this.pickers[s--].setUTCDate(i);else if(i>this.dates[l])for(;l<c&&i>this.dates[l]&&(this.pickers[l].element.val()||"").length>0;)this.pickers[l++].setUTCDate(i);this.updateDates(),delete this.updating}}}},destroy:function(){e.map(this.pickers,(function(e){e.destroy()})),e(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var h=e.fn.datepicker,p=function(n){var r,i=Array.apply(null,arguments);if(i.shift(),this.each((function(){var t=e(this),o=t.data("datepicker"),a="object"==typeof n&&n;if(!o){var s=d(this,"date"),h=u(e.extend({},f,s,a).language),p=e.extend({},f,h,s,a);t.hasClass("input-daterange")||p.inputs?(e.extend(p,{inputs:p.inputs||t.find("input").toArray()}),o=new c(this,p)):o=new l(this,p),t.data("datepicker",o)}"string"==typeof n&&"function"==typeof o[n]&&(r=o[n].apply(o,i))})),r===t||r instanceof l||r instanceof c)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+n+" function)");return r};e.fn.datepicker=p;var f=e.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,beforeShowYear:e.noop,beforeShowDecade:e.noop,beforeShowCentury:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",isInline:null,keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},m=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=l;var g=e.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(e){if("function"==typeof e.toValue&&"function"==typeof e.toDisplay)return e;var t=e.replace(this.validParts,"\0").split("\0"),n=e.match(this.validParts);if(!t||!t.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:t,parts:n}},parseDate:function(n,i,o,a){if(!n)return t;if(n instanceof Date)return n;if("string"==typeof i&&(i=v.parseFormat(i)),i.toValue)return i.toValue(n,i,o);var s,c,d,u,h,p={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},f={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(n in f&&(n=f[n]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(n)){for(s=n.match(/([\-+]\d+)([dmwy])/gi),n=new Date,u=0;u<s.length;u++)c=s[u].match(/([\-+]\d+)([dmwy])/i),d=Number(c[1]),h=p[c[2].toLowerCase()],n=l.prototype[h](n,d);return l.prototype._zero_utc_time(n)}s=n&&n.match(this.nonpunctuation)||[];var m,y,b={},_=["yyyy","yy","M","MM","m","mm","d","dd"],w={yyyy:function(e,t){return e.setUTCFullYear(a?(!0===(r=a)&&(r=10),(n=t)<100&&(n+=2e3)>(new Date).getFullYear()+r&&(n-=100),n):t);var n,r},m:function(e,t){if(isNaN(e))return e;for(t-=1;t<0;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};w.yy=w.yyyy,w.M=w.MM=w.mm=w.m,w.dd=w.d,n=r();var x=i.parts.slice();function C(){var e=this.slice(0,s[u].length),t=s[u].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}if(s.length!==x.length&&(x=e(x).filter((function(t,n){return-1!==e.inArray(n,_)}
752)).toArray()),s.length===x.length){var S,E,k;for(u=0,S=x.length;u<S;u++){if(m=parseInt(s[u],10),c=x[u],isNaN(m))switch(c){case"MM":y=e(g[o].months).filter(C),m=e.inArray(y[0],g[o].months)+1;break;case"M":y=e(g[o].monthsShort).filter(C),m=e.inArray(y[0],g[o].monthsShort)+1}b[c]=m}for(u=0;u<_.length;u++)(k=_[u])in b&&!isNaN(b[k])&&(E=new Date(n),w[k](E,b[k]),isNaN(E)||(n=E))}return n},formatDate:function(t,n,r){if(!t)return"";if("string"==typeof n&&(n=v.parseFormat(n)),n.toDisplay)return n.toDisplay(t,n,r);var i={d:t.getUTCDate(),D:g[r].daysShort[t.getUTCDay()],DD:g[r].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:g[r].monthsShort[t.getUTCMonth()],MM:g[r].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};i.dd=(i.d<10?"0":"")+i.d,i.mm=(i.m<10?"0":"")+i.m,t=[];for(var o=e.extend([],n.separators),a=0,s=n.parts.length;a<=s;a++)o.length&&t.push(o.shift()),t.push(i[n.parts[a]]);return t.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+f.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+f.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};v.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+v.headTemplate+"<tbody></tbody>"+v.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+"</table></div></div>",e.fn.datepicker.DPGlobal=v,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=h,this},e.fn.datepicker.version="1.10.1",e.fn.datepicker.deprecated=function(e){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+e)},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',(function(t){var n=e(this);n.data("datepicker")||(t.preventDefault(),p.call(n,"show"))})),e((function(){p.call(e('[data-provide="datepicker-inline"]'))}))})?r.apply(t,i):r)||(e.exports=o)},65:function(e,t,n){var r,i;!function(){"use strict";void 0===(i="function"==typeof(r=["jquery","./data","./disable-selection","./focusable","./form","./ie","./keycode","./labels","./jquery-patch.js","./plugin","./safe-active-element","./safe-blur","./scroll-parent","./tabbable","./unique-id","./version"])?r.call(t,n,t,e):r)||(e.exports=i)}()},66:function(e,t,n){var r,i,o; 753/*! 754 * jQuery UI Autocomplete 1.13.2 755 * http://jqueryui.com 756 * 757 * Copyright jQuery Foundation and other contributors 758 * Released under the MIT license. 759 * http://jquery.org/license 760 */!function(a){"use strict";i=[n(0),n(67),n(59),n(60),n(61),n(21),n(49)],void 0===(o="function"==typeof(r=function(e){return e.widget("ui.autocomplete",{version:"1.13.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var t,n,r,i=this.element[0].nodeName.toLowerCase(),o="textarea"===i,a="input"===i;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(i){if(this.element.prop("readOnly"))return t=!0,r=!0,void(n=!0);t=!1,r=!1,n=!1;var o=e.ui.keyCode;switch(i.keyCode){case o.PAGE_UP:t=!0,this._move("previousPage",i);break;case o.PAGE_DOWN:t=!0,this._move("nextPage",i);break;case o.UP:t=!0,this._keyEvent("previous",i);break;case o.DOWN:t=!0,this._keyEvent("next",i);break;case o.ENTER:this.menu.active&&(t=!0,i.preventDefault(),this.menu.select(i));break;case o.TAB:this.menu.active&&this.menu.select(i);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(i),i.preventDefault());break;default:n=!0,this._searchTimeout(i)}},keypress:function(r){if(t)return t=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||r.preventDefault());if(!n){var i=e.ui.keyCode;switch(r.keyCode){case i.PAGE_UP:this._move("previousPage",r);break;case i.PAGE_DOWN:this._move("nextPage",r);break;case i.UP:this._keyEvent("previous",r);break;case i.DOWN:this._keyEvent("next",r)}}},input:function(e){if(r)return r=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 14,096 bytes, lines 760-768
760)},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=e("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(t,n){var r,i;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",(function(){e(t.target).trigger(t.originalEvent)}));i=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:i})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(i.value),(r=n.item.attr("aria-label")||i.value)&&String.prototype.trim.call(r).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(e("<div>").text(r))}),100))},menuselect:function(t,n){var r=n.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==e.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=i,this._delay((function(){this.previous=i,this.selectedItem=r}))),!1!==this._trigger("select",t,{item:r})&&this._value(r.value),this.term=this._value(),this.close(t),this.selectedItem=r}}),this.liveRegion=e("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var n=this.menu.element[0];return t.target===this.element[0]||t.target===n||e.contains(n,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,n,r=this;Array.isArray(this.options.source)?(t=this.options.source,this.source=function(n,r){r(e.ui.autocomplete.filter(t,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(t,i){r.xhr&&r.xhr.abort(),r.xhr=e.ajax({url:n,data:t,dataType:"json",success:function(e){i(e)},error:function(){i([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay((function(){var t=this.term===this._value(),n=this.menu.element.is(":visible"),r=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;t&&(!t||n||r)||(this.selectedItem=null,this.search(null,e))}),this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,(function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})}))},_suggest:function(t){var n=this.menu.element.empty();this._renderMenu(n,t),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,n){var r=this;e.each(n,(function(e,n){r._renderItemData(t,n)}))},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,n){return e("<li>").append(e("<div>").text(n.label)).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return"inherit"===t?this._isContentEditable(e.parent()):"true"===t}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,n){var r=new RegExp(e.ui.autocomplete.escapeRegex(n),"i");return e.grep(t,(function(e){return r.test(e.label||e.value||e)}))}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(e("<div>").text(n))}),100))}}),e.ui.autocomplete})?r.apply(t,i):r)||(e.exports=o)}()},67:function(e,t,n){var r,i,o; 761/*! 762 * jQuery UI Menu 1.13.2 763 * http://jqueryui.com 764 * 765 * Copyright jQuery Foundation and other contributors 766 * Released under the MIT license. 767 * http://jquery.org/license 768 */!function(a){"use strict";i=[n(0),n(59),n(60),n(61),n(68),n(21),n(49)],void 0===(o="function"==typeof(r=function(e){return e.widget("ui.menu",{version:"1.13.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(t){var n=e(t.target),r=e(e.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&r.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this._menuItems().first();t||this.focus(e,n)},blur:function(t){this._delay((function(){!e.contains(this.element[0],e.ui.safeActiveElement(this.document[0]))&&this.collapseAll(t)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(t){if(!this.previousFilter&&(t.clientX!==this.lastMousePosition.x||t.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:t.clientX,y:t.clientY};var n=e(t.target).closest(".ui-menu-item"),r=e(t.currentTarget);n[0]===r[0]&&(r.is(".ui-state-active")||(this._removeClass(r.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,r)))}},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each((function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()}))},_keydown:function(t){var n,r,i,o,a=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:a=!1,r=this.previousFilter||"",o=!1,i=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===r?o=!0:i=r+i,n=this._filterMenuItems(i),(n=o&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(i=String.fromCharCode(t.keyCode),n=this._filterMenuItems(i)),n.length?(this.focus(t,n),this.previousFilter=i,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}a&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,n,r,i,o=this,a=this.options.icons.submenu,s=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),n=s.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var t=e(this),n=t.prev(),r=e("<span>").data("ui-menu-submenu-caret",!0);o._addClass(r,"ui-menu-icon","ui-icon "+a),n.attr("aria-haspopup","true").prepend(r),t.attr("aria-labelledby",n.attr("id"))})),this._addClass(n,"ui-menu","ui-widget ui-widget-content ui-front"),(t=s.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var t=e(this);o._isDivider(t)&&o._addClass(t,"ui-menu-divider","ui-widget-content")})),i=(r=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(r,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var n,r,i;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),r=this.active.children(".ui-menu-item-wrapper"),this._addClass(r,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",r.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(n=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(n),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var n,r,i,o,a,s;this._hasScroll()&&(n=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,r=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-n-r,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),s=t.outerHeight(),i<0?this.activeMenu.scrollTop(o+i):i+s>a&&this.activeMenu.scrollTop(o+i-a+s))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(e)}),this.delay))},_open:function(t){var n=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(t,n){clearTimeout(this.timer),this.timer=this._delay((function(){var r=n?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element),this._close(r),this.blur(t),this._removeClass(r.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=r}),n?0:this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
768se")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay((function(){this.focus(e,t)})))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,n){var r;this.active&&(r="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first()),r&&r.length&&this.active||(r=this._menuItems(this.activeMenu)[t]()),this.focus(n,r)},nextPage:function(t){var n,r,i;this.active?this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,i=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(i+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each((function(){return(n=e(this)).offset().top-r-i<0})),this.focus(t,n)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var n,r,i;this.active?this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,i=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(i+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each((function(){return(n=e(this)).offset().top-r+i>0})),this.focus(t,n)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,n)},_filterMenuItems:function(t){var n=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),r=new RegExp("^"+n,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter((function(){return r.test(String.prototype.trim.call(e(this).children(".ui-menu-item-wrapper").text()))}))}})})?r.apply(t,i):r)||(e.exports=o)}()},68:function(e,t,n){var r,i,o; 769/*! 770 * jQuery UI Unique ID 1.13.2 771 * http://jqueryui.com 772 * 773 * Copyright jQuery Foundation and other contributors 774 * Released under the MIT license. 775 * http://jquery.org/license 776 */!function(a){"use strict";i=[n(0),n(21)],void 0===(o="function"==typeof(r=function(e){return e.fn.extend({uniqueId:(t=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++t)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")}))}});var t})?r.apply(t,i):r)||(e.exports=o)}()},69:function(t,n,r){"use strict";r.r(n);var i=r(0),o=r.n(i),a=function(){document.getElementsByClassName("cmp-panelcontainer-title");var e=function(e){var t=e.find(".slick-list"),n=t.length?t.innerWidth():e.innerWidth();if(!n)return 3;var r=parseFloat(t.find(".slick-track").css("gap"))||0,i=(n-2*r)/3-10;return i<=0?3:(n+r)/(i+r)};function t(e){var t=e.$slider[0].closest(".cmp-container"),n=o()(t).find(".slick-dots"),r=o()(t).find(".cmp-carousel-pagination"),i=o()(t).find(".slick-track");if(n.length&&r.length){var a=n.width(),s=2*parseFloat(i.css("gap").replace("px","")),l=parseFloat(n.css("left").replace("px","")),c=parseInt(a,10)+parseInt(l,10)+parseInt(s,10);r.css("margin-left","".concat(c,"px"))}}var n=function(){o()(".cmp-whatsnext-carousel .cmp-container").each((function(){var e=o()(this);e.find(".slick-prev, .slick-next").each((function(){var t=o()(this);if(t.hasClass("slick-disabled")){if(t.attr({tabindex:"-1","aria-disabled":"true"}),document.activeElement===this){var n=e.find(".slick-prev:not(.slick-disabled), .slick-next:not(.slick-disabled)").first();n.length?n.focus():t.blur()}}else t.attr({tabindex:"0","aria-disabled":"false"})}))}))},r=function(){o()(".cmp-whatsnext-carousel .cmp-container").each((function(){var n=o()(this),r=window.innerWidth<=1024,i=n.hasClass("slick-initialized"),a=n.closest(".cmp-watchnext-carousel-bottom-layout").length>0;if(r){if(i&&n.slick("unslick"),n.toggleClass("cmp-mobile-scroll",a),a){var s=n.get(0);
776s.dataset.finalPositionAdjustment||(s.addEventListener("scroll",(function(){!function(e){var t=e.scrollWidth-e.clientWidth;if(!(t<=0)){e.scrollLeft>=t-300?e.dataset.finalMarginApplied||(e.style.marginLeft="calc(var(--space-s) * -1)",e.dataset.finalMarginApplied="true"):e.dataset.finalMarginApplied&&(e.style.marginLeft="",delete e.dataset.finalMarginApplied)}}(s)})),s.dataset.finalPositionAdjustment="true")}}else{n.removeClass("cmp-mobile-scroll");var l=function(t){return{infinite:!1,slidesToShow:e(t),slidesToScroll:3,arrows:!0,dots:!0,variableWidth:!1,swipe:!0,draggable:!0}}(n);if(!i){n.slick(l);var c=n.slick("getSlick");return function(e){var t=e.getLeft.bind(e);e.getLeft=function(n){var r=t(n),i=e.$list;if(!i.length||!e.slideWidth)return r;var o=i.innerWidth(),a=e.slideWidth;if(!o||!a)return r;var s=i.find(".slick-track"),l=parseFloat(s.css("gap"))||0,c=e.options.slidesToShow,d=Math.floor(c)*a+Math.max(0,Math.floor(c)-1)*l,u=Math.max(0,o-d)/2;return 0===n||n>=Math.max(0,e.slideCount-Math.ceil(c))?r:r+u}}(c),t(c),void n.trigger("afterChange",[c,c.currentSlide])}n.slick("slickSetOption","slidesToShow",l.slidesToShow,!1),n.slick("setPosition")}}))};o()(document).ready((function(){o()('.cmp-teaser[data-video-card="true"]').each((function(){var e=o()(this);e.off("click.videoPlayer").on("click.videoPlayer",(function(t){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();var n=o()(t.target),r=n.closest(".cmp-teaser__action a").length>0,i=n.closest(".card-full-clickable").length>0,a=e.data("videoTitle"),s=e.data("videoDescription");if((r||i)&&(!i||!0===e.data("fullCardClick"))){var l=e.closest(".cmp-panelcontainer-video-feature");if(l.length){var c=l.find(".s7dm-dynamic-media")[0];if(c){var d=S7dmUtils[c.id];if(d){var u=e.data("videoAsset");u&&(d.setAsset(u),l.find(".cmp-video-feature-title .cmp-text").html(a),l.find(".cmp-video-feature-description .cmp-text").html(s),l[0].scrollIntoView({behavior:"smooth",block:"start"}),setTimeout((function(){var e=l.find(".centerPlayIcon");e.length&&(e.attr({tabindex:"0",role:"button"}),e.focus(),e.off("keydown.videoPlay").on("keydown.videoPlay",(function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o()(this).click())})))}),3500))}}}}}))})),o()(".cmp-video-feature-list").each((function(){var e=o()(this),t=e.find(".teaser.card"),n=e.find(".global-link a"),r=n.closest(".global-link"),i=!1;if(e.hasClass("cmp-author-mode"))return t.show(),r.show(),void n.find("span").text("Show more videos");function a(){t.each((function(e){o()(this).toggle(i||e<3)})),n.find("span").text(i?"Show less videos":"Show more videos")}t.length<=3?r.hide():(a(),n.off("click.videoList").on("click.videoList",(function(t){return t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),i=!i,a(),i||e[0].scrollIntoView({behavior:"smooth",block:"start"}),!1})))})),o()(".cmp-watchnext-carousel-bottom-layout .cmp-container").on("init reInit afterChange",(function(e,r,i){var a=o()(this),s=a.find(".cmp-carousel-pagination");s.length||(s=o()('<li class="cmp-carousel-pagination"></li>'),a.find(".slick-dots").append(s));var l=Math.floor((i||0)/r.options.slidesToScroll)+1,c=Math.ceil((r.slideCount-r.options.slidesToShow)/r.options.slidesToScroll)+1;s.text("".concat(l,"/").concat(c)),t(r),n(),setTimeout((function(){var e=a.find(".slick-dots button");e.attr({tabindex:"0",role:"button"}),e.off("keydown.dotsNavigation"),e.on("keydown.dotsNavigation",(function(e){if("Tab"===e.key&&!e.shiftKey){var t=o()(this).closest("li").next("li").find("button");t.length&&(e.preventDefault(),t.get(0).focus())}}))}),50)})),document.querySelectorAll(".cmp-whatsnext-carousel").forEach((function(e){e.addEventListener("keydown",(function(e){"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())}),!0)})),o()(window).on("load resize",r)})),o()("body").on("click",".slick-prev",(function(){void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"cmp:carouselClick",attributes:{"@type":"global/components/globalcomponents/button/v3/button","dc:title":"Back Arrow","xdm:linkURL":"#","xdm:linkTarget":"_self","xdm:linkType":"internal"}})})),o()("body").on("click",".slick-next",(function(){void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"cmp:carouselClick",attributes:{"@type":"global/components/globalcomponents/button/v3/button","dc:title":"Next Arrow","xdm:linkURL":"#","xdm:linkTarget":"_self","xdm:linkType":"internal"}})})),o()(".panelcontainer>div.columncontainer").each((function(){o()(this).parent().attr("style",o()(this).attr("style")),o()(this).attr("style","")}))},s=function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelector(".panelcontainer")&&a()}))},l=function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelector(".section-container")&&o()(".section-container>section").each((function(){o()(this).parent().attr("style",o()(this).attr("style")),o()(this).attr("style","")}))}))},c=function(){document.addEventListener("DOMContentLoaded",(function(){!function(){var e=0,t=0,n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),r="",i=function(e){return Boolean(localStorage.getItem(e))};o()(".cmp-extended-modal__container").attr("tabindex","0"),o()(".modal
776-dialog").attr("tabindex","0");var a=function(){if(location.hash){var e=o()(location.hash);e.length&&e.hasClass("modal")&&(e.hasClass("cmp-extended-modal")?(l(e.attr("id")),window.exitModalVideoUpdate()):e.show(),o()(".cmp-extended-modal__container, .modal-dialog").focus(),o()("html,body").css({"overflow-y":"hidden",height:parseInt(o()(window).height(),10)}),o()(".modal").css("overflow-y","auto"),o()("body").addClass("cmp-modal-shown"))}},s=function(){o()(".modal").css("display","none"),o()("html,body").css({"overflow-y":"auto",height:"auto"}),o()("body").removeClass("cmp-modal-shown"),o()(".modal-backdrop").remove()};o()(document).on("click",".modal-close-top .global-link a",(function(e){e.preventDefault(),s()})),o()(document).on("click",".modal-close-top .btn-close, .modal_close-button, .actionModalClose, .actionContinueClose, .actionLinkRedirect",(function(){s()})),o()(document).on("click",".cmp-modal-open",(function(){o()(".modal").css("display","block"),o()(".cmp-extended-modal__container, .modal-dialog").focus(),o()("html,body").css({"overflow-y":"hidden",height:parseInt(o()(window).height(),10)}),o()(".modal").css("overflow-y","auto"),o()("body").addClass("cmp-modal-shown")})),window.addEventListener("load",(function(){if(o()(".cmp-modal .modal .modal-footer .button").each((function(n){var r=o()(".modal-footer .button").eq(n).find(".cmp-button").outerWidth();e<r&&(e=r,t="".concat(r,"px"))})),o()(".modal-footer .button .cmp-button").css("width",t),o()("#hcp").addClass("hcpmodal"),"gating-component"!==i("hcp_modal")){var n=document.getElementById("gating-component");null!=n&&n.classList.contains("is-hidden")&&n.classList.remove("is-hidden")}if(i("hcp_enabled")&&i("hcp_modal")){var r=localStorage.getItem("hcp_modal");o()("#".concat(r)).addClass("modalHide"),a()}o()(".modal.exitmodalpopup:visible").last().length&&(o()("body").addClass("cmp-modal-shown"),o()(".modal.cmp-extended-modal").focus()),o()(".modal.confirmation_modal:visible").length&&(o()("html,body").css({"overflow-y":"hidden",height:"auto"}),o()("body").addClass("cmp-modal-shown")),o()(".modal.exitmodalpopup").is(":visible")||o()(".modal.confirmation_modal").is(":visible")||a(),o()(".cmp-extended-modal__container:visible, .modal-dialog:visible").focus()})),o()(document).on("click",".modal.exitmodalpopup",(function(e){(0===o()(e.target).closest(".exitmodalpopup").length||o()(e.target).hasClass("exitmodalpopup"))&&(o()(".modal").css("display","none"),o()("html,body").css({"overflow-y":"auto",height:"auto"}),o()("body").removeClass("cmp-modal-shown"))})),o()(document).on("click",".cmp-extended-modal__close a",(function(){o()(".modal").css("display","none"),o()("html,body").css({"overflow-y":"auto",height:"auto"}),o()("body").removeClass("cmp-modal-shown")})),o()(document).on("keydown",".cmp-extended-modal__close a",(function(e){"enter"!==e.key&&13!==e.keyCode||(o()(".modal").css("display","none"),o()("html,body").css({"overflow-y":"auto",height:"auto"}),o()("body").removeClass("cmp-modal-shown"))}));var l=function(e){var t=o()(".modal#".concat(e,".cmp-extended-modal")),n=!0;if(i("hcp_enabled")&&i("hcp_modal")){var r=localStorage.getItem("hcp_modal");o()("#".concat(r)).closest(".extendedmodal").hasClass("modal-MIDigital")&&(n=!1,o()("#".concat(r)).addClass("modalHide"),o()("#".concat(r)).removeAttr("style"))}0!=n&&t.css("display","flex"),t.find(".cmp-extended-modal__container__body").css("max-height","100%");var a=t.find(".cmp-extended-modal__container__title").outerHeight(!0)||0;if(!t.parent().hasClass("cmp-video-modal")||!t.find(".s7videoplayer").length){var s=(t.find(".cmp-extended-modal__container").height()||0)-a;t.find(".cmp-extended-modal__container__body").css("max-height",s)}};if(window.exitModalVideoUpdate=function(){if(r&&o()(".modal#".concat(r,".cmp-extended-modal:visible")).length){var e=o()(".modal#".concat(r,".cmp-extended-modal"));if(e.parent().hasClass("cmp-video-modal")&&e.find(".s7videoplayer").length){var t=o()(window).height();e.find(".cmp-extended-modal__container__body").css("max-height","100%"),e.find(".cmp-extended-modal__container__body").height(t),setTimeout((function(){var t=e.find(".cmp-extended-modal__container").outerHeight()||0,r=e.find(".cmp-extended-modal__container__body>div:first").width()||0,i=t-e.find(".cmp-extended-modal__container").height()||0,o=e.find(".cmp-extended-modal__container__body .global-link").outerHeight()||0,a=e.find(".cmp-extended-modal__container__title").outerHeight(!0)||0,s=t-(i+a+o+20);e.find(".s7videoplayer").parent().parent()[0].s7base.resize(r,s);var l=(e.find(".cmp-extended-modal__container").height()||0)-a;e.find(".cmp-extended-modal__container__body").css("max-height",l);var c=e.find("video").attr("width");n?(c=e.find("video").width(),s=e.find("video").height()):(c=e.find("video").attr("width"),s=e.find("video").attr("height")),e.find(".s7videoplayer").parent().parent()[0].s7base.resize(c,s),e.find(".cmp-extended-modal__container__body").css("height","auto"),e.find(".s7videoplayer").length<2&&e.find(".cmp-extended-modal__container__body").addClass("cmp-single-video")}),20)}}},o()(window).on("resize",(function(){r&&o()(".modal#".concat(r,".cmp-extended-modal:visible")).length&&(l(r),setTimeout((function(){window.exitModalVideoUpdate()}),10))})),o()(".modal .dynamicmedia").on("click",".s7fullscreenbutton",(function(){"true"==o()(this).data("isFullscreen")?(o()(this).data("isFullscreen","false"),n&&(o()(this).closest(".cmp-extended-modal__container").removeClass("cmp-overflow-visible"),o()(this).closest(".cmp-extended-modal__container__body").removeClass("cmp-overflow-visible"),o()(this).closest(".cmp-panel-featureblock-video").removeClass("cmp-overflow-visible"))):(o()(this).data("isFullscreen","true"),n?(o()(this).closest(".cmp-extended-modal__container").addClass("cmp-overflow-visible"),o()(this).closest(".cmp-extended-modal__container__body").addClass("cmp-overflow-visible"),o()(this).closest(".cmp-panel-featureblock-video").addClass("cmp-overflow-visible")):o()(this).closest(".cmp-extended-modal__container__body").find("video").height("100%"))})),o()(".modal.cmp-extended-modal:visible").last().length&&(r=o()(".modal.cmp-extended-modal:visible").last().attr("id"),l(r),window.exitModalVideoUpdate(),o()("body").addClass("cmp-modal-shown")),o()(document).ready((function(){o()(document).on("click",".actionModalOpen",(function(e){e.preventDefault(),r
776=o()(this).data("modal-id");var t=o()(this).data("modal-link");o()(".modal").css("display","none"),o()("html,body").css({"overflow-y":"auto",height:"auto"}),o()(".modal#".concat(r," .actionContinueClose")).attr("href",t),o()(".modal#".concat(r," .actionLinkRedirect")).attr("href",t),o()(".modal#".concat(r)).css("display","block"),l(r),window.exitModalVideoUpdate(),o()(".modal").css("overflow-y","auto"),o()(".cmp-extended-modal__container, .modal-dialog").focus(),o()("html,body").css({"overflow-y":"hidden",height:"auto"}),o()("body").addClass("cmp-modal-shown"),o()(".s7videoplayer").length&&o()(".s7videoplayer").each((function(){this.s7base.pause()}))}))})),window.storeHCPCookie=function(e){localStorage.setItem("hcp_enabled",!0),localStorage.setItem("hcp_modal",e),o()(".modal").css("display","none"),o()("html,body").css({"overflow-y":"auto",height:"auto"}),o()("body").removeClass("cmp-modal-shown")},o()(document).on("click",".actionStoreCookie",(function(){var e=o()(this).data("modal-id");o()(this).closest("#global-link-submit").length||window.storeHCPCookie(e),a()})),i("hcp_enabled")&&i("hcp_modal")){var c=localStorage.getItem("hcp_modal");o()("#".concat(c)).addClass("modalHide"),a()}o()("a[data-exitmodal]").on("click keydown",(function(e){var t=o()(this),n="#".concat(o()(this).attr("data-exitmodal"));("click"===e.type&&0===e.button||"keydown"===e.type&&"Enter"===e.key)&&(e.preventDefault(),o()(n).length>0&&(o()(n).find(".actionLinkRedirect").attr("href",t.attr("href")),o()(n).find(".actionContinueClose").attr("href",t.attr("href")),0!==e.button&&"Enter"!==e.key||(o()(n).show(),o()(".cmp-extended-modal__container, .modal-dialog").focus(),o()("html,body").css({"overflow-y":"hidden",height:parseInt(o()(window).height(),10)}),o()(".modal").css("overflow-y","auto"),o()("body").addClass("cmp-modal-shown"))))}))}()}))},d=function(){var e=function(){o()(".content-overlay").removeClass("cmp-table--overlayed"),o()(".table-overlay").addClass("hide-overlay")};o()(window).on("load",(function(){o()(".content-overlay table").append('<div class="table-overlay">\n <span class="material-symbols-rounded notranslate" translate="no" aria-hidden="true">swipe_left</span>\n <span>Swipe left to view table</span>\n </div>')})),o()(window).on("load",(function(){o()(".content-overlay").addClass("cmp-table--overlayed"),o()(".content-overlay .cmp-text").on("scroll touchstart",(function(){e()})),o()(".content-overlay .cmp-text").on("click",(function(){e()}))}))},u=function(){var e=function(){if(o()(".cmp-tabs__tablist").width()<=window.innerWidth){var e=function(e,t){var n=t.getBoundingClientRect(),r=Math.floor(n.right),i=Math.floor(n.left),a=e.getBoundingClientRect(),s=Math.floor(a.right),l=Math.floor(a.left);return i>l&&r<s?(o()(".tabs-li-wrapper").parent().removeClass("removeAfter"),o()(".tabs-li-wrapper").parent().removeClass("removeBefore"),"both"):l<i?(o()(".tabs-li-wrapper").parent().removeClass("removeAfter"),o()(".tabs-li-wrapper").parent().addClass("removeBefore"),"left"):s>r?(o()(".tabs-li-wrapper").parent().addClass("removeAfter"),o()(".tabs-li-wrapper").parent().removeClass("removeBefore"),"right"):(o()(".tabs-li-wrapper").parent().addClass("removeAfter"),o()(".tabs-li-wrapper").parent().addClass("removeBefore"),"none")},t=function(e,t){if(e){var n=e.getBoundingClientRect(),i=r[0].getBoundingClientRect().left,o=n.left-i;s[0].style.transform="translateX("+(o+r[0].scrollLeft)+"px) scaleX("+.01*n.width+")",t&&(s[0].style.backgroundColor=colour)}},n={navBarTravelling:!1,navBarTravelDirection:"",navBarTravelDistance:150};document.documentElement.classList.remove("no-js"),document.documentElement.classList.add("js");var r=document.getElementsByClassName("cmp-tabs__tablist");r[0].children[0].setAttribute("aria-selected","true"),o()(".cmp-tabs__tablist").find("span.pnIndicator").remove();var i=document.createElement("span");i.classList.add("pnIndicator"),r[0].appendChild(i),o()(".cmp-tabs__tablist").parent().hasClass("tabs-li-wrapper")||o()(".cmp-tabs__tablist").wrap('<div class="tabs-li-wrapper"></div>');var a=document.getElementsByClassName("tabs-li-wrapper"),s=document.getElementsByClassName("pnIndicator");a[0].setAttribute("data-overflowing",e(r[0],a[0]));var l=!1;a[0].addEventListener("scroll",(function(){window.scrollY,l||window.requestAnimationFrame((function(){a[0].setAttribute("data-overflowing",e(r[0],a[0])),l=!1})),l=!0})),r[0].addEventListener("transitionend",(function(){var e=window.getComputedStyle(r[0],null),t=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform"),i=Math.abs(parseInt(t.split(",")[4])||0);r[0].style.transform="none",r[0].classList.add("pn-ProductNav_Contents-no-transition"),"left"===n.navBarTravelDirection?a[0].scrollLeft=a.scrollLeft-i:a[0].scrollLeft=a.scrollLeft+i,n.navBarTravelling=!1}),!1),r[0].addEventListener("click",(function(e){[].slice.call(document.querySelectorAll(".cmp-tabs__tab")).forEac
776h((function(e){e.setAttribute("aria-selected","false")})),e.target.setAttribute("aria-selected","true"),t(e.target[0])})),t(a[0].querySelector('[aria-selected="true"]'))}};o()(window).on("resize",(function(){o()(".cmp-tabs__tablist").length>0&&e()})),o()(document).on("click",".cmp-tabs__tablist li",(function(e){var t=o()(e.target).index();if(t<o()(".cmp-tabs__tablist li").length){var n=o()(".cmp-tabs__tablist li").eq(parseInt(t,10)).position().left;o()(".tabs-li-wrapper").animate({scrollLeft:n},500)}})),o()(".cmp-tabs__tab").on("click",(function(){o()(".cmp-tabs__tab").attr("tabindex","0"),setTimeout((function(){o()(".cmp-tabs__tab").attr("tabindex","0")}),1e3)})),o()(document).ready((function(){o()(".cmp-tabs__tablist").length>0&&e(),o()(".cmp-tabs__tab").attr("tabindex","0"),setTimeout((function(){o()(".cmp-tabs__tab").attr("tabindex","0")}),1e3)}))},h=function(){document.addEventListener("DOMContentLoaded",(function(){u()}))},p=function(){document.addEventListener("DOMContentLoaded",(function(){var e;e=function(e){var t=e.width(),n=0;if(e.find(".cmp-tag--secondary.cmp-tag--secondary-context").length>0&&e.find(".cmp-tag--secondary.cmp-tag--secondary-context ul li").each((function(){var e=o()(this).outerWidth(!0);n+=e})),e.find(".cmp-tag--secondary.cmp-tag--secondary-content").length>0&&e.find(".cmp-tag--secondary.cmp-tag--secondary-content ul li").each((function(){var e=o()(this).outerWidth(!0);n+=e})),n>=t-15){var r=e.find(".cmp-tag--secondary ul li").css("margin-right");e.find(".cmp-tag--secondary ul li").css("margin-bottom",r)}else e.find(".cmp-tag--secondary ul li").css("margin-bottom",0)},o()(window).on("resize",(function(){o()(".container.cmp-align-one-line").length>0&&document.querySelectorAll(".container.cmp-align-one-line").forEach((function(t,n){e(o()(t))}))})),o()(document).ready((function(){o()(".container.cmp-align-one-line").length>0&&document.querySelectorAll(".container.cmp-align-one-line").forEach((function(t,n){e(o()(t))}))}))}))},f=(r(48),r(64),function(){document.addEventListener("DOMContentLoaded",(function(){!function(){o()(window).on("load resize",(function(){o()(".cmp-floating-button").height(o()(".cmp-floating-button a").outerHeight())}));var e=0===o()(".cmp-isi.sticky-isi").length&&(o()(".cmp-floating-button").hasClass("cmp-sticky-right")||o()(".cmp-floating-button").hasClass("cmp-sticky-right--icon"));e&&(o()("body").append('<input id="cmp-refernce-margin-m" type="hidden" style=\'margin-bottom:var(--space-m);\'/>'),o()("body").append('<input id="cmp-refernce-margin-s" type="hidden" style=\'margin-bottom:var(--space-s);\'/>'));var t,n=function(t){var n=0;t&&(n=t.currentTarget.scrollY);var r=n+o()(window).height(),i=o()("footer").offset()?o()("footer").offset().top:0,a=i+o()(".cmp-floating-button a").height()/3;if(e){o()(".cmp-floating-button").addClass("cmp-floating-button--sticky");var s=n,l=parseFloat(o()("#cmp-refernce-margin-m").css("margin-bottom").replace("px","")),c=parseFloat(o()("#cmp-refernce-margin-s").css("margin-bottom").replace("px","")),d=s+window.innerHeight,u=d+l-i;i-l+c<=d?o()(".cmp-floating-button a").css("bottom","".concat(u,"px")):o()(".cmp-floating-button a").css("bottom","var(--space-s)")}else r>=a?o()(".cmp-floating-button").removeClass("cmp-floating-button--sticky"):o()(".cmp-floating-button").addClass("cmp-floating-button--sticky")};o()(window).on("scroll touchmove",(function(e){n(e)})),o()(window).on("load",(function(){n()})),o()(document).ready((function(){o()('a[href="#oneTrustCookie"]').click((function(e){e.preventDefault(),o()(".ot-floating-button button.ot-floating-button__open").trigger("click")})),o()("a.cmp-open-one-trust-cookie-modal").on("click",(function(e){OneTrust&&OneTrust.ToggleInfoDisplay()}))})),o()(document).on("mouseup","a",(function(){o()(this).blur()})),o()("a[data-modal-id='downloadStaticPdf']").on("click",(function(e){e.preventDefault();var n=o()(this).attr("href");(t=window.open(n,"_blank"))&&(t.focus(),t.onload=function(){navigator.userAgent.toLowerCase().indexOf("android")>-1||setTimeout((function(){t.print()}),3e3)},t.onafterprint=function(){t.close()})}))}()}))}),m=function(){document.addEventListener("DOMContentLoaded",(function(){o()(document).ready((function(){var e=o()(".cmp-quiz-component .quiz-question").length;o()(".cmp-quiz-component__ans--title").hide(),o()(".cmp-quiz-component__result--title").hide(),o()(".cmp-quiz-component .result-page").hide(),o()(".page-next").addClass("disabled"),o()(".total_no_answers").val(e),o()(".total-page").html(e),o()(".total_questions").html(e),o()(".total_correct_answers").val(0),o()(".quiz-container .quiz-question").each((function(e){var t=parseInt(o()(".quiz-question:eq(".concat(e,") .cmp-pagination-container .page-prev")).attr("data-current-page")),n=t-1,r=t+1;o()(".quiz-question:eq(".concat(e,") .cmp-pagination-container .page-prev")).attr("data-previous-page",n),o()(".quiz-question:eq(".concat(e,") .cmp-pagination-container .page-next")).attr("data-next-page",r)}));var t=function(e){var t=e/o()(".cmp-quiz-component .quiz-question").length*100;t<50?(o()(".more-than-50,.less-than-75").hide(),o()(".less-than-50").css("display","inline-block !important"),o()(".less-than-50").show()):t>=50&&t<75?(o()(".less-than-50,.less-than-75").hide(),o()(".more-than-50").css("display","inline-block !important"),o()(".more-than-50").show()):t>=75&&(o()(".less-than-50,.more-than-50").hide(),o()(".less-than-75").css("display","inline-block !important"),o()(".less-than-75").show())};o()(document).on("keypress",".answer-option",(function(e){if(13===(e.keyCode||e.which)){var n=o()(e.target).data("question-id"),r=o()(e.target).find(".input-component input").val(),i=o()(".answer-".concat(n)).val(),a=parseInt(o()(".total_correct_answers").val()),s="Qu
776iz";void 0!==o()(e.target).closest(".cmp-quiz-component").attr("data-quiz-name")&&(s=o()(e.target).closest(".cmp-quiz-component").attr("data-quiz-name")),1===n&&adobeDataLayer.push({event:"quizStart",attributes:{quizName:s}}),o()(".question-".concat(n)).parent().find(".page-next").removeClass("disabled"),o()(".quiz-container").hasClass("cmp-survey-container")?o()(".quiz-container").hasClass("cmp-survey-container")&&(o()(".question-".concat(n," .answer-option")).removeClass("disabled-option"),o()(".question-".concat(n," .answer-option")).removeClass("quiz_hoverChecked"),o()(e.target).addClass("disabled-option"),o()(e.target).addClass("quiz_hoverChecked")):(o()(".question-".concat(n," .answer-container")).addClass("disabled-answers"),o()(".question-".concat(n," .questiondescription")).hide(),o()(".question-".concat(n," .answerdescription")).show(),o()(".question-".concat(n," .answer-option")).addClass("disabled-option"),o()(".question-".concat(n,' .answer-option input[value="').concat(i,'"]')).parent().closest(".answer-option").addClass("correct_answer"),o()(".cmp-quiz-component__qus--title").hide(),o()(".cmp-quiz-component__ans--title").show(),i===r?(o()(e.target).removeClass("disabled-option"),a+=1,o()(".result-page .right_answers").html(a),o()(".total_correct_answers").val(a),t(a)):(o()(e.target).addClass("wrong_answer"),o()(e.target).removeClass("disabled-option")))}}));var n="",r="";o()(document).on("click",".answer-option",(function(e){var t=o()(this).data("question-id"),i=o()(this).find(".input-component input").val(),a=o()(".answer-".concat(t)).val(),s=parseInt(o()(".total_correct_answers").val()),l="Quiz";void 0!==o()(e.target).closest(".cmp-quiz-component").attr("data-quiz-name")&&(l=o()(e.target).closest(".cmp-quiz-component").attr("data-quiz-name")),n=o.a.trim(o()(".question-".concat(t," .questiondescription")).text()),r=o.a.trim(o()(this).find(".label-component label").text()),1===t&&(o()(".quiz-container").hasClass("cmp-survey-container")?adobeDataLayer.push({event:"surveyStart",attributes:{surveyName:l}}):adobeDataLayer.push({event:"quizStart",attributes:{quizName:l}})),o()(".question-".concat(t)).parent().find(".page-next").removeClass("disabled"),o()(".quiz-container").hasClass("cmp-survey-container")?o()(".quiz-container").hasClass("cmp-survey-container")&&(o()(".question-".concat(t," .answer-option")).removeClass("disabled-option"),o()(".question-".concat(t," .answer-option")).removeClass("quiz_hoverChecked"),o()(this).addClass("disabled-option"),o()(this).addClass("quiz_hoverChecked")):(o()(".question-".concat(t)).parents().closest(".quiz-question").addClass("already_answered"),o()(".question-".concat(t)).addClass("already_answered"),o()(".question-".concat(t," .answer-container")).addClass("disabled-answers"),o()(".question-".concat(t," .questiondescription")).hide(),o()(".question-".concat(t," .answerdescription")).show(),o()(".question-".concat(t," .answer-option")).addClass("disabled-option"),o()(".question-".concat(t,' .answer-option input[value="').concat(a,'"]')).parent().closest(".answer-option").addClass("correct_answer"),o()(".cmp-quiz-component__qus--title").hide(),o()(".cmp-quiz-component__ans--title").show(),a===i?(o()(this).removeClass("disabled-option"),s+=1,o()(".result-page .right_answers").html(s),o()(".total_correct_answers").val(s),o()(".cmp-quiz-component__ans--title .cls-wrong-answer").hide(),o()(".cmp-quiz-component__ans--title .cls-correct-answer").show()):(o()(this).addClass("wrong_answer"),o()(this).removeClass("disabled-option"),o()(".cmp-quiz-component__ans--title .cls-correct-answer").hide(),o()(".cmp-quiz-component__ans--title .cls-wrong-answer").show()))})),o()(document).on("click",".page-next",(function(i){var a,s=parseInt(o()(this).data("current-page"));if(a=s+1,o()(".quiz-question").hide(),o()(".cmp-quiz-component__qus--title").show(),o()(".cmp-quiz-component__ans--title").hide(),o()(".question-".concat(a)).parent(".quiz-question").show(),o()(".question-".concat(a)).hasClass("already_answered")?(o()(".question-".concat(a," .questiondescription")).hide(),o()(".question-".concat(a," .answerdescription")).show(),o()(".cmp-quiz-component__qus--title").hide(),o()(".cmp-quiz-component__ans--title").show()):(o()(".question-".concat(a," .questiondescription")).show(),o()(".question-".concat(a," .answerdescription")).hide(),o()(".cmp-quiz-component__qus--title").show(),o()(".cmp-quiz-component__ans--title").hide()),o()(".quiz-container").hasClass("cmp-survey-container")?adobeDataLayer.push({event:"surveyResponseSubmit",attributes:{surveyQuestion:n,surveyResponse:r}}):adobeDataLayer.push({event:"quizResponseSubmit",attributes:{quizQuestion:n,quizResponse:r}}),e<a){var l=parseInt(o()(".total_correct_answers").val());t(l),o()(".cmp-quiz-component__qus--title").hide(),o()(".cmp-quiz-component__ans--title").hide(),o()(".cmp-quiz-component__result--title").show(),o()(".quiz-container").hasClass("cmp-survey-container")?(o()(".cmp-survey-container .card.teaser").addClass("cls-survey__result"),o()(".cmp-quiz-component__result--title").hide(),o()(".cmp-quiz-component .separator").hide()):o()(".cmp-quiz-component .result-page").show();var c="Quiz";void 0!==o()(i.target).closest(".cmp-quiz-component").attr("data-quiz-name")&&(c=o()(i.target).closest(".cmp-quiz-component").attr("data-quiz-name")),o()(".quiz-container").hasClass("cmp-survey-container")?adobeDataLayer.push({event:"surveyComplete",attributes:{surveyName:c}}):adobeDataLayer.push({event:"quizComplete",attributes:{quizName:c}})}})),o()(document).on("click",".page-prev",(function(e){var t,n=parseInt(o()(this).data("current-page"));t=n-1,o()(this).attr("data-previous-page",t),o()(".quiz-question").hide(),o()(".question-".concat(t)).parent(".quiz-question").show(),o()(".cmp-quiz-component__qus--title").hide(),o()(".cmp-quiz-component__ans--title").show()}))}))}))};function g(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y=function(){document.addEventListener("DOMContentLoaded",(function(){var e;
776(e={formStarted:!1,init:function(){e.attachStayUptoDateValidation(),e.attachValidation(),e.searchResults=[],e.selectedMedUser={},document.querySelectorAll(".customeSelectPicker").forEach((function(t){e.fnDFDropDownChange(t)})),o()(".stayuptodate-terms-label p a").attr("tabindex","0"),o()(".stayuptodate-medical-inquiry a").attr("tabindex","-1")},fnDFCommonDropDown:function(e,t){t.preventDefault();var n=o()(t.target);if(o()(n).parent("div").hasClass("arrow_reverse")&&o()(t.target).siblings("ul").remove(),o()(t.target).closest("div").hasClass("arrow_reverse"))o()(".selector-options").is(":visible")&&o()(t.target).hasClass("cmp-form-options__field--drop-down")&&(o()(t.target).siblings("ul").remove(),o()(n).parent().removeClass("arrow_reverse").closest(".modal-dialog-centered").removeClass("modal-overflow-visible"));else{o()(t.target).parent().addClass("arrow_reverse").closest(".modal-dialog-centered").addClass("modal-overflow-visible");var r=o()(t.target).siblings("ul").length,i=o()(t.target).children("ul").length;if(0===r&&0===i){var a=e.children,s=document.createElement("ul");s.className="selector-options",g(a).forEach((function(t){if("emptyValue"!=t.id&&t.dataset&&""!==t.dataset.emptyOption){var r=document.createElement("li");o()(t).is(":disabled")&&o()(r).addClass("lidisabled"),r.tabIndex=0,r.textContent=t.textContent,r.addEventListener("mousedown",(function(r){r.stopPropagation(),a.value=t.value,e.value=t.value,e.dispatchEvent(new Event("change")),s.remove(),o()(n).parent().removeClass("arrow_reverse").closest(".modal-dialog-centered").removeClass("modal-overflow-visible")})),s.appendChild(r)}})),e.closest("div").appendChild(s),document.addEventListener("click",(function(t){e.contains(t.target)||(s.remove(),o()(n).parent().removeClass("arrow_reverse"),o()(".customeSelectPicker").closest(".arrow_reverse").length||o()(n).closest(".modal-dialog-centered").removeClass("modal-overflow-visible"))}))}else o()(t.target).siblings("ul").remove(),o()(n).parent().removeClass("arrow_reverse").closest(".modal-dialog-centered").removeClass("modal-overflow-visible")}o()(t.target).on("mousedown",(function(){o()(".selector-options").is(":visible")||(o()(t.target).siblings("ul").remove(),o()(n).parent().removeClass("arrow_reverse").closest(".modal-dialog-centered").removeClass("modal-overflow-visible"))}))},fnDFDropDownChange:function(t){var n="",r="";g(t.children[0].children).forEach((function(e){o()(e).is(":selected")&&o()(e).is(":disabled")&&o()(t).find("select").css("color","#808080")})),t.addEventListener("mousedown",(function(n){e.fnDFCommonDropDown(t,n)})),t.addEventListener("keydown",(function(i){if(13===i.keyCode&&(e.fnDFCommonDropDown(t,i),""===n?n=o()(i.target).closest("div").find("ul li:first"):(r=o()(i.target).find("option:selected").index(),o()(i.target).closest("fieldset").find("ul li:eq(".concat(r,")")).addClass("selected-li"),n=o()(i.target).closest("div").find("ul li.selected-li"))),38===i.keyCode){var a=n.prev();a.length&&(n.removeClass("selected-li"),a.addClass("selected-li"),n=o()(i.target).closest("div").find("ul li.selected-li"))}else if(40===i.keyCode){var s=n.next();s.length&&(n.removeClass("selected-li"),s.addClass("selected-li"),n=o()(i.target).closest("div").find("ul li.selected-li"))}}))},fnPostAjax:function(e){o.a.ajax({url:"/bin/global/StayUpToDate",type:"POST",data:e,success:function(){o()(".cmp-stayuptodate__info,.cmp-stayuptodate__form").css("display","none"),o()(".cmp-stayuptodate__thankyou").css("display","block"),void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formComplete",attributes:{formName:"Signup Form"}})},error:function(){void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formError",attributes:{formName:"Signup Form",formError:"Error response from API"}})}})},attachValidation:function(){o()(".cmp-stayuptodate__submit .cmp-button__stayuptodate").on("click",(function(t){if(t.preventDefault(),t.stopImmediatePropagation(),e.firstNameValidation(),e.lastNameValidation(),e.profValidation(),e.countryValidation(),e.emailValidation(),e.phoneValidation(),e.termsValidation(),e.concentValidation(),o()("#cmp-stayuptodate__form .field-invalid").length<=0){o()("#cmp-stayuptodate__form .cmp-stayuptodate__error--main").hide();var n=o.a.trim(o()("#firstName").val()),r=o.a.trim(o()("#email").val()),i=o.a.trim(o()("#lastName").val()),a=o.a.trim(o()("#phoneNo").val()),s="";s=o()("select[name=country]").is(":visible")?o.a.trim(o()("#country option:selected").text()):o.a.trim(o()("#country").val());var l=o.a.trim(o()("#prof-type option:selected").text()),c=o.a.trim(o()("label[for=firstName]").text()),d=o.a.trim(o()("label[for=lastName]").text()),u=o.a.trim(o()("label[for=email]").text()),h=o.a.trim(o()("label[for=phoneNo]").text()),p=o.a.trim(o()("label[for=prof-type]").text()),f=o.a.trim(o()("label[for=country]").text()),m=o.a.trim(o()("#bodyHeader").val()),g=o.a.trim(o()("#bodyFooter").val()),v=o.a.trim(o()("#detailsLabel").val()),y=o.a.trim(o()("#requestLabel").val()),b=o.a.trim(o()("#senderEmail").val()),_=o.a.trim(o()("#body").val()),w=o.a.trim(o()("#subject").val()),x=o.a.trim(o()("#receipientEmail").val()),C=!1;o()("#stayuptodate").prop("checked")&&(C=!0);var S={body:_,subject:w,receipientEmail:x,FirstName:n,LastName:i,EmailAddress:r,TelephoneNumber:a,Profession:l,Country:s,FirstNameLabel:c,LastNameLabel:d,EmailAddressLabel:u,TelephoneNumberLabel:h,ProfessionLabel:p,CountryLabel:f,bodyHeader:m,bodyFooter:g,detailsLabel:v,requestLabel:y,senderEmail:b,stayUpToDateLabel:"Stay Up To Date",stayUpdated:C};e.fnPostAjax(S)}else o()("#cmp-stayuptodate__form .cmp-stayuptodate__error--main").show(),o()(".form-group.field-invalid").first().find("input").focus(),void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formError",attributes:{formName:"Signup Form",formError:"Required Field is Empty"}})})),o()("#cmp-stayuptodate__form #firstName").on("keypress blur change",(function(){e.firstNameValidation(),e.formStartedfn()})),o()("#cmp-stayuptodate__form #lastName").on("keypress blur change",(function(){e.lastNameValidation(),e.formStartedfn()})),o()("#cmp-stayuptodate__form #email").on("keypress blur change",(function(){e.emailValidation(),e.formStartedfn()})),o()("#phoneNo").on("keyup blur change",(function(t){9!==t.keyCode&&(e.phoneValidation(),e.formStartedfn())})),o()("#cmp-stayuptodate__form #prof-type").on("keyup change blur",(function(t){t.stopImmediatePropagation(),e.profValidation(),e.formStartedfn()})),o()("#country").on("keyup change blur",(function(t){t.stopImmediatePropagation(),e.countryValidation(),e.formStartedfn()})),o()("#stayuptodate").on("change blur",(function(t){t.stopImmediatePropagation(),e.formStartedfn()})),o()("#cmp-stayuptodate__form #legalConsent").on("change blur",(function(t){t.stopImmediatePropagation(),e.termsValidation(),e.formStartedfn()})),o()("#chk__ausconsent").on("change blur",(function(t){t.stopImmediatePropagation(),e.concentValidation(),e.formStartedfn()})),o()(".stayuptodate-medical-inquiry").on("keyup",(function(e){13===(e.which||e.keyCode)&&o()(".stayuptodate-medical-inquiry a").trigger("click")}))},emailValidation:function(){document.getElementById("email").value.match(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,3}$/)?(o()("#email").closest(".form-group").removeClass("field-invalid"),o()("#email").closest(".form-group").addClass("field-valid")):(o()("#email").closest(".form-group").removeClass("field-valid"),o()("#email").closest(".form-group").addClass("field-invalid"))},firstNameValidation:function(){var e=document.getElementById("firstName").value;/^[A-Za-z0-9\s]+$/.test(e)?(o()("#firstName").closest(".form-group").removeClass("field-invalid"),o()("#firstName").closest(".form-group").addClass("field-valid")):(o()("#firstName").closest(".form-group").removeClass("field-valid"),o()("#firstName").closest(".form-group").addClass("field-invalid"))},lastNameValidation:function(){var e=document.getElementById("lastName").value;/^[A-Za-z0-9\s]+$/.test(e)?(o()("#lastName").closest(".form-group").removeClass("field-invalid"),o()("#lastName").closest(".form-group").addClass("field-valid")):(o()("#lastName").closest(".form-group").removeClass("field-valid"),o()("#lastName").closest(".form-group").addClass("field-invalid"))},profValidation:function(){document.getElementById("prof-type").value?(o()("#prof-type").closest(".form-group").removeClass("field-invalid"),o()("#prof-type").closest(".form-group").addClass("field-valid")):(o()("#prof-type").closest(".form-group").removeClass("field-valid"),o()("#prof-type").closest(".form-group").addClass("field-invalid"))},countryValidation:function(){document.getElementById("country").value?(o()("#country").closest(".form-group").removeClass("field-invalid"),o()("#country").closest(".form-group").addClass("field-valid")):(o()("#country").closest(".form-group").removeClass("field-valid"),o()("#country").closest(".form-group").addClass("field-invalid"))},phoneValidation:function(){var e=document.getElementById("phoneNo").value;/^[0-9]{10}$/.test(e)?(o()("#phoneNo").closest(".form-group").removeClass("field-invalid"),o()("#phoneNo").closest(".form-group").addClass("field-valid")):(o()("#phoneNo").closest(".form-group").removeClass("field-valid"),o()("#phoneNo").closest(".form-group").addClass("field-invalid"))},termsValidation:function(){document.getElementById("legalConsent").checked?(o()(".legalConsent").removeClass("field-invalid"),o()(".cmp-stayuptodate__termserror").addClass("d-none")):(o()(".legalConsent").addClass("field-invalid"),o()(".cmp-stayuptodate__termserror").removeClass("d-none"))},concentValidation:function(){o()("#chk__ausconsent").is(":visible")&&(document.getElementById("chk__ausconsent").checked?(o()(".ausconsent").removeClass("field-invalid"),o()(".cmp-stayuptodate__concenterror").addClass("d-none")):(o()(".ausconsent").addClass("field-invalid"),o()(".cmp-stayuptodate__concenterror").removeClass("d-none")))},stayAndRepValidation:function(){document.getElementById("stayuptodate").
776checked?o()(".stayuptodate").removeClass("field-invalid"):o()(".stayuptodate").addClass("field-invalid")},attachStayUptoDateValidation:function(){o()('form.cmp-stayuptodate__form input[type="text"], form.cmp-stayuptodate__form input[type="password"],form.cmp-stayuptodate__form input[type="email"]').on("keydown",(function(e){o()(e.target).removeClass("cmp-selected-state").addClass("cmp-inputting-state")})),o()('form.cmp-stayuptodate__form input[type="text"], form.cmp-stayuptodate__form input[type="password"],form.cmp-stayuptodate__form input[type="email"]').on("mouseup",(function(e){o()(e.target).addClass("cmp-selected-state").removeClass("cmp-inputting-state")})),o()('form.cmp-stayuptodate__form input[type="text"], form.cmp-stayuptodate__form input[type="password"],form.cmp-stayuptodate__form input[type="email"]').on("focusout",(function(e){o()(e.target).removeClass("cmp-selected-state cmp-inputting-state")}))},formStartedfn:function(){e.formStarted||(void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formStart",attributes:{formName:"Signup Form"}}),e.formStarted=!0)}}).init(),o()('.cmp-stayuptodate__form.cmp-globalregistration__fields input[type="text"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="email"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="number"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="tel"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="phone"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="date"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="password"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields .dropDownList select:not([disabled]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields textarea:not([readonly]').on("keydown",(function(e){o()(e.target).removeClass("cmp-inputted-state cmp-selected-state cmp-keypad-focus").addClass("cmp-inputting-state")})),o()('.cmp-stayuptodate__form.cmp-globalregistration__fields input[type="text"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="email"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="number"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="tel"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="phone"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="date"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="password"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields .dropDownList select:not([disabled]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields textarea:not([readonly]').on("mousedown focus",(function(e){"mousedown"===e.type||o()(e.target).hasClass("cmp-selected-state")?o()(e.target).removeClass("cmp-inputted-state cmp-inputting-state cmp-keypad-focus").addClass("cmp-selected-state"):o()(e.target).removeClass("cmp-inputted-state cmp-selected-state cmp-inputting-state").addClass("cmp-keypad-focus")})),o()('.cmp-stayuptodate__form.cmp-globalregistration__fields input[type="text"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="email"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="number"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="tel"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="phone"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="date"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields input[type="password"]:not([readonly]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields .dropDownList select:not([disabled]),\n .cmp-stayuptodate__form.cmp-globalregistration__fields textarea:not([readonly]').on("blur",(function(e){o()(e.target).removeClass("cmp-selected-state cmp-inputting-state cmp-keypad-focus"),""!==o()(e.target).val()&&o()(e.target).addClass("cmp-inputted-state")}))}))},b=function(){document.addEventListener("DOMContentLoaded",(function(){!function(){var e='<svg width="132" height="132" viewBox="0 0 132 132" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M54.3443 94.6949C52.6872 95.7808 51.0072 95.8407 49.3043 94.8747C47.6014 93.9086 46.75 92.4314 46.75 90.443V41.557C46.75 39.5686 47.6014 38.0913 49.3043 37.1253C51.0072 36.1593 52.6872 36.2192 54.3443 37.3051L92.8227 61.801C94.3316 62.7952 95.0861 64.1949 95.0861 66C95.0861 67.8051 94.3316 69.2048 92.8227 70.199L54.3443 94.6949Z" fill="#EEEEF1"/>\n <rect x="4" y="4" width="124" height="124" rx="62" stroke="'.concat("#eeeef1",'" stroke-width="8"/>\n </svg>'),t='<svg width="132" height="132" viewBox="0 0 132 132" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect x="4" y="4" width="124" height="124" rx="62" fill="'.concat("#3a3a50",'" fill-opacity="0.4"/>\n <path d="M54.3443 94.6949C52.6872 95.7808 51.0072 95.8407 49.3043 94.8747C47.6014 93.9086 46.75 92.4314 46.75 90.443V41.557C46.75 39.5686 47.6014 38.0914 49.3043 37.1253C51.0072 36.1593 52.6872 36.2192 54.3443 37.3051L92.8227 61.801C94.3316 62.7952 95.0861 64.1949 95.0861 66C95.0861 67.8051 94.3316 69.2048 92.8227 70.199L54.3443 94.6949Z" fill="white"/>\n <rect x="4" y="4" width="124" height="124" rx="62" stroke="').concat("#eeeef1",'" stroke-width="8"/>\n </svg>
776'),n='<svg width="172" height="185" viewBox="0 0 172 185" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g filter="url(#filter0_d_1566_27807)">\n <rect x="24" y="37" width="124" height="124" rx="62" fill="'.concat("#2d2d3e",'"/>\n <path d="M74.3443 127.695C72.6872 128.781 71.0072 128.841 69.3043 127.875C67.6014 126.909 66.75 125.431 66.75 123.443V74.557C66.75 72.5686 67.6014 71.0914 69.3043 70.1253C71.0072 69.1593 72.6872 69.2192 74.3443 70.3051L112.823 94.801C114.332 95.7952 115.086 97.1949 115.086 99C115.086 100.805 114.332 102.205 112.823 103.199L74.3443 127.695Z" fill="').concat("#eeeef1",'"/>\n <rect x="24" y="37" width="124" height="124" rx="62" stroke="').concat("#eeeef1",'" stroke-width="8"/>\n </g>\n <defs>\n <filter id="filter0_d_1566_27807" x="-24" y="0" width="220" height="220" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">\n <feFlood flood-opacity="0" result="BackgroundImageFix"/>\n <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n <feOffset dy="11"/>\n <feGaussianBlur stdDeviation="22"/>\n <feComposite in2="hardAlpha" operator="out"/>\n <feColorMatrix type="matrix" values="0 0 0 0 0.317647 0 0 0 0 0.317647 0 0 0 0 0.439216 0 0 0 0.2 0"/>\n <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1566_27807"/>\n <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1566_27807" result="shape"/>\n </filter>\n </defs>\n </svg>'),r='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M19.9543 34.0448C19.3543 34.4448 18.7463 34.4614 18.1303 34.0948C17.513 33.7281 17.2043 33.1948 17.2043 32.4948V14.6948C17.2043 13.9948 17.513 13.4614 18.1303 13.0948C18.7463 12.7281 19.3543 12.7448 19.9543 13.1448L33.9543 22.0448C34.521 22.4114 34.8043 22.9281 34.8043 23.5948C34.8043 24.2614 34.521 24.7781 33.9543 25.1448L19.9543 34.0448ZM20.2043 30.2948L30.7543 23.5948L20.2043 16.8948V30.2948Z" fill="'.concat("#eeeef1",'"/>\n </svg>'),i='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M29.5 37C28.6667 37 27.9587 36.708 27.376 36.124C26.792 35.5413 26.5 34.8333 26.5 34V14C26.5 13.1667 26.792 12.4587 27.376 11.876C27.9587 11.292 28.6667 11 29.5 11H34C34.8333 11 35.5413 11.292 36.124 11.876C36.708 12.4587 37 13.1667 37 14V34C37 34.8333 36.708 35.5413 36.124 36.124C35.5413 36.708 34.8333 37 34 37H29.5ZM14 37C13.1667 37 12.4587 36.708 11.876 36.124C11.292 35.5413 11 34.8333 11 34V14C11 13.1667 11.292 12.4587 11.876 11.876C12.4587 11.292 13.1667 11 14 11H18.5C19.3333 11 20.0413 11.292 20.624 11.876C21.208 12.4587 21.5 13.1667 21.5 14V34C21.5 34.8333 21.208 35.5413 20.624 36.124C20.0413 36.708 19.3333 37 18.5 37H14ZM29.5 34H34V14H29.5V34ZM14 34H18.5V14H14V34Z" fill="'.concat("#eeeef1",'"/>\n </svg>'),a='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">\n <path d="M15.0003 19.6487C14.7503 19.7487 14.5213 19.7154 14.3133 19.5487C14.1047 19.382 14.0003 19.157 14.0003 18.8737C14.0003 18.7404 14.038 18.6237 14.1133 18.5237C14.188 18.4237 14.292 18.3404 14.4253 18.2737C15.742 17.7404 16.8003 16.8947 17.6003 15.7367C18.4003 14.578 18.8003 13.282 18.8003 11.8487C18.8003 10.4154 18.4003 9.11938 17.6003 7.96071C16.8003 6.80271 15.742 5.95704 14.4253 5.42371C14.2753 5.35704 14.167 5.26938 14.1003 5.16071C14.0337 5.05271 14.0003 4.93204 14.0003 4.79871C14.0003 4.51538 14.1047 4.29438 14.3133 4.13571C14.5213 3.97771 14.7503 3.94871 15.0003 4.04871C16.6003 4.71538 17.8837 5.74871 18.8503 7.14871C19.817 8.54871 20.3003 10.1154 20.3003 11.8487C20.3003 13.582 19.817 15.1487 18.8503 16.5487C17.8837 17.9487 16.6003 18.982 15.0003 19.6487ZM4.50034 14.3737C4.25034 14.3737 4.03801 14.2864 3.86334 14.1117C3.68801 13.9364 3.60034 13.7237 3.60034 13.4737V10.2737C3.60034 10.0237 3.68801 9.81104 3.86334 9.63571C4.03801 9.46104 4.25034 9.37371 4.50034 9.37371H7.32534L10.0753 6.62371C10.3587 6.34038 10.6837 6.27771 11.0503 6.43571C11.417 6.59438 11.6003 6.87371 11.6003 7.27371V16.4737C11.6003 16.8737 11.417 17.153 11.0503 17.3117C10.6837 17.4697 10.3587 17.407 10.0753 17.1237L7.32534 14.3737H4.50034ZM14.0003 15.5237V8.17371C14.6337 8.52371 15.142 9.03204 15.5253 9.69871C15.9087 10.3654 16.1003 11.0904 16.1003 11.8737C16.1003 12.657 15.9087 13.3737 15.5253 14.0237C15.142 14.6737 14.6337 15.1737 14.0003 15.5237ZM10.1003 8.72371L7.95034 10.8737H5.10034V12.8737H7.95034L10.1003 15.0237V8.72371Z" fill="'.concat("#eeeef1",'"/>\n </svg>'),s='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="none">\n <path d="M280-360v-240h160l200-200v640L440-360H280Zm80-80h114l86 86v-252l-86 8
7766H360v80Zm100-40Z" fill="'.concat("#eeeef1",'"/>\n </svg>'),l='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M14.75 29.7H20C20.5667 29.7 21.0587 29.5 21.476 29.1C21.892 28.7 22.1 28.2 22.1 27.6V26.75C22.1 26.5167 22.0087 26.308 21.826 26.124C21.642 25.9413 21.4333 25.85 21.2 25.85H20.6C20.3333 25.85 20.1167 25.9413 19.95 26.124C19.7833 26.308 19.7 26.5167 19.7 26.75V27C19.7 27.0667 19.6667 27.1333 19.6 27.2C19.5333 27.2667 19.4667 27.3 19.4 27.3H15.4C15.3 27.3 15.2253 27.2667 15.176 27.2C15.1253 27.1333 15.1 27.0667 15.1 27V21C15.1 20.9333 15.1253 20.8667 15.176 20.8C15.2253 20.7333 15.3 20.7 15.4 20.7H19.4C19.4667 20.7 19.5333 20.7333 19.6 20.8C19.6667 20.8667 19.7 20.9333 19.7 21V21.25C19.7 21.4833 19.7833 21.6833 19.95 21.85C20.1167 22.0167 20.3333 22.1 20.6 22.1H21.2C21.4333 22.1 21.642 22.0167 21.826 21.85C22.0087 21.6833 22.1 21.4833 22.1 21.25V20.4C22.1 19.8 21.892 19.3 21.476 18.9C21.0587 18.5 20.5667 18.3 20 18.3H14.75C14.1833 18.3 13.7 18.5 13.3 18.9C12.9 19.3 12.7 19.8 12.7 20.4V27.6C12.7 28.2 12.9 28.7 13.3 29.1C13.7 29.5 14.1833 29.7 14.75 29.7ZM28 29.7H33.25C33.8167 29.7 34.3 29.5 34.7 29.1C35.1 28.7 35.3 28.2 35.3 27.6V26.75C35.3 26.5167 35.2167 26.308 35.05 26.124C34.8833 25.9413 34.6667 25.85 34.4 25.85H33.8C33.5667 25.85 33.358 25.9413 33.174 26.124C32.9913 26.308 32.9 26.5167 32.9 26.75V27C32.9 27.0667 32.8753 27.1333 32.826 27.2C32.7753 27.2667 32.7 27.3 32.6 27.3H28.6C28.5333 27.3 28.4667 27.2667 28.4 27.2C28.3333 27.1333 28.3 27.0667 28.3 27V21C28.3 20.9333 28.3333 20.8667 28.4 20.8C28.4667 20.7333 28.5333 20.7 28.6 20.7H32.6C32.7 20.7 32.7753 20.7333 32.826 20.8C32.8753 20.8667 32.9 20.9333 32.9 21V21.25C32.9 21.4833 32.9913 21.6833 33.174 21.85C33.358 22.0167 33.5667 22.1 33.8 22.1H34.4C34.6667 22.1 34.8833 22.0167 35.05 21.85C35.2167 21.6833 35.3 21.4833 35.3 21.25V20.4C35.3 19.8 35.1 19.3 34.7 18.9C34.3 18.5 33.8167 18.3 33.25 18.3H28C27.4333 18.3 26.942 18.5 26.526 18.9C26.1087 19.3 25.9 19.8 25.9 20.4V27.6C25.9 28.2 26.1087 28.7 26.526 29.1C26.942 29.5 27.4333 29.7 28 29.7ZM10.6 9H37.4C38.4 9 39.25 9.35 39.95 10.05C40.65 10.75 41 11.6 41 12.6V35.4C41 36.4 40.65 37.25 39.95 37.95C39.25 38.65 38.4 39 37.4 39H10.6C9.6 39 8.75 38.65 8.05 37.95C7.35 37.25 7 36.4 7 35.4V12.6C7 11.6 7.35 10.75 8.05 10.05C8.75 9.35 9.6 9 10.6 9ZM37.4 12H10.6C10.4333 12 10.292 12.0587 10.176 12.176C10.0587 12.292 10 12.4333 10 12.6V35.4C10 35.5667 10.0587 35.7087 10.176 35.826C10.292 35.942 10.4333 36 10.6 36H37.4C37.5667 36 37.7087 35.942 37.826 35.826C37.942 35.7087 38 35.5667 38 35.4V12.6C38 12.4333 37.942 12.292 37.826 12.176C37.7087 12.0587 37.5667 12 37.4 12Z" fill="'.concat("#eeeef1",'"/>\n </svg>'),c='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M14.6999 9H37.3999C38.3999 9 39.2499 9.35 39.9499 10.05C40.6499 10.75 40.9999 11.6 40.9999 12.6V35.3L37.9999 32.3V12.6C37.9999 12.4333 37.9419 12.292 37.8259 12.176C37.7086 12.0587 37.5666 12 37.3999 12H17.6999L14.6999 9ZM32.8999 27.1V26.85C32.8999 26.6167 32.9912 26.4167 33.1739 26.25C33.3579 26.0833 33.5666 26 33.7999 26H34.3999C34.6666 26 34.8832 26.0913 35.0499 26.274C35.2166 26.458 35.2999 26.6667 35.2999 26.9V27.7C35.2999 27.9667 35.2499 28.2167 35.1499 28.45C35.0499 28.6833 34.8999 28.8833 34.6999 29.05L32.7499 27.1H32.8999ZM27.9999 18.3H33.2499C33.8166 18.3 34.2999 18.5 34.6999 18.9C35.0999 19.3 35.2999 19.8 35.2999 20.4V21.25C35.2999 21.4833 35.2166 21.6833 35.0499 21.85C34.8832 22.0167 34.6666 22.1 34.3999 22.1H33.7999C33.5666 22.1 33.3579 22.0167 33.1739 21.85C32.9912 21.6833 32.8999 21.4833 32.8999 21.25V21C32.8999 20.9333 32.8752 20.8667 32.8259 20.8C32.7752 20.7333 32.6999 20.7 32.5999 20.7H28.5999C28.5332 20.7 28.4666 20.7333 28.3999 20.8C28.3332 20.8667 28.2999 20.9333 28.2999 21V22.6L25.9499 20.25V20.1C26.0166 19.6 26.2412 19.1747 26.6239 18.824C27.0079 18.4747 27.4666 18.3 27.9999 18.3ZM18.3499 18.3L20.6999 20.7H15.3999C15.2999 20.7 15.2252 20.7333 15.1759 20.8C15.1252 20.8667 15.0999 20.9333 15.0999 21V27C15.0999 27.0667 15.1252 27.1333 15.1759 27.2C15.2252 27.2667 15.2999 27.3 15.3999 27.3H19.3999C19.4666 27.3 19.5332 27.2667 19.5999 27.2C19.6666 27.1333 19.6999 27.0667 19.6999 27V26.75C19.6999 26.5167 19.7832 26.308 19.9499 26.124C20.1166 25.9413 20.3332 25.85 20.5999 25.85H21.1999C21.4332 25.85 21.6419 25.9413 21.8259 26.124C22.0086 26.308 22.0999 26.5167 22.0999 26.75V27.6C22.0999 28.2 21.8919 28.7 21.4759 29.1C21.0586 29.5 20.5666 29.7 19.9999 29.7H14.7499C14.1832 29.7 13.6999 29.5 13.2999 29.1C12.8999 28.7 12.6999 28.2 12.6999 27.6V20.4C12.6999 19.8 12.8999 19.3 13.2999 18.9C13.6999 18.5 14.1832 18.3 14.7499 18.3H18.3499ZM9.2999 9.25L12.0499 12H10.5999C10.4666 12 10.3332 12.0667 10.
7761999 12.2C10.0666 12.3333 9.9999 12.4667 9.9999 12.6V35.4C9.9999 35.5333 10.0666 35.6667 10.1999 35.8C10.3332 35.9333 10.4666 36 10.5999 36H31.7499L3.5999 7.85C3.2999 7.55 3.1499 7.2 3.1499 6.8C3.1499 6.4 3.2999 6.03333 3.5999 5.7C3.93324 5.4 4.2999 5.25 4.6999 5.25C5.0999 5.25 5.4499 5.4 5.7499 5.7L42.6499 42.65C42.9499 42.95 43.1079 43.3 43.1239 43.7C43.1412 44.1 42.9832 44.45 42.6499 44.75C42.3499 45.05 41.9999 45.2 41.5999 45.2C41.1999 45.2 40.8499 45.05 40.5499 44.75L34.7499 39H10.5999C9.5999 39 8.7499 38.65 8.0499 37.95C7.3499 37.25 6.9999 36.4 6.9999 35.4V12.6C6.9999 11.8333 7.2079 11.15 7.6239 10.55C8.04124 9.95 8.5999 9.51667 9.2999 9.25Z" fill="'.concat("#eeeef1",'"/>\n </svg>'),d='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="'.concat("#eeeef1",'">\n <g fill="none"><path d="M0 0h24v24H0V0z"/><path d="M0 0h24v24H0V0z" opacity=".87"/></g><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/>\n </svg>'),u='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M11.8 38C11.3 38 10.8753 37.8253 10.526 37.476C10.1753 37.1253 10 36.7 10 36.2V29.5C10 29.0667 10.142 28.708 10.426 28.424C10.7087 28.1413
77611.0667 28 11.5 28C11.9333 28 12.2913 28.1413 12.574 28.424C12.858 28.708 13 29.0667 13 29.5V35H18.5C18.9333 35 19.292 35.1413 19.576 35.424C19.8587 35.708 20 36.0667 20 36.5C20 36.9333 19.8587 37.292 19.576 37.576C19.292 37.8587 18.9333 38 18.5 38H11.8ZM11.5 20C11.0667 20 10.7087 19.858 10.426 19.574C10.142 19.2913 10 18.9333 10 18.5V11.8C10 11.3 10.1753 10.8747 10.526 10.524C10.8753 10.1747 11.3 10 11.8 10H18.5C18.9333 10 19.292 10.142 19.576 10.426C19.8587 10.7087 20 11.0667 20 11.5C20 11.9333 19.8587 12.2913 19.576 12.574C19.292 12.858 18.9333 13 18.5 13H13V18.5C13 18.9333 12.858 19.2913 12.574 19.574C12.2913 19.858 11.9333 20 11.5 20ZM29.5 38C29.0667 38 28.7087 37.8587 28.426 37.576C28.142 37.292 28 36.9333 28 36.5C28 36.0667 28.142 35.708 28.426 35.424C28.7087 35.1413 29.0667 35 29.5 35H35V29.5C35 29.0667 35.1413 28.708 35.424 28.424C35.708 28.1413 36.0667 28 36.5 28C36.9333 28 37.292 28.1413 37.576 28.424C37.8587 28.708 38 29.0667 38 29.5V36.2C38 36.7 37.8253 37.1253 37.476 37.476C37.1253 37.8253 36.7 38 36.2 38H29.5ZM36.5 20C36.0667 20 35.708 19.858 35.424 19.574C35.1413 19.2913 35 18.9333 35 18.5V13H29.5C29.0667 13 28.7087 12.858 28.426 12.574C28.142 12.2913 28 11.9333 28 11.5C28 11.0667 28.142 10.7087 28.426 10.426C28.7087 10.142 29.0667 10 29.5 10H36.2C36.7 10 37.1253 10.1747 37.476 10.524C37.8253 10.8747 38 11.3 38 11.8V18.5C38 18.9333 37.8587 19.2913 37.576 19.574C37.292 19.858 36.9333 20 36.5 20Z" fill="'.concat("#eeeef1",'"/>\n </svg>'),h='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M18.5 38C18.0667 38 17.7087 37.8587 17.426 37.576C17.142 37.292 17 36.9333 17 36.5V31H11.5C11.0667 31 10.7087 30.858 10.426 30.574C10.142 30.2913 10 29.9333 10 29.5C10 29.0667 10.142 28.708 10.426 28.424C10.7087 28.1413
77611.0667 28 11.5 28H18.2C18.7 28 19.1253 28.1747 19.476 28.524C19.8253 28.8747 20 29.3 20 29.8V36.5C20 36.9333 19.8587 37.292 19.576 37.576C19.292 37.8587 18.9333 38 18.5 38ZM11.5 20C11.0667 20 10.7087 19.858 10.426 19.574C10.142 19.2913 10 18.9333 10 18.5C10 18.0667 10.142 17.708 10.426 17.424C10.7087 17.1413 11.0667 17 11.5 17H17V11.5C17 11.0667 17.142 10.7087 17.426 10.426C17.7087 10.142 18.0667 10 18.5 10C18.9333 10 19.292 10.142 19.576 10.426C19.8587 10.7087 20 11.0667 20 11.5V18.2C20 18.7 19.8253 19.1253 19.476 19.476C19.1253 19.8253 18.7 20 18.2 20H11.5ZM29.5 38C29.0667 38 28.7087 37.8587 28.426 37.576C28.142 37.292 28 36.9333 28 36.5V29.8C28 29.3 28.1747 28.8747 28.524 28.524C28.8747 28.1747 29.3 28 29.8 28H36.5C36.9333 28 37.292 28.1413 37.576 28.424C37.8587 28.708 38 29.0667 38 29.5C38 29.9333 37.8587 30.2913 37.576 30.574C37.292 30.858 36.9333 31 36.5 31H31V36.5C31 36.9333 30.8587 37.292 30.576 37.576C30.292 37.8587 29.9333 38 29.5 38ZM29.8 20C29.3 20 28.8747 19.8253 28.524 19.476C28.1747 19.1253 28 18.7 28 18.2V11.5C28 11.0667 28.142 10.7087 28.426 10.426C28.7087 10.142 29.0667 10 29.5 10C29.9333 10 30.292 10.142 30.576 10.426C30.8587 10.7087 31 11.0667 31 11.5V17H36.5C36.9333 17 37.292 17.1413 37.576 17.424C37.8587 17.708 38 18.0667 38 18.5C38 18.9333 37.8587 19.2913 37.576 19.574C37.292 19.858 36.9333 20 36.5 20H29.8Z" fill="'.concat("#eeeef1",'"/>\n </svg>');'<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M26.9999 43H20.9499C20.5166 43 20.1332 42.85 19.7999 42.55C19.4665 42.25 19.2666 41.8667 19.1999 41.4L18.5999 36.9C18.0665 36.7333 17.5252 36.4833 16.9759 36.15C16.4252 35.8167 15.9165 35.4667 15.4499 35.1L11.2999 36.9C10.8665 37.0667 10.4419 37.0833 10.0259 36.95C9.60855 36.8167 9.26655 36.55 8.99988 36.15L5.99988 30.9C5.76655 30.5 5.69988 30.0747 5.79988 29.624C5.89988 29.1747 6.11655 28.8167 6.44988 28.55L10.0999 25.8C10.0332 25.5 9.99188 25.2 9.97588 24.9C9.95855 24.6 9.94988 24.3 9.94988 24C9.94988 23.7333 9.95855 23.45 9.97588 23.15C9.99188 22.85 10.0332 22.5333 10.0999 22.2L6.44988 19.45C6.11655 19.1833 5.89988 18.8253 5.79988 18.376C5.69988 17.9253 5.76655 17.5 5.99988 17.1L8.99988 11.9C9.23322 11.5 9.56655 11.2333 9.99988 11.1C10.4332 10.9667 10.8499 10.9833 11.2499 11.15L15.4499 12.9C15.9165 12.5333 16.4252 12.192 16.9759 11.876C17.5252 11.5587 18.0665 11.3 18.5999 11.1L19.1999 6.6C19.2666 6.13333 19.4665 5.75 19.7999 5.45C20.1332 5.15 20.5166 5 20.9499 5H26.9999C27.4665 5 27.8665 5.15 28.1999 5.45C28.5332 5.75 28.7332 6.13333 28.7999 6.6L29.3999 11.1C29.9999 11.3333 30.5412 11.5913 31.0239 11.874C31.5079 12.158 31.9999 12.5 32.4999 12.9L36.7499 11.15C37.1499 10.9833 37.5585 10.9667 37.9759 11.1C38.3919 11.2333 38.7332 11.5 38.9999 11.9L41.9999 17.1C42.2332 17.5 42.2999 17.9253 42.1999 18.376C42.0999 18.8253 41.8832 19.1833 41.5499 19.45L37.8499 22.25C37.9165 22.5833 37.9499 22.8833 37.9499 23.15V24C37.9499 24.2667 37.9412 24.5413 37.9239 24.824C37.9079 25.108 37.8665 25.4333 37.7999 25.8L41.4499 28.55C41.8165 28.8167 42.0499 29.1747 42.1499 29.624C42.2499 30.0747 42.1665 30.5 41.8999 30.9L38.8999 36.1C38.6665 36.5 38.3332 36.7667 37.8999 36.9C37.4666 37.0333 37.0332 37.0167 36.5999 36.85L32.4999 35.1C31.9999 35.5 31.4919 35.85 30.9759 36.15C30.4585 36.45 29.9332 36.7 29.3999 36.9L28.7999 41.4C28.7332 41.8667 28.5332 42.25 28.1999 42.55C27.8665 42.85 27.4665 43 26.9999 43ZM23.9999 30C25.6665 30 27.0832 29.4167 28.2499 28.25C29.4165 27.0833 29.9999 25.6667 29.9999 24C29.9999 22.3333 29.4165 20.9167 28.2499 19.75C27.0832 18.5833 25.6665 18 23.9999 18C22.3332 18 20.9165 18.5833 19.7499 19.75C18.5832 20.9167 17.9999 22.3333 17.9999 24C17.9999 25.6667 18.5832 27.0833 19.7499 28.25C20.9165 29.4167 22.3332 30 23.9999 30ZM23.9999 27C23.1665 27 22.4585 26.708 21.8759 26.124C21.2919 25.5413 20.9999 24.8333 20.9999 24C20.9999 23.1667 21.2919 22.4587 21.8759 21.876C22.4585 21.292 23.1665 21 23.9999 21C24.8332 21 25.5412 21.292 26.1239 21.876C26.7079 22.4587 26.9999 23.1667 26.9999 24C26.9999 24.8333 26.7079 25.5413 26.1239 26.124C25.5412 26.708 24.8332 27 23.9999 27ZM21.9999 40H25.9499L26.6499 34.65C27.6832 34.3833 28.6165 34 29.4499 33.5C30.2832 33 31.0999 32.3667 31.8999 31.6L36.8499 33.7L38.8499 30.3L34.4999 27.05C34.6665 26.5167 34.7752 26 34.8259 25.5C34.8752 25 34.8999 24.5 34.8999 24C34.8999 23.4667 34.8752 22.9587 34.8259 22.476C34.7752 21.992 34.6665 21.5 34.4999 21L38.8499 17.7L36.8999 14.3L31.8499 16.4C31.1832 15.7 30.3832 15.0747 29.4499 14.524C28.5166 13.9747 27.5832 13.5833 26.6499 13.35L25.9999 8H22.0499L21.3499 13.35C20.3499 13.5833 19.4165 13.95 18.5499 14.45C17.6832 14.95 16.8499 15.5833 16.0499 16.35L11.0999 14.3L9.14988 17.7L13.4499 20.9C13.2832 21.4 13.1665 21.9 13.0999 22.4C13.0332 22.9 12.9999 23.4333 12.9999 24C12.9999 24.5333 13.0332 25.05 13.0999 25.55C13.1665 26.05 13.2832 26.55 13.4499 27.05L9.14988 30.3L11.0999 33.7L16.0499 31.6C16.8165 32.3667 17.6332 33 18.4999 33.5C19.3665 34 20.3165 34.3833 21.3499 34.65L21.9999 40Z" fill="'.concat("#eeeef1",'"/>\n </svg>');window.DMvideoLoadIcons=function(){o()(".s7iconeffect").html('<div class="centerPlayIcon">'.concat(e,'</div><div class="centerHoverIcon">').concat(t,'</div><div class="centerActiveIcon">').concat(n,"</div>")),o()(".s7playpausebutton").html('<div class="playButton">'.concat(r,'</div><div class="pauseButton">').concat(i,"</div>")),o()(".s7closedcaptionbutton").html('<div class="ccButton">'.concat(l,'</div><div class="ccButtonDisabled">').concat(c,"</div>")),o()(".s7fullscreenbutton").html('<div class="fullScreen">'.concat(u,'</div><div class="openScreen">').concat(h,"</div>")),o()(".s7mutablevolume .s7mutebutton").html('<div class="volumeButton">'.concat(a,'</div><div class="volumeButtonMute">').concat(s,"</div>")),o()(".s7chapterbutton .chapters").html("".concat(d))}}()}))},_=function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelector("footer")&&function(){var e=function(){var e=0,t=o()("footer .cmp-experiencefragment .cmp-footer-nav .primary-nav .above-brand-nav__rightnav")[0].offsetWidth,n=[];o()(".cmp-footer-nav .primary-nav .above-brand-nav__rightnav .menu > li").each((function(r){t>=e+o()(".cmp-footer-nav .primary-nav .above-brand-nav__rightnav .menu li").eq(r).width()?e+=o()(".cmp-footer-nav .primary-nav .above-brand-nav__rightnav .menu li").eq(r).width():n.push(r)}));(n.length<=0||0===n.length||null==n)&&o()(".cmp-footer-nav .primary-nav .above-brand-nav__rightnav .menu li").addClass("right-nav__margin")};o()(window).on("resize",(function(){o()(".cmp-footer-nav .primary-nav .above-brand-nav__rightnav .menu li").removeClass("right-nav__margin"),e()}));var t=function(){var e=document.querySelector(".cls-full__height");if(e){var t,n=(null===(t=document.querySelector("header"))||void 0===t?void 0:t.clientHeight)||0;e.style.setProperty("--cls-full-height","".concat(n,"px"))}};o()(document).ready((function(){o()("footer .global-nav.cmp-footer-nav").hasClass("cmp-footer-main-background")&&(o()("footer.experience-fragment").addClass("footer-main-background"),o()("footer.experiencefragment").addClass("footer-main-background")),o()("footer .global-nav.cmp-footer-nav").hasClass("footer-font-color")&&(o()("footer.experience-fragment").addClass("footer-font-color"),o()("footer.experiencefragment").addClass("footer-font-color")),o()("footer .global-nav.cmp-footer-nav").hasClass("cmp-border-radius--l")&&(o()("footer.experience-fragment").addClass("cmp-border-radius--l"),o()("footer.experiencefragment").addClass("cmp-border-radius--l")),o()("footer .global-nav.cmp-footer-nav").hasClass("cmp-border-radius--s")&&(o()("footer.experience-fragment").addClass("cmp-border-radius--s"),o()("footer.experiencefragment").addClass("cmp-border-radius--s")),o()("footer .global-nav.cmp-footer-nav").hasClass("cmp-border-radius--0")&&(o()("footer.experience-fragment").addClass("cmp-border-radius--0"),o()("footer.experiencefragment").addClass("cmp-border-radius--0")),setTimeout((function(){o()("footer .global-nav.cmp-footer-nav").hasClass("cmp-footer-main-background")&&(o()("footer.experience-fragment").addClass("footer-main-background"),o()("footer.experiencefragment").addClass("footer-main-background")),o()("footer .global-nav.cmp-footer-nav").hasClass("footer-font-color")&&(o()("footer.experience-fragment").addClass("footer-font-color"),o()("footer.experiencefragment").addClass("footer-font-color")),o()("footer .global-nav.cmp-footer-nav").hasClass("cmp-border-radius--l")&&(o()("footer.experience-fragment").addClass("cmp-border-radius--l"),o()("footer.experiencefragment").addClass("cmp-border-radius--l")),o()("footer .global-nav.cmp-footer-nav").hasClass("cmp-border-radius--s")&&(o()("footer.experience-fragment").addClass("cmp-border-radius--s"),o()("footer.experiencefragment").addClass("cmp-border-radius--s")),o()("footer .global-nav.cmp-footer-nav").hasClass("cmp-border-radius--0")&&(o()("footer.experience-fragment").addClass("cmp-border-radius--0"),o()("footer.experiencefragment").addClass("cmp-border-radius--0"))}),1500),e(),t(),o()(window).on("load resize orientationchange",t)}));var n=function(){var e,t,n=window.innerHeight,r=null===(e=document.querySelector("body>.root>div>header"))||void 0===e?void 0:e.clientHeight,i=null===(t=document.querySelector("body>.root>div>footer"))||void 0===t?void 0:t.clientHeight,a=document.querySelector("body>.root>div>.container");a&&(a.style.cssText="\n min-height: ".concat(n-(r+i),"px; \n ").concat(a.clientHeight?"display: inline-block;":"","\n "));var s=document.querySelector("body>.root>div>footer");s&&o()("body").hasClass("cmp-has-isi")&&(s.style.cssText="\n width: 100%; \n display: inline-block;\n ")},r=function(){var e;return document.querySelector("body>.root>div>.container")&&document.querySelector("body>.root>div>.container").style.minHeight&&(document.querySelector("body>.root>div>.container").style.minHeight="unset"),window.innerHeight>=(null===(e=document.querySelector("body"))||void 0===e?void 0:e.clientHeight)};window.location===window.parent.location&&(o()(window).on("load resize",(function(){r()&&n()})),window.bottomFixedFooterISI=function(){r()&&n()})}()}))},w=function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelector(".hero1")&&function(){o()(window).width();o()(window).on("resize",(function(){o()(window).width()})),o()(document).ready((function(){}))}()}))},x=function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelector(".language-nav")&&function(){var e="";function t(){var e=o()(".cmp-language-nav--body .separator:visible").outerHeight(!0)||0,t=o()(".cmp-language-nav--body__bottom"),n=o()(".cmp-language-nav--body__bottom .cmp-language-nav--menu .language-nav"),r=o()(".cmp-language-nav--body__bottom .cmp-language-nav--menu");t.removeClass("cmp-scroll"),r.height("auto"),setTimeout((function(){var i=0;n.each((function(){i+=o()(this).outerHeight()}));var a=o()(".cmp-language-nav--body").height()-(o()(".cmp-language-nav--body__top").outerHeight()+e);(a-=parseInt(t.css("padding-bottom").replace("px","")))<i&&(t.addClass("cmp-scroll"),r.height(a))}),10)}o()(".cmp-language-nav").attr({tabindex:"0"}),o()(window).on("load resize",(function(){t(),setTimeout((function(){o()("header .show-language-nav").css("display","flex"),o()(".hamburgermenu-tablet .show-language-nav, .cmp-show-hamburger .show-language-nav").hide()}),10)})),o()(document).on("click",".cmp-language-nav--body__top .global-link a",(function(t){t.preventDefault(),o()(".cmp-language-nav").hide(),o()(".text.show-language-nav").removeClass("cmp-rotate-arrow"),o()(e).focusout()})),o()(document).on("keydown",".cmp-language-nav",(function(e){o()(e.target).hasClass("cmp-language-nav")&&e.shiftKey&&9==e.keyCode&&(e.preventDefault(),o()(".cmp-language-nav .cmp-language-link:last a:last").focus())})),o()(document).on("keydown",".cmp-language-nav .cmp-language-link:last a:last",(function(e){9!=e.keyCode||e.shiftKey||(e.preventDefault(),o()(".cmp-language-nav").focus())})),o()(document).on("click",".show-language-nav a, .cmp-language-change ul li:last-child a",(function(n){n.preventDefault(),o()(".cmp-language-nav").is(":visible")||(e=n.currentTarget,o()(".text.show-language-nav").addClass("cmp-rotate-arrow"),o()(".cmp-language-nav").css("display","flex"),t(),o()(".cmp-language-nav").focus())}))}()}))},C=function(){document.addEventListener("DOMContentLoaded",(function(){o()(document).ready((function(){var e=o()(".cmp-thumbs-up-down-container .global-link.cmp-global-link-icon"),t=o()(".cmp-thumbs-up-down-container").attr("data-section-name");e&&e.find("li").on("click",(function(e){e.preventDefault(),o()(e.target).removeClass("global-link--neutral").addClass("global-link--deselected"),o()(e.target).parents("li").siblings("li").find("a span.material-symbols-rounded").removeClass("global-link--deselected").addClass("global-link--neutral"),o()(e.target).parents("ul").find("li, a").attr("tabindex","-1").addClass("cmp-disable-click"),void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&(o()(e.target).text().indexOf("thumb_up")>-1&&(0!==o()(".select-product select").length&&0!==o()(".SearchTerm").length?adobeDataLayer.push({event:"cmp:like",attributes:{sectionName:sessionStorage.getItem("productName")||t,productId:sessionStorage.getItem("product")||o()(".select-product select").val(),productSearch:sessionStorage.getItem("productName")||"",searchKeyword:sessionStorage.getItem("keyword")||o()(".SearchTerm").find("input").val()}}):adobeDataLayer.push({event:"cmp:like",attributes:{sectionName:t}})),o()(e.target).text().indexOf("thumb_down")>-1&&(0!==o()(".select-product select").length&&0!==o()(".SearchTerm").length?adobeDataLayer.push({event:"cmp:dislike",attributes:{sectionName:sessionStorage.getItem("productName")||t,productId:sessionStorage.getItem("product")||o()(".select-product select").val(),productSearch:sessionStorage.getItem("productName")||"",searchKeyword:sessionStorage.getItem("keyword")||o()(".SearchTerm").find("input").val()}}):adobeDataLayer.push({event:"cmp:dislike",attributes:{sectionName:t}})))}
776))}))}))},S=function(){document.addEventListener("DOMContentLoaded",(function(){var e;(e={formStarted:!1,error:{},init:function(){document.getElementById("cmp-login__form")&&e.getSiteId(),document.getElementById("cmp-login__form")&&e.setErrorsObj()},siteId:null,getSiteId:function(){var t=o()("#cmp-login__form").data("siteIdUrl"),n=o()("#cmp-login__form").data("siteIdMethod"),r=o()("#cmp-login__form input#practiceCountry").val(),i=o()("#cmp-login__form input#sitename").val();e.setCookie("countryCode",r,60),e.setCookie("siteName",i,60);var a={countryCode:r,siteName:i};o.a.ajax({url:t,type:n,data:a,success:function(t){e.siteId=t,o()("#cmp-login__form input#siteId").attr("value",t),e.setCookie("siteID",t,60),e.attachValidation()},error:function(t){o()("#cmp-login__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.genericError),o()("#cmp-login__form .cmp-globalregistration__error--main").show()}})},setErrorsObj:function(){e.error.genericError=o.a.trim(o()("#cmp-login__form input#generic-error").val()),e.error.credentialsNotCorrectError=o.a.trim(o()("#cmp-login__form input#credentials-not-correct-error").val()),e.error.reqFieldsBlankError=o.a.trim(o()("#cmp-login__form input#req-fields-blank-error").val())},setCookie:function(e,t,n){if(e&&t&&n){var r=new Date;r.setTime(r.getTime()+60*n*1e3);var i="expires="+r.toUTCString();document.cookie=e+"="+encodeURIComponent(t.toString())+";"+i+";path=/"}},getCookie:function(e){var t,n=e+"=";return decodeURIComponent(document.cookie).split("; ").forEach((function(e){0===e.indexOf(n)&&(t=e.substring(n.length))})),t},loginRedirection:function(){var t=o.a.trim(o()("#cmp-login__form input#mycontentpagelink").val());if(e.getCookie("userAccessPage")&&(t=e.getCookie("userAccessPage"),e.setCookie("userAccessPage","test",1)),o()("#consentModal").length){var n=getCookie("logincount"),r=consentchange(n);n<1||0==r?o()("#consentModal").show():window.location=t}else window.location=t},fnPostAjax:function(t){var n=o()("#cmp-login__form").data("loginUrl"),r=o()("#cmp-login__form").data("loginMethod");o()(".cmp-button__login .cmp-global-link-primary").addClass("cmp-disabled-primary"),o()(".cmp-loading-gif ").removeClass("hide"),o.a.ajax({url:n,type:r,data:t,success:function(t){void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formComplete",attributes:{formName:"Login Form"}}),t&&"0"==t.code?(e.setCookie("email",t.emailAddress,60),e.setCookie("id",t.userid,60),e.setCookie("firstName",t.firstName,60),e.setCookie("lastName",t.lastName,60),e.setCookie("landingpage",o.a.trim(o()("#cmp-login__form input#mycontentpagelink").val()),60),e.setCookie("logincount",t.loginCount,60),e.setCookie("oldemail","",60),e.loginRedirection()):t&&t.response&&"1"==t.response.code&&(o()("#cmp-login__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.credentialsNotCorrectError),o()("#cmp-login__form .cmp-globalregistration__error--main").show(),o()(".cmp-button__login .cmp-global-link-primary").removeClass("cmp-disabled-primary"),o()(".cmp-loading-gif").addClass("hide"))},error:function(t){void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formError",attributes:{formName:"Login Form",formError:"Error response from API"}}),o()("#cmp-login__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.genericError),o()("#cmp-login__form .cmp-globalregistration__error--main").show(),o()(".cmp-button__login .cmp-global-link-primary").removeClass("cmp-disabled-primary"),o()(".cmp-loading-gif").addClass("hide")}})},emailValidation:function(){document.getElementById("email").value.match(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/)?(o()("#cmp-login__form #email").closest(".form-group").removeClass("field-invalid"),o()("#cmp-login__form #email").closest(".form-group").addClass("field-valid")):(o()("#cmp-login__form #email").closest(".form-group").removeClass("field-valid"),o()("#cmp-login__form #email").closest(".form-group").addClass("field-invalid"))},passwordValidation:function(){document.getElementById("password").value?(o()("#cmp-login__form #password").closest(".form-group").removeClass("field-invalid"),o()("#cmp-login__form #password").closest(".form-group").addClass("field-valid")):(o()("#cmp-login__form #password").closest(".form-group").removeClass("field-valid"),o()("#cmp-login__form #password").closest(".form-group").addClass("field-invalid"))},attachValidation:function(){o()("#cmp-login__form .cmp-globalregistration__submit.cmp-button__login a:first").on("click",(function(t){if(t.preventDefault(),t.stopImmediatePropagation(),!o()(t.target).hasClass("cmp-disabled-primary"))if(e.emailValidation(),e.passwordValidation(),o()("#cmp-login__form .field-invalid").length<=0){o()("#cmp-login__form .cmp-globalregistration__error--main").hide();var n=o.a.trim(o()("#cmp-login__form input#practiceCountry").val()),r=o.a.trim(o()("#cmp-login__form input#landingPageLink").val()),i=o.a.trim(o()("#cmp-login__form input#email").val()),a=o.a.trim(o()("#cmp-login__form input#password").val()),s=!1;o()("#cmp-login__form #rememberMe").prop("checked")&&(s=!0);var l={practiceCountry:n,landingPageLink:r,emailAddress:i,password:a,siteId:e.getCookie("siteID"),inputRememberCheckBox:!0===s?"on":"",regConfigPage:o.a.trim(o()("#cmp-login__form input#regConfigPage").val())};e.fnPostAjax(l)}else o()("#cmp-login__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.reqFieldsBlankError),o()("#cmp-login__form .cmp-globalregistration__error--main").show(),o()(".form-group.field-invalid").first().find("input").focus(),void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formError",attributes:{formName:"Login Form",formError:"Required Field is Empty"}})})),o()("#cmp-login__form #email").off("keyup blur change").on("keyup blur change",(function(t){e.emailValidation(),e.formStartedfn(),"Enter"===t.key&&o()("#cmp-login__form .cmp-globalregistration__submit.cmp-button__login a:first").trigger("click")})),o()("#cmp-login__form #password").off("keyup blur change").on("keyup blur change",(function(t){e.passwordValidation(),e.formStartedfn(),"Enter"===t.key&&o()("#cmp-login__form .cmp-globalregistration__submit.cmp-button__login a:first").trigger("click")}))},formStartedfn:function(){e.formStarted||(void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formStart",attributes:{formName:"Login Form"}}),e.formStarted=!0)}}).init()}))},E=function(){document.addEventListener("DOMContentLoaded",(function(){var e;(e={formStarted:!1,error:{},init:function(){document.getElementById("cmp-setpassword__form")&&e.setErrorsObj(),document.getElementById("cmp-setpassword__form")&&e.attachValidation(),document.getElementById("cmp-setpassword__form")&&null===document.getElementById("cmp-setpassword__form").getAttribute("data-accesstotoken")&&document.getElementById("cmp-setpassword__form")&&e.getSiteId(),o()(".cmp-globalregistration__form .cmp-password input").on("focus",(function(){var e=this;o()(this).siblings(".cmp-password-on").is(":visible")||setTimeout((function(){o()(e).siblings(".cmp-password-off").show()}),100)})),o()(".cmp-globalregistration__form .cmp-password").on("click",".cmp-password-off",(function(){o()(this).siblings("input").attr("type","text"),o()(this).siblings(".cmp-password-on").show(),o()(this).hide()})),o()(".cmp-globalregistration__form .cmp-password").on("click",".cmp-password-on",(function(){o()(this).siblings("input").attr("type","password"),o()(this).siblings(".cmp-password-off").show(),o()(this).hide()})),o()(".cmp-globalregistration__form .cmp-password").length&&o()(document).on("click",(function(e){e.target.className&&("INPUT"!=e.target.tagName.toUpperCase()||-1===e.target.parentNode.className.indexOf("cmp-password")||"inline"!=e.target.nextElementSibling.style.display&&"inline"!=e.target.nextElementSibling.nextElementSibling.style.display)&&-1===e.target.className.indexOf("cmp-password-off")&&-1===e.target.className.indexOf("cmp-password-on")&&(o()(".cmp-globalregistration__form .cmp-password-off, .cmp-password-on").hide(),o()(".cmp-globalregistration__form .cmp-password input").attr("type","password"))}))},setErrorsObj:function(){e.error.genericError=o.a.trim(o()("#cmp-setpassword__form input#generic-error").val()),e.error.reqFieldsBlankError=o.a.trim(o()("#cmp-setpassword__form input#req-fields-blank-error").val()),e.error.invali
776dEmailError=o.a.trim(o()("#cmp-setpassword__form input#invalid-email-error").val()),e.error.tokenExpiryError=o.a.trim(o()("#cmp-setpassword__form input#token-expiry-error").val())},setCookie:function(e,t,n){if(e&&t&&n){var r=new Date;r.setTime(r.getTime()+60*n*1e3);var i="expires="+r.toUTCString();document.cookie=e+"="+encodeURIComponent(t.toString())+";"+i+";path=/"}},getCookie:function(e){var t,n=e+"=";return decodeURIComponent(document.cookie).split("; ").forEach((function(e){0===e.indexOf(n)&&(t=e.substring(n.length))})),t},verifyToken:function(){var t=o()("#cmp-setpassword__form").data("tokenUrl"),n=o()("#cmp-setpassword__form").data("tokenMethod");o.a.ajax({url:t,type:n,data:e.setJsonObject(),success:function(e){e&&"0"==e.Status||(o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration.cmp-callout.cmp-failure-callout .cmp-globalregistration").show())},error:function(t){o()("#cmp-setpassword__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.genericError),o()("#cmp-setpassword__form .cmp-globalregistration__error--main").show()}})},siteId:null,getSiteId:function(){var t=o()("#cmp-setpassword__form").data("siteIdUrl"),n=o()("#cmp-setpassword__form").data("siteIdMethod"),r=o()("#cmp-setpassword__form input#practiceCountry").val(),i=o()("#cmp-setpassword__form input#sitename").val();e.setCookie("countryCode",r,60),e.setCookie("siteName",i,60);var a={countryCode:r,siteName:i};o.a.ajax({url:t,type:n,data:a,success:function(t){e.siteId=t,o()("#cmp-setpassword__form input#siteId").attr("value",t),e.setCookie("siteID",t,60),o()("#cmp-setpassword__form").data("tokenUrl")&&e.verifyToken()},error:function(t){o()("#cmp-setpassword__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.genericError),o()("#cmp-setpassword__form .cmp-globalregistration__error--main").show()}})},fnPostAjax:function(t){var n=o()("#cmp-setpassword__form").data("url"),r=o()("#cmp-setpassword__form").data("method");o()(".cmp-button__setpassword .cmp-global-link-primary").addClass("cmp-disabled-primary"),o.a.ajax({url:n,type:r,data:t,success:function(t){void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formComplete",attributes:{formName:"Set Password Form"}}),t&&t.response&&"0"==t.response.code||t&&"0"==t.Status?(o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration.cmp-callout.cmp-success-callout .cmp-globalregistration").show(),document.querySelector(".cmp-progressbar")&&document.querySelector(".cmp-progressbar .progress-bar-items .text.current").classList.add("completed-step")):t&&"1"==t.code?(o()("#cmp-setpassword__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.genericError),o()("#cmp-setpassword__form .cmp-globalregistration__error--main").show()):t&&"1"==t.Status||t&&"Failure"==t.Status?(o()("#cmp-setpassword__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.no-matching-record-error),o()("#cmp-setpassword__form .cmp-globalregistration__error--main").show()):t&&"2"==t.code&&(o()("#cmp-setpassword__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.tokenExpiryError),o()("#cmp-setpassword__form .cmp-globalregistration__error--main").show()),o()(".cmp-button__setpassword .cmp-global-link-primary").removeClass("cmp-disabled-primary")},error:function(t){void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formError",attributes:{formName:"Set Password Form",formError:"Error response from API"}}),o()("#cmp-setpassword__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.genericError),o()("#cmp-setpassword__form .cmp-globalregistration__error--main").show(),o()(".cmp-button__setpassword .cmp-global-link-primary").removeClass("cmp-disabled-primary")}})},newpasswordValidation:function(){var e=document.getElementById("newpassword");e.value&&e.value.match(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[+={[\]}|\\:;"'<,>.?/~`!@#$%^&*()_-])[A-Za-z\d+={[\]}|\\:;"'<,>.?/~`!@#$%^&*()_-]{7,}$/)?(o()("#cmp-setpassword__form input#newpassword").closest(".form-group").removeClass("field-invalid"),o()("#cmp-setpassword__form input#newpassword").closest(".form-group").addClass("field-valid")):(o()("#cmp-setpassword__form input#newpassword").closest(".form-group").removeClass("field-valid"),o()("#cmp-setpassword__form input#newpassword").closest(".form-group").addClass("field-invalid"))},retypepasswordValidation:function(){var e=document.getElementById("newpassword"),t=document.getElementById("retypepassword");e.value&&t.value&&0===t.value.localeCompare(e.value)?(o()("#cmp-setpassword__form input#retypepassword").closest(".form-group").removeClass("field-invalid"),o()("#cmp-setpassword__form input#retypepassword").closest(".form-group").addClass("field-valid")):(o()("#cmp-setpassword__form input#retypepassword").closest(".form-group").removeClass("field-valid"),o()("#cmp-setpassword__form input#retypepassword").closest(".form-group").addClass("field-invalid"))},setJsonObject:function(){var t=o.a.trim(o()("#cmp-setpassword__form input#newpassword").val()),n=o.a.trim(o()("#cmp-setpassword__form input#retypepassword").val()),r=new
776URLSearchParams(window.location.search).get("token");return{practiceCountry:o.a.trim(o()("#cmp-setpassword__form input#practiceCountry").val()),changePasswordExpiredLink:o.a.trim(o()("#cmp-setpassword__form input#changePasswordExpiredLink").val()),expiryHour:o.a.trim(o()("#cmp-setpassword__form input#expireHour").val()),newPassword:t,retypeNewPassword:n,resetToken:r?r.replace(/ /g,"+"):"",emailAddress:e.getCookie("email")?e.getCookie("email"):"",siteId:e.getCookie("siteID"),oldPassword:"",siteCountry:o.a.trim(o()("#cmp-setpassword__form input#practiceCountry").val())}},attachValidation:function(){o()("#cmp-setpassword__form .cmp-globalregistration__submit.cmp-button__setpassword a:first").on("click",(function(t){t.preventDefault(),t.stopImmediatePropagation(),o()(t.target).hasClass("cmp-disabled-primary")||(e.newpasswordValidation(),e.retypepasswordValidation(),o()("#cmp-setpassword__form .field-invalid").length<=0?(o()("#cmp-setpassword__form .cmp-globalregistration__error--main").hide(),e.fnPostAjax(e.setJsonObject())):(o()("#cmp-setpassword__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.reqFieldsBlankError),o()("#cmp-setpassword__form .cmp-globalregistration__error--main").show(),o()(".form-group.field-invalid").first().find("input").focus(),void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formError",attributes:{formName:"Set Password Form",formError:"Required Field is Empty"}})))})),o()("#cmp-setpassword__form input#newpassword").off("keyup blur change").on("keyup blur change",(function(){e.newpasswordValidation(),e.formStartedfn(),o()("#cmp-setpassword__form input#retypepassword").val()&&e.retypepasswordValidation()})),o()("#cmp-setpassword__form input#retypepassword").off("keyup blur change").on("keyup blur change",(function(){e.retypepasswordValidation(),e.formStartedfn()}))},formStartedfn:function(){e.formStarted||(void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formStart",attributes:{formName:"Set Password Form"}}),e.formStarted=!0)}}).init()}))},k=function(){document.addEventListener("DOMContentLoaded",(function(){var e;(e={formStarted:!1,error:{},init:function(){document.getElementById("cmp-sendpassword__form")&&e.getSiteId(),document.getElementById("cmp-sendpassword__form")&&e.setErrorsObj()},setCookie:function(e,t,n){if(e&&t&&n){var r=new Date;r.setTime(r.getTime()+60*n*1e3);var i="expires="+r.toUTCString();document.cookie=e+"="+encodeURIComponent(t.toString())+";"+i+";path=/"}},getCookie:function(e){var t,n=e+"=";return decodeURIComponent(document.cookie).split("; ").forEach((function(e){0===e.indexOf(n)&&(t=e.substring(n.length))})),t},siteId:null,getSiteId:function(){var t=o()("#cmp-sendpassword__form").data("siteIdUrl"),n=o()("#cmp-sendpassword__form").data("siteIdMethod"),r=o()("#cmp-sendpassword__form input#practiceCountry").val(),i=o()("#cmp-sendpassword__form input#sitename").val();e.setCookie("countryCode",r,60),e.setCookie("siteName",i,60);var a={countryCode:r,siteName:i};o.a.ajax({url:t,type:n,data:a,success:function(t){e.siteId=t,o()("#cmp-sendpassword__form input#siteId").attr("value",t),e.setCookie("siteID",t,60),e.attachValidation()},error:function(t){o()("#cmp-sendpassword__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.genericError),o()("#cmp-sendpassword__form .cmp-globalregistration__error--main").show()}})},setErrorsObj:function(){e.error.genericError=o.a.trim(o()("#cmp-sendpassword__form input#generic-error").val()),e.error.reqFieldsBlankError=o.a.trim(o()("#cmp-sendpassword__form input#req-fields-blank-error").val()),e.error.invalidEmailError=o.a.trim(o()("#cmp-sendpassword__form input#invalid-email-error").val())},fnPostAjax:function(t){var n=o()("#cmp-sendpassword__form").data("resetPasswordUrl"),r=o()("#cmp-sendpassword__form").data("resetPasswordMethod");o()(".cmp-button__sendpassword .cmp-global-link-primary").addClass("cmp-disabled-primary"),o.a.ajax({url:n,type:r,data:t,success:function(t){void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formComplete",attributes:{formName:"Send Password Form"}}),o()(".cmp-button__sendpassword .cmp-global-link-primary").removeClass("cmp-disabled-primary"),t&&"0"==t.status?(o()(".globalregistration.cmp-callout").hide(),o()(".globalregistration.cmp-callout.cmp-password-reset-callout").show()):t&&"1"==t.status&&(o()("#cmp-sendpassword__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.invali
776dEmailError),o()("#cmp-sendpassword__form .cmp-globalregistration__error--main").show())},error:function(t){void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formError",attributes:{formName:"Send Password Form",formError:"Error response from API"}}),o()(".cmp-button__sendpassword .cmp-global-link-primary").removeClass("cmp-disabled-primary"),o()("#cmp-sendpassword__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.genericError),o()("#cmp-sendpassword__form .cmp-globalregistration__error--main").show()}})},emailValidation:function(){document.getElementById("email").value.match(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/)?(o()("#cmp-sendpassword__form input#email").closest(".form-group").removeClass("field-invalid"),o()("#cmp-sendpassword__form input#email").closest(".form-group").addClass("field-valid")):(o()("#cmp-sendpassword__form input#email").closest(".form-group").removeClass("field-valid"),o()("#cmp-sendpassword__form input#email").closest(".form-group").addClass("field-invalid"))},attachValidation:function(){o()("#cmp-sendpassword__form .cmp-globalregistration__submit.cmp-button__sendpassword a:first").on("click",(function(t){if(t.preventDefault(),t.stopImmediatePropagation(),!o()(t.target).hasClass("cmp-disabled-primary"))if(e.emailValidation(),o()("#cmp-sendpassword__form .field-invalid").length<=0){o()("#cmp-sendpassword__form .cmp-globalregistration__error--main").hide();var n={practiceCountry:o.a.trim(o()("#cmp-sendpassword__form input#practiceCountry").val()),resetpasswordlink:o.a.trim(o()("#cmp-sendpassword__form input#resetpasswordlink").val()),senderName:o.a.trim(o()("#cmp-sendpassword__form input#senderName").val()),senderEmail:o.a.trim(o()("#cmp-sendpassword__form input#senderEmail").val()),subject:o.a.trim(o()("#cmp-sendpassword__form input#subject").val()),headerLogo:o.a.trim(o()("#cmp-sendpassword__form input#headerLogo").val()),footerlogo:o.a.trim(o()("#cmp-sendpassword__form input#footerlogo").val()),fromlable:o.a.trim(o()("#cmp-sendpassword__form input#fromlable").val()),resetpasswordmessage:o.a.trim(o()("#cmp-sendpassword__form input#resetpasswordmessage").val()),resetpasswordlinklabel:o.a.trim(o()("#cmp-sendpassword__form input#resetpasswordlinklabel").val()),resetpasswordlinkdescription:o.a.trim(o()("#cmp-sendpassword__form input#resetpasswordlinkdescription").val()),copyrighttext:o.a.trim(o()("#cmp-sendpassword__form input#copyrighttext").val()),emailAddress:o.a.trim(o()("#cmp-sendpassword__form input#email").val()),siteId:e.getCookie("siteID")};e.fnPostAjax(n)}else o()("#cmp-sendpassword__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(e.error.reqFieldsBlankError),o()("#cmp-sendpassword__form .cmp-globalregistration__error--main").show(),o()(".form-group.field-invalid").first().find("input").focus(),void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formError",attributes:{formName:"Send Password Form",formError:"Required Field is Empty"}})})),o()(".cmp-password-reset-callout .cmp-globalregistration__submit a:first").on("click",(function(e){o()(".globalregistration.cmp-callout").hide(),o()(".globalregistration.cmp-callout.cmp-send-password-callout").show()})),o()("#cmp-sendpassword__form input#email").off("keyup blur change").on("keyup blur change",(function(){e.emailValidation(),e.formStartedfn()}))},formStartedfn:function(){e.formStarted||(void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formStart",attributes:{formName:"Send Password Form"}}),e.formStarted=!0)}}).init()}))};function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==T(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===T(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=function(){var e="Basic Information",t="Professional Selection",n="Additional Details",r="Final Submission",i="Known User Login",a={formStarted:!1,error:{},fedFlowType:"register",modeFlowType:null,init:function(){var e=o.a.trim(o()("#cmp-globalregistration__form #marketPlace").val()),t=o.a.trim(o()("#cmp-globalregistration__form #flowType").val());a.modeFlowType=o.a.trim(o()("#cmp-globalregistration__form #modeFlowType").val()),document.getElementById("cmp-globalregistration__form")&&a.attachValidation(),document.getElementById("cmp-globalregistration__form")&&a.setErrorsObj(),"Opendata"==e&&"hcp-verification"==t?a.fedFlowType="hcpVerify":"US"==e&&"registration"==t?(a.fedFlowType="medPro",a.initMedpro()):"edit"==a.modeFlowType?(o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration.cmp-progress .cmp-globalregistration").show(),o()(".globalregistration.cmp-progress").focus(),a.executeLoopInterval(),a.getUserDetail(),a.getUserDcrDetail()):a.fedFlowType="register",o()("#prof-type")&&"edit"!==a.modeFlowType&&document.getElementById("cmp-globalregistration__form")&&a.getHcpType(),document.getElementById("cmp-globalregistration__form")&&a.getSiteId(),o()(".cmp-callout, #cmp-globalregistration__form .cmp-globalregistration__error--main, .cmp-progress").attr({tabindex:"0"})},count:0,timeout:null,csrftoken:"",medProDOMstructure:"",searchResults:[],selectedMedUser:{}
776,getUserDetail:function(){var e=a.getCookie("email"),t=a.getCookie("siteID");if(e&&t){var n=o()("#cmp-globalregistration__form").data("userUrl"),r=o()("#cmp-globalregistration__form").data("userMethod"),i={emailAddress:e,siteId:t,siteCountry:a.getCookie("countryCode")};o.a.ajax({type:r,url:n,data:i,success:function(e){if(e.response.result&&"No matching Record Found"===e.response.result){o.a.ajax({type:"Post",url:"/content.userLoginDetails.json",data:{method:"logout"},success:function(e){"Success"==e.status?o()(".logoutAction").attr("data-modal-link")?window.location.href=o()(".logoutAction").attr("data-modal-link"):console.log("logout Success"):console.log("logout something went wrong")}})}else clearInterval(a.timeout),a.count=0,o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration .cmp-globalregistration--container").removeClass("hide"),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-form").show(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-left-section").show(),o()("#cmp-globalregistration__form #firstname").val(e.response.result.firstName),o()("#cmp-globalregistration__form #firstname").attr("data-orginaldbvalue",e.response.result.firstName),o()("#cmp-globalregistration__form #lastname").val(e.response.result.lastName),o()("#cmp-globalregistration__form #lastname").attr("data-orginaldbvalue",e.response.result.lastName),o()("#cmp-globalregistration__form #email").val(e.response.result.emailAddress),o()("#cmp-globalregistration__form #email").attr("data-orginaldbvalue",e.response.result.emailAddress),o()("#cmp-globalregistration__form #addressline").val(e.response.result.practiceAddress),o()("#cmp-globalregistration__form #addressline").attr("data-orginaldbvalue",e.response.result.practiceAddress),o()("#cmp-globalregistration__form #city").val(e.response.result.practiceCity),o()("#cmp-globalregistration__form #city").attr("data-orginaldbvalue",e.response.result.practiceCity),o()("#cmp-globalregistration__form #postcode").val(e.response.result.practicePostalCode),o()("#cmp-globalregistration__form #postcode").attr("data-orginaldbvalue",e.response.result.practicePostalCode),e.response.result.medicalNumber&&e.response.result.medicalNumber.length>0?(o()("#cmp-globalregistration__form #hcpnumber").val(e.response.result.medicalNumber),o()("#cmp-globalregistration__form #hcpnumber").attr("data-orginaldbvalue",e.response.result.medicalNumber),o()("#cmp-globalregistration__form #hcpnumber").siblings(".cmp-globalregistration__info").removeClass("hide")):o()("#cmp-globalregistration__form #hcpnumber").parents(".cmp-globalregistration__fields").addClass("hide")},error:function(e){clearInterval(a.timeout),a.count=0,o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration .cmp-globalregistration--container").removeClass("hide"),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-form").show(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-left-section").show(),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(a.error.genericError),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").show(),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").focus()}})}},getUserDcrDetail:function(){var e=a.getCookie("email");if(e){var t=o()("#cmp-globalregistration__form").data("userDcrUrl"),n=o()("#cmp-globalregistration__form").data("userDcrMethod"),r={emailAddress:e,practiceCountry:a.getCookie("countryCode")};o.a.ajax({type:n,url:t,data:r,success:function(e){clearInterval(a.timeout),a.count=0,o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration .cmp-globalregistration--container").removeClass("hide"),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-form").show(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-left-section").show();var t=!1;o.a.each(e,(function(e,n){o.a.each(n.result,(function(e,n){1==n.openDcrProfileFieldsStatus?(o()("#email_info").removeClass("hide"),o()("#cmp-globalregistration__form input:not([type=checkbox])").attr("disabled","disabled"),o()("#cmp-globalregistration__form .cmp-global-link-primary").removeClass("cmp-disabled-primary")):o()("#cmp-globalregistration__form .cmp-global-link-primary").addClass("cmp-disabled-primary"),!0===n.openDcrEmailStatus&&(t=!0),!0!==t?(o()("#cmp-globalregistration__form #email").removeAttr("disabled"),o()("#cmp-globalregistration__form .cmp-global-link-primary").addClass("cmp-disabled-primary"),o()("#email_info").addClass("hide")):(o()("#email_info").removeClass("hide"),o()("#cmp-globalregistration__form #email").attr("disabled","disabled"),o()("#cmp-globalregistration__form .cmp-global-link-primary").addClass("cmp-disabled-primary")),!0===n.openDcrProfileFieldsStatus&&!0===n.openDcrEmailStatus&&o()("#cmp-globalregistration__form input[type=checkbox]").attr("disabled","disabled")}))}))},error:function(e){clearInterval(a.timeout),a.count=0,o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration .cmp-globalregistration--container").removeClass("hide"),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-form").show(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-left-section").show(),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(a.error.genericError),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").show(),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").focus()}})}},initMedpro:function(){o()(".cmp-globalregistration-medpro-1").addClass("hide"),o()(".cmp-globalregistration-medpro").removeClass("hide"),a.createCSRFToken(),a.initSearchProf(),o()(".cmp-globalregistration__submit.cmp-button__globalregistration .global-link").addClass("cmp-disabled-primary"),a.medProDOMstructure=o()("#cmp-globalregistration--listsection").html(),o()("#cmp-globalregistration__form #cmp-globalregistration--action a").on("click",(function(e){e.preventDefault(),e.stopImmediatePropagation(),o()(".cmp-globalregistration").hide(),o()(".globalregistration.cmp-callout#cmp-failure-callout-1 .cmp-globalregistration").show()})),o()("#cmp-globalregistration--listsection").on("click",".global-link a",(function(e){e.preventDefault(),o()("#cmp-globalregistration--listsection .global-link").removeClass("cmp-selected"),o()(this).closest(".global-link").addClass("cmp-selected");var t=o()(this).closest("ul").attr("id");t=t.split("_"),a.selectedMedUser=a.searchResults[t[1]],a.listUserValidation()}))},initSearchProf:function(){o()("#cmp-globalregistration__form #firstname,\n #cmp-globalregistration__form #lastname, \n #cmp-globalregistration__form #prof-designation, \n #cmp-globalregistration__form #state").on("change",(function(){var e=o.a.trim(o()("#cmp-globalregistration__form #firstname").val()),t=o.a.trim(o()("#cmp-globalregistration__form #lastname").val()),n=o.a.trim(o()("#cmp-globalregistration__form #prof-designation").val()),r=o.a.trim(o()("#cmp-globalregistration__form #state").val());if(""!==e&&""!==t&&""!==n&&"select"!==n&&""!==r&&"select"!==r){var i={data:{firstName:e,lastName:t,professionalDesignation:n,state:r},url:o()("#cmp-globalregistration__form").data("medProfUrl"),method:o()("#cmp-globalregistration__form").data("medProfMethod")};a.getMedProfDetails(i)}}))},getMedProfDetails:function(e){o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration.cmp-progress .cmp-globalregistration").show(),o()(".globalregistration.cmp-progress").focus(),a.executeLoopInterval(),o.a.ajax({method:e.method?e.method:"",data:e.data?e.data:"",url:e.url?e.url:"",success:function(e){if(clearInterval(a.timeout),a.count=0,o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-form").show(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-left-section").show(),o()(".cmp-globalregistration-left-section .cmp-globalregistration-onload").hide(),o()(".cmp-globalregistration-left-section .cmp-globalregistration-add-more").show().removeClass("hide"),"0"===e.code){var t=e.result.filter((function(e){return e.npi_Number||e.stateLicense_StateLicenseNumber})),n=t.length;a.searchResults=t,o()("#cmp-globalregistration--listsection").empty();for(var r=0;r<n;r++){var i=a.medProDOMstructure,s=new Function("result","i","return `".concat(i,"`"));o()("#cmp-globalregistration--listsection").append(s(t,r))}o()(".cmp-globalregistration-medpro-1").removeClass("hide"),o()(".cmp-globalregistration-medpro--empty").addClass("hide"),o()(".cmp-globalregistration-medpro--found").removeClass("hide"),o()(".cmp-globalregistration__fields--listsection, .cmp-globalregistration__fields--action").removeClass("hide"),o()(".cmp-globalregistration__submit.cmp-button__globalregistration .global-link").removeClass("cmp-disabled-primary")}else o()(".cmp-globalregistration-medpro-1:first").removeClass("hide"),o()(".cmp-globalregistration-medpro--empty").removeClass("hide"),o()(".cmp-globalregistration-medpro--found").addClass("hide"),o()(".cmp-globalregistration-medpro-1:not(:first)").addClass("hide"),o()(".cmp-globalregistration__fields--listsection, .cmp-globalregistration__fields--action").addClass("hide"),o()(".cmp-globalregistration__submit.cmp-button__globalregistration .global-link").addClass("cmp-disabled-primary");o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").hide()},error:function(e){clearInterval(a.timeout),a.count=0,o()(".globalregistration .cmp-globalregistration").hide(),o()(".cmp-globalregistration-medpro-1").addClass("hide"),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-form").show(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-left-section").show(),o()(".cmp-globalregistration__submit.cmp-button__globalregistration .global-link").addClass("cmp-disabled-primary"),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(a.error.genericError),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").show()}})},createCSRFToken:function(){o.a.ajax({type:"POST",url:"/bin/global/createcsrftoken",success:function(e){a.csrftoken=e.CSRF_TOKEN},error:function(e){console.log("token creation failed")}})},getSiteId:function(){var e=o()("#cmp-globalregistration__form").data("siteIdUrl"),t=o()("#cmp-globalregistration__form").data("siteIdMethod"),n=o()("#cmp-globalregistration__form input#practiceCountry").val(),r=o()("#cmp-globalregistration__form input#sitename").val();a.setCookie("countryCode",n,60),a.setCookie("siteName",r,60),o.a.ajax({url:e,type:t,data:{countryCode:n,siteName:r},success:function(e){a.setCookie("siteID",e,60)},error:function(e){}})}
776,setCookie:function(e,t,n){if(e&&t){var r=new Date;r.setTime(r.getTime()+60*n*1e3);var i="expires="+r.toUTCString();document.cookie=e+"="+encodeURIComponent(t.toString())+";"+i+";path=/"}},getCookie:function(e){var t,n=e+"=";return decodeURIComponent(document.cookie).split("; ").forEach((function(e){0===e.indexOf(n)&&(t=e.substring(n.length))})),t},deleteCookie:function(e){document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"},setErrorsObj:function(){a.error.genericError=o.a.trim(o()("#cmp-globalregistration__form input#generic-error").val()),a.error.reqFieldsBlankError=o.a.trim(o()("#cmp-globalregistration__form input#req-fields-blank-error").val())},getHcpType:function(){var e=o()("#cmp-globalregistration__form").data("hcptypeUrl"),t=o()("#cmp-globalregistration__form").data("hcptypeMethod"),n=o()("#cmp-globalregistration__form input#hcpCountryCode").val(),r={countryCode:(n=n||o()("#cmp-globalregistration__form input#practiceCountry").val()).toLowerCase()};o.a.ajax({url:e,type:t,data:r,success:function(e){e.forEach((function(e,t){t>0&&o()("<option></option").addClass("item").attr("value",e.value).text(e.title).appendTo(o()("#prof-type"))}))},error:function(e){}})},executeLoopInterval:function(e){a.timeout=setTimeout((function(){o()(".cmp-progress .cmp-globalregistration__desc.cmp-globalregistration__desc--desktop").addClass("hide"),o()(".cmp-progress .cmp-globalregistration__desc.cmp-globalregistration__desc--desktop:eq("+a.count+")").removeClass("hide"),a.count++,3==a.count&&(a.count=0),a.executeLoopInterval()}),800)},pushDataLayerEvent:function(e,t){void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&window.adobeDataLayer&&adobeDataLayer.push({event:e,attributes:t})},pushFormStepViewed:function(e,t){a.pushDataLayerEvent("formStepViewed",{formName:t||"Global registration Form",stepName:e})},pushFormStepCompleted:function(e,t){a.pushDataLayerEvent("formStepCompleted",{formName:t||"Global registration Form",stepName:e})},pushFormStepSkipped:function(e,t){a.pushDataLayerEvent("formStepSkipped",{formName:t||"Global registration Form",stepName:e,isSkipped:!0})},fnPostAjax:function(s){var l=o()("#cmp-globalregistration__form").data("url"),c=o()("#cmp-globalregistration__form").data("method");o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration.cmp-progress .cmp-globalregistration").show(),o()(".globalregistration.cmp-progress").focus(),a.executeLoopInterval(),o.a.ajax({url:l,type:c,data:s,success:function(l){if(clearInterval(a.timeout),a.count=0,o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-form").show(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-left-section").show(),void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formComplete",attributes:{formName:"Global registration Form",Result:l&&l.Result?l.Result:"",Status:l&&l.Status?l.Status:""}}),"medPro"==a.fedFlowType)l&&"0"==l.Status?(a.pushFormStepCompleted(r),o()(".cmp-globalregistration").hide(),o()(".globalregistration.cmp-callout.cmp-success-callout .cmp-globalregistration").show(),o()(".globalregistration.cmp-callout").focus()):l&&l.Status&&("2"==l.Status||"1"==l.Status)?(a.pushFormStepCompleted(e),a.pushFormStepViewed(t),o()(".cmp-globalregistration").hide(),o()(".globalregistration.cmp-callout.cmp-partial-completion-callout .cmp-globalregistration").show(),o()(".globalregistration.cmp-callout").focus()):(o()("#cmp-globalregistration__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(a.error.genericError),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").show(),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").focus());else if(l&&"-1"==l.Status)o()(".cmp-globalregistration").hide(),o()(".globalregistration.cmp-callout#cmp-failure-callout-2 .cmp-globalregistration").show(),o()(".globalregistration.cmp-callout").focus();else if(l&&l.Status&&"2"==l.Status&&"User Not Exist"==l.Result||l&&l.Status&&"1"==l.Status&&"User Not Exist"==l.Result)a.pushFormStepCompleted(e),a.pushFormStepViewed(n),o()(".cmp-globalregistration-left-section .cmp-globalregistration-onload").hide(),o()(".cmp-globalregistration-left-section .cmp-globalregistration-add-more").show().removeClass("hide"),o()(".cmp-globalregistration-call-1, .cmp-globalregistration-call-2, .cmp-globalregistration-call-3, .cmp-globalregistration-call-4").removeClass("hide"),o()(".cmp-globalregistration-call-3:first input").focus(),document.querySelector("#globalRegistrationprogressbar")&&window.progressBarNext();else if(l&&l.Status&&"3"==l.Status)a.pushFormStepCompleted(e),a.pushFormStepViewed(n),o()(".cmp-globalregistration-left-section .cmp-globalregistration-onload").hide(),o()(".cmp-globalregistration-left-section .cmp-globalregistration-add-more").show().removeClass("hide"),o()(".cmp-globalregistration-call-1").is(":visible")?!o()(".cmp-globalregistration-call-2").is(":visible")||o()('.cmp-globalregistration-call-2 label[for="hcpnumber"]').hasClass("required")||o()(".cmp-globalregistration-call-2 input#hcpnumber").val()||(o()(".cmp-globalregistration-call-2 input#hcpnumber").attr("required",!0),o()('.cmp-globalregistration-call-2 label[for="hcpnumber"]').addClass("required"),o()(".cmp-globalregistration-call-2:first input").focus()):(o()(".cmp-globalregistration-call-1, .cmp-globalregistration-call-2, .cmp-globalregistration-call-3, .cmp-globalregistration-call-4").removeClass("hide"),o()(".cmp-globalregistration-call-3:first input").focus()),document.querySelector("#globalRegistrationprogressbar")&&window.progressBarNext();else if(l&&l.Status&&"1"==l.Status&&"User already Exists"==l.Result)if(a.pushFormStepCompleted(e),a.pushFormStepViewed(i),"hcpVerify"==a.fedFlowType){o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration.cmp-progress .cmp-globalregistration").show(),o()(".globalregistration.cmp-progress").focus(),a.setCookie("firstName",s.firstName,60),a.setCookie("lastName",s.lastName,60),a.setCookie("email",s.emailAddress,60),a.setCookie("landingpage",o()("#cmp-globalregistration__form").data("redirectUrl"),60),a.executeLoopInterval();var c=o()("#cmp-globalregistration__form").data("redirectUrl");a.getCookie("userAccessPage")&&(c=a.getCookie("userAccessPage"),a.setCookie("userAccessPage","test",1)),window.location=c}else o()(".cmp-globalregistration").hide(),o()(".globalregistration.cmp-callout.cmp-partial-completion-callout .cmp-globalregistration").show(),o()(".globalregistration.cmp-callout").focus();else l&&l.Status&&"5"==l.Status?(o()(".cmp-globalregistration").hide(),o()(".globalregistration.cmp-callout#cmp-failure-callout-1 .cmp-globalregistration").show(),o()(".globalregistration.cmp-callout").focus()):l&&"0"==l.Status?(a.pushFormStepCompleted(r),o()(".cmp-globalregistration").hide(),o()(".globalregistration.cmp-callout.cmp-success-callout .cmp-globalregistration").show(),o()(".globalregistration.cmp-callout").focus(),o.a.ajax({type:o()("#cmp-globalregistration__form").data("privacy-method"),url:o()("#cmp-globalregistration__form").data("privacy-url"),data:{firstName:o.a.trim(o()("#cmp-globalregistration__form #firstname").val()),lastName:o.a.trim(o()("#cmp-globalregistration__form #lastname").val()),siteID:a.getCookie("siteID"),emailAddress:o.a.trim(o()("#cmp-globalregistration__form #email").val()),agmtType:o.a.trim(o()("#cmp-globalregistration__form #agreementType").val()),agmtAcceptanceFlag:"0"},success:function(e){},error:function(e){}}),o()("#cmp-globalregistration__form #agreementType2").val()&&o.a.ajax({type:o()("#cmp-globalregistration__form").data("privacy-method2"),url:o()("#cmp-globalregistration__form").data("privacy-url2"),data:{firstName:o.a.trim(o()("#cmp-globalregistration__form #firstname").val()),lastName:o.a.trim(o()("#cmp-globalregistration__form #lastname").val()),siteID:a.getCookie("siteID"),emailAddress:o.a.trim(o()("#cmp-globalregistration__form #email").val()),agmtType:o.a.trim(o()("#cmp-globalregistration__form #agreementType2").val()),agmtAcceptanceFlag:"0"},success:function(e){},error:function(e){}})):(o()("#cmp-globalregistration__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(a.error.genericError),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").show(),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").focus());var d=document.querySelectorAll(".globalregistration .cmp-callout .cmp-globalregistration"),u=document.querySelector(".cmp-progressbar"),h=document.querySelector(".cmp-progressbar .progress-bar-items .text.current");
776if(d&&u&&!o()(".cmp-globalregistration-call-3").hasClass("hide"))for(var p=d.length,f=0;f<p;f++)"none"!=window.getComputedStyle(d[f]).display&&h.classList.add("completed-step")},error:function(e){void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formError",attributes:{formName:"Global registration Form",formError:"Error response from API"}}),clearInterval(a.timeout),a.count=0,o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-form").show(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-left-section").show(),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(a.error.genericError),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").show(),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").focus()}})},firstNameValidation:function(){var e=document.getElementById("firstname").value;/[!#$%+=[\]\\|<>?^()/",@]/.test(e)||e.length<1||e.length>100?(o()("#cmp-globalregistration__form input#firstname").closest(".form-group").removeClass("field-valid"),o()("#cmp-globalregistration__form input#firstname").closest(".form-group").addClass("field-invalid")):(o()("#cmp-globalregistration__form input#firstname").closest(".form-group").removeClass("field-invalid"),o()("#cmp-globalregistration__form input#firstname").closest(".form-group").addClass("field-valid"))},lastNameValidation:function(){var e=document.getElementById("lastname").value;/[!#$%+=[\]\\|<>?^()/",@]/.test(e)||e.length<1||e.length>100?(o()("#cmp-globalregistration__form input#lastname").closest(".form-group").removeClass("field-valid"),o()("#cmp-globalregistration__form input#lastname").closest(".form-group").addClass("field-invalid")):(o()("#cmp-globalregistration__form input#lastname").closest(".form-group").removeClass("field-invalid"),o()("#cmp-globalregistration__form input#lastname").closest(".form-group").addClass("field-valid"))},selectValidation:function(e){var t=document.getElementById(e);t.value&&"select"!=t.value?(o()("#cmp-globalregistration__form #".concat(e)).closest(".form-group").removeClass("field-invalid"),o()("#cmp-globalregistration__form #".concat(e)).closest(".form-group").addClass("field-valid")):(o()("#cmp-globalregistration__form #".concat(e)).closest(".form-group").removeClass("field-valid"),o()("#cmp-globalregistration__form #".concat(e)).closest(".form-group").addClass("field-invalid"))},desigValidation:function(){a.selectValidation("prof-designation")},stateValidation:function(){a.selectValidation("state")},areaofinterestValidation:function(){a.selectValidation("areaofinterest")},listUserValidation:function(){o()("#cmp-globalregistration--listsection .global-link").hasClass("cmp-selected")?(o()("#cmp-globalregistration--listsection").closest(".form-group").removeClass("field-invalid"),o()("#cmp-globalregistration--listsection").closest(".form-group").addClass("field-valid")):(o()("#cmp-globalregistration--listsection").closest(".form-group").removeClass("field-valid"),o()("#cmp-globalregistration--listsection").closest(".form-group").addClass("field-invalid"))},formatPhoneNo:function(e){return(e=e.trim().replaceAll("-","")).length>3&&e.length<=6?e=e.slice(0,3)+"-"+e.slice(3):e.length>6&&(e=e.slice(0,3)+"-"+e.slice(3,6)+"-"+e.slice(6)),e},phoneNoValidation:function(){var e=document.getElementById("phoneNo").value;document.getElementById("phoneNo").value=a.formatPhoneNo(e),/^\(?(\d{3})\)?[-]?(\d{3})[-]?(\d{4})$/.test(e)?(o()("#cmp-globalregistration__form #phoneNo").closest(".form-group").removeClass("field-invalid"),o()("#cmp-globalregistration__form #phoneNo").closest(".form-group").addClass("field-valid")):(o()("#cmp-globalregistration__form #phoneNo").closest(".form-group").removeClass("field-valid"),o()("#cmp-globalregistration__form #phoneNo").closest(".form-group").addClass("field-invalid"))},emailValidation:function(){var e=document.getElementById("email").value;e.match(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/)||e.length>100?(o()("#cmp-globalregistration__form input#email").closest(".form-group").removeClass("field-invalid"),o()("#cmp-globalregistration__form input#email").closest(".form-group").addClass("field-valid")):(o()("#cmp-globalregistration__form input#email").closest(".form-group").removeClass("field-valid"),o()("#cmp-globalregistration__form input#email").closest(".form-group").addClass("field-invalid"))},hcpNumberValidation:function(){var e=/^[A-Za-z0-9\s]+$/,t=document.getElementById("hcpnumber").value;o()('#cmp-globalregistration__form label[for="hcpnumber"]').hasClass("required")&&!e.test(t)||t.length>100?(o()("#cmp-globalregistration__form input#hcpnumber").closest(".form-group").removeClass("field-valid"),o()("#cmp-globalregistration__form input#hcpnumber").closest(".form-group").addClass("field-invalid")):!o()('#cmp-globalregistration__form label[for="hcpnumber"]').hasClass("required")&&0==t.length||t.length>100?o()("#cmp-globalregistration__form input#hcpnumber").closest(".form-group").removeClass("field-invalid"):!o()('#cmp-globalregistration__form label[for="hcpnumber"]').hasClass("required")&&t.length>0&&!e.test(t)||t.length>100?(o()("#cmp-globalregistration__form input#hcpnumber").closest(".form-group").removeClass("field-valid"),o()("#cmp-globalregistration__form input#hcpnumber").closest(".form-group").addClass("field-invalid")):(o()("#cmp-globalregistration__form input#hcpnumber").closest(".form-group").removeClass("field-invalid"),o()("#cmp-globalregistration__form input#hcpnumber").closest(".form-group").addClass("field-valid"))},profValidation:function(){a.selectValidation("prof-type")},specialityValidation:function(){a.selectValidation("speciality")},addresslineValidation:function(){var e=document.getElementById("addressline").value;/[!$%+=[\]\\|<>?^()@]/.test(e)||e.length<2||e.length>200?(o()("#cmp-globalregistration__form input#addressline").closest(".form-group").removeClass("field-valid"),o()("#cmp-globalregistration__form input#addressline").closest(".form-group").addClass("field-invalid")):(o()("#cmp-globalregistration__form input#addressline").closest(".form-group").removeClass("field-invalid"),o()("#cmp-globalregistration__form input#addressline").closest(".form-group").addClass("field-valid"))},cityValidation:function(){var e=document.getElementById("city").value;/[!$%+=[\]\\|<>?^()@]/.test(e)||e.length<2||e.length>100?(o()("#cmp-globalregistration__form input#city").closest(".form-group").removeClass("field-valid"),o()("#cmp-globalregistration__form input#city").closest(".form-group").addClass("field-invalid")):(o()("#cmp-globalregistration__form input#city").closest(".form-group").removeClass("field-invalid"),o()("#cmp-globalregistration__form input#city").closest(".form-group").addClass("field-valid"))},postcodeValidation:function(){var e=document.getElementById("postcode").value;!/[0-9]/.test(e)||!/^[A-Za-z0-9]+$/.test(e)||e.length<3||e.length>10?(o()("#cmp-globalregistration__form input#postcode").closest(".form-group").removeClass("field-valid"),o()("#cmp-globalregistration__form input#postcode").closest(".form-group").addClass("field-invalid")):(o()("#cmp-globalregistration__form input#postcode").closest(".form-group").removeClass("field-invalid"),o()("#cmp-globalregistration__form input#postcode").closest(".form-group").addClass("field-valid"))},termsValidation:function(){document.getElementById("legalConsent").checked?(o()("#cmp-globalregistration__form .legalConsent").removeClass("field-invalid"),o()("#cmp-globalregistration__form .cmp-globalregistration__termserror").addClass("d-none")):(o()("#cmp-globalregistration__form .legalConsent").addClass("field-invalid"),o()("#cmp-globalregistration__form .cmp-globalregistration__termserror").removeClass("d-none"))},termsValidation2:function(){document.getElementById("legalConsent-2").checked?(o()("#cmp-globalregistration__form .legalConsent-2").removeClass("field-invalid"),o()("#cmp-globalregistration__form .cmp-globalregistration__termserror").addClass("d-none")):(o()("#cmp-globalregistration__form .legalConsent-2").addClass("field-invalid"),o()("#cmp-globalregistration__form .cmp-globalregistration__termserror").removeClass("d-none"))},enableSaveButton:function(){o()("#cmp-globalregistration__form .field-invalid").length>0||!o()("#cmp-globalregistration__form #legalConsent").prop("checked")?o()("#cmp-globalregistration__form .cmp-globalregistration__submit.cmp-button__globalregistration .cmp-global-link-primary").addClass("cmp-disabled-primary"):o()("#cmp-globalregistration__form .cmp-globalregistration__submit.cmp-button__globalregistration .cmp-global-link-primary").removeClass("cmp-disabled-primary"),"edit"==a.modeFlowType&&o()(".changed")&&o()(".changed").length<1&&o()("#cmp-globalregistration__form .cmp-globalregistration__submit.cmp-button__globalregistration .cmp-global-link-primary").addClass("cmp-disabled-primary")},attachValidation:function(){o()("#cmp-globalregistration__form .cmp-globalregistration__submit.cmp-button__globalregistration").on("click",(function(e){if(e.preventDefault(),"edit"==a.modeFlowType){if(!o()(".cmp-globalregistration__submit.cmp-button__globalregistration .global-link").hasClass("cmp-disabled-primary"))if(document.getElementById("firstname")&&a.firstNameValidation(),document.getElementById("lastname")&&a.lastNameValidation(),document.getElementById("email")&&o()("#cmp-globalregistration__form #email").is(":visible")&&a.emailValidation(),document.getElementById("hcpnumber")&&o()("#cmp-globalregistration__form #hcpnumber").is(":visible")&&a.hcpNumberValidation(),document.getElementById("addressline")&&o()("#cmp-globalregistration__form #addressline").is(":visible")&&a.addresslineValidation(),document.getElementById("city")&&o()("#cmp-globalregistration__form #city").is(":visible")&&a.cityValidation(),document.getElementById("legalConsent")&&a.termsValidation(),document.getElementById("postcode")&&o()("#cmp-globalregistration__form #postcode").is(":visible")&&o()("#cmp-globalregistration__form #postcode").attr("data-orginaldbvalue")!=o()("#cmp-globalregistration__form #postcode").val()&&""!=o()("#cmp-globalregistration__form #postcode").val()&&a.postcodeValidation(),o()("#cmp-globalregistration__form .field-invalid").length<=0){o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").hide();o.a.trim(o()("#cmp-globalregistration__form #firstname").val()),o.a.trim(o()("#cmp-globalregistration__form #lastname").val()),o.a.trim(o()("#cmp-globalregistration__form #email").val()),o.a.trim(o()("#cmp-globalregistration__form #hcpnumber").val()),o.a.trim(o()("#cmp-globalregistration__form #addressline").val()),o.a.trim(o()("#cmp-globalregistration__form #city").val()),o.a.trim(o()("#cmp-globalregistration__form #postcode").val());o()("#cmp-globalregistration__form #legalConsent").prop("checked")&&!0;var t="";o()(".changed").each((function(){if("dcrFlow"!==o()(this).attr("id")){var e=o()(this).siblings("label").html(),n=o()(this).val();t+="<p>"+e+" : "+n+"</p>"}})),o()(".gdsmodal #astellas_edit_profile_confirmation .modal-body p").html(t)}else{e.stopImmediatePropagation(),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(a.error.reqFieldsBlankError),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").show(),o()("#cmp-globalregistration__form .form-group.field-invalid").first().find("input").focus(),void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formError",attributes:{formName:"Edit profile Form",formError:"Required Field is Empty"}})}}else if(e.stopImmediatePropagation(),!o()(".cmp-globalregistration__submit.cmp-button__globalregistration .global-link").hasClass("cmp-disabled-primary"))if(document.getElementById("firstname")&&a.firstNameValidation(),document.getElementById("lastname")&&a.lastNameValidation(),document.getElementById("prof-designation")&&o()("#cmp-globalregistration__form #prof-designation").is(":visible")&&a.desigValidation(),document.getElementById("state")&&o()("#cmp-globalregistration__form #state").is(":visible")&&a.stateValidation(),document.getElementById("cmp-globalregistration--listsection")&&o()("#cmp-globalregistration__form #cmp-globalregistration--listsection").is(":visible")&&a.listUserValidation(),document.getElementById("areaofinterest")&&o()("#cmp-globalregistration__form #areaofinterest").is(":visible")&&a.areaofinterestValidation(),document.getElementById("phoneNo")&&o()("#cmp-globalregistration__form #phoneNo").is(":visible")&&a.phoneNoValidation(),document.getElementById("email")&&o()("#cmp-globalregistration__form #email").is(":visible")&&a.emailValidation(),document.getElementById("hcpnumber")&&o()("#cmp-globalregistration__form #hcpnumber").is(":visible")&&a.hcpNumberValidation(),document.getElementById("prof-type")&&o()("#cmp-globalregistration__form #prof-type").is(":visible")&&a.profValidation(),document.getElementById("speciality")&&o()("#cmp-globalregistration__form #speciality").is(":visible")&&a.specialityValidation(),document.getElementById("addressline")&&o()("#cmp-globalregistration__form #addressline").is(":visible")&&a.addresslineValidation(),document.getElementById("city")&&o()("#cmp-globalregistration__form #city").is(":visible")&&a.cityValidation(),document.getElementById("postcode")&&o()("#cmp-globalregistration__form #postcode").is(":visible")&&a.postcodeValidation(),document.getElementById("legalConsent")&&a.termsValidation(),document.getElementById("legalConsent-2")&&a.termsValidation2(),o()("#cmp-globalregistration__form .field-invalid").length<=0){o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").hide();var n=o.a.trim(o()("#cmp-globalregistration__form #firstname").val()),r=o.a.trim(o()("#cmp-globalregistration__form #lastname").val()),i=o.a.trim(o()("#cmp-globalregistration__form #email").val()),s=o.a.trim(o()("#cmp-globalregistration__form #hcpnumber").val()),l=document.getElementById("prof-type")?document.getElementById("prof-type").value:"",c=document.getElementById("speciality")?document.getElementById("speciality").value:"",d=document.getElementById("areaofinterest")?document.getElementById("areaofinterest").value:"",u=document.getElementById("prof-designation")?document.getElementById("prof-designation").value:"",h=document.getElementById("state")?document.getElementById("state").value:"",p=o.a.trim(o()("#cmp-globalregistration__form #addressline").val()),f=o.a.trim(o()("#cmp-globalregistration__form #city").val()),m=o.a.trim(o()("#cmp-globalregistration__form #postcode").val()),g=!1;o()("#cmp-globalregistration__form #legalConsent").prop("checked")&&(g=!0);var v=!1;o()("#cmp-globalregistration__form #rememberMe").prop("checked")&&(v=!0);var y,b={};if("medPro"==a.fedFlowType)O(y={senderEmailUs:o.a.trim(o()("#cmp-globalregistration__form #senderEmail").val()),registerSubjectUs:o.a.trim(o()("#cmp-globalregistration__form #registerSubject").val()),senderNameUs:o.a.trim(o()("#cmp-globalregistration__form #senderName").val()),resetpasswordlinkUs:o.a.trim(o()("#cmp-globalregistration__form #resetpasswordlink").val()),dearTextUs:o.a.trim(o()("#cmp-globalregistration__form #dearText").val()),headlineUs:o.a.trim(o()("#cmp-globalregistration__form #headline").val()),footerUs:o.a.trim(o()("#cmp-globalregistration__form #footer").val()),thankyoumessageUs:o.a.trim(o()("#cmp-globalregistration__form #thankyoumessage").val()),linkLabelUs:o.a.trim(o()("#cmp-globalregistration__form #linkLabel").val()),linkDescriptionUs:o.a.trim(o()("#cmp-globalregistration__form #linkDescription").val()),bodyUs:o.a.trim(o()("#cmp-globalregistration__form #body").val()),preheaderUs:o.a.trim(o()("#cmp-globalregistration__form #preheader").val()),headerLogoUs:o.a.trim(o()("#cmp-globalregistration__form #headerLogo").val()),footerlogoUs:o.a.trim(o()("#cmp-globalregistration__form #footerlogo").val()),practiceCountry:o.a.trim(o()("#cmp-globalregistration__form #practiceCountry").val()),marketPlace:o.a.trim(o()("#cmp-globalregistration__form #marketPlace").val()),activeFlag:o.a.trim(o()("#cmp-globalregistration__form #activeFlag").val()),password:o.a.trim(o()("#cmp-globalregistration__form #password").val()),practiceURL:
776o.a.trim(o()("#cmp-globalregistration__form #practiceURL").val()),nationalId:o.a.trim(o()("#cmp-globalregistration__form #nationalId").val()),flowType:o.a.trim(o()("#cmp-globalregistration__form #flowType").val()),formSuccessLink:o.a.trim(o()("#cmp-globalregistration__form #formSuccessLink").val()),firstName:n,lastName:r,emailAddress:i,practicePostalCode:a.selectedMedUser.bestInfo_Address_Zip,practiceCity:a.selectedMedUser.bestInfo_Address_City,practiceName:o.a.trim(o()("#cmp-globalregistration__form #practiceName").val()),internalSourceId:o.a.trim(o()("#cmp-globalregistration__form #internalSourceId").val()),imcEnabled:o.a.trim(o()("#cmp-globalregistration__form #imcEnabled").val()),medicalNumber:a.selectedMedUser.medProID,profType:l,speciality:c,practiceAddress:a.selectedMedUser.bestInfo_Address_Line1,address2:a.selectedMedUser.bestInfo_Address_Line2,externalSourceId:a.selectedMedUser.npi_Number,nameSuffix:a.selectedMedUser.name_Suffix,middleName:a.selectedMedUser.name_Middle,stateLicenseNumber:a.selectedMedUser.stateLicense_StateLicenseNumber},"speciality",d),O(y,"professionalDesignation",u),O(y,"state",h),O(y,"phoneNo",o.a.trim(o()("#cmp-globalregistration__form #phoneNo").val())),O(y,"inputTermCheckBox",!0===g?"on":""),O(y,"csrftoken",a.csrftoken),O(y,"checkbox",!0===g?"on":""),O(y,"siteId",a.getCookie("siteID")),O(y,"sitename",o.a.trim(o()("#cmp-globalregistration__form input#sitename").val())),O(y,"regConfigPage",o.a.trim(o()("#cmp-globalregistration__form input#regConfigPage").val())),b=y;else b={senderEmail:o.a.trim(o()("#cmp-globalregistration__form #senderEmail").val()),resetPasswordSubject:o.a.trim(o()("#cmp-globalregistration__form #resetPasswordSubject").val()),registerSubject:o.a.trim(o()("#cmp-globalregistration__form #registerSubject").val()),senderName:o.a.trim(o()("#cmp-globalregistration__form #senderName").val()),resetpasswordlink:o.a.trim(o()("#cmp-globalregistration__form #resetpasswordlink").val()),dearText:o.a.trim(o()("#cmp-globalregistration__form #dearText").val()),headline:o.a.trim(o()("#cmp-globalregistration__form #headline").val()),footer:o.a.trim(o()("#cmp-globalregistration__form #footer").val()),thankyoumessage:o.a.trim(o()("#cmp-globalregistration__form #thankyoumessage").val()),linkLabel:o.a.trim(o()("#cmp-globalregistration__form #linkLabel").val()),linkDescription:o.a.trim(o()("#cmp-globalregistration__form #linkDescription").val()),body:o.a.trim(o()("#cmp-globalregistration__form #body").val()),preheader:o.a.trim(o()("#cmp-globalregistration__form #preheader").val()),resetPasswordBody:o.a.trim(o()("#cmp-globalregistration__form #resetPasswordBody").val()),resetPasswordfooter:o.a.trim(o()("#cmp-globalregistration__form #resetPasswordfooter").val()),headerLogo:o.a.trim(o()("#cmp-globalregistration__form #headerLogo").val()),footerlogo:o.a.trim(o()("#cmp-globalregistration__form #footerlogo").val()),resetpasswordlinklabel:o.a.trim(o()("#cmp-globalregistration__form #resetpasswordlinklabel").val()),resetpasswordlinkdescription:o.a.trim(o()("#cmp-globalregistration__form #resetpasswordlinkdescription").val()),practiceCountry:o.a.trim(o()("#cmp-globalregistration__form #practiceCountry").val()),marketPlace:o.a.trim(o()("#cmp-globalregistration__form #marketPlace").val()),activeFlag:o.a.trim(o()("#cmp-globalregistration__form #activeFlag").val()),password:o.a.trim(o()("#cmp-globalregistration__form #password").val()),practiceURL:o.a.trim(o()("#cmp-globalregistration__form #practiceURL").val()),nationalId:o.a.trim(o()("#cmp-globalregistration__form #nationalId").val()),flowType:o.a.trim(o()("#cmp-globalregistration__form #flowType").val()),firstName:n,lastName:r,emailAddress:i,practicePostalCode:m,practiceCity:f,imcEnabled:o.a.trim(o()("#cmp-globalregistration__form #imcEnabled").val()),medicalNumber:s,profType:l,speciality:c,practiceAddress:p,inputTermCheckBox:!0===g?"on":"",inputRememberCheckBox:!0===v?"on":"",siteId:a.getCookie("siteID"),sitename:o.a.trim(o()("#cmp-globalregistration__form input#sitename").val()),regConfigPage:o.a.trim(o()("#cmp-globalregistration__form input#regConfigPage").val())};a.fnPostAjax(b)}else{o()("#cmp-globalregistration__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(a.error.reqFieldsBlankError),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").show(),o()("#cmp-globalregistration__form .form-group.field-invalid").first().find("input").focus(),void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formError",attributes:{formName:"Global registration Form",formError:"Required Field is Empty"}})}})),o()(".gdsmodal #astellas_edit_profile_confirmation li:first-child .actionModalClose").on("click",(function(e){e.preventDefault(),a.submitChanges()})),o()(".gdsmodal #astellas_verify_your_email .actionModalClose").on("click",(function(e){e.preventDefault(),window.location.reload()})),o()(".allow-update").on("change",(function(){o()(this).attr("data-orginaldbvalue")!=o()(this).val()&&""!=o()(this).val()?o()(this).addClass("changed"):o()(this).removeClass("changed"),o()("#addressline").hasClass("changed")?(o()("#city").addClass("addressFields"),o()("#postcode").addClass("addressFields")):o()("#city").hasClass("changed")?(o()("#addressline").addClass("addressFields"),o()("#postcode").addClass("addressFields")):o()("#postcode").hasClass("changed")?(o()("#city").addClass("addressFields"),o()("#addressline").addClass("addressFields")):(o()("#city").removeClass("addressFields"),o()("#addressline").removeClass("addressFields"),o()("#postcode").removeClass("addressFields")),o()(".changed").length>=1&&!o()("#email").hasClass("changed")?o()("#dcrFlow").val("non-email").addClass("changed"):1==o()(".changed").length&&o()("#email").hasClass("changed")?o()("#dcrFlow").val("email").addClass("changed"):o()("#dcrFlow").val("both").addClass("changed")})),o()("#cmp-globalregistration__form #firstname").on("keyup blur change",(function(){a.firstNameValidation(),a.formStartedfn(),a.enableSaveButton()})),o()("#cmp-globalregistration__form #lastname").on("keyup blur change",(function(){a.lastNameValidation(),a.formStartedfn(),a.enableSaveButton()})),o()("#cmp-globalregistration__form #prof-designation").off("keyup blur change").on("keyup blur change",(function(e){e.stopPropagation(),a.desigValidation(),a.formStartedfn()})),o()("#cmp-globalregistration__form #state").off("keyup blur change").on("keyup blur change",(function(e){e.stopPropagation(),a.stateValidation(),a.formStartedfn()})),o()("#cmp-globalregistration__form #areaofinterest").off("keyup blur change").on("keyup blur change",(function(e){e.stopPropagation(),a.areaofinterestValidation(),a.formStartedfn()})),o()("#cmp-globalregistration__form #phoneNo").off("keyup blur change").on("keyup blur change",(function(){a.phoneNoValidation(),a.formStartedfn()})),o()("#cmp-globalregistration__form #email").on("keyup blur change",(function(){a.emailValidation(),a.formStartedfn(),a.enableSaveButton()})),o()("#cmp-globalregistration__form #hcpnumber").off("keyup blur change").on("keyup blur change",(function(){a.hcpNumberValidation(),a.formStartedfn()})),o()("#cmp-globalregistration__form #prof-type").off("keyup blur change").on("keyup blur change",(function(e){e.stopImmediatePropagation(),a.profValidation(),a.formStartedfn()})),o()("#cmp-globalregistration__form #speciality").off("keyup blur change").on("keyup blur change",(function(e){e.stopImmediatePropagation(),a.specialityValidation(),a.formStartedfn()})),o()("#cmp-globalregistration__form #addressline").on("keyup blur change",(function(){a.addresslineValidation(),a.formStartedfn(),a.enableSaveButton()})),o()("#cmp-globalregistration__form #city").on("keyup blur change",(function(){a.cityValidation(),a.formStartedfn(),a.enableSaveButton()})),o()("#cmp-globalregistration__form #postcode").on("keyup blur change",(function(){a.postcodeValidation(),a.formStartedfn(),a.enableSaveButton()})),o()("#cmp-globalregistration__form #legalConsent").on("change blur",(function(e){e.stopImmediatePropagation(),a.termsValidation(),a.formStartedfn(),a.enableSaveButton()})),o()("#cmp-globalregistration__form #legalConsent-2").off("change blur").on("change blur",(function(e){e.stopImmediatePropagation(),a.termsValidation2(),a.formStartedfn()})),o()('.cmp-globalregistration-form>.cmp-global-link-link li:last-child a[href="#"]').on("click",(function(e){e.preventDefault(),o()("#cmp-globalregistration__form").trigger("reset"),o()("#cmp-globalregistration__form .form-group").removeClass("field-valid").removeClass("field-invalid"),o()("#cmp-globalregistration--listsection .global-link").removeClass("cmp-selected"),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").hide()}))},attachGlobalValidation:function(){o()('form.cmp-globalregistration__form input[type="text"], form.cmp-globalregistration__form input[type="password"]').on("keydown",(function(e){o()(e.target).removeClass("cmp-selected-state").addClass("cmp-inputting-state")})),o()('form.cmp-globalregistration__form input[type="text"], form.cmp-globalregistration__form input[type="password"]').on("mouseup",(function(e){o()(e.target).addClass("cmp-selected-state").removeClass("cmp-inputting-state")})),o()('form.cmp-globalregistration__form input[type="text"], form.cmp-globalregistration__form input[type="password"]').on("focusout",(function(e){o()(e.target).removeClass("cmp-selected-state cmp-inputting-state")}))},submitChanges:function(){var e={},t=!1,n=!1;o()("#email.changed.allow-update")&&o()("#email.changed.allow-update").length>0&&(e.emailAddress=o()("#email.changed.allow-update").val(),t=!0),o()("#firstname.changed.allow-update")&&o()("#firstname.changed.allow-update").length>0&&(e.firstName=o()("#firstname.changed.allow-update").val(),n=!0),o()("#lastname.changed.allow-update")&&o()("#lastname.changed.allow-update").length>0&&(e.lastName=o()("#lastname.changed.allow-update").val(),n=!0),o()(".addressFields").length>0&&(e.practiceAddress=o()("#addressline").val(),e.practiceCity=o()("#city").val(),e.practicePostalCode=o()("#postcode").val(),n=!0);var r={siteId:a.getCookie("siteID"),userId:a.getCookie("id"),prefId:a.getCookie("prefId"),countryCode:a.getCookie("countryCode"),oldFirstName:o()("#firstname").attr("data-orginaldbvalue"),oldLastName:o()("#lastname").attr("data-orginaldbvalue"),oldEmailAddress:o()("#email").attr("data-orginaldbvalue")},i={dcrFlow:o.a.trim(o()("#cmp-globalregistration__form #dcrFlow").val()),sendername:o.a.trim(o()("#cmp-globalregistration__form input[name='sendername']").val()),senderemail:o.a.trim(o()("#cmp-globalregistration__form input[name='senderemail']").val()),editemailsubject:o.a.trim(o()("#cmp-globalregistration__form input[name='editemailsubject']").val()),editnonemailsubject:o.a.trim(o()("#cmp-globalregistration__form input[name='editnonemailsubject']").val()),headerLogo:o.a.trim(o()("#cmp-globalregistration__form input[name='headerLogo']").val()),footerlogo:o.a.trim(o()("#cmp-globalregistration__form input[name='footerlogo']").val()),dearText:o.a.trim(o()("#cmp-globalregistration__form input[name='dearText']").val()),emailverificationmessage:o.a.trim(o()("#cmp-globalregistration__form input[name='emailverificationmessage']").val()),emailverificationpostmessage:o.a.trim(o()("#cmp-globalregistration__form input[name='emailverificationpostmessage']").val()),nonemailverificationmessage:o.a.trim(o()("#cmp-globalregistration__form input[name='nonemailverificationmessage']").val()),emaillinklabel:o.a.trim(o()("#cmp-globalregistration__form input[name='emaillinklabel']").val()),nonemailconfirmation:o.a.trim(o()("#cmp-globalregistration__form input[name='nonemailconfirmation']").val()),emaildescription:o.a.trim(o()("#cmp-globalregistration__form input[name='emaildescription']").val()),nonemailde
776scription:o.a.trim(o()("#cmp-globalregistration__form input[name='nonemaildescription']").val()),emailbody:o.a.trim(o()("#cmp-globalregistration__form input[name='emailbody']").val()),nonemailbody:o.a.trim(o()("#cmp-globalregistration__form input[name='nonemailbody']").val()),emailfooter:o.a.trim(o()("#cmp-globalregistration__form input[name='emailfooter']").val()),nonemailfooter:o.a.trim(o()("#cmp-globalregistration__form input[name='nonemailfooter']").val()),successlink:o.a.trim(o()("#cmp-globalregistration__form input[name='successlink']").val()),failurelink:o.a.trim(o()("#cmp-globalregistration__form input[name='failurelink']").val()),expirytime:o.a.trim(o()("#cmp-globalregistration__form input[name='expirytime']").val())},s=o.a.extend(e,r,i,{});o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration.cmp-progress .cmp-globalregistration").show(),o()(".globalregistration.cmp-progress").focus(),a.executeLoopInterval(),o.a.ajax({type:"POST",url:"/content.editprofile.json",dataType:"json",data:s,success:function(e){clearInterval(a.timeout),a.count=0,o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-form").show(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-left-section").show(),e&&"0"==e.Status?(!0===t&&!0===n?o()("#open_verify_both_popup a").trigger("click"):!0===t?o()("#open_verify_email_popup a").trigger("click"):o()("#open_verify_profile_popup a").trigger("click"),adobeDataLayer.push({event:"formComplete",attributes:{formName:"Edit profile Form"}})):e&&"1"==e.Status&&(clearInterval(a.timeout),a.count=0,o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-form").show(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-left-section").show(),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(a.error.genericError),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").show(),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").focus())},error:function(){void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"formError",attributes:{formName:"Edit profile Form",formError:"Error response from API"}}),clearInterval(a.timeout),a.count=0,o()(".globalregistration .cmp-globalregistration").hide(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-form").show(),o()(".globalregistration .cmp-globalregistration.cmp-globalregistration-left-section").show(),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main .cmp-globalregistration__othererror").html(a.error.genericError),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").show(),o()("#cmp-globalregistration__form .cmp-globalregistration__error--main").focus()}})},formStartedfn:function(){var t="Global registration Form";"edit"==a.modeFlowType&&(t="edit profile form"),a.formStarted||(void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&(adobeDataLayer.push({event:"formStart",attributes:{formName:t}}),a.pushFormStepViewed(e,t)),a.formStarted=!0)},setConsent:function(){var e,t=function(){var e,t,n=o()("#data-consentmgmttype").val();if(null!=n&&"crm"==n)return e=o()("#consentVersion").val(),t=!0,o.a.ajax({type:"GET",url:"/bin/global/getconsent",data:{id:a.getCookie("id"),siteID:a.getCookie("siteID")},dataType:"json"}).done((function(n){if("No matching Record Found"!=n.result){o()("#consent-management").hide();var r=n.result[0].consentType.substr(n.result[0].consentType.indexOf("-v")+2);n.result&&r==e?(t=!0,o()("#consent-management").hide()):(t=!1,n.result[0].consentAcceptanceFlag&&"false"==n.result[0].consentAcceptanceFlag?(o()("#consent-management").show(),a.setCookie("consentAcceptanceFlag","false"),o()("#consent-mgmt").prop("checked",!1)):(o()("#consent-management").hide(),a.setCookie("consentAcceptanceFlag","true")))}else"No matching Record Found"===n.result&&(o()("#consent-management").show(),t=!1)})),t;if(null!=n&&"onetrust"==n){var r=a.getCookie("email");return o()("#inputEmail").val(r),function(){var e=!0;return o.a.ajax({type:"GET",url:"/bin/global/profiletoken",data:{identifier:a.getCookie("email")},dataType:"json"}).done((function(t){if(null==t||""==t)e=!1,o()("#consent-management").show();else{var n=t.purposes[0],r=n.id,i=n.name,s=n.version,l=n.status,c=t.id;a.setCookie("consentContentId",c),a.setCookie("purposeId",r),a.setCookie("purposeVersion",s),"ACTIVE"===l&&"OptIn"===i?(a.setCo
776okie("consentAcceptanceFlag","true"),o()("#consent-management").hide()):(a.setCookie("consentAcceptanceFlag","false"),o()("#consent-management").show()),e=!0}})),e}()}return!1}(),n=o()("#senderName").val(),r=o()("#senderEmail").val(),i=o()("#subject").val(),s=o()("#dearText").val(),l=o()("#emailcontent").val(),c=o()("#unsubscribedpath").val();o()("#consent-management .modal-content").append('<div class="cmp-loading-gif hide">\n <div class="loader spin">\n <div class="spin__blocker"></div>\n <div class="spin__bottom-left"></div>\n <div class="spin__bottom-right"></div>\n <div class="spin__top-left"></div>\n </div>\n </div>');var d=a.getCookie("logincount"),u=a.getCookie("consentAcceptanceFlag");(void 0===u||!0===u&&d>2)&&o()("#consent-management").hide(),d<=2&&o()("#consent-management").show(),void 0!==u&&(d<=2&&!u||0==t&&!u||d>2&&!u?o()("#consent-management").show():o()("#consent-management").hide());var h=o()("#data-consentmgmttype").val();if(null!=h&&"crm"==h){var p=a.getCookie("consentAcceptanceFlag"),f=o()("#consent-mgmt");d<=2&&(void 0===p||p)||d>2&&(void 0===p||p)?f.prop("checked",!0):f.prop("checked",!1),o()("#consent-management .global-link.cmp-global-link-primary a").on("click",(function(t){t.preventDefault(),o()(this).closest(".global-link").addClass("cmp-disabled-primary"),o()(".cmp-loading-gif").removeClass("hide");var d=o()("#consent-mgmt").is(":checked"),u="0",h=o()("#consentVersion").val();1==d&&(u="1");var p={id:a.getCookie("id"),consentAcceptanceFlag:u,siteID:a.getCookie("siteID"),consentEmailID:a.getCookie("email"),consentType:h,firstName:a.getCookie("firstName"),lastName:a.getCookie("lastName"),senderName:n,senderEmail:r,subject:i,dearText:s,emailcontent:l,unsubscribepath:c};o.a.ajax({type:"POST",url:"/content.setconsent.json",data:p,dataType:"json",success:function(t){"1"==t.code&&("Unable to set consents and consents already exist for user"==t.result?function(t,d){var u={id:a.getCookie("id"),consentAcceptanceFlag:t,siteID:a.getCookie("siteID"),consentEmailID:a.getCookie("email"),consentType:d,firstName:a.getCookie("firstName"),lastName:a.getCookie("lastName"),senderName:n,senderEmail:r,subject:i,dearText:s,emailcontent:l,unsubscribepath:c};o.a.ajax({type:"POST",url:"/bin/global/updateconsent",data:u,success:function(n){e="1"==t?"true":"false",a.setCookie("consentAcceptanceFlag",e),o()("#consent-management").hide()}})}(u,h):(o()("#consent-management").hide(),a.setCookie("consentAcceptanceFlag",t.result[0].consentAcceptanceFlag)))}})}))}else if(null!=h&&"onetrust"==h){var m=a.getCookie("consentAcceptanceFlag"),g=o()("#consent-mgmt");d<=2&&(void 0===m||m)||d>2&&(void 0===m||m)?g.prop("checked",!0):g.prop("checked",!1),o()("#consent-mgmt").on("change",(function(){1==o()("#consent-mgmt").is(":checked")?o()(".ot-checkbox .ot-input-checkbox").val("OptIn"):o()(".ot-checkbox .ot-input-checkbox").val("OptOut")})),o()("#consent-management a.ot-submit-button").on("click",(function(e){o()(this).closest(".global-link").addClass("cmp-disabled-primary"),o()(".cmp-loading-gif").removeClass("hide");var t="";t=1==o()("#consent-mgmt").is(":checked")?"optIn":"OptOut",o.a.ajax({type:"POST",url:"/bin/global/onetrustemailservlet",data:{consentType:t,consentEmailID:a.getCookie("email"),firstName:a.getCookie("firstName"),lastName:a.getCookie("lastName"),senderName:o.a.trim(o()("#senderName").val()),senderEmail:o.a.trim(o()("#senderEmail").val()),subject:o.a.trim(o()("#subject").val()),dearText:o.a.trim(o()("#dearText").val()),emailcontent:o.a.trim(o()("#emailcontent").val()),unsubscribelink:o.a.trim(o()("#unsubscribelink").val())},cache:!1,async:!0,success:function(e){console.log("success")},error:function(e){console.log("Error")}}),window.location.reload()}))}},setOneTrustEmailConf:function(){var e=a.getCookie("newEmailAddress");o()(".email-confirmation #inputEmail").val(e),o()(".email-confirmation #emailaddress-onetrust-flow").val(e),o()("#emailaddress-onetrust #emailaddress-onetrust-flow").attr("disabled","disabled"),o()("input#editprofile-onetrust").on("change",(function(){1==o()("input#editprofile-onetrust").is(":checked")?o()(".email-confirmation .ot-checkbox .ot-input-checkbox").val("OptIn"):o()(".email-confirmation .ot-checkbox .ot-input-checkbox").val("OptOut")})),o()(".email-confirmation ul#trigger a.ot-send-email").on("click",(function(e){o()("ul#popup a").click();var t="";1==o()("input#editprofile-onetrust").is(":checked")?(t="optIn",o()(".email-confirmation .ot-checkbox .ot-input-checkbox").val("OptIn")):(t="OptOut",o()(".email-confirmation .ot-checkbox .ot-input-checkbox").val("OptOut")),o.a.ajax({type:"POST",url:"/bin/global/onetrustemailservlet",data:{consentType:t,consentEmailID:a.getCookie("newEmailAddress"),firstName:a.getCookie("firstName"),lastName:a.getCookie("lastName"),senderName:o.a.trim(o()("#consentSenderName").val()),senderEmail:o.a.trim(o()("#consentSenderEmail").val()),subject:o.a.trim(o()("#consentSubject").val()),dearText:o.a.trim(o()("#consentdearText").val()),emailcontent:o.a.trim(o()("#emailcontent").val()),unsubscribelink:o.a.trim(o()("#unsubscribelink").val())},cache:!1,async:!0,success:function(e){console.log("success")},error:function(e){console.log("Error")}})})),o()("#confirmed-email #trigger a.ot-submit-button.trigger_btn_one_trust").on("click",(function(e){a.deleteCookie("authtoken"),a.deleteCookie("consentAcceptanceFlag"),a.deleteCookie("consentContentId"),a.deleteCookie("email"),a.deleteCookie("firstName"),a.deleteCookie("landingpage"),a.deleteCookie("lastName"),a.deleteCookie("logincount"),a.deleteCookie("newEmailAddress"),a.deleteCookie("purposeId"),a.deleteCookie("purposeVersion"),a.deleteCookie("usertoken")}))}};a.attachGlobalValidation(),document.getElementById("cmp-globalregistration__form")&&a.init(),document.getElementById("emailaddress-onetrust")&&a.setOneTrustEmailConf(),document.getElementById("consent-management")&&(o()("#consent-management").hide(),a.setConsent())},I=function(){document.addEventListener("DOMContentLoaded",(function(){P()}))},L=function(){document.addEventListener("DOMContentLoaded",(function(){var e;(e={init:function(){e.getCookie("email")&&e.getCookie("email").length>0?(o()(".logoutAction").css("display","flex"),o()(".global-nav.cmp-primary-nav").find("[data-modal-id=astellas_logout_confirmation").css("display","flex"),o()(".cmp-login-link").parents("li").css("display","none")):(o()(".logoutAction").css("display","none"),o()(o()(".logoutAction").parents(".cmp-right-menu").siblings(".separator")[0]).css("display","none"),o()(o()(".global-nav.cmp-primary-nav").find("[data-modal-id=astellas_logout_confirmation").parents(".cmp-right-menu").siblings(".separator")[0]).css("display","none"),o()(".logoutAction").parents("li").css("display","none"),o()(".global-nav.cmp-primary-nav").find("[data-modal-id=astellas_logout_confirmation").css("display","none"),o()(".cmp-account-section-link").parents("li").css("display","none")),e.attachValidation()}
776,setCookie:function(e,t,n){if(e&&t&&n){var r=new Date;r.setTime(r.getTime()+60*n*1e3);var i="expires="+r.toUTCString();document.cookie=e+"="+encodeURIComponent(t.toString())+";"+i+";path=/"}},getCookie:function(e){var t,n=e+"=";return decodeURIComponent(document.cookie).split("; ").forEach((function(e){0===e.indexOf(n)&&(t=e.substring(n.length))})),t},fnPostAjax:function(){o.a.ajax({type:"Post",url:"/content.userLoginDetails.json",data:{method:"logout"},success:function(e){"Success"==e.status?o()(".logoutAction").attr("data-modal-link")?window.location.href=o()(".logoutAction").attr("data-modal-link"):console.log("logout Success"):console.log("logout something went wrong")}})},attachValidation:function(){o()("a.logoutAction, #astellas_logout_confirmation a.actionContinueClose").on("click",(function(t){t.preventDefault(),e.fnPostAjax()}))}}).init()}))},A=function(){var e=o()("footer .cmp-experiencefragment"),t=parseFloat(e.css("margin-bottom")?e.css("margin-bottom").replace("px",""):0),n=o()(".astellas-isi"),r=o()(".cmp-isi.sticky-isi"),i=o()(".cmp-isi.enabled-inpage-isi"),a=n.find(".sticky-isi .cmp-isi--row__header .cmp-isi--row__col"),s=a.find(".cmp-isi--row__col-title .global-link").even().find("a"),l=a.find(".cmp-isi--row__col-title .global-link").odd().find("a"),c=0;function d(e){return e?e.dataset.cmpDataLayer?Object.keys(JSON.parse(e.dataset.cmpDataLayer))[0]:e.id:null}o()("body").addClass("cmp-has-isi"),n.append('<input id="cmp-refernce-margin" type="hidden" class="bottom-space-m top-space-s"/>');var u="";(u=n.hasClass("cmp-isi--container-20")?"cmp-isi--container-20":n.hasClass("cmp-isi--container-25")?"cmp-isi--container-25":n.find(".cmp-isi.sticky-isi").data("isiHeight")?n.find(".cmp-isi.sticky-isi").data("isiHeight"):"cmp-isi--container-20").length<=5&&n.find(".cmp-isi.sticky-isi .cmp-isi--container").height(u),s.closest(".global-link").addClass("display-global-link"),l.closest(".global-link").removeClass("display-global-link");var h=!0;n.hasClass("cmp-isi--container-minimised")?Boolean(localStorage.getItem("initialized-min-isi"))&&l.closest(".global-link").addClass("display-global-link"):h=!1;var p=o()(".global-link.cmp-floating-button ul li a"),f=o()("#ot-sdk-btn-floating"),m=0,g=0,v=0;function y(e){setTimeout((function(){p=o()(".global-link.cmp-floating-button ul li a"),(f=o()("#ot-sdk-btn-floating")).css("z-index",999),m=parseFloat(o()("#cmp-refernce-margin").css("margin-top").replace("px","")),g=parseFloat(o()("#cmp-refernce-margin").css("margin-bottom").replace("px","")),v=parseFloat(n.find(".cmp-isi.sticky-isi .cmp-isi--container__holder").css("padding-top").replace("px","")),w()}),e)}function b(){var r=n.find(".cmp-isi.sticky-isi .cmp-isi--container").outerHeight(),i=t+(r-m);e.css("margin-bottom","".concat(i,"px")),n.hasClass("cmp-isi--container-default")||n.hasClass("cmp-isi--container-20")||n.hasClass("cmp-isi--container-25")||n.find(".cmp-isi.sticky-isi").data("isiHeight")?(c=m+r,p.css("bottom","".concat(c,"px")),f.css("bottom","".concat(c,"px")),_("",o()(window).scrollTop())):(p.css("bottom","".concat(m,"px")),f.css("bottom","".concat(m,"px"))),window.bottomFixedFooterISI&&window.bottomFixedFooterISI()}function _(t,n){var r=n;isNaN(n)&&(r=t.currentTarget.scrollY);var i=e.offset()?e.offset().top:0,o=r+window.innerHeight+g,a=o-i;i<=o&&c<=a?(p.css("bottom","".concat(a,"px")),f.css("bottom","".concat(a,"px"))):isNaN(n)&&b()}function w(){var e=n.find(".cmp-isi.sticky-isi .cmp-isi--container"),t=n.find(".cmp-isi.sticky-isi .cmp-isi--row__body"),r=n.find(".cmp-isi.sticky-isi .cmp-isi--row__header");setTimeout((function(){if(t.removeClass("cmp-isi-scroll").height("auto"),t.removeClass("cmp-isi-scroll--alignment"),e.outerHeight()<t.outerHeight()){var i=e.outerHeight()-(r.outerHeight()+v);t.addClass("cmp-isi-scroll").outerHeight(i),function(){var e=n.find(".cmp-isi.sticky-isi .cmp-isi--row__body");document.querySelector(".sticky-isi .cmp-isi--row__body").clientWidth===Math.round(e.outerWidth())&&e.addClass("cmp-isi-scroll--alignment")}()}t.animate({scrollTop:0},100),b()}),310)}s.on("click",(function(e){e.preventDefault(),void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"cmp:show",eventInfo:{path:"component.".concat(d(o()(this)[0]))}}),n.hasClass("cmp-isi--container-default")?n.removeClass("cmp-isi--container-default"):(n.removeClass(u),n.find(".cmp-isi.sticky-isi .cmp-isi--container").height("")),s.closest(".global-link").removeClass("display-global-link"),l.closest(".global-link").addClass("display-global-link"),w()})),l.on("click",(function(e){void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"cmp:hide",eventInfo:{path:"component.".concat(d(o()(this)[0]))}}),e.preventDefault(),h?(n.removeClass(u),n.find(".cmp-isi.sticky-isi .cmp-isi--container").height(""),n.addClass("cmp-isi--container-default"),localStorage.setItem("initialized-min-isi",!0)):u.length>5?n.addClass(u):n.find(".cmp-isi.sticky-isi .cmp-isi--container").height(u),l.closest(".global-link").removeClass("display-global-link"),s.closest(".global-link").addClass("display-global-link"),w()}));var x=function(){var e=o()(".cmp-isi.sticky-isi .cmp-isi--container").outerHeight(),t=i.offset().top+e;o()(window).scrollTop()+o()(window).innerHeight()>t?r.addClass("hide-sticky"):r.removeClass("hide-sticky")};o()(window).on("load",(function(){y(200),o()(".cmp-isi.enabled-inpage-isi").length>0&&x()})),o()(window).on("resize",(function(){y(20)}));var C=0,S=0;o()(window).on("scroll touchmove",(function(e){var t=n.find(".cmp-isi.sticky-isi").data("isiOnScrollHeight");if(t&&s.is(":visible")){var r=e.currentTarget.scrollY;r>C&&(n.hasClass("cmp-isi--container-default")||n.find(".cmp-isi.sticky-isi .cmp-isi--container").height()===S||("cmp-isi--container-minimised"===t?(n.addClass("cmp-isi--container-default"),n.find(".cmp-isi.sticky-isi .cmp-isi--container").height(""),n.removeClass("cmp-isi--container-20 cmp-isi--container-25")):(n.find(".cmp-isi.sticky-isi .cmp-isi--container").height(t),n.removeClass("cmp-isi--container-20 cmp-isi--container-25 cmp-isi--container-default")),w(),S=n.find(".cmp-isi.sticky-isi .cmp-isi--container").height())),C=r<=0?0:r}_(e),o()(".cmp-isi.enabled-inpage-isi").length>0&&x()}))},M=function(){document.addEventListener("DOMContentLoaded",(function(){o()(".astellas-isi").length&&A()}))},j=function(){document.addEventListener("DOMContentLoaded",(function(){o()(document).ready((function(){o()(".cmp-anchorlink").length>0&&o()(".cmp-anchorlink").addClass("menu-show"),window.isJumping=!1;var e=o()(window).width();o()(".cmp-anchorlink").length>0&&(o()(window).on("scroll touchmove",(function(t){var n=0,r=t.currentTarget.scrollY;if(o()(".cmp-sticky-header").length>0){o()(".cmp-sticky-header").outerHeight();var i=o()(".anchor-links .cmp-primary-nav").outerHeight(!0);n=o()(".anchor-links").offset().top,parseInt(r)>=parseInt(n)?o()(".cmp-anchorlink").hasClass("menu-show")&&(o()(".cmp-anchorlink .cmp-primary-nav").parent().css("height",i+"px"),o()(".cmp-anchorlink").addClass("menu-hide").removeClass("menu-show"),o()(".cmp-anchorlink .cmp-primary-nav").css({top:0})):o()(".cmp-anchorlink").hasClass("menu-hide")&&(o()(".cmp-anchorlink").addClass("menu-show").removeClass("menu-hide"),o()(".cmp-anchorlink .cmp-primary-nav").css("top","auto"),o()(".cmp-anchorlink .cmp-primary-nav").parent().css("height","auto"))}else if(o()(".cmp-indication-bar-nav-2-0.cmp-indication-bar-sticky").length>0&&e>1024.1){var a=o()(".anchor-links .cmp-primary-nav").outerHeight(!0),s=0;o()("header .cmp-primary-nav").is(":visible")&&(s=o()("header .cmp-primary-nav").outerHeight()),s+=o()("header .cmp-indication-bar-nav").outerHeight(),n=o()(".anchor-links").offset().top-s;var l=o()(window).scrollTop();parseInt(l)>parseInt(n)?o()(".cmp-anchorlink").hasClass("menu-show")&&(o()(".cmp-anchorlink .cmp-primary-nav").parent().css("height",a+"px"),o()(".cmp-anchorlink").addClass("menu-hide").removeClass("menu-show"),o()(".cmp-anchorlink .cmp-primary-nav").css({top:s})):o()(".cmp-anchorlink").hasClass("menu-hide")&&(o()(".cmp-anchorlink").addClass("menu-show").removeClass("menu-hide"),o()(".cmp-anchorlink .cmp-primary-nav").css("top","auto"),o()(".cmp-anchorlink .cmp-primary-nav").parent().css("height","auto"))}else{var c=o()(".anchor-links .cmp-primary-nav").outerHeight(!0),d=0,u=o()(".global-nav.cmp-primary-nav").hasClass("cmp-primary-navigation-nav-2-0-non-sticky");o()("header .cmp-primary-nav").is(":visible")&&!u&&(d=o()("header .cmp-primary-nav").outerHeight()),n=o()(".anchor-links").offset().top-d;var h=o()(window).scrollTop();parseInt(h)>=parseInt(n)?o()(".cmp-anchorlink").hasClass("menu-show")&&(o()(".cmp-anchorlink .cmp-primary-nav").parent().css("height",c+"px"),o()(".cmp-anchorlink").addClass("menu-hide").removeClass("menu-show"),o()(".cmp-anchorlink .cmp-primary-nav").css({top:d})):o()(".cmp-anchorlink").hasClass("menu-hide")&&(o()(".cmp-anchorlink").addClass("menu-show").removeClass("menu-hide"),o()(".cmp-anchorlink .cmp-primary-nav").css("top","auto"),o()(".cmp-anchorlink .cmp-primary-nav").parent().css("height","auto"))}})),o()(document).on("click",'[href="#"]',(function(e){o()(".cmp-anchorlink .hamburger-container__close_show").length>0&&o()(".hamburger-container__close").trigger("click")}))),o()(document).on("click",'a[href ^= "#"]:not([href="#"])',(function(e){if(e.preventDefault(),0===o()(this).closest(".cmp-anchorlink-alphabets").length){var t=o()(this).attr("href");o()(".cmp-anchorlink").hasClass("menu-hide")&&history.pushState(null,null,t);var n,r=t.replace("#",""),i=0;if(0===o()(this).closest(".secondary-jumplinks").length||o()(this).closest(".secondary-jumplinks").length>0&&!o()(this).hasClass("ul-navitem__active")&&!window.isJumping){o()(this).closest(".secondary-jumplinks").length>0?(o()(".secondary-jumplinks .ul-navitem__active").removeClass("ul-navitem__active"),o()(this).addClass("ul-navitem__active"),window.isJumping=!0):(o()(".link-visited").removeClass("link-visited"),o()(this).addClass("link-visited")),r.length>0&&(n=o()("[id= "+r+"]")),"top"===r&&(n=o()("body")),setTimeout((function(){window.location.hash=t}),400);var a=o()("html, body"),s=o()(n).length?o()(n).offset().top:0,l=(i=0,0),c=0,d=0,u=0,h=0;if(o()(".cmp-sticky-header").length>0){if(void 0!==n&&n.length>0){window.astellasElements.isScrollable=!1,d=o()(".cmp-sticky-header").outerHeight(),o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")&&(u=o()(".cmp-anchorlink .cmp-primary-nav").innerHeight(),h=parseInt(o()(".cmp-anchorlink .cmp-primary-nav").css("padding-bottom").replace("px",""))),i=d+u;var p=o()(window).scrollTop();!o()(".cmp-sticky-header").hasClass("cmp-header--fixed")&&o()(".cmp-anchorlink").hasClass("menu-show")?a.stop().animate({scrollTop:o()(n).offset().top-u-u+15-h},10):o()(".cmp-anchorlink").hasClass("menu-show")&&o()(".cmp-sticky-header").hasClass("cmp-header--fixed")?(window.astellasElements.isScrollable=!0,a.stop().animate({scrollTop:s+u-d+15-h},10)):o()(".cmp-anchorlink").hasClass("menu-hide")&&!o()(".cmp-sticky-header").hasClass("cmp-header--fixed")?a.stop().animate({scrollTop:s-u+5},10):o()(".cmp-anchorlink").hasClass("menu-hide")&&o()(".cmp-sticky-header").hasClass("cmp-header--fixed")?p<s?a.stop().animate({scrollTop:s+d-u+15},10):a.stop().animate({scrollTop:s-i+5},10):a.stop().animate({scrollTop:s+10},10),setTimeout((function(){window.astellasElements.isScrollable=!0}),800)}}else void 0!==n&&n.length>0&&(o()("header .cmp-top-nav").is(":visible")&&(l=o()("header .cmp-top-nav").outerHeight()),o()("header .cmp-indication-bar-nav").is(":visible")&&(c=o()("header .cmp-indication-bar-nav").outerHeight()),o()("header .cmp-primary-nav").is(":visible")&&(d=o()("header .cmp-primary-nav").outerHeight()),o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")&&(u=o()(".cmp-anchorlink .cmp-primary-nav").innerHeight(),h=parseInt(o()(".cmp-anchorlink .cmp-primary-nav").css("padding-bottom").replace("px",""))),i=d+l+c+u,o()("header").hasClass("menu-show")&&!o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")?a.stop().animate({scrollTop:o()(n).offset().top-d-c-l},10):o()("header").hasClass("menu-show")&&o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")&&o()(".cmp-anchorlink").hasClass("menu-show")?a.stop().animate({scrollTop:o()(n).offset().top+21-u-h},10):o()("header").hasClass("menu-hide")&&!o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")?a.stop().animate({scrollTop:o()(n).offset().top-d},10):o()("header").hasClass("menu-hide")&&o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")&&o()(".cmp-anchorlink").hasClass("menu-hide")?a.stop().animate({scrollTop:o()(n).offset().top-d-u},10):o()("header").hasClass("menu-hide")&&o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")&&o()(".cmp-anchorlink").hasClass("menu-show")?a.stop().animate({scrollTop:o()(n).offset().top-d},10):o()("header").hasClass("menu-show")&&o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")&&o()(".cmp-anchorlink").hasClass("menu-hide")?a.stop().animate({scrollTop:o()(n).offset().top+21-u},10):a.stop().animate({scrollTop:o()(n).offset().top+21},10));return o()(".hamburger-container__close").trigger("click"),setTimeout((function(){window.isJumping=!1}),630),!1}}})),o()(".cmp-anchorlink").length>0&&o()(window).on("scroll touchmove",(function(e){var t=0,n=0;setTimeout((function(){if(o()(".cmp-sticky-header").length>0){var e=o()(".anchor-links").find('.primary-nav__middlenav.--jsfied ul.menu li:not(".-more"):not(".--hidden")').find("a");t=o()(".cmp-sticky-header").outerHeight(),o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")&&(n=o()(".cmp-anchorlink .cmp-primary-nav").outerHeight()),o()(".cmp-sticky-header").hasClass("cmp-header--fixed")?e.each((function(){var e=o()(this).attr("href").split("#");if(e[1]&&o()("#"+e[1]).length>0){var r=o()("[id= "+e[1]+"]"),i=r.offset().top-(t+n),a=i+r.outerHeight(),s=o()(window).scrollTop(),l=s+o()(window).height();if(a>s&&i<l&&i<s)return o()(this).closest(".menu").find("li a").removeClass("link-visited"),o()(this).addClass("link-visited"),!1}})):!o()(".cmp-sticky-header").hasClass("cmp-header--fixed")&&o()(".cmp-anchorlink").hasClass("menu-hide")&&e.each((function(){var e=o()(this).attr("href").split("#");if(e[1]&&o()("#"+e[1]).length>0){var t=o()("[id= "+e[1]+"]"),r=t.offset().top-n,i=r+t.outerHeight(),a=o()(window).scrollTop(),s=a+o()(window).height();if(i>a&&r<s&&r<a)return o()(this).closest(".menu").find("li a").removeClass("link-visited"),o()(this).addClass("link-visited"),!1}}))}else e=o()(".anchor-links").find('.primary-nav__middlenav.--jsfied ul.menu li:not(".-more"):not(".--hidden")').find("a"),o()("header .cmp-top-nav").is(":visible")&&o()("header .cmp-top-nav").outerHeight(),o()("header .cmp-indication-bar-nav").is(":visible")&&o()("header .cmp-indication-bar-nav").outerHeight(),o()("header .cmp-primary-nav").is(":visible")&&(t=o()("header .cmp-primary-nav").outerHeight()),o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")&&(n=o()(".cmp-anchorlink .cmp-primary-nav").outerHeight()),e.each((function(){var e=o()(this).attr("href").split("#");if(e[1]&&o()("#"+e[1]).length>0){var r=o()("[id= "+e[1]+"]"),i=r.offset().top-(t+n+20),a=i+r.outerHeight(!0),s=o()(window).scrollTop(),l=s+o()(window).height();if(a>s&&i<l&&i<s)return o()(this).closest(".menu").find("li a").removeClass("link-visited"),o()(this).addClass("link-visited"),!1}}))}),100)})),o()(document).on("click",".cmp-anchorlink .cmp-primary-nav.primary-nav__more .primary-nav-wrapper .primary-nav ul.menu li .more-menu-container a",(function(){var e;void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:"cmp:click",eventInfo:{path:"component."+(e=o()(this)[0],e?e.dataset.cmpDataLayer?Object.keys(JSON.parse(e.dataset.cmpDataLayer))[0]:e.id:null)}})})),o()(".secondary-jumplinks").length>0&&o()(window).on("scroll touchmove",(function(e){var t=0,n=0;window.isJumping||setTimeout((function(){if(o()(".cmp-sticky-header").length>0){var e=o()(".secondary-jumplinks").find(".sibling-item ul.ul-navitem").find("a");t=o()(".cmp-sticky-header").outerHeight(),o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")&&(n=o()(".cmp-anchorlink .cmp-primary-nav").outerHeight()),o()(".cmp-sticky-header").hasClass("cmp-header--fixed")?e.each((function(){var e=o()(this).attr("href").split("#");if(e[1]&&o()("#"+e[1]).length>0){var r=o()("[id= "+e[1]+"]"),i=r.offset().top-(t+n),
776a=i+r.outerHeight(),s=o()(window).scrollTop(),l=s+o()(window).height();if(a>s&&i<l&&i<s)return o()(this).closest(".ul-navitem").find("li a").removeClass("ul-navitem__active"),o()(this).addClass("ul-navitem__active"),!1}})):!o()(".cmp-sticky-header").hasClass("cmp-header--fixed")&&o()(".cmp-anchorlink").hasClass("menu-hide")&&e.each((function(){var e=o()(this).attr("href").split("#");if(e[1]&&o()("#"+e[1]).length>0){var t=o()("[id= "+e[1]+"]"),r=t.offset().top-n,i=r+t.outerHeight(),a=o()(window).scrollTop(),s=a+o()(window).height();if(i>a&&r<s&&r<a)return o()(this).closest(".ul-navitem").find("li a").removeClass("ul-navitem__active"),o()(this).addClass("ul-navitem__active"),!1}}))}else e=o()(".secondary-jumplinks").find(".sibling-item ul.ul-navitem").find("a"),o()("header .cmp-top-nav").is(":visible")&&o()("header .cmp-top-nav").outerHeight(),o()("header .cmp-indication-bar-nav").is(":visible")&&o()("header .cmp-indication-bar-nav").outerHeight(),o()("header .cmp-primary-nav").is(":visible")&&(t=o()("header .cmp-primary-nav").outerHeight()),o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")&&(n=o()(".cmp-anchorlink .cmp-primary-nav").outerHeight()),e.each((function(){var e=o()(this).attr("href").split("#");if(e[1]&&o()("#"+e[1]).length>0){var r=o()("[id= "+e[1]+"]"),i=r.offset().top-(t+n+20),a=i+r.outerHeight(!0),s=o()(window).scrollTop(),l=s+o()(window).height();if(a>s&&i<l&&i<s)return o()(this).closest(".ul-navitem").find("li a").removeClass("ul-navitem__active"),o()(this).addClass("ul-navitem__active"),!1}}))}),100)}))}))}))},R=window.matchMedia("(max-width: ".concat(767,"px)")),D=function(e){e.querySelectorAll("video").forEach((function(e){e.paused||e.ended||(e.dataset.wasPlaying="true",e.pause())}))},F=function(e){e.querySelectorAll("video").forEach((function(e){(function(e){return e.hasAttribute("autoplay")||e.autoplay})(e)&&"true"===e.dataset.wasPlaying&&(e.dataset.wasPlaying="false",e.play().catch((function(){console.log("Unable to resume video")})))}))},N=function(e,t){e.querySelectorAll('[data-cmp-hook-accordion="item"][data-cmp-expanded]').forEach((function(n){if(n!==t&&n.closest(".cmp-accordion")===e){var r=n.querySelector('[data-cmp-hook-accordion="panel"]');r&&D(r)}}))},B=function(e){e.removeAttribute("data-cmp-expanded");var t=e.querySelector('[data-cmp-hook-accordion="button"]'),n=e.querySelector('[data-cmp-hook-accordion="panel"]');n&&D(n),t&&(t.classList.remove("cmp-accordion__button--expanded"),t.setAttribute("aria-expanded","false")),n&&(n.classList.remove("cmp-accordion__panel--expanded"),n.classList.add("cmp-accordion__panel--hidden"),n.setAttribute("hidden",""))},U=function(){R.matches||document.querySelectorAll('.cmp-accordion[data-cmp-close-on-mobile="true"]').forEach((function(e){e.querySelectorAll('[data-cmp-hook-accordion="item"]').forEach((function(e){return G(e)}))}))},z=function(){R.matches&&document.querySelectorAll('.cmp-accordion[data-cmp-close-on-mobile="true"]').forEach((function(e){e.querySelectorAll('[data-cmp-hook-accordion="item"]').forEach((function(e){return B(e)}))}))},G=function(e){e.setAttribute("data-cmp-expanded","");var t=e.querySelector('[data-cmp-hook-accordion="button"]'),n=e.querySelector('[data-cmp-hook-accordion="panel"]');t&&(t.classList.add("cmp-accordion__button--expanded"),t.setAttribute("aria-expanded","true")),n&&(n.classList.add("cmp-accordion__panel--expanded"),n.classList.remove("cmp-accordion__panel--hidden"),n.removeAttribute("hidden"),F(n))},V=function(e,t,n){var r=o()(e).find('[data-cmp-hook-accordion="item"]'),i=r.length,a=r.filter("[data-cmp-expanded]").length;t.toggleClass("is-disabled",i>0&&a===i),n.toggleClass("is-disabled",0===a)},q=function(){document.querySelectorAll('[data-cmp-hook-accordion="button"]').forEach((function(e){e.addEventListener("click",(function(){var t=e.closest('[data-cmp-hook-accordion="item"]'),n=null==t?void 0:t.querySelector('[data-cmp-hook-accordion="panel"]'),r=e.closest(".cmp-accordion");n&&(t.hasAttribute("data-cmp-expanded")?D(n):(r&&function(e){return e.hasAttribute("data-cmp-single-expansion")}(r)&&N(r,t),F(n)))}),!0)})),z(),U(),document.querySelectorAll(".cmp-accordion[data-cmp-disabled-items]").forEach((function(e){var t=e.getAttribute("data-cmp-disabled-items");if(t){var n=e.querySelectorAll('[data-cmp-hook-accordion="item"]');t.split(",").forEach((function(e){var t=parseInt(e.trim(),10);if(!isNaN(t)){var r=n[t-1];if(r){r.classList.add("cmp-accordion__item--disabled");var i=r.querySelector('[data-cmp-hook-accordion="button"]');i&&(i.setAttribute("aria-disabled","true"),i.setAttribute("tabindex","-1"))}}}))}})),o()('[id^="accordion-template"]').length&&(o()(".accordion-expand-all").on("click",(function(e){if(e.preventDefault(),!o()(this).hasClass("is-disabled")){var t=o()(this).closest('[id^="accordion-template"]').attr("id");if(t){var n=document.querySelector(".cmp-accordion."+t);if(n){n.querySelectorAll('[data-cmp-hook-accordion="item"]').forEach((function(e){G(e)}));var r=o()(this).closest('[id^="accordion-template"]');V(n,r.find(".accordion-expand-all"),r.find(".accordion-collapse-
776all"))}}}})),o()(".accordion-collapse-all").on("click",(function(e){e.preventDefault();var t=o()(this).closest('[id^="accordion-template"]').attr("id");if(t){var n=document.querySelector(".cmp-accordion."+t);if(n){n.querySelectorAll('[data-cmp-hook-accordion="item"]').forEach((function(e){B(e)}));var r=o()(this).closest('[id^="accordion-template"]');V(n,r.find(".accordion-expand-all"),r.find(".accordion-collapse-all"))}}})),o()('[id^="accordion-template"]').each((function(){var e=o()(this),t=e.attr("id");if(t){var n=document.querySelector(".cmp-accordion."+t);if(n){var r=e.find(".accordion-expand-all"),i=e.find(".accordion-collapse-all");V(n,r,i),o()(n).on("click",'[data-cmp-hook-accordion="button"]',(function(){setTimeout((function(){V(n,r,i)}),0)}))}}}))),R.addEventListener("change",(function(){z(),U()}))},H=function(){document.addEventListener("DOMContentLoaded",(function(){o()(".accordion.accordion--separator, .accordion.accordion--container, .accordion.accordion--detail").length&&setTimeout(q,0)}))};function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==W(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===W(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Q=function(){var e;e=0===o()(".cmp-gating-component").find(".cmp-form-elements").length?o()(".cmp-gating-component.cmp-form-elements"):o()(".cmp-gating-component").find(".cmp-form-elements");var t=[],n=[],r=!1,i="",a=[],s=function(e){var t=o()(e).find("[data-analytics]:visible");if(t.length>0){var n=t.data("analytics"),r=t.val();a.push(K({},n,r))}},l=function(e){var t=o()(e).find("select:visible"),i=o()(e).find("input[type=text]:visible"),s=o()(e).find("textarea:visible");if(t.length>0&&t.hasClass("required")&&(t.val()&&"select"!==t.val()?(t.closest(".form-group").removeClass("field-invalid"),t.closest(".form-group").addClass("field-valid"),n.push(!0)):(t.closest(".form-group").removeClass("field-valid"),t.closest(".form-group").addClass("field-invalid"),n.push(!1))),i.length>0&&i.hasClass("required")&&(i.val()?(i.closest(".form-group").removeClass("field-invalid"),i.closest(".form-group").addClass("field-valid"),n.push(!0)):(i.closest(".form-group").removeClass("field-valid"),i.closest(".form-group").addClass("field-invalid"),n.push(!1))),s.length>0&&s.hasClass("required")&&(s.val()?(s.closest(".form-group").removeClass("field-invalid"),s.closest(".form-group").addClass("field-valid"),n.push(!0)):(s.closest(".form-group").removeClass("field-valid"),s.closest(".form-group").addClass("field-invalid"),n.push(!1))),!r){if(void 0!==o()("body").attr("data-cmp-data-layer-enabled")){var l={formName:"Gating form "+o()(".cmp-gating-component").find("form").attr("id")};a.forEach((function(e){l=X(X({},l),e)})),adobeDataLayer.push({event:"formStart-Gating",attributes:l})}r=!0}},c=function(e){var t=o()(e).find("input[type=text]:visible");if(t.data("validateRule")){var r=o()("#".concat(t.data("validateRule"))),i=r.val();i=JSON.parse(i);var a=r.data("validateId");if(-1!==a.indexOf("&&&")){a=a.split("&&&");for(var s=0;s<a.length;s++){var l=a[s];o()("#".concat(l)).val()&&(i=i?i[o()("#".concat(l)).val()]:"")}}else i=i[o()("#".concat(a)).val()];if(Array.isArray(i)){var c=new RegExp(i[0]),d=t.val();d&&c.test(d)&&function(e,t){if(t){var n,r={},i=Z(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o>="0"&&o<="9"&&(r[o]=(r[o]||0)+1,r[o]>t))return!1}}catch(e){i.e(e)}finally{i.f()}}return!0}(d,i[1])&&!function(e,t){if(t){for(var n=e.split("").map(Number),r=!1,i=!1,o=0;o<n.length-1;o++)if(!isNaN(n[o])&&!isNaN(n[o+1])&&n[o]+1!==n[o+1]){r=!0;break}for(var a=0;a<n.length-1;a++)if(!isNaN(n[a])&&!isNaN(n[a+1])&&n[a]-1!==n[a+1]){i=!0;break}return!i||!r}return!1}(d,i[2])?(t.closest(".form-group").removeClass("field-invalid"),t.closest(".form-group").addClass("field-valid"),n.push(!0)):(t.closest(".form-group").removeClass("field-valid"),t.closest(".form-group").addClass("field-invalid"),n.push(!1))}}};e.each((function(){t.push(this),o()(this).find("input, select, textarea").on("change",(function(){var e=o()(this).closest(".cmp-form-elements");a=[],s(e),l(e),c(e)})),o()(this).find("select").on("click",(function(){i=o()(this).val()})),o()(this).find("select").on("change",(function(){var e=o()(this).val(),t=o()("#"+e);if(i!==e&&t.length){var n=t.data("dependent"),r=o()("[data-dependent="+n+"]");r.parent().addClass("clshidden"),r.find("select").val(""),r.find(".form-group").removeClass("field-valid"),r.find(".form-group").removeClass("field-invalid"),t.parent().removeClass("clshidden")}i=""})),o()(this).find("input").on("keydown",(function(e){"Enter"===e.key&&(e.preventDefault(),o()("#global-link-submit a").trigger("click"))}))})),o()("#global-link-submit a").on("click",(function(r){r.preventDefault(),console.log(e),n=[],a=[];for(var i=0;i<t.length;i++)s(t[i]),l(t[i]),c(t[i]);if(n.some((function(e){return!1===e}))){if(void 0!==o()("body").attr("data-cmp-data-layer-enabled")){var d={formName:"Gating form "+o()(".cmp-gating-component").find("form").attr("id"),formError:"Required Field is Empty"};a.forEach((function(e){d=X(X({},d),e)})),adobeDataLayer.push({event:"formError-Gating",attributes:d})}}else{if(void 0!==o()("body").attr("data-cmp-data-layer-enabled")){var u={formName:"Gating form "+o()(".cmp-gating-component").find("form").attr("id")};a.forEach((function(e){u=X(X({},u),e)})),adobeDataLayer.push({event:"formComplete-Gating",attributes:u})}o()(this).data("modal-id")&&window.storeHCPCookie(o()(this).data("modal-id")),o()(this).closest("form").attr("action")&&(o()(this).closest("form").attr("action").startsWith("#")?location.hash=o()(this).closest("form").attr("action"):o()(this).closest("form").trigger("submit"))}}))},ee=function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelector(".cmp-form-elements")&&Q()}))},te=function(){o()(document).ready((function(){o()(".cmp-datepicker").each((function(){var e,t,n,r=o()(this),i=r.find(".cmp-date-picker"),a=i.attr("data-startdate"),s=i.attr("data-enddate"),l=r.closest(".cmp-calendar-appointment")[0];l&&(e=l.querySelector(".cmp-calendar-step1"),t=e.querySelector("#calendar-step1--cta a"),n=t?t.closest(".cmp-disabled-primary"):null,t.setAttribute("role","button"),n&&n.classList.contains("cmp-disabled-primary")&&(t.setAttribute("aria-disabled","true"),t.setAttribute("tabindex","-1"))),i.datepicker({format:i.hasClass("Changein-Dateformat")?"dd/mm/yyyy":"mm/dd/yyyy",autoclose:!0,todayHighlight:!0,orientation:"bottom",disableTouchKeyboard:!0,minViewMode:"days",maxViewMode:"days",startDate:a,endDate:s,templates:{leftArrow:'<div class="global-link cmp-global-link-icon-secondary"><ul><li><a data-cmp-clickable=""><span class="material-symbols-rounded">chevron_left</span></a></li></ul></div>',rightArrow:'<div class="global-link cmp-global-link-icon-secondary"><ul><li><a data-cmp-clickable=""><span class="material-symbols-rounded">chevron_right</span></a></li></ul></div>'},beforeShowDay:function(e){var t=i.data("datepicker").viewDate,n=t.getMonth(),r=t.getFullYear();return e.getMonth()===n&&e.getFullYear()===r||{enabled:!1,classes:"disabled-date"}}});var c=!1,d=!1;function u(){var e,o,a,s,l,c,d,u,h,p=i.val().trim(),f=i.closest(".guideFieldNode"),m=f.length>0,g=i.closest(".panel"),v=g.length>0;if(v&&(e=g.find(".textSuccess"),o=g.find(".textError"),a=g.find(".textInfo")),p){
776if(p&&/^\d{2}\/\d{2}\/\d{4}$/.test(p)){var y,b,_,w,x,C;if(i.removeClass("field-invalid selected tab-focus").addClass("field-valid"),i.parent().removeClass("date-wrapper-selected data-wrapper-invalid").addClass("data-wrapper-valid"),r.find(".dateSelectsuccess").removeClass("hide"),r.find(".dateSelecterror").addClass("hide"),r.find(".dateSelectInfo").addClass("hide"),m&&f.removeClass("validation-failure").addClass("validation-success").removeClass("af-field-empty").addClass("af-field-filled"),v)null===(w=o)||void 0===w||w.parent().parent().addClass("hidden"),null===(x=a)||void 0===x||x.parent().parent().addClass("hidden"),null===(C=e)||void 0===C||C.parent().parent().removeClass("hidden");return null===(y=n)||void 0===y||y.classList.remove("cmp-disabled-primary"),null===(b=t)||void 0===b||b.setAttribute("aria-disabled","false"),void(null===(_=t)||void 0===_||_.setAttribute("tabindex","0"))}var S,E,k,T,O,$;i.removeClass("field-valid selected tab-focus").addClass("field-invalid"),i.parent().removeClass("date-wrapper-selected data-wrapper-valid").addClass("data-wrapper-invalid"),r.find(".dateSelectsuccess").addClass("hide"),r.find(".dateSelecterror").removeClass("hide"),r.find(".dateSelectInfo").addClass("hide"),m&&f.addClass("validation-failure").removeClass("validation-success"),v&&(null===(T=e)||void 0===T||T.parent().parent().addClass("hidden"),null===(O=a)||void 0===O||O.parent().parent().addClass("hidden"),null===($=o)||void 0===$||$.parent().parent().removeClass("hidden"));return null===(S=n)||void 0===S||S.classList.add("cmp-disabled-primary"),null===(E=t)||void 0===E||E.setAttribute("aria-disabled","true"),void(null===(k=t)||void 0===k||k.setAttribute("tabindex","-1"))}return i.removeClass("field-valid selected tab-focus").addClass("field-invalid"),i.parent().removeClass("date-wrapper-selected data-wrapper-valid").addClass("data-wrapper-invalid"),r.find(".dateSelectsuccess").addClass("hide"),r.find(".dateSelecterror").removeClass("hide"),r.find(".dateSelectInfo").addClass("hide"),m&&f.addClass("validation-failure").removeClass("validation-success"),v&&(null===(d=e)||void 0===d||d.parent().parent().addClass("hidden"),null===(u=a)||void 0===u||u.parent().parent().addClass("hidden"),null===(h=o)||void 0===h||h.parent().parent().removeClass("hidden")),null===(s=n)||void 0===s||s.classList.add("cmp-disabled-primary"),null===(l=t)||void 0===l||l.setAttribute("aria-disabled","true"),void(null===(c=t)||void 0===c||c.setAttribute("tabindex","-1"))}i.on("show",(function(){d=!0;var e=i.outerWidth(),t=o()("body .datepicker");t.css({width:e+"px","min-width":e+"px"}),t.find("table").css({width:"100%"}),i.removeClass("field-invalid field-valid").addClass("selected"),i.parent().removeClass("data-wrapper-valid data-wrapper-invalid").addClass("date-wrapper-selected"),setTimeout((function(){if(c){var e=o()(".datepicker-days td.day.active"),t=o()(".datepicker-days td.today"),n=o()(".datepicker-days td.today.active");e.length>0?(e.attr("tabindex","0"),e.addClass("cmp-custom-focused"),t.removeClass("cmp-custom-focused")):t&&!e.length?(t.attr("tabindex","0"),t.addClass("cmp-custom-focused")):n.length>0&&(n.attr("tabindex","0"),n.addClass("cmp-custom-focused"))}}),50)})),i.data("datepicker").picker.on("click",".datepicker-switch",(function(e){return e.stopImmediatePropagation(),!1})),function(e){var t=e.data("datepicker").picker;t.on("click",".new, .old",(function(n){n.preventDefault();var r=t.find(".datepicker-days table tbody");r.removeClass("datepicker-transition"),requestAnimationFrame((function(){r.addClass("datepicker-transition")}));var i=o()(this).data("date");e.datepicker("setDate",new Date(i)),e.datepicker("update")}))}(i),i.on("changeMonth",(function(){var e=i.data("datepicker").picker.find(".datepicker-days table tbody");e.removeClass("datepicker-transition"),requestAnimationFrame((function(){e.addClass("datepicker-transition")}))})),i.on("hide",(function(e){d=!1,i.datepicker("update",e.date),i.data("datepicker").picker.find(".datepicker-days table tbody").removeClass("datepicker-transition"),o()(".cmp-custom-focused").removeClass("cmp-custom-focused"),o()(".tab-focus").removeClass("tab-focus"),o()(".focused").removeClass("focused")})),i.on("changeDate",(function(){if(u(),window.guideBridge&&window.guideBridge.resolveNode&&i.closest(".aemform")&&i.closest(".aemform").length>0){var e=i.attr("name"),t=window.guideBridge.resolveNode(window.guideBridge.resolveNode("".concat(e,".somExpression")));t&&(t.value=i.val().trim())}})),i.on("focusout",(function(){d||u()})),o()(document).on("keydown",(function(e){"Tab"===e.key&&(c=!0),"Tab"===e.key&&e.shiftKey&&(c=!0)})),i.on("mousedown",(function(e){c=!1})),i.on("focus",(function(){c&&i.removeClass("field-invalid field-valid selected").addClass("tab-focus")})),o()(window).on("scroll",(function(){var e=o()(".datepicker");if(e.is(":visible")){var t=i.offset();
776e.css({top:t.top+i.outerHeight(),left:t.left})}})),i.on("keypress",(function(e){if("Enter"===e.key)e.preventDefault(),!1===d&&i.datepicker("show");else if(" "===e.key)if(e.preventDefault(),!0===d){var t=o()(".datepicker"),n=t.find(".day.focused"),r=t.find(".day.cmp-custom-focused");n.length?n.trigger("click"):r.length&&r.trigger("click"),i.datepicker("hide")}else i.datepicker("show")})),i.on("click",(function(){i.datepicker("show")}))}))}))},ne=function(){document.addEventListener("DOMContentLoaded",(function(){te()}))},re=function(){var e=o()(".closebutton.global-link.cmp-global-link-link");function t(e){var t,n=e+"=";return decodeURIComponent(document.cookie).split("; ").forEach((function(e){0===e.indexOf(n)&&(t=e.substring(n.length))})),t}e.hasClass("cmp-disabled-link")&&e.find("a").attr("tabindex","-1").attr("aria-hidden","true");var n,r=-1,i=function(e,t){return(e%t+t)%t},a="ja"===o()("html").attr("lang")?"searchItemsJA":"searchItems";function s(e,t,n){var r=e.querySelectorAll("."+n+" li a");r.forEach((function(e){return e.parentElement.classList.remove("focus-on")})),e.dataset.selectedIndex=t,r[t].parentElement.classList.add("focus-on");var i=r[t].text;o()(".cmp-result-container").length>0?(o()(".cmp-result-container input#searchInputText").val(i),o()(".cmp-result-container input#searchInputText").focus()):(o()(".global-nav.cmp-primary-nav input#searchInputText").val(i),o()(".global-nav.cmp-primary-nav input#searchInputText").focus())}function l(){var e;if(t("OptanonConsent")){var n=t("OptanonConsent"),r=n&&n.split("groups");if(r&&r[1]&&r[1].indexOf("C0001")>=0){var i=r[1].split("&");return(i&&i[0].split(",")).forEach((function(t){if(t.indexOf("C0001")>-1){var n=t.replace("=","");e=n.substring("C0001".length+1)}})),"1"===e}return!1}return!0}o()(".input-close-icon").on("click",(function(e){o()("input:text").val("")})),o()(".cmp-search__field .close-search-inner").on("mousedown",(function(e){p=!0})),o()(".cmp-search .close-search").on("click",(function(e){if(e.preventDefault(),o()(e.currentTarget).hasClass("close-search")&&o()(e.currentTarget).hasClass("close-search-inner")&&o()(e.target).closest(".global-link.cmp-disabled-link").length<1||o()(e.target).hasClass("cmp-searchbox-button")||o()(e.target).parent(".cmp-searchbox-button").length>0){o()(".cmp-searchbox-suggest .cmp-suggested-search").removeClass("suggested-search--expanded"),o()(".cmp-searchbox-suggest .cmp-recent-results").removeClass("Recent-search--expanded"),o()(".cmp-searchbox-suggest").removeClass("suggestion-box-expanded");var t=o()(window).width(),n=1024.1;if(o()(".cmp-result-container").length>0&&t<=n&&(o()(e.target).hasClass("cmp-searchbox-button")||o()(e.target).parent(".cmp-searchbox-button").length>0)){var i=document.querySelector(".global-nav.cmp-primary-nav input#searchInputText").value;o()(".cmp-result-container .cmp-searchinput input:text").val(i),o()(".global-nav.cmp-primary-nav .search-input").focusout(),o()(".cmp-result-container .search-input").focusout()}else o()("input:text").val("");o()(document).off("keydown"),r=-1,o()(".focus-on").removeClass("focus-on"),o()(".cmp-result-container").length>0&&t>n?o()(".cmp-result-container #searchBoxSuggestResult").empty():o()(".global-nav.cmp-primary-nav #searchBoxSuggestResult").empty(),o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").css("display","none"),o()(".cmp-input-form-container").find(".cmp-suggested-search").css("display","none")}o()(e.currentTarget).hasClass("close-search")&&o()(e.currentTarget).hasClass("close-search-inner")&&o()(e.target).closest(".global-link.cmp-disabled-link").length<1&&!o()(e.target).hasClass("cmp-searchbox-button")&&0===o()(e.target).parent(".cmp-searchbox-button").length&&t>n?o()(".cmp-result-container").length>0?(o()(".cmp-result-container .cmp-searchinput input:text").focus(),o()(".cmp-result-container .cmp-searchinput input:text").addClass("cmp-selected-state")):(o()(".global-nav.cmp-primary-nav input#searchInputText").focus(),o()(".global-nav.cmp-primary-nav input#searchInputText").addClass("cmp-selected-state")):o()(e.currentTarget).hasClass("close-search")&&o()(e.currentTarget).hasClass("close-search-inner")&&o()(e.target).closest(".global-link.cmp-disabled-link").length<1&&!o()(e.target).hasClass("cmp-searchbox-button")&&0===o()(e.target).parent(".cmp-searchbox-button").length&&t<=n&&(o()(".global-nav.cmp-primary-nav input#searchInputText").focus(),o()(".global-nav.cmp-primary-nav input#searchInputText").addClass("cmp-selected-state"))})),(n=o()(".closebutton.cmp-disabled-link")).length>0?(n.attr("aria-hidden","true"),n.find("a").attr("tabindex","-1"),n.css("pointer-events","none")):n.removeAttr("style"),o()(".cmp-search .close-search").on("keydown",(function(e){if(13==e.keyCode&&(o()(e.currentTarget).hasClass("close-search")&&o()(e.currentTarget).hasClass("close-search-inner")&&o()(e.target).closest(".global-link.cmp-disabled-link").length<1||o()(e.target).hasClass("cmp-searchbox-button")||o()(e.target).parent(".cmp-searchbox-button").length>0)){e.preventDefault(),o()(".cmp-searchbox-suggest .cmp-suggested-search").removeClass("suggested-search--expanded"),o()(".cmp-searchbox-suggest .cmp-recent-results").removeClass("Recent-search--expanded"),o()(".cmp-searchbox-suggest").removeClass("suggestion-box-expanded");var t=o()(window).width(),n=1024.1;if(o()(".cmp-result-container").length>0&&t<=n&&(o()(e.target).hasClass("cmp-searchbox-button")||o()(e.target).parent(".cmp-searchbox-button").length>0)){var i=document.querySelector(".global-nav.cmp-primary-nav input#searchInputText").value;o()(".cmp-result-container .cmp-searchinput input:text").val(i),o()(".global-nav.cmp-primary-nav .search-input").focusout(),o()(".cmp-result-container .search-input").focusout()}else o()("input:text").val("");o()(document).off("keydown"),r=-1,o()(".focus-on").removeClass("focus-on"),o()(".cmp-result-container").length>0&&t>n?o()(".cmp-result-container #searchBoxSuggestResult").empty():o()(".global-nav.cmp-primary-nav #searchBoxSuggestResult").empty(),o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").css("display","none"),o()(".cmp-input-form-container").find(".cmp-suggested-search").css("display","none")}o()(e.currentTarget).hasClass("close-search")&&o()(e.currentTarget).hasClass("close-search-inner")&&o()(e.target).closest(".global-link.cmp-disabled-link").length<1&&!o()(e.target).hasClass("cmp-searchbox-button")&&0===o()(e.target).parent(".cmp-searchbox-button").length&&t>n?o()(".cmp-result-container").length>0?(o()(".cmp-result-container .cmp-searchinput input:text").focus(),o()(".cmp-result-container .cmp-searchinput input:text").addClass("cmp-selected-state")):(o()(".global-nav.cmp-primary-nav input#searchInputText").focus(),o()(".global-nav.cmp-primary-nav input#searchInputText").addClass("cmp-selected-state")):o()(e.currentTarget).hasClass("close-search")&&o()(e.currentTarget).hasClass("close-search-inner")&&o()(e.target).closest(".global-link.cmp-disabled-link").length<1&&!o()(e.target).hasClass("cmp-searchbox-button")&&0===o()(e.target).parent(".cmp-searchbox-button").length&&t<=n&&(o()(".global-nav.cmp-primary-nav input#searchInputText").focus(),o()(".global-nav.cmp-primary-nav input#searchInputText").addClass("cmp-selected-state"))})),o()("#searchBoxSuggest").on("keydown","a",(function(e){if("Tab"===e.key&&!e.shiftKey){var t=o()("#searchBoxSuggest li:visible a:visible");if(0===t.length)return;this===t.last()[0]&&(e.preventDefault(),o()(".cmp-searchbox-button").focus())}})),o()(".cmp-searchbox-button").on("keydown",(function(e){if("Tab"!==e.key||e.shiftKey||(""===o()("input#searchInputText").value?o()("input#searchInputText").focus():o()(".cmp-search__field .search-icon").focus()),"Tab"===e.key&&e.shiftKey){e.preventDefault();var t=o()(".suggestion-box-expanded li:visible:last a")[0];if(o()(".suggestion-box-expanded").is(":visible")&&t)t.focus();else{e.preventDefault();var n=o()(".global-nav.cmp-primary-nav .sublink-parentlink:last-child a.megamenu-toggle");n&&n.focus()}}})),o()(".close-search-inner").on("keydown",(function(e){"Tab"!==e.key||e.shiftKey||(e.preventDefault(),o()(".cmp-search__form .search-icon").focus())})),o()(document).on("keydown","#searchBoxBtn",(function(e){if(console.log("Pressed:",e.key),"Tab"===e.key&&e.shiftKey){e.preventDefault();var t=o()(".global-nav.cmp-primary-nav .sublink-parentlink:last-child a"),n=o()(".global-nav.cmp-primary-nav .sublink-parentlink:last-child a
776span.material-symbols-rounded"),r=o()(".global-nav.cmp-primary-nav .sublink-parentlink:last-child .focus-chevron");r.length>0?r.focus():r.length<1&&n.length>0?n.focus():t&&r.length<1&&n.length<1&&t.focus()}})),o()("#searchBoxForm .search-icon").on("keydown",(function(e){if("Tab"===e.key&&!e.shiftKey){var t=o()(".global-nav #searchBoxSuggest li:visible a:visible")[0],n=o()(".cmp-result-container #searchBoxSuggest li:visible a:visible")[0];if(o()(".cmp-result-container").length>0)if(e.preventDefault(),"none"===o()("#searchBoxSuggest").css("display")){var r=o()(".search-card").first();r.length&&(e.preventDefault(),r.focus())}else e.preventDefault(),n.focus();else e.preventDefault(),t.focus()}if("Tab"===e.key&&e.shiftKey)if(e.preventDefault(),o()(".cmp-result-container").length>0){var i=o()(".global-nav.cmp-primary-nav .above-brand-nav__rightnav.cmp-desktop-show .cmp-secondary-nav a")[0];i&&i.focus()}else{var a=o()(".close-search")[0];a&&a.click(),e.preventDefault(),setTimeout((function(){return o()(".cmp-searchbox-button").focus()}),0)}})),o()("input#searchInputText").on("keydown",(function(e){var t=o()(this).val().trim();if("Tab"===e.key&&!e.shiftKey)if(""===t){var n=o()(".suggestion-box-expanded li:visible:first a")[0];n&&(e.preventDefault(),setTimeout((function(){return n.focus()}),0))}else e.preventDefault(),setTimeout((function(){return o()(".close-search-inner").focus()}),0);if("Tab"===e.key&&e.shiftKey&&""===t)if(o()(".cmp-result-container").length>0){var r=o()(".global-nav.cmp-primary-nav .above-brand-nav__rightnav.cmp-desktop-show .cmp-secondary-nav a")[0];r&&(e.preventDefault(),setTimeout((function(){return r.focus()}),0))}else{var i=o()(".close-search")[0];i&&i.click(),e.preventDefault(),setTimeout((function(){return o()(".cmp-searchbox-button").focus()}),0)}})),o()(".global-nav.cmp-primary-nav .above-brand-nav__rightnav.cmp-desktop-show .cmp-secondary-nav a").on("keydown",(function(e){"Tab"!==e.key||e.shiftKey||this===o()(".global-nav.cmp-primary-nav .above-brand-nav__rightnav.cmp-desktop-show .cmp-secondary-nav a:visible").last()[0]&&o()(".cmp-result-container").length>0&&(e.preventDefault(),o()(".cmp-result-container input#searchInputText").focus())})),o()(".cmp-search input").on("focus",(function(e){var t=o()(window).width(),n="";(n=o()(".cmp-result-container").length>0&&t>1024.1?document.querySelector(".sitewide-search input#searchInputText").value:document.querySelector(".global-nav.cmp-primary-nav input#searchInputText").value).length>0?(o()(this).siblings(".global-link").removeClass("cmp-disabled-link"),o()(this).siblings(".global-link").removeAttr("style")):o()(this).siblings(".global-link").addClass("cmp-disabled-link"),o()(".cmp-result-container").length>0&&t<=1024.1&&n.length>0&&(o()(".global-nav.cmp-primary-nav .cmp-searchinput .cmp-search__field .closebutton.global-link.cmp-global-link-link").removeClass("cmp-disabled-link"),o()(".global-nav.cmp-primary-nav .cmp-searchinput .cmp-search__field .closebutton.global-link.cmp-global-link-link").removeAttr("style")),o()(".cmp-searchbox-suggest").addClass("suggestion-box-expanded"),o()(".cmp-searchbox-suggest .cmp-recent-results").removeClass("Recent-search--expanded"),o()(".cmp-searchbox-suggest .cmp-suggested-search").addClass("suggested-search--expanded"),o()(e.currentTarget).parents(".cmp-searchinput").addClass("search-expand")}));var c=[];function d(e){c.push(e);var t,n=(t=c).filter((function(e,n){return t.indexOf(e)===n}));n.length>=7&&n.shift();var r=JSON.stringify(n);localStorage.setItem(a,r)}function u(){var e=o()(window).width();if(null!==localStorage.getItem(a)&&l()){var t=JSON.parse(localStorage.getItem(a)),n="<ul>",r=t.slice(-6).reverse(),i=o()("form.cmp-search__form").attr("action"),s=window.location.origin+i+"?searchTerm=";o()(r).each((function(e,t){var r=encodeURIComponent(t);n+='<li> <span class="material-symbols-rounded notranslate arrow-icon" translate="no" aria-hidden="true">search</span><a href="'+s+r+'">'+t+"</a></li>"})),n+="</ul>",o()(".cmp-result-container").length>0&&e>1024.1?document.querySelector(".cmp-result-container .recent-results").innerHTML=n:document.querySelector(".recent-results").innerHTML=n,o()(".cmp-input-form-container").find(".cmp-recent-results, .cmp-searchbox-suggest").css("display","none"),o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__recentdetailstitle").length>0&&o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__recentdetailstitle").css("display","block"),o()(".cmp-input-form-container").find(".cmp-recent-results #recent-results-list").length>0&&o()(".cmp-input-form-container").find(".cmp-recent-results #recent-results-list").css("display","block"),o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__recentdetailstitle").length>0&&o()(".cmp-input-form-container").find(".cmp-recent-results").css("display","block"),o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__recentdetailstitle").length>0&&o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").css("display","block"),o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__quickdetailstitle").length>0&&o()(".cmp-input-form-container").find(".cmp-recent-results, .cmp-searchbox-suggest").css("display","block"),setTimeout((function(){o()(".cmp-result-container").length>0&&e>1024.1?(o()(".cmp-result-container .cmp-input-form-container").find(".cmp-recent-results p.search-clasification__recentdetailstitle").length>0||o()(".cmp-result-container .cmp-input-form-container").find(".cmp-recent-results p.search-clasification__quickdetailstitle").length>0)&&(document.querySelector(".cmp-result-container .cmp-input-form-container .cmp-recent-results").scrollHeight>document.querySelector(".cmp-result-container .cmp-input-form-container .cmp-recent-results").clientHeight?o()(".cmp-result-container .cmp-input-form-container").find(".cmp-searchbox-suggest").addClass("cmp-right-gap"):o()(".cmp-result-container .cmp-input-form-container").find(".cmp-searchbox-suggest").removeClass("cmp-right-gap")):(o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__recentdetailstitle").length>0||o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__quickdetailstitle").length>0)&&(document.querySelector(".cmp-input-form-container .cmp-recent-results").scrollHeight>document.querySelector(".cmp-input-form-container .cmp-recent-results").clientHeight?o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").addClass("cmp-right-gap"):o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").removeClass("cmp-right-gap"))}),200)}else o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__recentdetailstitle").length>0&&o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__recentdetailstitle").css("display","none"),o()(".cmp-input-form-container").find(".cmp-recent-results #recent-results-list").length>0&&o()(".cmp-input-form-container").find(".cmp-recent-results #recent-results-list").css("display","none"),o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__recentdetailstitle").length>0&&o()(".cmp-input-form-container").find(".cmp-recent-results").css("display","none"),o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__quickdetailstitle").length>0&&o()(".cmp-input-form-container").find(".cmp-recent-results, .cmp-searchbox-suggest").css("display","block"),setTimeout((function(){o()(".cmp-result-container").length>0&&e>1024.1?o()(".cmp-result-container .cmp-input-form-container").find(".cmp-recent-results p.search-clasification__quickdetailstitle").length>0&&(document.querySelector(".cmp-result-container .cmp-input-form-container .cmp-recent-results").scrollHeight>document.querySelector(".cmp-result-container .cmp-input-form-container .cmp-recent-results").clientHeight?o()(".cmp-result-container .cmp-input-form-container").find(".cmp-searchbox-suggest").addClass("cmp-right-gap"):o()(".cmp-result-container .cmp-input-form-container").find(".cmp-searchbox-suggest").removeClass("cmp-right-gap")):o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__quickdetailstitle").length>0&&(document.querySelector(".cmp-input-form-container .cmp-recent-results").scrollHeight>document.querySelector(".cmp-input-form-container .cmp-recent-results").clientHeight?o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").addClass("cmp-right-gap"):o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").removeClass("cmp-right-gap"))}),200);
776o()("#quick-link-list li, #recent-results-list li").off("click").on("click",(function(e){window.location=o()(this).find("a").attr("href")})),o()("#quick-link-list li a, #recent-results-list li a").off("click").on("click",(function(e){e.stopPropagation()}))}null!==localStorage.getItem(a)&&l()&&(c=JSON.parse(localStorage.getItem(a)),o()(".recent-search-heading").show()),o()(".cmp-search__input").keypress((function(e){if(13===e.keyCode){var t=o()(this).val();if(0==t.trim().length)return void e.preventDefault();d(t)}})),o()("#searchBoxForm .material-symbols-rounded.search-icon").on("click",(function(e){var t=o()(this).siblings("input.cmp-search__input").val(),n=o()("form.cmp-search__form").attr("action");if(0!=t.trim().length){d(t);var r=t.trim(),i=encodeURIComponent(r);window.location=window.location.origin+n+"?searchTerm="+i}})),o()("#searchBoxForm .material-symbols-rounded.search-icon").on("keydown",(function(e){if(13==e.keyCode){var t=o()(this).siblings("input.cmp-search__input").val(),n=o()("form.cmp-search__form").attr("action");if(0!=t.trim().length){d(t);var r=t.trim(),i=encodeURIComponent(r);window.location=window.location.origin+n+"?searchTerm="+i}}}));var h,p=!1;o()(".search-input, #searchBoxBtn .search-icon").on("mousedown",(function(e){p=!0})),o()(".search-input").on("mouseup",(function(e){p=!0,o()(e.target).addClass("cmp-selected-state").removeClass("cmp-inputting-state").removeClass("cmp-keyboard-focus")})),o()(".search-input").on("keyup",(function(e){"Shift"!==e.key&&"Tab"!==e.key||o()(e.target).addClass("cmp-keyboard-focus")})),o()(".search-input").on("focus",(function(e){p?o()(e.target).removeClass("cmp-keyboard-focus"):o()(e.target).addClass("cmp-keyboard-focus");var t="",n=o()(window).width(),i=1024.1;(t=o()(".cmp-result-container").length>0&&n>i?document.querySelector(".sitewide-search input#searchInputText").value:document.querySelector(".global-nav.cmp-primary-nav input#searchInputText").value)&&t.length>0||(o()(".cmp-result-container").length>0&&n>i?o()(".cmp-result-container #searchBoxSuggestResult").empty():o()(".global-nav.cmp-primary-nav #searchBoxSuggestResult").empty(),o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").css("display","none"),o()(".cmp-input-form-container").find(".cmp-suggested-search").css("display","none"),o()(document).off("keydown"),r=-1,o()(".focus-on").removeClass("focus-on"),u());n=o()(window).width(),i=1024.1;o()(e.target).parents(".cmp-result-container").length>0&&n<=i&&!o()(".global-nav.cmp-primary-nav .cmp-search").hasClass("cmp-header-search")&&(o()(".global-nav.cmp-primary-nav .cmp-search").addClass("cmp-header-search"),o()(".global-nav.cmp-primary-nav .search").find(".cmp-search").css("display","block"),o()("#searchBoxBtn").click())})),o()(".search-input").on("blur",(function(e){o()(e.target).removeClass("cmp-keyboard-focus")})),o()(".search-input").on("keydown",(function(e){o()(e.target).removeClass("cmp-selected-state").addClass("cmp-inputting-state").removeClass("cmp-keyboard-focus")})),document.addEventListener("mousedown",(function(e){o()(e.target).closest(".global-link.cmp-disabled-link").length>0&&o()(e.target).closest(".cmp-search__form").length>0&&(e.stopPropagation(),e.preventDefault())})),document.addEventListener("click",(function(e){var t=o()(window).width();0===o()(e.target).parents(".cmp-search__form").length&&o()(".cmp-result-container").length>0&&(o()(".cmp-searchbox-suggest .cmp-suggested-search").removeClass("suggested-search--expanded"),o()(".cmp-searchbox-suggest .cmp-recent-results").removeClass("Recent-search--expanded"),o()(".cmp-searchinput .cmp-search__field .closebutton.global-link.cmp-global-link-link").addClass("cmp-disabled-link"),o()(".cmp-searchbox-suggest").removeClass("suggestion-box-expanded"),o()(document).off("keydown"),r=-1,o()(".focus-on").removeClass("focus-on"),o()(".cmp-result-container").length>0?(o()(".cmp-result-container #searchBoxSuggestResult").empty(),o()(".cmp-result-container input#searchInputText")&&o()(o()(".cmp-result-container input#searchInputText")[0]).val().length>0&&(o()(".cmp-result-container input#searchInputText").siblings(".global-link").removeClass("cmp-disabled-link"),o()(".cmp-result-container input#searchInputText").siblings(".global-link").removeAttr("style")),o()(".cmp-result-container").length>0&&t<=1024.1&&o()(o()(".global-nav.cmp-primary-nav input#searchInputText")[0]).val().length>0&&(o()(".global-nav.cmp-primary-nav .cmp-searchinput .cmp-search__field .closebutton.global-link.cmp-global-link-link").removeClass("cmp-disabled-link"),o()(".global-nav.cmp-primary-nav .cmp-searchinput .cmp-search__field .closebutton.global-link.cmp-global-link-link").removeAttr("style"))):o()(".global-nav.cmp-primary-nav #searchBoxSuggestResult").empty(),o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").css("display","none"),o()(".cmp-input-form-container").find(".cmp-suggested-search").css("display","none"),o()(".global-nav.cmp-primary-nav .cmp-searchinput").hasClass("search-expand")&&t<=1024.1&&o()(".cmp-result-container").length>0&&(o()(".global-nav.cmp-primary-nav input#searchInputText").focus(),o()(".global-nav.cmp-primary-nav input#searchInputText").addClass("cmp-selected-state")))})),o()(".search-input").on("focusout",(function(e){o()(e.target).removeClass("cmp-selected-state cmp-inputting-state cmp-keyboard-focus")}));o()(".search-input").on("keyup",(function(e){var t="",n="",a=o()(window).width();o()(".cmp-result-container").length>0&&a>1024.1?(n=o()(".cmp-result-container").data("search-path"),t=document.querySelector(".sitewide-search input#searchInputText").value):(n=o()(".cmp-search__form").data("search-path"),t=document.querySelector(".global-nav.cmp-primary-nav input#searchInputText").value),t.length>0?(o()(".cmp-searchinput .cmp-search__field .closebutton.global-link.cmp-global-link-link").removeClass("cmp-disabled-link"),o()(".cmp-searchinput .cmp-search__field .closebutton.global-link.cmp-global-link-link").removeAttr("style")):o()(".cmp-searchinput .cmp-search__field .closebutton.global-link.cmp-global-link-link").addClass("cmp-disabled-link");var l=t.trim(),c=encodeURIComponent(l);h&&clearTimeout(h),"Enter"!=e.key&&"ArrowDown"!=e.key&&"ArrowUp"!=e.key&&0!=t.trim().length?h=setTimeout((function(){o.a.ajax({url:"/bin/sitewide/autosuggest?suggestedSearchTerm="+c+"&searchPath="+n,type:"GET",dataType:"json",async:!0,contentType:"application/json; charset=utf-8",success:function(e){var t,n=o()(window).width(),a="",l="",c=o()("form.cmp-search__form").attr("action");if(o()(document).off("keydown"),r=-1,o()(".focus-on").removeClass("focus-on"),e.length>0){if(o()(".cmp-result-container").length>0&&n>1024.1){l=document.querySelector(".sitewide-search input#searchInputText").value.trim(),o()(".cmp-result-container #searchBoxSuggestResult").empty();for(var h=window.location.origin+c+"?searchTerm=",p=0;p<e.length;p++){var f=e[p],m=encodeURIComponent(e[p]),g=l.length,v=f.slice(0,g);a+='<li> <span class="material-symbols-rounded notranslate arrow-icon" translate="no" aria-hidden="true">search</span><a href="'+h+m+'">'+f.replace(v,"<b>"+v+"</b>")+"</a></li>"}o()(".cmp-result-container #searchBoxSuggestResult").append(a),o()(".cmp-result-container .cmp-input-form-container").find(".cmp-searchbox-suggest").css("display","block"),o()(".cmp-result-container .cmp-input-form-container").find(".cmp-suggested-search").css("display","block"),o()(".cmp-result-container .cmp-input-form-container").find(".cmp-recent-results").css("display","none"),o()(".cmp-result-container .cmp-input-form-container").find(".cmp-searchbox-suggest .cmp-suggested-search p.search-clasification__detailstitle").css("display","block"),setTimeout((function(){o()(".cmp-result-container").length>0&&n>1024.1?o()(".cmp-result-container .cmp-input-form-container").find(".cmp-recent-results p.search-clasification__quickdetailstitle").length>0&&(document.querySelector(".cmp-result-container .cmp-input-form-container .cmp-recent-results").scrollHeight>document.querySelector(".cmp-result-container .cmp-input-form-container .cmp-recent-results").clientHeight?o()(".cmp-result-container .cmp-input-form-container").find(".cmp-searchbox-suggest").addClass("cmp-right-gap"):o()(".cmp-result-container .cmp-input-form-container").find(".cmp-searchbox-suggest").removeClass("cmp-right-gap")):o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__quickdetailstitle").length>0&&(document.querySelector(".cmp-input-form-container .cmp-recent-results").scrollHeight>document.querySelector(".cmp-input-form-container .cmp-recent-results").clientHeight?o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").addClass("cmp-right-gap"):o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").removeClass("cmp-right-gap"))}),200)}else{l=document.querySelector(".global-nav.cmp-primary-nav input#searchInputText").value,o()(".global-nav.cmp-primary-nav #searchBoxSuggestResult").empty();for(var y=window.location.origin+c+"?searchTerm=",b=0;b<e.length;b++){var _=e[b],w=l.length,x=_.slice(0,w),C=_.replace(x,"<b>"+x+"</b>");a+='<li> <span class="material-symbols-rounded notranslate arrow-icon" translate="no" aria-hidden="true">search</span><a href="'+y+encodeURIComponent(e[b])+'">'+C+"</a></li>"}o()(".global-nav.cmp-primary-nav #searchBoxSuggestResult").append(a),o()(".global-nav.cmp-primary-nav .cmp-input-form-container").find(".cmp-suggested-search").css("display","block"),o()(".global-nav.cmp-primary-nav .cmp-input-form-container").find(".cmp-searchbox-suggest").css("display","block"),o()(".global-nav.cmp-primary-nav .cmp-input-form-container").find(".cmp-searchbox-suggest .cmp-suggested-search p.search-clasification__detailstitle").css("display","block"),o()(".global-nav.cmp-primary-nav .cmp-input-form-container").find(".cmp-recent-results").css("display","none"),setTimeout((function(){o()(".cmp-result-container").length>0&&n>1024.1?o()(".cmp-result-container .cmp-input-form-container").find(".cmp-recent-results p.search-clasification__quickdetailstitle").length>0&&(document.querySelector(".cmp-result-container .cmp-input-form-container .cmp-recent-results").scrollHeight>document.querySelector(".cmp-result-container .cmp-input-form-container .cmp-recent-results").clientHeight?o()(".cmp-result-container .cmp-input-form-container").find(".cmp-searchbox-suggest").addClass("cmp-right-gap"):o()(".cmp-result-container .cmp-input-form-container").find(".cmp-searchbox-suggest").removeClass("cmp-right-gap")):o()(".cmp-input-form-container").find(".cmp-recent-results p.search-clasification__quickdetailstitle").length>0&&(document.querySelector(".cmp-input-form-container .cmp-recent-results").scrollHeight>document.querySelector(".cmp-input-form-container .cmp-recent-results").clientHeight?o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").addClass("cmp-right-gap"):o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").removeClass("cmp-right-gap"))}),200)}
776o()(".cmp-suggested-search li").off("click").on("click",(function(e){var t=o()(e.target).find("a").text();0!=t.trim().length&&d(t),window.location=o()(this).find("a").attr("href")})),o()(".cmp-suggested-search li a").off("click").on("click",(function(e){var t=o()(e.target).text();0!=t.trim().length&&d(t),e.stopPropagation()})),t="cmp-searchbox-suggest__result",o()(document).off("keydown").on("keydown",(function(e){var n=o()(window).width();if(o()(".cmp-searchbox-suggest").hasClass("suggestion-box-expanded")&&n>1024.1){var a=document.querySelectorAll("."+t),l=o()(".cmp-result-container").length>0?a[1].querySelectorAll("a"):a[0].querySelectorAll("a");switch(e.which){case 38:r-=1,s(o()(".cmp-result-container").length>0?a[1]:a[0],i(r,l.length),t);break;case 40:r+=1,s(o()(".cmp-result-container").length>0?a[1]:a[0],i(r,l.length),t)}}}))}else o()(".cmp-result-container").length>0&&n>1024.1?(o()(".cmp-result-container #searchBoxSuggestResult").empty(),o()(".cmp-result-container .cmp-input-form-container").find(".cmp-suggested-search").css("display","none"),o()(".cmp-result-container .cmp-input-form-container").find(".cmp-searchbox-suggest .cmp-suggested-search p.search-clasification__detailstitle").css("display","none"),u()):(o()(".global-nav.cmp-primary-nav #searchBoxSuggestResult").empty(),o()(".global-nav.cmp-primary-nav .cmp-input-form-container").find(".cmp-suggested-search").css("display","none"),o()(".global-nav.cmp-primary-nav .cmp-input-form-container").find(".cmp-searchbox-suggest .cmp-suggested-search p.search-clasification__detailstitle").css("display","none"),u())},error:function(){}})}),600):0===t.trim().length&&(o()(".cmp-result-container").length>0&&a>1024.1?(o()(".cmp-result-container #searchBoxSuggestResult").empty(),o()(".cmp-result-container .cmp-input-form-container").find(".cmp-suggested-search").css("display","none"),o()(".cmp-result-container .cmp-input-form-container").find(".cmp-searchbox-suggest .cmp-suggested-search p.search-clasification__detailstitle").css("display","none"),u()):(o()(".global-nav.cmp-primary-nav #searchBoxSuggestResult").empty(),o()(".global-nav.cmp-primary-nav .cmp-input-form-container").find(".cmp-suggested-search").css("display","none"),o()(".global-nav.cmp-primary-nav .cmp-input-form-container").find(".cmp-searchbox-suggest .cmp-suggested-search p.search-clasification__detailstitle").css("display","none"),u()))})),o()(".close-search").on("click",(function(e){e.preventDefault();var t=o()(window).width();if(o()(e.currentTarget).hasClass("close-search")&&o()(e.currentTarget).hasClass("close-search-inner")&&o()(e.target).closest(".global-link.cmp-disabled-link").length<1||o()(e.target).hasClass("cmp-searchbox-button")||o()(e.target).parent(".cmp-searchbox-button").length>0){if(o()(".cmp-result-container").length>0&&t<=1024.1&&(o()(e.target).hasClass("cmp-searchbox-button")||o()(e.target).parent(".cmp-searchbox-button").length>0)){var n=document.querySelector(".global-nav.cmp-primary-nav input#searchInputText").value;o()(".cmp-result-container .cmp-searchinput input:text").val(n),o()(".global-nav.cmp-primary-nav .search-input").focusout(),o()(".cmp-result-container .search-input").focusout()}else o()("input:text").val("");o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").css("display","none"),o()(".closebutton.global-link.cmp-global-link-link").addClass("cmp-disabled-link"),o()(e.currentTarget).parents(".cmp-search__form").length>0&&(u(),o()(".cmp-result-container").length>0&&t>1024.1?(o()(".cmp-result-container input#searchInputText").focus(),p=!0):o()(".cmp-result-container").length>0&&t<=1024.1&&0===o()(e.target).parents(".global-nav.cmp-primary-nav").length&&(o()(".global-nav.cmp-primary-nav .cmp-search").addClass("cmp-header-search"),o()(".global-nav.cmp-primary-nav .search").find(".cmp-search").css("display","block"),o()("#searchBoxBtn").click()))}o()(e.currentTarget).hasClass("close-search")&&!o()(e.currentTarget).hasClass("close-search-inner")&&o()(e.target).closest(".global-link").length<1&&void 0!==document.body.hasAttribute("data-cmp-data-layer-enabled")&&window.adobeDataLayer.push({event:"cmp:click",attributes:{"@type":"global/components/globalcomponents/navigation/global-nav/v3/global-nav/link","dc:title":"Close search",parentId:"","xdm:linkTarget":"_blank","xdm:linkType":"internal","xdm:linkURL":"#"}})}
776)),o()(".close-search").on("keydown",(function(e){var t=o()(window).width();if(13==e.keyCode&&(o()(e.currentTarget).hasClass("close-search")&&o()(e.currentTarget).hasClass("close-search-inner")&&o()(e.target).closest(".global-link.cmp-disabled-link").length<1||o()(e.target).hasClass("cmp-searchbox-button")||o()(e.target).parent(".cmp-searchbox-button").length>0)){if(e.preventDefault(),o()(".cmp-result-container").length>0&&t<=1024.1&&(o()(e.target).hasClass("cmp-searchbox-button")||o()(e.target).parent(".cmp-searchbox-button").length>0)){var n=document.querySelector(".global-nav.cmp-primary-nav input#searchInputText").value;o()(".cmp-result-container .cmp-searchinput input:text").val(n),o()(".global-nav.cmp-primary-nav .search-input").focusout(),o()(".cmp-result-container .search-input").focusout()}else o()("input:text").val("");o()(".cmp-input-form-container").find(".cmp-searchbox-suggest").css("display","none"),o()(".closebutton.global-link.cmp-global-link-link").addClass("cmp-disabled-link"),o()(e.currentTarget).parents(".cmp-search__form").length>0&&(u(),o()(".cmp-result-container").length>0&&t>1024.1?(p=!1,o()(".cmp-result-container input#searchInputText").focus()):o()(".cmp-result-container").length>0&&t<=1024.1&&0===o()(e.target).parents(".global-nav.cmp-primary-nav").length&&(o()(".global-nav.cmp-primary-nav .cmp-search").addClass("cmp-header-search"),o()(".global-nav.cmp-primary-nav .search").find(".cmp-search").css("display","block"),o()("#searchBoxBtn").click()))}})),o()("button.cmp-searchbox-button .close-search").on("click",(function(e){0===o()(".cmp-result-container").length&&(o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("width",""),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("left","unset"),o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").length>0&&o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").css("visibility","unset"))})),o()("button.cmp-searchbox-button").on("keydown",(function(e){13==e.keyCode&&0===o()(".cmp-result-container").length&&(o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("width",""),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("left","unset"),o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").length>0&&o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").css("visibility","unset"))})),o()("#searchBoxBtn").each((function(){o()(this).on("click",(function(e){o()(".secondary-menu-nav")&&o()(".secondary-menu-nav").length>0&&o()(".secondary-menu-nav").addClass("cmp-hide"),o()(".menu")&&o()(".menu").length>0&&o()(".menu").find("a").removeClass("active-link");var t=o()(".global-nav.cmp-primary-nav #searchBoxBtn .search-icon").width();o()(".cmp-searchinput").toggleClass("search-expand"),o()(this).find(".search-icon").toggleClass("hide"),o()(this).find(".close-search").toggleClass("hide");var n=o()(window).width(),r=0;if(o()(".cmp-result-container").length>0&&n<=1024.1&&!o()(".global-nav.cmp-primary-nav .cmp-searchinput").hasClass("search-expand")&&(o()(".global-nav.cmp-primary-nav .cmp-search").removeClass("cmp-header-search"),o()(".global-nav.cmp-primary-nav .search").find(".cmp-search").css("display","none")),o()(".global-nav.cmp-primary-nav.cmp-primary-navigation-nav-2-0 .nav.primary-nav__rightnav.search").length>0&&n>1024.1&&!0===o()(".cmp-searchinput").hasClass("search-expand")){var i=o()(".global-nav.cmp-primary-nav .logo-images").length>0?o()(".global-nav.cmp-primary-nav .logo-images").width():0,a=o()(".global-nav.cmp-primary-nav .show-language-nav").length>0?o()(".global-nav.cmp-primary-nav .show-language-nav").width():0;o()(".global-nav.cmp-primary-nav .nav.above-brand-nav__rightnav:visible").length>0&&(r=o()(".global-nav.cmp-primary-nav .nav.above-brand-nav__rightnav:visible").width()+17);var s=0;o()(".global-nav.cmp-primary-nav .hamburger-container:visible").length>0&&(s=o()(".global-nav.cmp-primary-nav .hamburger-container:visible").width()+17);var l=s+r,c=o()(".global-nav.cmp-primary-nav .primary-nav-wrapper").width()-i-t-r-s;o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("width",c+"px"),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("right",l+"px"),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("position","absolute"),o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").length>0&&o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").css("visibility","hidden")}else if(o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").length>0&&n>1024.1&&!0===o()(".cmp-searchinput").hasClass("search-expand")){i=o()(".global-nav.cmp-primary-nav .logo-images").length>0?o()(".global-nav.cmp-primary-nav .logo-images").width():0,a=o()(".global-nav.cmp-primary-nav .show-language-nav").length>0?o()(".global-nav.cmp-primary-nav .show-language-nav").width():0;if(o()(".global-nav.cmp-primary-nav .nav.above-brand-nav__rightnav:visible").length>1){var d=o()(".global-nav.cmp-primary-nav .nav.above-brand-nav__rightnav").length-1;r=o()(o()(".global-nav.cmp-primary-nav .primary-nav > .nav.above-brand-nav__rightnav")[d]).width()}else o()(".global-nav.cmp-primary-nav .nav.above-brand-nav__rightnav:visible").length>0&&(r=o()(".global-nav.cmp-primary-nav .nav.above-brand-nav__rightnav:visible").width());c=o()(".global-nav.cmp-primary-nav .primary-nav-wrapper").width()-i-a-t-r+17;o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("width",c+"px"),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("left",i+"px"),o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").length>0&&o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").css("visibility","hidden")}else!0===o()(".cmp-searchinput").hasClass("search-expand")&&n<=1024.1&&0===o()(".cmp-result-container").length?(o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("width","100%"),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("left","0")):n<=1024.1&&0===o()(".cmp-result-container").length?o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").length>0&&o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").css("visibility","unset"):o()(".global-nav.cmp-primary-nav.cmp-primary-navigation-nav-2-0 .nav.primary-nav__rightnav.search").length>0&&n>1024.1&&!1===o()(".cmp-searchinput").hasClass("search-expand")&&(o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("width","auto"),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("position","unset"));o()(".global-nav.cmp-primary-nav .cmp-searchinput").hasClass("search-expand")&&(o()(".global-nav.cmp-primary-nav input#searchInputText").focus(),o()(".global-nav.cmp-primary-nav input#searchInputText").addClass("cmp-selected-state")),u()})),o()(".cmp-search").parents(".cmp-result-container").length>0&&(o()(".cmp-search").removeClass("cmp-header-search"),o()(".search").find(".cmp-search").css("display","none"),o()(".cmp-result-container").find(".cmp-search").css("display","block")),o()(".cmp-searchfilter").find(".filters li").first().addClass("active")})),o()(window).on("resize",(function(){var e=o()(window).width(),t=0,n=o()(".global-nav.cmp-primary-nav #searchBoxBtn .search-icon").width();if(e>1024.1)if(o()(".cmp-searchinput").hasClass("search-expand")){if(o()(".global-nav.cmp-primary-nav.cmp-primary-navigation-nav-2-0 .nav.primary-nav__rightnav.search").length>0&&e>1024.1){o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("width",""),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("left","unset");var r=o()(".global-nav.cmp-primary-nav .logo-images").length>0?o()(".global-nav.cmp-primary-nav .logo-images").width():0,i=o()(".global-nav.cmp-primary-nav .show-language-nav").length>0?o()(".global-nav.cmp-primary-nav .show-language-nav").width():0;o()(".global-nav.cmp-primary-nav .nav.above-brand-nav__rightnav:visible").length>0&&(t=o()(".global-nav.cmp-primary-nav .nav.above-brand-nav__rightnav:visible").width()+17);var a=0;o()(".global-nav.cmp-primary-nav .hamburger-container:visible").length>0&&(a=o()(".global-nav.cmp-primary-nav .hamburger-container:visible").width()+17);var s=a+t,l=o()(".global-nav.cmp-primary-nav .primary-nav-wrapper").width()-r-n-t-a;o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("width",l+"px"),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("right",s+"px"),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("position","absolute"),o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").length>0&&o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").css("visibility","hidden")}else if(o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").length>0&&e>1024.1){r=o()(".global-nav.cmp-primary-nav .logo-images").length>0?o()(".global-nav.cmp-primary-nav .logo-images").width():0,i=o()(".global-nav.cmp-primary-nav .show-language-nav").length>0?o()(".global-nav.cmp-primary-nav .show-language-nav").width():0;if(n=o()(".global-nav.cmp-primary-nav #searchBoxBtn .close-search").width(),o()(".global-nav.cmp-primary-nav .nav.above-brand-nav__rightnav").length>0){var c=o()(".global-nav.cmp-primary-nav .nav.above-brand-nav__rightnav").length-1;t=o()(o()(".global-nav.cmp-primary-nav .primary-nav > .nav.above-brand-nav__rightnav")[c]).width()}l=o()(".global-nav.cmp-primary-nav .primary-nav-wrapper").width()-r-i-n-t+17;o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("width",l+"px"),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("left",r+"px"),o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").length>0&&o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").css("visibility","hidden")}}else o()(".global-nav.cmp-primary-nav.cmp-primary-navigation-nav-2-0 .nav.primary-nav__rightnav.search").length>0?(o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("width","auto"),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("position","unset")):(o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("width",""),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("left","unset")),o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").length>0&&o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").css("visibility","unset");else o()(".cmp-searchinput").hasClass("search-expand")?(o()(".global-nav.cmp-primary-nav.cmp-primary-navigation-nav-2-0 .nav.primary-nav__rightnav.search").length>0&&(o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("width","auto"),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("position","unset")),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("width","100%"),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("left","0")):(o()(".global-nav.cmp-primary-nav.cmp-primary-navigation-nav-2-0 .nav.primary-nav__rightnav.search").length>0&&(o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("width","auto"),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search > .cmp-nav").css("position","unset")),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("width",""),o()(".global-nav.cmp-primary-nav .nav.primary-nav__rightnav.search").css("left","unset"),o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").length>0&&o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").css("visibility","unset"))}))},ie=function(){document.addEventListener("DOMContentLoaded",(function(){re()}))},oe=function(){var e=o()(window).width();function t(e,t){var n;void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&adobeDataLayer.push({event:e,eventInfo:{path:"component."+(n=t,n?n&&n.dataset&&n.dataset.cmpDataLayer?Object.keys(JSON.parse(n.dataset.cmpDataLayer))[0]:n.id:null)}})}o()(".hamburger-container__open, .hamburger-container__close").attr("tabindex","0");var n=function(t){if(o()(t).closest(".cmp-anchorlink").length>0){var n=o()(t).find(".primary-nav__middlenav .cmp-nav.navigation .menu").width(),r=o()(t).find(".primary-nav").width(),i=0;o()(t).find(".logo-images").is(":visible")&&(i=o()(".logo-images").width());var a=0;o()(t).find(".primary-nav__rightnav").is(":visible")&&(a=o()(t).find(".primary-nav__rightnav").width()),e>=768&&((n>r-(i+a)||e<=1024.1)&&(e>=1024.1&&!o()(t).hasClass("primary-nav__more")||e<=1024.1)?o()(t).find(".primary-nav").addClass("hamburgermenu-tablet cmp-show-hamburger"):o()(t).find(".primary-nav").removeClass("hamburgermenu-tablet cmp-show-hamburger"))}else{var s=o()(t).find(".primary-nav__middlenav .cmp-nav.navigation .menu").width(),l=o()(t).find(".primary-nav").width(),c=0;o()(t).find(".logo-images").is(":visible")&&(c=o()(".logo-images").width());var d=0;o()(t).find(".primary-nav__rightnav").is(":visible")&&(d=o()(t).find(".primary-nav__rightnav").width()),e>=768&&((s>l-(c+d)||e<=767.9)&&(e>
776=767.9&&!o()(t).hasClass("primary-nav__more")||e<=767.9)?o()(t).find(".primary-nav").addClass("hamburgermenu-tablet cmp-show-hamburger"):o()(t).find(".primary-nav").removeClass("hamburgermenu-tablet cmp-show-hamburger"))}};o()(".menu").on("mouseover",(function(t){e>767.9&&o()(t.target).closest("li")&&("sub-menu"===o()(t.target).closest("li").find("ul").attr("class")||o()(t.target).closest("ul").hasClass("sub-menu")||o()(t.target).closest("ul").hasClass("inner-sub-menu")||o()(".nav-slot").css("display","none"))})),o()(document).on("mouseover",(function(t){e>767.9&&(o()(t.target).closest("ul").hasClass("menu")||o()(t.target).closest("ul").hasClass("sub-menu")||o()(t.target).closest("ul").hasClass("inner-sub-menu")||o()(t.target).closest("ul").hasClass("forth-level-nav")||(o()(".nav-slot").css("display","none"),o()(t.target).closest("div").hasClass("primary-nav__middlenav")||o()(t.target).hasClass("cmp-nav navigation")||o()(t.target).closest(".cmp-top-nav").length||o()("ul.sub-menu").removeClass("show-secondary-menu").closest(".primary-nav-wrapper").removeClass("menu-open"))),o()(t.target).closest("div").hasClass("primary-nav__middlenav")||o()(t.target).closest("div").hasClass("cmp-nav navigation")||o()(t.target).closest("div").hasClass("primary-nav__more")||o()(t.target).closest("ul").hasClass("-secondary")||o()(t.target).closest("div").hasClass("more-menu-container")||(o()(".cmp-primary-nav .primary-nav__middlenav").removeClass("--show-secondary"),o()(".primary-nav-wrapper").removeClass("menu-open"))}));var r=o()(".cmp-sticky-header"),i=0,a=null,s=0,l=0;window.astellasElements={},window.astellasElements.isScrollable=!0;var c=o()("header .breadcrumb");o()(window).on("scroll",(function(t){var n,d=0;if(c.length&&(d=parseInt(c.css("margin-top").replace("px",""))),n=c.outerHeight(!0)?r.height()+(c.outerHeight(!0)-d):r.height(),o()(".cmp-sticky-header").length>0)setTimeout((function(){if(!0===window.astellasElements.isScrollable){var e=parseInt(t.currentTarget.scrollY,10);l=e,e>i&&e>r.height()?(e<n?o()(".cmp-sticky-header").removeClass("cmp-header--fixed").css("top",""):o()(".cmp-sticky-header").removeClass("cmp-header--fixed").css("top","-"+n+"px"),o()(".cmp-sticky-header").parent().css("height",n+"px")):e>=i&&e<r.height()?o()(".cmp-sticky-header").removeClass("cmp-header--fixed cmp-sticky-header--fixed").css("top",""):e<i&&(e>r.height()&&(a||(s=e,a=setTimeout((function(){a=null,l<10?(o()(".cmp-sticky-header").removeClass("cmp-header--fixed cmp-sticky-header--fixed").css("top","auto"),o()(".cmp-sticky-header").parent().css("height","auto")):(s>=l||s<=0)&&(o()(".cmp-sticky-header").addClass("cmp-sticky-header--fixed"),setTimeout((function(){o()(".cmp-sticky-header").addClass("cmp-header--fixed").css("top","0"),o()(".cmp-sticky-header").parent().css("height",n+"px")}),5))}),10))),e>10&&e<r.height()&&e<i&&(o()(".cmp-sticky-header").addClass("cmp-header--fixed").css("top","0"),o()(".cmp-sticky-header").parent().css("height",n+"px")),e<=10&&(o()(".cmp-sticky-header").removeClass("cmp-header--fixed cmp-sticky-header--fixed").css("top","auto"),o()(".cmp-sticky-header").parent().css("height","auto"))),i=e<=0?0:e}}),10);else if(o()(".cmp-indication-bar-nav-2-0.cmp-indication-bar-sticky").length>0&&e>1024.1){var u=0,h=0;o()("header").height(),h=o()("header .cmp-primary-nav").outerHeight(),o()("header .cmp-top-nav").is(":visible")&&(u=o()("header .cmp-top-nav").innerHeight(),h+=o()("header .cmp-top-nav").outerHeight()),o()("header .cmp-indication-bar-nav").is(":visible")&&(o()("header .cmp-indication-bar-nav").innerHeight(),h+=o()("header .cmp-indication-bar-nav").outerHeight());var p=parseInt(u,10),f=!1,m=o()(window).scrollTop();0===m&&!0===f&&(f=!1),m>p?o()("header").hasClass("menu-show")&&(o()("header .cmp-primary-nav, header .cmp-indication-bar-nav").css({top:"-210px"}),o()("header .cmp-primary-nav").parent().css("height",h+"px"),o()("header").addClass("menu-hide"),f=!0,o()("header .cmp-indication-bar-nav").animate({top:0},0),o()("header .cmp-primary-nav").animate({top:0+o()("header .cmp-indication-bar-nav").outerHeight()},0),o()("header").removeClass("menu-show")):!1===f&&m<=p&&o()("header").hasClass("menu-hide")&&(o()("header").addClass("menu-show"),o()("header .cmp-top-nav").slideDown(100),o()("header").removeClass("menu-hide"),o()("header .cmp-primary-nav").css("top","unset"),o()("header .cmp-primary-nav, header .cmp-indication-bar-nav").parent().css("height","auto"))}else{var g=0,v=0,y=0;o()("header").height(),y=o()("header .cmp-primary-nav").outerHeight(),o()("header .cmp-top-nav").is(":visible")&&(g=o()("header .cmp-top-nav").innerHeight(),y+=o()("header .cmp-top-nav").outerHeight()),o()("header .cmp-indication-bar-nav").is(":visible")&&(v=o()("header .cmp-indication-bar-nav").innerHeight(),y+=o()("header .cmp-indication-bar-nav").outerHeight());
776var b=parseInt(g,10)+parseInt(v,10),_=!1,w=o()(window).scrollTop();0===w&&!0===_&&(_=!1),w>b?o()("header").hasClass("menu-show")&&(o()("header .cmp-primary-nav").css({top:"-210px"}),o()("header .cmp-primary-nav").parent().css("height",y+"px"),o()("header").addClass("menu-hide"),_=!0,o()("header .cmp-primary-nav").animate({top:0},0),o()("header").removeClass("menu-show")):!1===_&&w<=b&&o()("header").hasClass("menu-hide")&&(o()("header").addClass("menu-show"),o()("header .cmp-top-nav, header .cmp-indication-bar-nav").slideDown(100),o()("header").removeClass("menu-hide"),o()("header .cmp-primary-nav").parent().css("height","auto"))}}));var d=document.querySelectorAll(".cmp-primary-nav");o()(document).on("click",".more-button",(function(e){o()(e.target).closest(".primary-nav__middlenav").hasClass("--show-secondary")?(o()(e.target).closest(".primary-nav__middlenav").removeClass("--show-secondary"),o()(e.target).closest(".primary-nav-wrapper").removeClass("menu-open")):(o()(e.target).closest(".primary-nav__middlenav").addClass("--show-secondary"),o()(e.target).closest(".primary-nav-wrapper").addClass("menu-open")),o()(e.target).closest(".cmp-anchorlink").length>0&&o()(e.target).closest(".primary-nav-wrapper").find(".primary-nav ul.-secondary").height()>216&&o()(e.target).closest(".primary-nav-wrapper").find(".primary-nav .more-menu-container").addClass("items-scroll"),o()(e.target).attr("aria-expanded",o()(e.target).closest(".primary-nav__middlenav").hasClass("--show-secondary"));var t=o()(e.target).closest(".primary-nav-wrapper").height(),n=(o()(e.target).closest(".primary-nav-wrapper").find(".primary-nav__rightnav")[0]&&o()(e.target).closest(".primary-nav-wrapper").find(".primary-nav__rightnav")[0].offsetLeft,o()(window).width()),r=o()(e.target).closest(".primary-nav-wrapper .primary-nav__middlenav .menu:not(.cmp-right-menu)").find(".-secondary").width(),i=o()(".logo-images").width(),a=n-o()(e.target).closest(".primary-nav-wrapper").find(".primary-nav__middlenav").width()-i;o()(e.target).closest(".cmp-anchorlink").length>0?o()(e.target).closest(".primary-nav-wrapper").find(".more-menu-container").css({top:t,left:"unset"}):a>r?o()(e.target).closest(".primary-nav-wrapper .primary-nav__middlenav .menu:not(.cmp-right-menu)").find(".-secondary").css({top:t,left:"unset",right:"0"}):o()(e.target).closest(".primary-nav-wrapper .primary-nav__middlenav .menu:not(.cmp-right-menu)").find(".-secondary").css({top:t,right:"0"})}));var u=function(e){o()(e).find(".primary-nav__middlenav .menu li").each((function(t){o()(e).find(".primary-nav__middlenav .menu li").eq(t).removeClass("--hidden")}));var t=o()(e).find(".-more .more-button")&&o()(e).find(".-more .more-button")[0]&&o()(e).find(".-more .more-button")[0].offsetWidth,n=0,r=0,i=0;o()(e).closest(".cmp-anchorlink").length>0?(t+=o()(e).find(".cmp-nav__menu--label").width(),r=o()(e).find(".-more .more-button")[0].offsetWidth+t):r=t;var a=[],s=o()(e).find(".primary-nav__middlenav")[0].offsetWidth,l=o()(e).find(".primary-nav__middlenav .menu:not(.cmp-right-menu) > li:not(.-more)").length,c=0;o()(e).find(".primary-nav__middlenav .menu:not(.cmp-right-menu) > li:not(.-more)").each((function(d,u){i=s-t,c=s-n,s>=t+o()(e).find(".primary-nav__middlenav .menu:not(.cmp-right-menu) > li:not(.-more)").eq(d).width()||o()(e).closest(".cmp-anchorlink").length>0&&d==l-1&&i<=r&&0==a.length||o()(e).closest(".global-nav.cmp-primary-nav").length>0&&d==l-1&&o()(e).find(".primary-nav__middlenav .menu:not(.cmp-right-menu) > li:not(.-more)").eq(d).width()<=c&&0==a.length?(t+=o()(e).find(".primary-nav__middlenav .menu:not(.cmp-right-menu) > li:not(.-more)").eq(d).width(),n+=o()(e).find(".primary-nav__middlenav .menu:not(.cmp-right-menu) > li:not(.-more)").eq(d).width()):(o()(e).find(".primary-nav__middlenav .menu:not(.cmp-right-menu) > li:not(.-more)").eq(d).addClass("--hidden"),a.push(d))})),a.length?(o()(e).find(".-more").removeClass("--hidden").css("visibility","unset"),o()(e).find(".primary-nav__middlenav .menu:not(.cmp-right-menu)").find(".-secondary > li").each((function(t){a.includes(t)?o()(e).find(".primary-nav__middlenav .menu:not(.cmp-right-menu)").find(".-secondary > li:eq("+t+")").removeClass("--hidden"):o()(e).find(".primary-nav__middlenav .menu:not(.cmp-right-menu)").find(".-secondary > li:eq("+t+")").addClass("--hidden")}))):(o()(e).find(".primary-nav__middlenav .menu:not(.cmp-right-menu)").find(".-more").addClass("--hidden").css("visibility","unset"),o()(e).find(".primary-nav__middlenav").removeClass("--show-secondary"),o()(e).find(".primary-nav__middlenav .menu:not(.cmp-right-menu)").find(".-more .more-button").attr("aria-expanded",!1))};document.addEventListener("click",(function(e){for(var t=o()(e.target);t;){if(t.hasClass("-secondary")||t.hasClass("-more"))return;t=t.parentNode}document.querySelectorAll(".-more .more-button").forEach((function(e,t){o()(e).attr("aria-expanded",!1)}))}));var h=function(){var t=o()(".global-nav.cmp-indication-bar-nav .primary-nav .above-brand-nav__rightnav .cmp-nav");if(e<=767.9&&t.length>0&&t.find("ul.menu").length>0){var n=t.find("ul.menu")[0].scrollWidth;o()(".global-nav.cmp-indication-bar-nav .cmp-nav.navigation ul.menu li a").length>0&&n>e?(t.addClass("gradient-overlay-after"),t.find("ul.menu").on("scroll",(function(){var e=t.find("ul.menu").scrollLeft(),n=t.find("ul.menu")[0].scrollWidth,r=t.find("ul.menu").width();0===e?t.removeClass("gradient-overlay-before"):t.addClass("gradient-overlay-before gradient-overlay-after"),e+r>=n-1&&t.removeClass("gradient-overlay-after").addClass("gradient-overlay-before")}))):t.removeClass("gradient-overlay-after gradient-overlay-before")}else t.removeClass("gradient-overlay-after gradient-overlay-before")},p=function(){if(e>767.9&&e<=1024.1){var t=o()(".global-nav.cmp-primary-nav .primary-nav .primary-nav__middlenav .cmp-nav.navigation").eq(0),n=t.find("ul.menu").width();o()(".global-nav.cmp-primary-nav .cmp-nav.navigation ul.menu li a").length>0&&n>e?(o()(".global-nav.cmp-primary-nav").addClass("gradient-overlay-after"),t.on("scroll",(function(){var e=t.scrollLeft(),n=t[0].scrollWidth,r=t.width();0===e?o()(".global-nav.cmp-primary-nav").removeClass("gradient-overlay-before"):o()(".global-nav.cmp-primary-nav").addClass("gradient-overlay-before gradient-overlay-after"),e+r>=n-1&&o()(".global-nav.cmp-primary-nav").removeClass("gradient-overlay-after").addClass("gradient-overlay-before")}))):o()(".global-nav.cmp-primary-nav").removeClass("gradient-overlay-after gradient-overlay-before")}else o()(".global-nav.cmp-primary-nav").removeClass("gradient-overlay-after gradient-overlay-before");if(e<=1024.1){var r=o()(".global-nav.cmp-primary-nav .secondary-jumplinks .ul-navitem").eq(0),i=0,a=0;r.find("li").each((function(){a=o()(this).width(),i+=a})),o()(".global-nav.cmp-primary-nav .secondary-jumplinks .sibling-item li a").length>0&&i>e?(o()(".global-nav.cmp-primary-nav .secondary-jumplinks").addClass("gradient-overlay-after"),r.on("scroll",(function(){var t=r.scrollLeft(),n=r[0].scrollWidth;r.find("li").each((function(){var e=o()(this).width();e})),t>0&&o()(".global-nav.cmp-primary-nav .secondary-jumplinks").addClass("gradient-overlay-after"),n-t<=e&&o()(".global-nav.cmp-primary-nav .secondary-jumplinks").removeClass("gradient-overlay-after")}))):o()(".global-nav.cmp-primary-nav .secondary-jumplinks").removeClass("gradient-overlay-after")}else o()(".global-nav.cmp-primary-nav .secondary-jumplinks").removeClass("gradient-overlay-after")};if(o()(document).ready((function(){function t(e,t){var n=t,r=o()(n);if((r=r.length?r:o()("[data-section~="+n.slice(1)+"]")).length){var i;e&&e.preventDefault(),o()(".secondary-jumplinks").length>0&&(o()(".secondary-jumplinks .ul-navitem__active").removeClass("ul-navitem__active"),o()(".secondary-jumplinks .ul-navitem a[href='"+n+"']").addClass("ul-navitem__active"));var a=0;i=r;var s=o()("html, body"),l=o()(i).offset().top,c=(a=0,0),d=0,u=0,h=0,p=0;if(o()(".cmp-sticky-header").length>0){if(void 0!==i&&i.length>0){window.astellasElements.isScrollable=!1,u=o()(".cmp-sticky-header").outerHeight(),o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")&&(h=o()(".cmp-anchorlink .cmp-primary-nav").innerHeight(),p=parseInt(o()(".cmp-anchorlink .cmp-primary-nav").css("padding-bottom").replace("px","")));var f=o()(".cmp-alphaanchor-sticky .cmp-anchorlink-alphabets li a"),m=o()(".cmp-alphaanchor-sticky .cmp-anchorlink-alphabets").outerHeight(!0)||0;null===o()(".cmp-alphaanchor-sticky .cmp-anchorlink-alphabets")||o()(".cmp-alphaanchor-sticky .cmp-anchorlink-alphabets").hasClass("alphaAnc
776hor-sticky")||(m+=2*parseFloat(f.css("padding-top").replace("px",""))),a=u+h+m;var g=o()(window).scrollTop();!o()(".cmp-sticky-header").hasClass("cmp-header--fixed")&&o()(".cmp-anchorlink").hasClass("menu-show")?s.stop().animate({scrollTop:o()(i).offset().top-h-h+15-p-m},10):o()(".cmp-anchorlink").hasClass("menu-show")&&o()(".cmp-sticky-header").hasClass("cmp-header--fixed")?(window.astellasElements.isScrollable=!0,s.stop().animate({scrollTop:l+h-u+15-p-m},10)):o()(".cmp-anchorlink").hasClass("menu-hide")&&!o()(".cmp-sticky-header").hasClass("cmp-header--fixed")?s.stop().animate({scrollTop:l-h+5-m},10):o()(".cmp-anchorlink").hasClass("menu-hide")&&o()(".cmp-sticky-header").hasClass("cmp-header--fixed")?g<l?s.stop().animate({scrollTop:l+u-h+15-m},10):s.stop().animate({scrollTop:l-a+5},10):s.stop().animate({scrollTop:l+10-m},10),setTimeout((function(){window.astellasElements.isScrollable=!0}),800)}}else if(void 0!==i&&i.length>0){o()("header .cmp-top-nav").is(":visible")&&(c=o()("header .cmp-top-nav").outerHeight()),o()("header .cmp-indication-bar-nav").is(":visible")&&(d=o()("header .cmp-indication-bar-nav").outerHeight()),o()("header .cmp-primary-nav").is(":visible")&&(u=o()("header .cmp-primary-nav").outerHeight());var v=o()(".menu-hide .cmp-indication-bar-sticky"),y=0;"fixed"===v.css("position")&&(y=v.outerHeight(!0)||0),o()(".cmp-anchorlink .cmp-primary-nav").is(":visible")&&(h=o()(".cmp-anchorlink .cmp-primary-nav").innerHeight());var b=o()(".cmp-alphaanchor-sticky .cmp-anchorlink-alphabets li a"),_=o()(".cmp-alphaanchor-sticky .cmp-anchorlink-alphabets").outerHeight(!0)||0;o()(".cmp-alphaanchor-sticky .cmp-anchorlink-alphabets")&&o()(".cmp-alphaanchor-sticky .cmp-anchorlink-alphabets").length>0&&null!==o()(".cmp-alphaanchor-sticky .cmp-anchorlink-alphabets")&&!o()(".cmp-alphaanchor-sticky .cmp-anchorlink-alphabets").hasClass("alphaAnchor-sticky")&&(_+=2*parseFloat(b.css("padding-top").replace("px",""))),a=u+c+d+h+_,o()("header").hasClass("menu-show")&&o()(".cmp-anchorlink").hasClass("menu-show")?s.stop().animate({scrollTop:o()(i).offset().top-a},10):o()(".cmp-anchorlink").hasClass("menu-show")&&o()("header").hasClass("menu-hide")?s.stop().animate({scrollTop:l-a},10):s.stop().animate({scrollTop:l-u-h-_-y},10)}return!1}}e=o()(window).width(),d&&(e>767.9&&o()(".fourth-nav--icon").find(".material-symbols-rounded").removeClass("cmp-right__sub-menu-icon"),d.forEach((function(t,r){o()(t).find(".primary-nav__middlenav").addClass("--jsfied"),function(e){var t=o.a.trim(o()(e).find(".lblhdnmorelinklable").text()),n=o.a.trim(o()(e).find(".lblmorelinklabelicon").text());o()(e).closest(".cmp-anchorlink").length>0&&(t=o.a.trim(o()(e).closest(".anchor-links").find(".lblhdnmorelinklable").text()),n=o.a.trim(o()(e).closest(".anchor-links").find(".lblmorelinklabelicon").text()));var r="";""!==t&&null!=t||(t="",r="cls-empty-moretext"),""!==n&&null!=n||(n="more_vert");var i="";i+='<li class="-more --hidden" style="visibility: hidden">',i+='<a href="javascript:void(0);" class="more-button" aria-haspopup="true" aria-expanded="false"><span>'.concat(t,'</span> <span class="material-symbols-rounded ').concat(r,'">').concat(n,"</span></a>"),o()(e).closest(".cmp-anchorlink").length>0?i+='<div class="more-menu-container"><ul class="-secondary">'.concat(o()(e).find(".primary-nav__middlenav .menu").html(),"</ul></li></div>"):i+='<ul class="-secondary">'.concat(o()(e).find(".primary-nav__middlenav .menu").html(),"</ul></li>"),o()(e).find(".primary-nav__middlenav .menu").append(i)}(t),o()(t).closest("header").addClass("menu-show"),e<=767.9&&(o()(t).find(".primary-nav").addClass("cmp-show-hamburger"),o()(t).find(".cmp-right__sub-menu-icon").text("expand_more"),o()(t).find(".cmp-right-icon").text("expand_more")),o()(t).find(".primary-nav__rightnav .cmp-search__icon").addClass("material-symbols-rounded").text("search"),o()(t).find(".menu li").each((function(){var e=o()(t).find(".menu li").eq(0).find("a").attr("href"),n=o()(this).find("a").attr("href"),r=window.location.pathname;r==n&&(o()(this).addClass("active"),o()(this).parents("li").each((function(){o()(this).closest(".cmp-primary-nav").length&&o()(this).addClass("active")}))),"/"===r&&"/home"===e&&o()(t).find(".menu li").eq(0).addClass("active")})),o()(t).hasClass("primary-nav__more")&&(e>767.9&&e<1024.1&&o()(t).closest(".cmp-anchorlink").length>0?n(t):e>=1024.1&&o()(t).hasClass("cmp-primary-nav")?setTimeout((function(){u(t)}),300):n(t))})),p()),window.addEventListener("load",(function(){window.targetedHashEle&&window.targetedHashEle.setAttribute("id",window.location.hash.substring(1)),setTimeout((function(){location.hash&&t(null,location.hash)}),600)})),window.addEventListener("hashchange",(function(e){setTimeout((function(){location.hash&&t(e,location.hash)}),20)})),h(),o()(".primary-nav").find("ul.sub-menu").each((function(){o()(this).children("li").children(".inner-sub-menu").length>0&&o()(this).addClass("fullwidth-menu")})),e>767.9&&(o()(".fullwidth-menu li").on("mouseover",(function(){if(e>=1024.1){var t=o()(this).children(".inner-sub-menu").height(),n=o()(this).parent(".fullwidth-menu").height();n<t?o()(this).parent(".fullwidth-menu").css("height",t):o()(this).find(".inner-sub-menu").css("height",n)}})),o()(".fullwidth-menu li").on("mouseout",(function(){e>=1024.1&&(o()(this).parent(".fullwidth-menu").css("height","unset"),o()(this).find(".inner-sub-menu").css("height","unset"))})),o()(".inner-sub-menu li").on("mouseover",(function(){if(e>=1024.1){var t=o()(this).find(".forth-level-nav").height(),n=o()(this).parent(".inner-sub-menu ").height();n>t&&o()(this).find(".forth-level-nav").css("height",n),t>n?(o()(this).parent(".inner-sub-menu").css("height",t),o()(this).parent(".show-secondary-menu").css("height",t)):o()(this).parent(".show-secondary-menu").css("height",t)}})),o()("li.-more").on("mouseover",(function(){o()("ul.sub-menu").removeClass("show-secondary-menu")}))),o()(".inner-sub-menu li").on("click",(function(e){o()(".forth-level-nav").css("display","none"),o()(".inner-sub-menu").find(".material-symbols-rounded").removeClass("cmp-right__sub-menu
776-icon"),o()(e.currentTarget).find(".forth-level-nav").css("display","block"),o()(e.currentTarget).find(".material-symbols-rounded").addClass("cmp-right__sub-menu-icon")}))})),o()(window).on("resize",(function(){if(e=o()(window).width(),d&&(d.forEach((function(t,r){var i=o()(t).height();o()(t).find(".primary-nav-wrapper .primary-nav.cmp-show-hamburger .primary-nav__middlenav.primary-nav__show--middlenav,.-secondary").css("top",i-3),e<=1024.1&&(o()(t).find(".inner-sub-menu").removeClass("show-inner__sub--menu"),o()(t).find(".sub-menu").removeClass("show__sub--menu"),o()(t).find(".cmp-right__sub-menu-icon").text("expand_more"),o()(t).find(".cmp-right-icon").text("expand_more"),o()(t).find(".nav-slot--mob").remove()),o()(t).removeClass("cmp-show-hamburger"),n(t),o()(t).hasClass("primary-nav__more")&&(e>=1024.1&&o()(t).hasClass("cmp-primary-nav")||e>=767.9&&o()(t).closest(".cmp-anchorlink").length>0)&&u(t),e<=767.9&&(o()(t).find(".primary-nav").addClass("cmp-show-hamburger"),o()(t).find(".nav-slot").css("display","none")),e>=768&&e<=1024.1&&o()(t).closest(".cmp-anchorlink").length>0&&o()(t).find(".primary-nav").addClass("hamburgermenu-tablet")})),p(),h()),o()(".menu li a").each((function(){o()(this).closest("li").removeClass("pressed").css("background-color",""),o()(this).removeClass("cmp-item-click"),o()(".sub-menu li").each((function(){o()(this).removeAttr("style")}))})),o()(".primary-nav__middlenav").hasClass("primary-nav__show--middlenav")&&o()(".hamburger-container__close").trigger("click"),e>1024.1&&o()(".material-symbols-rounded.cmp-right__sub-menu-icon").each((function(){o()(this).text("chevron_right")})),e<=1024.1&&o()(".primary-nav__middlenav .menu:not(.cmp-right-menu) .-more").each((function(){o()(".primary-nav-wrapper").find(".primary-nav__middlenav .menu li").removeClass("--hidden"),o()(".primary-nav__middlenav .menu:not(.cmp-right-menu)").find(".-more").addClass("--hidden").css("visibility","unset"),o()(".primary-nav__middlenav").removeClass("--show-secondary"),o()(".primary-nav__middlenav .menu:not(.cmp-right-menu)").find(".-more .more-button").attr("aria-expanded",!1)})),o()(".cmp-indication-bar-nav-2-0.cmp-indication-bar-sticky").length>0&&e>1024.1){var t=0;o()("header").height(),t=o()("header .cmp-primary-nav").outerHeight(),o()("header .cmp-top-nav").is(":visible")&&(o()("header .cmp-top-nav").innerHeight(),t+=o()("header .cmp-top-nav").outerHeight()),o()("header .cmp-indication-bar-nav").is(":visible")&&(o()("header .cmp-indication-bar-nav").innerHeight(),t+=o()("header .cmp-indication-bar-nav").outerHeight());o()("header").hasClass("menu-hide")?(o()("header .cmp-primary-nav").parent().css("height",t+"px"),o()("header .cmp-indication-bar-nav").animate({top:0},0),o()("header .cmp-primary-nav").animate({top:0+o()("header .cmp-indication-bar-nav").outerHeight()},0)):o()("header").hasClass("menu-show")&&(o()("header .cmp-primary-nav").css("top","unset"),o()("header .cmp-primary-nav, header .cmp-indication-bar-nav").parent().css("height","auto"));var r=o()(".anchor-links .cmp-primary-nav").outerHeight(!0);o()(".cmp-anchorlink").hasClass("menu-show")&&(o()(".cmp-anchorlink .cmp-primary-nav").css("top","auto"),o()(".cmp-anchorlink .cmp-primary-nav").parent().css("height","auto")),o()(".cmp-anchorlink").hasClass("menu-hide")&&(o()(".cmp-anchorlink .cmp-primary-nav").parent().css("height",r+"px"),o()(".cmp-anchorlink .cmp-primary-nav").css({top:t}))}else if(o()(".cmp-indication-bar-nav-2-0.cmp-indication-bar-sticky").length>0&&e<=1024.1){var i;o()("header").height(),i=o()("header .cmp-primary-nav").outerHeight();o()("header").hasClass("menu-show")?o()("header .cmp-primary-nav").parent().css("height","auto"):o()("header").hasClass("menu-hide")&&(o()("header .cmp-primary-nav").parent().css("height",i+"px"),o()("header .cmp-primary-nav").animate({top:0},0));var a=o()(".anchor-links .cmp-primary-nav").outerHeight(!0);o()(".cmp-anchorlink").hasClass("menu-show")&&(o()(".cmp-anchorlink .cmp-primary-nav").css("top","auto"),o()(".cmp-anchorlink .cmp-primary-nav").parent().css("height","auto")),o()(".cmp-anchorlink").hasClass("menu-hide")&&(o()(".cmp-anchorlink .cmp-primary-nav").parent().css("height",a+"px"),o()(".cmp-anchorlink .cmp-primary-nav").css({top:i}))}})),o()(".global-nav.cmp-primary-nav ul.sub-menu li").on("click",(function(t){if(o()(t.currentTarget).hasClass("unlink-nav")&&e>1024.1&&t.preventDefault(),o()(".hamburger-container__close").is(":visible")||e<=1024.1){if("expand_more"==o()(t.currentTarget).find(".cmp-right__sub-menu
776-icon").text()?o()(t.currentTarget).find(".cmp-right__sub-menu-icon").text("expand_less"):o()(t.currentTarget).find(".cmp-right__sub-menu-icon").text("expand_more"),o()(t.currentTarget).find(".inner-sub-menu").toggleClass("show-inner__sub--menu"),o()(t.currentTarget).find(".inner-sub-menu").hasClass("show-inner__sub--menu")?(o()(t.currentTarget).find(".cmp-right__sub-menu-icon").text("expand_less"),o()(".fourth-nav--icon a .cmp-right__sub-menu-icon").text("expand_more")):o()(t.currentTarget).find(".cmp-right__sub-menu-icon").text("expand_more"),o()(".forth-level-nav").hasClass("show-forth-level-nav")&&o()(".fourth-nav--icon a .cmp-right__sub-menu-icon").text("expand_less"),o()(t.currentTarget).closest("li").parent("ul.menu").length>0&&e>=768)o()(t.currentTarget).closest("li").css("background-color","inherit");else if(e<768&&o()(t.currentTarget).find(".inner-sub-menu li").length>0){var n=o()(t.currentTarget).find(".inner-sub-menu li").css("background-color");o()(t.currentTarget).css("background-color",n)}if(o()(t.currentTarget).find(".inner-sub-menu").hasClass("show-inner__sub--menu"))o()(t.currentTarget).addClass("pressed");else{var r=o()(t.currentTarget).siblings("li").css("background-color");o()(t.currentTarget).css("background-color",r),o()(t.currentTarget).removeClass("pressed")}if(o()(t.currentTarget).parent("div").hasClass("fourth-nav--icon")){var i=o()(t.currentTarget).parent("div").siblings(".forth-level-nav").children("li").css("background-color");"expand_more"==o()(t.currentTarget).text()?(o()(t.currentTarget).parent(".fourth-nav--icon").parent("li").css("background-color",i),o()(t.currentTarget).parent(".fourth-nav--icon").siblings(".forth-level-nav").css("display","none")):(o()(".forth-level-nav").css("display","none"),o()(".fourth-nav--icon").find(".material-symbols-rounded").text("expand_more"),o()(t.currentTarget).parent(".fourth-nav--icon").find(".material-symbols-rounded").text("expand_less"),o()(t.currentTarget).parent(".fourth-nav--icon").siblings(".forth-level-nav").css("display","block"),o()(t.currentTarget).parent(".fourth-nav--icon").parent("li").css("background-color",i))}}t.stopPropagation(),t.stopImmediatePropagation()})),o()(".global-nav.cmp-primary-nav ul.menu li").on("click",(function(n){if(o()(n.currentTarget).hasClass("unlink-nav")&&e>1024.1&&n.preventDefault(),o()(".global-nav.cmp-primary-nav ul.menu li a").removeClass("cmp-item-click"),e<=1024.1&&o()(n.currentTarget).find("> div > a").addClass("cmp-item-click"),o()(".hamburger-container__close").is(":visible")||e<=1024.1)if((o()(n.currentTarget).closest("li").find(".inner-sub-menu").length>0||o()(n.currentTarget).find(".sub-menu").length>0)&&(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation()),"expand_less"!==o.a.trim(o()(n.currentTarget).find(".cmp-right-icon").text()))if(o()(".sub-menu").removeClass("show__sub--menu"),o()(".cmp-right-icon").text("expand_more"),o()(".cmp-right-icon").closest("li").removeClass("pressed"),o()(n.currentTarget).find(".cmp-right-icon").text("expand_less"),o()(n.currentTarget).find(".sub-menu").addClass("show__sub--menu"),o()(".menu> li").css("background-color","inherit"),t("cmp:show",o()(n.currentTarget).find("a")[0]),o()(n.currentTarget).closest("li").parent("ul.menu").length>0&&e>=768)o()(n.currentTarget).closest("li").css("background-color","inherit");else{var r=o()(n.currentTarget).closest("li").find(".show__sub--menu").css("background-color");o()(n.currentTarget).closest("li").css("background-color",r),o()(n.currentTarget).closest("li").addClass("pressed")}else o()(".sub-menu").removeClass("show__sub--menu"),o()(n.currentTarget).find(".sub-menu").removeClass("show-secondary-menu"),o()(".cmp-right-icon").text("expand_more"),o()(n.currentTarget).closest("li").removeClass("pressed"),o()(n.currentTarget).closest("li").css("background-color","inherit"),o()(".global-nav.cmp-primary-nav ul.menu li a").removeClass("cmp-item-click"),t("cmp:hide",o()(n.currentTarget).find("a")[0])})),o()(".global-nav.cmp-primary-nav ul.sub-menu li a, .global-nav.cmp-primary-nav ul.inner-sub-menu li a").on("click",(function(t){if((o()(".hamburger-container__close").is(":visible")||e<=1024.1)&&(o()(t.currentTarget).closest("li").find(".inner-sub-menu").length>0||o()(t.currentTarget).closest("li").find(".forth-level-nav").length>0)){o()(".global-nav.cmp-primary-nav ul.inner-sub-menu li").each((function(){o()(this).removeClass("pressed"),o()(t.currentTarget).closest("li").addClass("pressed")})),t.preventDefault();var n=o()(t.currentTarget).closest("li").siblings(".pressed");n.length>0&&(n.find(".inner-sub-menu").removeClass("show-inner__sub--menu"),n.removeClass("pressed").removeAttr("style"),n.find(".material-symbols-rounded").text("exp
776and_more"),n.find(".forth-level-nav ").removeClass("show-forth-level-nav"),n.find(".fourth-nav--icon").removeAttr("style"))}})),o()(".global-nav.cmp-top-nav ul.menu> li").on("click",(function(t){if(e<=1024.1){var n=o()(t.target).closest(".primary-nav-wrapper").height();o()(t.currentTarget).find("ul.sub-menu").css("top",n),o()(t.currentTarget).find("ul.sub-menu").toggleClass("show-secondary-menu")}})),o()(".global-nav.cmp-top-nav ul.menu> li").on("keydown",(function(t){if(" "===t.key&&e>1024.1){t.preventDefault();var n=o()(t.target).closest(".primary-nav-wrapper").height();o()(".-secondary").css("top",n),o()(t.currentTarget).find("ul.sub-menu").css("top",n),o()("ul.sub-menu").removeClass("show-secondary-menu"),o()(t.currentTarget).find("ul.sub-menu").addClass("show-secondary-menu"),o()(t.currentTarget).closest(".cmp-top-nav").length>0&&e>1024.1?o()(t.currentTarget).find("ul.sub-menu").css("top",n-15):o()(t.currentTarget).closest(".cmp-top-nav").length>0&&e<=1024.1&&o()(t.currentTarget).find("ul.sub-menu").removeClass("show-secondary-menu")}})),o()(document).on("click",".menu",(function(){if(e<=767.9&&(o()(".nav-slot--mob").remove(),o()(".nav-slot").is(":visible"))){var t=o()(".nav-slot").html();if(null!=t&&""!==t)'<li class="nav-slot nav-slot--mob">'.concat(t,"</li>")}})),o()("ul.menu> li").on("mouseover",(function(t){if(!o()(".hamburger-container__open").is(":visible")&&!o()(".hamburger-container__close").is(":visible")){var n=o()(t.target).closest(".primary-nav-wrapper").height();o()(".-secondary").css("top",n),o()(t.currentTarget).find("ul.sub-menu").css("top",n),o()("ul.sub-menu").removeClass("show-secondary-menu"),o()(t.currentTarget).find("ul.sub-menu").addClass("show-secondary-menu"),o()(t.currentTarget).closest(".cmp-top-nav").length>0&&e>1024.1?o()(t.currentTarget).find("ul.sub-menu").css("top",n-15):o()(t.currentTarget).closest(".cmp-top-nav").length>0&&e<=1024.1&&o()(t.currentTarget).find("ul.sub-menu").removeClass("show-secondary-menu")}})),o()(".inner-sub-menu li").on("mouseover",(function(e){o()(".inner-sub-menu").find(".fourth-nav--icon").find(".material-symbols-rounded").removeClass("cmp-right__sub-menu-icon"),o()(e.currentTarget).find(".fourth-nav--icon").find(".material-symbols-rounded").toggleClass("cmp-right__sub-menu-icon")})),o()(document).on("click",".hamburger-container__open",(function(n){var r;o()(n.target).closest(".primary-nav-wrapper").find(".primary-nav__middlenav").addClass("primary-nav__show--middlenav"),o()(n.target).closest(".cmp-primary-nav").hasClass("MIDigital-navbar")&&(o()(".primary-nav__show--middlenav").focus(),o()(n.target).closest(".primary-nav-wrapper").find(".primary-nav__show--middlenav ul.menu li:visible:first-child a").focus()),o()(n.target).closest(".primary-nav-wrapper").find(".hamburger-container__open").addClass("hamburger-container__open_hide"),o()(n.target).closest(".primary-nav-wrapper").find(".hamburger-container__close").addClass("hamburger-container__close_show");var i=o()(n.target).closest(".primary-nav-wrapper");t("cmp:show",i),o()(n.target).closest(".cmp-anchorlink").find(".primary-nav-wrapper").addClass("cmp-background-color").find(".primary-nav").addClass("cmp-background-color"),o()(n.target).closest(".primary-nav-wrapper").find(".cmp-right-icon").text("expand_more");var a=o()(n.target).closest(".primary-nav-wrapper").height();o()(n.target).closest(".primary-nav-wrapper").find(".primary-nav ul.sub-menu").css("top",0),o()(n.target).closest(".primary-nav-wrapper").find("ul.sub-menu").removeClass("show-secondary-menu"),o()(n.target).closest(".primary-nav-wrapper").removeClass("menu-open"),o()(n.target).closest(".primary-nav-wrapper").find(".primary-nav.cmp-show-hamburger .primary-nav__middlenav.primary-nav__show--middlenav").css("top",a-3),o()(n.target).closest(".primary-nav-wrapper").find(".primary-nav__middlenav .menu li").removeClass("--hidden"),o()(n.target).closest(".cmp-anchorlink").length>0&&(e=o()(window).width(),r=o()(n.target).closest(".primary-nav-wrapper").find(".primary-nav ul.menu").height(),e<768?r>185&&o()(n.target).closest(".primary-nav-wrapper").find(".primary-nav .cmp-nav.navigation").addClass("items-scroll"):e<=767.9&&r>200&&o()(n.target).closest(".primary-nav-wrapper").find(".primary-nav .cmp-nav.navigation").addClass("items-scroll")),setTimeout((function(){i&&i.find(".primary-nav__show--middlenav ul.menu > li:first-child a").focus()}),50)})),o()(document).on("click",".hamburger-container__close",(function(e){var t=o()(e.target).closest(".primary-nav-wrapper");t.find(".primary-nav__middlenav").removeClass("primary-nav__show--middlenav"),t.find(".hamburger-container__open").removeClass("hamburger-container__open_hide"),t.find(".hamburger-container__close").removeClass("hamburger-container__close_show"),t.find(".sub-menu").removeClass("show__sub--menu"),t.find(".primary-nav__middlenav").find("li").removeClass("pressed"),t.find(".
776inner-sub-menu").removeClass("show-inner__sub--menu"),t.find(".cmp-right__sub-menu-icon").text("expand_more"),t.removeClass("cmp-background-color").find(".primary-nav").removeClass("cmp-background-color")})),o()(document).on("click",".hamburger-container__close.hamburger-container__close_show",(function(e){var n=e.target.closest(".primary-nav-wrapper");o()(".primary-nav__middlenav").hasClass("primary-nav__show--middlenav")||t("cmp:hide",n)})),o()(".hamburger-container__open").on("keyup",(function(e){13===e.which&&(o()(".hamburger-container__open").trigger("click"),setTimeout((function(){o()(".hamburger-container__open").closest(".primary-nav-wrapper").find(".primary-nav__show--middlenav ul.menu:visible>li:first-child a").focus()}),50))})),o()(".hamburger-container__close").on("keyup",(function(e){13===e.which&&o()(".hamburger-container__close").trigger("click")})),o()(document).on("keydown",".primary-nav__show--middlenav ul.menu a",(function(e){console.log("key up is teting");var t=o()(e.target),n=o()(".primary-nav__show--middlenav ul.menu a"),r=n.index(t);if("ArrowDown"===e.key){e.preventDefault();var i=(r+1)%n.length;n.eq(i).focus()}else if("ArrowUp"===e.key){e.preventDefault();var a=(r-1+n.length)%n.length;n.eq(a).focus()}else"Escape"===e.key&&o()(".hamburger-container__close").trigger("click")})),(e=o()(window).width())<=1024.1&&(o()(".cmp-right-icon").text("expand_more"),o()(".cmp-right__sub-menu-icon").text("expand_more"),o()(".fourth-nav--icon").find(".cmp-right__sub-menu-icon.material-symbols-rounded").text("expand_more")),o()(".fourth-nav--icon").on("click",(function(e){o()(this).siblings(".forth-level-nav").toggleClass("show-forth-level-nav");var t=o()(this).siblings(".forth-level-nav").find("li").css("background-color");o()(this).css("background-color",t)})),o()(".global-nav.cmp-primary-nav .primary-nav__middlenav").on("keydown",(function(e){var t=o()(document.activeElement),n=o()(document.activeElement),r=n.find(".material-symbols-rounded");switch(e.key){case" ":e.preventDefault(),t.mouseover(),o()(".sub-menu li a").each((function(){o()(this).attr("tabindex",-1),o()(this).closest("li").attr("tabindex","0")})),r[0]&&n.addClass("hover"),t.hasClass("more-button")&&t.trigger("click");break;case"ArrowUp":t.prev("li").focus();break;case"ArrowDown":t.next("li").focus();break;case"Enter":t[0].lastElementChild?t[0].lastElementChild.firstElementChild?t[0].lastElementChild.firstElementChild.click():t[0].lastElementChild.click():t[0].lastElementChild.children[0]&&t[0].lastElementChild.children[0].click();break;case"ArrowRight":t.trigger("mouseover"),t[0].closest(".fullwidth-menu").classList.contains("sub-menu")&&(t.addClass("hover"),t[0].lastElementChild.firstElementChild.focus(),t.trigger("mouseover"))}})),o()(document).on("keyup",(function(e){if("Space"!==e.code)if((n=o()(document.activeElement)).hasClass("more-button")||n.hasClass("cmp-searchbox-button")||n[0].closest(".show-language-nav"))(t=o()(".-secondary")).has(n).length||(o()(".primary-nav__middlenav").removeClass("--show-secondary"),o()("ul.sub-menu").removeClass("show-secondary-menu"));else if((t=o()(".sub-menu")).has(n).length){var t=o()(".inner-sub-menu"),n=o()(document.activeElement);if(t.has(n).length){t=o()(".forth-level-nav"),n=o()(document.activeElement);t.has(n).length||o()("ul.inner-sub-menu li").each((function(){o()(this).hasClass("hover")&&o()(this).removeClass("hover")}))}else o()("ul.sub-menu li").each((function(){o()(this).hasClass("hover")&&o()(this).removeClass("hover")}))}else o()("ul.sub-menu li").each((function(){o()(this).hasClass("hover")&&o()(this).removeClass("hover")})),o()(".nav-slot").css("display","none"),o()("ul.sub-menu").removeClass("show-secondary-menu").closest(".primary-nav-wrapper").removeClass("menu-open")})),window.location.href.includes("astellaspharmasupportsolutions")||window.location.href.includes("veozahhcp")){var f=new URLSearchParams(window.location.search),m=f.get("accId");if(m){f.delete("accId");var g=f.toString(),v=window.location.pathname+(g?"?"+g:"")+"#"+m;history.replaceState(null,"",v),setTimeout((function(){var e=document.querySelector("#".concat(m,"-button"));e&&e.click()}),100)}}},ae=function(){document.addEventListener("DOMContentLoaded",(function(){oe()})),function(){if(window.location.hash){var e=window.location.hash;window.targetedHashEle||(window.targetedHashEle="",window.targetedHashEle=document.querySelector(e)),window.targetedHashEle&&window.targetedHashEle.removeAttribute("id")}}()},se=function(){document.addEventListener("DOMContentLoaded",(function(){var e,t,n;document.querySelector(".card.teaser")&&(o()(document).ready((function(){var e=0;document.querySelectorAll(".card.teaser .cmp-teaser__image .image").forEach((function(t,n){(o()(t).hasClass("cmp-border-radius--3xs")||o()(t).hasClass("cmp-border-radius--xs")||o()(t).hasClass("cmp-border-radius--0"))&&(e=parseInt(o()(t).css("border-radius")),o()(t).parent().css("border-radius",e),o()(t).parent().find("div.text").addClass("cmp-position"))}))})),o()(window).on("resize",(function(){var e=0;document.querySelectorAll(".card.teaser .cmp-teaser__image .image").forEach((function(t,n){(o()(t).hasClass("cmp-border-radius--3xs")||o()(t).hasClass("cmp-border-radius--xs")||o()(t).hasClass("cmp-border-radius--0"))&&(e=parseInt(o()(t).css("border-radius")),o()(t).parent().css("border-radius",e),o()(t).parent().find("div.text").addClass("cmp-position"))}))})),e=new WeakMap,t=function(e,t){var n=e.getBoundingClientRect().height,r=t.getBoundingClientRect().height,i=Math.max(0,n-r);e.style.setProperty("--left-height","".concat(i,"px"))},n=function(n){if(!e.has(n)){var r=n.querySelector(".teaser-card-full-click");if(r){t(n,r);var i=new ResizeObserver((function(){t(n,r)}));i.observe(n),e.set(n,i)}}},document.querySelectorAll(".cmp-teaser").forEach(n))}))};function le(e){return function(e){if(Array.isArray(e))return ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ce(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var de=function(e,t){o()(t.target).blur(),t.preventDefault();var n=o()(t.target);if(o()(n).parent("div").hasClass("arrow_reverse")&&o()(t.target).siblings("ul").remove(),o()(t.target).closest("div").hasClass("arrow_reverse"))o()(".selector-options").is(":visible")&&o()(t.target).hasClass("cmp-form-options__field--drop-down")&&(o()(t.target).siblings("ul").remove(),o()(n).parent().removeClass("arrow_reverse"));else{o()(n).parent().addClass("arrow_reverse");var r=o()(t.target).siblings("ul").length,i=o()(t.target).children("ul").length;if(0===r&&0===i){var a=e.children,s=document.createElement("ul");
776s.className="selector-options",le(a).forEach((function(t){if("emptyValue"!=t.id&&t.dataset&&""!==t.dataset.emptyOption){var r=document.createElement("li");o()(t).is(":disabled")&&o()(r).addClass("lidisabled"),r.tabIndex=0,r.textContent=t.textContent,r.addEventListener("mousedown",(function(r){r.stopPropagation(),a.value=t.value,e.value=t.value,e.dispatchEvent(new Event("change")),s.remove(),o()(n).parent().removeClass("arrow_reverse")})),r.addEventListener("keydown",(function(r){13!==r.keyCode&&32!=r.keyCode||(a.value=t.value,e.value=t.value,e.dispatchEvent(new Event("change")),s.remove(),o()(n).parent().removeClass("arrow_reverse"))})),s.appendChild(r)}})),e.closest("div").appendChild(s),document.addEventListener("click",(function(t){e.contains(t.target)||(s.remove(),o()(n).parent().removeClass("arrow_reverse"))})),e.focus()}else o()(t.target).siblings("ul").remove(),o()(n).parent().removeClass("arrow_reverse")}o()(t.target).on("mousedown",(function(){o()(".selector-options").is(":visible")||(o()(t.target).siblings("ul").remove(),o()(n).parent().removeClass("arrow_reverse"))})),o()(t.target).on("keydown",(function(e){13!==e.keyCode&&32!=e.keyCode||o()(".selector-options").is(":visible")||(o()(e.target).siblings("ul").remove(),o()(n).parent().removeClass("arrow_reverse"))}))};
776o()(document).ready((function(){o()(".input-disabled").is(":visible")&&o()(".input-disabled input").attr("disabled","disabled");document.querySelectorAll(".dropDownList select").forEach((function(e){o()(e).parent().parent().hasClass("cmp-auto-complete-selector")?o()(e).removeClass("select-invalid"):(e.addEventListener("change",(function(e){var t=o.a.trim(o()(e.target).find("option:selected").val());""===t||null==t?(o()(e.target).find("option:selected").closest("select").addClass("select-invalid"),o()(e.target).find("option:selected").closest(".guideDropDownList").removeClass("validation-success")):(o()(e.target).find("option:selected").closest("select").removeClass("select-invalid"),o()(e.target).find("option:selected").closest(".guideDropDownList").addClass("validation-success"))})),function(e){var t="",n="";e.children[0];le(e.children).forEach((function(e){o()(e).is(":selected")&&(o()(e).is(":disabled")||""===o()(e).val()||void 0===o()(e).val())&&o()(e).closest("select").addClass("select-invalid")})),e.addEventListener("mousedown",(function(t){de(e,t)})),e.addEventListener("keydown",(function(r){if(13===r.keyCode&&(de(e,r),r.target.focus(),""===t?t=o()(r.target).closest("div").find("ul li:first"):(n=o()(r.target).find("option:selected").index(),o()(r.target).closest("fieldset").find("ul li:eq(".concat(n,")")).addClass("selected-li"),t=o()(r.target).closest("div").find("ul li.selected-li"))),38===r.keyCode){var i=t.prev();i.length&&(t.removeClass("selected-li"),i.addClass("selected-li"),t=o()(r.target).closest("div").find("ul li.selected-li"))}else if(40===r.keyCode){var a=t.next();a.length&&(t.removeClass("selected-li"),a.addClass("selected-li"),t=o()(r.target).closest("div").find("ul li.selected-li"))}}))}(e))})),o()(".textField textarea").is(":visible")&&(o()("#guideContainerForm .cmp-input-text--wrapper-icon").length>0&&o()("#guideContainerForm .cmp-input-text--wrapper-icon").each((function(){var e=o()(this).find(".cmp-input-text--count p").html();o()(this).find(".cmp-input-text--field-icon .guideFieldWidget.textField").append('<div class="text-count">'.concat(e,"</div>")),o()(this).find(".inputtedChar").text(0)})),o()(".textField textarea").on("input",(function(){var e=o()(this).val().length;o()(this).siblings(".text-count").find(".inputtedChar").text(e)}))),o()(".guide-tnc-checkbox").length>0&&o()(".guide-tnc-checkbox").each((function(e){var t=o()(".guide-tnc-checkbox").eq(e).closest(".afTermsAndConditions").find(".guide-tnc-content p").html();(o()(".cmp-email-confirm-consent").length>0||o()(".cmp-edit-profile-consent-form").length>0||o()(".cmp-consent-management-form").length>0)&&(t=o()(".guide-tnc-checkbox").eq(e).closest(".afTermsAndConditions").find(".guide-tnc-content").html()),o()(".guide-tnc-checkbox").eq(e).find(".guideWidgetLabel label").html(t),o()(".guide-tnc-checkbox").eq(e).closest(".afTermsAndConditions").find(".guide-tnc-content").css("display","none"),o()(".guide-tnc-checkbox").eq(e).find("input").removeAttr("disabled"),o()(this).height("auto"),o()(this).closest(".afTermsAndConditions").find(".afTncContentArea").removeAttr("tabindex"),o()(".cmp-consent-management-form").length>0&&(o()(".guide-tnc-checkbox").eq(e).closest(".afTermsAndConditions").find(".afTncContentArea").css("display","none"),o()("#leave-modal .cmp-global-link-primary-secondary a.actionModalClose").eq(0).on("click",(function(e){e.preventDefault(),window.history.back()})))})),o()('input[type="checkbox"]').on("keyup",(function(e){9===e.which&&(o()(e.currentTarget).parents(".guide-tnc-checkbox").addClass("keypad-focus"),o()(e.currentTarget).parents(".cmp-checkbox-system.guideCheckBoxItem, .afCheckBoxItem.guideCheckBoxItem").addClass("keypad-focus"),o()(e.currentTarget).parents(".globalregistration-terms-label").addClass("keypad-focus"),o()(e.currentTarget).parents(".stayuptodate-terms-label").addClass("keypad-focus"),o()(e.currentTarget).parents(".cmp-form-options__field-label").addClass("keypad-focus"))})),o()('input[type="checkbox"]').on("focusout mousedown",(function(e){o()(e.currentTarget).parents(".guide-tnc-checkbox").removeClass("keypad-focus"),o()(e.currentTarget).parents(".cmp-checkbox-system.guideCheckBoxItem, .afCheckBoxItem.guideCheckBoxItem").removeClass("keypad-focus"),o()(e.currentTarget).parents(".globalregistration-terms-label").removeClass("keypad-focus"),o()(e.currentTarget).parents(".stayuptodate-terms-label").removeClass("keypad-focus"),o()(e.currentTarget).parents(".cmp-form-options__field-label").removeClass("keypad-focus")})),o()(".XfaCheckBox input[type='radio']").after('<span class="cmp-radio-focus"></span>'),o()(".cmp-stayuptodate-component textarea").on("keyup",(function(e){var t=o()(e.target).val();if(null!==t&&""!==t){var n=t.length;if(o()(e.target).closest(".guideFieldWidget").find(".lblwordcount").text("".concat(n,"/").concat(240)),n>240){var r=t.slice(0,240);o()(e.target).val(r)}}else{o()(e.target).closest(".guideFieldWidget").find(".lblwordcount").text("".concat(0,"/").concat(240))}})),o()(".cmp-stayuptodate-component .cmp-ahpra-number, .cmp-request-sample-component .cmp-contact-number, .cmp-starter-pack-component .cmp-contact-number").on("keyup",(function(e){if(9!==e.keyCode&&e.target.value){var t="";t=guideBridge.resolveNode("contactnumber.somExpression")?guideBridge.resolveNode("contactnumber.somExpression"):guideBridge.resolveNode("telephoneNo.somExpression");var n=e.target.value.replaceAll(/\s/g,"");n=(n=(n=n.replaceAll(/\-/g,"")).replaceAll(/\(/g,"")).replaceAll(/\)/g,""),guideBridge.resolveNode(t)._triggerEvent(guidelib.event.GuideModelEvent.VALUE_CHANGED,"value",n,guideBridge.resolveNode(t)._getFormattedValue(n));var r=e.target.value.trim();r=(r=(r=(r=r.replaceAll(/\-+$/g,"")).trim()).replaceAll(/\)+$/g,"")).replaceAll(/\(+$/g,""),e.target.value=r.trim()}}));document.querySelectorAll('input[type="file"]').forEach((function(e){e.onchange=function(e){o()(e.currentTarget).closest(".panel").find('.fileupload_show_icon input[type="checkbox"]')&&o()(e.currentTarget).closest(".panel").find('.fileupload_show_icon input[type="checkbox"]').length>0?!0===o()(e.currentTarget).closest(".panel").find('.fileupload_show_icon input[type="checkbox"]').prop("checked")?o()(e.currentTarget).parent(".fileUpload").find(".close").addClass("hidden"):o()(e.currentTarget).parent(".fileUpload").find(".close").addClass("material-symbols-rounded").html("close"):o()(e.currentTarget).parent(".fileUpload").find(".close").addClass("material-symbols-rounded").html("close")}})),o()('#guideContainerForm input[type="text"]:not([readonly]),\n #guideContainerForm input[type="email"]:not([readonly]),\n #guideContainerForm input[type="number"]:not([readonly]),\n #guideContainerForm input[type="tel"]:not([readonly]),\n #guideContainerForm input[type="phone"]:not([readonly]),\n #guideContainerForm input[type="date"]:not([readonly]),\n #guideContainerForm input[type="password"]:not([readonly]),\n #guideContainerForm .dropDownList select:not([disabled]),\n #guideContainerForm .guideScribble img:not([disabled]),\n #guideContainerForm textarea:not([readonly]').on("keydown",(function(e){o()(e.target).removeClass("cmp-inputted-state cmp-selected-state cmp-keypad-focus").addClass("cmp-inputting-state")})),o()('#guideContainerForm input[type="text"]:not([readonly]),\n #guideContainerForm input[type="email"]:not([readonly]),\n #guideContainerForm input[type="number"]:not([readonly]),\n #guideContainerForm input[type="tel"]:not([readonly]),\n #guideContainerForm input[type="phone"]:not([readonly]),\n #guideContainerForm input[type="date"]:not([readonly]),\n #guideContainerForm input[type="password"]:not([readonly]),\n #guideContainerForm .dropDownList select:not([disabled]),\n #guideContainerForm .guideScribble img:not([disabled]),\n #guideContainerForm textarea:not([readonly]').on("mousedown focus",(function(e){"mousedown"===e.type||o()(e.target).hasClass("cmp-selected-state")?o()(e.target).removeClass("cmp-inputted-state cmp-inputting-state cmp-keypad-focus").addClass("cmp-selected-state"):o()(e.target).removeClass("cmp-inputted-state cmp-selected-state cmp-inputting-state").addClass("cmp-keypad-focus")})),o()('#guideContainerForm input[type="text"]:not([readonly]),\n #guideContainerForm input[type="email"]:not([readonly]),\n #guideContainerForm input[type="number"]:not([readonly]),\n #guideContainerForm input[type="tel"]:not([readonly]),\n #guideContainerForm input[type="phone"]:not([readonly]),\n #guideContainerForm input[type="date"]:not([readonly]),\n #guideContainerForm input[type="password"]:not([readonly]),\n #guideContainerForm .guideScribble img:not([disabled]),\n #guideContainerForm .dropDownList select:not([disabled]),\n #guideContainerForm textarea:not([readonly]').on("blur",(function(e){o()(e.target).removeClass("cmp-selected-state cmp-inputting-state cmp-keypad-focus"),""!==o()(e.target).val()&&o()(e.target).addClass("cmp-inputted-state"),("LI"===o()(e.relatedTarget).prop("tagName")&&o()(e.target).closest(".singleselect-dropdown").length>0||o()(e.target).closest(".singleselect-dropdown").length>0&&o()(e.target).closest(".singleselect-dropdown").find("ul li.cmp-single-selected").length>
7760)&&o()(e.target).closest(".guideFieldNode").removeClass("validation-failure").addClass("validation-success")})),o()("#guideContainerForm .cmp-input--wrapper-icon").length>0&&o()("#guideContainerForm .cmp-input--wrapper-icon").each((function(){o()(this).find(".cmp-input--normal-icon, .cmp-input--success-icon, .cmp-input--error-icon").appendTo(o()(this).find(".cmp-input--field-icon .guideFieldWidget.textField"))}))}));r(65),r(49),r(66);o()(document).ready((function(){o()(".guideRootPanel").hasClass("cmp-root-autocomplete-selector")&&o()(".cmp-root-autocomplete-selector").closest(".guideContainerWrapperNode").addClass("cmp-wrapper-autocomplete-selector");o.a.widget&&(o.a.widget("custom.combobox",{_create:function(){this.wrapper=o()("<span>").addClass("custom-combobox").insertAfter(this.element),this.element.hide(),this._createAutocomplete(),this._createShowAllButton(),this._bindEnterKeyEvent()},_createAutocomplete:function(){var e=this.element.children(":selected"),t=e.val()?e.text():"",n="";this.element.find("#emptyValue").length>0?n=this.element.find("#emptyValue").text():this.element.find("[data-empty-option]").length>0&&(n=this.element.find("[data-empty-option]").text()),this.input=o()("<input>").appendTo(this.wrapper).attr("type","text").val(t).attr("title","").attr("placeholder",n).addClass("custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left").autocomplete({delay:0,minLength:0,source:this._source.bind(this),classes:{"ui-autocomplete":"cmp-selector-list"}}),this._on(this.input,{autocompleteopen:function(){this.wrapper.find(".custom-combobox-input").addClass("cmp-autocomplete-open"),this.wrapper.find(".material-symbols-rounded").addClass("cmp-rotate-icon")},autocompleteselect:function(e,t){t.item.option.selected=!0,this._trigger("select",e,{item:t.item.option}),this.element.trigger("change"),this.element[0].dispatchEvent(new Event("change"))},autocompleteclose:function(e,t){this.wrapper.find(".custom-combobox-input").removeClass("cmp-autocomplete-open"),this.wrapper.find(".material-symbols-rounded").removeClass("cmp-rotate-icon"),this.input.val()||this._removeIfInvalid(e,t)},autocompletechange:"_removeIfInvalid"})},_createShowAllButton:function(){var e=this.input,t=!1;o()("<a>").attr("tabIndex",-1).attr("title","Show All Items").appendTo(this.wrapper).append('<span class="material-symbols-rounded notranslate" translate="no" aria-hidden="true">keyboard_arrow_down</span>').addClass("custom-combobox-toggle ui-corner-right").on("mousedown",(function(){t=e.autocomplete("widget").is(":visible")})).on("click",(function(){e.trigger("focus"),t||e.autocomplete("search","")}))},_source:function(e,t){var n=new RegExp(o.a.ui.autocomplete.escapeRegex(e.term),"i");t(this.element.children("option").map((function(){var t=o()(this).text();if(this.value&&(!e.term||n.test(t)))return{label:t,value:t,option:this}})))},_removeIfInvalid:function(e,t){if(!t.item){var n=this.input.val();this.input.val("").attr("title","".concat(n," didn't match any item")),this.element.val(""),this.element.trigger("change"),this.element[0].dispatchEvent(new Event("change")),this.input.autocomplete("instance").term=""}},_destroy:function(){this.wrapper.remove(),this.element.show()},_bindEnterKeyEvent:function(){var e=this;this.input.on("keydown",(function(t){"Enter"===t.key&&(t.preventDefault(),e.input.autocomplete("search",e.input.val()))}))}}),o()(".cmp-auto-complete-selector select").combobox()),o()(".cmp-root-autocomplete-selector .cmp-submit-button a").on("click",(function(e){e.preventDefault(),o()(".cmp-root-autocomplete-selector .cmp-submit-button-hidden button").trigger("click")}))})),o()(document).ready((function(){function e(e){var t=e.placeholderText,n=e.id;o()("#"+n).append('<div class="guideFieldSuccess">'.concat(t,"</div>")),e.validate()}function t(e){var t=e+"=",n=decodeURIComponent(document.cookie).split("; "),r="";return n.forEach((function(e){0===e.indexOf(t)&&(r=e.substring(t.length))})),r}if(o()(".cmp-request-sample-component").length){var n=o()(".cmp-getuser-url").find("input").val(),r=o()(".cmp-getuser-method").find("input").val(),i={siteId:t("siteID"),emailAddress:t("email")};o.a.ajax({url:n,type:r,data:i,success:function(t){t.response&&0==t.response.code&&t.response.result?function(t){var n=guideBridge.resolveNode(guideBridge.resolveNode("firstname.somExpression"));n&&(n.value=t.firstName,e(n));var r=guideBridge.resolveNode(guideBridge.resolveNode("lastname.somExpression"));r&&(r.value=t.lastName,e(r));var i=guideBridge.resolveNode(guideBridge.resolveNode("addressline1.somExpression"));i&&(i.value=t.practiceAddress,e(i));var o=guideBridge.resolveNode(guideBridge.resolveNode("city.somExpression"));o&&(o.value=t.practiceCity,e(o));var a=guideBridge.resolveNode(guideBridge.resolveNode("postalcode.somExpression"));a&&(a.value=t.practicePostalCode,e(a));var s=guideBridge.resolveNode(guideBridge.resolveNode("emailAddress.somExpression"));s&&(s.value=t.emailAddress,e(s))}(t.response.result):console.log(t)},error:function(e){console.log(e)}})}})),o()(document).ready((function(){o()(".cmp-with-tooltip").length&&(o()(".cmp-with-tooltip .cmp-tooltip-text-icon").each((function(){var e=o()(this).closest(".guidePanelNode").find(".cmp-tooltip-field-icon .guideFieldLabel label"),t=o()(this).find("p");e.append(t.html())})),o()('[data-bs-toggle="popover"]').attr({tabindex:"0"}))})),o()(document).ready((function(){o()(".guideRootPanel").hasClass("cmp-quiz-component")&&(o()(".cmp-quiz-component").closest("#guideContainerForm").addClass("cmp-form--quiz"),o()(".cmp-form--quiz .moveNext").attr("tabindex","0"),o()(".cmp-form--quiz .movePrev").attr("tabindex","0"));o()(".cmp-quiz-component .btn_pagination .Button").attr("tabindex","-1"),o()(".cmp-quiz-component .guideRadioButtonGroupItems .guideRadioButtonItem").attr("tabindex","0"),o()(".cmp-quiz-component .guideRadioButtonGroupItems .guideRadioButtonItem .guideFieldWidget").append('<div class="global-link cmp-global-link-selection">\n <ul>\n <li>\n <a href="javascript:void(0);" tabindex="-1" >
776\n <span class="material-symbols-rounded notranslate quiz_unchecked" translate="no" aria-hidden="true">radio_button_unchecked</span>\n <span class="material-symbols-rounded notranslate quiz_hoverChecked" translate="no" aria-hidden="true">radio_button_checked</span>\n <span class="material-symbols-rounded notranslate quiz_correctChecked" translate="no" aria-hidden="true">check_circle</span>\n <span class="material-symbols-rounded notranslate quiz_wrongCheck" translate="no" aria-hidden="true">cancel</span>\n </a>\n </li>\n </ul>\n </div>'),o()(".cmp-quiz-component .guideCheckBoxGroupItems .guideCheckBoxItem").attr("tabindex","0"),o()(".cmp-quiz-component .guideCheckBoxGroupItems .guideCheckBoxItem .guideFieldWidget").append('<div class="global-link cmp-global-link-selection">\n <ul>\n <li>\n <a href="javascript:void(0);" tabindex="-1" >\n <span class="material-symbols-rounded notranslate quiz_unchecked" translate="no" aria-hidden="true">check_box_outline_blank</span>\n <span class="material-symbols-rounded notranslate quiz_hoverChecked" translate="no" aria-hidden="true">check_box</span>\n <span class="material-symbols-rounded notranslate quiz_correctChecked" translate="no" aria-hidden="true">check_box</span>\n </a>\n </li>\n </ul>\n </div>'),o()(".cmp-quiz-component:not(.cmp-quiz-v2) .movePrev").html('<div class="global-link cmp-global-link-icon cmp-icon-size-s">\n <ul>\n <li>\n <a href="javascript:void(0)">\n <span class="material-symbols-rounded notranslate" translate="no" aria-hidden="false" aria-label="back" style="line-height: 00.95">arrow_back</span>\n </a>\n </li>\n </ul>\n </div>'),o()(".cmp-quiz-component:not(.cmp-quiz-v2) .moveNext").html('<div class="global-link cmp-global-link-icon cmp-icon-size-s">\n <ul>\n <li>\n <a href="javascript:void(0)">\n <span class="material-symbols-rounded notranslate" translate="no" aria-hidden="false" aria-label="next" style="line-height: 00.95">arrow_forward</span>\n </a>\n </li>\n </ul>\n </div>'),o()(document).on("click",".cmp-quiz-component .guideRadioButtonItem",(function(e){o()(this).hasClass("guideItemSelected")||o()(this).hasClass("corret_answer")||(o()(this).addClass("guideItemSelected"),o()(this).find("label").trigger("click"))})),o()(document).on("click",".cmp-quiz-component .guideCheckBoxItem",(function(e){o()(e.target).is("label")||(o()(this).toggleClass("guideItemSelected"),o()(this).find("label").trigger("click"))}))})),o()(document).ready((function(){o()(".guideimagechoice .guideFieldNode.radioImage").addClass("quizV2Section"),o()(".guidecheckbox .guideFieldNode.guideCheckBoxGroup.quizIconsActive").addClass("quizV2Section"),o()(".guideradiobutton .guideFieldNode.numeric-scale").addClass("quizV2Section"),o()("#GlobalModal").addClass("hidden");var e=o()(".quizV2Section").find(".radioImage"),t=[];window.guideBridge&&window.guideBridge.visit((function(e){("guideRadioButton"===e.className||"guideCheckBox"===e.className)&&t.push(e)}));var n=t.filter((function(e){return e.jsonModel["jcr:path"].includes("guideimagechoice")})).flatMap((function(e){return e.items}));e&&e.each((function(e){var t=n[e].split("=").pop(),r=n[e].split("=")[0].split("-").pop();o()(this).find(".guideWidgetLabel").attr("data-correction-value",r),o()(this).find(".guideFieldWidget,.guideWidgetLabel").wrapAll('<div class="customWrapper"></div>'),o()(this).find(".guideFieldWidget").addClass("XfaCheckBox").attr("data-imgUrl",t),o()(this).find(".guideWidgetLabel").html(n[e].split("=")[0].replace("-".concat(r),""))}));var r=o()(".cmp-quiz-v2"),i=function(e,t,n,i){var o=r.find(e+" "+t+" .guideFieldWidget");o.find(".global-link").remove(),o.append('<div class="global-link cmp-global-link-selection">\n <ul>\n <li>\n <a href="javascript:void(0);" tabindex="-1" >\n <span class="material-symbols-rounded notranslate quiz_correctChecked" translate="no" aria-hidden="true">check_circle</span>
776\n <span class="material-symbols-rounded notranslate quiz_wrongCheck" translate="no" aria-hidden="true">cancel</span>\n </a>\n </li>\n </ul>\n </div>'),o.addClass(n).find('input[type="'+i+'"]').attr("tabindex","-1")};i(".guideRadioButtonGroupItems",".guideRadioButtonItem","quizv2-radio","radio"),i(".guideCheckBoxGroupItems",".guideCheckBoxItem","quizv2-check","checkbox"),o()(document).on("click",".cmp-quiz-v2 .guideCheckBoxItem, .cmp-quiz-v2 .guideRadioButtonItem",(function(e){if(!window.internalQuizClick&&!o()(e.target).closest("input, label, .guideWidgetLabel, .global-link").length){var t=o()(this).find('input[type="checkbox"], input[type="radio"]');t.length&&t[0].click()}}));var a=o()(".cmp-quiz-v2 #guideContainer-rootPanel-toolbar-nextitemnav___widget"),s=o()(".cmp-quiz-v2 #guideContainer-rootPanel-toolbar-nextitemnav___widget").find(".iconButton-label").text(),l=o()('<ul><li><a href="javascript:void()">'.concat(s,"</a></li></ul>")),c=o()(".cmp-quiz-v2 #guideContainer-rootPanel-toolbar-previtemnav___widget"),d=o()(".cmp-quiz-v2 #guideContainer-rootPanel-toolbar-previtemnav___widget").find(".iconButton-label").text(),u=o()('<ul><li><a href="javascript:void()">'.concat(d,"</a></li></ul>")),h=o()(".cmp-quiz-v2 .check-answer-button button"),p=o()(".cmp-quiz-v2 .check-answer-button button").find(".iconButton-label").text(),f=o()('<ul><li><a href="javascript:void()">'.concat(p,"</a></li></ul>"));a.html(l),c.html(u),h.html(f),a.find("a").attr("tabindex","-1"),c.find("a").attr("tabindex","-1"),h.find("a").attr("tabindex","-1"),o()(".quiz-result-toggle, .radioImage").on("mousedown",(function(e){e.preventDefault()})),o()(".radioImage").on("focus",(function(){o()(this).addClass("radioFocused")})),o()(".radioImage").on("blur",(function(){o()(this).removeClass("radioFocused")}))}));var ue=function(){function e(e,t,n){if(e&&t&&n){var r=new Date;r.setTime(r.getTime()+60*n*1e3);var i="expires="+r.toUTCString();document.cookie=e+"="+encodeURIComponent(t.toString())+";"+i+";path=/"}}o()(window).on("resize",(function(){!function(){var e=o()(window).width(),t=o()(".cmp-searchfilter #search-filters-list");if(e<=1024.1&&t.length>0){var n=t.find("ul.filters").width();o()(".cmp-searchfilter #search-filters-list").length>0&&n>e?(o()(".cmp-searchfilter #search-filters-list").addClass("gradient-overlay-after"),t.on("scroll",(function(){var e=t.scrollLeft(),n=t[0].scrollWidth,r=t.width();o()(".cmp-searchfilter #search-filters-list").addClass("gradient-overlay-after"),e+r>=n-2&&o()(".cmp-searchfilter #search-filters-list").removeClass("gradient-overlay-after")}))):o()(".cmp-searchfilter #search-filters-list").removeClass("gradient-overlay-after")}else t.length>0&&o()(".cmp-searchfilter #search-filters-list").removeClass("gradient-overlay-after")}()}));var t=(f=new URLSearchParams(window.location.search)).get("searchTerm"),n=f.get("searchTerm"),r="ja"===o()("html").attr("lang")?"searchItemsJA":"searchItems";if(o()(".cmp-result-container").length>0&&t&&t.trim().length>0){var i=function e(t,i,a){var s=new URLSearchParams(window.location.search).get("searchTerm").trim();o()("input#searchInputText").val(s);var l=encodeURIComponent(s);o()(".cmp-result-container input#searchInputText").siblings(".global-link").removeClass("cmp-disabled-link"),o()(".cmp-result-container input#searchInputText").siblings(".global-link").removeAttr("style");var c=o()(".cmp-result-container").data("search-path"),d=parseInt(o()(".cmp-result-container").data("display-results")),u="true"===o()('input[name="boostSort"]').val();"all"===i&&(i=""),o.a.ajax({url:"/bin/sitewide/search?searchTerm="+l+"&searchPath="+c+"&offset="+t+"&limit="+d+"&searchFilter="+(i||"")+"&boostSort="+u,type:"GET",dataType:"json",async:!0,contentType:"application/json; charset=utf-8",success:function(i){var s=i;if(null!=s&&s.totalResults&&0!=s.totalResults){var l,c=parseInt(o()(".cmp-result-container").data("display-results"));o()(".cmp-searchfilter").find(".filters li").first().attr("data-filter-item")&&o()(".cmp-searchfilter").find(".filters li").first().attr("data-filter-item").toLowerCase();if(v(n,s.totalResults),l=function(e,t,n){var r;r=e;var i="<div>",a="";a=o()("input[name=breadcrumbHomeLabel]")&&o()("input[name=breadcrumbHomeLabel]").val();var s,l,c;s=o()("input[name=hideJobcode]")&&o()("input[name=hideJobcode]").val(),l=o()("input[name=enableBtnSet]")&&o()("input[name=enableBtnSet]").val(),c=o()("input[name=hideImage]")&&o()("input[name=hideImage]").val();for(var d=0;d<e.length;d++){var u;if(null!=r[d]){u=r[d].cardTitle&&r[d].cardTitle.length>0?r[d].cardTitle&&r[d].cardTitle:r[d].pageTitle&&r[d].pageTitle;var h=r[d].breadcrumb,p="";if(h&&h.length>0)for(var f=0;f<h.length;f++)0==f&&h[f]&&a&&h[f].toLowerCase()!==a.toLowerCase()&&(p+="<p>".concat(a,'</p><span class="material-symbols-rounded notranslate" translate="no" aria-hidden="true">chevron_right</span>')),p+="<p>".concat(h[f],'</p><span class="material-symbols-rounded notranslate" translate="no" aria-hidden="true">chevron_right</span>');var m="";if(r[d].secondaryTags.length>1)for(var g=0;g<=r[d].secondaryTags.length-1;g++)0===g&&r[d].pageTitleContextTag&&r[d].pageTitleContextTag.length>
7760&&"NA"!=r[d].pageTitleContextTag?m+='<span class="vertical-line">|</span> <p>'.concat(r[d].secondaryTags[g],"</p> "):g===r[d].secondaryTags.length-1?m+="<p>".concat(r[d].secondaryTags[g],"</p> "):m+="<p>".concat(r[d].secondaryTags[g],'</p> <span class="vertical-line">|</span> ');else 0==r[d].secondaryTags.length?m+="":r[d].pageTitleContextTag&&r[d].pageTitleContextTag.length>0&&"NA"!=r[d].pageTitleContextTag?m+='<span class="vertical-line">|</span> <p>'.concat(r[d].secondaryTags,"</p>"):m+="<p>".concat(r[d].secondaryTags,"</p>");var v="",y="";r[d].jobCode&&"NA"!=r[d].jobCode&&s&&"false"===s&&(y=o()(r[d].jobCode)&&o()(r[d].jobCode).length>0?o()(r[d].jobCode)[0].innerText:r[d].jobCode,v+='<div class="text cmp-job-code date-code"><div class="cmp-text"> <p>'.concat(y,"</p> </div> </div>")),i+=l&&"true"===l?'<div class="search-card">':'<a href="'.concat(r[d].pagePath,'" class="search-card">'),i+='<div class="container cmp-resultspage-card">\n <div class="cmp-container">'+"".concat(r[d].imageThumbnail&&"false"===c?'<div class="wrapper1">\n <div class="cmp-image">\n <img src="'.concat(r[d].imageThumbnail,'" loading="lazy" class="cmp-image__image" itemprop="contentUrl" width="572" height="322" alt="img">\n </div>\n </div>'):"")+'<div class="wrapper2">'+"".concat(v)+"".concat(r[d].pageTitleContextTag||m?'<div class="innerwrapper1">'+"".concat(r[d].pageTitleContextTag&&r[d].pageTitleContextTag.length>0&&"NA"!=r[d].pageTitleContextTag?'<div class="text card-title active"><div class="cmp-text"><p>'.concat(r[d].pageTitleContextTag,"</p></div></div>"):"")+"".concat(m?'<div class="text cmp-video-text"><div class="cmp-text"><div class="filter-tags">'.concat(m,"</div></div></div>"):"")+"</div>":"")+'<div class="innerwrapper2">'+'<div class="text title">\n <div class="cmp-text">\n <p>'.concat(u,"</p> \n </div>\n </div>")+'<div class="text sub-title"> <div class="cmp-text"> '.concat(p," </div> </div>")+"".concat(r[d].description?'<div class="text description">\n <div class="cmp-text">\n <p>'.concat(r[d].description,"</p> \n </div>\n </div>"):"")+"</div>"}if(l&&"true"===l)i+='<div class="icons-container cmp-btnset-icons">',i+=o()(".icons-container").html(),i+="</div>\n </div> \n </div> \n </div>";else i+="</div> \n </div> \n </div>";i+=l&&"true"===l?"</div>":"</a>"}return i+="</div>",o()(".results-found-text").find("span").text(t),o()(".cmp-loading-gif").addClass("hide"),i}(s.searchResults,s.totalResults),0===s.totalResults&&o()(".cmp-searchfilter").hide(),s.filterCount&&s.filterCount.length>0)for(var d=0;d<s.filterCount.length;d++){var h=s.filterCount[d];for(var p in h)Object.hasOwn(h,p)&&"0"==="".concat(h[p])&&"All"!="".concat(p)&&o()("[data-filter-item='"+"".concat(p,"']")).hide()}o()(".search-results-container").html(l);var f=o()("input[name=enableBtnSet]")&&o()("input[name=enableBtnSet]").val();if(f&&"true"===f)for(var m=0;m<s.searchResults.length;m++)o()(".search-results-container .search-card").each((function(e,t){var n=s.searchResults[e].pagePath;o()(t).find("a.arrow").attr("href",n)}));var g=o()("input[name=enableDownloadIcon]")&&o()("input[name=enableDownloadIcon]").val();if(g&&"true"===g)for(var y=0;y<s.searchResults.length;y++)o()(".search-results-container .search-card").each((function(e,t){var n=s.searchResults[e].downloadPath;o()(t).find("a.download").attr("href",n)}));var b=function(e,t,n){var r="",i=t/c;if(t/c%1!=0&&(i=Math.floor(t/c)+1),i<=7)for(var o=1;o<=i;o++)r+='<li class="page-item" data-pgno='.concat(o,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(o,"</span></a> </li>");else if(1===n){for(var a=1;a<=5;a++)r+='<li class="page-item" data-pgno='.concat(a,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(a,"</span></a> </li>");r+='<span class="separator">...</span>',r+='<li class="page-item" data-pgno='.concat(i,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(i,"</span></a> </li>")}else if(n===i){r+='<li class="page-item" data-pgno=1> <a class="page-link" href="#" ><span class="page-link-text">1</span></a> </li>',r+='<span class="separator">...</span>';for(var s=i-4;s<=i;s++)r+='<li class="page-item" data-pgno='.concat(s,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(s,"</span></a> </li>")}else n+1===i?(r+='<li class="page-item" data-pgno=1> <a class="page-link" href="#" ><span class="page-link-text">1</span></a> </li>',r+='<span class="separator">...</span>',r+='<li class="page-item" data-pgno='.concat(n-3,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n-3,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n-2,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n-2,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n-1,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n-1,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n+1,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n+1,"</span></a> </li>")):n+2===i?(r+='<li class="page-item" data-pgno=1> <a class="page-link" href="#" ><span class="page-link-text">1</span></a> </li>',r+='<span class="separator">...</span>',r+='<li class="page-item" data-pgno='.concat(n-2,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n-2,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n-1,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n-1,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n+1,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n+1,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n+2,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n+2,"</span></a> </li>")):n-1==1?(r+='<li class="page-item" data-pgno=1> <a class="page-link" href="#" ><span class="page-link-text">1</span></a> </li>',r+='<li class="page-item" data-pgno='.concat(n,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n+1,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n+1,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n+2,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n+2,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n+3,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n+3,"</span></a> </li>"),r+='<span class="separator">...</span>',r+='<li class="page-item" data-pgno='.concat(i,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(i,"</span></a> </li>")):n-2==1?(r+='<li class="page-item" data-pgno=1> <a class="page-link" href="#" ><span class="page-link-text">1</span></a> </li>',r+='<li class="page-item" data-pgno='.concat(n-1,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n-1,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n+1,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n+1,"</span></a> </li>"),r+='<li class="page-item" data-pgno='.concat(n+2,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n+2,"</span></a> </li>"),r+='<span class="separator">...</span>',r+='<li class="page-item" data-pgno='.concat(i,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(i,"</span></a> </li>")):(1!=n&&(r+='<li class="page-item" data-pgno=1> <a class="page-link" href="#" ><span class="page-link-text">1</span></a> </li>
776',n-2!=1&&n-1!=1&&(r+='<span class="separator">...</span>')),n-1>1&&(r+='<li class="page-item" data-pgno='.concat(n-1,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n-1,"</span></a> </li>")),r+='<li class="page-item" data-pgno='.concat(n,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n,"</span></a> </li>"),n+1<i&&(r+='<li class="page-item" data-pgno='.concat(n+1,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(n+1,"</span></a> </li>")),n!=i&&(n+2!=i&&n+1!=i&&(r+='<span class="separator">...</span>'),r+='<li class="page-item" data-pgno='.concat(i,'> <a class="page-link" href="#" ><span class="page-link-text">').concat(i,"</span></a> </li>")));return r}(s.searchResults,s.totalResults,a);o()(".page-numbers").html(b),o()(".page-numbers").find(".page-item[data-pgno="+a+"]").addClass("active"),s.searchResults,s.totalResults,o()(".page-link").each((function(){o()(this).on("click",(function(t){t.preventDefault(),o()(".cmp-search__form .cmp-search__field a.close-search").trigger("click"),o()(".cmp-loading-gif").removeClass("hide"),o()(".search-results-container").html(""),o()(".page-numbers").html(""),o()(window).scrollTop(0);var n=o()(".filteritem.active").attr("data-filter-item")&&o()(".filteritem.active").attr("data-filter-item").toLowerCase(),r=parseInt(o()(".cmp-result-container").data("display-results")),i=parseInt(o()(this).parent(".page-item").data("pgno"));o()(".page-item").removeClass("active"),e((i-1)*r,n,i)}))})),function(e,t){e<=t?o()(".pagination-nav").css("display","none"):o()(".pagination-nav").css("display","flex")}(s.totalResults,c),s.totalResults,o()(".prev-link").each((function(){o()(this).off("click").on("click",(function(t){if(t.preventDefault(),o()(this).hasClass("disabled"))return!1;o()(".cmp-search__form .cmp-search__field a.close-search").trigger("click"),o()(".cmp-loading-gif").removeClass("hide");var n=o()(".filteritem.active").attr("data-filter-item")&&o()(".filteritem.active").attr("data-filter-item").toLowerCase(),r=parseInt(o()(".page-item.active").data("pgno")),i=parseInt(o()(".cmp-result-container").data("display-results")),a=r-1;o()(".search-results-container").html(""),o()(window).scrollTop(0),e((a-1)*i,n,a)}))})),o()(".next-link").each((function(){o()(this).off("click").on("click",(function(t){if(t.preventDefault(),o()(this).hasClass("disabled"))return!1;o()(".cmp-search__form .cmp-search__field a.close-search").trigger("click"),o()(".cmp-loading-gif").removeClass("hide");var n=o()(".filteritem.active").attr("data-filter-item")&&o()(".filteritem.active").attr("data-filter-item").toLowerCase(),r=o()(".page-item.active").data("pgno"),i=parseInt(o()(".cmp-result-container").data("display-results")),a=r+1;o()(".search-results-container").html(""),o()(window).scrollTop(0),e((a-1)*i,n,a)}))}));var _=s.totalResults/c;s.totalResults/c%1!=0&&(_=Math.floor(s.totalResults/c)+1),a>1?o()(".prev-link").removeClass("disabled"):o()(".prev-link").addClass("disabled");var w=parseInt(_);a==w?o()(".next-link").addClass("disabled"):o()(".next-link").removeClass("disabled"),o()(".cmp-resultspage-card .innerwrapper2 .description p").each((function(){var e=o()(this),t=e.html();" "!==t&&0!==t.length||e.remove()})),o()(".cmp-resultspage-card .innerwrapper2 .description br").each((function(){o()(this).remove()}));var x=o()(window).width(),C=o()(".cmp-searchfilter #search-filters-list");if(x<=1024.1&&C.length>0){var S=C.find("ul.filters").width();o()(".cmp-searchfilter #search-filters-list").length>0&&S>x?o()(".cmp-searchfilter #search-filters-list").addClass("gradient-overlay-after"):o()(".cmp-searchfilter #search-filters-list").removeClass("gradient-overlay-after")}else C.length>0&&o()(".cmp-searchfilter #search-filters-list").removeClass("gradient-overlay-after");o()(".filteritem").each((function(){o()(this).off("click").on("click",(function(){o()(".cmp-search__form .cmp-search__field a.close-search").trigger("click"),o()(".cmp-loading-gif").removeClass("hide"),o()(".search-results-container").html(""),o()(".page-numbers").html(""),o()(this).addClass("active"),o()(this).siblings(".filteritem").removeClass("active");var t=parseInt(o()(".cmp-result-container").data("display-results")),n=o()(this).attr("data-filter-item")&&o()(this).attr("data-filter-item").toLowerCase();o()(".page-item").removeClass("active"),e(0*t,n,1)}))}))}else{var E=new URLSearchParams(window.location.search),k=o()(".cmp-result-container").data("search-path"),T=E.get("searchTerm").trim();o()(".wrong-keyword").text(" "+T);var O=T.trim(),$=encodeURIComponent(O);o.a.ajax({url:"/bin/sitewide/spellchecker?spellcheckerSearchTerm="+$+"&searchPath="+k,type:"GET",dataType:"json",async:!0,contentType:"application/json; charset=utf-8",success:function(e){if(o()(".noresult-message, .cmp-auto-correct-info").css("display","block"),o()(".results-found-text,.cmp-searchfilter, .pagination-nav, #noResultContainer").css("display","none"),o()(".cmp-result-container").addClass("no-reults"),o()(".suggested-keyword span").text(""),e&&e.length>0)for(var t=0;t<e.length;t++){var n="",i=e[t].replace(/ /g,"%20");n=0!=t?"<span>, </span><a href=search-results?searchTerm="+i+">
776\n <span>"+e[t]+"</span>\n </a>":"<a href=search-results?searchTerm="+i+">\n <span>"+e[t]+"</span>\n </a>",o()(".suggested-keyword > p > span").append(n),o()(".suggested-keyword a").on("click",(function(e){var t,n="",i=[];if(0!=(n=o()(e.target).find("span").length>0?o()(e.target).find("span").text():o()(e.target).text()).trim().length){null!==localStorage.getItem(r)&&(i=JSON.parse(localStorage.getItem(r))),i.push(n);var a=(t=i).filter((function(e,n){return t.indexOf(e)===n}));a.length>=7&&a.shift();var s=JSON.stringify(a);localStorage.setItem(r,s)}}))}else o()(".results-found-text, .cmp-searchfilter, .pagination-nav, .noresult-message, #noResultContainer").css("display","none"),o()(".noresult-message-container, .cmp-auto-correct-info").css("display","block"),o()(".cmp-result-container").addClass("no-reults");o()(".cmp-loading-gif").addClass("hide")},error:function(){o()(".error-message").css("display","block"),o()(".results-found-text,.cmp-searchfilter, .pagination-nav,.suggestion-text").css("display","none"),o()(".cmp-result-container").addClass("no-reults"),o()(".cmp-loading-gif").addClass("hide")}})}null!=s&&0===s.totalResults&&v(n,s.totalResults),o()(".results-found-text").css("display","block"),o()(".suggestion-text").css("display","none");var P=(E=new URLSearchParams(window.location.search)).get("searchTerm").trim(),I=encodeURIComponent(P),L=window.location.origin+window.location.pathname+"?searchTerm="+I+"&offset="+t+"&pageNo="+a+"&boostSort="+u,A={url:L,innerhtml:document.body.innerHTML};window.history.pushState(A,L,L),window.onpopstate=function(e){var t=window.history.state;t&&(window.location=t.url)}},error:function(){o()(".error-message,.suggestion-text").css("display","block"),o()(".results-found-text,.cmp-searchfilter, .pagination-nav").css("display","none"),o()(".cmp-result-container").addClass("no-reults"),o()(".cmp-loading-gif").addClass("hide")}})},a=[],s="";o()(".cmp-loading-gif").removeClass("hide");var l;(l=o()(".global-nav.cmp-primary-nav .logo-images a")&&o()(".global-nav.cmp-primary-nav .logo-images a").attr("href"))&&l.length>0&&a.push(l),o()(".global-nav.cmp-primary-nav.cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu").length>0?o()(".global-nav.cmp-primary-nav.cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu").find(".primary-nav__megamenu ul.megamenu > li > .cmp-nav__menu--icon > a").each((function(e,t){s=o()(".global-nav.cmp-primary-nav.cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu").find(".primary-nav__megamenu ul.megamenu > li > .cmp-nav__menu--icon > a").eq(e).attr("href"),a.push(s)})):o()(".global-nav.cmp-primary-nav").find(".primary-nav__middlenav .menu:not(.cmp-right-menu) > li:not(.-more) > .cmp-nav__menu--icon > a").each((function(e,t){s=o()(".global-nav.cmp-primary-nav").find(".primary-nav__middlenav .menu:not(.cmp-right-menu) > li:not(.-more) > .cmp-nav__menu--icon > a").eq(e).attr("href"),a.push(s)})),e("navItem",JSON.stringify(a),60);var c=o()(".cmp-result-container").data("search-filterlist");e("filterList",JSON.stringify(c),1440);var d=o()("input[name=cookiesVideoTitle]").val(),u=o()("input[name=cookiesVideoDesc]").val(),h=o()("input[name=cookiesVideoThumbnail]").val(),p=o()("input[name=cookiesIgnorePagesList]").val();e("cookiesVideoTitle",d,1440),e("cookiesVideoDesc",u,1440),e("cookiesVideoThumbnail",h,1440),e("cookiesIgnorePagesList",p,1440);var f,m=(f=new URLSearchParams(window.location.search)).get("offset")&&f.get("offset").trim(),g=f.get("pageNo")&&f.get("pageNo").trim();m&&parseInt(m)>0&&g&&parseInt(g)>1?i(parseInt(m),null,parseInt(g)):i(0,null,1)}else o()(".cmp-result-container").length>0&&o()(".cmp-loading-gif").addClass("hide");var v=function(e,t){window.adobeDataLayer.push({event:t?"internalsearch":"internalNullSearch",attributes:{searchKeyword:e||"",searchResultNumber:t}})}},he=function(){document.addEventListener("DOMContentLoaded",(function(){ue()}))},pe=["forceXHR"],fe=["headers","maxRanges","allowFullFile"],me=["headers","maxRanges","allowFullFile"],ge=["headers","credentials","maxRanges","allowFullFile"];function ve(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 4,856 bytes, line 776
776t%2?ye(Object(n),!0).forEach((function(t){Oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _e(e,t){return xe(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||ke(e,t)||we()}function we(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xe(e){if(Array.isArray(e))return e}function Ce(e){return function(e){if(Array.isArray(e))return Te(e)}(e)||Se(e)||ke(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ee(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ke(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ke(e,t){if(e){if("string"==typeof e)return Te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Te(e,t):void 0}}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oe(e,t,n){return(t=Le(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$e=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new $(r||[]);return i(a,"_invoke",{value:E(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",p="executing",f="completed",m={};function g(){}function v(){}function y(){}var b={};c(b,a,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(P([])));w&&w!==n&&r.call(w,a)&&(b=w);var x=y.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==qe(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=h;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===f){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var c=u(t,n,r);if("normal"===c.type){if(i=r.done?f:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=f,r.method="throw",r.arg=c.arg)}}}function k(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&
vendor: 7,710 bytes, line 776
776(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=u(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function $(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(qe(t)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},C(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new S(d(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(x),c(x,l,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,$.prototype={constructor:$,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function Pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Le(r.key),r)}}function Ie(e,t,n){return t&&Pe(e.prototype,t),n&&Pe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Le(e){var t=function(e,t){if("object"!==qe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qe(t)?t:String(t)}function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ue(e,t)}function je(e){var t=Be();return function(){var n,r=ze(e);if(t){var i=ze(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Re(this,n)}}function Re(e,t){if(t&&("object"===qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return De(e)}function De(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fe(e){var t="function"==typeof Map?new Map:void 0;return(Fe=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Ne(e,arguments,ze(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ue(n,e)})(e)}function Ne(e,t,n){return(Ne=Be()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Ue(i,n.prototype),i}).apply(null,arguments)}function Be(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Ue(e,t){return(Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ze(e){return(ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ge(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Ve(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ge(o,r,i,a,s,"next",e)}function s(e){Ge(o,r,i,a,s,"throw",e)}a(void 0)}))}}function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var He=function(e){function t(t){for(var n,i,o=t[0],a=t[1],s=0,c=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&c.push(r[i][0]),r[
776i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(l&&l(t);c.length;)c.shift()()}var n={},r={1:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+""+({}[e]||e)+".js"}(e);var l=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(c);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",l.name="ChunkLoadError",l.type=i,l.request=o,n[1](l)}r[e]=void 0}};var c=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==qe(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="dist/",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonpPMA=window.webpackJsonpPMA||[],a=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var l=a;return i(i.s=289)}([function(e,t,n){n.r(t),n.d(t,"boundingExtent",(function(){return o})),n.d(t,"buffer",(function(){return a})),n.d(t,"clone",(function(){return s})),n.d(t,"closestSquaredDistanceXY",(function(){return l})),n.d(t,"containsCoordinate",(function(){return c})),n.d(t,"containsExtent",(function(){return d})),n.d(t,"containsXY",(function(){return u})),n.d(t,"coordinateRelationship",(function(){return h})),n.d(t,"createEmpty",(function(){return p})),n.d(t,"createOrUpdate",(function(){return f})),n.d(t,"createOrUpdateEmpty",(function(){return m})),n.d(t,"createOrUpdateFromCoordinate",(function(){return g})),n.d(t,"createOrUpdateFromCoordinates",(function(){return v})),n.d(t,"createOrUpdateFromFlatCoordinates",(function(){return y})),n.d(t,"createOrUpdateFromRings",(function(){return b})),n.d(t,"equals",(function(){return _})),n.d(t,"approximatelyEquals",(function(){return w})),n.d(t,"extend",(function(){return x})),n.d(t,"extendCoordinate",(function(){return C})),n.d(t,"extendCoordinates",(function(){return S})),n.d(t,"extendFlatCoordinates",(function(){return E})),n.d(t,"extendRings",(function(){return k})),n.d(t,"extendXY",(function(){return T})),n.d(t,"forEachCorner",(function(){return O})),n.d(t,"getArea",(function(){return $})),n.d(t,"getBottomLeft",(function(){return P})),n.d(t,"getBottomRight",(function(){return I})),n.d(t,"getCenter",(function(){return L})),n.d(t,"getCorner",(function(){return A})),n.d(t,"getEnlargedArea",(function(){return M})),n.d(t,"getForViewAndSize",(function(){return j})),n.d(t,"getRotatedViewport",(function(){return R})),n.d(t,"getHeight",(function(){return D})),n.d(t,"getIntersectionArea",(function(){return F})),n.d(t,"getIntersection",(function(){return N})),n.d(t,"getMargin",(function(){return B})),n.d(t,"getSize",(function(){return U})),n.d(t,"getTopLeft",(function(){return z})),n.d(t,"getTopRight",(function(){return G})),n.d(t,"getWidth",(function(){return V})),n.d(t,"intersects",(function(){return q})),n.d(t,"isEmpty",(function(){return H})),n.d(t,"returnOrUpdate",(function(){return W})),n.d(t,"scaleFromCenter",(function(){return Y})),n.d(t,"intersectsSegment",(function(){return X})),n.d(t,"applyTransform",(function(){return K})),n.d(t,"wrapX",(function(){return Z})),n.d(t,"wrapAndSliceX",(function(){return J}));var r=n(77),i=n(15);function o(e){for(var t=[1/0,1/0,-1/0,-1/0],n=0,r=e.length;n<r;++n)C(t,e[n]);return t}function a(e,t,n){return n?(n[0]=e[0]-t,n[1]=e[1]-t,n[2]=e[2]+t,n[3]=e[3]+t,n):[e[0]-t,e[1]-t,e[2]+t,e[3]+t]}function s(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e.slice()}function l(e,t,n){var r,i;return(r=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0)*r+(i=n<e[1]?e[1]-n:e[3]<n?n-e[3]:0)*i}function c(e,t){return u(e,t[0],t[1])}function d(e,t){return e[0]<=t[0]&&t[2]<=e[2]&&e[1]<=t[1]&&t[3]<=e[3]}function u(e,t,n){return e[0]<=t&&t<=e[2]&&e[1]<=n&&n<=e[3]}function h(e,t){var n=e[0],i=e[1],o=e[2],a=e[3],s=t[0],l=t[1],c=r.a.UNKNOWN;return s<n?c|=r.a.LEFT:s>o&&(c|=r.a.RIGHT),l<i?c|=r.a.BELOW:l>a&&(c|=r.a.ABOVE),c===r.a.UNKNOWN&&(c=r.a.INTERSECTING),c}function p(){return[1/0,1/0,-1/0,-1/0]}function f(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]}function m(e){return f(1/0,1/0,-1/0,-1/0,e)}function g(e,t){var n=e[0],r=e[1];return f(n,r,n,r,t)}function v(e,t){return S(m(t),e)}function y(e,t,n,r,i){return E(m(i),e,t,n,r)}function b(e,t){return k(m(t),e)}function _(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function w(e,t,n){return Math.abs(e[0]-t[0])<n&&Math.abs(e[2]-t[2])<n&&Math.abs(e[1]-t[1])<n&&Math.abs(e[3]-t[3])<n}function x(e,t){return t[0]<e[0]&&(e[0]=t[0]),t[2]>e[2]&&(e[2]=t[2]),t[1]<e[1]&&(e[1]=t[1]),t[3]>e[3]&&(e[3]=t[3]),e}function C(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function S(e,t){for(var n=0,r=t.length;n<r;++n)C(e,t[n]);return e}function E(e,t,n,r,i){for(;n<r;n+=i)T(e,t[n],t[n+1]);return e}function k(e,t){for(var n=0,r=t.length;n<r;++n)S(e,t[n]);return e}function T(e,t,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],n)}function O(e,t){var n;return(n=t(P(e)))||(n=t(I(e)))||(n=t(G(e)))?n:(n=t(z(e)))||!1}function $(e){var t=0;return H(e)||(t=V(e)*D(e)),t}function P(e){return[e[0],e[1]]}function I(e){return[e[2],e[1]]}function L(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function A(e,t){var n;return"bottom-left"===t?n=P(e):"bottom-right"===t?n=I(e):"top-left"===t?n=z(e):"top-right"===t?n=G(e):Object(i.a)(!1,13),n}function M(e,t){var n=Math.min(e[0],t[0]),r=Math.min(e[1],t[1]);return(Math.max(e[2],t[2])-n)*(Math.max(e[3],t[3])-r)}function j(e,t,n,r,i){var o=R(e,t,n,r),a=o[0],s=o[1],l=o[2],c=o[3],d=o[4],u=o[5],h=o[6],p=o[7];
776return f(Math.min(a,l,d,h),Math.min(s,c,u,p),Math.max(a,l,d,h),Math.max(s,c,u,p),i)}function R(e,t,n,r){var i=t*r[0]/2,o=t*r[1]/2,a=Math.cos(n),s=Math.sin(n),l=i*a,c=i*s,d=o*a,u=o*s,h=e[0],p=e[1];return[h-l+u,p-c-d,h-l-u,p-c+d,h+l-u,p+c+d,h+l+u,p+c-d,h-l+u,p-c-d]}function D(e){return e[3]-e[1]}function F(e,t){return $(N(e,t))}function N(e,t,n){var r=n||[1/0,1/0,-1/0,-1/0];return q(e,t)?(e[0]>t[0]?r[0]=e[0]:r[0]=t[0],e[1]>t[1]?r[1]=e[1]:r[1]=t[1],e[2]<t[2]?r[2]=e[2]:r[2]=t[2],e[3]<t[3]?r[3]=e[3]:r[3]=t[3]):m(r),r}function B(e){return V(e)+D(e)}function U(e){return[e[2]-e[0],e[3]-e[1]]}function z(e){return[e[0],e[3]]}function G(e){return[e[2],e[3]]}function V(e){return e[2]-e[0]}function q(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function H(e){return e[2]<e[0]||e[3]<e[1]}function W(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}function Y(e,t){var n=(e[2]-e[0])/2*(t-1),r=(e[3]-e[1])/2*(t-1);e[0]-=n,e[2]+=n,e[1]-=r,e[3]+=r}function X(e,t,n){var i=!1,o=h(e,t),a=h(e,n);if(o===r.a.INTERSECTING||a===r.a.INTERSECTING)i=!0;else{var s=e[0],l=e[1],c=e[2],d=e[3],u=t[0],p=t[1],f=n[0],m=n[1],g=(m-p)/(f-u),v=void 0,y=void 0;a&r.a.ABOVE&&!(o&r.a.ABOVE)&&(i=(v=f-(m-d)/g)>=s&&v<=c),i||!(a&r.a.RIGHT)||o&r.a.RIGHT||(i=(y=m-(f-c)*g)>=l&&y<=d),i||!(a&r.a.BELOW)||o&r.a.BELOW||(i=(v=f-(m-l)/g)>=s&&v<=c),i||!(a&r.a.LEFT)||o&r.a.LEFT||(i=(y=m-(f-s)*g)>=l&&y<=d)}return i}function K(e,t,n,r){var i=[];if(r>1)for(var o=e[2]-e[0],a=e[3]-e[1],s=0;s<r;++s)i.push(e[0]+o*s/r,e[1],e[2],e[1]+a*s/r,e[2]-o*s/r,e[3],e[0],e[3]-a*s/r);else i=[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]];t(i,i,2);for(var l=[],c=[],d=(s=0,i.length);s<d;s+=2)l.push(i[s]),c.push(i[s+1]);return function(e,t,n){return f(Math.min.apply(null,e),Math.min.apply(null,t),Math.max.apply(null,e),Math.max.apply(null,t),n)}(l,c,n)}function Z(e,t){var n=t.getExtent(),r=L(e);if(t.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){var i=V(n),o=Math.floor((r[0]-n[0])/i)*i;e[0]-=o,e[2]-=o}return e}function J(e,t){if(t.canWrapX()){var n=t.getExtent();if(!isFinite(e[0])||!isFinite(e[2]))return[[n[0],e[1],n[2],e[3]]];Z(e,t);var r=V(n);if(V(e)>r)return[[n[0],e[1],n[2],e[3]]];if(e[0]<n[0])return[[e[0]+r,e[1],n[2],e[3]],[n[0],e[1],e[2],e[3]]];if(e[2]>n[2])return[[e[0],e[1],n[2],e[3]],[n[0],e[1],e[2]-r,e[3]]]}return[e]}},function(e,t,n){n.r(t),n.d(t,"METERS_PER_UNIT",(function(){return o.a})),n.d(t,"Projection",(function(){return i.a})),n.d(t,"disableCoordinateWarning",(function(){return $})),n.d(t,"cloneTransform",(function(){return P})),n.d(t,"identityTransform",(function(){return I})),n.d(t,"addProjection",(function(){return L})),n.d(t,"addProjections",(function(){return A})),n.d(t,"get",(function(){return M})),n.d(t,"getPointResolution",(function(){return j})),n.d(t,"addEquivalentProjections",(function(){return R})),n.d(t,"addEquivalentTransforms",(function(){return D})),n.d(t,"clearAllProjections",(function(){return F})),n.d(t,"createProjection",(function(){return N})),n.d(t,"createTransformFromCoordinateTransform",(function(){return B})),n.d(t,"addCoordinateTransforms",(function(){return U})),n.d(t,"fromLonLat",(function(){return z})),n.d(t,"toLonLat",(function(){return G})),n.d(t,"equivalent",(function(){return V})),n.d(t,"getTransformFromProjections",(function(){return q})),n.d(t,"getTransform",(function(){return H})),n.d(t,"transform",(function(){return W})),n.d(t,"transformExtent",(function(){return Y})),n.d(t,"transformWithProjections",(function(){return X})),n.d(t,"setUserProjection",(function(){return Z})),n.d(t,"clearUserProjection",(function(){return J})),n.d(t,"getUserProjection",(function(){return Q})),n.d(t,"useGeographic",(function(){return ee})),n.d(t,"toUserCoordinate",(function(){return te})),n.d(t,"fromUserCoordinate",(function(){return ne})),n.d(t,"toUserExtent",(function(){return re})),n.d(t,"fromUserExtent",(function(){return ie})),n.d(t,"toUserResolution",(function(){return oe})),n.d(t,"fromUserResolution",(function(){return ae})),n.d(t,"createSafeCoordinateTransform",(function(){return se})),n.d(t,"addCommon",(function(){return le}));var r,i=n(128),o=n(46),a=n(6),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=6378137*Math.PI,c=[-l,-l,l,l],d=[-180,-85,180,85],u=6378137*Math.log(Math.tan(Math.PI/2)),h=function(e){function t(t){return e.call(this,{code:t,units:o.b.METERS,extent:c,global:!0,worldExtent:d,getPointResolution:function(e,t){return e/Object(a.c)(t[1]/6378137)}})||this}return s(t,e),t}(i.a),p=[new h("EPSG:3857"),new h("EPSG:102100"),new h("EPSG:102113"),new h("EPSG:900913"),new h("http://www.opengis.net/def/crs/EPSG/0/3857"),new h("http://www.opengis.net/gml/srs/epsg.xml#3857")];function f(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=0;a<r;a+=i){o[a]=l*e[a]/180;var s=6378137*Math.log(Math.tan(Math.PI*(+e[a+1]+90)/360));s>u?s=u:s<-u&&(s=-u),o[a+1]=s}return o}function m(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=0;a<r;a+=i)o[a]=180*e[a]/l,o[a+1]=360*Math.atan(Math.exp(e[a+1]/6378137))/Math.PI-90;return o}var g,v=(g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=[-180,-90,180,90],b=6378137*Math.PI/180,_=function(e){function t(t,n){return e.call(this,{code:t,units:o.b.DEGREES,extent:y,axisOrientation:n,global:!0,metersPerUnit:b,worldExtent:y})||this}return v(t,e),t}(i.a),w=[new _("CRS:84"),new _("EPSG:4326","neu"),new _("urn:ogc:def:crs:OGC:1.3:CRS84"),new _("urn:ogc:def:crs:OGC:2:84"),new _("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new _("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new _("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],x={};n(5);var C={};function S(e,t,n){var r=e.getCode(),i=t.getCode();r in C||(C[r]={}),C[r][i]=n}var E=n(0),k=n(27),T=n(178),O=!0;function $(e){O=!(void 0===e||e)}function P(e,t,n){var r;if(void 0!==t){for(var i=0,o=e.length;i<o;++i)t[i]=e[i];r=t}else r=e.slice();return r}function I(e,t,n){if(void 0!==t&&e!==t){for(var r=0,i=e.length;r<i;++r)t[r]=e[r];e=t}return e}function L(e){!function(e,t){x[e]=t}(e.getCode(),e),S(e,e,P)}function A(e){e.forEach(L)}function M(e){return"string"==typeof e?x[t=e]||x[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:e||null;var t}function j(e,t,n,r){var i,a=(e=M(e)).getPointResolutionFunc();
776if(a)i=a(t,n),r&&r!==e.getUnits()&&(l=e.getMetersPerUnit())&&(i=i*l/o.a[r]);else{var s=e.getUnits();if(s==o.b.DEGREES&&!r||r==o.b.DEGREES)i=t;else{var l,c=q(e,M("EPSG:4326"));if(c===I&&s!==o.b.DEGREES)i=t*e.getMetersPerUnit();else{var d=[n[0]-t/2,n[1],n[0]+t/2,n[1],n[0],n[1]-t/2,n[0],n[1]+t/2];d=c(d,d,2),i=(Object(T.a)(d.slice(0,2),d.slice(2,4))+Object(T.a)(d.slice(4,6),d.slice(6,8)))/2}void 0!==(l=r?o.a[r]:e.getMetersPerUnit())&&(i/=l)}}return i}function R(e){A(e),e.forEach((function(t){e.forEach((function(e){t!==e&&S(t,e,P)}))}))}function D(e,t,n,r){e.forEach((function(e){t.forEach((function(t){S(e,t,n),S(t,e,r)}))}))}function F(){x={},C={}}function N(e,t){return e?"string"==typeof e?M(e):e:M(t)}function B(e){return function(t,n,r){for(var i=t.length,o=void 0!==r?r:2,a=void 0!==n?n:new Array(i),s=0;s<i;s+=o)for(var l=e(t.slice(s,s+o)),c=l.length,d=0,u=o;d<u;++d)a[s+d]=d>=c?t[s+d]:l[d];return a}}function U(e,t,n,r){var i=M(e),o=M(t);S(i,o,B(n)),S(o,i,B(r))}function z(e,t){return $(),W(e,"EPSG:4326",void 0!==t?t:"EPSG:3857")}function G(e,t){var n=W(e,void 0!==t?t:"EPSG:3857","EPSG:4326"),r=n[0];return(r<-180||r>180)&&(n[0]=Object(a.g)(r+180,360)-180),n}function V(e,t){if(e===t)return!0;var n=e.getUnits()===t.getUnits();return(e.getCode()===t.getCode()||q(e,t)===P)&&n}function q(e,t){var n=function(e,t){var n;return e in C&&t in C[e]&&(n=C[e][t]),n}(e.getCode(),t.getCode());return n||(n=I),n}function H(e,t){return q(M(e),M(t))}function W(e,t,n){return H(t,n)(e,void 0,e.length)}function Y(e,t,n,r){var i=H(t,n);return Object(E.applyTransform)(e,i,void 0,r)}function X(e,t,n){return q(t,n)(e)}var K=null;function Z(e){K=M(e)}function J(){K=null}function Q(){return K}function ee(){Z("EPSG:4326")}function te(e,t){return K?W(e,t,K):e}function ne(e,t){return K?W(e,K,t):(O&&!Object(k.f)(e,[0,0])&&e[0]>=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(O=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),e)}function re(e,t){return K?Y(e,t,K):e}function ie(e,t){return K?Y(e,K,t):e}function oe(e,t){if(!K)return e;var n=M(t).getUnits(),r=K.getUnits();return n&&r?e*o.a[n]/o.a[r]:e}function ae(e,t){if(!K)return e;var n=M(t).getUnits(),r=K.getUnits();return n&&r?e*o.a[r]/o.a[n]:e}function se(e,t,n){return function(r){var i,o;if(e.canWrapX()){var s=e.getExtent(),l=Object(E.getWidth)(s);r=r.slice(0),(o=Object(k.g)(r,e,l))&&(r[0]=r[0]-o*l),r[0]=Object(a.b)(r[0],s[0],s[2]),r[1]=Object(a.b)(r[1],s[1],s[3]),i=n(r)}else i=n(r);return o&&t.canWrapX()&&(i[0]+=o*Object(E.getWidth)(t.getExtent())),i}}function le(){R(p),R(w),D(w,p,f,m)}le()},function(e,t,n){n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"f",(function(){return g})),n.d(t,"o",(function(){return y})),n.d(t,"n",(function(){return b})),n.d(t,"i",(function(){return _})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return x})),n.d(t,"m",(function(){return C})),n.d(t,"l",(function(){return S})),n.d(t,"k",(function(){return E})),n.d(t,"j",(function(){return k}));var r=n(142),i=n.n(r),o=n(58),a=n.n(o),s=n(7),l=n(158);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={DirectorySelected:"directorySelected",SlideSelected:"slideSelected",ServerSelected:"serverSelected",ServerExpanded:"serverExpanded",DirectoryExpanded:"directoryExpanded",MultiSelectionChanged:"multiSelectionChanged",SlideDeSelected:"slideDeSelected",TreeNodeDoubleClicked:"treeNodeDoubleClicked",SlideInfoError:"SlideInfoError",BeforeSlideLoad:"BeforeSlideLoad",SlideLoaded:"SlideLoaded",AnnotationAdded:"annotationAdded",AnnotationDrawing:"annotationDrawing",AnnotationDrawingFinished:"annotationDrawingFinished",AnnotationDeleted:"annotationDeleted",AnnotationModified:"annotationModified",AnnotationsSaved:"annotationsSaved",AnnotationsSelectionChanged:"annotationsSelectionChanged",AnnotationEditingStarted:"annotationEditingStarted",AnnotationEditingEnded:"annotationEditingEnded",FormSaved:"formSaved",FormEditClick:"formEditClick",SyncChanged:"syncChanged",SearchStarted:"searchStarted",SearchFinished:"searchFinished",SearchFailed:"searchFailed",ValueExpanded:"valueExpanded",Dropped:"dropped",SessionIdLoginFailed:"sessionIdLoginFailed",BeforeDrop:"beforeDrop",OnProgress:"onProgress"},h={Authenticate:"Authenticate",GetFiles:"GetFiles",GetDirectories:"GetDirectories",GetImageInfo:"GetImageInfo",GetImagesInfo:"GetImagesInfo",DeAuthenticate:"DeAuthenticate",GetForms:"GetForms",GetFormDefinitions:"GetFormDefinitions",GetFormSubmissions:"GetFormSubmissions",GetForm:"GetForm",SaveFormDefinition:"SaveFormDefinition",DeleteFormDefinition:"DeleteFormDefinition",SaveFormData:"SaveFormData",GetFormData:"GetFormData",GetAnnotations:"GetAnnotations",AddAnnotation:"AddAnnotation",UpdateAnnotation:"UpdateAnnotation",DeleteAnnotation:"DeleteAnnotation",GetVersionInfo:"GetVersionInfo",QueryFilename:"Filename",SaveAnnotations:"SaveAnnotations",DistinctValues:"DistinctValues",Metadata:"Metadata",GetEvents:"GetEvents",RunScripts:"Run",CreateDirectory:"CreateDirectory",DeleteDirectory:"DeleteDirectory",RenameDirectory:"RenameDirectory",DeleteSlide:"DeleteSlide",Upload:"Upload"},p={Normal:0,OneLevel:1,Recursive:2},f={All:"all",Thumbnail:"thumbnail",Barcode:"barcode"},m="application/x-pma-node",g={_list:{},set:function(e,t){this._list[e]=t},get:function(){return this._list},clear:function(){this._list={}}};function v(e){for(var t=/^\/+|\/+$/g,n=/^\/+/g,r=0,i=e.length;r<i;r++)e[r]=r===i-1?e[r].replace(n,""):e[r].replace(t,"");return e.join("/")}var y=function(e){if(null==e||""===e)return null;var t=JSON.parse(e);return Object.prototype.hasOwnProperty.call(t,"d")?t.d:t},b=function(e){try{var t=e.getData(He.UI.Components.DragDropMimeType);return JSON.parse(t)}catch(e){}try{var n=e.getData("text");return JSON.parse(n)}catch(e){}return null},_=function(e){if(e&&"object"===a()(e)){var t="",n=0;for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n>0&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]),n++);return t}return e},w=function(e,t,n,r,i,o){t=t.toUpperCase();var a=null;(a=n&&n.toLowerCase&&"application/json"===n.toLowerCase()?JSON.stringify(r):_(r))&&"GET"==t&&(e=e+"?"+a,a=null);var s=new XMLHttpRequest;s.open(t,e,!0),"POST"!=t||n?n&&s.setRequestHeader("Content-Type",n):s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s.onreadystatechange=function(){4===s.readyState&&(200===s.status?"function"==typeof i&&i(s):"function"==typeof o&&o(s))},a?s.send(a):s.send()},x=function(e){var t="GET";e.httpMethod&&(t=e.httpMethod),e.apiPath||(e.apiPath="api");var n=!0===e.webapi?"/":"/json/";e.webapi&&"POST"==t&&e.data&&(e.method+="?sessionId="+e.data.sessionID),w(v([e.serverUrl,e.apiPath+n,e.method]),t,e.contentType,e.data,e.success,e.failure)},C=function(e,t,n,r,i,o){if("string"!=typeof r)throw"Caller parameter not supplied";function a(e){if("function"==typeof o)if(e.responseText&&0!==e.responseText.length&&""!==e.responseType)try{var t=y(e.responseText);o(t)}catch(e){o({Message:s.a.translate("Authentication failed")})}else o({Message:s.a.translate("Authentication failed")})}var c;(c={serverUrl:e,method:h.GetVersionInfo},new Promise((function(e,t){var n=d(d({},c),{},{success:e,failure:t});x(n)}))).then((function(o){var s=Object(l.b)(JSON.parse(o.responseText));x({serverUrl:e,method:h.Authenticate,httpMethod:s?"POST":"GET",contentType:s?"application/json":null,data:{username:t,password:n,caller:r},success:function(t){var n=y(t.responseText);n&&!0===n.Success?(g.set(e,n),"function"==typeof i&&i(n.SessionId)):a(t)},failure:a})}),a)},S=function(e,t,n,r,i,o){return v([e,"thumbnail"])+"?sessionID="+encodeURIComponent(t)+"&pathOrUid="+encodeURIComponent(n)+"&orientation="+(r||0)+"&w="+(i||0)+"&h="+(o||0)},E=function(e,t,n,r,i,o,a,s){var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"snapshot",c=arguments.length>9?arguments[9]:void 0;s||(s="jpg"),i=i||150,o=o||150;var d="0";r.channels&&(d=r.channels.join(","));var u="";u=r.channelClipping?r.channelClipping:"0,100";var h="";h=r.channelColor?r.channelColor:"ffffffff";var p="";p=r.gamma?r.gamma:"1";var f=r.timeframe?r.timeframe:0,m=r.layer?r.layer:0,g=r.scale?r.scale:Math.max(i/r.width,o/r.height);(r.width*g<1||r.height<1)&&(g=1/Math.max(r.width,r.height));var y=r.rotation?r.rotation:0;return v([e,"region"])+"?sessionID="+encodeURIComponent(t)+"&pathOrUid="+encodeURIComponent(n)+"&format="+encodeURIComponent(s)+"&x="+Math.floor(r.x)+"&y="+Math.floor(r.y)+"&width="+Math.floor(r.width)+"&height="+Math.floor(r.height)+"&rotation="+y+"&flipHorizontal="+r.flipHorizontally+"&flipVertical="+r.flipVertically+"&timeframe="+f+"&layer="+m+"&channels="+d+"&channelClipping="+u+"&channelColor="+h+"&gamma="+p+"&scale="+g+(r.dpi?"&dpi="+r.dpi:"")+(r.postGamma?"&postGamma="+r.postGamma:"")+(r.brightness?"&brightness="+r.brightness:"")+(r.contrast?"&contrast="+r.contrast:"")+(a?"&drawScaleBar=true":"")+(c?"&downloadInsteadOfDisplay=true&filename="+l:"")},k=function(e,t,n,r){return v([e,"barcode"])+"?sessionID="+encodeURIComponent(t)+"&pathOrUid="+encodeURIComponent(n)+"&rotation="+(r||0)}},function(e,t,n){n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}
776)),n.d(t,"e",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return u})),n.d(t,"i",(function(){return h}));var r={Rectangle:"Rectangle",Arrow:"Arrow",Line:"Line",Icon:"Icon",Point:"Point",MultiPoint:"MultiPoint",Freehand:"Freehand",ClosedFreehand:"ClosedFreehand",CompoundFreehand:"CompoundFreehand",Ellipse:"Ellipse",Circle:"Circle",Polygon:"Polygon",LineString:"LineString"},i={Transform:"Transform",Modify:"Modify",Wand:"Wand",Brush:"Brush",Eraser:"Eraser",Subtract:"Subtract",Addition:"Addition"},o={Pristine:1,Added:2,Modified:3,Deleted:4,NotTracked:5},a={ZoomSlider:"zoomslider",ScaleLine:"scaleline",Overview:"overview",Barcode:"barcode",Magnifier:"magnifier",ColorAdjustments:"coloradjustments",LayerSwitch:"layerswitch",DimensionSelector:"dimensionselector",Filename:"filename",Snapshot:"shapshot",Rotation:"rotation",Attribution:"attribution",Fullscreen:"fullscreen"},s={normal:"Normal",objectives:"Objectives"},l={Default:"default",Classic:"classic",Modern:"modern"},c={N:"n",S:"s",E:"e",W:"w",NE:"ne",NW:"nw",SE:"se",SW:"sw"},d="rgba(255, 255, 255, 0.2)",u={DimensionsChanged:"change:dimension",ViewChanged:"viewchanged",TilesError:"tileserror",SlideLoadError:"SlideLoadError",FilenameClick:"click:filename",AnnotationLayerChanged:"layer:change",MeasurementStop:"measurestop",ViewLoaded:"viewLoaded"},h={Min:"min","1X":"1","2X":"2","5X":"5","10X":"10","20X":"20","40X":"40","1:1":"1:1",Max:"max"}},function(e,t,n){function r(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var i=0;function o(e){return e.ol_uid||(e.ol_uid=String(++i))}var a="6.15.1"},function(e,t,n){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}));var r="function"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n};function i(e){for(var t in e)delete e[t]}var o="function"==typeof Object.values?Object.values:function(e){var t=[];for(var n in e)t.push(e[n]);return t};function a(e){var t;for(t in e)return!1;return!t}},function(e,t,n){function r(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"k",(function(){return a})),n.d(t,"j",(function(){return s})),n.d(t,"i",(function(){return l})),n.d(t,"l",(function(){return c})),n.d(t,"m",(function(){return d})),n.d(t,"g",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"h",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return g}));var i="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2},o="log2"in Math?Math.log2:function(e){return Math.log(e)*Math.LOG2E};function a(e,t,n,r,i,o){var a=i-n,l=o-r;if(0!==a||0!==l){var c=((e-n)*a+(t-r)*l)/(a*a+l*l);c>1?(n=i,r=o):c>0&&(n+=a*c,r+=l*c)}return s(e,t,n,r)}function s(e,t,n,r){var i=n-e,o=r-t;return i*i+o*o}function l(e){for(var t=e.length,n=0;n<t;n++){for(var r=n,i=Math.abs(e[n][n]),o=n+1;o<t;o++){var a=Math.abs(e[o][n]);a>i&&(i=a,r=o)}if(0===i)return null;var s=e[r];e[r]=e[n],e[n]=s;for(var l=n+1;l<t;l++)for(var c=-e[l][n]/e[n][n],d=n;d<t+1;d++)n==d?e[l][d]=0:e[l][d]+=c*e[n][d]}for(var u=new Array(t),h=t-1;h>=0;h--){u[h]=e[h][t]/e[h][h];for(var p=h-1;p>=0;p--)e[p][t]-=e[p][h]*u[h]}return u}function c(e){return 180*e/Math.PI}function d(e){return e*Math.PI/180}function u(e,t){var n=e%t;return n*t<0?n+t:n}function h(e,t,n){return e+n*(t-e)}function p(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}function f(e,t){return Math.round(p(e,t))}function m(e,t){return Math.floor(p(e,t))}function g(e,t){return Math.ceil(p(e,t))}},function(e,t,n){n.d(t,"a",(function(){return s}));var r=n(58),i=n.n(r),o="",a={},s={Labels:a,setCulture:function(e){o=e},interpolate:function(e,t){return e.replace(/{([^{}]*)}/g,(function(e,n){var r=t[n];return"string"==typeof r||"number"==typeof r?r:e}))},translate:function(e,t){return""!==o&&Object.prototype.hasOwnProperty.call(a[o],e)&&(e=a[o][e]),"object"===i()(t)?this.interpolate(e,t):e}}},function(e,t){e.exports=o.a},function(e,t,n){function r(e,t,n){for(var r,o,a=n||i,s=0,l=e.length,c=!1;s<l;)(o=+a(e[r=s+(l-s>>1)],t))<0?s=r+1:(l=r,c=!o);return c?s:~s}function i(e,t){return e>t?1:e<t?-1:0}function o(e,t){return e.indexOf(t)>=0}function a(e,t,n){var r=e.length;if(e[0]<=t)return 0;if(t<=e[r-1])return r-1;var i=void 0;if(n>0){for(i=1;i<r;++i)if(e[i]<t)return i-1}else if(n<0){for(i=1;i<r;++i)if(e[i]<=t)return i}else for(i=1;i<r;++i){if(e[i]==t)return i;if(e[i]<t)return"function"==typeof n?n(t,e[i-1],e[i])>0?i-1:i:e[i-1]-t<t-e[i]?i-1:i}return r-1}function s(e,t,n){for(;t<n;){var r=e[t];e[t]=e[n],e[n]=r,++t,--n}}function l(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i=0;i<r;i++)e[e.length]=n[i]}function c(e,t){for(var n,r=e.length>>>0,i=0;i<r;i++)if(t(n=e[i],i,e))return n;return null}function d(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function u(e,t){var n;return e.every((function(r,i){return n=i,!t(r,i,e)}))?-1:n}function h(e,t,n){var r=t||i;return e.every((function(t,i){if(0===i)return!0;var o=r(e[i-1],t);return!(o>0||n&&0===o)}))}n.d(t,"a",(function(){return r})),n.d(t,"i",(function(){return i})),n.d(t,"f",(function(){return o}
776)),n.d(t,"h",(function(){return a})),n.d(t,"j",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return h}))},function(e,t,n){n.d(t,"c",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"j",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return f})),n.d(t,"e",(function(){return m})),n.d(t,"l",(function(){return g})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return y})),n.d(t,"k",(function(){return b}));var r,i=n(59),o=n(15),a=new Array(6);function s(){return[1,0,0,1,0,0]}function l(e){return d(e,1,0,0,1,0,0)}function c(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=t[0],c=t[1],d=t[2],u=t[3],h=t[4],p=t[5];return e[0]=n*l+i*c,e[1]=r*l+o*c,e[2]=n*d+i*u,e[3]=r*d+o*u,e[4]=n*h+i*p+a,e[5]=r*h+o*p+s,e}function d(e,t,n,r,i,o,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=a,e}function u(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e,t){var n=t[0],r=t[1];return t[0]=e[0]*n+e[2]*r+e[4],t[1]=e[1]*n+e[3]*r+e[5],t}function p(e,t){var n=Math.cos(t),r=Math.sin(t);return c(e,d(a,n,r,-r,n,0,0))}function f(e,t,n){return c(e,d(a,t,0,0,n,0,0))}function m(e,t,n){return d(e,t,0,0,n,0,0)}function g(e,t,n){return c(e,d(a,1,0,0,1,t,n))}function v(e,t,n,r,i,o,a,s){var l=Math.sin(o),c=Math.cos(o);return e[0]=r*c,e[1]=i*l,e[2]=-r*l,e[3]=i*c,e[4]=a*r*c-s*r*l+t,e[5]=a*i*l+s*i*c+n,e}function y(e,t){var n,r=(n=t)[0]*n[3]-n[1]*n[2];Object(o.a)(0!==r,32);var i=t[0],a=t[1],s=t[2],l=t[3],c=t[4],d=t[5];return e[0]=l/r,e[1]=-a/r,e[2]=-s/r,e[3]=i/r,e[4]=(s*d-l*c)/r,e[5]=-(i*d-a*c)/r,e}function b(e){var t="matrix("+e.join(", ")+")";if(i.h)return t;var n=r||(r=document.createElement("div"));return n.style.transform=t,n.style.transform}},function(e,t,n){t.a={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},function(e,t,n){n.r(t),n.d(t,"listen",(function(){return i})),n.d(t,"listenOnce",(function(){return o})),n.d(t,"unlistenByKey",(function(){return a}));var r=n(5);function i(e,t,n,r,i){if(r&&r!==e&&(n=n.bind(r)),i){var o=n;n=function(){e.removeEventListener(t,n),o.apply(this,arguments)}}var a={target:e,type:t,listener:n};return e.addEventListener(t,n),a}function o(e,t,n,r){return i(e,t,n,r,!0)}function a(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),Object(r.b)(e))}},function(e,t,n){t.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},function(e,t,n){t.a={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(198);function i(e,t){if(!e)throw new r.a(t)}},function(e,t,n){n.d(t,"a",(function(){return g}));var r=n(138),i=n(89),o=n(1),a=n(229),s=n(228),l=n(54),c=n(140),d=n(12),u=n(196),h=n(0),p=n(139),f=n(24),m=n(22),g={layer:a,source:s,tilegrid:l,proj:o,control:i,style:r,interaction:c,events:d,format:u,extent:h,geom:p,Feature:f.a,PolygonFromExtent:m.c}},function(e,t,n){n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"i",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"l",(function(){return v})),n.d(t,"m",(function(){return y})),n.d(t,"j",(function(){return b})),n.d(t,"h",(function(){return _})),n.d(t,"a",(function(){return w})),n.d(t,"q",(function(){return k})),n.d(t,"p",(function(){return P})),n.d(t,"o",(function(){return I})),n.d(t,"n",(function(){return L}));var r=n(60),i=n(92),o=n(59),a=n(5),s=n(23),l=n(38),c="10px sans-serif",d="#000",u="round",h=[],p=0,f="round",m=10,g="#000",v="center",y="middle",b=[0,0,0,0],_=1,w=new r.a;(new i.a).setSize=function(){console.warn("labelCache is deprecated.")};var x,C,S=null,E={},k=function(){var e,t,n=["monospace","serif"],r=n.length,i="wmytzilWMYTZIL@#/&?$%10ï";function o(e,o,a){for(var s=!0,l=0;l<r;++l){var c=n[l];if(t=$(e+" "+o+" 32px "+c,i),a!=c){var d=$(e+" "+o+" 32px "+a+","+c,i);s=s&&d!=t}}return!!s}function s(){for(var t=!0,n=w.getKeys(),r=0,i=n.length;r<i;++r){var s=n[r];w.get(s)<100&&(o.apply(this,s.split("\n"))?(Object(a.b)(E),S=null,x=void 0,w.set(s,100)):(w.set(s,w.get(s)+1,!0),t=!1))}t&&(clearInterval(e),e=void 0)}return function(t){var n=Object(l.g)(t);if(n)for(var r=n.families,i=0,a=r.length;i<a;++i){var c=r[i],d=n.style+"\n"+n.weight+"\n"+c;void 0===w.get(d)&&(w.set(d,100,!0),o(n.style,n.weight,c)||(w.set(d,0,!0),void 0===e&&(e=setInterval(s,32))))}}}(),T=function(e){var t=E[e];if(null==t){if(o.h){var n=Object(l.g)(e),r=O(e,"Žg");t=(isNaN(Number(n.lineHeight))?1.2:Number(n.lineHeight))*(r.actualBoundingBoxAscent+r.actualBoundingBoxDescent)}else C||((C=document.createElement("div")).innerHTML="M",C.style.minHeight="0",C.style.maxHeight="none",C.style.height="auto",C.style.padding="0",C.style.border="none",C.style.position="absolute",C.style.display="block",C.style.left="-99999px"),C.style.font=e,document.body.appendChild(C),t=C.offsetHeight,document.body.removeChild(C);E[e]=t}return t};function O(e,t){return S||(S=Object(s.a)(1,1)),e!=x&&(S.font=e,x=S.font),S.measureText(t)}
776function $(e,t){return O(e,t).width}function P(e,t,n){if(t in n)return n[t];var r=t.split("\n").reduce((function(t,n){return Math.max(t,$(e,n))}),0);return n[t]=r,r}function I(e,t){for(var n=[],r=[],i=[],o=0,a=0,s=0,l=0,c=0,d=t.length;c<=d;c+=2){var u=t[c];if("\n"!==u&&c!==d){var h=t[c+1]||e.font,p=$(h,u);n.push(p),a+=p;var f=T(h);r.push(f),l=Math.max(l,f)}else o=Math.max(o,a),i.push(a),a=0,s+=l}return{width:o,height:s,widths:n,heights:r,lineWidths:i}}function L(e,t,n,r,i,o,a,s,l,c,d){e.save(),1!==n&&(e.globalAlpha*=n),t&&e.setTransform.apply(e,t),r.contextInstructions?(e.translate(l,c),e.scale(d[0],d[1]),function(e,t){for(var n=e.contextInstructions,r=0,i=n.length;r<i;r+=2)Array.isArray(n[r+1])?t[n[r]].apply(t,n[r+1]):t[n[r]]=n[r+1]}(r,e)):d[0]<0||d[1]<0?(e.translate(l,c),e.scale(d[0],d[1]),e.drawImage(r,i,o,a,s,0,0,a,s)):e.drawImage(r,i,o,a,s,l,c,a*d[0],s*d[1]),e.restore()}},function(e,t,n){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"i",(function(){return f})),n.d(t,"k",(function(){return m})),n.d(t,"n",(function(){return g})),n.d(t,"j",(function(){return v})),n.d(t,"m",(function(){return y})),n.d(t,"o",(function(){return b})),n.d(t,"h",(function(){return _})),n.d(t,"l",(function(){return w}));var r=n(35),i=n(32),o=n(59),a=n(15);function s(e){var t=arguments;return function(e){for(var n=!0,r=0,i=t.length;r<i&&(n=n&&t[r](e));++r);return n}}var l=function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},c=function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},d=function(e){return!e.map.getTargetElement().hasAttribute("tabindex")||function(e){var t=e.map.getTargetElement(),n=e.map.getOwnerDocument().activeElement;return t.contains(n)}(e)},u=i.b,h=function(e){return e.type==r.a.CLICK},p=function(e){var t=e.originalEvent;return 0==t.button&&!(o.g&&o.d&&t.ctrlKey)},f=i.a,m=function(e){return"pointermove"==e.type},g=function(e){return e.type==r.a.SINGLECLICK},v=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},y=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},b=function(e){var t=e.originalEvent,n=t.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!t.target.isContentEditable},_=function(e){var t=e.originalEvent;return Object(a.a)(void 0!==t,56),"mouse"==t.pointerType},w=function(e){var t=e.originalEvent;return Object(a.a)(void 0!==t,56),t.isPrimary&&0===t.button}},function(e,t,n){n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},i=[r.FILL],o=[r.STROKE],a=[r.BEGIN_PATH],s=[r.CLOSE_PATH];t.c=r},function(e,t,n){n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"j",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"i",(function(){return m}));var r={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378
776:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=parseInt(o,10));var a={256:"SHORT",257:"SHORT",258:"SHORT",259:"SHORT",262:"SHORT",273:"LONG",274:"SHORT",277:"SHORT",278:"LONG",279:"LONG",282:"RATIONAL",283:"RATIONAL",284:"SHORT",286:"SHORT",287:"RATIONAL",296:"SHORT",297:"SHORT",305:"ASCII",306:"ASCII",338:"SHORT",339:"SHORT",513:"LONG",514:"LONG",1024:"SHORT",1025:"SHORT",2048:"SHORT",2049:"ASCII",3072:"SHORT",3073:"ASCII",33550:"DOUBLE",33922:"DOUBLE",34665:"LONG",34735:"SHORT",34737:"ASCII",42113:"ASCII"},s=[i.BitsPerSample,i.ExtraSamples,i.SampleFormat,i.StripByteCounts,i.StripOffsets,i.StripRowCounts,i.TileByteCounts,i.TileOffsets,i.SubIFDs],l={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},c={};for(var d in l)l.hasOwnProperty(d)&&(c[l[d]]=parseInt(d,10));var u={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},h={Unspecified:0,Assocalpha:1,Unassalpha:2},p={Version:0,AddCompression:1},f={None:0,Deflate:1},m={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},g={};for(var v in m)m.hasOwnProperty(v)&&(g[m[v]]=parseInt(v,10))},function(e,t,n){t.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},function(e,t,n){n.d(t,"c",(function(){return x})),n.d(t,"b",(function(){return C})),n.d(t,"d",(function(){return S}));var r,i=n(14),o=n(120),a=n(29),s=n(52),l=n(90),c=n(0),d=n(81),u=n(9),h=n(145),p=n(66),f=n(117),m=n(94),g=n(161),v=n(109),y=n(6),b=n(105),_=(n(178),r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(e){function t(t,n,r){var i=e.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==n&&r?(i.setFlatCoordinates(n,t),i.ends_=r):i.setCoordinates(t,n),i}return _(t,e),t.prototype.appendLinearRing=function(e){this.flatCoordinates?Object(u.c)(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(c.closestSquaredDistanceXY)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(l.a)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(l.b)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.containsXY=function(e,t){return Object(v.c)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)},t.prototype.getArea=function(){return Object(g.b)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),Object(m.e)(t,0,this.ends_,this.stride,e)):t=this.flatCoordinates,Object(p.b)(t,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var e=Object(c.getCenter)(this.getExtent());this.flatInteriorPoint_=Object(h.a)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},t.prototype.getInteriorPoint=function(){return new a.a(this.getFlatInteriorPoint(),i.a.XYM)},t.prototype.getLinearRingCount=function(){return this.ends_.length},t.prototype.getLinearRing=function(e){return e<0||this.ends_.length<=e?null:new o.a(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLinearRings=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.ends_,r=[],i=0,a=0,s=n.length;a<s;++a){var l=n[a],c=new o.a(t.slice(i,l),e);r.push(c),i=l}return r},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;Object(m.c)(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Object(m.e)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=Object(b.c)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),n,0,r),new t(n,i.a.XY,r)},t.prototype.getType=function(){return"Polygon"},t.prototype.intersectsExtent=function(e){return Object(f.d)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(d.c)(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(s.a);function x(e){var t=e[0],n=e[1],r=e[2],o=e[3],a=[t,n,t,o,r,o,r,n,t,n];return new w(a,i.a.XY,[a.length])}
776function C(e,t,n){for(var r=t||32,i=e.getStride(),o=e.getLayout(),a=e.getCenter(),s=i*(r+1),l=new Array(s),c=0;c<s;c+=i){l[c]=0,l[c+1]=0;for(var d=2;d<i;d++)l[c+d]=a[d]}var u=[l.length],h=new w(l,o,u);return S(h,a,e.getRadius(),n),h}function S(e,t,n,r){for(var i=e.getFlatCoordinates(),o=e.getStride(),a=i.length/o-1,s=r||0,l=0;l<=a;++l){var c=l*o,d=s+2*Object(y.g)(l,a)*Math.PI/a;i[c]=t[0]+n*Math.cos(d),i[c+1]=t[1]+n*Math.sin(d)}e.changed()}t.a=w},function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"g",(function(){return u}));var r=n(59);function i(e,t,n,i){var o;return o=n&&n.length?n.shift():r.h?new OffscreenCanvas(e||300,t||300):document.createElement("canvas"),e&&(o.width=e),t&&(o.height=t),o.getContext("2d",i)}function o(e){var t=e.canvas;t.width=1,t.height=1,e.clearRect(0,0,1,1)}function a(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+(parseInt(n.marginLeft,10)+parseInt(n.marginRight,10))}function s(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+(parseInt(n.marginTop,10)+parseInt(n.marginBottom,10))}function l(e,t){var n=t.parentNode;n&&n.replaceChild(e,t)}function c(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}function d(e){for(;e.lastChild;)e.removeChild(e.lastChild)}function u(e,t){for(var n=e.childNodes,r=0;;++r){var i=n[r],o=t[r];if(!i&&!o)break;i!==o&&(i?o?e.insertBefore(o,i):(e.removeChild(i),--r):e.appendChild(o))}}},function(e,t,n){var r,i=n(60),o=n(11),a=n(15),s=n(12),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this)||this;if(n.on,n.once,n.un,n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addChangeListener(n.geometryName_,n.handleGeometryChanged_),t)if("function"==typeof t.getSimplifiedGeometry){var r=t;n.setGeometry(r)}else{var i=t;n.setProperties(i)}return n}return l(t,e),t.prototype.clone=function(){var e=new t(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&e.setGeometry(n.clone());var r=this.getStyle();return r&&e.setStyle(r),e},t.prototype.getGeometry=function(){return this.get(this.geometryName_)},t.prototype.getId=function(){return this.id_},t.prototype.getGeometryName=function(){return this.geometryName_},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.handleGeometryChange_=function(){this.changed()},t.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Object(s.unlistenByKey)(this.geometryChangeKey_),this.geometryChangeKey_=null);var e=this.getGeometry();e&&(this.geometryChangeKey_=Object(s.listen)(e,o.a.CHANGE,this.handleGeometryChange_,this)),this.changed()},t.prototype.setGeometry=function(e){this.set(this.geometryName_,e)},t.prototype.setStyle=function(e){this.style_=e,this.styleFunction_=e?function(e){return"function"==typeof e?e:(Array.isArray(e)?t=e:(Object(a.a)("function"==typeof e.getZIndex,41),t=[e]),function(){return t});var t}(e):void 0,this.changed()},t.prototype.setId=function(e){this.id_=e,this.changed()},t.prototype.setGeometryName=function(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},t}(i.a);t.a=c},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(236);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return h})),n.d(t,"j",(function(){return p})),n.d(t,"e",(function(){return f})),n.d(t,"k",(function(){return m})),n.d(t,"l",(function(){return g})),n.d(t,"g",(function(){return v}));var r=n(0),i=n(6),o=n(102);function a(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function s(e,t){var n=t.getRadius(),r=t.getCenter(),i=r[0],o=r[1],a=e[0]-i,s=e[1]-o;0===a&&0===s&&(a=1);var l=Math.sqrt(a*a+s*s);return[i+n*a/l,o+n*s/l]}function l(e,t){var n,r,i=e[0],o=e[1],a=t[0],s=t[1],l=a[0],c=a[1],d=s[0],u=s[1],h=d-l,p=u-c,f=0===h&&0===p?0:(h*(i-l)+p*(o-c))/(
776h*h+p*p||0);return f<=0?(n=l,r=c):f>=1?(n=d,r=u):(n=l+f*h,r=c+f*p),[n,r]}function c(e,t,n){var r=Object(i.g)(t+180,360)-180,a=Math.abs(3600*r),s=n||0,l=Math.pow(10,s),c=Math.floor(a/3600),d=Math.floor((a-3600*c)/60),u=a-3600*c-60*d;return(u=Math.ceil(u*l)/l)>=60&&(u=0,d+=1),d>=60&&(d=0,c+=1),c+"° "+Object(o.b)(d,2)+"â² "+Object(o.b)(u,2,s)+"â³"+(0==r?"":" "+e.charAt(r<0?1:0))}function d(e,t){for(var n=!0,r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n}function u(e,t){var n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,o=e[1]*n+e[0]*r;return e[0]=i,e[1]=o,e}function h(e,t){return e[0]*=t,e[1]*=t,e}function p(e,t){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function f(e,t){return Math.sqrt(p(e,t))}function m(e,t){return p(e,l(e,t))}function g(e,t){if(t.canWrapX()){var n=Object(r.getWidth)(t.getExtent()),i=v(e,t,n);i&&(e[0]-=i*n)}return e}function v(e,t,n){var i=t.getExtent(),o=0;if(t.canWrapX()&&(e[0]<i[0]||e[0]>i[2])){var a=n||Object(r.getWidth)(i);o=Math.floor((e[0]-i[0])/a)}return o}},function(e,t,n){var r=n(265)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==("undefined"==typeof globalThis?"undefined":qe(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r,i=n(52),o=n(0),a=n(81),s=n(6),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n){var r=e.call(this)||this;return r.setCoordinates(t,n),r}return l(t,e),t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){var i=this.flatCoordinates,o=Object(s.j)(e,t,i[0],i[1]);if(o<r){for(var a=this.stride,l=0;l<a;++l)n[l]=i[l];return n.length=a,o}return r},t.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},t.prototype.computeExtent=function(e){return Object(o.createOrUpdateFromCoordinate)(this.flatCoordinates,e)},t.prototype.getType=function(){return"Point"},t.prototype.intersectsExtent=function(e){return Object(o.containsXY)(e,this.flatCoordinates[0],this.flatCoordinates[1])},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(a.a)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(i.a);t.a=c},function(e,t,n){function r(e,t,n){return void 0===n&&(n=[0,0]),n[0]=e[0]+2*t,n[1]=e[1]+2*t,n}function i(e){return e[0]>0&&e[1]>0}function o(e,t,n){return void 0===n&&(n=[0,0]),n[0]=e[0]*t+.5|0,n[1]=e[1]*t+.5|0,n}function a(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:(t[0]=e,t[1]=e),t)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}))},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return l}));var r=n(9);function i(){return!0}function o(){return!1}function a(){}function s(e){var t,n,i,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===i&&Object(r.b)(a,n)||(o=!0,i=this,n=a,t=e.apply(this,arguments)),t}}function l(e){return function(){var t;try{t=e()}catch(e){return Promise.reject(e)}return t instanceof Promise?t:Promise.resolve(t)}()}},function(e,t,n){n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c}));var r=n(46),i=n(4),o=n(5),a=n(1),s=function(){function e(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return e.prototype.getReadOptions=function(e,t){var n;if(t){var i=t.dataProjection?Object(a.get)(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()===r.b.TILE_PIXELS&&(i=Object(a.get)(i)).setWorldExtent(t.extent),n={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(n)},e.prototype.adaptOptions=function(e){return Object(o.a)({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},e)},e.prototype.getType=function(){return Object(i.b)()},e.prototype.readFeature=function(e,t){return Object(i.b)()},e.prototype.readFeatures=function(e,t){return Object(i.b)()},e.prototype.readGeometry=function(e,t){return Object(i.b)()},e.prototype.readProjection=function(e){return Object(i.b)()},e.prototype.writeFeature=function(e,t){return Object(i.b)()},e.prototype.writeFeatures=function(e,t){return Object(i.b)()},e.prototype.writeGeometry=function(e,t){return Object(i.b)()},e}();function l(e,t,n){var r,i=n?Object(a.get)(n.featureProjection):null,o=n?Object(a.get)(n.dataProjection):null;if(r=i&&o&&!Object(a.equivalent)(i,o)?(t?e.clone():e).transform(t?i:o,t?o:i):e,t&&n&&void 0!==n.decimals){var s=Math.pow(10,n.decimals);r===e&&(r=e.clone()),r.applyTransform((function(e){for(var t=0,n=e.length;t<n;++t)e[t]=Math.round(e[t]*s)/s;return e}))}return r}function c(e,t){var n=t?Object(a.get)(t.featureProjection):null,r=t?Object(a.get)(t.dataProjection):null;return n&&r&&!Object(a.equivalent)(n,r)?Object(a.transformExtent)(e,r,n):e}t.a=s},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(11);t.a={SINGLECLICK:"singleclick",CLICK:r.a.CLICK,DBLCLICK:r.a.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},function(e,t,n){n.r(t),n.d(t,"earthRadius",(function(){return r})),n.d(t,"factors",(function(){return i})),n.d(t,"unitsFactors",(function(){return o}
776)),n.d(t,"areaFactors",(function(){return a})),n.d(t,"feature",(function(){return s})),n.d(t,"geometry",(function(){return l})),n.d(t,"point",(function(){return c})),n.d(t,"points",(function(){return d})),n.d(t,"polygon",(function(){return u})),n.d(t,"polygons",(function(){return h})),n.d(t,"lineString",(function(){return p})),n.d(t,"lineStrings",(function(){return f})),n.d(t,"featureCollection",(function(){return m})),n.d(t,"multiLineString",(function(){return g})),n.d(t,"multiPoint",(function(){return v})),n.d(t,"multiPolygon",(function(){return y})),n.d(t,"geometryCollection",(function(){return b})),n.d(t,"round",(function(){return _})),n.d(t,"radiansToLength",(function(){return w})),n.d(t,"lengthToRadians",(function(){return x})),n.d(t,"lengthToDegrees",(function(){return C})),n.d(t,"bearingToAzimuth",(function(){return S})),n.d(t,"radiansToDegrees",(function(){return E})),n.d(t,"degreesToRadians",(function(){return k})),n.d(t,"convertLength",(function(){return T})),n.d(t,"convertArea",(function(){return O})),n.d(t,"isNumber",(function(){return $})),n.d(t,"isObject",(function(){return P})),n.d(t,"validateBBox",(function(){return I})),n.d(t,"validateId",(function(){return L}));var r=6371008.8,i={centimeters:100*r,centimetres:100*r,degrees:r/111325,feet:3.28084*r,inches:39.37*r,kilometers:r/1e3,kilometres:r/1e3,meters:r,metres:r,miles:r/1609.344,millimeters:1e3*r,millimetres:1e3*r,nauticalmiles:r/1852,radians:1,yards:1.0936*r},o={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r,yards:1.0936133},a={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function s(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function l(e,t,n){switch(void 0===n&&(n={}),e){case"Point":return c(t).geometry;case"LineString":return p(t).geometry;case"Polygon":return u(t).geometry;case"MultiPoint":return v(t).geometry;case"MultiLineString":return g(t).geometry;case"MultiPolygon":return y(t).geometry;default:throw new Error(e+" is invalid")}}function c(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!$(e[0])||!$(e[1]))throw new Error("coordinates must contain numbers");return s({type:"Point",coordinates:e},t,n)}function d(e,t,n){return void 0===n&&(n={}),m(e.map((function(e){return c(e,t)})),n)}function u(e,t,n){void 0===n&&(n={});for(var r=0,i=e;r<i.length;r++){var o=i[r];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}return s({type:"Polygon",coordinates:e},t,n)}function h(e,t,n){return void 0===n&&(n={}),m(e.map((function(e){return u(e,t)})),n)}function p(e,t,n){if(void 0===n&&(n={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return s({type:"LineString",coordinates:e},t,n)}function f(e,t,n){return void 0===n&&(n={}),m(e.map((function(e){return p(e,t)})),n)}function m(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function g(e,t,n){return void 0===n&&(n={}),s({type:"MultiLineString",coordinates:e},t,n)}function v(e,t,n){return void 0===n&&(n={}),s({type:"MultiPoint",coordinates:e},t,n)}function y(e,t,n){return void 0===n&&(n={}),s({type:"MultiPolygon",coordinates:e},t,n)}function b(e,t,n){return void 0===n&&(n={}),s({type:"GeometryCollection",geometries:e},t,n)}function _(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");
776var n=Math.pow(10,t||0);return Math.round(e*n)/n}function w(e,t){void 0===t&&(t="kilometers");var n=i[t];if(!n)throw new Error(t+" units is invalid");return e*n}function x(e,t){void 0===t&&(t="kilometers");var n=i[t];if(!n)throw new Error(t+" units is invalid");return e/n}function C(e,t){return E(x(e,t))}function S(e){var t=e%360;return t<0&&(t+=360),t}function E(e){return e%(2*Math.PI)*180/Math.PI}function k(e){return e%360*Math.PI/180}function T(e,t,n){if(void 0===t&&(t="kilometers"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("length must be a positive number");return w(x(e,t),n)}function O(e,t,n){if(void 0===t&&(t="meters"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("area must be a positive number");var r=a[t];if(!r)throw new Error("invalid original units");var i=a[n];if(!i)throw new Error("invalid final units");return e/r*i}function $(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function P(e){return!!e&&e.constructor===Object}function I(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!$(e))throw new Error("bbox must only contain numbers")}))}function L(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(qe(e)))throw new Error("id must be a number or a string")}},function(e,t,n){var r,i=n(198),o=n(60),a=n(51),s=n(39),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c="length",d=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.index=r,i}return l(t,e),t}(s.a),u=function(e){function t(t,n){var r=e.call(this)||this;r.on,r.once,r.un;var i=n||{};if(r.unique_=!!i.unique,r.array_=t||[],r.unique_)for(var o=0,a=r.array_.length;o<a;++o)r.assertUnique_(r.array_[o],o);return r.updateLength_(),r}return l(t,e),t.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},t.prototype.extend=function(e){for(var t=0,n=e.length;t<n;++t)this.push(e[t]);return this},t.prototype.forEach=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)e(t[n],n,t)},t.prototype.getArray=function(){return this.array_},t.prototype.item=function(e){return this.array_[e]},t.prototype.getLength=function(){return this.get(c)},t.prototype.insertAt=function(e,t){this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new d(a.a.ADD,t,e))},t.prototype.pop=function(){return this.removeAt(this.getLength()-1)},t.prototype.push=function(e){this.unique_&&this.assertUnique_(e);var t=this.getLength();return this.insertAt(t,e),this.getLength()},t.prototype.remove=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)if(t[n]===e)return this.removeAt(n)},t.prototype.removeAt=function(e){var t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new d(a.a.REMOVE,t,e)),t},t.prototype.setAt=function(e,t){var n=this.getLength();if(e<n){this.unique_&&this.assertUnique_(t,e);var r=this.array_[e];this.array_[e]=t,this.dispatchEvent(new d(a.a.REMOVE,r,e)),this.dispatchEvent(new d(a.a.ADD,t,e))}else{for(var i=n;i<e;++i)this.insertAt(i,void 0);this.insertAt(e,t)}},t.prototype.updateLength_=function(){this.set(c,this.array_.length)},t.prototype.assertUnique_=function(e,t){for(var n=0,r=this.array_.length;n<r;++n)if(this.array_[n]===e&&n!==t)throw new i.a(58)},t}(o.a);t.a=u},function(e,t,n){n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"g",(function(){return u}));var r="ol-hidden",i="ol-selectable",o="ol-unselectable",a="ol-unsupported",s="ol-control",l="ol-collapsed",c=new RegExp(["^\\s*(?=(?
776:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),d=["style","variant","weight","size","lineHeight","family"],u=function(e){var t=e.match(c);if(!t)return null;for(var n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},r=0,i=d.length;r<i;++r){var o=t[r+1];void 0!==o&&(n[d[r]]=o)}return n.families=n.family.split(/,\s?/),n}},function(e,t,n){n.d(t,"b",(function(){return i}));var r=function(){function e(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}return e.prototype.preventDefault=function(){this.defaultPrevented=!0},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e}();function i(e){e.stopPropagation()}t.a=r},function(e,t,n){var r,i=n(14),o=n(52),a=n(90),s=n(0),l=n(81),c=n(105),d=n(9),u=n(201),h=n(66),p=n(125),f=n(117),m=n(202),g=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e){function t(t,n){var r=e.call(this)||this;return r.flatMidpoint_=null,r.flatMidpointRevision_=-1,r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?r.setCoordinates(t,n):r.setFlatCoordinates(n,t),r}return g(t,e),t.prototype.appendCoordinate=function(e){this.flatCoordinates?Object(d.c)(this.flatCoordinates,e):this.flatCoordinates=e.slice(),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(s.closestSquaredDistanceXY)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a.e)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a.d)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.forEachSegment=function(e){return Object(u.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinateAtM=function(e,t){if(this.layout!=i.a.XYM&&this.layout!=i.a.XYZM)return null;var n=void 0!==t&&t;return Object(p.b)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n)},t.prototype.getCoordinates=function(){return Object(h.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinateAt=function(e,t){return Object(p.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,this.stride)},t.prototype.getLength=function(){return Object(m.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=Object(c.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,i.a.XY)},t.prototype.getType=function(){return"LineString"},t.prototype.intersectsExtent=function(e){return Object(f.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(l.b)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(o.a);t.a=v},function(e,t,n){n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return s}));var r=n(7),i=!1,o=function(e){var t=!0;void 0===window.HTMLElement&&(t=!1),document.all&&!document.querySelector&&(t=!1);var n=document.createElement("canvas");if(n.getContext&&n.getContext("2d")||(t=!1),window.XMLHttpRequest)try{var o=new XMLHttpRequest;"https:"!=window.location.protocol?o.open("GET","http://fake.pathomation.com/",!0):o.open("GET","https://fake.pathomation.com/",!0)}catch(e){t=!1}else t=!1;if(!t){var a=null;if(e)if(void 0!==e.innerHTML)a=e;else if("string"==typeof e){var s=e;s=s.replace("#",""),a=document.getElementById(s)}null!==a?a.innerHTML=r.a.translate("Browser not supported."):i||(i=!0,"string"==typeof He.UI.IncompatibilityRedirect?document.location=He.UI.IncompatibilityRedirect:alert(r.a.translate("Browser not supported.")))}return t},a=function(e){if(e){var t="",n=0;for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n>0&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]),n++);return t}return null},s=function(e,t,n,r,i){var o=this;t=t.toUpperCase(),i||(i={}),i.dataEncodeCallback||(i.dataEncodeCallback=a);var s=i.dataEncodeCallback(n);s&&"GET"==t&&(e=e+"?"+s,s=null);var l=new XMLHttpRequest;l.open(t,e,!0),i.contentType?l.setRequestHeader("Content-type",i.contentType):"POST"==t&&l.setRequestHeader("Content-type","application/x-www-form-urlencoded"),l.onreadystatechange=function(){4==l.readyState&&"function"==typeof r&&r.call(o,l)},s?l.send(s):l.send()},l=function(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}},function(e,t,n){n.d(t,"a",(function(){return l}));var r,i=n(76),o=n(35),a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=this,r=t||{};return n=e.call(this,r)||this,r.handleDownEvent&&(n.handleDownEvent=r.handleDownEvent),r.handleDragEvent&&(n.handleDragEvent=r.handleDragEvent),r.handleMoveEvent&&(n.handleMoveEvent=r.handleMoveEvent),r.handleUpEvent&&(n.handleUpEvent=r.handleUpEvent),r.stopDown&&(n.stopDown=r.stopDown),n.handlingDownUpSequence=!1,n.targetPointers=[],n}return a(t,e),t.prototype.getPointerCount=function(){return this.targetPointers.length},t.prototype.handleDownEvent=function(e){return!1},t.prototype.handleDragEvent=function(e){},t.prototype.handleEvent=function(e){if(!e.originalEvent)return!0;var t=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==o.a.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==o.a.POINTERUP){var n=this.handleUpEvent(e);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(e.type==o.a.POINTERDOWN){var r=this.handleDownEvent(e);this.handlingDownUpSequence=r,t=this.stopDown(r)}else e.type==o.a.POINTERMOVE&&this.handleMoveEvent(e);return!t},t.prototype.handleMoveEvent=function(e){},t.prototype.handleUpEvent=function(e){return!1},t.prototype.stopDown=function(e){return e},t.prototype.updateTrackedPointers_=function(e){e.activePointers&&(this.targetPointers=e.activePointers)},t}(i.a);function l(e){for(var t=e.length,n=0,r=0,i=0;i<t;i++)n+=e[i].clientX,r+=e[i].clientY;return[n/t,r/t]}t.b=s},function(e,t,n){function r(e,t,n,r){return void 0!==r?(r[0]=e,r[1]=t,r[2]=n,r):[e,t,n]}function i(e,t,n){return e+"/"+t+"/"+n}function o(e){return i(e[0],e[1],e[2])}function a(e){var t=e.substring(e.lastIndexOf("/")+1,e.length).split(",").map(Number);return i(t[0],t[1],t[2])}function s(e){return e.split("/").map(Number)}function l(e){return(e[1]<<e[0])+e[2]}
776function c(e,t){var n=e[0],r=e[1],i=e[2];if(t.getMinZoom()>n||n>t.getMaxZoom())return!1;var o=t.getFullTileRange(n);return!o||o.containsXY(r,i)}n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return c}))},function(e,t,n){n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var r=n(141),i=n(65),o=n(67),a=n(15),s=function(){function e(e){var t=e||{};this.geometry_=null,this.geometryFunction_=h,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}return e.prototype.clone=function(){var t=this.getGeometry();return t&&"object"==qe(t)&&(t=t.clone()),new e({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.setRenderer=function(e){this.renderer_=e},e.prototype.setHitDetectionRenderer=function(e){this.hitDetectionRenderer_=e},e.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},e.prototype.getGeometry=function(){return this.geometry_},e.prototype.getGeometryFunction=function(){return this.geometryFunction_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(e){this.fill_=e},e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(e){this.image_=e},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(e){this.stroke_=e},e.prototype.getText=function(){return this.text_},e.prototype.setText=function(e){this.text_=e},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setGeometry=function(e){"function"==typeof e?this.geometryFunction_=e:"string"==typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=h,this.geometry_=e},e.prototype.setZIndex=function(e){this.zIndex_=e},e}();function l(e){var t,n;"function"==typeof e?t=e:(Array.isArray(e)?n=e:(Object(a.a)("function"==typeof e.getZIndex,41),n=[e]),t=function(){return n});return t}var c=null;function d(e,t){if(!c){var n=new i.a({color:"rgba(255,255,255,0.4)"}),a=new o.a({color:"#3399CC",width:1.25});c=[new s({image:new r.a({fill:n,stroke:a,radius:5}),fill:n,stroke:a})]}return c}function u(){var e={},t=[255,255,255,1],n=[0,153,255,1];return e.Polygon=[new s({fill:new i.a({color:[255,255,255,.5]})})],e.MultiPolygon=e.Polygon,e.LineString=[new s({stroke:new o.a({color:t,width:5})}),new s({stroke:new o.a({color:n,width:3})})],e.MultiLineString=e.LineString,e.Circle=e.Polygon.concat(e.LineString),e.Point=[new s({image:new r.a({radius:6,fill:new i.a({color:n}),stroke:new o.a({color:t,width:1.5})}),zIndex:1/0})],e.MultiPoint=e.Point,e.GeometryCollection=e.Polygon.concat(e.LineString,e.Point),e}function h(e){return e.getGeometry()}t.c=s},function(e,t,n){function r(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function i(e,t){return!(e.length<t.length)&&e.substr(e.length-t.length)===t}function o(e,t){for(var n=e.length,r=0;r<n;r++)t(e[r],r)}function a(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function s(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n}function l(e){return c.apply(this,arguments)}function c(){return(c=Ve($e().mark((function e(t){return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return setTimeout(e,t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e,t){var n=Array.isArray(e)?e:Array.from(e),r=Array.isArray(t)?t:Array.from(t);return n.map((function(e,t){return[e,r[t]]}))}n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return o}
776)),n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h}));var u=function(e){Me(n,e);var t=je(n);function n(e){var r;return Ae(this,n),r=t.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(De(r),n),r.name="AbortError",r}return Ie(n)}(Fe(Error)),h=function(e){Me(n,e);var t=je(n);function n(e,r){var i;return Ae(this,n),(i=t.call(this,r)).errors=e,i.message=r,i.name="AggregateError",i}return Ie(n)}(Fe(Error))},function(e,t,n){n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var r={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},i={9001:r.METERS,9002:r.FEET,9003:r.USFEET,9101:r.RADIANS,9102:r.DEGREES};function o(e){return i[e]}var a={};a[r.RADIANS]=6370997/(2*Math.PI),a[r.DEGREES]=2*Math.PI*6370997/360,a[r.FEET]=.3048,a[r.METERS]=1,a[r.USFEET]=1200/3937,t.b=r},function(e,t,n){t.a={ANIMATING:0,INT
776ERACTING:1}},function(e,t,n){t.a={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},function(e,t,n){function r(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function i(e){if(Array.isArray(e))return e;if("Feature"===e.type){if(null!==e.geometry)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function o(e){return"Feature"===e.type?e.geometry:e}function a(e,t){return"FeatureCollection"===e.type?"FeatureCollection":"GeometryCollection"===e.type?"GeometryCollection":"Feature"===e.type&&null!==e.geometry?e.geometry.type:e.type}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n(36)},function(e,t,n){var r,i=n(60),o=n(96),a=n(32),s=n(12),l=n(23),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this)||this,r=t.element;return!r||t.target||r.style.pointerEvents||(r.style.pointerEvents="auto"),n.element=r||null,n.target_=null,n.map_=null,n.listenerKeys=[],t.render&&(n.render=t.render),t.target&&n.setTarget(t.target),n}return c(t,e),t.prototype.disposeInternal=function(){Object(l.f)(this.element),e.prototype.disposeInternal.call(this)},t.prototype.getMap=function(){return this.map_},t.prototype.setMap=function(e){this.map_&&Object(l.f)(this.element);for(var t=0,n=this.listenerKeys.length;t<n;++t)Object(s.unlistenByKey)(this.listenerKeys[t]);this.listenerKeys.length=0,this.map_=e,e&&((this.target_?this.target_:e.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==a.c&&this.listenerKeys.push(Object(s.listen)(e,o.a.POSTRENDER,this.render,this)),e.render())},t.prototype.render=function(e){},t.prototype.setTarget=function(e){this.target_="string"==typeof e?document.getElementById(e):e},t}(i.a);t.a=d},function(e,t,n){t.a={ADD:"add",REMOVE:"remove"}},function(e,t,n){n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return h}));var r,i=n(153),o=n(14),a=n(4),s=n(0),l=n(69),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){var t=e.call(this)||this;return t.layout=o.a.XY,t.stride=2,t.flatCoordinates=null,t}return c(t,e),t.prototype.computeExtent=function(e){return Object(s.createOrUpdateFromFlatCoordinates)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinates=function(){return Object(a.b)()},t.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.getFlatCoordinates=function(){return this.flatCoordinates},t.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},t.prototype.getLayout=function(){return this.layout},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var t=this.getSimplifiedGeometryInternal(e);return t.getFlatCoordinates().length<this.flatCoordinates.length?t:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)},t.prototype.getSimplifiedGeometryInternal=function(e){return this},t.prototype.getStride=function(){return this.stride},t.prototype.setFlatCoordinates=function(e,t){this.stride=u(e),this.layout=e,this.flatCoordinates=t},t.prototype.setCoordinates=function(e,t){Object(a.b)()},t.prototype.setLayout=function(e,t,n){var r;if(e)r=u(e);else{for(var i=0;i<n;++i){if(0===t.length)return this.layout=o.a.XY,void(this.stride=2);t=t[0]}e=function(e){var t;return 2==e?t=o.a.XY:3==e?t=o.a.XYZ:4==e&&(t=o.a.XYZM),t}(r=t.length)}this.layout=e,this.stride=r},t.prototype.applyTransform=function(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},t.prototype.rotate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();Object(l.a)(n,0,n.length,r,e,t,n),this.changed()}},t.prototype.scale=function(e,t,n){var r=t;void 0===r&&(r=e);var i=n;i||(i=Object(s.getCenter)(this.getExtent()));var o=this.getFlatCoordinates();if(o){var a=this.getStride();Object(l.b)(o,0,o.length,a,e,r,i,o),this.changed()}},t.prototype.translate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();Object(l.d)(n,0,n.length,r,e,t,n),this.changed()}},t}(i.a);function u(e){var t;return e==o.a.XY?t=2:e==o.a.XYZ||e==o.a.XYM?t=3:e==o.a.XYZM&&(t=4),t}function h(e,t,n){var r=e.getFlatCoordinates();if(r){var i=e.getStride();return Object(l.c)(r,0,r.length,i,t,n)}return null}t.a=d},function(e,t,n){var r=n(274);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n.r(t),n.d(t,"getForProjection",(function(){return c})),n.d(t,"wrapX",(function(){return d})),n.d(t,"createForExtent",(function(){return u})),n.d(t,"createXYZ",(function(){return h})),n.d(t,"createForProjection",(function(){return f})),n.d(t,"extentFromProjection",(function(){return m}));var r=n(86),i=n(46),o=n(93),a=n(1),s=n(0),l=n(30);function c(e){var t=e.getDefaultTileGrid();return t||(t=f(e),e.setDefaultTileGrid(t)),t}function d(e,t,n){var r=t[0],i=e.getTileCoordCenter(t),o=m(n);if(Object(s.containsCoordinate)(o,i))return t;var a=Object(s.getWidth)(o),l=Math.ceil((o[0]-i[0])/a);return i[0]+=a*l,e.getTileCoordForCoordAndZ(i,r)}function u(e,t,n,i){var o=void 0!==i?i:"top-left",a=p(e,t,n);return new r.a({extent:e,origin:Object(s.getCorner)(e,o),resolutions:a,tileSize:n})}function h(e){var t=e||{},n=t.extent||Object(a.get)("EPSG:3857").getExtent(),i={extent:n,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:p(n,t.maxZoom,t.tileSize,t.maxResolution)};return new r.a(i)}function p(e,t,n,r){for(var i=void 0!==t?t:o.a,a=Object(s.getHeight)(e),c=Object(s.getWidth)(e),d=Object(l.d)(void 0!==n?n:o.b),u=r>0?r:Math.max(c/d[0],a/d[1]),h=i+1,p=new Array(h),f=0;f<h;++f)p[f]=u/Math.pow(2,f);return p}function f(e,t,n,r){return u(m(e),t,n,r)}function m(e){var t=(e=Object(a.get)(e)).getExtent();if(!t){var n=180*a.METERS_PER_UNIT[i.b.DEGREES]/e.getMetersPerUnit();t=Object(s.createOrUpdate)(-n,-n,n,n)}return t}},function(e,t,n){n.d(t,"b",(function(){return c}));var r,i=n(92),o=n(11),a=n(12),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){var t=e.call(this)||this;return t.on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return s(t,e),t.prototype.changed=function(){++this.revision_,this.dispatchEvent(o.a.CHANGE)},t.prototype.getRevision=function(){return this.revision_},t.prototype.onInternal=function(e,t){if(Array.isArray(e)){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=Object(a.listen)(this,e[i],t);return r}return Object(a.listen)(this,e,t)},t.prototype.onceInternal=function(e,t){var n;if(Array.isArray(e)){var r=e.length;n=new Array(r);for(var i=0;i<r;++i)n[i]=Object(a.listenOnce)(this,e[i],t)}else n=Object(a.listenOnce)(this,e,t);return t.ol_key=n,n},t.prototype.unInternal=function(e,t){var n=t.ol_key;if(n)c(n);else if(Array.isArray(e))for(var r=0,i=e.length;r<i;++r)this.removeEventListener(e[r],t);else this.removeEventListener(e,t)},t}(i.a);function c(e){if(Array.isArray(e))for(var t=0,n=e.length;t<n;++t)Object(a.unlistenByKey)(e[t]);else Object(a.unlistenByKey)(e)}l.prototype.on,l.prototype.once,l.prototype.un,t.a=l},function(e,t,n){var r,i=n(14),o=n(40),a=n(52),s=n(90),l=n(0),c=n(81),d=n(105),u=n(9),h=n(66),p=n(125),f=n(117),m=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(t[0]))i.setCoordinates(t,n);else if(void 0!==n&&r)i.setFlatCoordinates(n,t),i.ends_=r;else{for(var o=i.getLayout(),a=t,s=[],l=[],c=0,d=a.length;c<d;++c){var h=a[c];0===c&&(o=h.getLayout()),Object(u.c)(s,h.getFlatCoordinates()),l.push(s.length)}i.setFlatCoordinates(o,s),i.ends_=l}return i}return m(t,e),t.prototype.appendLineString=function(e){this.flatCoordinates?Object(u.c)(this.flatCoordinates,e.getFlatCoordinates().slice()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(l.closestSquaredDistanceXY)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(s.a)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(s.b)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.getCoordinateAtM=function(e,t,n){if(this.layout!=i.a.XYM&&this.layout!=i.a.XYZM||0===this.flatCoordinates.length)return null;var r=void 0!==t&&t,o=void 0!==n&&n;return Object(p.c)(this.flatCoordinates,0,this.ends_,this.stride,e,r,o)},t.prototype.getCoordinates=function(){return Object(h.b)(this.flatCoordinates,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getLineString=function(e){return e<0||this.ends_.length<=e?null:new o.a(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLineStrings=function(){for(var e=this.flatCoordinates,t=this.ends_,n=this.layout,r=[],i=0,a=0,s=t.length;a<s;++a){var l=t[a],c=new o.a(e.slice(i,l),n);r.push(c),i=l}return r},t.prototype.getFlatMidpoints=function(){for(var e=[],t=this.flatCoordinates,n=0,r=this.ends_,i=this.stride,o=0,a=r.length;o<a;++o){var s=r[o],l=Object(p.a)(t,n,s,i,.5);Object(u.c)(e,l),n=s}return e},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=Object(d.b)(this.flatCoordinates,0,this.ends_,this.stride,e,n,0,r),new t(n,i.a.XY,r)},t.prototype.getType=function(){return"MultiLineString"},t.prototype.intersectsExtent=function(e){return Object(f.b)(this.flatCoordinates,0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(c.c)(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(a.a);t.a=g},function(e,t,n){var r=n(58).default,i=n(34);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==qe(Symbol.iterator)?function(e){return qe(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":qe(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return o}
776)),n.d(t,"g",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return u}));var r="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",i=-1!==r.indexOf("firefox"),o=-1!==r.indexOf("safari")&&-1==r.indexOf("chrom")&&!!(r.indexOf("version/15.4")>=0||r.match(/cpu (os|iphone os) 15_4 like mac os x/)),a=-1!==r.indexOf("webkit")&&-1==r.indexOf("edge"),s=-1!==r.indexOf("macintosh"),l="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,c="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,d="undefined"!=typeof Image&&Image.prototype.decode,u=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch(e){}return e}()},function(e,t,n){var r,i=n(39),o=n(100),a=n(55),s=n(5),l=n(4),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.key=n,i.oldValue=r,i}return c(t,e),t}(i.a),u=function(e){function t(t){var n=e.call(this)||this;return n.on,n.once,n.un,Object(l.c)(n),n.values_=null,void 0!==t&&n.setProperties(t),n}return c(t,e),t.prototype.get=function(e){var t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t},t.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},t.prototype.getProperties=function(){return this.values_&&Object(s.a)({},this.values_)||{}},t.prototype.hasProperties=function(){return!!this.values_},t.prototype.notify=function(e,t){var n;n="change:".concat(e),this.hasListener(n)&&this.dispatchEvent(new d(n,e,t)),n=o.a.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new d(n,e,t))},t.prototype.addChangeListener=function(e,t){this.addEventListener("change:".concat(e),t)},t.prototype.removeChangeListener=function(e,t){this.removeEventListener("change:".concat(e),t)},t.prototype.set=function(e,t,n){var r=this.values_||(this.values_={});if(n)r[e]=t;else{var i=r[e];r[e]=t,i!==t&&this.notify(e,i)}},t.prototype.setProperties=function(e,t){for(var n in e)this.set(n,e[n],t)},t.prototype.applyProperties=function(e){e.values_&&Object(s.a)(this.values_||(this.values_={}),e.values_)},t.prototype.unset=function(e,t){if(this.values_&&e in this.values_){var n=this.values_[e];delete this.values_[e],Object(s.d)(this.values_)&&(this.values_=null),t||this.notify(e,n)}},t}(a.a);t.a=u},function(e,t){function n(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}
776e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){t.a={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}},function(e,t,n){var r,i=n(29),o=n(52),a=n(0),s=n(81),l=n(9),c=n(66),d=n(6),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t,n){var r=e.call(this)||this;return n&&!Array.isArray(t[0])?r.setFlatCoordinates(n,t):r.setCoordinates(t,n),r}return u(t,e),t.prototype.appendPoint=function(e){this.flatCoordinates?Object(l.c)(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){if(r<Object(a.closestSquaredDistanceXY)(this.getExtent(),e,t))return r;for(var i=this.flatCoordinates,o=this.stride,s=0,l=i.length;s<l;s+=o){var c=Object(d.j)(e,t,i[s],i[s+1]);if(c<r){r=c;for(var u=0;u<o;++u)n[u]=i[s+u];n.length=o}}return r},t.prototype.getCoordinates=function(){return Object(c.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getPoint=function(e){var t=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return e<0||t<=e?null:new i.a(this.flatCoordinates.slice(e*this.stride,(e+1)*this.stride),this.layout)},t.prototype.getPoints=function(){for(var e=this.flatCoordinates,t=this.layout,n=this.stride,r=[],o=0,a=e.length;o<a;o+=n){var s=new i.a(e.slice(o,o+n),t);r.push(s)}return r},t.prototype.getType=function(){return"MultiPoint"},t.prototype.intersectsExtent=function(e){for(var t=this.flatCoordinates,n=this.stride,r=0,i=t.length;r<i;r+=n){var o=t[r],s=t[r+1];if(Object(a.containsXY)(e,o,s))return!0}return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(s.b)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(o.a);t.a=h},function(e,t,n){var r,i=n(14),o=n(63),a=n(22),s=n(52),l=n(90),c=n(0),d=n(81),u=n(9),h=n(145),p=n(66),f=n(117),m=n(94),g=n(161),v=n(207),y=n(109),b=n(105),_=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!r&&!Array.isArray(t[0])){for(var o=i.getLayout(),a=t,s=[],l=[],c=0,d=a.length;c<d;++c){var h=a[c];0===c&&(o=h.getLayout());for(var p=s.length,f=h.getEnds(),m=0,g=f.length;m<g;++m)f[m]+=p;Object(u.c)(s,h.getFlatCoordinates()),l.push(f)}n=o,t=s,r=l}return void 0!==n&&r?(i.setFlatCoordinates(n,t),i.endss_=r):i.setCoordinates(t,n),i}return _(t,e),t.prototype.appendPolygon=function(e){var t;if(this.flatCoordinates){var n=this.flatCoordinates.length;Object(u.c)(this.flatCoordinates,e.getFlatCoordinates());for(var r=0,i=(t=e.getEnds().slice()).length;r<i;++r)t[r]+=n}else this.flatCoordinates=e.getFlatCoordinates().slice(),t=e.getEnds().slice(),this.endss_.push();this.endss_.push(t),this.changed()},t.prototype.clone=function(){for(var e=this.endss_.length,n=new Array(e),r=0;r<e;++r)n[r]=this.endss_[r].slice();var i=new t(this.flatCoordinates.slice(),this.layout,n);return i.applyProperties(this),i},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(c.closestSquaredDistanceXY)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(l.f)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(l.c)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.containsXY=function(e,t){return Object(y.d)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e,t)},t.prototype.getArea=function(){return Object(g.c)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),Object(m.f)(t,0,this.endss_,this.stride,e)):t=this.flatCoordinates,Object(p.c)(t,0,this.endss_,this.stride)},t.prototype.getEndss=function(){return this.endss_},t.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var e=Object(v.a)(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Object(h.b)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},t.prototype.getInteriorPoints=function(){return new o.a(this.getFlatInteriorPoints().slice(),i.a.XYM)},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;Object(m.d)(e,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Object(m.f)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=Object(b.d)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(e),n,0,r),new t(n,i.a.XY,r)},t.prototype.getPolygon=function(e){if(e<0||this.endss_.length<=e)return null;var t;if(0===e)t=0;else{var n=this.endss_[e-1];t=n[n.length-1]}var r=this.endss_[e].slice(),i=r[r.length-1];if(0!==t)for(var o=0,s=r.length;o<s;++o)r[o]-=t;return new a.a(this.flatCoordinates.slice(t,i),this.layout,r)},t.prototype.getPolygons=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.endss_,r=[],i=0,o=0,s=n.length;o<s;++o){var l=n[o].slice(),c=l[l.length-1];if(0!==i)for(var d=0,u=l.length;d<u;++d)l[d]-=i;var h=new a.a(t.slice(i,c),e,l);r.push(h),i=c}return r},t.prototype.getType=function(){return"MultiPolygon"},t.prototype.intersectsExtent=function(e){return Object(f.e)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,3),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(d.d)(this.flatCoordinates,0,e,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{var r=n[n.length-1];this.flatCoordinates.length=0===r.length?0:r[r.length-1]}this.changed()},t}(s.a);t.a=w},function(e,t,n){var r=function(){function e(e){var t=e||{};this.color_=void 0!==t.color?t.color:null}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0})},e.prototype.getColor=function(){return this.color_},e.prototype.setColor=function(e){this.color_=e},e}();t.a=r},function(e,t,n){function r(e,t,n,r,i){for(var o=void 0!==i?i:[],a=0,s=t;s<n;s+=r)o[a++]=e.slice(s,s+r);return o.length=a,o}function i(e,t,n,i,o){for(var a=void 0!==o?o:[],s=0,l=0,c=n.length;l<c;++l){var d=n[l];a[s++]=r(e,t,d,i,a[s]),t=d}return a.length=s,a}function o(e,t,n,r,o){for(var a=void 0!==o?o:[],s=0,l=0,c=n.length;l<c;++l){var d=n[l];a[s++]=i(e,t,d,r,a[s]),t=d[d.length-1]}return a.length=s,a}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}
776))},function(e,t,n){var r=function(){function e(e){var t=e||{};this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},e.prototype.getColor=function(){return this.color_},e.prototype.getLineCap=function(){return this.lineCap_},e.prototype.getLineDash=function(){return this.lineDash_},e.prototype.getLineDashOffset=function(){return this.lineDashOffset_},e.prototype.getLineJoin=function(){return this.lineJoin_},e.prototype.getMiterLimit=function(){return this.miterLimit_},e.prototype.getWidth=function(){return this.width_},e.prototype.setColor=function(e){this.color_=e},e.prototype.setLineCap=function(e){this.lineCap_=e},e.prototype.setLineDash=function(e){this.lineDash_=e},e.prototype.setLineDashOffset=function(e){this.lineDashOffset_=e},e.prototype.setLineJoin=function(e){this.lineJoin_=e},e.prototype.setMiterLimit=function(e){this.miterLimit_=e},e.prototype.setWidth=function(e){this.width_=e},e}();t.a=r},function(e,t,n){t.a={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},function(e,t,n){function r(e,t,n,r,i,o){for(var a=o||[],s=0,l=t;l<n;l+=r){var c=e[l],d=e[l+1];a[s++]=i[0]*c+i[2]*d+i[4],a[s++]=i[1]*c+i[3]*d+i[5]}return o&&a.length!=s&&(a.length=s),a}function i(e,t,n,r,i,o,a){for(var s=a||[],l=Math.cos(i),c=Math.sin(i),d=o[0],u=o[1],h=0,p=t;p<n;p+=r){var f=e[p]-d,m=e[p+1]-u;s[h++]=d+f*l-m*c,s[h++]=u+f*c+m*l;for(var g=p+2;g<p+r;++g)s[h++]=e[g]}return a&&s.length!=h&&(s.length=h),s}function o(e,t,n,r,i,o,a,s){for(var l=s||[],c=a[0],d=a[1],u=0,h=t;h<n;h+=r){var p=e[h]-c,f=e[h+1]-d;l[u++]=c+i*p,l[u++]=d+o*f;for(var m=h+2;m<h+r;++m)l[u++]=e[m]}return s&&l.length!=u&&(l.length=u),l}function a(e,t,n,r,i,o,a){for(var s=a||[],l=0,c=t;c<n;c+=r){s[l++]=e[c]+i,s[l++]=e[c+1]+o;for(var d=c+2;d<c+r;++d)s[l++]=e[d]}return a&&s.length!=l&&(s.length=l),s}n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return a}))},function(e,t,n){var r,i=n(11),o=n(153),a=n(0),s=n(12),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this)||this;return n.geometries_=t||null,n.changeEventsKeys_=[],n.listenGeometriesChange_(),n}return l(t,e),t.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(s.unlistenByKey),this.changeEventsKeys_.length=0},t.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var e=0,t=this.geometries_.length;e<t;++e)this.changeEventsKeys_.push(Object(s.listen)(this.geometries_[e],i.a.CHANGE,this.changed,this))},t.prototype.clone=function(){var e=new t(null);return e.setGeometries(this.geometries_),e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){if(r<Object(a.closestSquaredDistanceXY)(this.getExtent(),e,t))return r;for(var i=this.geometries_,o=0,s=i.length;o<s;++o)r=i[o].closestPointXY(e,t,n,r);return r},t.prototype.containsXY=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)if(n[r].containsXY(e,t))return!0;return!1},t.prototype.computeExtent=function(e){Object(a.createOrUpdateEmpty)(e);for(var t=this.geometries_,n=0,r=t.length;n<r;++n)Object(a.extend)(e,t[n].getExtent());return e},t.prototype.getGeometries=function(){return d(this.geometries_)},t.prototype.getGeometriesArray=function(){return this.geometries_},t.prototype.getGeometriesArrayRecursive=function(){for(var e=[],t=this.geometries_,n=0,r=t.length;n<r;++n)t[n].getType()===this.getType()?e=e.concat(t[n].getGeometriesArrayRecursive()):e.push(t[n]);return e},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var n=[],r=this.geometries_,i=!1,o=0,a=r.length;o<a;++o){var s=r[o],l=s.getSimplifiedGeometry(e);n.push(l),l!==s&&(i=!0)}if(i){var c=new t(null);return c.setGeometriesArray(n),c}return this.simplifiedGeometryMaxMinSquaredTolerance=e,this},t.prototype.getType=function(){return"GeometryCollection"},t.prototype.intersectsExtent=function(e){for(var t=this.geometries_,n=0,r=t.length;n<r;++n)if(t[n].intersectsExtent(e))return!0;return!1},t.prototype.isEmpty=function(){return 0===this.geometries_.length},t.prototype.rotate=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].rotate(e,t);this.changed()},t.prototype.scale=function(e,t,n){var r=n;r||(r=Object(a.getCenter)(this.getExtent()));for(var i=this.geometries_,o=0,s=i.length;o<s;++o)i[o].scale(e,t,r);this.changed()},t.prototype.setGeometries=function(e){this.setGeometriesArray(d(e))},t.prototype.setGeometriesArray=function(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()},t.prototype.applyTransform=function(e){for(var t=this.geometries_,n=0,r=t.length;n<r;++n)t[n].applyTransform(e);this.changed()},t.prototype.translate=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].translate(e,t);this.changed()},t.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),e.prototype.disposeInternal.call(this)},t}(o.a);function d(e){for(var t=[],n=0,r=e.length;n<r;++n)t.push(e[n].clone());return t}t.a=c},function(e,t,n){var r,i=n(119),o=n(203),a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.createRenderer=function(){return new o.a(this)},t}(i.a);t.a=s},function(e,t,n){var r=n(37),i=n(51),o=n(39),a=n(11),s=n(100),l=n(144),c=n(112),d=n(68),u=n(32);function h(e,t){return[[-1/0,-1/0,1/0,1/0]]}n(1);var p,f=n(15),m=n(0),g=n(9),v=n(4),y=n(5),b=n(12),_=n(179),w=(p=function(e,t){return(p=Object.
776setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),x=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.feature=n,i.features=r,i}return w(t,e),t}(o.a),C=function(e){function t(t){var n=this,i=t||{};(n=e.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===i.wrapX||i.wrapX})||this).on,n.once,n.un,n.loader_=u.c,n.format_=i.format,n.overlaps_=void 0===i.overlaps||i.overlaps,n.url_=i.url,void 0!==i.loader?n.loader_=i.loader:void 0!==n.url_&&(Object(f.a)(n.format_,7),n.loader_=Object(_.b)(n.url_,n.format_)),n.strategy_=void 0!==i.strategy?i.strategy:h;var o,a,s=void 0===i.useSpatialIndex||i.useSpatialIndex;return n.featuresRtree_=s?new l.a:null,n.loadedExtentsRtree_=new l.a,n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null,Array.isArray(i.features)?a=i.features:i.features&&(a=(o=i.features).getArray()),s||void 0!==o||(o=new r.a(a)),void 0!==a&&n.addFeaturesInternal(a),void 0!==o&&n.bindFeaturesCollection_(o),n}return w(t,e),t.prototype.addFeature=function(e){this.addFeatureInternal(e),this.changed()},t.prototype.addFeatureInternal=function(e){var t=Object(v.c)(e);if(this.addToIndex_(t,e)){this.setupChangeEvents_(t,e);var n=e.getGeometry();if(n){var r=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new x(d.a.ADDFEATURE,e))}else this.featuresCollection_&&this.featuresCollection_.remove(e)},t.prototype.setupChangeEvents_=function(e,t){this.featureChangeKeys_[e]=[Object(b.listen)(t,a.a.CHANGE,this.handleFeatureChange_,this),Object(b.listen)(t,s.a.PROPERTYCHANGE,this.handleFeatureChange_,this)]},t.prototype.addToIndex_=function(e,t){var n=!0,r=t.getId();return void 0!==r&&(r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=t),n&&(Object(f.a)(!(e in this.uidIndex_),30),this.uidIndex_[e]=t),n},t.prototype.addFeatures=function(e){this.addFeaturesInternal(e),this.changed()},t.prototype.addFeaturesInternal=function(e){for(var t=[],n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=Object(v.c)(a);this.addToIndex_(s,a)&&n.push(a)}i=0;for(var l=n.length;i<l;i++){a=n[i],s=Object(v.c)(a),this.setupChangeEvents_(s,a);var c=a.getGeometry();if(c){var u=c.getExtent();t.push(u),r.push(a)}else this.nullGeometryFeatures_[s]=a}if(this.featuresRtree_&&this.featuresRtree_.load(t,r),this.hasListener(d.a.ADDFEATURE)){i=0;for(var h=n.length;i<h;i++)this.dispatchEvent(new x(d.a.ADDFEATURE,n[i]))}},t.prototype.bindFeaturesCollection_=function(e){var t=!1;this.addEventListener(d.a.ADDFEATURE,(function(n){t||(t=!0,e.push(n.feature),t=!1)})),this.addEventListener(d.a.REMOVEFEATURE,(function(n){t||(t=!0,e.remove(n.feature),t=!1)})),e.addEventListener(i.a.ADD,function(e){t||(t=!0,this.addFeature(e.element),t=!1)}.bind(this)),e.addEventListener(i.a.REMOVE,function(e){t||(t=!0,this.removeFeature(e.element),t=!1)}.bind(this)),this.featuresCollection_=e},t.prototype.clear=function(e){if(e){for(var t in this.featureChangeKeys_)this.featureChangeKeys_[t].forEach(b.unlistenByKey);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var n=function(e){this.removeFeatureInternal(e)}.bind(this);for(var r in this.featuresRtree_.forEach(n),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[r])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var i=new x(d.a.CLEAR);this.dispatchEvent(i),this.changed()},t.prototype.forEachFeature=function(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},t.prototype.forEachFeatureAtCoordinateDirect=function(e,t){var n=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(n,(function(n){return n.getGeometry().intersectsCoordinate(e)?t(n):void 0}))},t.prototype.forEachFeatureInExtent=function(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},t.prototype.forEachFeatureIntersectingExtent=function(e,t){return this.forEachFeatureInExtent(e,(function(n){if(n.getGeometry().intersectsExtent(e)){var r=t(n);if(r)return r}}))},t.prototype.getFeaturesCollection=function(){return this.featuresCollection_},t.prototype.getFeatures=function(){var e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),Object(y.d)(this.nullGeometryFeatures_)||Object(g.c)(e,Object(y.c)(this.nullGeometryFeatures_))),e},t.prototype.getFeaturesAtCoordinate=function(e){var t=[];return this.forEachFeatureAtCoordinateDirect(e,(function(e){t.push(e)})),t},t.prototype.getFeaturesInExtent=function(e,t){var n=this;if(this.featuresRtree_){if(!(t&&t.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(e);var r=Object(m.wrapAndSliceX)(e,t);return[].concat.apply([],r.map((function(e){return n.featuresRtree_.getInExtent(e)})))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},t.prototype.getClosestFeatureToCoordinate=function(e,t){var n=e[0],r=e[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=t||u.b;return this.featuresRtree_.forEachInExtent(s,(function(e){if(l(e)){var t=e.getGeometry(),c=a;if((a=t.closestPointXY(n,r,o,a))<c){i=e;var d=Math.sqrt(a);s[0]=n-d,s[1]=r-d,s[2]=n+d,s[3]=r+d}}})),i},t.prototype.getExtent=function(e){return this.featuresRtree_.getExtent(e)},t.prototype.getFeatureById=function(e){var t=this.idIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getFeatureByUid=function(e){var t=this.uidIndex_[e];return void 0!==t?t:null},t.prototype.getFormat=function(){return this.format_},t.prototype.getOverlaps=function(){return this.overlaps_},t.prototype.getUrl=function(){return this.url_},t.prototype.handleFeatureChange_=function(e){var t=e.target,n=Object(v.c)(t),r=t.getGeometry();if(r){var i=r.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(i,t)):this.featuresRtree_&&this.featuresRtree_.update(i,t)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(t),this.nullGeometryFeatures_[n]=t);var o=t.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==t&&(this.removeFromIdIndex_(t),this.idIndex_[a]=t)}else this.removeFromIdIndex_(t),this.uidIndex_[n]=t;this.changed(),this.dispatchEvent(new x(d.a.CHANGEFEATURE,t))},t.prototype.hasFeature=function(e){var t=e.getId();return void 0!==t?t in this.idIndex_:Object(v.c)(e)in this.uidIndex_},t.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&Object(y.d)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},t.prototype.loadFeatures=function(e,t,n){for(var r=this.loadedExtentsRtree_,i=this.strategy_(e,t,n),o=function(e,o){var s=i[e];r.forEachInExtent(s,(function(e){return Object(m.containsExtent)(e.extent,s)}
776))||(++a.loadingExtentsCount_,a.dispatchEvent(new x(d.a.FEATURESLOADSTART)),a.loader_.call(a,s,t,n,function(e){--this.loadingExtentsCount_,this.dispatchEvent(new x(d.a.FEATURESLOADEND,void 0,e))}.bind(a),function(){--this.loadingExtentsCount_,this.dispatchEvent(new x(d.a.FEATURESLOADERROR))}.bind(a)),r.insert(s,{extent:s.slice()}))},a=this,s=0,l=i.length;s<l;++s)o(s);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},t.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),e.prototype.refresh.call(this)},t.prototype.removeLoadedExtent=function(e){var t,n=this.loadedExtentsRtree_;n.forEachInExtent(e,(function(n){if(Object(m.equals)(n.extent,e))return t=n,!0})),t&&n.remove(t)},t.prototype.removeFeature=function(e){if(e){var t=Object(v.c)(e);t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e),this.removeFeatureInternal(e)&&this.changed()}},t.prototype.removeFeatureInternal=function(e){var t=Object(v.c)(e),n=this.featureChangeKeys_[t];if(n){n.forEach(b.unlistenByKey),delete this.featureChangeKeys_[t];var r=e.getId();return void 0!==r&&delete this.idIndex_[r.toString()],delete this.uidIndex_[t],this.dispatchEvent(new x(d.a.REMOVEFEATURE,e)),e}},t.prototype.removeFromIdIndex_=function(e){var t=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===e){delete this.idIndex_[n],t=!0;break}return t},t.prototype.setLoader=function(e){this.loader_=e},t.prototype.setUrl=function(e){Object(f.a)(this.format_,7),this.url_=e,this.setLoader(Object(_.b)(e,this.format_))},t}(c.a);t.a=C},function(e,t,n){t.a={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},function(e,t,n){t.a={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},function(e,t,n){n.d(t,"b",(function(){return p}));var r,i=n(205),o=n(11),a=n(48),s=n(73),l=n(15),c=n(5),d=n(12),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=this,r=Object(c.a)({},t);delete r.source,(n=e.call(this,r)||this).on,n.once,n.un,n.mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,n.rendered=!1,t.render&&(n.render=t.render),t.map&&n.setMap(t.map),n.addChangeListener(a.a.SOURCE,n.handleSourcePropertyChange_);var i=t.source?t.source:null;return n.setSource(i),n}return u(t,e),t.prototype.getLayersArray=function(e){var t=e||[];return t.push(this),t},t.prototype.getLayerStatesArray=function(e){var t=e||[];return t.push(this.getLayerState()),t},t.prototype.getSource=function(){return this.get(a.a.SOURCE)||null},t.prototype.getRenderSource=function(){return this.getSource()},t.prototype.getSourceState=function(){var e=this.getSource();return e?e.getState():"undefined"},t.prototype.handleSourceChange_=function(){this.changed()},t.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(d.unlistenByKey)(this.sourceChangeKey_),this.sourceChangeKey_=null);var e=this.getSource();e&&(this.sourceChangeKey_=Object(d.listen)(e,o.a.CHANGE,this.handleSourceChange_,this)),this.changed()},t.prototype.getFeatures=function(e){return this.renderer_?this.renderer_.getFeatures(e):new Promise((function(e){return e([])}))},t.prototype.getData=function(e){return this.renderer_&&this.rendered?this.renderer_.getData(e):null},t.prototype.render=function(e,t){var n=this.getRenderer();if(n.prepareFrame(e))return this.rendered=!0,n.renderFrame(e,t)},t.prototype.unrender=function(){this.rendered=!1},t.prototype.setMapInternal=function(e){e||this.unrender(),this.set(a.a.MAP,e)},t.prototype.getMapInternal=function(){return this.get(a.a.MAP)},t.prototype.setMap=function(e){this.mapPrecomposeKey_&&(Object(d.unlistenByKey)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(Object(d.unlistenByKey)(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=Object(d.listen)(e,s.a.PRECOMPOSE,(function(e){var t=e.frameState.layerStatesArray,n=this.getLayerState(!1);Object(l.a)(!t.some((function(e){return e.layer===n.layer})),67),t.push(n)}),this),this.mapRenderKey_=Object(d.listen)(this,o.a.CHANGE,e.render,e),this.changed())},t.prototype.setSource=function(e){this.set(a.a.SOURCE,e)},t.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},t.prototype.hasRenderer=function(){return!!this.renderer_},t.prototype.createRenderer=function(){return null},t.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),e.prototype.disposeInternal.call(this)},t}(i.a);function p(e,t){if(!e.visible)return!1;var n=t.resolution;if(n<e.minResolution||n>=e.maxResolution)return!1;var r=t.zoom;return r>e.minZoom&&r<=e.maxZoom}t.a=h},function(e,t,n){n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d}));var r,i=n(60),o=n(147),a=n(82),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this)||this;return n.on,n.once,n.un,t&&t.handleEvent&&(n.handleEvent=t.handleEvent),n.map_=null,n.setA
776ctive(!0),n}return s(t,e),t.prototype.getActive=function(){return this.get(o.a.ACTIVE)},t.prototype.getMap=function(){return this.map_},t.prototype.handleEvent=function(e){return!0},t.prototype.setActive=function(e){this.set(o.a.ACTIVE,e)},t.prototype.setMap=function(e){this.map_=e},t}(i.a);function c(e,t,n){var r=e.getCenterInternal();if(r){var i=[r[0]+t[0],r[1]+t[1]];e.animateInternal({duration:void 0!==n?n:250,easing:a.d,center:e.getConstrainedCenter(i)})}}function d(e,t,n,r){var i=e.getZoom();if(void 0!==i){var o=e.getConstrainedZoom(i+t),s=e.getResolutionForZoom(o);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:s,anchor:n,duration:void 0!==r?r:250,easing:a.b})}}t.a=l},function(e,t,n){t.a={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},function(e,t,n){n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return m}));var r=n(15),i=n(6),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(e){return"string"==typeof e?e:f(e)}function l(e){var t=document.createElement("div");if(t.style.color=e,""!==t.style.color){document.body.appendChild(t);var n=getComputedStyle(t).color;return document.body.removeChild(t),n}return""}var c,d,u=(c={},d=0,function(e){var t;if(c.hasOwnProperty(e))t=c[e];else{if(d>=1024){var n=0;for(var i in c)0==(3&n++)&&(delete c[i],--d)}t=function(e){var t,n,i,s,c;if(a.exec(e)&&(e=l(e)),o.exec(e)){var d,u=e.length-1;d=u<=4?1:2;var h=4===u||8===u;t=parseInt(e.substr(1+0*d,d),16),n=parseInt(e.substr(1+1*d,d),16),i=parseInt(e.substr(1+2*d,d),16),s=h?parseInt(e.substr(1+3*d,d),16):255,1==d&&(t=(t<<4)+t,n=(n<<4)+n,i=(i<<4)+i,h&&(s=(s<<4)+s)),c=[t,n,i,s/255]}else 0==e.indexOf("rgba(")?p(c=e.slice(5,-1).split(",").map(Number)):0==e.indexOf("rgb(")?((c=e.slice(4,-1).split(",").map(Number)).push(1),p(c)):Object(r.a)(!1,14);return c}(e),c[e]=t,++d}return t});function h(e){return Array.isArray(e)?e:u(e)}function p(e){return e[0]=Object(i.b)(e[0]+.5|0,0,255),e[1]=Object(i.b)(e[1]+.5|0,0,255),e[2]=Object(i.b)(e[2]+.5|0,0,255),e[3]=Object(i.b)(e[3],0,1),e}function f(e){var t=e[0];t!=(0|t)&&(t=t+.5|0);var n=e[1];n!=(0|n)&&(n=n+.5|0);var r=e[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+t+","+n+","+r+","+(void 0===e[3]?1:Math.round(100*e[3])/100)+")"}function m(e){return a.test(e)&&(e=l(e)),o.test(e)||0===e.indexOf("rgba(")||0===e.indexOf("rgb(")}},function(e,t,n){n.d(t,"b",(function(){return C}));var r,i,o=n(39),a=n(21),s=n(83),l=n(11),c=n(160),d=n(209),u=n(114),h=n(0),p=n(12),f=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t,n,r,i,o,l,c){var p=this,f=t.getExtent(),m=n.getExtent(),g=m?Object(h.getIntersection)(r,m):r,v=Object(h.getCenter)(g),y=Object(u.b)(t,n,v,i),b=s.b,_=new d.a(t,n,g,f,y*b,i),w=l(_.calculateSourceExtent(),y,o),x=w?a.a.IDLE:a.a.EMPTY,C=w?w.getPixelRatio():1;return(p=e.call(this,r,i,C,x)||this).targetProj_=n,p.maxSourceExtent_=f,p.triangulation_=_,p.targetResolution_=i,p.targetExtent_=r,p.sourceImage_=w,p.sourcePixelRatio_=C,p.interpolate_=c,p.canvas_=null,p.sourceListenerKey_=null,p}return f(t,e),t.prototype.disposeInternal=function(){this.state==a.a.LOADING&&this.unlistenSource_(),e.prototype.disposeInternal.call(this)},t.prototype.getImage=function(){return this.canvas_},t.prototype.getProjection=function(){return this.targetProj_},t.prototype.reproject_=function(){var e=this.sourceImage_.getState();if(e==a.a.LOADED){var t=Object(h.getWidth)(this.targetExtent_)/this.targetResolution_,n=Object(h.getHeight)(this.targetExtent_)/this.targetResolution_;this.canvas_=Object(u.d)(t,n,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=e,this.changed()},t.prototype.load=function(){if(this.state==a.a.IDLE){this.state=a.a.LOADING,this.changed();var e=this.sourceImage_.getState();e==a.a.LOADED||e==a.a.ERROR?this.reproject_():(this.sourceListenerKey_=Object(p.listen)(this.sourceImage_,l.a.CHANGE,(function(e){var t=this.sourceImage_.getState();t!=a.a.LOADED&&t!=a.a.ERROR||(this.unlistenSource_(),this.reproject_())}),this),this.sourceImage_.load())}},t.prototype.unlistenSource_=function(){Object(p.unlistenByKey)(this.sourceListenerKey_),this.sourceListenerKey_=null},t}(c.a),g=n(112),v=n(4),y=n(1),b=n(9),_=(i=function(e,t){return(i=Object.
776setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(e){function t(t,n){var r=e.call(this,t)||this;return r.image=n,r}return _(t,e),t}(o.a),x=function(e){function t(t){var n=this,r=void 0===t.imageSmoothing||t.imageSmoothing;return void 0!==t.interpolate&&(r=t.interpolate),(n=e.call(this,{attributions:t.attributions,projection:t.projection,state:t.state,interpolate:r})||this).on,n.once,n.un,n.resolutions_=void 0!==t.resolutions?t.resolutions:null,n.reprojectedImage_=null,n.reprojectedRevision_=0,n}return _(t,e),t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.findNearestResolution=function(e){if(this.resolutions_){var t=Object(b.h)(this.resolutions_,e,0);e=this.resolutions_[t]}return e},t.prototype.getImage=function(e,t,n,r){var i=this.getProjection();if(s.a&&i&&r&&!Object(y.equivalent)(i,r)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Object(y.equivalent)(this.reprojectedImage_.getProjection(),r)&&this.reprojectedImage_.getResolution()==t&&Object(h.equals)(this.reprojectedImage_.getExtent(),e))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new m(i,r,e,t,n,function(e,t,n){return this.getImageInternal(e,t,n,i)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return i&&(r=i),this.getImageInternal(e,t,n,r)},t.prototype.getImageInternal=function(e,t,n,r){return Object(v.b)()},t.prototype.handleImageChange=function(e){var t,n=e.target;switch(n.getState()){case a.a.LOADING:this.loading=!0,t="imageloadstart";break;case a.a.LOADED:this.loading=!1,t="imageloadend";break;case a.a.ERROR:this.loading=!1,t="imageloaderror";break;default:return}this.hasListener(t)&&this.dispatchEvent(new w(t,n))},t}(g.a);function C(e,t){e.getImage().src=t}t.a=x},function(e,t,n){var r,i=n(11),o=n(124),a=n(162),s=n(163),l=n(13),c=n(154),d=n(83),u=n(1),h=n(43),p=n(54),f=n(4),m=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e){function t(t){var n=this,r=void 0===t.imageSmoothing||t.imageSmoothing;return void 0!==t.interpolate&&(r=t.interpolate),(n=e.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:v,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:r,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this).crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,n.tileClass=void 0!==t.tileClass?t.tileClass:o.a,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,n.renderReprojectionEdges_=!1,n}return m(t,e),t.prototype.canExpireCache=function(){if(!d.a)return e.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},t.prototype.expireCache=function(t,n){if(d.a){var r=this.getTileCacheForProjection(t);for(var i in this.tileCache.expireCache(this.tileCache==r?n:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[i];o.expireCache(o==r?n:{})}}else e.prototype.expireCache.call(this,t,n)},t.prototype.getGutterForProjection=function(e){return d.a&&this.getProjection()&&e&&!Object(u.equivalent)(this.getProjection(),e)?0:this.getGutter()},t.prototype.getGutter=function(){return 0},t.prototype.getKey=function(){var t=e.prototype.getKey.call(this);return this.getInterpolate()||(t+=":disable-interpolation"),t},t.prototype.getOpaque=function(t){return!(d.a&&this.getProjection()&&t&&!Object(u.equivalent)(this.getProjection(),t))&&e.prototype.getOpaque.call(this,t)},t.prototype.getTileGridForProjection=function(t){if(!d.a)return e.prototype.getTileGridForProjection.call(this,t);var n=this.getProjection();if(!this.tileGrid||n&&!Object(u.equivalent)(n,t)){var r=Object(f.c)(t);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=Object(p.getForProjection)(t)),this.tileGridForProjection[r]}return this.tileGrid},t.prototype.getTileCacheForProjection=function(t){if(!d.a)return e.prototype.getTileCacheForProjection.call(this,t);var n=this.getProjection();if(!n||Object(u.equivalent)(n,t))return this.tileCache;var r=Object(f.c)(t);return r in this.tileCacheForProjection||(this.tileCacheForProjection[r]=new s.a(this.tileCache.highWaterMark)),this.tileCacheForProjection[r]},t.prototype.createTile_=function(e,t,n,r,o,a){var s=[e,t,n],c=this.getTileCoordForTileUrlFunction(s,o),d=c?this.tileUrlFunction(c,r,o):void 0,u=new this.tileClass(s,void 0!==d?l.a.IDLE:l.a.EMPTY,void 0!==d?d:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=a,u.addEventListener(i.a.CHANGE,this.handleTileChange.bind(this)),u},t.prototype.getTile=function(e,t,n,r,i){var o=this.getProjection();if(d.a&&o&&i&&!Object(u.equivalent)(o,i)){var s=this.getTileCacheForProjection(i),l=[e,t,n],c=void 0,p=Object(h.d)(l);s.containsKey(p)&&(c=s.get(p));var f=this.getKey();if(c&&c.key==f)return c;var m=this.getTileGridForProjection(o),g=this.getTileGridForProjection(i),v=this.getTileCoordForTileUrlFunction(l,i),y=new a.a(o,m,i,g,l,v,this.getTilePixelRatio(r),this.getGutter(),function(e,t,n,r){return this.getTileInternal(e,t,n,r,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return y.key=f,c?(y.interimTile=c,y.refreshInterimChain(),s.replace(p,y)):s.set(p,y),y}return this.getTileInternal(e,t,n,r,o||i)},t.prototype.getTileInternal=function(e,t,n,r,i){var o=null,a=Object(h.e)(e,t,n),s=this.getKey();if(this.tileCache.containsKey(a)){if((o=this.tileCache.get(a)).key!=s){var c=o;o=this.createTile_(e,t,n,r,i,s),c.getState()==l.a.IDLE?o.interimTile=c.interimTile:o.interimTile=c,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(e,t,n,r,i,s),this.tileCache.set(a,o);return o},t.prototype.setRenderReprojectionEdges=function(e){if(d.a&&this.renderReprojectionEdges_!=e){for(var t in this.renderReprojectionEdges_=e,this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}},t.prototype.setTileGridForProjection=function(e,t){if(d.a){var n=Object(u.get)(e);if(n){var r=Object(f.c)(n);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}},t}(c.a);function v(e,t){e.getImage().src=t}t.a=g},function(e,t,n){function r(e,t,n,r){for(var i=0,o=n.length;i<o;++i)e[t++]=n[i];return t}function i(e,t,n,r){for(var i=0,o=n.length;i<o;++i)for(var a=n[i],s=0;s<r;++s)e[t++]=a[s];return t}function o(e,t,n,r,o){for(var a=o||[],s=0,l=0,c=n.length;l<c;++l){var d=i(e,t,n[l],r);a[s++]=d,t=d}return a.length=s,a}function a(e,t,n,r,i){for(var a=i||[],s=0,l=0,c=n.length;l<c;++l){var d=o(e,t,n[l],r,a[s]);a[s++]=d,t=d[d.length-1]}return a.length=s,a}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}
776)),n.d(t,"d",(function(){return a}))},function(e,t,n){function r(e){return Math.pow(e,3)}function i(e){return 1-r(1-e)}function o(e){return 3*e*e-2*e*e*e}function a(e){return e}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}))},function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=.5,i=!0},function(e,t,n){t.a={FRACTION:"fraction",PIXELS:"pixels"}},function(e,t,n){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return d}));var r=n(15),i=n(6),o=n(43);function a(e,t){var n=/\{z\}/g,i=/\{x\}/g,o=/\{y\}/g,a=/\{-y\}/g;return function(s,l,c){return s?e.replace(n,s[0].toString()).replace(i,s[1].toString()).replace(o,s[2].toString()).replace(a,(function(){var e=s[0],n=t.getFullTileRange(e);return Object(r.a)(n,55),(n.getHeight()-s[2]-1).toString()})):void 0}}function s(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=a(e[i],t);return l(r)}function l(e){return 1===e.length?e[0]:function(t,n,r){if(t){var a=Object(o.f)(t),s=Object(i.g)(a,e.length);return e[s](t,n,r)}}}function c(e,t,n){}function d(e){var t=[],n=/\{([a-z])-([a-z])\}/.exec(e);if(n){var r=n[1].charCodeAt(0),i=n[2].charCodeAt(0),o=void 0;for(o=r;o<=i;++o)t.push(e.replace(n[0],String.fromCharCode(o)));return t}if(n=/\{(\d+)-(\d+)\}/.exec(e)){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)t.push(e.replace(n[0],s.toString()));return t}return t.push(e),t}},function(e,t,n){var r=n(110),i=n(93),o=n(15),a=n(6),s=n(0),l=n(43),c=n(117),d=n(9),u=n(30),h=[0,0,0],p=function(){function e(e){var t;if(this.minZoom=void 0!==e.minZoom?e.minZoom:0,this.resolutions_=e.resolutions,Object(o.a)(Object(d.g)(this.resolutions_,(function(e,t){return t-e}),!0),17),!e.origins)for(var n=0,a=this.resolutions_.length-1;n<a;++n)if(t){if(this.resolutions_[n]/this.resolutions_[n+1]!==t){t=void 0;break}}else t=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=t,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==e.origin?e.origin:null,this.origins_=null,void 0!==e.origins&&(this.origins_=e.origins,Object(o.a)(this.origins_.length==this.resolutions_.length,20));var l=e.extent;void 0===l||this.origin_||this.origins_||(this.origin_=Object(s.getTopLeft)(l)),Object(o.a)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==e.tileSizes&&(this.tileSizes_=e.tileSizes,Object(o.a)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==e.tileSize?e.tileSize:this.tileSizes_?null:i.b,Object(o.a)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==l?l:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==e.sizes?this.fullTileRanges_=e.sizes.map((function(e,t){var n=new r.b(Math.min(0,e[0]),Math.max(e[0]-1,-1),Math.min(0,e[1]),Math.max(e[1]-1,-1));if(l){var i=this.getTileRangeForExtentAndZ(l,t);n.minX=Math.max(i.minX,n.minX),n.maxX=Math.min(i.maxX,n.maxX),n.minY=Math.max(i.minY,n.minY),n.maxY=Math.min(i.maxY,n.maxY)}return n}),this):l&&this.calculateTileRanges_(l)}return e.prototype.forEachTileCoord=function(e,t,n){for(var r=this.getTileRangeForExtentAndZ(e,t),i=r.minX,o=r.maxX;i<=o;++i)for(var a=r.minY,s=r.maxY;a<=s;++a)n([t,i,a])},e.prototype.forEachTileCoordParentTileRange=function(e,t,n,i){var o,a,s,l=null,c=e[0]-1;for(2===this.zoomFactor_?(a=e[1],s=e[2]):l=this.getTileCoordExtent(e,i);c>=this.minZoom;){if(2===this.zoomFactor_?(a=Math.floor(a/2),s=Math.floor(s/2),o=Object(r.a)(a,a,s,s,n)):o=this.getTileRangeForExtentAndZ(l,c,n),t(c,o))return!0;--c}return!1},e.prototype.getExtent=function(){return this.extent_},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.getMinZoom=function(){return this.minZoom},e.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},e.prototype.getResolution=function(e){return this.resolutions_[e]},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getTileCoordChildTileRange=function(e,t,n){if(e[0]<this.maxZoom){if(2===this.zoomFactor_){var i=2*e[1],o=2*e[2];return Object(r.a)(i,i+1,o,o+1,t)}var a=this.getTileCoordExtent(e,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,e[0]+1,t)}return null},e.prototype.getTileRangeForTileCoordAndZ=function(e,t,n){if(t>this.maxZoom||t<this.minZoom)return null;var i=e[0],o=e[1],a=e[2];if(t===i)return Object(r.a)(o,a,o,a,n);if(this.zoomFactor_){var s=Math.pow(this.zoomFactor_,t-i),l=Math.floor(o*s),c=Math.floor(a*s);if(t<i)return Object(r.a)(l,l,c,c,n);var d=Math.floor(s*(o+1))-1,u=Math.floor(s*(a+1))-1;return Object(r.a)(l,d,c,u,n)}var h=this.getTileCoordExtent(e,this.tmpExtent_);return this.getTileRangeForExtentAndZ(h,t,n)},e.prototype.getTileRangeExtent=function(e,t,n){var r=this.getOrigin(e),i=this.getResolution(e),o=Object(u.d)(this.getTileSize(e),this.tmpSize_),a=r[0]+t.minX*o[0]*i,l=r[0]+(t.maxX+1)*o[0]*i,c=r[1]+t.minY*o[1]*i,d=r[1]+(t.maxY+1)*o[1]*i;return Object(s.createOrUpdate)(a,c,l,d,n)},e.prototype.getTileRangeForExtentAndZ=function(e,t,n){var i=h;this.getTileCoordForXYAndZ_(e[0],e[3],t,!1,i);var o=i[1],a=i[2];return this.getTileCoordForXYAndZ_(e[2],e[1],t,!0,i),Object(r.a)(o,i[1],a,i[2],n)},e.prototype.getTileCoordCenter=function(e){var t=this.getOrigin(e[0]),n=this.getResolution(e[0]),r=Object(u.d)(this.getTileSize(e[0]),this.tmpSize_);return[t[0]+(e[1]+.5)*r[0]*n,t[1]-(e[2]+.5)*r[1]*n]},e.prototype.getTileCoordExtent=function(e,t){var n=this.getOrigin(e[0]),r=this.getResolution(e[0]),i=Object(u.d)(this.getTileSize(e[0]),this.tmpSize_),o=n[0]+e[1]*i[0]*r,a=n[1]-(e[2]+1)*i[1]*r,l=o+i[0]*r,c=a+i[1]*r;return Object(s.createOrUpdate)(o,a,l,c,t)},e.prototype.getTileCoordForCoordAndResolution=function(e,t,n){return this.getTileCoordForXYAndResolution_(e[0],e[1],t,!1,n)},e.prototype.getTileCoordForXYAndResolution_=function(e,t,n,r,i){var o=this.getZForResolution(n),s=n/this.getResolution(o),c=this.getOrigin(o),d=Object(u.d)(this.getTileSize(o),this.tmpSize_),h=s*(e-c[0])/n/d[0],p=s*(c[1]-t)/n/d[1];return r?(h=Object(a.a)(h,5)-1,p=Object(a.a)(p,5)-1):(h=Object(a.d)(h,5),p=Object(a.d)(p,5)),Object(l.a)(o,h,p,i)},e.prototype.getTileCoordForXYAndZ_=function(e,t,n,r,i){var o=this.getOrigin(n),s=this.getResolution(n),c=Object(u.d)(this.getTileSize(n),this.tmpSize_),d=(e-o[0])/s/c[0],h=(o[1]-t)/s/c[1];return r?(d=Object(a.a)(d,5)-1,h=Object(a.a)(h,5)-1):(d=Object(a.d)(d,5),h=Object(a.d)(h,5)),Object(l.a)(n,d,h,i)},e.prototype.getTileCoordForCoordAndZ=function(e,t,n){return this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,n)},e.prototype.getTileCoordResolution=function(e){return this.resolutions_[e[0]]},e.prototype.getTileSize=function(e){return this.tileSize_?this.tileSize_:this.tileSizes_[e]},e.prototype.getFullTileRange=function(e){return this.fullTileRanges_?this.fullTileRanges_[e]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,e):null},e.prototype.getZForResolution=function(e,t){var n=Object(d.h)(this.resolutions_,e,t||0);return Object(a.b)(n,this.minZoom,this.maxZoom)},e.prototype.tileCoordIntersectsViewport=function(e,t){return Object(c.c)(t,0,t.length,2,this.getTileCoordExtent(e))},e.prototype.calculateTileRanges_=function(e){for(var t=this.resolutions_.length,n=new Array(t),r=this.minZoom;r<t;++r)n[r]=this.getTileRangeForExtentAndZ(e,r);this.fullTileRanges_=n},e}();t.a=p},function(e,t,n){n.r(t),n.d(t,"coordAll",(function(){return d})),n.d(t,"coordEach",(function(){return i})),n.d(t,"coordReduce",(function(){return o}
776)),n.d(t,"featureEach",(function(){return l})),n.d(t,"featureReduce",(function(){return c})),n.d(t,"findPoint",(function(){return _})),n.d(t,"findSegment",(function(){return b})),n.d(t,"flattenEach",(function(){return p})),n.d(t,"flattenReduce",(function(){return f})),n.d(t,"geomEach",(function(){return u})),n.d(t,"geomReduce",(function(){return h})),n.d(t,"lineEach",(function(){return v})),n.d(t,"lineReduce",(function(){return y})),n.d(t,"propEach",(function(){return a})),n.d(t,"propReduce",(function(){return s})),n.d(t,"segmentEach",(function(){return m})),n.d(t,"segmentReduce",(function(){return g}));var r=n(36);function i(e,t,n){if(null!==e)for(var r,o,a,s,l,c,d,u,h=0,p=0,f=e.type,m="FeatureCollection"===f,g="Feature"===f,v=m?e.features.length:1,y=0;y<v;y++){l=(u=!!(d=m?e.features[y].geometry:g?e.geometry:e)&&"GeometryCollection"===d.type)?d.geometries.length:1;for(var b=0;b<l;b++){var _=0,w=0;if(null!==(s=u?d.geometries[b]:d)){c=s.coordinates;var x=s.type;switch(h=!n||"Polygon"!==x&&"MultiPolygon"!==x?0:1,x){case null:break;case"Point":if(!1===t(c,p,y,_,w))return!1;p++,_++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===t(c[r],p,y,_,w))return!1;p++,"MultiPoint"===x&&_++}"LineString"===x&&_++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(o=0;o<c[r].length-h;o++){if(!1===t(c[r][o],p,y,_,w))return!1;p++}"MultiLineString"===x&&_++,"Polygon"===x&&w++}"Polygon"===x&&_++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for(w=0,o=0;o<c[r].length;o++){for(a=0;a<c[r][o].length-h;a++){if(!1===t(c[r][o][a],p,y,_,w))return!1;p++}w++}_++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(!1===i(s.geometries[r],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(e,t,n,r){var o=n;return i(e,(function(e,r,i,a,s){o=0===r&&void 0===n?e:t(o,e,r,i,a,s)}),r),o}function a(e,t){var n;switch(e.type){case"FeatureCollection":for(n=0;n<e.features.length&&!1!==t(e.features[n].properties,n);n++);break;case"Feature":t(e.properties,0)}}function s(e,t,n){var r=n;return a(e,(function(e,i){r=0===i&&void 0===n?e:t(r,e,i)})),r}function l(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var n=0;n<e.features.length&&!1!==t(e.features[n],n);n++);}function c(e,t,n){var r=n;return l(e,(function(e,i){r=0===i&&void 0===n?e:t(r,e,i)})),r}function d(e){var t=[];return i(e,(function(e){t.push(e)})),t}function u(e,t){var n,r,i,o,a,s,l,c,d,u,h=0,p="FeatureCollection"===e.type,f="Feature"===e.type,m=p?e.features.length:1;for(n=0;n<m;n++){for(s=p?e.features[n].geometry:f?e.geometry:e,c=p?e.features[n].properties:f?e.properties:{},d=p?e.features[n].bbox:f?e.bbox:void 0,u=p?e.features[n].id:f?e.id:void 0,a=(l=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,i=0;i<a;i++)if(null!==(o=l?s.geometries[i]:s))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(o,h,c,d,u))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===t(o.geometries[r],h,c,d,u))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,h,c,d,u))return!1;h++}}function h(e,t,n){var r=n;return u(e,(function(e,i,o,a,s){r=0===i&&void 0===n?e:t(r,e,i,o,a,s)})),r}function p(e,t){u(e,(function(e,n,i,o,a){var s,l=null===e?null:e.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==t(Object(r.feature)(e,i,{bbox:o,id:a}),n,0)&&void 0}switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}for(var c=0;c<e.coordinates.length;c++){var d={type:s,coordinates:e.coordinates[c]};if(!1===t(Object(r.feature)(d,i),n,c))return!1}}))}function f(e,t,n){var r=n;return p(e,(function(e,i,o){r=0===i&&0===o&&void 0===n?e:t(r,e,i,o)})),r}function m(e,t){p(e,(function(e,n,o){var a=0;if(e.geometry){var s=e.geometry.type;if("Point"!==s&&"MultiPoint"!==s){var l,c=0,d=0,u=0;return!1!==i(e,(function(i,s,h,p,f){if(void 0===l||n>c||p>d||f>u)return l=i,c=n,d=p,u=f,void(a=0);var m=Object(r.lineString)([l,i],e.properties);if(!1===t(m,n,o,f,a))return!1;a++,l=i}))&&void 0}}}))}function g(e,t,n){var r=n,i=!1;return m(e,(function(e,o,a,s,l){r=!1===i&&void 0===n?e:t(r,e,o,a,s,l),i=!0})),r}function v(e,t){if(!e)throw new Error("geojson is required");p(e,(function(e,n,i){if(null!==e.geometry){var o=e.geometry.type,a=e.geometry.coordinates;switch(o){case"LineString":if(!1===t(e,n,i,0,0))return!1;break;case"Polygon":for(var s=0;s<a.length;s++)if(!1===t(Object(r.lineString)(a[s],e.properties),n,i,s))return!1}}}))}function y(e,t,n){var r=n;return v(e,(function(e,i,o,a){r=0===i&&void 0===n?e:t(r,e,i,o,a)})),r}function b(e,t){if(t=t||{}
776,!Object(r.isObject)(t))throw new Error("options is invalid");var n,i=t.featureIndex||0,o=t.multiFeatureIndex||0,a=t.geometryIndex||0,s=t.segmentIndex||0,l=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),l=l||e.features[i].properties,n=e.features[i].geometry;break;case"Feature":l=l||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=c.length+s-1),Object(r.lineString)([c[s],c[s+1]],l,t);case"Polygon":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s-1),Object(r.lineString)([c[a][s],c[a][s+1]],l,t);case"MultiLineString":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s-1),Object(r.lineString)([c[o][s],c[o][s+1]],l,t);case"MultiPolygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),s<0&&(s=c[o][a].length-s-1),Object(r.lineString)([c[o][a][s],c[o][a][s+1]],l,t)}throw new Error("geojson is invalid")}function _(e,t){if(t=t||{},!Object(r.isObject)(t))throw new Error("options is invalid");var n,i=t.featureIndex||0,o=t.multiFeatureIndex||0,a=t.geometryIndex||0,s=t.coordIndex||0,l=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),l=l||e.features[i].properties,n=e.features[i].geometry;break;case"Feature":l=l||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":return Object(r.point)(c,l,t);case"MultiPoint":return o<0&&(o=c.length+o),Object(r.point)(c[o],l,t);case"LineString":return s<0&&(s=c.length+s),Object(r.point)(c[s],l,t);case"Polygon":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s),Object(r.point)(c[a][s],l,t);case"MultiLineString":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),Object(r.point)(c[o][s],l,t);case"MultiPolygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),s<0&&(s=c[o][a].length-s),Object(r.point)(c[o][a][s],l,t)}throw new Error("geojson is invalid")}},function(e,t,n){var r=n(244);function i(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=i=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(this,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n.r(t),n.d(t,"Attribution",(function(){return f})),n.d(t,"Control",(function(){return s.a})),n.d(t,"FullScreen",(function(){return A})),n.d(t,"MousePosition",(function(){return D})),n.d(t,"OverviewMap",(function(){return X})),n.d(t,"Rotate",(function(){return y})),n.d(t,"ScaleLine",(function(){return ne})),n.d(t,"Zoom",(function(){return _})),n.d(t,"ZoomSlider",(function(){return ae})),n.d(t,"ZoomToExtent",(function(){return le})),n.d(t,"defaults",(function(){return ce}));var r,i,o,a,s=n(50),l=n(11),c=n(38),d=n(9),u=n(75),h=n(23),p=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this).ulElement_=document.createElement("ul"),n.collapsed_=void 0===r.collapsed||r.collapsed,n.userCollapsed_=n.collapsed_,n.overrideCollapsible_=void 0!==r.collapsible,n.collapsible_=void 0===r.collapsible||r.collapsible,n.collapsible_||(n.collapsed_=!1);var i=void 0!==r.className?r.className:"ol-attribution",o=void 0!==r.tipLabel?r.tipLabel:"Attributions",a=void 0!==r.expandClassName?r.expandClassName:i+"-expand",s=void 0!==r.collapseLabel?r.collapseLabel:"âº",d=void 0!==r.collapseClassName?r.collapseClassName:i+"-collapse";"string"==typeof s?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=s,n.c
776ollapseLabel_.className=d):n.collapseLabel_=s;var u=void 0!==r.label?r.label:"i";"string"==typeof u?(n.label_=document.createElement("span"),n.label_.textContent=u,n.label_.className=a):n.label_=u;var h=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_;n.toggleButton_=document.createElement("button"),n.toggleButton_.setAttribute("type","button"),n.toggleButton_.setAttribute("aria-expanded",String(!n.collapsed_)),n.toggleButton_.title=o,n.toggleButton_.appendChild(h),n.toggleButton_.addEventListener(l.a.CLICK,n.handleClick_.bind(n),!1);var p=i+" "+c.e+" "+c.b+(n.collapsed_&&n.collapsible_?" "+c.a:"")+(n.collapsible_?"":" ol-uncollapsible"),f=n.element;return f.className=p,f.appendChild(n.toggleButton_),f.appendChild(n.ulElement_),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return p(t,e),t.prototype.collectSourceAttributions_=function(e){for(var t={},n=[],r=!0,i=e.layerStatesArray,o=0,a=i.length;o<a;++o){var s=i[o];if(Object(u.b)(s,e.viewState)){var l=s.layer.getSource();if(l){var c=l.getAttributions();if(c){var d=c(e);if(d)if(r=r&&!1!==l.getAttributionsCollapsible(),Array.isArray(d))for(var h=0,p=d.length;h<p;++h)d[h]in t||(n.push(d[h]),t[d[h]]=!0);else d in t||(n.push(d),t[d]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(r),n},t.prototype.updateElement_=function(e){if(e){var t=this.collectSourceAttributions_(e),n=t.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Object(d.b)(t,this.renderedAttributions_)){Object(h.e)(this.ulElement_);for(var r=0,i=t.length;r<i;++r){var o=document.createElement("li");o.innerHTML=t[r],this.ulElement_.appendChild(o)}this.renderedAttributions_=t}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t.prototype.handleClick_=function(e){e.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},t.prototype.handleToggle_=function(){this.element.classList.toggle(c.a),this.collapsed_?Object(h.h)(this.collapseLabel_,this.label_):Object(h.h)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(e){this.userCollapsed_=e,this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t.prototype.render=function(e){this.updateElement_(e.frameState)},t}(s.a),m=n(37),g=n(82),v=(a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this;var i=void 0!==r.className?r.className:"ol-rotate",o=void 0!==r.label?r.label:"â§",a=void 0!==r.compassClassName?r.compassClassName:"ol-compass";n.label_=null,"string"==typeof o?(n.label_=document.createElement("span"),n.label_.className=a,n.label_.textContent=o):(n.label_=o,n.label_.classList.add(a));var s=r.tipLabel?r.tipLabel:"Reset rotation",d=document.createElement("button");d.className=i+"-reset",d.setAttribute("type","button"),d.title=s,d.appendChild(n.label_),d.addEventListener(l.a.CLICK,n.handleClick_.bind(n),!1);var u=i+" "+c.e+" "+c.b,h=n.element;return h.className=u,h.appendChild(d),n.callResetNorth_=r.resetNorth?r.resetNorth:void 0,n.duration_=void 0!==r.duration?r.duration:250,n.autoHide_=void 0===r.autoHide||r.autoHide,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(c.c),n}return v(t,e),t.prototype.handleClick_=function(e){e.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},t.prototype.resetNorth_=function(){var e=this.getMap().getView();if(e){var t=e.getRotation();void 0!==t&&(this.duration_>0&&t%(2*Math.PI)!=0?e.animate({rotation:0,duration:this.duration_,easing:g.b}):e.setRotation(0))}},t.prototype.render=function(e){var t=e.frameState;if(t){var n=t.viewState.rotation;if(n!=this.rotation_){var r="rotate("+n+"rad)";if(this.autoHide_){var i=this.element.classList.contains(c.c);i||0!==n?i&&0!==n&&this.element.classList.remove(c.c):this.element.classList.add(c.c)}this.label_.style.transform=r}this.rotation_=n}},t}
776(s.a),b=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),target:r.target})||this;var i=void 0!==r.className?r.className:"ol-zoom",o=void 0!==r.delta?r.delta:1,a=void 0!==r.zoomInClassName?r.zoomInClassName:i+"-in",s=void 0!==r.zoomOutClassName?r.zoomOutClassName:i+"-out",d=void 0!==r.zoomInLabel?r.zoomInLabel:"+",u=void 0!==r.zoomOutLabel?r.zoomOutLabel:"â",h=void 0!==r.zoomInTipLabel?r.zoomInTipLabel:"Zoom in",p=void 0!==r.zoomOutTipLabel?r.zoomOutTipLabel:"Zoom out",f=document.createElement("button");f.className=a,f.setAttribute("type","button"),f.title=h,f.appendChild("string"==typeof d?document.createTextNode(d):d),f.addEventListener(l.a.CLICK,n.handleClick_.bind(n,o),!1);var m=document.createElement("button");m.className=s,m.setAttribute("type","button"),m.title=p,m.appendChild("string"==typeof u?document.createTextNode(u):u),m.addEventListener(l.a.CLICK,n.handleClick_.bind(n,-o),!1);var g=i+" "+c.e+" "+c.b,v=n.element;return v.className=g,v.appendChild(f),v.appendChild(m),n.duration_=void 0!==r.duration?r.duration:250,n}return b(t,e),t.prototype.handleClick_=function(e,t){t.preventDefault(),this.zoomByDelta_(e)},t.prototype.zoomByDelta_=function(e){var t=this.getMap().getView();if(t){var n=t.getZoom();if(void 0!==n){var r=t.getConstrainedZoom(n+e);this.duration_>0?(t.getAnimating()&&t.cancelAnimations(),t.animate({zoom:r,duration:this.duration_,easing:g.b})):t.setZoom(r)}}},t}(s.a),w=n(62),x=n(12),C=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];function E(e){var t=e.body;return!!(t.webkitRequestFullscreen||t.msRequestFullscreen&&e.msFullscreenEnabled||t.requestFullscreen&&e.fullscreenEnabled)}function k(e){return!!(e.webkitIsFullScreen||e.msFullscreenElement||e.fullscreenElement)}function T(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()}var O,$,P,I,L,A=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,{element:document.createElement("div"),target:r.target})||this).on,n.once,n.un,n.keys_=void 0!==r.keys&&r.keys,n.source_=r.source,n.isInFullscreen_=!1,n.boundHandleMapTargetChange_=n.handleMapTargetChange_.bind(n),n.cssClassName_=void 0!==r.className?r.className:"ol-full-screen",n.documentListeners_=[],n.activeClassName_=void 0!==r.activeClassName?r.activeClassName.split(" "):[n.cssClassName_+"-true"],n.inactiveClassName_=void 0!==r.inactiveClassName?r.inactiveClassName.split(" "):[n.cssClassName_+"-false"];var i=void 0!==r.label?r.label:"⤢";n.labelNode_="string"==typeof i?document.createTextNode(i):i;var o=void 0!==r.labelActive?r.labelActive:"Ã";n.labelActiveNode_="string"==typeof o?document.createTextNode(o):o;var a=r.tipLabel?r.tipLabel:"Toggle full-screen";return n.button_=document.createElement("button"),n.button_.title=a,n.button_.setAttribute("type","button"),n.button_.appendChild(n.labelNode_),n.button_.addEventListener(l.a.CLICK,n.handleClick_.bind(n),!1),n.setClassName_(n.button_,n.isInFullscreen_),n.element.className="".concat(n.cssClassName_," ").concat(c.e," ").concat(c.b),n.element.appendChild(n.button_),n}return C(t,e),t.prototype.handleClick_=function(e){e.preventDefault(),this.handleFullScreen_()},t.prototype.handleFullScreen_=function(){var e=this.getMap();if(e){var t=e.getOwnerDocument();if(E(t))if(k(t))!function(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen&&e.webkitExitFullscreen()}(t);else{var n;n=this.source_?"string"==typeof this.source_?t.getElementById(this.source_):this.source_:e.getTargetElement(),this.keys_?function(e){e.webkitRequestFullscreen?e.webkitRequestFullscreen():T(e)}(n):T(n)}}},t.prototype.handleFullScreenChange_=function(){var e=this.getMap();if(e){var t=this.isInFullscreen_;this.isInFullscreen_=k(e.getOwnerDocument()),t!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(Object(h.h)(this.labelActiveNode_,this.labelNode_),this.dispatchEvent("enterfullscreen")):(Object(h.h)(this.labelNode_,this.labelActiveNode_),this.dispatchEvent("leavefullscreen")),e.updateSize())}},t.prototype.setClassName_=function(e,t){var n,r,i,o;t?((n=e.classList).remove.apply(n,this.inactiveClassName_),(r=e.classList).add.apply(r,this.activeClassName_)):((i=e.classList).remove.apply(i,this.activeClassName_),(o=e.classList).add.apply(o,this.inactiveClassName_))},t.prototype.setMap=function(t){var n=this.getMap();n&&n.removeChangeListener(w.a.TARGET,this.boundHandleMapTargetChange_),e.prototype.setMap.call(this,t),this.handleMapTargetChange_(),t&&t.addChangeListener(w.a.TARGET,this.boundHandleMapTargetChange_)},t.prototype.handleMapTargetChange_=function(){for(var e=this.documentListeners_,t=0,n=e.length;t<n;++t)Object(x.unlistenByKey)(e[t]);e.length=0;var r=this.getMap();if(r){var i=r.getOwnerDocument();for(E(i)?this.element.classList.remove(c.f):this.element.classList.add(c.f),t=0,n=S.length;t<n;++t)e.push(Object(x.listen)(i,S[t],this.handleFullScreenChange_,this));this.handleFullScreenChange_()}},t}
776(s.a),M=n(97),j=n(1),R=(L=function(e,t){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),D=function(e){function t(t){var n=this,r=t||{},i=document.createElement("div");i.className=void 0!==r.className?r.className:"ol-mouse-position",(n=e.call(this,{element:i,render:r.render,target:r.target})||this).on,n.once,n.un,n.addChangeListener("projection",n.handleProjectionChanged_),r.coordinateFormat&&n.setCoordinateFormat(r.coordinateFormat),r.projection&&n.setProjection(r.projection);var o=!0,a=" ";return"undefinedHTML"in r?(void 0!==r.undefinedHTML&&(a=r.undefinedHTML),o=!!a):"placeholder"in r&&(!1===r.placeholder?o=!1:a=String(r.placeholder)),n.placeholder_=a,n.renderOnMouseOut_=o,n.renderedHTML_=i.innerHTML,n.mapProjection_=null,n.transform_=null,n}return R(t,e),t.prototype.handleProjectionChanged_=function(){this.transform_=null},t.prototype.getCoordinateFormat=function(){return this.get("coordinateFormat")},t.prototype.getProjection=function(){return this.get("projection")},t.prototype.handleMouseMove=function(e){var t=this.getMap();this.updateHTML_(t.getEventPixel(e))},t.prototype.handleMouseOut=function(e){this.updateHTML_(null)},t.prototype.setMap=function(t){if(e.prototype.setMap.call(this,t),t){var n=t.getViewport();this.listenerKeys.push(Object(x.listen)(n,M.a.POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(x.listen)(n,M.a.POINTEROUT,this.handleMouseOut,this)),this.updateHTML_(null)}},t.prototype.setCoordinateFormat=function(e){this.set("coordinateFormat",e)},t.prototype.setProjection=function(e){this.set("projection",Object(j.get)(e))},t.prototype.updateHTML_=function(e){var t=this.placeholder_;if(e&&this.mapProjection_){if(!this.transform_){var n=this.getProjection();this.transform_=n?Object(j.getTransformFromProjections)(this.mapProjection_,n):j.identityTransform}var r=this.getMap().getCoordinateFromPixelInternal(e);if(r){var i=Object(j.getUserProjection)();i&&(this.transform_=Object(j.getTransformFromProjections)(this.mapProjection_,i)),this.transform_(r,r);var o=this.getCoordinateFormat();t=o?o(r):r.toString()}}this.renderedHTML_&&t===this.renderedHTML_||(this.element.innerHTML=t,this.renderedHTML_=t)},t.prototype.render=function(e){var t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null},t}(s.a),F=n(219),N=n(96),B=n(100),U=n(166),z=n(218),G=n(98),V=n(91),q=n(0),H=n(22),W=(I=function(e,t){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}I(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return W(t,e),t.prototype.createRenderer=function(){return new F.a(this)},t}(z.a),X=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this).boundHandleRotationChanged_=n.handleRotationChanged_.bind(n),n.collapsed_=void 0===r.collapsed||r.collapsed,n.collapsible_=void 0===r.collapsible||r.collapsible,n.collapsible_||(n.collapsed_=!1),n.rotateWithView_=void 0!==r.rotateWithView&&r.rotateWithView,n.viewExtent_=void 0;var i=void 0!==r.className?r.className:"ol-overviewmap",o=void 0!==r.tipLabel?r.tipLabel:"Overview map",a=void 0!==r.collapseLabel?r.collapseLabel:"â¹";"string"==typeof a?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=a):n.collapseLabel_=a;var s=void 0!==r.label?r.label:"âº";"string"==typeof s?(n.label_=document.createElement("span"),n.label_.textContent=s):n.label_=s;var d=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_,u=document.createElement("button");u.setAttribute("type","button"),u.title=o,u.appendChild(d),u.addEventListener(l.a.CLICK,n.handleClick_.bind(n),!1),n.ovmapDiv_=document.createElement("div"),n.ovmapDiv_.className="ol-overviewmap-map",n.view_=r.view,n.ovmap_=new Y({view:r.view});var h=n.ovmap_;
776r.layers&&r.layers.forEach((function(e){h.addLayer(e)}));var p=document.createElement("div");p.className="ol-overviewmap-box",p.style.boxSizing="border-box",n.boxOverlay_=new U.a({position:[0,0],positioning:"center-center",element:p}),n.ovmap_.addOverlay(n.boxOverlay_);var f=i+" "+c.e+" "+c.b+(n.collapsed_&&n.collapsible_?" "+c.a:"")+(n.collapsible_?"":" ol-uncollapsible"),m=n.element;m.className=f,m.appendChild(n.ovmapDiv_),m.appendChild(u);var g=n,v=n.boxOverlay_,y=n.boxOverlay_.getElement(),b=function(e){var t,n={clientX:(t=e).clientX,clientY:t.clientY},r=h.getEventCoordinateInternal(n);v.setPosition(r)},_=function e(t){var n=h.getEventCoordinateInternal(t);g.getMap().getView().setCenterInternal(n),window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",e)};return y.addEventListener("mousedown",(function(){window.addEventListener("mousemove",b),window.addEventListener("mouseup",_)})),n}return W(t,e),t.prototype.setMap=function(t){var n=this.getMap();if(t!==n){if(n){var r=n.getView();r&&this.unbindView_(r),this.ovmap_.setTarget(null)}if(e.prototype.setMap.call(this,t),t){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(Object(x.listen)(t,B.a.PROPERTYCHANGE,this.handleMapPropertyChange_,this));var i=t.getView();i&&(this.bindView_(i),i.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}},t.prototype.handleMapPropertyChange_=function(e){if(e.key===w.a.VIEW){var t=e.oldValue;t&&this.unbindView_(t);var n=this.getMap().getView();this.bindView_(n)}else this.ovmap_.isRendered()||e.key!==w.a.TARGET&&e.key!==w.a.SIZE||this.ovmap_.updateSize()},t.prototype.bindView_=function(e){if(!this.view_){var t=new G.a({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(V.a.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()},t.prototype.unbindView_=function(e){e.removeChangeListener(V.a.ROTATION,this.boundHandleRotationChanged_)},t.prototype.handleRotationChanged_=function(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())},t.prototype.validateExtent_=function(){var e=this.getMap(),t=this.ovmap_;if(e.isRendered()&&t.isRendered()){var n=e.getSize(),r=e.getView().calculateExtentInternal(n);if(!this.viewExtent_||!Object(q.equals)(r,this.viewExtent_)){this.viewExtent_=r;var i=t.getSize(),o=t.getView().calculateExtentInternal(i),a=t.getPixelFromCoordinateInternal(Object(q.getTopLeft)(r)),s=t.getPixelFromCoordinateInternal(Object(q.getBottomRight)(r)),l=Math.abs(a[0]-s[0]),c=Math.abs(a[1]-s[1]),d=i[0],u=i[1];l<.1*d||c<.1*u||l>.75*d||c>.75*u?this.resetExtent_():Object(q.containsExtent)(o,r)||this.recenter_()}}},t.prototype.resetExtent_=function(){var e=this.getMap(),t=this.ovmap_,n=e.getSize(),r=e.getView().calculateExtentInternal(n),i=t.getView(),o=Math.log(7.5)/Math.LN2,a=1/(.1*Math.pow(2,o/2));Object(q.scaleFromCenter)(r,a),i.fitInternal(Object(H.c)(r))},t.prototype.recenter_=function(){var e=this.getMap(),t=this.ovmap_,n=e.getView();t.getView().setCenterInternal(n.getCenterInternal())},t.prototype.updateBox_=function(){var e=this.getMap(),t=this.ovmap_;if(e.isRendered()&&t.isRendered()){var n=e.getSize(),r=e.getView(),i=t.getView(),o=this.rotateWithView_?0:-r.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=r.getCenterInternal(),c=r.getResolution(),d=i.getResolution(),u=n[0]*c/d,h=n[1]*c/d;if(a.setPosition(l),s){s.style.width=u+"px",s.style.height=h+"px";var p="rotate("+o+"rad)";s.style.transform=p}}},t.prototype.updateBoxAfterOvmapIsRendered_=function(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=Object(x.listenOnce)(this.ovmap_,N.a.POSTRENDER,(function(e){delete this.ovmapPostrenderKey_,this.updateBox_()}),this))},t.prototype.handleClick_=function(e){e.preventDefault(),this.handleToggle_()},t.prototype.handleToggle_=function(){this.element.classList.toggle(c.a),this.collapsed_?Object(h.h)(this.collapseLabel_,this.label_):Object(h.h)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var e=this.ovmap_;if(!this.collapsed_){if(e.isRendered())return this.viewExtent_=void 0,void e.render();e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(e){this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.setRotateWithView=function(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},t.prototype.getOverviewMap=function(){return this.ovmap_},t.prototype.render=function(e){this.validateExtent_(),this.updateBox_()},t}(s.a),K=n(46),Z=n(15),J=(P=function(e,t){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}P(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Q="degrees",ee="metric",te=[1,2,5],ne=function(e){function t(t){var n=this,r=t||{},i=void 0!==r.className?r.className:r.bar?"ol-scale-bar":"ol-scale-line";return(n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this).on,n.once,n.un,n.innerElement_=document.createElement("div"),n.innerElement_.className=i+"-inner",n.element.className=i+" "+c.e,n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=void 0!==r.minWidth?r.minWidth:64,n.maxWidth_=r.maxWidth,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addChangeListener("units",n.handleUnitsChanged_),n.setUnits(r.units||ee),n.scaleBar_=r.bar||!1,n.scaleBarSteps_=r.steps||4,n.scaleBarText_=r.text||!1,n.dpi_=r.dpi||void 0,n}return J(t,e),t.prototype.getUnits=function(){return this.get("units")},t.prototype.handleUnitsChanged_=function(){this.updateElement_()},t.prototype.setUnits=function(e){this.set("units",e)},t.prototype.setDpi=function(e){this.dpi_=e},t.prototype.updateElement_=function(){var e=this.viewState_;if(e){var t=e.center,n=e.projection,r=this.getUnits(),i=r==Q?K.b.DEGREES:K.b.METERS,o=Object(j.getPointResolution)(n,e.resolution,t,i),a=this.minWidth_*(this.dpi_||25.4/.28)/(25.4/.28),s=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||25.4/.28)/(25.4/.28):void 0,l=a*o,c="";if(r==Q){var d=j.METERS_PER_UNIT[K.b.DEGREES];(l*=d)<d/60?(c="â³",o*=3600):l<d?(c="â²",o*=60):c="°"}else"imperial"==r?l<.9144?(c="in",o/=.0254):l<1609.344?(c="ft",o/=.3048):(c="mi",o/=1609.344):"nautical"==r?(o/=1852,c="NM"):r==ee?l<.001?(c="μm",o*=1e6):l<1?(c="mm",o*=1e3):l<1e3?c="m":(c="km",o/=1e3):"us"==r?l<.9144?(c="in",o*=39.37):l<1609.344?(c="ft",o/=.30480061):(c="mi",o/=1609.3472):Object(Z.a)(!1,33);for(var u,h,p,f,m,g,v,y=3*Math.floor(Math.log(a*o)/Math.log(10));;){p=Math.floor(y/3);var b=Math.pow(10,p);if(u=te[(y%3+3)%3]*b,h=Math.round(u/o),isNaN(h))return this.element.style.display="none",void(this.renderedVisible_=!1);if(void 0!==s&&h>=s){u=f,h=m,p=g;break}if(h>=a)break;f=u,m=h,g=p,++y}v=this.scaleBar_?this.createScaleBar(h,u,c):u.toFixed(p<0?-p:0)+" "+c,this.renderedHTML_!=v&&(this.innerElement_.innerHTML=v,this.renderedHTML_=v),this.renderedWidth_!=h&&(this.innerElement_.style.width=h+"px",this.renderedWidth_=h),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t.prototype.createScaleBar=function(e,t,n){for(var r="1 : "+Math.round(this.getScaleForResolution()).toLocaleStr
776ing(),i=[],o=e/this.scaleBarSteps_,a="ol-scale-singlebar-odd",s=0;s<this.scaleBarSteps_;s++)0===s&&i.push(this.createMarker("absolute",s)),i.push('<div><div class="ol-scale-singlebar '+a+'" style="width: '+o+'px;"></div>'+this.createMarker("relative",s)+(s%2==0||2===this.scaleBarSteps_?this.createStepText(s,e,!1,t,n):"")+"</div>"),s===this.scaleBarSteps_-1&&i.push(this.createStepText(s+1,e,!0,t,n)),a="ol-scale-singlebar-odd"===a?"ol-scale-singlebar-even":"ol-scale-singlebar-odd";return'<div style="display: flex;">'+(this.scaleBarText_?'<div class="ol-scale-text" style="width: '+e+'px;">'+r+"</div>":"")+i.join("")+"</div>"},t.prototype.createMarker=function(e,t){return'<div class="ol-scale-step-marker" style="position: '+e+";top: "+("absolute"===e?3:-10)+'px;"></div>'},t.prototype.createStepText=function(e,t,n,r,i){var o=(0===e?0:Math.round(r/this.scaleBarSteps_*e*100)/100)+(0===e?"":" "+i);return'<div class="ol-scale-step-text" style="margin-left: '+(0===e?-3:t/this.scaleBarSteps_*-1)+"px;text-align: "+(0===e?"left":"center")+"; min-width: "+(0===e?0:t/this.scaleBarSteps_*2)+"px;left: "+(n?t+"px":"unset")+';">'+o+"</div>"},t.prototype.getScaleForResolution=function(){var e=Object(j.getPointResolution)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,K.b.METERS),t=this.dpi_||25.4/.28;return parseFloat(e.toString())*(1e3/25.4)*t},t.prototype.render=function(e){var t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()},t}(s.a),re=n(6),ie=n(39),oe=($=function(e,t){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}$(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ae=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,{element:document.createElement("div"),render:r.render})||this).dragListenerKeys_=[],n.currentResolution_=void 0,n.direction_=0,n.dragging_,n.heightLimit_=0,n.widthLimit_=0,n.startX_,n.startY_,n.thumbSize_=null,n.sliderInitialized_=!1,n.duration_=void 0!==r.duration?r.duration:200;var i=void 0!==r.className?r.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=i+"-thumb "+c.e;var a=n.element;return a.className=i+" "+c.e+" "+c.b,a.appendChild(o),a.addEventListener(M.a.POINTERDOWN,n.handleDraggerStart_.bind(n),!1),a.addEventListener(M.a.POINTERMOVE,n.handleDraggerDrag_.bind(n),!1),a.addEventListener(M.a.POINTERUP,n.handleDraggerEnd_.bind(n),!1),a.addEventListener(l.a.CLICK,n.handleContainerClick_.bind(n),!1),o.addEventListener(l.a.CLICK,ie.b,!1),n}return oe(t,e),t.prototype.setMap=function(t){e.prototype.setMap.call(this,t),t&&t.render()},t.prototype.initSlider_=function(){var e=this.element,t=e.offsetWidth,n=e.offsetHeight;if(0===t&&0===n)return this.sliderInitialized_=!1;var r=getComputedStyle(e);t-=parseFloat(r.paddingRight)+parseFloat(r.paddingLeft),n-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom);var i=e.firstElementChild,o=getComputedStyle(i),a=i.offsetWidth+parseFloat(o.marginRight)+parseFloat(o.marginLeft),s=i.offsetHeight+parseFloat(o.marginTop)+parseFloat(o.marginBottom);return this.thumbSize_=[a,s],t>n?(this.direction_=1,this.widthLimit_=t-a):(this.direction_=0,this.heightLimit_=n-s),this.sliderInitialized_=!0},t.prototype.handleContainerClick_=function(e){var t=this.getMap().getView(),n=this.getRelativePosition_(e.offsetX-this.thumbSize_[0]/2,e.offsetY-this.thumbSize_[1]/2),r=this.getResolutionForPosition_(n),i=t.getConstrainedZoom(t.getZoomForResolution(r));t.animateInternal({zoom:i,duration:this.duration_,easing:g.b})},t.prototype.handleDraggerStart_=function(e){if(!this.dragging_&&e.target===this.element.firstElementChild){var t=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=e.clientX-parseFloat(t.style.left),this.startY_=e.clientY-parseFloat(t.style.top),this.dragging_=!0,0===this.dragListenerKeys_.length){var n=this.handleDraggerDrag_,r=this.handleDraggerEnd_,i=this.getMap().getOwnerDocument();this.dragListenerKeys_.push(Object(x.listen)(i,M.a.POINTERMOVE,n,this),Object(x.listen)(i,M.a.POINTERUP,r,this))}}},t.prototype.handleDraggerDrag_=function(e){if(this.dragging_){var t=e.clientX-this.startX_,n=e.clientY-this.startY_,r=this.getRelativePosition_(t,n);this.currentResolution_=this.getResolutionForPosition_(r),this.getMap().getView().setResolution(this.currentResolution_)}},t.prototype.handleDraggerEnd_=function(e){this.dragging_&&(this.getMap().getView().endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(x.unlistenByKey),this.dragListenerKeys_.length=0)},t.prototype.setThumbPosition_=function(e){var t=this.getPositionForResolution_(e),n=this.element.firstElementChild;1==this.direction_?n.style.left=this.widthLimit_*t+"px":n.style.top=this.heightLimit_*t+"px"},t.prototype.getRelativePosition_=function(e,t){var n;return n=1===this.direction_?e/this.widthLimit_:t/this.heightLimit_,Object(re.b)(n,0,1)},t.prototype.getResolutionForPosition_=function(e){return this.getMap().getView().getResolutionForValueFunction()(1-e)},t.prototype.getPositionForResolution_=function(e){var t=this.getMap().getView().getValueForResolutionFunction();return Object(re.b)(1-t(e),0,1)},t.prototype.render=function(e){if(e.frameState&&(this.sliderInitialized_||this.initSlider_())){var t=e.frameState.viewState.resolution;this.currentResolution_=t,this.setThumbPosition_(t)}},t}(s.a),se=(O=function(e,t){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}O(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),le=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,{element:document.createElement("div"),target:r.target})||this).extent=r.extent?r.extent:null;var i=void 0!==r.className?r.className:"ol-zoom-extent",o=void 0!==r.label?r.label:"E",a=void 0!==r.tipLabel?r.tipLabel:"Fit to extent",s=document.createElement("button");s.setAttribute("type","button"),s.title=a,s.appendChild("string"==typeof o?document.createTextNode(o):o),s.addEventListener(l.a.CLICK,n.handleClick_.bind(n),!1);var d=i+" "+c.e+" "+c.b,u=n.element;return u.className=d,u.appendChild(s),n}return se(t,e),t.prototype.handleClick_=function(e){e.preventDefault(),this.handleZoomToExtent()},t.prototype.handleZoomToExtent=function(){var e=this.getMap().getView(),t=this.extent?this.extent:e.getProjection().getExtent();e.fitInternal(Object(H.c)(t))},t}(s.a);function ce(e){var t=e||{},n=new m.a;return(void 0===t.zoom||t.zoom)&&n.push(new _(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&n.push(new y(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&n.push(new f(t.attributionOptions)),n}},function(e,t,n){n.d(t,"e",(function(){return o}
776)),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d}));var r=n(6);function i(e,t,n,i,o,a,s){var l,c=e[t],d=e[t+1],u=e[n]-c,h=e[n+1]-d;if(0===u&&0===h)l=t;else{var p=((o-c)*u+(a-d)*h)/(u*u+h*h);if(p>1)l=n;else{if(p>0){for(var f=0;f<i;++f)s[f]=Object(r.e)(e[t+f],e[n+f],p);return void(s.length=i)}l=t}}for(f=0;f<i;++f)s[f]=e[l+f];s.length=i}function o(e,t,n,i,o){var a=e[t],s=e[t+1];for(t+=i;t<n;t+=i){var l=e[t],c=e[t+1],d=Object(r.j)(a,s,l,c);d>o&&(o=d),a=l,s=c}return o}function a(e,t,n,r,i){for(var a=0,s=n.length;a<s;++a){var l=n[a];i=o(e,t,l,r,i),t=l}return i}function s(e,t,n,r,i){for(var o=0,s=n.length;o<s;++o){var l=n[o];i=a(e,t,l,r,i),t=l[l.length-1]}return i}function l(e,t,n,o,a,s,l,c,d,u,h){if(t==n)return u;var p,f;if(0===a){if((f=Object(r.j)(l,c,e[t],e[t+1]))<u){for(p=0;p<o;++p)d[p]=e[t+p];return d.length=o,f}return u}for(var m=h||[NaN,NaN],g=t+o;g<n;)if(i(e,g-o,g,o,l,c,m),(f=Object(r.j)(l,c,m[0],m[1]))<u){for(u=f,p=0;p<o;++p)d[p]=m[p];d.length=o,g+=o}else g+=o*Math.max((Math.sqrt(f)-Math.sqrt(u))/a|0,1);if(s&&(i(e,n-o,t,o,l,c,m),(f=Object(r.j)(l,c,m[0],m[1]))<u)){for(u=f,p=0;p<o;++p)d[p]=m[p];d.length=o}return u}function c(e,t,n,r,i,o,a,s,c,d,u){for(var h=u||[NaN,NaN],p=0,f=n.length;p<f;++p){var m=n[p];d=l(e,t,m,r,i,o,a,s,c,d,h),t=m}return d}function d(e,t,n,r,i,o,a,s,l,d,u){for(var h=u||[NaN,NaN],p=0,f=n.length;p<f;++p){var m=n[p];d=c(e,t,m,r,i,o,a,s,l,d,h),t=m[m.length-1]}return d}},function(e,t,n){t.a={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"}},function(e,t,n){var r,i=n(116),o=n(39),a=n(32),s=n(5),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this)||this;return n.eventTarget_=t,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return l(t,e),t.prototype.addEventListener=function(e,t){if(e&&t){var n=this.listeners_||(this.listeners_={}),r=n[e]||(n[e]=[]);-1===r.indexOf(t)&&r.push(t)}},t.prototype.dispatchEvent=function(e){var t="string"==typeof e,n=t?e:e.type,r=this.listeners_&&this.listeners_[n];if(r){var i=t?new o.a(e):e;i.target||(i.target=this.eventTarget_||this);var s,l=this.dispatching_||(this.dispatching_={}),c=this.pendingRemovals_||(this.pendingRemovals_={});n in l||(l[n]=0,c[n]=0),++l[n];for(var d=0,u=r.length;d<u;++d)if(!1===(s="handleEvent"in r[d]?r[d].handleEvent(i):r[d].call(this,i))||i.propagationStopped){s=!1;break}if(0==--l[n]){var h=c[n];for(delete c[n];h--;)this.removeEventListener(n,a.c);delete l[n]}return s}},t.prototype.disposeInternal=function(){this.listeners_&&Object(s.b)(this.listeners_)},t.prototype.getListeners=function(e){return this.listeners_&&this.listeners_[e]||void 0},t.prototype.hasListener=function(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)},t.prototype.removeEventListener=function(e,t){var n=this.listeners_&&this.listeners_[e];if(n){var r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=a.c,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}},t}(i.a);t.a=c},function(e,t,n){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=42,i=256},function(e,t,n){function r(e,t,n,r){for(;t<n-r;){for(var i=0;i<r;++i){var o=e[t+i];e[t+i]=e[n-r+i],e[n-r+i]=o}t+=r,n-=r}}function i(e,t,n,r){for(var i=0,o=e[n-r],a=e[n-r+1];t<n;t+=r){var s=e[t],l=e[t+1];i+=(s-o)*(l+a),o=s,a=l}return 0===i?void 0:i>0}function o(e,t,n,r,o){for(var a=void 0!==o&&o,s=0,l=n.length;s<l;++s){var c=n[s],d=i(e,t,c,r);if(0===s){if(a&&d||!a&&!d)return!1}else if(a&&!d||!a&&d)return!1;t=c}return!0}function a(e,t,n,r,i){for(var a=0,s=n.length;a<s;++a){var l=n[a];if(!o(e,t,l,r,i))return!1;l.length&&(t=l[l.length-1])}return!0}function s(e,t,n,o,a){for(var s=void 0!==a&&a,l=0,c=n.length;l<c;++l){var d=n[l],u=i(e,t,d,o);(0===l?s&&u||!s&&!u:s&&!u||!s&&u)&&r(e,t,d,o),t=d}return t}function l(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o)t=s(e,t,n[o],r,i);return t}function c(e,t){for(var n=[],r=0,o=0,a=0,s=t.length;a<s;++a){var l=t[a];
776if(i(e,r,l,2)){if(0===n.length)continue;n[n.length-1].push(t[o])}else n.push(t.slice(o,a+1));o=a+1,r=l}return n}n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"a",(function(){return c}))},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(78);function i(e){return Array.isArray(e)?Object(r.e)(e):e}},function(e,t,n){t.a={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},function(e,t,n){t.a={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},function(e,t,n){var r=n(60),i=n(46),o=n(47),a=n(91),s=n(93),l=n(1),c=n(32),d=n(27),u=n(15),h=n(5),p=n(6);function f(e,t,n){return function(r,i,o,a,s){if(r){if(!i&&!t)return r;var l=t?0:o[0]*i,c=t?0:o[1]*i,d=s?s[0]:0,u=s?s[1]:0,h=e[0]+l/2+d,f=e[2]-l/2+d,m=e[1]+c/2+u,g=e[3]-c/2+u;h>f&&(f=h=(f+h)/2),m>g&&(g=m=(g+m)/2);var v=Object(p.b)(r[0],h,f),y=Object(p.b)(r[1],m,g);if(a&&n&&i){var b=30*i;v+=-b*Math.log(1+Math.max(0,h-r[0])/b)+b*Math.log(1+Math.max(0,r[0]-f)/b),y+=-b*Math.log(1+Math.max(0,m-r[1])/b)+b*Math.log(1+Math.max(0,r[1]-g)/b)}return[v,y]}}}function m(e){return e}var g=n(0),v=n(9);function y(e,t,n,r){var i=Object(g.getWidth)(t)/n[0],o=Object(g.getHeight)(t)/n[1];return r?Math.min(e,Math.max(i,o)):Math.min(e,Math.min(i,o))}function b(e,t,n){var r=Math.min(e,t);return r*=Math.log(1+50*Math.max(0,e/t-1))/50+1,n&&(r=Math.max(r,n),r/=Math.log(1+50*Math.max(0,n/e-1))/50+1),Object(p.b)(r,n/2,2*t)}function _(e,t,n,r,i){return function(o,a,s,l){if(void 0!==o){var c=r?y(e,r,s,i):e;return(void 0===n||n)&&l?b(o,c,t):Object(p.b)(o,t,c)}}}var w,x=n(122),C=n(82),S=n(22),E=(w=function(e,t){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),k=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un;var r=Object(h.a)({},t);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=Object(l.createProjection)(r.projection,"EPSG:3857"),n.viewportSize_=[100,100],n.targetCenter_=null,n.targetResolution_,n.targetRotation_,n.nextCenter_=null,n.nextResolution_,n.nextRotation_,n.cancelAnchor_=void 0,r.projection&&Object(l.disableCoordinateWarning)(),r.center&&(r.center=Object(l.fromUserCoordinate)(r.center,n.projection_)),r.extent&&(r.extent=Object(l.fromUserExtent)(r.extent,n.projection_)),n.applyOptions_(r),n}return E(t,e),t.prototype.applyOptions_=function(e){var t=Object(h.a)({},e);for(var n in a.a)delete t[n];this.setProperties(t,!0);var r=function(e){var t,n,r,o=void 0!==e.minZoom?e.minZoom:0,a=void 0!==e.maxZoom?e.maxZoom:28,c=void 0!==e.zoomFactor?e.zoomFactor:2,d=void 0!==e.multiWorld&&e.multiWorld,u=void 0===e.smoothResolutionConstraint||e.smoothResolutionConstraint,h=void 0!==e.showFullExtent&&e.showFullExtent,f=Object(l.createProjection)(e.projection,"EPSG:3857"),m=f.getExtent(),w=e.constrainOnlyCenter,x=e.extent;if(d||x||!f.isGlobal()||(w=!1,x=m),void 0!==e.resolutions){var C=e.resolutions;n=C[o],r=void 0!==C[a]?C[a]:C[C.length-1],t=e.constrainResolution?function(e,t,n,r){return function(i,o,a,s){if(void 0!==i){var l=e[0],c=e[e.length-1],d=n?y(l,n,a,r):l;if(s)return void 0===t||t?b(i,d,c):Object(p.b)(i,c,d);var u=Math.min(d,i),h=Math.floor(Object(v.h)(e,u,o));return e[h]>d&&h<e.length-1?e[h+1]:e[h]}}}(C,u,!w&&x,h):_(n,r,u,!w&&x,h)}else{var S=(m?Math.max(Object(g.getWidth)(m),Object(g.getHeight)(m)):360*l.METERS_PER_UNIT[i.b.DEGREES]/f.getMetersPerUnit())/s.b/Math.pow(2,0),E=S/Math.pow(2,28);void 0!==(n=e.maxResolution)?o=0:n=S/Math.pow(c,o),void 0===(r=e.minResolution)&&(r=void 0!==e.maxZoom?void 0!==e.maxResolution?n/Math.pow(c,a):S/Math.pow(c,a):E),a=o+Math.floor(Math.log(n/r)/Math.log(c)),r=n/Math.pow(c,a-o),t=e.constrainResolution?function(e,t,n,r,i,o){return function(a,s,l,c){if(void 0!==a){var d=i?y(t,i,l,o):t,u=void 0!==n?n:0;if(c)return void 0===r||r?b(a,d,u):Object(p.b)(a,u,d);var h=Math.ceil(Math.log(t/d)/Math.log(e)-1e-9),f=-s*(.5-1e-9)+.5,m=Math.min(d,a),g=Math.floor(Math.log(t/m)/Math.log(e)+f),v=Math.max(h,g),_=t/Math.pow(e,v);return Object(p.b)(_,u,d)}}}(c,n,r,u,!w&&x,h):_(n,r,u,!w&&x,h)}return{constraint:t,maxResolution:n,minResolution:r,minZoom:o,zoomFactor:c}}(e);this.maxResolution_=r.maxResolution,this.minResolution_=r.minResolution,this.zoomFactor_=r.zoomFactor,this.resolutions_=e.resolutions,this.padding_=e.padding,this.minZoom_=r.minZoom;var o=function(e){if(void 0!==e.extent){var t=void 0===e.smoothExtentConstraint||e.smoothExtentConstraint;return f(e.extent,e.constrainOnlyCenter,t)}var n=Object(l.createProjection)(e.projection,"EPSG:3857");if(!0!==e.multiWorld&&n.isGlobal()){var r=n.getExtent().slice();return r[0]=-1/0,r[2]=1/0,f(r,!1,!1)}return m}(e),c=r.constraint,d=function(e){if(void 0===e.enableRotation||e.enableRotation){var t=e.constrainRotation;
776return void 0===t||!0===t?Object(x.b)():!1===t?x.d:"number"==typeof t?Object(x.a)(t):x.d}return x.c}(e);this.constraints_={center:o,resolution:c,rotation:d},this.setRotation(void 0!==e.rotation?e.rotation:0),this.setCenterInternal(void 0!==e.center?e.center:null),void 0!==e.resolution?this.setResolution(e.resolution):void 0!==e.zoom&&this.setZoom(e.zoom)},Object.defineProperty(t.prototype,"padding",{get:function(){return this.padding_},set:function(e){var t=this.padding_;this.padding_=e;var n=this.getCenter();if(n){var r=e||[0,0,0,0];t=t||[0,0,0,0];var i=this.getResolution(),o=i/2*(r[3]-t[3]+t[1]-r[1]),a=i/2*(r[0]-t[0]+t[2]-r[2]);this.setCenterInternal([n[0]+o,n[1]-a])}},enumerable:!1,configurable:!0}),t.prototype.getUpdatedOptions_=function(e){var t=this.getProperties();return void 0!==t.resolution?t.resolution=this.getResolution():t.zoom=this.getZoom(),t.center=this.getCenterInternal(),t.rotation=this.getRotation(),Object(h.a)({},t,e)},t.prototype.animate=function(e){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var t=new Array(arguments.length),n=0;n<t.length;++n){var r=arguments[n];r.center&&((r=Object(h.a)({},r)).center=Object(l.fromUserCoordinate)(r.center,this.getProjection())),r.anchor&&((r=Object(h.a)({},r)).anchor=Object(l.fromUserCoordinate)(r.anchor,this.getProjection())),t[n]=r}this.animateInternal.apply(this,t)},t.prototype.animateInternal=function(e){var t,n=arguments.length;n>1&&"function"==typeof arguments[n-1]&&(t=arguments[n-1],--n);for(var r=0;r<n&&!this.isDef();++r){var i=arguments[r];i.center&&this.setCenterInternal(i.center),void 0!==i.zoom?this.setZoom(i.zoom):i.resolution&&this.setResolution(i.resolution),void 0!==i.rotation&&this.setRotation(i.rotation)}if(r!==n){for(var a=Date.now(),s=this.targetCenter_.slice(),l=this.targetResolution_,c=this.targetRotation_,d=[];r<n;++r){var u=arguments[r],h={start:a,complete:!1,anchor:u.anchor,duration:void 0!==u.duration?u.duration:1e3,easing:u.easing||C.c,callback:t};if(u.center&&(h.sourceCenter=s,h.targetCenter=u.center.slice(),s=h.targetCenter),void 0!==u.zoom?(h.sourceResolution=l,h.targetResolution=this.getResolutionForZoom(u.zoom),l=h.targetResolution):u.resolution&&(h.sourceResolution=l,h.targetResolution=u.resolution,l=h.targetResolution),void 0!==u.rotation){h.sourceRotation=c;var f=Object(p.g)(u.rotation-c+Math.PI,2*Math.PI)-Math.PI;h.targetRotation=c+f,c=h.targetRotation}O(h)?h.complete=!0:a+=h.duration,d.push(h)}this.animations_.push(d),this.setHint(o.a.ANIMATING,1),this.updateAnimations_()}else t&&T(t,!0)},t.prototype.getAnimating=function(){return this.hints_[o.a.ANIMATING]>0},t.prototype.getInteracting=function(){return this.hints_[o.a.INTERACTING]>0},t.prototype.cancelAnimations=function(){var e;this.setHint(o.a.ANIMATING,-this.hints_[o.a.ANIMATING]);for(var t=0,n=this.animations_.length;t<n;++t){var r=this.animations_[t];if(r[0].callback&&T(r[0].callback,!1),!e)for(var i=0,a=r.length;i<a;++i){var s=r[i];if(!s.complete){e=s.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=e,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},t.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var e=Date.now(),t=!1,n=this.animations_.length-1;n>=0;--n){for(var r=this.animations_[n],i=!0,a=0,s=r.length;a<s;++a){var l=r[a];if(!l.complete){var c=e-l.start,d=l.duration>0?c/l.duration:1;d>=1?(l.complete=!0,d=1):i=!1;var u=l.easing(d);if(l.sourceCenter){var h=l.sourceCenter[0],f=l.sourceCenter[1],m=l.targetCenter[0],g=l.targetCenter[1];this.nextCenter_=l.targetCenter;var v=h+u*(m-h),y=f+u*(g-f);this.targetCenter_=[v,y]}if(l.sourceResolution&&l.targetResolution){var b=1===u?l.targetResolution:l.sourceResolution+u*(l.targetResolution-l.sourceResolution);if(l.anchor){var _=this.getViewportSize_(this.getRotation()),w=this.constraints_.resolution(b,0,_,!0);this.targetCenter_=this.calculateCenterZoom(w,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=b,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var x=1===u?Object(p.g)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+u*(l.targetRotation-l.sourceRotation);if(l.anchor){var C=this.constraints_.rotation(x,!0);this.targetCenter_=this.calculateCenterRotate(C,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=x}if(this.applyTargetState_(!0),t=!0,!l.complete)break}}if(i){this.animations_[n]=null,this.setHint(o.a.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var S=r[0].callback;S&&T(S,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},t.prototype.calculateCenterRotate=function(e,t){var n,r=this.getCenterInternal();return void 0!==r&&(n=[r[0]-t[0],r[1]-t[1]],Object(d.h)(n,e-this.getRotation()),Object(d.a)(n,t)),n},t.prototype.calculateCenterZoom=function(e,t){var n,r=this.getCenterInternal(),i=this.getResolution();return void 0!==r&&void 0!==i&&(n=[t[0]-e*(t[0]-r[0])/i,t[1]-e*(t[1]-r[1])/i]),n},t.prototype.getViewportSize_=function(e){var t=this.viewportSize_;if(e){var n=t[0],r=t[1];return[Math.abs(n*Math.cos(e))+Math.abs(r*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(r*Math.cos(e))]}return t},t.prototype.setViewportSize=function(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},t.prototype.getCenter=function(){var e=this.getCenterInternal();return e?Object(l.toUserCoordinate)(e,this.getProjection()):e},t.prototype.getCenterInternal=function(){return this.get(a.a.CENTER)},t.prototype.getConstraints=function(){return this.constraints_},t.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},t.prototype.getHints=function(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()},t.prototype.calculateExtent=function(e){var t=this.calculateExtentInternal(e);return Object(l.toUserExtent)(t,this.getProjection())},t.prototype.calculateExtentInternal=function(e){var t=e||this.getViewportSizeMinusPadding_(),n=this.getCenterInternal();Object(u.a)(n,1);var r=this.getResolution();Object(u.a)(void 0!==r,2);var i=this.getRotation();return Object(u.a)(void 0!==i,3),Object(g.getForViewAndSize)(n,r,i,t)},t.prototype.getMaxResolution=function(){return this.maxResolution_},t.prototype.getMinResolution=function(){return this.minResolution_},t.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},t.prototype.setMaxZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}
776,t.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},t.prototype.setMinZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))},t.prototype.setConstrainResolution=function(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))},t.prototype.getProjection=function(){return this.projection_},t.prototype.getResolution=function(){return this.get(a.a.RESOLUTION)},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getResolutionForExtent=function(e,t){return this.getResolutionForExtentInternal(Object(l.fromUserExtent)(e,this.getProjection()),t)},t.prototype.getResolutionForExtentInternal=function(e,t){var n=t||this.getViewportSizeMinusPadding_(),r=Object(g.getWidth)(e)/n[0],i=Object(g.getHeight)(e)/n[1];return Math.max(r,i)},t.prototype.getResolutionForValueFunction=function(e){var t=e||2,n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/Math.log(t);return function(e){return n/Math.pow(t,e*i)}},t.prototype.getRotation=function(){return this.get(a.a.ROTATION)},t.prototype.getValueForResolutionFunction=function(e){var t=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/t;return function(e){return Math.log(n/e)/t/i}},t.prototype.getViewportSizeMinusPadding_=function(e){var t=this.getViewportSize_(e),n=this.padding_;return n&&(t=[t[0]-n[1]-n[3],t[1]-n[0]-n[2]]),t},t.prototype.getState=function(){var e=this.getProjection(),t=this.getResolution(),n=this.getRotation(),r=this.getCenterInternal(),i=this.padding_;if(i){var o=this.getViewportSizeMinusPadding_();r=$(r,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],t,n)}return{center:r.slice(0),projection:void 0!==e?e:null,resolution:t,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}},t.prototype.getZoom=function(){var e,t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e},t.prototype.getZoomForResolution=function(e){var t,n,r=this.minZoom_||0;if(this.resolutions_){var i=Object(v.h)(this.resolutions_,e,1);r=i,t=this.resolutions_[i],n=i==this.resolutions_.length-1?2:t/this.resolutions_[i+1]}else t=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(t/e)/Math.log(n)},t.prototype.getResolutionForZoom=function(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var t=Object(p.b)(Math.floor(e),0,this.resolutions_.length-2),n=this.resolutions_[t]/this.resolutions_[t+1];return this.resolutions_[t]/Math.pow(n,Object(p.b)(e-t,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)},t.prototype.fit=function(e,t){var n;if(Object(u.a)(Array.isArray(e)||"function"==typeof e.getSimplifiedGeometry,24),Array.isArray(e)){Object(u.a)(!Object(g.isEmpty)(e),25);var r=Object(l.fromUserExtent)(e,this.getProjection());n=Object(S.c)(r)}else if("Circle"===e.getType())r=Object(l.fromUserExtent)(e.getExtent(),this.getProjection()),(n=Object(S.c)(r)).rotate(this.getRotation(),Object(g.getCenter)(r));else{var i=Object(l.getUserProjection)();n=i?e.clone().transform(i,this.getProjection()):e}this.fitInternal(n,t)},t.prototype.rotatedExtentForGeometry=function(e){for(var t=this.getRotation(),n=Math.cos(t),r=Math.sin(-t),i=e.getFlatCoordinates(),o=e.getStride(),a=1/0,s=1/0,l=-1/0,c=-1/0,d=0,u=i.length;d<u;d+=o){var h=i[d]*n-i[d+1]*r,p=i[d]*r+i[d+1]*n;a=Math.min(a,h),s=Math.min(s,p),l=Math.max(l,h),c=Math.max(c,p)}return[a,s,l,c]},t.prototype.fitInternal=function(e,t){var n=t||{},r=n.size;r||(r=this.getViewportSizeMinusPadding_());var i,o=void 0!==n.padding?n.padding:[0,0,0,0],a=void 0!==n.nearest&&n.nearest;i=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;var s=this.rotatedExtentForGeometry(e),l=this.getResolutionForExtentInternal(s,[r[0]-o[1]-o[3],r[1]-o[0]-o[2]]);l=isNaN(l)?i:Math.max(l,i),l=this.getConstrainedResolution(l,a?0:1);var d=this.getRotation(),u=Math.sin(d),h=Math.cos(d),p=Object(g.getCenter)(s);p[0]+=(o[1]-o[3])/2*l,p[1]+=(o[0]-o[2])/2*l;var f=p[0]*h-p[1]*u,m=p[1]*h+p[0]*u,v=this.getConstrainedCenter([f,m],l),y=n.callback?n.callback:c.c;void 0!==n.duration?this.animateInternal({resolution:l,center:v,duration:n.duration,easing:n.easing},y):(this.targetResolution_=l,this.targetCenter_=v,this.applyTargetState_(!1,!0),T(y,!0))},t.prototype.centerOn=function(e,t,n){this.centerOnInternal(Object(l.fromUserCoordinate)(e,this.getProjection()),t,n)},t.prototype.centerOnInternal=function(e,t,n){this.setCenterInternal($(e,t,n,this.getResolution(),this.getRotation()))},t.prototype.calculateCenterShift=function(e,t,n,r){var i,o=this.padding_;if(o&&e){var a=this.getViewportSizeMinusPadding_(-n),s=$(e,r,[a[0]/2+o[3],a[1]/2+o[0]],t,n);i=[e[0]-s[0],e[1]-s[1]]}return i},t.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},t.prototype.adjustCenter=function(e){var t=Object(l.toUserCoordinate)(this.targetCenter_,this.getProjection());this.setCenter([t[0]+e[0],t[1]+e[1]])},t.prototype.adjustCenterInternal=function(e){var t=this.targetCenter_;this.setCenterInternal([t[0]+e[0],t[1]+e[1]])},t.prototype.adjustResolution=function(e,t){var n=t&&Object(l.fromUserCoordinate)(t,this.getProjection());this.adjustResolutionInternal(e,n)},t.prototype.adjustResolutionInternal=function(e,t){var n=this.getAnimating()||this.getInteracting(),r=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*e,0,r,n);t&&(this.targetCenter_=this.calculateCenterZoom(i,t)),this.targetResolution_*=e,this.applyTargetState_()},t.prototype.adjustZoom=function(e,t){this.adjustResolution(Math.pow(this.zoomFactor_,-e),t)},t.prototype.adjustRotation=function(e,t){t&&(t=Object(l.fromUserCoordinate)(t,this.getProjection())),this.adjustRotationInternal(e,t)},t.prototype.adjustRotationInternal=function(e,t){var n=this.getAnimating()||this.getInteracting(),r=this.constraints_.rotation(this.targetRotation_+e,n);t&&(this.targetCenter_=this.calculateCenterRotate(r,t)),this.targetRotation_+=e,this.applyTargetState_()},t.prototype.setCenter=function(e){this.setCenterInternal(e?Object(l.fromUserCoordinate)(e,this.getProjection()):e)},t.prototype.setCenterInternal=function(e){this.targetCenter_=e,this.applyTargetState_()},t.prototype.setHint=function(e,t){return this.hints_[e]+=t,this.changed(),this.hints_[e]},t.prototype.setResolution=function(e){this.targetResolution_=e,this.applyTargetState_()},t.prototype.setRotation=function(e){this.targetRotation_=e,this.applyTargetState_()},t.prototype.setZoom=function(e){this.setResolution(this.getResolutionForZoom(e))},t.prototype.applyTargetState_=function(e,t){var n=this.getAnimating()||this.getInteracting()||t,r=this.constraints_.rotation(this.targetRotation_,n),i=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,0,i,n),s=this.constraints_.center(this.targetCenter_,o,i,n,this.calculateCenterShift(this.targetCenter_,o,r,i));this.get(a.a.ROTATION)!==r&&this.set(a.a.ROTATION,r),this.get(a.a.RESOLUTION)!==o&&(this.set(a.a.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),s&&this.get(a.a.CENTER)&&Object(d.f)(this.get(a.a.CENTER),s)||this.set(a.a.CENTER,s),this.getAnimating()&&!e&&this.cancelAnimations(),this.cancelAnchor_=void 0}
776,t.prototype.resolveConstraints=function(e,t,n){var r=void 0!==e?e:200,i=t||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,i,a),l=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===r&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var c=n||(0===r?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&Object(d.f)(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:r,easing:C.b,anchor:c}))},t.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(o.a.INTERACTING,1)},t.prototype.endInteraction=function(e,t,n){var r=n&&Object(l.fromUserCoordinate)(n,this.getProjection());this.endInteractionInternal(e,t,r)},t.prototype.endInteractionInternal=function(e,t,n){this.setHint(o.a.INTERACTING,-1),this.resolveConstraints(e,t,n)},t.prototype.getConstrainedCenter=function(e,t){var n=this.getViewportSize_(this.getRotation());return this.constraints_.center(e,t||this.getResolution(),n)},t.prototype.getConstrainedZoom=function(e,t){var n=this.getResolutionForZoom(e);return this.getZoomForResolution(this.getConstrainedResolution(n,t))},t.prototype.getConstrainedResolution=function(e,t){var n=t||0,r=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(e,n,r)},t}(r.a);function T(e,t){setTimeout((function(){e(t)}),0)}function O(e){return!(e.sourceCenter&&e.targetCenter&&!Object(d.f)(e.sourceCenter,e.targetCenter))&&e.sourceResolution===e.targetResolution&&e.sourceRotation===e.targetRotation}function $(e,t,n,r,i){var o=Math.cos(-i),a=Math.sin(-i),s=e[0]*o-e[1]*a,l=e[1]*o+e[0]*a;return[(s+=(t[0]/2-n[0])*r)*o-(l+=(n[1]-t[1]/2)*r)*(a=-a),l*o+s*a]}t.a=k},function(e,t,n){n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return h}));var r=n(180),i=n(84),o=n(130),a=n(6),s=n(23),l=n(0),c=n(9),d=.5;function u(e,t,n,a,u,h,p){var f=e[0]*d,m=e[1]*d,g=Object(s.a)(f,m);g.imageSmoothingEnabled=!1;for(var v=g.canvas,y=new r.a(g,d,u,null,p),b=n.length,_=Math.floor(16777215/b),w={},x=1;x<=b;++x){var C=n[x-1],S=C.getStyleFunction()||a;if(a){var E=S(C,h);if(E){Array.isArray(E)||(E=[E]);for(var k="#"+("000000"+(x*_).toString(16)).slice(-6),T=0,O=E.length;T<O;++T){var $=E[T],P=$.getGeometryFunction()(C);if(P&&Object(l.intersects)(u,P.getExtent())){var I=$.clone(),L=I.getFill();L&&L.setColor(k);var A=I.getStroke();A&&(A.setColor(k),A.setLineDash(null)),I.setText(void 0);var M=$.getImage();if(M&&0!==M.getOpacity()){var j=M.getImageSize();if(!j)continue;var R=Object(s.a)(j[0],j[1],void 0,{alpha:!1}),D=R.canvas;R.fillStyle=k,R.fillRect(0,0,D.width,D.height),I.setImage(new o.a({img:D,imgSize:j,anchor:M.getAnchor(),anchorXUnits:i.a.PIXELS,anchorYUnits:i.a.PIXELS,offset:M.getOrigin(),opacity:1,size:M.getSize(),scale:M.getScale(),rotation:M.getRotation(),rotateWithView:M.getRotateWithView()}))}var F=I.getZIndex()||0;(U=w[F])||(U={},w[F]=U,U.Polygon=[],U.Circle=[],U.LineString=[],U.Point=[]),U[P.getType().replace("Multi","")].push(P,I)}}}}}for(var N=Object.keys(w).map(Number).sort(c.i),B=(x=0,N.length);x<B;++x){var U=w[N[x]];for(var z in U){var G=U[z];for(T=0,O=G.length;T<O;T+=2){y.setStyle(G[T+1]);for(var V=0,q=t.length;V<q;++V)y.setTransform(t[V]),y.drawGeometry(G[T])}}}return g.getImageData(0,0,v.width,v.height)}function h(e,t,n){var r=[];if(n){var i=Math.floor(Math.round(e[0])*d),o=Math.floor(Math.round(e[1])*d),s=4*(Object(a.b)(i,0,n.width-1)+Object(a.b)(o,0,n.height-1)*n.width),l=n.data[s],c=n.data[s+1],u=n.data[s+2]+256*(c+256*l),h=Math.floor(16777215/t.length);u&&u%h==0&&r.push(t[u/h-1])}return r}},function(e,t,n){t.a={PROPERTYCHANGE:"propertychange"}},function(e,t,n){var r=n(261),i=n(262),o=n(235),a=n(263);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){function r(e,t,n){var r=void 0!==n?e.toFixed(n):""+e,i=r.indexOf(".");return(i=-1===i?r.length:i)>
776t?r:new Array(1+t-i).join("0")+r}function i(e,t){for(var n=(""+e).split("."),r=(""+t).split("."),i=0;i<Math.max(n.length,r.length);i++){var o=parseInt(n[i]||"0",10),a=parseInt(r[i]||"0",10);if(o>a)return 1;if(a>o)return-1}return 0}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},function(e,t,n){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c}));var r=n(21),i=n(4),o={Point:function(e,t,n,i,o){var a,s=n.getImage(),l=n.getText();if(s){if(s.getImageState()!=r.a.LOADED)return;var c=e;if(o){var d=s.getDeclutterMode();if("none"!==d)if(c=o,"obstacle"===d){var u=e.getBuilder(n.getZIndex(),"Image");u.setImageStyle(s,a),u.drawPoint(t,i)}else l&&l.getText()&&(a={})}var h=c.getBuilder(n.getZIndex(),"Image");h.setImageStyle(s,a),h.drawPoint(t,i)}if(l&&l.getText()){var p=e;o&&(p=o);var f=p.getBuilder(n.getZIndex(),"Text");f.setTextStyle(l,a),f.drawText(t,i)}},LineString:function(e,t,n,r,i){var o=n.getStroke();if(o){var a=e.getBuilder(n.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawLineString(t,r)}var s=n.getText();if(s&&s.getText()){var l=(i||e).getBuilder(n.getZIndex(),"Text");l.setTextStyle(s),l.drawText(t,r)}},Polygon:function(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(o||a){var s=e.getBuilder(n.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawPolygon(t,r)}var l=n.getText();if(l&&l.getText()){var c=(i||e).getBuilder(n.getZIndex(),"Text");c.setTextStyle(l),c.drawText(t,r)}},MultiPoint:function(e,t,n,i,o){var a,s=n.getImage(),l=n.getText();if(s){if(s.getImageState()!=r.a.LOADED)return;var c=e;if(o){var d=s.getDeclutterMode();if("none"!==d)if(c=o,"obstacle"===d){var u=e.getBuilder(n.getZIndex(),"Image");u.setImageStyle(s,a),u.drawMultiPoint(t,i)}else l&&l.getText()&&(a={})}var h=c.getBuilder(n.getZIndex(),"Image");h.setImageStyle(s,a),h.drawMultiPoint(t,i)}if(l&&l.getText()){var p=e;o&&(p=o);var f=p.getBuilder(n.getZIndex(),"Text");f.setTextStyle(l,a),f.drawText(t,i)}},MultiLineString:function(e,t,n,r,i){var o=n.getStroke();if(o){var a=e.getBuilder(n.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawMultiLineString(t,r)}var s=n.getText();if(s&&s.getText()){var l=(i||e).getBuilder(n.getZIndex(),"Text");l.setTextStyle(s),l.drawText(t,r)}},MultiPolygon:function(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(a||o){var s=e.getBuilder(n.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawMultiPolygon(t,r)}var l=n.getText();if(l&&l.getText()){var c=(i||e).getBuilder(n.getZIndex(),"Text");c.setTextStyle(l),c.drawText(t,r)}},GeometryCollection:function(e,t,n,r,i){var a,s,l=t.getGeometriesArray();for(a=0,s=l.length;a<s;++a)(0,o[l[a].getType()])(e,l[a],n,r,i)},Circle:function(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(o||a){var s=e.getBuilder(n.getZIndex(),"Circle");s.setFillStrokeStyle(o,a),s.drawCircle(t,r)}var l=n.getText();if(l&&l.getText()){var c=(i||e).getBuilder(n.getZIndex(),"Text");c.setTextStyle(l),c.drawText(t,r)}}};function a(e,t){return parseInt(Object(i.c)(e),10)-parseInt(Object(i.c)(t),10)}function s(e,t){var n=l(e,t);return n*n}function l(e,t){return.5*e/t}function c(e,t,n,i,a,s,l){var c=!1,d=n.getImage();if(d){var u=d.getImageState();u==r.a.LOADED||u==r.a.ERROR?d.unlistenImageChange(a):(u==r.a.IDLE&&d.load(),d.listenImageChange(a),c=!0)}return function(e,t,n,r,i,a){var s=n.getGeometryFunction()(t);if(s){var l=s.simplifyTransformed(r,i);n.getRenderer()?function e(t,n,r,i){if("GeometryCollection"!=n.getType())t.getBuilder(r.getZIndex(),"Default").drawCustom(n,i,r.getRenderer(),r.getHitDetectionRenderer());else for(var o=n.getGeometries(),a=0,s=o.length;a<s;++a)e(t,o[a],r,i)}(e,l,n,t):(0,o[l.getType()])(e,l,n,t,a)}}(e,t,n,i,s,l),c}},function(e,t,n){var r=n(65),i=n(199),o=n(30),a=function(){function e(e){var t=e||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=Object(o.d)(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new r.a({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:i.a.POINT,this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding}return e.prototype.clone=function(){var t=this.getScale();return new e({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.get
776Stroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},e.prototype.getOverflow=function(){return this.overflow_},e.prototype.getFont=function(){return this.font_},e.prototype.getMaxAngle=function(){return this.maxAngle_},e.prototype.getPlacement=function(){return this.placement_},e.prototype.getOffsetX=function(){return this.offsetX_},e.prototype.getOffsetY=function(){return this.offsetY_},e.prototype.getFill=function(){return this.fill_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.getRotation=function(){return this.rotation_},e.prototype.getScale=function(){return this.scale_},e.prototype.getScaleArray=function(){return this.scaleArray_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.getText=function(){return this.text_},e.prototype.getTextAlign=function(){return this.textAlign_},e.prototype.getJustify=function(){return this.justify_},e.prototype.getTextBaseline=function(){return this.textBaseline_},e.prototype.getBackgroundFill=function(){return this.backgroundFill_},e.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},e.prototype.getPadding=function(){return this.padding_},e.prototype.setOverflow=function(e){this.overflow_=e},e.prototype.setFont=function(e){this.font_=e},e.prototype.setMaxAngle=function(e){this.maxAngle_=e},e.prototype.setOffsetX=function(e){this.offsetX_=e},e.prototype.setOffsetY=function(e){this.offsetY_=e},e.prototype.setPlacement=function(e){this.placement_=e},e.prototype.setRotateWithView=function(e){this.rotateWithView_=e},e.prototype.setFill=function(e){this.fill_=e},e.prototype.setRotation=function(e){this.rotation_=e},e.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Object(o.d)(void 0!==e?e:1)},e.prototype.setStroke=function(e){this.stroke_=e},e.prototype.setText=function(e){this.text_=e},e.prototype.setTextAlign=function(e){this.textAlign_=e},e.prototype.setJustify=function(e){this.justify_=e},e.prototype.setTextBaseline=function(e){this.textBaseline_=e},e.prototype.setBackgroundFill=function(e){this.backgroundFill_=e},e.prototype.setBackgroundStroke=function(e){this.backgroundStroke_=e},e.prototype.setPadding=function(e){this.padding_=e},e}();t.a=a},function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c}));var r=n(6);function i(e,t,n,i,o,a,s){var l=(n-t)/i;if(l<3){for(;t<n;t+=i)a[s++]=e[t],a[s++]=e[t+1];return s}var c=new Array(l);c[0]=1,c[l-1]=1;for(var d=[t,n-i],u=0;d.length>0;){for(var h=d.pop(),p=d.pop(),f=0,m=e[p],g=e[p+1],v=e[h],y=e[h+1],b=p+i;b<h;b+=i){var _=e[b],w=e[b+1],x=Object(r.k)(_,w,m,g,v,y);x>f&&(u=b,f=x)}f>o&&(c[(u-t)/i]=1,p+i<u&&d.push(p,u),u+i<h&&d.push(u,h))}for(b=0;b<l;++b)c[b]&&(a[s++]=e[t+b*i],a[s++]=e[t+b*i+1]);return s}function o(e,t,n,r,o,a,s,l){for(var c=0,d=n.length;c<d;++c){var u=n[c];s=i(e,t,u,r,o,a,s),l.push(s),t=u}return s}function a(e,t){return t*Math.round(e/t)}function s(e,t,n,r,i,o,s){if(t==n)return s;var l,c,d=a(e[t],i),u=a(e[t+1],i);t+=r,o[s++]=d,o[s++]=u;do{if(l=a(e[t],i),c=a(e[t+1],i),(t+=r)==n)return o[s++]=l,o[s++]=c,s}while(l==d&&c==u);for(;t<n;){var h=a(e[t],i),p=a(e[t+1],i);if(t+=r,h!=l||p!=c){var f=l-d,m=c-u,g=h-d,v=p-u;f*v==m*g&&(f<0&&g<f||f==g||f>0&&g>f)&&(m<0&&v<m||m==v||m>0&&v>m)?(l=h,c=p):(o[s++]=l,o[s++]=c,d=l,u=c,l=h,c=p)}}return o[s++]=l,o[s++]=c,s}function l(e,t,n,r,i,o,a,l){for(var c=0,d=n.length;c<d;++c){var u=n[c];a=s(e,t,u,r,i,o,a),l.push(a),t=u}return a}function c(e,t,n,r,i,o,a,s){for(var c=0,d=n.length;c<d;++c){var u=n[c],h=[];a=l(e,t,u,r,i,o,a,h),s.push(h),t=u[u.length-1]}return a}},function(e,t,n){n.d(t,"b",(function(){return h}));var r,i=n(11),o=n(160),a=n(21),s=n(59),l=n(0),c=n(12),d=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t,n,r,i,o,s){var l=e.call(this,t,n,r,a.a.IDLE)||this;return l.src_=i,l.image_=new Image,null!==o&&(l.image_.crossOrigin=o),l.unlisten_=null,l.state=a.a.IDLE,l.imageLoadFunction_=s,l}return d(t,e),t.prototype.getImage=function(){return this.image_},t.prototype.handleImageError_=function(){this.state=a.a.ERROR,this.unlistenImage_(),this.changed()},t.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(l.getHeight)(this.extent)/this.image_.height),this.state=a.a.LOADED,this.unlistenImage_(),this.changed()},t.prototype.load=function(){this.state!=a.a.IDLE&&this.state!=a.a.ERROR||(this.state=a.a.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=h(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.setImage=function(e){this.image_=e,this.resolution=Object(l.getHeight)(this.extent)/this.image_.height},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(o.a);function h(e,t,n){var r=e,o=!0,a=!1,l=!1,d=[Object(c.listenOnce)(r,i.a.LOAD,(function(){l=!0,a||t()}))];return r.src&&s.c?(a=!0,r.decode().then((function(){o&&t()})).catch((function(e){o&&(l?t():n())}))):d.push(Object(c.listenOnce)(r,i.a.ERROR,n)),function(){o=!1,d.forEach(c.unlistenByKey)}}t.a=u},function(e,t,n){var r,i=n(92),o=n(11),a=n(13),s=n(4),l=n(82),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t,n,r){var i=e.call(this)||this,o=r||{};return i.tileCoord=t,i.state=n,i.interimTile=null,i.key="",i.transition_=void 0===o.transition?250:o.transition,i.transitionStarts_={},i.interpolate=!!o.interpolate,i}return c(t,e),t.prototype.changed=function(){this.dispatchEvent(o.a.CHANGE)},t.prototype.release=function(){},t.prototype.getKey=function(){return this.key+"/"+this.tileCoord},t.prototype.getInterimTile=function(){if(!this.interimTile)return this;var e=this.interimTile;do{if(e.getState()==a.a.LOADED)return this.transition_=0,e;e=e.interimTile}while(e);return this},t.prototype.refreshInterimChain=function(){if(this.interimTile){var e=this.interimTile,t=this;do{if(e.getState()==a.a.LOADED){e.interimTile=null;break}e.getState()==a.a.LOADING?t=e:e.getState()==a.a.IDLE?t.interimTile=e.interimTile:t=e,e=t.interimTile}while(e)}},t.prototype.getTileCoord=function(){return this.tileCoord},t.prototype.getState=function(){return this.state},t.prototype.setState=function(e){if(this.state!==a.a.ERROR&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()},t.prototype.load=function(){Object(s.b)()},t.prototype.getAlpha=function(e,t){if(!this.transition_)return 1;var n=this.transitionStarts_[e];if(n){if(-1===n)return 1}else n=t,this.transitionStarts_[e]=n;var r=t-n+1e3/60;return r>=this.transition_?1:Object(l.a)(r/this.transition_)},t.prototype.inTransition=function(e){return!!this.transition_&&-1!==this.transitionStarts_[e]},t.prototype.endTransition=function(e){this.transition_&&(this.transitionStarts_[e]=-1)},t}(i.a);t.a=d},function(e,t,n){n.d(t,"a",(function(){return g}));var r,i=n(39),o=n(112),a=n(163),s=n(13),l=n(4),c=n(15),d=n(1),u=n(43),h=n(54),p=n(30),f=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t){var n=e.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate})||this;return n.on,n.once,n.un,n.opaque_=void 0!==t.opaque&&t.opaque,n.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,n.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,n.tileGrid&&Object(p.d)(n.tileGrid.getTileSize(n.tileGrid.getMinZoom()),[256,256]),n.tileCache=new a.a(t.cacheSize||0),n.tmpSize=[0,0],n.key_=t.key||"",n.tileOptions={transition:t.transition,interpolate:t.interpolate},n.zDirection=t.zDirection?t.zDirection:0,n}return f(t,e),t.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},t.prototype.expireCache=function(e,t){var n=this.getTileCacheForProjection(e);n&&n.expireCache(t)},t.prototype.forEachLoadedTile=function(e,t,n,r){var i=this.getTileCacheForProjection(e);if(!i)return!1;for(var o,a,l,c=!0,d=n.minX;d<=n.maxX;++d)for(var h=n.minY;h<=n.maxY;++h)a=Object(u.e)(t,d,h),l=!1,i.containsKey(a)&&(l=(o=i.get(a)).getState()===s.a.LOADED)&&(l=!1!==r(o)),l||(c=!1);return c},t.prototype.getGutterForProjection=function(e){return 0},t.prototype.getKey=function(){return this.key_},t.prototype.setKey=function(e){this.key_!==e&&(this.key_=e,this.changed())},t.prototype.getOpaque=function(e){return this.opaque_},t.prototype.getResolutions=function(){return this.tileGrid?this.tileGrid.getResolutions():null},t.prototype.getTile=function(e,t,n,r,i){return Object(l.b)()},t.prototype.getTileGrid=function(){return this.tileGrid},t.prototype.getTileGridForProjection=function(e){return this.tileGrid?this.tileGrid:Object(h.getForProjection)(e)},t.prototype.getTileCacheForProjection=function(e){var t=this.getProjection();return Object(c.a)(null===t||Object(d.equivalent)(t,e),68),this.tileCache},t.prototype.getTilePixelRatio=function(e){return this.tilePixelRatio_},t.prototype.getTilePixelSize=function(e,t,n){var r=this.getTileGridForProjection(n),i=this.getTilePixelRatio(t),o=Object(p.d)(r.getTileSize(e),this.tmpSize);return 1==i?o:Object(p.c)(o,i,this.tmpSize)},t.prototype.getTileCoordForTileUrlFunction=function(e,t){var n=void 0!==t?t:this.getProjection(),r=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(e=Object(h.wrapX)(r,e,n)),Object(u.g)(e,r)?e:null},t.prototype.clear=function(){this.tileCache.clear()},t.prototype.refresh=function(){this.clear(),e.prototype.refresh.call(this)},t.prototype.updateCacheSize=function(e,t){var n=this.getTileCacheForProjection(t);e>n.highWaterMark&&(n.highWaterMark=e)},t.prototype.useTile=function(e,t,n,r){},t}(o.a),g=function(e){function t(t,n){var r=e.call(this,t)||this;return r.tile=n,r}return f(t,e),t}(i.a);t.b=m},function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}
776)),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s}));var r=n(0);function i(e,t,n,i,a){return!Object(r.forEachCorner)(a,(function(r){return!o(e,t,n,i,r[0],r[1])}))}function o(e,t,n,r,i,o){for(var a=0,s=e[n-r],l=e[n-r+1];t<n;t+=r){var c=e[t],d=e[t+1];l<=o?d>o&&(c-s)*(o-l)-(i-s)*(d-l)>0&&a++:d<=o&&(c-s)*(o-l)-(i-s)*(d-l)<0&&a--,s=c,l=d}return 0!==a}function a(e,t,n,r,i,a){if(0===n.length)return!1;if(!o(e,t,n[0],r,i,a))return!1;for(var s=1,l=n.length;s<l;++s)if(o(e,n[s-1],n[s],r,i,a))return!1;return!0}function s(e,t,n,r,i,o){if(0===n.length)return!1;for(var s=0,l=n.length;s<l;++s){var c=n[s];if(a(e,t,c,r,i,o))return!0;t=c[c.length-1]}return!1}},function(e,t,n){n.d(t,"a",(function(){return i}));var r=function(){function e(e,t,n,r){this.minX=e,this.maxX=t,this.minY=n,this.maxY=r}return e.prototype.contains=function(e){return this.containsXY(e[1],e[2])},e.prototype.containsTileRange=function(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY},e.prototype.containsXY=function(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY},e.prototype.equals=function(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY},e.prototype.extend=function(e){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)},e.prototype.getHeight=function(){return this.maxY-this.minY+1},e.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},e.prototype.getWidth=function(){return this.maxX-this.minX+1},e.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},e}();function i(e,t,n,i,o){return void 0!==o?(o.minX=e,o.maxX=t,o.minY=n,o.maxY=i,o):new r(e,t,n,i)}t.b=r},function(e,t,n){var r,i=n(136),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,o)||this;return s.originalEvent=r,s.pixel_=null,s.coordinate_=null,s.dragging=void 0!==i&&i,s.activePointers=a,s}return o(t,e),Object.defineProperty(t.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(e){this.pixel_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(e){this.coordinate_=e},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){e.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){e.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},t}(i.a);t.a=a},function(e,t,n){var r,i=n(60),o=n(4),a=n(1),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this)||this;n.projection=Object(a.get)(t.projection),n.attributions_=c(t.attributions),n.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,n.loading=!1,n.state_=void 0!==t.state?t.state:"ready",n.wrapX_=void 0!==t.wrapX&&t.wrapX,n.interpolate_=!!t.interpolate,n.viewResolver=null,n.viewRejector=null;var r=n;return n.viewPromise_=new Promise((function(e,t){r.viewResolver=e,r.viewRejector=t})),n}return s(t,e),t.prototype.getAttributions=function(){return this.attributions_},t.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},t.prototype.getProjection=function(){return this.projection},t.prototype.getResolutions=function(){return Object(o.b)()},t.prototype.getView=function(){return this.viewPromise_},t.prototype.getState=function(){return this.state_},t.prototype.getWrapX=function(){return this.wrapX_},t.prototype.getInterpolate=function(){return this.interpolate_},t.prototype.refresh=function(){this.changed()},t.prototype.setAttributions=function(e){this.attributions_=c(e),this.changed()},t.prototype.setState=function(e){this.state_=e,this.changed()},t}(i.a);function c(e){return e?Array.isArray(e)?function(t){return e}:"function"==typeof e?e:function(t){return[e]}:null}t.a=l},function(e,t,n){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},i={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0}},function(e,t,n){n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return m}));var r,i=n(113),o=n(5),a=n(0),s=n(23),l=n(1),c=n(6),d=[];function u(e,t,n,r,i){e.beginPath(),e.moveTo(0,0),e.lineTo(t,n),e.lineTo(r,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,r)+1,Math.max(n,i)),e.restore(
776)}function h(e,t){return Math.abs(e[4*t]-210)>2||Math.abs(e[4*t+3]-191.25)>2}function p(e,t,n,r){var i=Object(l.transform)(n,t,e),o=Object(l.getPointResolution)(t,r,n),s=t.getMetersPerUnit();void 0!==s&&(o*=s);var c=e.getMetersPerUnit();void 0!==c&&(o/=c);var d=e.getExtent();if(!d||Object(a.containsCoordinate)(d,i)){var u=Object(l.getPointResolution)(e,o,i)/o;isFinite(u)&&u>0&&(o/=u)}return o}function f(e,t,n,r){var i=Object(a.getCenter)(n),o=p(e,t,i,r);return(!isFinite(o)||o<=0)&&Object(a.forEachCorner)(n,(function(n){return o=p(e,t,n,r),isFinite(o)&&o>0})),o}function m(e,t,n,l,p,f,m,g,v,y,b,_){var w=Object(s.a)(Math.round(n*e),Math.round(n*t),d);if(_||Object(o.a)(w,i.a),0===v.length)return w.canvas;function x(e){return Math.round(e*n)/n}w.scale(n,n),w.globalCompositeOperation="lighter";var C=Object(a.createEmpty)();v.forEach((function(e,t,n){Object(a.extend)(C,e.extent)}));var S=Object(a.getWidth)(C),E=Object(a.getHeight)(C),k=Object(s.a)(Math.round(n*S/l),Math.round(n*E/l));_||Object(o.a)(k,i.a);var T=n/l;v.forEach((function(e,t,n){var r=e.extent[0]-C[0],i=-(e.extent[3]-C[3]),o=Object(a.getWidth)(e.extent),s=Object(a.getHeight)(e.extent);e.image.width>0&&e.image.height>0&&k.drawImage(e.image,y,y,e.image.width-2*y,e.image.height-2*y,r*T,i*T,o*T,s*T)}));var O=Object(a.getTopLeft)(m);
776return g.getTriangles().forEach((function(e,t,i){var o=e.source,a=e.target,s=o[0][0],d=o[0][1],p=o[1][0],m=o[1][1],g=o[2][0],v=o[2][1],y=x((a[0][0]-O[0])/f),b=x(-(a[0][1]-O[1])/f),S=x((a[1][0]-O[0])/f),E=x(-(a[1][1]-O[1])/f),T=x((a[2][0]-O[0])/f),$=x(-(a[2][1]-O[1])/f),P=s,I=d;s=0,d=0;var L=[[p-=P,m-=I,0,0,S-y],[g-=P,v-=I,0,0,T-y],[0,0,p,m,E-b],[0,0,g,v,$-b]],A=Object(c.i)(L);if(A){if(w.save(),w.beginPath(),function(){if(void 0===r){var e=document.createElement("canvas").getContext("2d");e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",u(e,4,5,4,0),u(e,4,5,0,5);var t=e.getImageData(0,0,3,3).data;r=h(t,0)||h(t,4)||h(t,8)}return r}()||!_){w.moveTo(S,E);for(var M=y-S,j=b-E,R=0;R<4;R++)w.lineTo(S+x((R+1)*M/4),E+x(R*j/3)),3!=R&&w.lineTo(S+x((R+1)*M/4),E+x((R+1)*j/3));w.lineTo(T,$)}else w.moveTo(S,E),w.lineTo(y,b),w.lineTo(T,$);w.clip(),w.transform(A[0],A[2],A[1],A[3],y,b),w.translate(C[0]-P,C[3]-I),w.scale(l/n,-l/n),w.drawImage(k.canvas,0,0),w.restore()}})),b&&(w.save(),w.globalCompositeOperation="source-over",w.strokeStyle="black",w.lineWidth=1,g.getTriangles().forEac
776h((function(e,t,n){var r=e.target,i=(r[0][0]-O[0])/f,o=-(r[0][1]-O[1])/f,a=(r[1][0]-O[0])/f,s=-(r[1][1]-O[1])/f,l=(r[2][0]-O[0])/f,c=-(r[2][1]-O[1])/f;w.beginPath(),w.moveTo(a,s),w.lineTo(i,o),w.lineTo(l,c),w.closePath(),w.stroke()})),w.restore()),w.canvas}},function(e,t,n){var r,i=n(210),o=n(208),a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.createRenderer=function(){return new o.a(this)},t}(i.a);t.a=s},function(e,t,n){var r=function(){function e(){this.disposed=!1}return e.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},e.prototype.disposeInternal=function(){},e}();t.a=r},function(e,t,n){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return d}));var r=n(0),i=n(201),o=n(109);function a(e,t,n,o,a){var s=Object(r.extendFlatCoordinates)(Object(r.createEmpty)(),e,t,n,o);return!!Object(r.intersects)(a,s)&&(!!Object(r.containsExtent)(a,s)||s[0]>=a[0]&&s[2]<=a[2]||s[1]>=a[1]&&s[3]<=a[3]||Object(i.a)(e,t,n,o,(function(e,t){return Object(r.intersectsSegment)(a,e,t)})))}function s(e,t,n,r,i){for(var o=0,s=n.length;o<s;++o){if(a(e,t,n[o],r,i))return!0;t=n[o]}return!1}function l(e,t,n,r,i){return!!(a(e,t,n,r,i)||Object(o.b)(e,t,n,r,i[0],i[1])||Object(o.b)(e,t,n,r,i[0],i[3])||Object(o.b)(e,t,n,r,i[2],i[1])||Object(o.b)(e,t,n,r,i[2],i[3]))}function c(e,t,n,r,i){if(!l(e,t,n[0],r,i))return!1;if(1===n.length)return!0;for(var s=1,c=n.length;s<c;++s)if(Object(o.a)(e,n[s-1],n[s],r,i)&&!a(e,n[s-1],n[s],r,i))return!1;return!0}function d(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o];if(c(e,t,s,r,i))return!0;t=s[s.length-1]}return!1}},function(e,t,n){var r,i=n(19),o=n(77),a=n(200),s=n(95),l=n(0),c=n(17),d=n(9),u=n(66),h=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.tolerance=t,o.maxExtent=n,o.pixelRatio=i,o.maxLineWidth=0,o.resolution=r,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return h(t,e),t.prototype.applyPixelRatio=function(e){var t=this.pixelRatio;return 1==t?e:e.map((function(e){return e*t}))},t.prototype.appendFlatPointCoordinates=function(e,t){for(var n=this.getBufferedMaxExtent(),r=this.tmpCoordinate_,i=this.coordinates,o=i.length,a=0,s=e.length;a<s;a+=t)r[0]=e[a],r[1]=e[a+1],Object(l.containsCoordinate)(n,r)&&(i[o++]=r[0],i[o++]=r[1]);return o},t.prototype.appendFlatLineCoordinates=function(e,t,n,r,i,a){var s=this.coordinates,c=s.length,d=this.getBufferedMaxExtent();a&&(t+=r);var u,h,p,f=e[t],m=e[t+1],g=this.tmpCoordinate_,v=!0;for(u=t+r;u<n;u+=r)g[0]=e[u],g[1]=e[u+1],(p=Object(l.coordinateRelationship)(d,g))!==h?(v&&(s[c++]=f,s[c++]=m,v=!1),s[c++]=g[0],s[c++]=g[1]):p===o.a.INTERSECTING?(s[c++]=g[0],s[c++]=g[1],v=!1):v=!0,f=g[0],m=g[1],h=p;return(i&&v||u===t+r)&&(s[c++]=f,s[c++]=m),c},t.prototype.drawCustomCoordinates_=function(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o],l=this.appendFlatLineCoordinates(e,t,s,r,!1,!1);i.push(l),t=s}return t},t.prototype.drawCustom=function(e,t,n,r){this.beginGeometry(e,t);var o,a,s,l,c,d=e.getType(),h=e.getStride(),p=this.coordinates.length;switch(d){case"MultiPolygon":o=e.getOrientedFlatCoordinates(),l=[];var f=e.getEndss();c=0;for(var m=0,g=f.length;m<g;++m){var v=[];c=this.drawCustomCoordinates_(o,c,f[m],h,v),l.push(v)}this.instructions.push([i.c.CUSTOM,p,l,e,n,u.c]),this.hitDetectionInstructions.push([i.c.CUSTOM,p,l,e,r||n,u.c]);break;case"Polygon":case"MultiLineString":s=[],o="Polygon"==d?e.getOrientedFlatCoordinates():e.getFlatCoordinates(),c=this.drawCustomCoordinates_(o,0,e.getEnds(),h,s),this.instructions.push([i.c.CUSTOM,p,s,e,n,u.b]),this.hitDetectionInstructions.push([i.c.CUSTOM,p,s,e,r||n,u.b]);break;
776case"LineString":case"Circle":o=e.getFlatCoordinates(),a=this.appendFlatLineCoordinates(o,0,o.length,h,!1,!1),this.instructions.push([i.c.CUSTOM,p,a,e,n,u.a]),this.hitDetectionInstructions.push([i.c.CUSTOM,p,a,e,r||n,u.a]);break;case"MultiPoint":o=e.getFlatCoordinates(),(a=this.appendFlatPointCoordinates(o,h))>p&&(this.instructions.push([i.c.CUSTOM,p,a,e,n,u.a]),this.hitDetectionInstructions.push([i.c.CUSTOM,p,a,e,r||n,u.a]));break;case"Point":o=e.getFlatCoordinates(),this.coordinates.push(o[0],o[1]),a=this.coordinates.length,this.instructions.push([i.c.CUSTOM,p,a,e,n]),this.hitDetectionInstructions.push([i.c.CUSTOM,p,a,e,r||n])}this.endGeometry(t)},t.prototype.beginGeometry=function(e,t){this.beginGeometryInstruction1_=[i.c.BEGIN_GEOMETRY,t,0,e],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[i.c.BEGIN_GEOMETRY,t,0,e],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},t.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},t.prototype.reverseHitDetectionInstructions=function(){var e,t=this.hitDetectionInstructions;t.reverse();var n,r,o=t.length,a=-1;for(e=0;e<o;++e)(r=(n=t[e])[0])==i.c.END_GEOMETRY?a=e:r==i.c.BEGIN_GEOMETRY&&(n[2]=e,Object(d.j)(this.hitDetectionInstructions,a,e),a=-1)},t.prototype.setFillStrokeStyle=function(e,t){var n=this.state;if(e){var r=e.getColor();n.fillStyle=Object(s.a)(r||c.b)}else n.fillStyle=void 0;if(t){var i=t.getColor();n.strokeStyle=Object(s.a)(i||c.k);var o=t.getLineCap();n.lineCap=void 0!==o?o:c.d;var a=t.getLineDash();n.lineDash=a?a.slice():c.e;var l=t.getLineDashOffset();n.lineDashOffset=l||c.f;var d=t.getLineJoin();n.lineJoin=void 0!==d?d:c.g;var u=t.getWidth();n.lineWidth=void 0!==u?u:c.h;var h=t.getMiterLimit();n.miterLimit=void 0!==h?h:c.i,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},t.prototype.createFill=function(e){var t=e.fillStyle,n=[i.c.SET_FILL_STYLE,t];return"string"!=typeof t&&n.push(!0),n},t.prototype.applyStroke=function(e){this.instructions.push(this.createStroke(e))},t.prototype.createStroke=function(e){return[i.c.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]},t.prototype.updateFillStyle=function(e,t){var n=e.fillStyle;"string"==typeof n&&e.currentFillStyle==n||(void 0!==n&&this.instructions.push(t.call(this,e)),e.currentFillStyle=n)},t.prototype.updateStrokeStyle=function(e,t){var n=e.strokeStyle,r=e.lineCap,i=e.lineDash,o=e.lineDashOffset,a=e.lineJoin,s=e.lineWidth,l=e.miterLimit;(e.currentStrokeStyle!=n||e.currentLineCap!=r||i!=e.currentLineDash&&!Object(d.b)(e.currentLineDash,i)||e.currentLineDashOffset!=o||e.currentLineJoin!=a||e.currentLineWidth!=s||e.currentMiterLimit!=l)&&(void 0!==n&&t.call(this,e),e.currentStrokeStyle=n,e.currentLineCap=r,e.currentLineDash=i,e.currentLineDashOffset=o,e.currentLineJoin=a,e.currentLineWidth=s,e.currentMiterLimit=l)},t.prototype.endGeometry=function(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var t=[i.c.END_GEOMETRY,e];this.instructions.push(t),this.hitDetectionInstructions.push(t)},t.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(l.clone)(this.maxExtent),this.maxLineWidth>0)){var e=this.resolution*(this.maxLineWidth+1)/2;Object(l.buffer)(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},t}(a.a);t.a=p},function(e,t,n){var r,i=n(75),o=n(159),a=n.n(o),s=n(5),l=n(44),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d="renderOrder",u=function(e){function t(t){var n=this,r=t||{},i=Object(s.a)({},r);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,(n=e.call(this,i)||this).declutter_=void 0!==r.declutter&&r.declutter,n.renderBuffer_=void 0!==r.renderBuffer?r.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(r.style),n.updateWhileAnimating_=void 0!==r.updateWhileAnimating&&r.updateWhileAnimating,
776n.updateWhileInteracting_=void 0!==r.updateWhileInteracting&&r.updateWhileInteracting,n}return c(t,e),t.prototype.getDeclutter=function(){return this.declutter_},t.prototype.getFeatures=function(t){return e.prototype.getFeatures.call(this,t)},t.prototype.getRenderBuffer=function(){return this.renderBuffer_},t.prototype.getRenderOrder=function(){return this.get(d)},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},t.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},t.prototype.renderDeclutter=function(e){e.declutterTree||(e.declutterTree=new a.a(9)),this.getRenderer().renderDeclutter(e)},t.prototype.setRenderOrder=function(e){this.set(d,e)},t.prototype.setStyle=function(e){this.style_=void 0!==e?e:l.a,this.styleFunction_=null===e?void 0:Object(l.d)(this.style_),this.changed()},t}(i.a);t.a=u},function(e,t,n){var r,i=n(14),o=n(52),a=n(90),s=n(0),l=n(81),c=n(105),d=n(66),u=n(161),h=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t,n){var r=e.call(this)||this;return r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?r.setCoordinates(t,n):r.setFlatCoordinates(n,t),r}return h(t,e),t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(s.closestSquaredDistanceXY)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a.e)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a.d)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.getArea=function(){return Object(u.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinates=function(){return Object(d.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=Object(c.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,i.a.XY)},t.prototype.getType=function(){return"LinearRing"},t.prototype.intersectsExtent=function(e){return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(l.b)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(o.a);t.a=p},function(e,t,n){n.d(t,"a",(function(){return r}));var r=function(){function e(){Ae(this,e)}var t,n,r;return Ie(e,[{key:"fetch",value:(r=Ve($e().mark((function e(t,n){var r=this;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t.map((function(e){return r.fetchSlice(e,n)}))));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})},{key:"fetchSlice",value:(n=Ve($e().mark((function e(t){return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("fetching of slice ".concat(t," not possible, not implemented"));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"fileSize",get:function(){return null}},{key:"close",value:(t=Ve($e().mark((function e(){return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}()},function(e,t,n){n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(6);function i(e){return void 0!==e?0:void 0}function o(e){return void 0!==e?e:void 0}function a(e){var t=2*Math.PI/e;return function(e,n){return n?e:void 0!==e?e=Math.floor(e/t+.5)*t:void 0}}function s(e){var t=e||Object(r.m)(5);return function(e,n){return n?e:void 0!==e?Math.abs(e)<=t?0:e:void 0}}},function(e,t,n){t.a={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"}},function(e,t,n){var r,i=n(107),o=n(13),a=n(23),s=n(106),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,a)||this;return s.crossOrigin_=i,s.src_=r,s.key=r,s.image_=new Image,null!==i&&(s.image_.crossOrigin=i),s.unlisten_=null,s.tileLoadFunction_=o,s}return l(t,e),t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(e){this.image_=e,this.state=o.a.LOADED,this.unlistenImage_(),this.changed()},t.prototype.handleImageError_=function(){var e;this.state=o.a.ERROR,this.unlistenImage_(),this.image_=((e=Object(a.a)(1,1)).fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas),this.changed()},t.prototype.handleImageLoad_=function(){var e=this.image_;
776e.naturalWidth&&e.naturalHeight?this.state=o.a.LOADED:this.state=o.a.EMPTY,this.unlistenImage_(),this.changed()},t.prototype.load=function(){this.state==o.a.ERROR&&(this.state=o.a.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==o.a.IDLE&&(this.state=o.a.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(s.b)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(i.a);t.a=c},function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}));var r=n(9),i=n(6);function o(e,t,n,o,a,s,l){var c,d,u=(n-t)/o;if(1===u)c=t;else if(2===u)c=t,d=a;else if(0!==u){for(var h=e[t],p=e[t+1],f=0,m=[0],g=t+o;g<n;g+=o){var v=e[g],y=e[g+1];f+=Math.sqrt((v-h)*(v-h)+(y-p)*(y-p)),m.push(f),h=v,p=y}var b=a*f,_=Object(r.a)(m,b);_<0?(d=(b-m[-_-2])/(m[-_-1]-m[-_-2]),c=t+(-_-2)*o):c=t+_*o}var w=l>1?l:2,x=s||new Array(w);for(g=0;g<w;++g)x[g]=void 0===c?NaN:void 0===d?e[c+g]:Object(i.e)(e[c+g],e[c+o+g],d);return x}function a(e,t,n,r,o,a){if(n==t)return null;var s;if(o<e[t+r-1])return a?((s=e.slice(t,t+r))[r-1]=o,s):null;if(e[n-1]<o)return a?((s=e.slice(n-r,n))[r-1]=o,s):null;if(o==e[t+r-1])return e.slice(t,t+r);for(var l=t/r,c=n/r;l<c;){var d=l+c>>1;o<e[(d+1)*r-1]?c=d:l=d+1}var u=e[l*r-1];if(o==u)return e.slice((l-1)*r,(l-1)*r+r);var h=(o-u)/(e[(l+1)*r-1]-u);s=[];for(var p=0;p<r-1;++p)s.push(Object(i.e)(e[(l-1)*r+p],e[l*r+p],h));return s.push(o),s}function s(e,t,n,r,i,o,s){if(s)return a(e,t,n[n.length-1],r,i,o);var l;if(i<e[r-1])return o?((l=e.slice(0,r))[r-1]=i,l):null;if(e[e.length-1]<i)return o?((l=e.slice(e.length-r))[r-1]=i,l):null;for(var c=0,d=n.length;c<d;++c){var u=n[c];if(t!=u){if(i<e[t+r-1])return null;if(i<=e[u-1])return a(e,t,u,r,i,!1);t=u}}return null}},function(e,t,n){n.d(t,"a",(function(){return g}));var r,i=n(205),o=n(37),a=n(51),s=n(39),l=n(11),c=n(100),d=n(15),u=n(5),h=n(0),p=n(4),f=n(12),m=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e){function t(t,n){var r=e.call(this,t)||this;return r.layer=n,r}return m(t,e),t}(s.a),v="layers",y=function(e){function t(t){var n=this,r=t||{},i=Object(u.a)({},r);delete i.layers;var a=r.layers;return(n=e.call(this,i)||this).on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(v,n.handleLayersChanged_),a?Array.isArray(a)?a=new o.a(a.slice(),{unique:!0}):Object(d.a)("function"==typeof a.getArray,43):a=new o.a(void 0,{unique:!0}),n.setLayers(a),n}return m(t,e),t.prototype.handleLayerChange_=function(){this.changed()},t.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(f.unlistenByKey),this.layersListenerKeys_.length=0;var e=this.getLayers();for(var t in this.layersListenerKeys_.push(Object(f.listen)(e,a.a.ADD,this.handleLayersAdd_,this),Object(f.listen)(e,a.a.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[t].forEach(f.unlistenByKey);Object(u.b)(this.listenerKeys_);for(var n=e.getArray(),r=0,i=n.length;r<i;r++){var o=n[r];this.registerLayerListeners_(o),this.dispatchEvent(new g("addlayer",o))}this.changed()},t.prototype.registerLayerListeners_=function(e){var n=[Object(f.listen)(e,c.a.PROPERTYCHANGE,this.handleLayerChange_,this),Object(f.listen)(e,l.a.CHANGE,this.handleLayerChange_,this)];e instanceof t&&n.push(Object(f.listen)(e,"addlayer",this.handleLayerGroupAdd_,this),Object(f.listen)(e,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[Object(p.c)(e)]=n},t.prototype.handleLayerGroupAdd_=function(e){this.dispatchEvent(new g("addlayer",e.layer))},t.prototype.handleLayerGroupRemove_=function(e){this.dispatchEvent(new g("removelayer",e.layer))},t.prototype.handleLayersAdd_=function(e){var t=e.element;this.registerLayerListeners_(t),this.dispatchEvent(new g("addlayer",t)),this.changed()},t.prototype.handleLayersRemove_=function(e){var t=e.element,n=Object(p.c)(t);
776this.listenerKeys_[n].forEach(f.unlistenByKey),delete this.listenerKeys_[n],this.dispatchEvent(new g("removelayer",t)),this.changed()},t.prototype.getLayers=function(){return this.get(v)},t.prototype.setLayers=function(e){var t=this.getLayers();if(t)for(var n=t.getArray(),r=0,i=n.length;r<i;++r)this.dispatchEvent(new g("removelayer",n[r]));this.set(v,e)},t.prototype.getLayersArray=function(e){var t=void 0!==e?e:[];return this.getLayers().forEach((function(e){e.getLayersArray(t)})),t},t.prototype.getLayerStatesArray=function(e){var t=void 0!==e?e:[],n=t.length;this.getLayers().forEach((function(e){e.getLayerStatesArray(t)}));var r=this.getLayerState(),i=r.zIndex;e||void 0!==r.zIndex||(i=0);for(var o=n,a=t.length;o<a;o++){var s=t[o];s.opacity*=r.opacity,s.visible=s.visible&&r.visible,s.maxResolution=Math.min(s.maxResolution,r.maxResolution),s.minResolution=Math.max(s.minResolution,r.minResolution),s.minZoom=Math.max(s.minZoom,r.minZoom),s.maxZoom=Math.min(s.maxZoom,r.maxZoom),void 0!==r.extent&&(void 0!==s.extent?s.extent=Object(h.getIntersection)(s.extent,r.extent):s.extent=r.extent),void 0===s.zIndex&&(s.zIndex=i)}return t},t.prototype.getSourceState=function(){return"ready"},t}(i.a);t.b=y},function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=function(){function e(){Ae(this,e)}var t;return Ie(e,[{key:"ok",get:function(){return this.status>=200&&this.status<=299}},{key:"status",get:function(){throw new Error("not implemented")}},{key:"getHeader",value:function(e){throw new Error("not implemented")}},{key:"getData",value:(t=Ve($e().mark((function e(){return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("not implemented");case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}(),i=function(){function e(t){Ae(this,e),this.url=t}var t;return Ie(e,[{key:"request",value:(t=Ve($e().mark((function e(){var t,n=arguments;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw(t=n.length>0&&void 0!==n[0]?n[0]:{}).headers,t.credentials,t.signal,new Error("request is not implemented");case 2:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}()},function(e,t,n){var r=n(46),i=function(){function e(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}return e.prototype.canWrapX=function(){return this.canWrapX_},e.prototype.getCode=function(){return this.code_},e.prototype.getExtent=function(){return this.extent_},e.prototype.getUnits=function(){return this.units_},e.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||r.a[this.units_]},e.prototype.getWorldExtent=function(){return this.worldExtent_},e.prototype.getAxisOrientation=function(){return this.axisOrientation_},e.prototype.isGlobal=function(){return this.global_},e.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)},e.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},e.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},e.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)},e.prototype.setWorldExtent=function(e){this.worldExtent_=e},e.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},e.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},e}();t.a=i},function(e,t,n){var r,i=n(21),o=n(152),a=n(78),s=n(95),l=n(23),c=n(17),d=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=this,r=void 0!==t.rotateWithView&&t.rotateWithView;return(n=e.call(this,{opacity:1,rotateWithView:r,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.dis
776placement:[0,0],declutterMode:t.declutterMode})||this).canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=void 0!==t.fill?t.fill:null,n.origin_=[0,0],n.points_=t.points,n.radius_=void 0!==t.radius?t.radius:t.radius1,n.radius2_=t.radius2,n.angle_=void 0!==t.angle?t.angle:0,n.stroke_=void 0!==t.stroke?t.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return d(t,e),t.prototype.clone=function(){var e=this.getScale(),n=new t({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n},t.prototype.getAnchor=function(){var e=this.size_;if(!e)return null;var t=this.getDisplacement();return[e[0]/2-t[0],e[1]/2+t[1]]},t.prototype.getAngle=function(){return this.angle_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(e){this.fill_=e,this.render()},t.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},t.prototype.getImage=function(e){var t=this.canvas_[e];if(!t){var n=this.renderOptions_,r=Object(l.a)(n.size*e,n.size*e);this.draw_(n,r,e),t=r.canvas,this.canvas_[e]=t}return t},t.prototype.getPixelRatio=function(e){return e},t.prototype.getImageSize=function(){return this.size_},t.prototype.getImageState=function(){return i.a.LOADED},t.prototype.getOrigin=function(){return this.origin_},t.prototype.getPoints=function(){return this.points_},t.prototype.getRadius=function(){return this.radius_},t.prototype.getRadius2=function(){return this.radius2_},t.prototype.getSize=function(){return this.size_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(e){this.stroke_=e,this.render()},t.prototype.listenImageChange=function(e){},t.prototype.load=function(){},t.prototype.unlistenImageChange=function(e){},t.prototype.calculateLineJoinSize_=function(e,t,n){if(0===t||this.points_===1/0||"bevel"!==e&&"miter"!==e)return t;var r=this.radius_,i=void 0===this.radius2_?r:this.radius2_;if(r<i){var o=r;r=i,i=o}var a=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/a,l=i*Math.sin(s),c=r-Math.sqrt(i*i-l*l),d=Math.sqrt(l*l+c*c),u=d/l;if("miter"===e&&u<=n)return u*t;var h=t/2/u,p=t/2*(c/d),f=Math.sqrt((r+h)*(r+h)+p*p)-r;if(void 0===this.radius2_||"bevel"===e)return 2*f;var m=r*Math.sin(s),g=i-Math.sqrt(r*r-m*m),v=Math.sqrt(m*m+g*g)/m;if(v<=n){var y=v*t/2-i-r;return 2*Math.max(f,y)}return 2*f},t.prototype.createRenderOptions=function(){var e,t=c.g,n=0,r=null,i=0,o=0;this.stroke_&&(null===(e=this.stroke_.getColor())&&(e=c.k),e=Object(s.a)(e),void 0===(o=this.stroke_.getWidth())&&(o=c.h),r=this.stroke_.getLineDash(),i=this.stroke_.getLineDashOffset(),void 0===(t=this.stroke_.getLineJoin())&&(t=c.g),void 0===(n=this.stroke_.getMiterLimit())&&(n=c.i));var a=this.calculateLineJoinSize_(t,o,n),l=Math.max(this.radius_,this.radius2_||0);return{strokeStyle:e,strokeWidth:o,size:Math.ceil(2*l+a),lineDash:r,lineDashOffset:i,lineJoin:t,miterLimit:n}},t.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var e=this.renderOptions_.size;this.canvas_={},this.size_=[e,e]},t.prototype.draw_=function(e,t,n){if(t.scale(n,n),t.translate(e.size/2,e.size/2),this.createPath_(t),this.fill_){var r=this.fill_.getColor();null===r&&(r=c.b),t.fillStyle=Object(s.a)(r),t.fill()}this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,t.setLineDash&&e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())},t.prototype.createHitDetectionCanvas_=function(e){if(this.fill_){var t=this.fill_.getColor(),n=0;if("string"==typeof t&&(t=Object(a.a)(t)),null===t?n=1:Array.isArray(t)&&(n=4===t.length?t[3]:1),0===n){var r=Object(l.a)(e.size,e.size);this.hitDetectionCanvas_=r.canvas,this.drawHitDetectionCanvas_(e,r)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},t.prototype.createPath_=function(e){var t=this.points_,n=this.radius_;if(t===1/0)e.arc(0,0,n,0,2*Math.PI);else{var r=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(t*=2);for(var i=this.angle_-Math.PI/2,o=2*Math.PI/t,a=0;a<t;a++){var s=i+a*o,l=a%2==0?n:r;e.lineTo(l*Math.cos(s),l*Math.sin(s))}e.closePath()}},t.prototype.drawHitDetectionCanvas_=function(e,t){t.translate(e.size/2,e.size/2),this.createPath_(t),t.fillStyle=c.b,t.fill(),this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())},t}(o.a);t.a=u},function(e,t,n){var r,i=n(11),o=n(84),a=n(74),s=n(21),l=n(152),c=n(78),d=n(15),u=n(192),h=n(4),p=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t){var n=this,r=t||{},i=void 0!==r.opacity?r.opacity:1,l=void 0!==r.rotation?r.rotation:0,p=void 0!==r.scale?r.scale:1,f=void 0!==r.rotateWithView&&r.rotateWithView;(n=e.call(this,{opacity:i,rotation:l,scale:p,displacement:void 0!==r.displacement?r.displacement:[0,0],rotateWithView:f,declutterMode:r.declutterMode})||this).anchor_=void 0!==r.anchor?r.anchor:[.5,.5],n.normalizedAnchor_=null,n.anchorOrigin_=void 0!==r.anchorOrigin?r.anchorOrigin:a.a.TOP_LEFT,n.anchorXUnits_=void 0!==r.anchorXUnits?r.anchorXUnits:o.a.FRACTION,n.anchorYUnits_=void 0!==r.anchorYUnits?r.anchorYUnits:o.a.FRACTION,n.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null;var m=void 0!==r.img?r.img:null;n.imgSize_=r.imgSize;var g=r.src;Object(d.a)(!(void 0!==g&&m),4),Object(d.a)(!m||m&&n.imgSize_,5),void 0!==g&&0!==g.length||!m||(g=m.src||Object(h.c)(m)),Ob
776ject(d.a)(void 0!==g&&g.length>0,6);var v=void 0!==r.src?s.a.IDLE:s.a.LOADED;return n.color_=void 0!==r.color?Object(c.a)(r.color):null,n.iconImage_=Object(u.b)(m,g,void 0!==n.imgSize_?n.imgSize_:null,n.crossOrigin_,v,n.color_),n.offset_=void 0!==r.offset?r.offset:[0,0],n.offsetOrigin_=void 0!==r.offsetOrigin?r.offsetOrigin:a.a.TOP_LEFT,n.origin_=null,n.size_=void 0!==r.size?r.size:null,n}return p(t,e),t.prototype.clone=function(){var e=this.getScale();return new t({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(e)?e.slice():e,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},t.prototype.getAnchor=function(){var e=this.normalizedAnchor_;if(!e){e=this.anchor_;var t=this.getSize();if(this.anchorXUnits_==o.a.FRACTION||this.anchorYUnits_==o.a.FRACTION){if(!t)return null;e=this.anchor_.slice(),this.anchorXUnits_==o.a.FRACTION&&(e[0]*=t[0]),this.anchorYUnits_==o.a.FRACTION&&(e[1]*=t[1])}if(this.anchorOrigin_!=a.a.TOP_LEFT){if(!t)return null;e===this.anchor_&&(e=this.anchor_.slice()),this.anchorOrigin_!=a.a.TOP_RIGHT&&this.anchorOrigin_!=a.a.BOTTOM_RIGHT||(e[0]=-e[0]+t[0]),this.anchorOrigin_!=a.a.BOTTOM_LEFT&&this.anchorOrigin_!=a.a.BOTTOM_RIGHT||(e[1]=-e[1]+t[1])}this.normalizedAnchor_=e}var n=this.getDisplacement();return[e[0]-n[0],e[1]+n[1]]},t.prototype.setAnchor=function(e){this.anchor_=e,this.normalizedAnchor_=null},t.prototype.getColor=function(){return this.color_},t.prototype.getImage=function(e){return this.iconImage_.getImage(e)},t.prototype.getPixelRatio=function(e){return this.iconImage_.getPixelRatio(e)},t.prototype.getImageSize=function(){return this.iconImage_.getSize()},t.prototype.getImageState=function(){return this.iconImage_.getImageState()},t.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},t.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var e=this.offset_;if(this.offsetOrigin_!=a.a.TOP_LEFT){var t=this.getSize(),n=this.iconImage_.getSize();if(!t||!n)return null;e=e.slice(),this.offsetOrigin_!=a.a.TOP_RIGHT&&this.offsetOrigin_!=a.a.BOTTOM_RIGHT||(e[0]=n[0]-t[0]-e[0]),this.offsetOrigin_!=a.a.BOTTOM_LEFT&&this.offsetOrigin_!=a.a.BOTTOM_RIGHT||(e[1]=n[1]-t[1]-e[1])}return this.origin_=e,this.origin_},t.prototype.getSrc=function(){return this.iconImage_.getSrc()},t.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},t.prototype.listenImageChange=function(e){this.iconImage_.addEventListener(i.a.CHANGE,e)},t.prototype.load=function(){this.iconImage_.load()},t.prototype.unlistenImageChange=function(e){this.iconImage_.removeEventListener(i.a.CHANGE,e)},t}(l.a);t.a=f},function(e,t,n){n.d(t,"b",(function(){return O}));var r,i,o,a=n(11),s=n(107),l=n(13),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,a)||this;return s.extent=null,s.format_=i,s.features_=null,s.loader_,s.projection=null,s.resolution,s.tileLoadFunction_=o,s.url_=r,s.key=r,s}return c(t,e),t.prototype.getFormat=function(){return this.format_},t.prototype.getFeatures=function(){return this.features_},t.prototype.load=function(){this.state==l.a.IDLE&&(this.setState(l.a.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))},t.prototype.onLoad=function(e,t){this.setFeatures(e)},t.prototype.onError=function(){this.setState(l.a.ERROR)},t.prototype.setFeatures=function(e){this.features_=e,this.setState(l.a.LOADED)},t.prototype.setLoader=function(e){this.loader_=e},t}(s.a),u=n(163),h=n(86),p=n(154),f=n(23),m=n(4),g=(o=function(e,t){return(o=Object.
776setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=[],y=function(e){function t(t,n,r,i){var o=e.call(this,t,n,{transition:0})||this;return o.context_={},o.executorGroups={},o.declutterExecutorGroups={},o.loadingSourceTiles=0,o.hitDetectionImageData={},o.replayState_={},o.sourceTiles=[],o.errorTileKeys={},o.wantedResolution,o.getSourceTiles=i.bind(void 0,o),o.wrappedTileCoord=r,o}return g(t,e),t.prototype.getContext=function(e){var t=Object(m.c)(e);return t in this.context_||(this.context_[t]=Object(f.a)(1,1,v)),this.context_[t]},t.prototype.hasContext=function(e){return Object(m.c)(e)in this.context_},t.prototype.getImage=function(e){return this.hasContext(e)?this.getContext(e).canvas:null},t.prototype.getReplayState=function(e){var t=Object(m.c)(e);return t in this.replayState_||(this.replayState_[t]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[t]},t.prototype.load=function(){this.getSourceTiles()},t.prototype.release=function(){for(var t in this.context_){var n=this.context_[t];Object(f.d)(n),v.push(n.canvas),delete this.context_[t]}e.prototype.release.call(this)},t}(s.a),b=n(93),_=n(0),w=n(54),x=n(43),C=n(5),S=n(179),E=n(30),k=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),T=function(e){function t(t){var n=this,r=t.projection||"EPSG:3857",i=t.extent||Object(w.extentFromProjection)(r),o=t.tileGrid||Object(w.createXYZ)({extent:i,maxResolution:t.maxResolution,maxZoom:void 0!==t.maxZoom?t.maxZoom:22,minZoom:t.minZoom,tileSize:t.tileSize||512});return(n=e.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,interpolate:!0,opaque:!1,projection:r,state:t.state,tileGrid:o,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:O,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,zDirection:void 0===t.zDirection?1:t.zDirection})||this).format_=t.format?t.format:null,n.sourceTileCache=new u.a(n.tileCache.highWaterMark),n.overlaps_=null==t.overlaps||t.overlaps,n.tileClass=t.tileClass?t.tileClass:d,n.tileGrids_={},n}return k(t,e),t.prototype.getFeaturesInExtent=function(e){var t=[],n=this.tileCache;if(0===n.getCount())return t;var r=Object(x.b)(n.peekFirstKey())[0],i=this.tileGrid;return n.forEach((function(n){if(n.tileCoord[0]===r&&n.getState()===l.a.LOADED)for(var o=n.getSourceTiles(),a=0,s=o.length;a<s;++a){var c=o[a],d=c.tileCoord;if(Object(_.intersects)(e,i.getTileCoordExtent(d))){var u=c.getFeatures();if(u)for(var h=0,p=u.length;h<p;++h){var f=u[h],m=f.getGeometry();Object(_.intersects)(e,m.getExtent())&&t.push(f)}}}})),t},t.prototype.getOverlaps=function(){return this.overlaps_},t.prototype.clear=function(){this.tileCache.clear(),this.sourceTileCache.clear()},t.prototype.expireCache=function(t,n){var r=this.getTileCacheForProjection(t),i=Object.keys(n).reduce((function(e,t){var n=Object(x.c)(t),i=r.peek(n);if(i)for(var o=i.sourceTiles,a=0,s=o.length;a<s;++a)e[o[a].getKey()]=!0;return e}),{});e.prototype.expireCache.call(this,t,n),this.sourceTileCache.expireCache(i)},t.prototype.getSourceTiles=function(e,t,n){var r=this;if(n.getState()===l.a.IDLE){n.setState(l.a.LOADING);var i=n.wrappedTileCoord,o=this.getTileGridForProjection(t),s=o.getTileCoordExtent(i),c=i[0],d=o.getResolution(c);Object(_.buffer)(s,-d,s);var u=this.tileGrid,h=u.getExtent();h&&Object(_.getIntersection)(s,h,s);var p=u.getZForResolution(d,this.zDirection);u.forEachTileCoord(s,p,(function(i){var o=r.tileUrlFunction(i,e,t),s=r.sourceTileCache.containsKey(o)?r.sourceTileCache.get(o):new r.tileClass(i,o?l.a.IDLE:l.a.EMPTY,o,r.format_,r.tileLoadFunction);n.sourceTiles.push(s);var c=s.getState();if(c<l.a.LOADED){s.addEventListener(a.a.CHANGE,(function e(t){r.handleTileChange(t);var i=s.getState();if(i===l.a.LOADED||i===l.a.ERROR){var o=s.getKey();o in n.errorTileKeys?s.getState()===l.a.LOADED&&delete n.errorTileKeys[o]:n.loadingSourceTiles--,i===l.a.ERROR?n.errorTileKeys[o]=!0:s.removeEventListener(a.a.CHANGE,e),0===n.loadingSourceTiles&&n.setState(Object(C.d)(n.errorTileKeys)?l.a.LOADED:l.a.ERROR)}})),n.loadingSourceTiles++}c===l.a.IDLE&&(s.extent=u.getTileCoordExtent(i),s.projection=t,s.resolution=u.getResolution(i[0]),r.s
776ourceTileCache.set(o,s),s.load())})),n.loadingSourceTiles||n.setState(n.sourceTiles.some((function(e){return e.getState()===l.a.ERROR}))?l.a.ERROR:l.a.LOADED)}return n.sourceTiles},t.prototype.getTile=function(e,t,n,r,i){var o,a=Object(x.e)(e,t,n),s=this.getKey();if(this.tileCache.containsKey(a)&&(o=this.tileCache.get(a)).key===s)return o;var c=[e,t,n],d=this.getTileCoordForTileUrlFunction(c,i),u=this.getTileGrid().getExtent(),h=this.getTileGridForProjection(i);if(d&&u){var p=h.getTileCoordExtent(d);Object(_.buffer)(p,-h.getResolution(e),p),Object(_.intersects)(u,p)||(d=null)}var f=!0;if(null!==d){var m=this.tileGrid,g=h.getResolution(e),v=m.getZForResolution(g,1),b=h.getTileCoordExtent(d);Object(_.buffer)(b,-g,b),m.forEachTileCoord(b,v,function(e){f=f&&!this.tileUrlFunction(e,r,i)}.bind(this))}var w=new y(c,f?l.a.EMPTY:l.a.IDLE,d,this.getSourceTiles.bind(this,r,i));return w.key=s,o?(w.interimTile=o,w.refreshInterimChain(),this.tileCache.replace(a,w)):this.tileCache.set(a,w),w},t.prototype.getTileGridForProjection=function(e){var t=e.getCode(),n=this.tileGrids_[t];if(!n){for(var r=this.tileGrid,i=r.getResolutions().slice(),o=i.map((function(e,t){return r.getOrigin(t)})),a=i.map((function(e,t){return r.getTileSize(t)})),s=b.a+1,l=i.length;l<s;++l)i.push(i[l-1]/2),o.push(o[l-1]),a.push(a[l-1]);n=new h.a({extent:r.getExtent(),origins:o,resolutions:i,tileSizes:a}),this.tileGrids_[t]=n}return n},t.prototype.getTilePixelRatio=function(e){return e},t.prototype.getTilePixelSize=function(e,t,n){var r=this.getTileGridForProjection(n),i=Object(E.d)(r.getTileSize(e),this.tmpSize);return[Math.round(i[0]*t),Math.round(i[1]*t)]},t.prototype.updateCacheSize=function(t,n){e.prototype.updateCacheSize.call(this,2*t,n),this.sourceTileCache.highWaterMark=this.getTileCacheForProjection(n).highWaterMark},t}(p.a);function O(e,t){e.setLoader((function(n,r,i){Object(S.a)(t,e.getFormat(),n,r,i,e.onLoad.bind(e),e.onError.bind(e))}))}t.a=T},function(e,t,n){n.d(t,"a",(function(){return p}));var r,i=n(204),o=n(133),a=n(73),s=n(10),l=n(78),c=n(0),d=n(23),u=n(9),h=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=[],f=null,m=function(e){function t(t){var n=e.call(this,t)||this;return n.container=null,n.renderedResolution,n.tempTransform=Object(s.c)(),n.pixelTransform=Object(s.c)(),n.inversePixelTransform=Object(s.c)(),n.context=null,n.containerReused=!1,n.pixelContext_=null,n.frameState=null,n}return h(t,e),t.prototype.getImageData=function(e,t,n){var r,i;f||((r=document.createElement("canvas")).width=1,r.height=1,f=r.getContext("2d")),f.clearRect(0,0,1,1);try{f.drawImage(e,t,n,1,1,0,0,1,1),i=f.getImageData(0,0,1,1).data}catch(e){return f=null,null}return i},t.prototype.getBackground=function(e){var t=this.getLayer().getBackground();return"function"==typeof t&&(t=t(e.viewState.resolution)),t||void 0},t.prototype.useContainer=function(e,t,n){var r,i,o=this.getLayer().getClassName();if(e&&e.className===o&&(!n||e&&e.style.backgroundColor&&Object(u.b)(Object(l.a)(e.style.backgroundColor),Object(l.a)(n)))&&(s=e.firstElementChild)instanceof HTMLCanvasElement&&(i=s.getContext("2d")),i&&i.canvas.style.transform===t?(this.container=e,this.context=i,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(r=document.createElement("div")).className=o;var a=r.style;a.position="absolute",a.width="100%",a.height="100%";var s=(i=Object(d.a)()).canvas;r.appendChild(s),(a=s.style).position="absolute",a.left="0",a.transformOrigin="top left",this.container=r,this.context=i}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)},t.prototype.clipUnrotated=function(e,t,n){var r=Object(c.getTopLeft)(n),i=Object(c.getTopRight)(n),o=Object(c.getBottomRight)(n),a=Object(c.getBottomLeft)(n);Object(s.a)(t.coordinateToPixelTransform,r),Object(s.a)(t.coordinateToPixelTransform,i),Object(s.a)(t.coordinateToPixelTransform,o),Object(s.a)(t.coordinateToPixelTransform,a);var l=this.inversePixelTransform;Object(s.a)(l,r),Object(s.a)(l,i),Object(s.a)(l,o),Object(s.a)(l,a),e.save(),e.beginPath(),e.moveTo(Math.round(r[0]),Math.round(r[1])
776),e.lineTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.clip()},t.prototype.dispatchRenderEvent_=function(e,t,n){var r=this.getLayer();if(r.hasListener(e)){var i=new o.a(e,this.inversePixelTransform,n,t);r.dispatchEvent(i)}},t.prototype.preRender=function(e,t){this.frameState=t,this.dispatchRenderEvent_(a.a.PRERENDER,e,t)},t.prototype.postRender=function(e,t){this.dispatchRenderEvent_(a.a.POSTRENDER,e,t)},t.prototype.getRenderTransform=function(e,t,n,r,i,o,a){var l=i/2,c=o/2,d=r/t,u=-d,h=-e[0]+a,p=-e[1];return Object(s.b)(this.tempTransform,l,c,d,u,-n,h,p)},t.prototype.getDataAtPixel=function(e,t,n){var r=Object(s.a)(this.inversePixelTransform,e.slice()),i=this.context,o=this.getLayer().getExtent();if(o){var a=Object(s.a)(t.pixelToCoordinateTransform,e.slice());if(!Object(c.containsCoordinate)(o,a))return null}var l,d=Math.round(r[0]),u=Math.round(r[1]),h=this.pixelContext_;if(!h){var p=document.createElement("canvas");p.width=1,p.height=1,h=p.getContext("2d"),this.pixelContext_=h}h.clearRect(0,0,1,1);try{h.drawImage(i.canvas,d,u,1,1,0,0,1,1),l=h.getImageData(0,0,1,1).data}catch(e){return"SecurityError"===e.name?(this.pixelContext_=null,new Uint8Array):l}return 0===l[3]?null:l},t.prototype.disposeInternal=function(){delete this.frameState,e.prototype.disposeInternal.call(this)},t}(i.a);t.b=m},function(e,t,n){var r,i=n(39),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.inversePixelTransform=n,o.frameState=r,o.context=i,o}return o(t,e),t}(i.a);t.a=a},function(e,t,n){n.d(t,"a",(function(){return a}));var r=n(15),i=n(9),o=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},a={VERSION1:"version1",VERSION2:"version2",VERSION3:"version3"},s={};s[a.VERSION1]={level0:{supports:[],formats:[],qualities:["native"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["native"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["native","color","grey","bitonal"]}},s[a.VERSION2]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByDistortedWh","sizeByWh"],formats:["jpg","png"],qualities:["default","bitonal"]}},s[a.VERSION3]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","regionSquare","sizeByW","sizeByH","sizeByWh"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionSquare","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["default"]}},s.none={none:{supports:[],formats:[],qualities:[]}};var l=/^https?:\/\/library\.stanford\.edu\/iiif\/image-api\/(?:1\.1\/)?compliance\.html#level[0-2]$/,c=/^https?:\/\/iiif\.io\/api\/image\/2\/level[0-2](?:\.json)?$/,d=/(^https?:\/\/iiif\.io\/api\/image\/3\/level[0-2](?:\.json)?$)|(^level[0-2]$)/,u={};u[a.VERSION1]=function(e){var t=e.getComplianceLevelSupportedFeatures();return void 0===t&&(t=s[a.VERSION1].level0),{url:void 0===e.imageInfo["@id"]?void 0:e.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),supports:t.supports,formats:o(o([],t.formats,!0),[void 0===e.imageInfo.formats?[]:e.imageInfo.formats],!1),qualities:o(o([],t.qualities,!0),[void 0===e.imageInfo.qualities?[]:e.imageInfo.qualities],!1),resolutions:e.imageInfo.scale_factors,tileSize:void 0!==e.imageInfo.tile_width?void 0!==e.imageInfo.tile_height?[e.imageInfo.tile_width,e.imageInfo.tile_height]:[e.imageInfo.tile_width,e.imageInfo.tile_width]:null!=e.imageInfo.tile_height?[e.imageInfo.tile_height,e.imageInfo.tile_height]:void 0}},u[a.VERSION2]=function(e){var t=e.getComplianceLevelSupportedFeatures(),n=Array.isArray(e.imageInfo.profile)&&e.imageInfo.profile.length>1,r=n&&e.imageInfo.profile[1].supports?e.imageInfo.profile[1].supports:[],i=n&&e.imageInfo.profile[1].formats?e.imageInfo.profile[1].formats:[],a=n&&e.imageInfo.profile[1].qualities?e.imageInfo.profile[1].qualities:[];return{url:e.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:void 0===e.imageInfo.sizes?void 0:e.imageInfo.sizes.map((function(e){return[e.width,e.height]})),tileSize:void 0===e.imageInfo.tiles?void 0:[e.imageInfo.tiles.map((function(e){return e.width}))[0],e.imageInfo.tiles.map((function(e){return void 0===e.height?e.width:e.height}))[0]],resolutions:void 0===e.imageInfo.tiles?void 0:e.imageInfo.tiles.map((function(e){return e.scaleFactors}))[0],supports:o(o([],t.supports,!0),r,!0),formats:o(o([],t.formats,!0),i,!0),qualities:o(o([],t.qualities,!0),a,!0)}},u[a.VERSION3]=function(e){var t=e.getComplianceLevelSupportedFeatures(),n=void 0===e.imageInfo.extraFormats?t.formats:o(o([],t.formats,!0),e.imageInfo.extraFormats,!0),r=void 0!==e.imageInfo.preferredFormats&&Array.isArray(e.imageInfo.preferredFormats)&&e.imageInfo.preferredFormats.length>0?e.imageInfo.preferredFormats.filter((function(e){return Object(i.f)(["jpg","png","gif"],e)})).reduce((function(e,t){return void 0===e&&Object(i.f)(n,t)?t:e}),void 0):void 0;return{url:e.imageInfo.id,sizes:void 0===e.imageInfo.sizes?void 0:e.imageInfo.sizes.map((function(e){return[e.width,e.height]})),tileSize:void 0===e.imageInfo.tiles?void 0:[e.imageInfo.tiles.map((function(e){return e.width}))[0],e.imageInfo.tiles.map((function(e){return e.height}))[0]],resolutions:void 0===e.imageInfo.tiles?void 0:e.imageInfo.tiles.map((function(e){return e.scaleFactors}))[0],supports:void 0===e.imageInfo.extraFeatures?t.supports:o(o([],t.supports,!0),e.imageInfo.extraFeatures,!0),formats:n,qualities:void 0===e.imageInfo.extraQualities?t.qualities:o(o([],t.qualities,!0),e.imageInfo.extraQualities,!0),preferredFormat:r}};var h=function(){function e(e){this.setImageInfo(e)}return e.prototype.setImageInfo=function(e){this.imageInfo="string"==typeof e?JSON.parse(e):e},e.prototype.getImageApiVersion=function(){if(void 0!==this.imageInfo){var e=this.imageInfo["@context"]||"ol-no-context";"string"==typeof e&&(e=[e]);for(var t=0;t<e.length;t++)switch(e[t]){case"http://library.stanford.edu/iiif/image-api/1.1/context.json":case"http://iiif.io/api/image/1/context.json":return a.VERSION1;case"http://iiif.io/api/image/2/context.json":return a.VERSION2;case"http://iiif.io/api/image/3/context.json":return a.VERSION3;case"ol-no-context":if(this.getComplianceLevelEntryFromProfile(a.VERSION1)&&this.imageInfo.identifier)return a.VERSION1}Object(r.a)(!1,61)}},e.prototype.getComplianceLevelEntryFromProfile=function(e){if(void 0!==this.imageInfo&&void 0!==this.imageInfo.profile)switch(void 0===e&&(e=this.getImageApiVersion()),e){case a.VERSION1:if(l.test(this.imageInfo.profile))return this.imageInfo.profile;break;case a.VERSION3:if(d.test(this.imageInfo.profile))return this.imageInfo.profile;break;case a.VERSION2:if("string"==typeof this.imageInfo.profile&&c.test(this.imageInfo.profile))return this.imageInfo.profile;if(Array.isArray(this.imageInfo.profile)&&this.imageInfo.profile.length>0&&"string"==typeof this.imageInfo.profile[0]&&c.test(this.imageInfo.profile[0])
776)return this.imageInfo.profile[0]}},e.prototype.getComplianceLevelFromProfile=function(e){var t=this.getComplianceLevelEntryFromProfile(e);if(void 0!==t){var n=t.match(/level[0-2](?:\.json)?$/g);return Array.isArray(n)?n[0].replace(".json",""):void 0}},e.prototype.getComplianceLevelSupportedFeatures=function(){if(void 0!==this.imageInfo){var e=this.getImageApiVersion(),t=this.getComplianceLevelFromProfile(e);return void 0===t?s.none.none:s[e][t]}},e.prototype.getTileSourceOptions=function(e){var t=e||{},n=this.getImageApiVersion();if(void 0!==n){var r=void 0===n?void 0:u[n](this);if(void 0!==r)return{url:r.url,version:n,size:[this.imageInfo.width,this.imageInfo.height],sizes:r.sizes,format:void 0!==t.format&&Object(i.f)(r.formats,t.format)?t.format:void 0!==r.preferredFormat?r.preferredFormat:"jpg",supports:r.supports,quality:t.quality&&Object(i.f)(r.qualities,t.quality)?t.quality:Object(i.f)(r.qualities,"native")?"native":"default",resolutions:Array.isArray(r.resolutions)?r.resolutions.sort((function(e,t){return t-e})):void 0,tileSize:r.tileSize}}},e}();t.b=h},function(e,t,n){t.a={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"}},function(e,t,n){var r,i=n(39),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.map=n,i.frameState=void 0!==r?r:null,i}return o(t,e),t}(i.a);t.a=a},function(e,t,n){(function(e){ 777/* 778 Magic wand tool (fuzzy selection) by color 779 780 @package magic-wand-tool 781 @author Ryasnoy Paul <[email protected]> 782 @version 1.1.7 783 @license MIT 784 @copyright (c) 2014-2020, Ryasnoy Paul <[email protected]> 785 786*/ 787var t,n=((t={}).floodFill=function(e,t,n,r,i,o){return o?function(e,t,n,r,i){var o,a,s,l,c,d,u,h,p,f,m=e.data,g=e.width,v=e.height,y=e.bytes,b=-1,_=g+1,w=-1,x=v+1,C=n*g+t,S=new Uint8Array(g*v),E=new Uint8Array(i||g*v);if(1===E[C])return null;var k=[m[C*=y],m[C+1],m[C+2],m[C+3]],T=[{y:n,left:t-1,right:t+1,dir:1}];do{for(f=!1,a=(l=T.shift()).left+1;a<l.right;a++)if(C=((u=l.y*g)+a)*y,1!==E[u+a]&&(f=!0,S[u+a]=1,E[u+a]=1,!((o=m[C]-k[0])>r||o<-r||(o=m[C+1]-k[1])>r||o<-r||(o=m[C+2]-k[2])>r||o<-r))){for(d=a-1;d>-1&&(C=(h=u+d)*y,1!==E[h])&&(S[h]=1,E[h]=1,d--,!((o=m[C]-k[0])>r||o<-r))&&!((o=m[C+1]-k[1])>r||o<-r)&&!((o=m[C+2]-k[2])>r||o<-r););for(c=a+1;c<g&&(C=(p=u+c)*y,1!==E[p])&&(S[p]=1,E[p]=1,c++,!((o=m[C]-k[0])>r||o<-r))&&!((o=m[C+1]-k[1])>r||o<-r)&&!((o=m[C+2]-k[2])>r||o<-r););d<_&&(_=d+1),c>b&&(b=c-1),(s=l.y-l.dir)>=0&&s<v&&(d<l.left&&T.push({y:s,left:d,right:l.left,dir:-l.dir}),l.right<c&&T.push({y:s,left:l.right,right:c,dir:-l.dir})),(s=l.y+l.dir)>=0&&s<v&&d<c&&T.push({y:s,left:d,right:c,dir:l.dir})}f&&(l.y<x&&(x=l.y),l.y>w&&(w=l.y))}while(T.length>0);return{data:S,width:e.width,height:e.height,bounds:{minX:_,minY:x,maxX:b,maxY:w}}}(e,t,n,r,i):function(e,t,n,r,i){var o,a,s,l,c,d,u,h,p,f,m=e.data,g=e.width,v=e.height,y=e.bytes,b=-1,_=g+1,w=-1,x=v+1,C=n*g+t,S=new Uint8Array(g*v),E=new Uint8Array(i||g*v);if(1===E[C])return null;var k=[m[C*=y],m[C+1],m[C+2],m[C+3]],T=[{y:n,left:t-1,right:t+1,dir:1}];do{for(f=!1,a=(l=T.shift()).left+1;a<l.right;a++)if(C=((u=l.y*g)+a)*y,1!==E[u+a]&&!((o=m[C]-k[0])>r||o<-r||(o=m[C+1]-k[1])>r||o<-r||(o=m[C+2]-k[2])>r||o<-r)){for(f=!0,S[u+a]=1,E[u+a]=1,d=a-1;d>-1&&(C=(h=u+d)*y,1!==E[h])&&!((o=m[C]-k[0])>r||o<-r)&&!((o=m[C+1]-k[1])>r||o<-r)&&!((o=m[C+2]-k[2])>r||o<-r);)S[h]=1,E[h]=1,d--;for(c=a+1;c<g&&(C=(p=u+c)*y,1!==E[p])&&!((o=m[C]-k[0])>r||o<-r)&&!((o=m[C+1]-k[1])>r||o<-r)&&!((o=m[C+2]-k[2])>r||o<-r);)S[p]=1,E[p]=1,c++;d<_&&(_=d+1),c>b&&(b=c-1),(s=l.y-l.dir)>=0&&s<v&&(d<l.left&&T.push({y:s,left:d,right:l.left,dir:-l.dir}),l.right<c&&T.push({y:s,left:l.right,right:c,dir:-l.dir})),(s=l.y+l.dir)>=0&&s<v&&d<c&&T.push({y:s,left:d,right:c,dir:l.dir})}f&&(l.y<x&&(x=l.y),l.y>w&&(w=l.y))}while(T.length>0);return{data:S,width:e.width,height:e.height,bounds:{minX:_,minY:x,maxX:b,maxY:w}}}(e,t,n,r,i)},t.gaussBlur=function(e,t){var n,r,i,o,a,s,l,c=2*t+1,d=t*t,u=new Float32Array(c),h=0,p=e.width,f=e.height,m=e.data,g=e.bounds.minX,v=e.bounds.maxX,y=e.bounds.minY,b=e.bounds.maxY;for(n=0;n<t;n++){var _=(t-n)*(t-n),w=Math.exp(-_/(2*d))/(2*Math.PI*d);u[t+n]=u[t-n]=w,h+=2*w}for(n=0;n<c;n++)u[n]/=h;var x=new Uint8Array(p*f),C=t+p,S=t+f;for(a=y;a<b+1;a++)for(o=g;o<v+1;o++){for(s=0,l=C-o<c?C-o:c,i=(r=a*p+o)-t,n=t-o>0?t-o:0;n<l;n++)s+=m[i+n]*u[n];for(l=S-a<c?S-a:c,i=r-t*p,n=t-a>0?t-a:0;n<l;n++)s+=m[i+n*p]*u[n];x[r]=s>.5?1:0}return{data:x,width:p,height:f,bounds:{minX:g,minY:y,maxX:v,maxY:b}}},t.gaussBlurOnlyBorder=function(e,t,n){var r,i,o,a,s,l,c,d,u,h,p=function(e,t,n){var r,i,o,a,s,l,c,d=e.width,u=e.height,h=e.data,p=new Uint8Array(h),f=e.bounds.minX,m=e.bounds.maxX,g=e.bounds.minY,v=e.bounds.maxY,y=d*u,b=new Uint8Array(y),_=[],w=Math.max(f,1),x=Math.min(m,d-2),C=Math.max(g,1),S=Math.min(v,u-2);if(n&&n.length>0)for(s=0;s<y;s++)1===n[s]&&(p[s]=1);for(a=C;a<S+1;a++)for(r=w;r<x+1;
787r++)0!==h[s=a*d+r]&&(l=s+d,c=s-d,0!==p[s+1]&&0!==p[s-1]&&0!==p[l]&&0!==p[l+1]&&0!==p[l-1]&&0!==p[c]&&0!==p[c+1]&&0!==p[c-1]||_.push(s));if(0==f)for(a=g;a<v+1;a++)1===h[a*d]&&_.push(a*d);if(m==d-1)for(a=g;a<v+1;a++)1===h[a*d+m]&&_.push(a*d+m);if(0==g)for(r=f;r<m+1;r++)1===h[r]&&_.push(r);if(v==u-1)for(r=f;r<m+1;r++)1===h[v*d+r]&&_.push(v*d+r);var E,k=[],T=t+d,O=t+u,$=2*t+1;for(y=_.length,o=0;o<y;o++){for(b[s=_[o]]=1,k.push(s),a=(s-(r=s%d))/d,E=T-r<$?T-r:$,l=s-t,i=t-r>0?t-r:0;i<E;i++)0===b[c=l+i]&&(b[c]=1,k.push(c));for(E=O-a<$?O-a:$,l=s-t*d,i=t-a>0?t-a:0;i<E;i++)0===b[c=l+i*d]&&(b[c]=1,k.push(c))}return k}(e,t,n),f=2*t+1,m=2*t*t,g=new Float32Array(f),v=0,y=e.width,b=e.height,_=e.data,w=e.bounds.minX,x=e.bounds.maxX,C=e.bounds.minY,S=e.bounds.maxY,E=p.length;for(o=0;o<t;o++)i=(t-o)*(t-o),r=Math.exp(-i/m)/Math.PI,g[t+o]=g[t-o]=r,v+=2*r;for(o=0;o<f;o++)g[o]/=v;var k=new Uint8Array(_),T=t+y,O=t+b;for(o=0;o<E;o++){for(u=0,d=((s=p[o])-(c=s%y))/y,h=T-c<f?T-c:f,l=s-t,a=t-c>0?t-c:0;a<h;a++)u+=_[l+a]*g[a];if(u>.5)k[s]=1,c<w&&(w=c),c>x&&(x=c),d<C&&(C=d),d>S&&(S=d);else{for(h=O-d<f?O-d:f,l=s-t*y,a=t-d>0?t-d:0;a<h;a++)u+=_[l+a*y]*g[a];u>.5?(k[s]=1,c<w&&(w=c),c>x&&(x=c),d<C&&(C=d),d>S&&(S=d)):k[s]=0}}return{data:k,width:y,height:b,bounds:{minX:w,minY:C,maxX:x,maxY:S}}},t.createBorderMask=function(e){var t,n,r,i,o,a=e.width,s=e.height,l=e.data,c=e.bounds.minX,d=e.bounds.maxX,u=e.bounds.minY,h=e.bounds.maxY,p=d-c+1,f=h-u+1,m=new Uint8Array(p*f),g=Math.max(c,1),v=Math.min(d,a-2),y=Math.max(u,1),b=Math.min(h,s-2);for(n=y;n<b+1;n++)for(t=g;t<v+1;t++)0!==l[r=n*a+t]&&(i=r+a,o=r-a,0!==l[r+1]&&0!==l[r-1]&&0!==l[i]&&0!==l[i+1]&&0!==l[i-1]&&0!==l[o]&&0!==l[o+1]&&0!==l[o-1]||(m[(n-u)*p+(t-c)]=1));if(0==c)for(n=u;n<h+1;n++)1===l[n*a]&&(m[(n-u)*p]=1);if(d==a-1)for(n=u;n<h+1;n++)1===l[n*a+d]&&(m[(n-u)*p+(d-c)]=1);if(0==u)for(t=c;t<d+1;t++)1===l[t]&&(m[t-c]=1);if(h==s-1)for(t=c;t<d+1;t++)1===l[h*a+t]&&(m[(h-u)*p+(t-c)]=1);return{data:m,width:p,height:f,offset:{x:c,y:u}}},t.getBorderIndices=function(e){var t,n,r,i,o,a=e.width,s=e.height,l=e.data,c=[],d=a-1,u=s-1;for(n=1;n<u;n++)for(t=1;t<d;t++)0!==l[r=n*a+t]&&(i=r+a,o=r-a,0!==l[r+1]&&0!==l[r-1]&&0!==l[i]&&0!==l[i+1]&&0!==l[i-1]&&0!==l[o]&&0!==l[o+1]&&0!==l[o-1]||c.push(r));for(n=0;n<s;n++)1===l[n*a]&&c.push(n*a);for(t=0;t<a;t++)1===l[t]&&c.push(t);for(r=a-1,n=0;n<s;n++)1===l[n*a+r]&&c.push(n*a+r);for(r=(s-1)*a,t=0;t<a;t++)1===l[r+t]&&c.push(r+t);return c},t.traceContours=function(e){var t,n,r,i,o,a,s,l,c,d,u,h,p,f,m,g=function(e){var t,n,r=e.width,i=e.data,o=e.bounds.minX,a=e.bounds.maxX,s=e.bounds.minY,l=e.bounds.maxY,c=a-o+3,d=l-s+3,u=ne
787w Uint8Array(c*d);for(n=s;n<l+1;n++)for(t=o;t<a+1;t++)1===i[n*r+t]&&(u[(n-s+1)*c+(t-o+1)]=1);return{data:u,width:c,height:d,offset:{x:o-1,y:s-1}}}(e),v=[],y=0,b=g.width,_=2*b,w=g.height,x=g.data,C=g.offset.x,S=g.offset.y,E=new Uint8Array(x),k=[[1,0],[1,1],[0,1],[-1,1],[-1,0],[-1,-1],[0,-1],[1,-1]];for(i=1;i<w-1;i++)for(r=1;r<b-1;r++)if(1===x[o=i*b+r])for(t=-b;t<_;t+=_)if(0===x[o+t]&&0===E[o+t]){for(y++,s=[],c=(l=t===b)?2:6,h=p=d={x:r,y:i},u=null;;){for(E[h.y*b+h.x]=y,n=0;n<8;n++){if(m=k[c=(c+1)%8],1===x[a=(f={x:h.x+m[0],y:h.y+m[1]}).y*b+f.x]){E[a]=y;break}E[a]=-1,f=null}if(null===f)break;if(h=f,u){if(p.x===d.x&&p.y===d.y&&h.x===u.x&&h.y===u.y)break}else u=f;s.push({x:p.x+C,y:p.y+S}),p=h,c=(c+4)%8}null!=f&&(s.push({x:d.x+C,y:d.y+S}),v.push({inner:l,label:y,points:s}))}return v},t.simplifyContours=function(e,t,n){var r,i,o,a,s,l,c,d,u,h,p,f,m,g,v,y,b,_,w,x,C,S=e.length,E=[];for(i=0;i<S;i++)if(s=(a=e[i]).points,(l=a.points.length)<n){for(c=[],o=0;o<l;o++)c.push({x:s[o].x,y:s[o].y});E.push({inner:a.inner,label:a.label,points:c,initialCount:l})}else{d=[0,l-1],u=[{first:0,last:l-1}];do{if(!((h=u.shift()).last<=h.first+1)){for(p=-1,f=h.first,r=h.first+1;r<h.last;r++)w=s[r],x=s[h.first],C=s[h.last],b=w.x-x.x,_=w.y-x.y,g=Math.sqrt(b*b+_*_),b=w.x-C.x,_=w.y-C.y,v=Math.sqrt(b*b+_*_),b=x.x-C.x,_=x.y-C.y,y=Math.sqrt(b*b+_*_),(m=g>=Math.sqrt(v*v+y*y)?v:v>=Math.sqrt(g*g+y*y)?g:Math.abs((_*w.x-b*w.y+x.x*C.y-C.x*x.y)/y))>p&&(f=r,p=m);p>t&&(d.push(f),u.push({first:h.first,last:f}),u.push({first:f,last:h.last}))}}while(u.length>0);for(c=[],l=d.length,d.sort((function(e,t){return e-t})),o=0;o<l;o++)c.push({x:s[d[o]].x,y:s[d[o]].y});E.push({inner:a.inner,label:a.label,points:c,initialCount:a.points.length})}return E},t);null!==e&&(e.exports=n),"undefined"!=typeof window&&null!==window&&(window.MagicWand=n)}).call(this,n(288)(e))},function(e,t,n){n.r(t);var r=n(141);n.d(t,"Circle",(function(){return r.a}));var i=n(65);n.d(t,"Fill",(function(){return i.a}));var o=n(130);n.d(t,"Icon",(function(){return o.a}));var a=n(192);n.d(t,"IconImage",(function(){return a.a}));var s=n(152);n.d(t,"Image",(function(){return s.a}));var l=n(129);n.d(t,"RegularShape",(function(){return l.a}));var c=n(67);n.d(t,"Stroke",(function(){return c.a}));var d=n(44);n.d(t,"Style",(function(){return d.c}));var u=n(104);n.d(t,"Text",(function(){return u.a}))},function(e,t,n){n.r(t);var r=n(176);n.d(t,"Circle",(function(){return r.a}));var i=n(153);n.d(t,"Geometry",(function(){return i.a}));var o=n(70);n.d(t,"GeometryCollection",(function(){return o.a}));var a=n(120);n.d(t,"LinearRing",(function(){return a.a}));var s=n(40);n.d(t,"LineString",(function(){return s.a}));var l=n(56);n.d(t,"MultiLineString",(function(){return l.a}));var c=n(63);n.d(t,"MultiPoint",(function(){return c.a}));var d=n(64);n.d(t,"MultiPolygon",(function(){return d.a}));var u=n(29);n.d(t,"Point",(function(){return u.a}));var h=n(22);n.d(t,"Polygon",(function(){return h.a}));var p=n(52);n.d(t,"SimpleGeometry",(function(){return p.a}))},function(e,t,n){n.r(t),n.d(t,"DoubleClickZoom",(function(){return b})),n.d(t,"DragAndDrop",(function(){return ee})),n.d(t,"DragBox",(function(){return M})),n.d(t,"DragPan",(function(){return _.a})),n.d(t,"DragRotate",(function(){return k})),n.d(t,"DragRotateAndZoom",(function(){return ne})),n.d(t,"DragZoom",(function(){return D})),n.d(t,"Draw",(function(){return re.a})),n.d(t,"Extent",(function(){return me})),n.d(t,"Interaction",(function(){return g.a})),n.d(t,"KeyboardPan",(function(){return U})),n.d(t,"KeyboardZoom",(function(){return G})),n.d(t,"Modify",(function(){return ge.a})),n.d(t,"MouseWheelZoom",(function(){return q.a})),n.d(t,"PinchRotate",(function(){return W})),n.d(t,"PinchZoom",(function(){return X})),n.d(t,"Pointer",(function(){return w.b})),n.d(t,"Select",(function(){return ve.a})),n.d(t,"Snap",(function(){return ye.a})),n.d(t,"Translate",(function(){return be.a})),n.d(t,"defaults",(function(){return _e}));var r,i,o,a,s,l,c,d,u,h,p,f,m=n(37),g=n(76),v=n(35),y=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:250,n}return y(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==v.a.DBLCLICK){var n=e.originalEvent,r=e.map,i=e.coordinate,o=n.shiftKey?-this.delta_:this.delta_,a=r.getView();Object(g.c)(a,o,i,this.duration_),n.preventDefault(),t=!0}return!t},t}(g.a),_=n(193),w=n(42),x=n(32),C=n(18),S=n(122),E=(f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),k=function(e){function t(t){var n=this,r=t||{};return(n=e.call(this,{stopDown:x.a})||this).condition_=r.condition?r.condition:C.c,n.lastAngle_=void 0,n.duration_=void 0!==r.duration?r.duration:250,n}return E(t,e),t.prototype.handleDragEvent=function(e){if(Object(C.h)(e)){var t=e.map,n=t.getView();if(n.getConstraints().rotation!==S.c){var r=t.getSize(),i=e.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;n.adjustRotationInternal(-a)}this.lastAngle_=o}}},t.prototype.handleUpEvent=function(e){return!Object(C.h)(e)||(e.map.getView().endInteraction(this.duration_),!1)},t.prototype.handleDownEvent=function(e){return!!Object(C.h)(e)&&!(!Object(C.g)(e)||!this.condition_(e))&&(e.map.getView().beginInteraction(),this.lastAngle_=void 0,!0)},t}(w.b),T=n(39),O=n(116),$=n(22),P=(p=function(e,t){return(p=Object.
787setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),I=function(e){function t(t){var n=e.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+t,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return P(t,e),t.prototype.disposeInternal=function(){this.setMap(null)},t.prototype.render_=function(){var e=this.startPixel_,t=this.endPixel_,n=this.element_.style;n.left=Math.min(e[0],t[0])+"px",n.top=Math.min(e[1],t[1])+"px",n.width=Math.abs(t[0]-e[0])+"px",n.height=Math.abs(t[1]-e[1])+"px"},t.prototype.setMap=function(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},t.prototype.setPixels=function(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()},t.prototype.createOrUpdateGeometry=function(){var e=this.startPixel_,t=this.endPixel_,n=[e,[e[0],t[1]],t,[t[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new $.a([n])},t.prototype.getGeometry=function(){return this.geometry_},t}(O.a),L=(h=function(e,t){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),A=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.coordinate=n,i.mapBrowserEvent=r,i}return L(t,e),t}(T.a),M=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un;var r=t||{};return n.box_=new I(r.className||"ol-dragbox"),n.minArea_=void 0!==r.minArea?r.minArea:64,r.onBoxEnd&&(n.onBoxEnd=r.onBoxEnd),n.startPixel_=null,n.condition_=r.condition?r.condition:C.g,n.boxEndCondition_=r.boxEndCondition?r.boxEndCondition:n.defaultBoxEndCondition,n}return L(t,e),t.prototype.defaultBoxEndCondition=function(e,t,n){var r=n[0]-t[0],i=n[1]-t[1];return r*r+i*i>=this.minArea_},t.prototype.getGeometry=function(){return this.box_.getGeometry()},t.prototype.handleDragEvent=function(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new A("boxdrag",e.coordinate,e))},t.prototype.handleUpEvent=function(e){this.box_.setMap(null);var t=this.boxEndCondition_(e,this.startPixel_,e.pixel);return t&&this.onBoxEnd(e),this.dispatchEvent(new A(t?"boxend":"boxcancel",e.coordinate,e)),!1},t.prototype.handleDownEvent=function(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new A("boxstart",e.coordinate,e)),!0)},t.prototype.onBoxEnd=function(e){},t}(w.b),j=n(82),R=(u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),D=function(e){function t(t){var n=this,r=t||{},i=r.condition?r.condition:C.m;return(n=e.call(this,{condition:i,className:r.className||"ol-dragzoom",minArea:r.minArea})||this).duration_=void 0!==r.duration?r.duration:200,n.out_=void 0!==r.out&&r.out,n}return R(t,e),t.prototype.onBoxEnd=function(e){var t=this.getMap().getView(),n=this.getGeometry();if(this.out_){var r=t.rotatedExtentForGeometry(n),i=t.getResolutionForExtentInternal(r),o=t.getResolution()/i;(n=n.clone()).scale(o*o)}t.fitInternal(n,{duration:this.duration_,easing:j.b})},t}
787(M),F=n(11),N=n(27),B=(d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),U=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.defaultCondition_=function(e){return Object(C.j)(e)&&Object(C.o)(e)},n.condition_=void 0!==r.condition?r.condition:n.defaultCondition_,n.duration_=void 0!==r.duration?r.duration:100,n.pixelDelta_=void 0!==r.pixelDelta?r.pixelDelta:128,n}return B(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==F.a.KEYDOWN){var n=e.originalEvent,r=n.keyCode;if(this.condition_(e)&&(40==r||37==r||39==r||38==r)){var i=e.map.getView(),o=i.getResolution()*this.pixelDelta_,a=0,s=0;40==r?s=-o:37==r?a=-o:39==r?a=o:s=o;var l=[a,s];Object(N.h)(l,i.getRotation()),Object(g.b)(i,l,this.duration_),n.preventDefault(),t=!0}}return!t},t}(g.a),z=(c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),G=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.condition_=r.condition?r.condition:C.o,n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:100,n}return z(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==F.a.KEYDOWN||e.type==F.a.KEYPRESS){var n=e.originalEvent,r=n.charCode;if(this.condition_(e)&&(r=="+".charCodeAt(0)||r=="-".charCodeAt(0))){var i=e.map,o=r=="+".charCodeAt(0)?this.delta_:-this.delta_,a=i.getView();Object(g.c)(a,o,void 0,this.duration_),n.preventDefault(),t=!0}}return!t},t}(g.a),V=n(182),q=n(194),H=(l=function(e,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),W=function(e){function t(t){var n=this,r=t||{},i=r;return i.stopDown||(i.stopDown=x.a),(n=e.call(this,i)||this).anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==r.threshold?r.threshold:.3,n.duration_=void 0!==r.duration?r.duration:250,n}return H(t,e),t.prototype.handleDragEvent=function(e){var t=0,n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),t=o}this.lastAngle_=i;var a=e.map,s=a.getView();if(s.getConstraints().rotation!==S.c){var l=a.getViewport().getBoundingClientRect(),c=Object(w.a)(this.targetPointers);c[0]-=l.left,c[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(c),this.rotating_&&(a.render(),s.adjustRotationInternal(t,this.anchor_))}},t.prototype.handleUpEvent=function(e){return!(this.targetPointers.length<2&&(e.map.getView().endInteraction(this.duration_),1))},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},t}(w.b),Y=(s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),X=function(e){function t(t){var n=this,r=t||{},i=r;return i.stopDown||(i.stopDown=x.a),(n=e.call(this,i)||this).anchor_=null,n.duration_=void 0!==r.duration?r.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return Y(t,e),t.prototype.handleDragEvent=function(e){var t=1,n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(t=this.lastDistance_/a),this.lastDistance_=a;var s=e.map,l=s.getView();1!=t&&(this.lastScaleDelta_=t);var c=s.getViewport().getBoundingClientRect(),d=Object(w.a)(this.targetPointers);d[0]-=c.left,d[1]-=c.top,this.anchor_=s.getCoordinateFromPixelInternal(d),s.render(),l.adjustResolutionInternal(t,this.anchor_)},t.prototype.handleUpEvent=function(e){if(this.targetPointers.length<2){var t=e.map.getView(),n=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,n),!1}return!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},t}
787(w.b),K=n(1),Z=n(12),J=(a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Q=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.features=r,o.file=n,o.projection=i,o}return J(t,e),t}(T.a),ee=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,{handleEvent:x.b})||this).on,n.once,n.un,n.readAsBuffer_=!1,n.formats_=[];for(var i=r.formatConstructors?r.formatConstructors:[],o=0,a=i.length;o<a;++o){var s=i[o];"function"==typeof s&&(s=new s),n.formats_.push(s),n.readAsBuffer_=n.readAsBuffer_||"arraybuffer"===s.getType()}return n.projection_=r.projection?Object(K.get)(r.projection):null,n.dropListenKeys_=null,n.source_=r.source||null,n.target=r.target?r.target:null,n}return J(t,e),t.prototype.handleResult_=function(e,t){var n,r=t.target.result,i=this.getMap(),o=this.projection_;o||(o=i.getView().getProjection());for(var a=this.formats_,s=0,l=a.length;s<l;++s){var c=a[s],d=r;this.readAsBuffer_&&"arraybuffer"!==c.getType()&&(void 0===n&&(n=(new TextDecoder).decode(r)),d=n);var u=this.tryReadFeatures_(c,d,{featureProjection:o});if(u&&u.length>0){this.source_&&(this.source_.clear(),this.source_.addFeatures(u)),this.dispatchEvent(new Q("addfeatures",e,u,o));break}}},t.prototype.registerListeners_=function(){var e=this.getMap();if(e){var t=this.target?this.target:e.getViewport();this.dropListenKeys_=[Object(Z.listen)(t,F.a.DROP,this.handleDrop,this),Object(Z.listen)(t,F.a.DRAGENTER,this.handleStop,this),Object(Z.listen)(t,F.a.DRAGOVER,this.handleStop,this),Object(Z.listen)(t,F.a.DROP,this.handleStop,this)]}},t.prototype.setActive=function(t){!this.getActive()&&t&&this.registerListeners_(),this.getActive()&&!t&&this.unregisterListeners_(),e.prototype.setActive.call(this,t)},t.prototype.setMap=function(t){this.unregisterListeners_(),e.prototype.setMap.call(this,t),this.getActive()&&this.registerListeners_()},t.prototype.tryReadFeatures_=function(e,t,n){try{return e.readFeatures(t,n)}catch(e){return null}},t.prototype.unregisterListeners_=function(){this.dropListenKeys_&&(this.dropListenKeys_.forEach(Z.unlistenByKey),this.dropListenKeys_=null)},t.prototype.handleDrop=function(e){for(var t=e.dataTransfer.files,n=0,r=t.length;n<r;++n){var i=t.item(n),o=new FileReader;o.addEventListener(F.a.LOAD,this.handleResult_.bind(this,i)),this.readAsBuffer_?o.readAsArrayBuffer(i):o.readAsText(i)}},t.prototype.handleStop=function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},t}(g.a),te=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ne=function(e){function t(t){var n=this,r=t||{};return(n=e.call(this,r)||this).condition_=r.condition?r.condition:C.m,n.lastAngle_=void 0,n.lastMagnitude_=void 0,n.lastScaleDelta_=0,n.duration_=void 0!==r.duration?r.duration:400,n}return te(t,e),t.prototype.handleDragEvent=function(e){if(Object(C.h)(e)){var t=e.map,n=t.getSize(),r=e.pixel,i=r[0]-n[0]/2,o=n[1]/2-r[1],a=Math.atan2(o,i),s=Math.sqrt(i*i+o*o),l=t.getView();if(void 0!==this.lastAngle_){var c=this.lastAngle_-a;l.adjustRotationInternal(c)}this.lastAngle_=a,void 0!==this.lastMagnitude_&&l.adjustResolutionInternal(this.lastMagnitude_/s),void 0!==this.lastMagnitude_&&(this.lastScaleDelta_=this.lastMagnitude_/s),this.lastMagnitude_=s}},t.prototype.handleUpEvent=function(e){if(!Object(C.h)(e))return!0;var t=e.map.getView(),n=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,n),this.lastScaleDelta_=0,!1},t.prototype.handleDownEvent=function(e){return!!Object(C.h)(e)&&!!this.condition_(e)&&(e.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0)},t}(w.b),re=n(238),ie=n(24),oe=n(29),ae=n(71),se=n(72),le=n(0),ce=n(44),de=(i=function(e,t){return(i=Object.
787setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ue=function(e){function t(t){var n=e.call(this,"extentchanged")||this;return n.extent=t,n}return de(t,e),t}(T.a);function he(){var e=Object(ce.b)();return function(t,n){return e.Point}}function pe(e){return function(t){return Object(le.boundingExtent)([e,t])}}function fe(e,t){return e[0]==t[0]?function(n){return Object(le.boundingExtent)([e,[n[0],t[1]]])}:e[1]==t[1]?function(n){return Object(le.boundingExtent)([e,[t[0],n[1]]])}:null}var me=function(e){function t(t){var n,r=this,i=t||{};return(r=e.call(this,i)||this).on,r.once,r.un,r.condition_=i.condition?i.condition:C.d,r.extent_=null,r.pointerHandler_=null,r.pixelTolerance_=void 0!==i.pixelTolerance?i.pixelTolerance:10,r.snappedToVertex_=!1,r.extentFeature_=null,r.vertexFeature_=null,t||(t={}),r.extentOverlay_=new ae.a({source:new se.a({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.boxStyle?t.boxStyle:(n=Object(ce.b)(),function(e,t){return n.Polygon}),updateWhileAnimating:!0,updateWhileInteracting:!0}),r.vertexOverlay_=new ae.a({source:new se.a({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.pointerStyle?t.pointerStyle:he(),updateWhileAnimating:!0,updateWhileInteracting:!0}),t.extent&&r.setExtent(t.extent),r}return de(t,e),t.prototype.snapToVertex_=function(e,t){var n=t.getCoordinateFromPixelInternal(e),r=this.getExtentInternal();if(r){var i=function(e){return[[[e[0],e[1]],[e[0],e[3]]],[[e[0],e[3]],[e[2],e[3]]],[[e[2],e[3]],[e[2],e[1]]],[[e[2],e[1]],[e[0],e[1]]]]}(r);i.sort((function(e,t){return Object(N.k)(n,e)-Object(N.k)(n,t)}));var o=i[0],a=Object(N.c)(n,o),s=t.getPixelFromCoordinateInternal(a);if(Object(N.e)(e,s)<=this.pixelTolerance_){var l=t.getPixelFromCoordinateInternal(o[0]),c=t.getPixelFromCoordinateInternal(o[1]),d=Object(N.j)(s,l),u=Object(N.j)(s,c),h=Math.sqrt(Math.min(d,u));return this.snappedToVertex_=h<=this.pixelTolerance_,this.snappedToVertex_&&(a=d>u?o[1]:o[0]),a}}return null},t.prototype.handlePointerMove_=function(e){var t=e.pixel,n=e.map,r=this.snapToVertex_(t,n);r||(r=n.getCoordinateFromPixelInternal(t)),this.createOrUpdatePointerFeature_(r)},t.prototype.createOrUpdateExtentFeature_=function(e){var t=this.extentFeature_;return t?e?t.setGeometry(Object($.c)(e)):t.setGeometry(void 0):(t=e?new ie.a(Object($.c)(e)):new ie.a({}),this.extentFeature_=t,this.extentOverlay_.getSource().addFeature(t)),t},t.prototype.createOrUpdatePointerFeature_=function(e){var t=this.vertexFeature_;return t?t.getGeometry().setCoordinates(e):(t=new ie.a(new oe.a(e)),this.vertexFeature_=t,this.vertexOverlay_.getSource().addFeature(t)),t},t.prototype.handleEvent=function(t){return!t.originalEvent||!this.condition_(t)||(t.type!=v.a.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(t),e.prototype.handleEvent.call(this,t),!1)},t.prototype.handleDownEvent=function(e){var t=e.pixel,n=e.map,r=this.getExtentInternal(),i=this.snapToVertex_(t,n),o=function(e){var t=null,n=null;
787return e[0]==r[0]?t=r[2]:e[0]==r[2]&&(t=r[0]),e[1]==r[1]?n=r[3]:e[1]==r[3]&&(n=r[1]),null!==t&&null!==n?[t,n]:null};if(i&&r){var a=i[0]==r[0]||i[0]==r[2]?i[0]:null,s=i[1]==r[1]||i[1]==r[3]?i[1]:null;null!==a&&null!==s?this.pointerHandler_=pe(o(i)):null!==a?this.pointerHandler_=fe(o([a,r[1]]),o([a,r[3]])):null!==s&&(this.pointerHandler_=fe(o([r[0],s]),o([r[2],s])))}else i=n.getCoordinateFromPixelInternal(t),this.setExtent([i[0],i[1],i[0],i[1]]),this.pointerHandler_=pe(i);return!0},t.prototype.handleDragEvent=function(e){if(this.pointerHandler_){var t=e.coordinate;this.setExtent(this.pointerHandler_(t)),this.createOrUpdatePointerFeature_(t)}},t.prototype.handleUpEvent=function(e){this.pointerHandler_=null;var t=this.getExtentInternal();return t&&0!==Object(le.getArea)(t)||this.setExtent(null),!1},t.prototype.setMap=function(t){this.extentOverlay_.setMap(t),this.vertexOverlay_.setMap(t),e.prototype.setMap.call(this,t)},t.prototype.getExtent=function(){return Object(K.toUserExtent)(this.getExtentInternal(),this.getMap().getView().getProjection())},t.prototype.getExtentInternal=function(){return this.extent_},t.prototype.setExtent=function(e){this.extent_=e||null,this.createOrUpdateExtentFeature_(e),this.dispatchEvent(new ue(this.extent_))},t}(w.b),ge=n(239),ve=n(240),ye=n(241),be=n(195);function _e(e){var t=e||{},n=new m.a,r=new V.a(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&n.push(new k),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&n.push(new b({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&n.push(new _.a({onFocusOnly:t.onFocusOnly,kinetic:r})),(void 0===t.pinchRotate||t.pinchRotate)&&n.push(new W),(void 0===t.pinchZoom||t.pinchZoom)&&n.push(new X({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(n.push(new U),n.push(new G({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&n.push(new q.a({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&n.push(new D({duration:t.zoomDuration})),n}},function(e,t,n){var r,i=n(129),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=t||{};return e.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke,scale:void 0!==n.scale?n.scale:1,rotation:void 0!==n.rotation?n.rotation:0,rotateWithView:void 0!==n.rotateWithView&&n.rotateWithView,displacement:void 0!==n.displacement?n.displacement:[0,0],declutterMode:n.declutterMode})||this}return o(t,e),t.prototype.clone=function(){var e=this.getScale(),n=new t({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n},t.prototype.setRadius=function(e){this.radius_=e,this.render()},t}(i.a);t.a=a},function(e,t,n){var r=n(236);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r,i,o; 788/*! 789 * jquery.fancytree.js 790 * Tree view control with support for lazy loading and much more. 791 * https://github.com/mar10/fancytree/ 792 * 793 * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de) 794 * Released under the MIT license 795 * https://github.com/mar10/fancytree/wiki/LicenseInfo 796 * 797 * @version 2.38.2 798 * @date 2022-06-30T18:24:06Z 799 */i=[n(8),n(280)],void 0===(o="function"==typeof(r=function(e){if(!e.ui||!e.ui.fancytree){var t,n,r=null,i=new RegExp(/\.|\//),o=/[&<>"'/]/g,a=/[<>"'/]/g,s={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},l={16:!0,17:!0,18:!0},c={8:"backspace",9:"tab",10:"return",13:"return",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},d={16:"shift",17:"ctrl",18:"alt",91:"meta",93:"meta"},u={0:"",1:"left",2:"middle",3:"right"},h="active expanded focus folder lazy radiogroup selected unselectable unselectableIgnore".split(" "),p={}
vendor: 7,177 bytes, line 799
799,f="columns types".split(" "),m="checkbox expanded extraClasses folder icon iconTooltip key lazy partsel radiogroup refKey selected statusNodeType title tooltip type unselectable unselectableIgnore unselectableStatus".split(" "),g={},v={},y={active:!0,children:!0,data:!0,focus:!0};for(t=0;t<h.length;t++)p[h[t]]=!0;for(t=0;t<m.length;t++)n=m[t],g[n]=!0,n!==n.toLowerCase()&&(v[n.toLowerCase()]=n);var b=Array.isArray;return _(e.ui,"Fancytree requires jQuery UI (http://jqueryui.com)"),Date.now||(Date.now=function(){return(new Date).getTime()}),M.prototype={_findDirectChild:function(e){var t,n,r=this.children;if(r)if("string"==typeof e){for(t=0,n=r.length;t<n;t++)if(r[t].key===e)return r[t]}else{if("number"==typeof e)return this.children[e];if(e.parent===this)return e}return null},_setChildren:function(e){_(e&&(!this.children||0===this.children.length),"only init supported"),this.children=[];for(var t=0,n=e.length;t<n;t++)this.children.push(new M(this,e[t]));this.tree._callHook("treeStructureChanged",this.tree,"setChildren")},addChildren:function(t,n){var r,i,o,a,s=this.getFirstChild(),l=this.getLastChild(),c=[];for(e.isPlainObject(t)&&(t=[t]),this.children||(this.children=[]),r=0,i=t.length;r<i;r++)c.push(new M(this,t[r]));if(a=c[0],null==n?this.children=this.children.concat(c):(n=this._findDirectChild(n),_((o=e.inArray(n,this.children))>=0,"insertBefore must be an existing child"),this.children.splice.apply(this.children,[o,0].concat(c))),s&&!n){for(r=0,i=c.length;r<i;r++)c[r].render();s!==this.getFirstChild()&&s.renderStatus(),l!==this.getLastChild()&&l.renderStatus()}else(!this.parent||this.parent.ul||this.tr)&&this.render();return 3===this.tree.options.selectMode&&this.fixSelection3FromEndNodes(),this.triggerModifyChild("add",1===c.length?c[0]:null),a},addClass:function(e){return this.toggleClass(e,!0)},addNode:function(e,t){switch(void 0!==t&&"over"!==t||(t="child"),t){case"after":return this.getParent().addChildren(e,this.getNextSibling());case"before":return this.getParent().addChildren(e,this);case"firstChild":var n=this.children?this.children[0]:null;return this.addChildren(e,n);case"child":case"over":return this.addChildren(e)}_(!1,"Invalid mode: "+t)},addPagingNode:function(t,n){var r,i;if(n=n||"child",!1!==t)return t=e.extend({title:this.tree.options.strings.moreData,statusNodeType:"paging",icon:!1},t),this.partload=!0,this.addNode(t,n);for(r=this.children.length-1;r>=0;r--)"paging"===(i=this.children[r]).statusNodeType&&this.removeChild(i);this.partload=!1},appendSibling:function(e){return this.addNode(e,"after")},applyCommand:function(e,t){return this.tree.applyCommand(e,this,t)},applyPatch:function(e){if(null===e)return this.remove(),O(this);var t,n,r={children:!0,expanded:!0,parent:!0};for(t in e)w(e,t)&&(n=e[t],r[t]||x(n)||(g[t]?this[t]=n:this.data[t]=n));return w(e,"children")&&(this.removeChildren(),e.children&&this._setChildren(e.children)),this.isVisible()&&(this.renderTitle(),this.renderStatus()),w(e,"expanded")?this.setExpanded(e.expanded):O(this)},collapseSiblings:function(){return this.tree._callHook("nodeCollapseSiblings",this)},copyTo:function(e,t,n){return e.addNode(this.toDict(!0,n),t)},countChildren:function(e){var t,n,r,i=this.children;if(!i)return 0;if(r=i.length,!1!==e)for(t=0,n=r;t<n;t++)r+=i[t].countChildren();return r},debug:function(e){this.tree.options.debugLevel>=4&&(Array.prototype.unshift.call(arguments,this.toString()),S("log",arguments))},discard:function(){return this.warn("FancytreeNode.discard() is deprecated since 2014-02-16. Use .resetLazy() instead."),this.resetLazy()},discardMarkup:function(e){var t=e?"nodeRemoveMarkup":"nodeRemoveChildMarkup";this.tree._callHook(t,this)},error:function(e){this.tree.options.debugLevel>=1&&(Array.prototype.unshift.call(arguments,this.toString()),S("error",arguments))},findAll:function(e){e=x(e)?e:A(e);var t=[];return this.visit((function(n){e(n)&&t.push(n)})),t},findFirst:function(e){e=x(e)?e:A(e);var t=null;return this.visit((function(n){if(e(n))return t=n,!1})),t},findRelatedNode:function(e,t){return this.tree.findRelatedNode(this,e,t)},_changeSelectStatusAttrs:function(e){var t=!1,n=this.tree.options,i=r.evalOption("unselectable",this,this,n,!1),o=r.evalOption("unselectableStatus",this,this,n,void 0);switch(i&&null!=o&&(e=o),e){case!1:t=this.selected||this.partsel,this.selected=!1,this.partsel=!1;break;case!0:t=!this.selected||!this.partsel,this.selected=!0,this.partsel=!0;break;case void 0:t=this.selected||!this.partsel,this.selected=!1,this.partsel=!0;break;default:_(!1,"invalid state: "+e)}return t&&this.renderStatus(),t},fixSelection3AfterClick:function(e){var t=this.isSelected();this.visit((function(e){if(e._changeSelectStatusAttrs(t),e.radiogroup)return"skip"})),this.fixSelection3FromEndNodes(e)},fixSelection3FromEndNodes:function(e){var t=this.tree.options;_(3===t.selectMode,"expected selectMode 3"),function e(n){var i,o,a,s,l,c,d,u,h=n.children;if(h&&h.length){for(c=!0,d=!1,i=0,o=h.length;i<o;i++)s=e(a=h[i]),r.evalOption("unselectableIgnore",a,a,t,!1)||(!1!==s&&(d=!0),!0!==s&&(c=!1));l=!!c||!!d&&void 0}else l=null==(u=r.evalOption("unselectableStatus",n,n,t,void 0))?!!n.selected:!!u;return n.partsel&&!n.selected&&n.lazy&&null==n.children&&(l=void 0),n._changeSelectStatusAttrs(l),l}(this),this.visitParents((function(e){var n,i,o,a,s,l=e.children,c=!0,d=!1;for(n=0,i=l.length;n<i;n++)o=l[n],r.evalOption("unselectableIgnore",o,o,t,!1)||(((a=null==(s=r.evalOption("unselectableStatus",o,o,t,void 0))?!!o.selected:!!s)||o.partsel)&&(d=!0),a||(c=!1));a=!!c||!!d&&void 0,e._changeSelectStatusAttrs(a)}))},fromDict:function(t){for(var n in t)g[n]?this[n]=t[n]:"data"===n?e.extend(this.data,t.data):x(t[n])||y[n]||(this.data[n]=t[n]);t.children&&(this.removeChildren(),this.addChildren(t.children)),this.renderTitle()},getChildren:function(){if(void 0!==this.hasChildren())return this.children},getFirstChild:function(){return this.children?this.children[0]:null},getIndex:function(){return e.inArray(this,this.parent.children)},getIndexHier:function(t,n){t=t||".";var r,i=[];return e.each(this.getParentList(!1,!0),(function(e,t){r=""+(t.getIndex()+1),n&&(r=("0000000"+r).substr(-n)),i.push(r)})),i.join(t)},getKeyPath:function(e){var t=this.tree.options.keyPathSeparator;return t+this.getPath(!e,"key",t)},getLastChild:function(){return this.children?this.children[this.children.length-1]:null},getLevel:function(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e},getNextSibling:function(){if(this.parent){var e,t,n=this.parent.children;for(e=0,t=n.length-1;e<t;e++)if(n[e]===this)return n[e+1]}return null},getParent:function(){return this.parent},getParentList:function(e,t){for(var n=[],r=t?this:this.parent;r;)(e||r.parent)&&n.unshift(r),r=r.parent;return n},getPath:function(e,t,n){e=!1!==e,n=n||"/";var r,i=[],o=x(t=t||"title");return this.visitParents((function(e){e.parent&&(r=o?t(e):e[t],i.unshift(r))}),e),i.join(n)},getPrevSibling:function(){if(this.parent){var e,t,n=this.parent.children;for(e=1,t=n.length;e<t;e++)if(n[e]===this)return n[e-1]}return null},getSelectedNodes:function(e){var t=[];return this.visit((function(n){if(n.selected&&(t.push(n),!0===e))return"skip"})),t}
799,hasChildren:function(){if(this.lazy){if(null==this.children)return;if(0===this.children.length)return!1;if(1===this.children.length&&this.children[0].isStatusNode())return;return!0}return!(!this.children||!this.children.length)},hasClass:function(e){return(" "+(this.extraClasses||"")+" ").indexOf(" "+e+" ")>=0},hasFocus:function(){return this.tree.hasFocus()&&this.tree.focusNode===this},info:function(e){this.tree.options.debugLevel>=3&&(Array.prototype.unshift.call(arguments,this.toString()),S("info",arguments))},isActive:function(){return this.tree.activeNode===this},isBelowOf:function(e){return this.getIndexHier(".",5)>e.getIndexHier(".",5)},isChildOf:function(e){return this.parent&&this.parent===e},isDescendantOf:function(t){if(!t||t.tree!==this.tree)return!1;for(var n=this.parent;n;){if(n===t)return!0;n===n.parent&&e.error("Recursive parent link: "+n),n=n.parent}return!1},isExpanded:function(){return!!this.expanded},isFirstSibling:function(){var e=this.parent;return!e||e.children[0]===this},isFolder:function(){return!!this.folder},isLastSibling:function(){var e=this.parent;return!e||e.children[e.children.length-1]===this},isLazy:function(){return!!this.lazy},isLoaded:function(){return!this.lazy||void 0!==this.hasChildren()},isLoading:function(){return!!this._isLoading},isRoot:function(){return this.isRootNode()},isPartsel:function(){return!this.selected&&!!this.partsel},isPartload:function(){return!!this.partload},isRootNode:function(){return this.tree.rootNode===this},isSelected:function(){return!!this.selected},isStatusNode:function(){return!!this.statusNodeType},isPagingNode:function(){return"paging"===this.statusNodeType},isTopLevel:function(){return this.tree.rootNode===this.parent},isUndefined:function(){return void 0===this.hasChildren()},isVisible:function(){var e,t,n=this.tree.enableFilter,r=this.getParentList(!1,!1);if(n&&!this.match&&!this.subMatchCount)return!1;for(e=0,t=r.length;e<t;e++)if(!r[e].expanded)return!1;return!0},lazyLoad:function(t){e.error("FancytreeNode.lazyLoad() is deprecated since 2014-02-16. Use .load() instead.")},load:function(e){var t,n,r=this,i=this.isExpanded();return _(this.isLazy(),"load() requires a lazy node"),e||this.isUndefined()?(this.isLoaded()&&this.resetLazy(),!1===(n=this.tree._triggerNodeEvent("lazyLoad",this))?O(this):(_("boolean"!=typeof n,"lazyLoad event must return source in data.result"),t=this.tree._callHook("nodeLoadChildren",this,n),i?(this.expanded=!0,t.always((function(){r.render()}))):t.always((function(){r.renderStatus()})),t)):O(this)},makeVisible:function(t){var n,r=this,i=[],o=new e.Deferred,a=this.getParentList(!1,!1),s=a.length,l=!(t&&!0===t.noAnimation),c=!(t&&!1===t.scrollIntoView);for(n=s-1;n>=0;n--)i.push(a[n].setExpanded(!0,t));return e.when.apply(e,i).done((function(){c?r.scrollIntoView(l).done((function(){o.resolve()})):o.resolve()})),o.promise()},moveTo:function(t,n,r){void 0===n||"over"===n?n="child":"firstChild"===n&&(t.children&&t.children.length?(n="before",t=t.children[0]):n="child");var i,o=this.tree,a=this.parent,s="child"===n?t:t.parent;if(this!==t){if(this.parent?s.isDescendantOf(this)&&e.error("Cannot move a node to its own descendant"):e.error("Cannot move system root"),s!==a&&a.triggerModifyChild("remove",this),1===this.parent.children.length){if(this.parent===s)return;this.parent.children=this.parent.lazy?[]:null,this.parent.expanded=!1}else _((i=e.inArray(this,this.parent.children))>=0,"invalid source parent"),this.parent.children.splice(i,1);if(this.parent=s,s.hasChildren())switch(n){case"child":s.children.push(this);break;case"before":_((i=e.inArray(t,s.children))>=0,"invalid target parent"),s.children.splice(i,0,this);break;case"after":_((i=e.inArray(t,s.children))>=0,"invalid target parent"),s.children.splice(i+1,0,this);break;default:e.error("Invalid mode "+n)}else s.children=[this];r&&t.visit(r,!0),s===a?s.triggerModifyChild("move",this):s.triggerModifyChild("add",this),o!==t.tree&&(this.warn("Cross-tree moveTo is experimental!"),this.visit((function(e){e.tree=t.tree}),!0)),o._callHook("treeStructureChanged",o,"moveTo"),a.isDescendantOf(s)||a.render(),s.isDescendantOf(a)||s===a||s.render()}},navigate:function(t,n){var r,i=e.ui.keyCode;switch(t){case"left":case i.LEFT:if(this.expanded)return this.setExpanded(!1);break;case"right":case i.RIGHT:if(!this.expanded&&(this.children||this.lazy))return this.setExpanded()}if(r=this.findRelatedNode(t)){try{r.makeVisible({scrollIntoView:!1})}catch(e){}return!1===n?(r.setFocus(),O()):r.setActive()}return this.warn("Could not find related node '"+t+"'."),O()},remove:function(){return this.parent.removeChild(this)},removeChild:function(e){return this.tree._callHook("nodeRemoveChild",this,e)},removeChildren:function(){return this.tree._callHook("nodeRemoveChildren",this)},removeClass:function(e){return this.toggleClass(e,!1)},render:function(e,t){return this.tree._callHook("nodeRender",this,e,t)},renderTitle:function(){return this.tree._callHook("nodeRenderTitle",this)},renderStatus:function(){return this.tree._callHook("nodeRenderStatus",this)},replaceWith:function(n){var r,i=this.parent,o=e.inArray(this,i.children),a=this;return _(this.isPagingNode(),"replaceWith() currently requires a paging status node"),(r=this.tree._callHook("nodeLoadChildren",this,n)).done((function(e){var n=a.children;for(t=0;t<n.length;t++)n[t].parent=i;i.children.splice.apply(i.children,[o+1,0].concat(n)),a.children=null,a.remove(),i.render()})).fail((function(){a.setExpanded()})),r},resetLazy:function(){this.removeChildren(),this.expanded=!1,this.lazy=!0,this.children=void 0,this.renderStatus()},scheduleAction:function(t,n){this.tree.timer&&(clearTimeout(this.tree.timer),this.tree.debug("clearTimeout(%o)",this.tree.timer)),this.tree.timer=null;var r=this;switch(t){case"cancel":break;case"expand":this.tree.timer=setTimeout((function(){r.tree.debug("setTimeout: trigger exp
799and"),r.setExpanded(!0)}),n);break;case"activate":this.tree.timer=setTimeout((function(){r.tree.debug("setTimeout: trigger activate"),r.setActive(!0)}),n);break;default:e.error("Invalid mode "+t)}},scrollIntoView:function(t,n){if(void 0!==n&&(r=n).tree&&void 0!==r.statusNodeType)throw Error("scrollIntoView() with 'topNode' option is deprecated since 2014-05-08. Use 'options.topNode' instead.");var r,i=e.extend({effects:!0===t?{duration:200,queue:!1}:t,scrollOfs:this.tree.options.scrollOfs,scrollParent:this.tree.options.scrollParent,topNode:null},n),o=i.scrollParent,a=this.tree.$container,s=a.css("overflow-y");o?o.jquery||(o=e(o)):o=this.tree.tbody?a.scrollParent():"scroll"===s||"auto"===s?a:a.scrollParent(),o[0]!==document&&o[0]!==document.body||(this.debug("scrollIntoView(): normalizing scrollParent to 'window':",o[0]),o=e(window));var l,c,d,u=new e.Deferred,h=this,p=e(this.span).height(),f=i.scrollOfs.top||0,m=i.scrollOfs.bottom||0,g=o.height(),v=o.scrollTop(),y=o,b=o[0]===window,w=i.topNode||null,x=null;return this.isRootNode()||!this.isVisible()?(this.info("scrollIntoView(): node is invisible."),O()):(b?(c=e(this.span).offset().top,l=w&&w.span?e(w.span).offset().top:0,y=e("html,body")):(_(o[0]!==document&&o[0]!==document.body,"scrollParent should be a simple element or `window`, not document or body."),d=o.offset().top,c=e(this.span).offset().top-d+v,l=w?e(w.span).offset().top-d+v:0,g-=Math.max(0,o.innerHeight()-o[0].clientHeight)),c<v+f?x=c-f:c+p>v+g-m&&(x=c+p-g+m,w&&(_(w.isRootNode()||w.isVisible(),"topNode must be visible"),l<x&&(x=l-f))),null===x?u.resolveWith(this):i.effects?(i.effects.complete=function(){u.resolveWith(h)},y.stop(!0).animate({scrollTop:x},i.effects)):(y[0].scrollTop=x,u.resolveWith(this)),u.promise())},setActive:function(e,t){return this.tree._callHook("nodeSetActive",this,e,t)},setExpanded:function(e,t){return this.tree._callHook("nodeSetExpanded",this,e,t)},setFocus:function(e){return this.tree._callHook("nodeSetFocus",this,e)},setSelected:function(e,t){return this.tree._callHook("nodeSetSelected",this,e,t)},setStatus:function(e,t,n){return this.tree._callHook("nodeSetStatus",this,e,t,n)},setTitle:function(e){this.title=e,this.renderTitle(),this.triggerModify("rename")},sortChildren:function(e,t){var n,r,i=this.children;if(i){if(e=e||function(e,t){var n=e.title.toLowerCase(),r=t.title.toLowerCase();return n===r?0:n>r?1:-1},i.sort(e),t)for(n=0,r=i.length;n<r;n++)i[n].children&&i[n].sortChildren(e,"$norender$");"$norender$"!==t&&this.render(),this.triggerModifyChild("sort")}},toDict:function(t,n){var r,i,o,a,s={},l=this;if(e.each(m,(function(e,t){(l[t]||!1===l[t])&&(s[t]=l[t])})),e.isEmptyObject(this.data)||(s.data=e.extend({},this.data),e.isEmptyObject(s.data)&&delete s.data),n){if(!1===(a=n(s,l)))return!1;"skip"===a&&(t=!1)}if(t&&b(this.children))for(s.children=[],r=0,i=this.children.length;r<i;r++)(o=this.children[r]).isStatusNode()||!1!==(a=o.toDict(!0,n))&&s.children.push(a);return s},toggleClass:function(t,n){var r,i,o=t.match(/\S+/g)||[],a=0,s=!1,l=this[this.tree.statusClassPropName],c=" "+(this.extraClasses||"")+" ";for(l&&e(l).toggleClass(t,n);r=o[a++];)if(i=c.indexOf(" "+r+" ")>=0,n=void 0===n?!i:!!n)i||(c+=r+" ",s=!0);else for(;c.indexOf(" "+r+" ")>-1;)c=c.replace(" "+r+" "," ");return this.extraClasses=C(c),s},toggleExpanded:function(){return this.tree._callHook("nodeToggleExpanded",this)},toggleSelected:function(){return this.tree._callHook("nodeToggleSelected",this)},toString:function(){return"FancytreeNode@"+this.key+"[title='"+this.title+"']"},triggerModifyChild:function(t,n,r){var i,o=this.tree.options.modifyChild;o&&(n&&n.parent!==this&&e.error("childNode "+n+" is not a child of "+this),i={node:this,tree:this.tree,operation:t,childNode:n||null},r&&e.extend(i,r),o({type:"modifyChild"},i))},triggerModify:function(e,t){this.parent.triggerModifyChild(e,this,t)},visit:function(e,t){var n,r,i=!0,o=this.children;if(!0===t&&(!1===(i=e(this))||"skip"===i))return i;if(o)for(n=0,r=o.length;n<r&&!1!==(i=o[n].visit(e,!0));n++);return i},visitAndLoad:function(t,n,r){var i,o,a,s=this;return!t||!0!==n||!1!==(o=t(s))&&"skip"!==o?s.children||s.lazy?(i=new e.Deferred,a=[],s.load().done((function(){for(var n=0,r=s.children.length;n<r;n++){if(!1===(o=s.children[n].visitAndLoad(t,!0,!0))){i.reject();break}"skip"!==o&&a.push(o)}e.when.apply(this,a).then((function(){i.resolve()}))})),i.promise()):O():r?o:O()},visitParents:function(e,t){if(t&&!1===e(this))return!1;for(var n=this.parent;n;){if(!1===e(n))return!1;n=n.parent}return!0},visitSiblings:function(e,t){var n,r,i,o=this.parent.children;for(n=0,r=o.length;n<r;n++)if(i=o[n],(t||i!==this)&&!1===e(i))return!1;return!0},warn:function(e){this.tree.options.debugLevel>=2&&(Array.prototype.unshift.call(arguments,this.toString()),S("warn",arguments))}},j.prototype={_makeHookContext:function(t,n,r){var i,o;return void 0!==t.node?(n&&t.originalEvent!==n&&e.error("invalid args"),i=t):t.tree?i={node:t,tree:o=t.tree,widget:o.widget,options:o.widget.options,originalEvent:n,typeInfo:o.types[t.type]||{}}:t.widget?i={node:null,tree:t,widget:t.widget,options:t.widget.options,originalEvent:n}:e.error("invalid args"),r&&e.extend(i,r),i},_callHook:function(t,n,r){var i=this._makeHookContext(n),o=this[t],a=Array.prototype.slice.call(arguments,2);return x(o)||e.error("_callHook('"+t+"') is not a function"),a.unshift(i),o.apply(this,a)},_setExpiringValue:function(e,t,n){this._tempCache[e]={value:t,expire:Date.now()+(+n||50)}},_getExpiringValue:function(e){var t=this._tempCache[e];return t&&t.expire>Date.now()?t.value:(delete this._tempCache[e],null)},_usesExtension:function(t){return e.inArray(t,this.options.extensions)>=0},_requireExtension:function(t,n,r,i){null!=r&&(r=!!r);var o=this._local.name,a=this.options.extensions,s=e.inArray(t,a)<e.inArray(o,a),l=n&&null==this.ext[t],c=!l&&null!=r&&r!==s;
vendor: 4,719 bytes, line 799
799return _(o&&o!==t,"invalid or same name '"+o+"' (require yourself?)"),!l&&!c||(i||(l||n?(i="'"+o+"' extension requires '"+t+"'",c&&(i+=" to be registered "+(r?"before":"after")+" itself")):i="If used together, `"+t+"` must be registered "+(r?"before":"after")+" `"+o+"`"),e.error(i),!1)},activateKey:function(e,t){var n=this.getNodeByKey(e);return n?n.setActive(!0,t):this.activeNode&&this.activeNode.setActive(!1,t),n},addPagingNode:function(e,t){return this.rootNode.addPagingNode(e,t)},applyCommand:function(t,n,r){var i;switch(n=n||this.getActiveNode(),t){case"moveUp":(i=n.getPrevSibling())&&(n.moveTo(i,"before"),n.setActive());break;case"moveDown":(i=n.getNextSibling())&&(n.moveTo(i,"after"),n.setActive());break;case"indent":(i=n.getPrevSibling())&&(n.moveTo(i,"child"),i.setExpanded(),n.setActive());break;case"outdent":n.isTopLevel()||(n.moveTo(n.getParent(),"after"),n.setActive());break;case"remove":i=n.getPrevSibling()||n.getParent(),n.remove(),i&&i.setActive();break;case"addChild":n.editCreateNode("child","");break;case"addSibling":n.editCreateNode("after","");break;case"rename":n.editStart();break;case"down":case"first":case"last":case"left":case"parent":case"right":case"up":return n.navigate(t);default:e.error("Unhandled command: '"+t+"'")}},applyPatch:function(t){var n,r,i,o,a,s,l=t.length,c=[];for(r=0;r<l;r++)_(2===(i=t[r]).length,"patchList must be an array of length-2-arrays"),o=i[0],a=i[1],(s=null===o?this.rootNode:this.getNodeByKey(o))?(n=new e.Deferred,c.push(n),s.applyPatch(a).always(P(n,s))):this.warn("could not find node with key '"+o+"'");return e.when.apply(e,c).promise()},clear:function(e){this._callHook("treeClear",this)},count:function(){return this.rootNode.countChildren()},debug:function(e){this.options.debugLevel>=4&&(Array.prototype.unshift.call(arguments,this.toString()),S("log",arguments))},destroy:function(){this.widget.destroy()},enable:function(e){!1===e?this.widget.disable():this.widget.enable()},enableUpdate:function(e){return e=!1!==e,!!this._enableUpdate==!!e?e:(this._enableUpdate=e,e?(this.debug("enableUpdate(true): redraw "),this._callHook("treeStructureChanged",this,"enableUpdate"),this.render()):this.debug("enableUpdate(false)..."),!e)},error:function(e){this.options.debugLevel>=1&&(Array.prototype.unshift.call(arguments,this.toString()),S("error",arguments))},expandAll:function(e,t){var n=this.enableUpdate(!1);e=!1!==e,this.visit((function(n){!1!==n.hasChildren()&&n.isExpanded()!==e&&n.setExpanded(e,t)})),this.enableUpdate(n)},findAll:function(e){return this.rootNode.findAll(e)},findFirst:function(e){return this.rootNode.findFirst(e)},findNextNode:function(e,t){var n,r=null,i=this.getFirstChild();function o(n){if(e(n)&&(r=n),r||n===t)return!1}return e="string"==typeof e?(n=new RegExp("^"+e,"i"),function(e){return n.test(e.title)}):e,t=t||i,this.visitRows(o,{start:t,includeSelf:!1}),r||t===i||this.visitRows(o,{start:i,includeSelf:!0}),r},findRelatedNode:function(t,n,r){var i=null,o=e.ui.keyCode;switch(n){case"parent":case o.BACKSPACE:t.parent&&t.parent.parent&&(i=t.parent);break;case"first":case o.HOME:this.visit((function(e){if(e.isVisible())return i=e,!1}));break;case"last":case o.END:this.visit((function(e){e.isVisible()&&(i=e)}));break;case"left":case o.LEFT:t.expanded?t.setExpanded(!1):t.parent&&t.parent.parent&&(i=t.parent);break;case"right":case o.RIGHT:t.expanded||!t.children&&!t.lazy?t.children&&t.children.length&&(i=t.children[0]):(t.setExpanded(),i=t);break;case"up":case o.UP:this.visitRows((function(e){return i=e,!1}),{start:t,reverse:!0,includeSelf:!1});break;case"down":case o.DOWN:this.visitRows((function(e){return i=e,!1}),{start:t,includeSelf:!1});break;default:this.tree.warn("Unknown relation '"+n+"'.")}return i},generateFormElements:function(t,n,r){r=r||{};var i,o="string"==typeof t?t:"ft_"+this._id+"[]",a="string"==typeof n?n:"ft_"+this._id+"_active",s="fancytree_result_"+this._id,l=e("#"+s),c=3===this.options.selectMode&&!1!==r.stopOnParents;function d(t){l.append(e("<input>",{type:"checkbox",name:o,value:t.key,checked:!0}))}l.length?l.empty():l=e("<div>",{id:s}).hide().insertAfter(this.$container),!1!==n&&this.activeNode&&l.append(e("<input>",{type:"radio",name:a,value:this.activeNode.key,checked:!0})),r.filter?this.visit((function(e){var t=r.filter(e);if("skip"===t)return t;!1!==t&&d(e)})):!1!==t&&(i=this.getSelectedNodes(c),e.each(i,(function(e,t){d(t)})))},getActiveNode:function(){return this.activeNode},getFirstChild:function(){return this.rootNode.getFirstChild()},getFocusNode:function(){return this.focusNode},getOption:function(e){return this.widget.option(e)},getNodeByKey:function(e,t){var n,r;return!t&&(n=document.getElementById(this.options.idPrefix+e))?n.ftnode?n.ft
799node:null:(t=t||this.rootNode,r=null,e=""+e,t.visit((function(t){if(t.key===e)return r=t,!1}),!0),r)},getRootNode:function(){return this.rootNode},getSelectedNodes:function(e){return this.rootNode.getSelectedNodes(e)},hasFocus:function(){return!!this._hasFocus},info:function(e){this.options.debugLevel>=3&&(Array.prototype.unshift.call(arguments,this.toString()),S("info",arguments))},isLoading:function(){var e=!1;return this.rootNode.visit((function(t){if(t._isLoading||t._requestId)return e=!0,!1}),!0),e},loadKeyPath:function(t,n){var r,i,o,a=this,s=new e.Deferred,l=this.getRootNode(),c=this.options.keyPathSeparator,d=[],u=e.extend({},n);for("function"==typeof n?r=n:n&&n.callback&&(r=n.callback),u.callback=function(e,t,n){r&&r.call(e,t,n),s.notifyWith(e,[{node:t,status:n}])},null==u.matchKey&&(u.matchKey=function(e,t){return e.key===t}),b(t)||(t=[t]),i=0;i<t.length;i++)(o=t[i]).charAt(0)===c&&(o=o.substr(1)),d.push(o.split(c));return setTimeout((function(){a._loadKeyPathImpl(s,u,l,d).done((function(){s.resolve()}))}),0),s.promise()},_loadKeyPathImpl:function(t,n,r,i){var o,a,s,l,c,d,u,h,p,f,m=this;function g(e,t){var r,i,o=e.children;if(o)for(r=0,i=o.length;r<i;r++)if(n.matchKey(o[r],t))return o[r];return null}for(u={},a=0;a<i.length;a++)for(p=i[a],h=r;p.length;){if(s=p.shift(),!(l=g(h,s))){this.warn("loadKeyPath: key not found: "+s+" (parent: "+h+")"),n.callback(this,s,"error");break}if(0===p.length){n.callback(this,l,"ok");break}if(l.lazy&&void 0===l.hasChildren()){n.callback(this,l,"loaded"),u[s=l.key]?u[s].pathSegList.push(p):u[s]={parent:l,pathSegList:[p]};break}n.callback(this,l,"loaded"),h=l}function v(e,t,r){n.callback(m,t,"loading"),t.load().done((function(){m._loadKeyPathImpl.call(m,e,n,t,r).always(P(e,m))})).fail((function(r){m.warn("loadKeyPath: error loading lazy "+t),n.callback(m,l,"error"),e.rejectWith(m)}))}for(c in o=[],u)w(u,c)&&(d=u[c],f=new e.Deferred,o.push(f),v(f,d.parent,d.pathSegList));return e.when.apply(e,o).promise()},reactivate:function(e){var t,n=this.activeNode;return n?(this.activeNode=null,t=n.setActive(!0,{noFocus:!0}),e&&n.setFocus(),t):O()},reload:function(e){return this._callHook("treeClear",this),this._callHook("treeLoad",this,e)},render:function(e,t){return this.rootNode.render(e,t)},selectAll:function(e){this.visit((function(t){t.setSelected(e)}))},setFocus:function(e){return this._callHook("treeSetFocus",this,e)},setOption:function(e,t){return this.widget.option(e,t)},debugTime:function(e){this.options.debugLevel>=4&&window.console.time(this+" - "+e)},debugTimeEnd:function(e){this.options.debugLevel>=4&&window.console.timeEnd(this+" - "+e)},toDict:function(e,t){var n=this.rootNode.toDict(!0,t);return e?n:n.children},toString:function(){return"Fancytree@"+this._id},_triggerNodeEvent:function(e,t,n,r){var i=this._makeHookContext(t,n,r),o=this.widget._trigger(e,n,i);return!1!==o&&void 0!==i.result?i.result:o},_triggerTreeEvent:function(e,t,n){var r=this._makeHookContext(this,t,n),i=this.widget._trigger(e,t,r);return!1!==i&&void 0!==r.result?r.result:i},visit:function(e){return this.rootNode.visit(e,!1)},visitRows:function(e,t){if(!this.rootNode.hasChildren())return!1;if(t&&t.reverse)return delete t.reverse,this._visitRowsUp(e,t);var n,r,i,o,a=0,s=!1===(t=t||{}).includeSelf,l=!!t.includeHidden,c=!l&&this.enableFilter,d=t.start||this.rootNode.children[0];for(i=d.parent;i;){for(_((r=(o=i.children).indexOf(d)+a)>=0,"Could not find "+d+" in parent's children: "+i),n=r;n<o.length;n++)if(d=o[n],!c||d.match||d.subMatchCount){if(!s&&!1===e(d))return!1;if(s=!1,d.children&&d.children.length&&(l||d.expanded)&&!1===d.visit((function(t){return!c||t.match||t.subMatchCount?!1!==e(t)&&(l||!t.children||t.expanded?void 0:"skip"):"skip"}),!1))return!1}d=i,i=i.parent,a=1}return!0},_visitRowsUp:function(e,t){for(var n,r,i,o=!!t.includeHidden,a=t.start||this.rootNode.children[0];;){if((n=(i=a.parent).children)[0]===a){if(!(a=i).parent)break;n=i.children}else for(r=n.indexOf(a),a=n[r-1];(o||a.expanded)&&a.children&&a.children.length;)i=a,a=(n=a.children)[n.length-1];if((o||a.isVisible())&&!1===e(a))return!1}},warn:function(e){this.options.debugLevel>=2&&(Array.prototype.unshift.call(arguments,this.toString()),S("warn",arguments))}},e.extend(j.prototype,{nodeClick:function(e){var t,n,r=e.targetType,i=e.node;if("expander"===r){if(i.isLoading())return void i.debug("Got 2nd click while loading: ignored");this._callHook("nodeToggleExpanded",e)}else if("checkbox"===r)this._callHook("nodeToggleSelected",e),e.options.focusOnSelect&&this._callHook("nodeSetFocus",e,!0);else{if(n=!1,t=!0,i.folder)switch(e.options.clickFolderMode){case 2:n=!0,t=!1;break;case 3:t=!0,n=!0}t&&(this.nodeSetFocus(e),this._callHook("nodeSetActive",e,!0)),n&&this._callHook("nodeToggleExpanded",e)}}
799,nodeCollapseSiblings:function(e,t){var n,r,i,o=e.node;if(o.parent)for(r=0,i=(n=o.parent.children).length;r<i;r++)n[r]!==o&&n[r].expanded&&this._callHook("nodeSetExpanded",n[r],!1,t)},nodeDblclick:function(e){"title"===e.targetType&&4===e.options.clickFolderMode&&this._callHook("nodeToggleExpanded",e),"title"===e.targetType&&e.originalEvent.preventDefault()},nodeKeydown:function(t){var n,i,o,a=t.originalEvent,s=t.node,l=t.tree,u=t.options,h=a.which,p=a.key||String.fromCharCode(h),f=!!(a.altKey||a.ctrlKey||a.metaKey),m=!d[h]&&!c[h]&&!f,g=e(a.target),v=!0,y=!(a.ctrlKey||!u.autoActivate);if(s||(o=this.getActiveNode()||this.getFirstChild())&&(o.setFocus(),(s=t.node=this.focusNode).debug("Keydown force focus on active node")),u.quicksearch&&m&&!g.is(":input:enabled"))return(i=Date.now())-l.lastQuicksearchTime>500&&(l.lastQuicksearchTerm=""),l.lastQuicksearchTime=i,l.lastQuicksearchTerm+=p,(n=l.findNextNode(l.lastQuicksearchTerm,l.getActiveNode()))&&n.setActive(),void a.preventDefault();switch(r.eventToString(a)){case"+":case"=":l.nodeSetExpanded(t,!0);break;case"-":l.nodeSetExpanded(t,!1);break;case"space":s.isPagingNode()?l._triggerNodeEvent("clickPaging",t,a):r.evalOption("checkbox",s,s,u,!1)?l.nodeToggleSelected(t):l.nodeSetActive(t,!0);break;case"return":l.nodeSetActive(t,!0);break;case"home":case"end":case"backspace":case"left":case"right":case"up":case"down":s.navigate(a.which,y);break;default:v=!1}v&&a.preventDefault()},nodeLoadChildren:function(t,n){var r,i,o,a=null,s=!0,l=t.tree,c=t.node,d=c.parent,u="nodeLoadChildren",h=Date.now();return x(n)&&_(!x(n=n.call(l,{type:"source"},t)),"source callback must not return another function"),x(n.then)?a=n:n.url?(r=e.extend({},t.options.ajax,n)).debugDelay?(i=r.debugDelay,delete r.debugDelay,b(i)&&(i=i[0]+Math.random()*(i[1]-i[0])),c.warn("nodeLoadChildren waiting debugDelay "+Math.round(i)+" ms ..."),a=e.Deferred((function(t){setTimeout((function(){e.ajax(r).done((function(){t.resolveWith(this,arguments)})).fail((function(){t.rejectWith(this,arguments)}))}),i)}))):a=e.ajax(r):e.isPlainObject(n)||b(n)?(a={then:function(e,t){e(n,null,null)}},s=!1):e.error("Invalid source type: "+n),c._requestId&&(c.warn("Recursive load request #"+h+" while #"+c._requestId+" is pending."),c._requestId=h),s&&(l.debugTime(u),l.nodeSetStatus(t,"loading")),o=new e.Deferred,a.then((function(r,i,a){var s,u;if("json"!==n.dataType&&"jsonp"!==n.dataType||"string"!=typeof r||e.error("Ajax request returned a string (did you get the JSON dataType wrong?)."),c._requestId&&c._requestId>h)o.rejectWith(this,["$recursive_request"]);else if(null!==c.parent||null===d){if(t.options.postProcess){try{(u=l._triggerNodeEvent("postProcess",t,t.originalEvent,{response:r,error:null,dataType:n.dataType})).error&&l.warn("postProcess returned error:",u)}catch(e){u={error:e,message:""+e,details:"postProcess failed"}}if(u.error)return s=e.isPlainObject(u.error)?u.error:{message:u.error},s=l._makeHookContext(c,null,s),void o.rejectWith(this,[s]);(b(u)||e.isPlainObject(u)&&b(u.children))&&(r=u)}else r&&w(r,"d")&&t.options.enableAspx&&(42===t.options.enableAspx&&l.warn("The default for enableAspx will change to `false` in the fututure. Pass `enableAspx: true` or implement postProcess to silence this warning."),r="string"==typeof r.d?e.parseJSON(r.d):r.d);o.resolveWith(this,[r])}else o.rejectWith(this,["$request_target_invalid"])}),(function(e,t,n){var r=l._makeHookContext(c,null,{error:e,args:Array.prototype.slice.call(arguments),message:n,details:e.status+": "+n});o.rejectWith(this,[r])})),o.done((function(n){var r,i,o;l.nodeSetStatus(t,"ok"),e.isPlainObject(n)?(_(c.isRootNode(),"source may only be an object for root nodes (expecting an array of child objects otherwise)"),_(b(n.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),i=n,r=n.children,delete i.children,e.each(f,(function(e,t){void 0!==i[t]&&(l[t]=i[t],delete i[t])})),e.extend(l.data,i)):r=n,_(b(r),"expected array of children"),c._setChildren(r),l.options.nodata&&0===r.length&&(x(l.options.nodata)?o=l.options.nodata.call(l,{type:"nodata"},t):!0===l.options.nodata&&c.isRootNode()?o=l.options.strings.noD
vendor: 6,471 bytes, line 799
799ata:"string"==typeof l.options.nodata&&c.isRootNode()&&(o=l.options.nodata),o&&c.setStatus("nodata",o)),l._triggerNodeEvent("loadChildren",c)})).fail((function(e){var n;"$recursive_request"!==e?"$request_target_invalid"!==e?(e.node&&e.error&&e.message?n=e:"[object Object]"===(n=l._makeHookContext(c,null,{error:e,args:Array.prototype.slice.call(arguments),message:e?e.message||e.toString():""})).message&&(n.message=""),c.warn("Load children failed ("+n.message+")",n),!1!==l._triggerNodeEvent("loadError",n,null)&&l.nodeSetStatus(t,"error",n.message,n.details)):c.warn("Lazy parent node was removed while loading: discarding response."):c.warn("Ignored response for obsolete load request #"+h+" (expected #"+c._requestId+")")})).always((function(){c._requestId=null,s&&l.debugTimeEnd(u)})),o.promise()},nodeLoadKeyPath:function(e,t){},nodeRemoveChild:function(t,n){var r,i=t.node,o=e.extend({},t,{node:n}),a=i.children;if(1===a.length)return _(n===a[0],"invalid single child"),this.nodeRemoveChildren(t);this.activeNode&&(n===this.activeNode||this.activeNode.isDescendantOf(n))&&this.activeNode.setActive(!1),this.focusNode&&(n===this.focusNode||this.focusNode.isDescendantOf(n))&&(this.focusNode=null),this.nodeRemoveMarkup(o),this.nodeRemoveChildren(o),_((r=e.inArray(n,a))>=0,"invalid child"),i.triggerModifyChild("remove",n),n.visit((function(e){e.parent=null}),!0),this._callHook("treeRegisterNode",this,!1,n),a.splice(r,1)},nodeRemoveChildMarkup:function(t){var n=t.node;n.ul&&(n.isRootNode()?e(n.ul).empty():(e(n.ul).remove(),n.ul=null),n.visit((function(e){e.li=e.ul=null})))},nodeRemoveChildren:function(e){var t=e.tree,n=e.node;n.children&&(this.activeNode&&this.activeNode.isDescendantOf(n)&&this.activeNode.setActive(!1),this.focusNode&&this.focusNode.isDescendantOf(n)&&(this.focusNode=null),this.nodeRemoveChildMarkup(e),n.triggerModifyChild("remove",null),n.visit((function(e){e.parent=null,t._callHook("treeRegisterNode",t,!1,e)})),n.lazy?n.children=[]:n.children=null,n.isRootNode()||(n.expanded=!1),this.nodeRenderStatus(e))},nodeRemoveMarkup:function(t){var n=t.node;n.li&&(e(n.li).remove(),n.li=null),this.nodeRemoveChildMarkup(t)},nodeRender:function(t,n,r,i,o){var a,s,l,c,d,u,h,p=t.node,f=t.tree,m=t.options,g=m.aria,v=!1,y=p.parent,b=!y,w=p.children,x=null;if(!1!==f._enableUpdate&&(b||y.ul)){if(_(b||y.ul,"parent UL must exist"),b||(p.li&&(n||p.li.parentNode!==p.parent.ul)&&(p.li.parentNode===p.parent.ul?x=p.li.nextSibling:this.debug("Unlinking "+p+" (must be child of "+p.parent+")"),this.nodeRemoveMarkup(t)),p.li?this.nodeRenderStatus(t):(v=!0,p.li=document.createElement("li"),p.li.ftnode=p,p.key&&m.generateIds&&(p.li.id=m.idPrefix+p.key),p.span=document.createElement("span"),p.span.className="fancytree-node",g&&!p.tr&&e(p.li).attr("role","treeitem"),p.li.appendChild(p.span),this.nodeRenderTitle(t),m.createNode&&m.createNode.call(f,{type:"createNode"},t)),m.renderNode&&m.renderNode.call(f,{type:"renderNode"},t)),w){if(b||p.expanded||!0===r){for(p.ul||(p.ul=document.createElement("ul"),(!0!==i||o)&&p.expanded||(p.ul.style.display="none"),g&&e(p.ul).attr("role","group"),p.li?p.li.appendChild(p.ul):p.tree.$div.append(p.ul)),c=0,d=w.length;c<d;c++)h=e.extend({},t,{node:w[c]}),this.nodeRender(h,n,r,!1,!0);for(a=p.ul.firstChild;a;)(l=a.ftnode)&&l.parent!==p?(p.debug("_fixParent: remove missing "+l,a),u=a.nextSibling,a.parentNode.removeChild(a),a=u):a=a.nextSibling;for(a=p.ul.firstChild,c=0,d=w.length-1;c<d;c++)(s=w[c])===(l=a.ftnode)?a=a.nextSibling:p.ul.insertBefore(s.li,l.li)}}else p.ul&&(this.warn("remove child markup for "+p),this.nodeRemoveChildMarkup(t));b||v&&y.ul.insertBefore(p.li,x)}},nodeRenderTitle:function(t,n){var o,a,s,l,c,d,u,h=t.node,p=t.tree,f=t.options,m=f.aria,g=h.getLevel(),v=[];void 0!==n&&(h.title=n),h.span&&!1!==p._enableUpdate&&(c=m&&!1!==h.hasChildren()?" role='button'":"",g<f.minExpandLevel?(h.lazy||(h.expanded=!0),g>1&&v.push("<span "+c+" class='fancytree-expander fancytree-expander-fixed'></span>")):v.push("<span "+c+" class='fancytree-expander'></span>"),(o=r.evalOption("checkbox",h,h,f,!1))&&!h.isStatusNode()&&(c=m?" role='checkbox'":"",a="fancytree-checkbox",("radio"===o||h.parent&&h.parent.radiogroup)&&(a+=" fancytree-radio"),v.push("<span "+c+" class='"+a+"'></span>")),void 0!==h.data.iconClass&&(h.icon?e.error("'iconClass' node option is deprecated since v2.14.0: use 'icon' only instead"):(h.warn("'iconClass' node option is deprecated since v2.14.0: use 'icon' instead"),h.icon=h.data.iconClass)),!1!==(s=r.evalOption("icon",h,h,f,!0))&&(c=m?" role='presentation'":"",u=(u=r.evalOption("iconTooltip",h,h,f,null))?" title='"+L(u)+"'":"","string"==typeof s?i.test(s)?(s="/"===s.charAt(0)?s:(f.imagePath||"")+s,v.push("<img src='"+s+"' class='fancytree-icon'"+u+" alt='' />")):v.push("<span "+c+" class='fancytree-custom-icon "+s+"'"+u+"></span>"):s.text?v.push("<span "+c+" class='fancytree-custom-icon "+(s.addClass||"")+"'"+u+">"+r.escapeHtml(s.text)+"</span>"):s.html?v.push("<span "+c+" class='fancytree-custom-icon "+(s.addClass||"")+"'"+u+">"+s.html+"</span>"):v.push("<span "+c+" class='fancytree-icon'"+u+"></span>")),l="",f.renderTitle&&(l=f.renderTitle.call(p,{type:"renderTitle"},t)||""),l||(!0===(d=r.evalOption("tooltip",h,h,f,null))&&(d=h.title),l="<span class='fancytree-title'"+(d=d?" title='"+L(d)+"'":"")+(f.titlesTabbable?" tabindex='0'":"")+">"+(f.escapeTitles?r.escapeHtml(h.title):h.title)+"</span>"),v.push(l),h.span.innerHTML=v.join(""),this.nodeRenderStatus(t),f.enhanceTitle&&(t.$title=e(">span.fancytree-title",h.span),l=f.enhanceTitle.call(p,{type:"enhanceTitle"},t)||""))},nodeRenderStatus:function(t){var n,i=t.node,o=t.tree,a=t.options,s=i.hasChildren(),l=i.isLastSibling(),c=a.aria,d=a._classNames,u=[],h=i[o.statusClassPropName];h&&!1!==o._enableUpdate&&(c&&(n=e(i.tr||i.li)),u.push(d.node),o.activeNode===i&&u.push(d.active),o.focusNode===i&&u.push(d.focused),i.expanded&&u.push(d.expanded),c&&(!1===s?n.removeAttr("aria-expanded"):n.attr("aria-expanded",Boolean(i.expanded))),i.folder&&u.push(d.folder),!1!==s&&u.push(d.hasChildren),l&&u.push(d.lastsib),i.lazy&&null==i.children&&u.push(d.lazy),i.partload&&u.push(d.partload),i.partsel&&u.push(d.partsel),r.evalOption("unselectable",i,i,a,!1)&&u.push(d.unselectable),i._isLoading&&u.push(d.loading),i._error&&u.push(d.error),i.statusNodeType&&u.push(d.statusNodePrefix+i.statusNodeType),i.selected?(u.push(d.selected),c&&n.attr("aria-selected",!0)):c&&n.attr("aria-selected",!1),i.extraClasse
799s&&u.push(i.extraClasses),!1===s?u.push(d.combinedExpanderPrefix+"n"+(l?"l":"")):u.push(d.combinedExpanderPrefix+(i.expanded?"e":"c")+(i.lazy&&null==i.children?"d":"")+(l?"l":"")),u.push(d.combinedIconPrefix+(i.expanded?"e":"c")+(i.folder?"f":"")),h.className=u.join(" "),i.li&&e(i.li).toggleClass(d.lastsib,l))},nodeSetActive:function(t,n,r){r=r||{};var i,o=t.node,a=t.tree,s=t.options,l=!0===r.noEvents,c=!0===r.noFocus,d=!1!==r.scrollIntoView;return o===a.activeNode==(n=!1!==n)?O(o):(d&&t.originalEvent&&e(t.originalEvent.target).is("a,:checkbox")&&(o.info("Not scrolling while clicking an embedded link."),d=!1),n&&!l&&!1===this._triggerNodeEvent("beforeActivate",o,t.originalEvent)?$(o,["rejected"]):(n?(a.activeNode&&(_(a.activeNode!==o,"node was active (inconsistency)"),i=e.extend({},t,{node:a.activeNode}),a.nodeSetActive(i,!1),_(null===a.activeNode,"deactivate was out of sync?")),s.activeVisible&&o.makeVisible({scrollIntoView:d}),a.activeNode=o,a.nodeRenderStatus(t),c||a.nodeSetFocus(t),l||a._triggerNodeEvent("activate",o,t.originalEvent)):(_(a.activeNode===o,"node was not active (inconsistency)"),a.activeNode=null,this.nodeRenderStatus(t),l||t.tree._triggerNodeEvent("deactivate",o,t.originalEvent)),O(o)))},nodeSetExpanded:function(t,n,r){r=r||{};var i,o,a,s,l,c,d=t.node,u=t.tree,h=t.options,p=!0===r.noAnimation,f=!0===r.noEvents;if(n=!1!==n,e(d.li).hasClass(h._classNames.animating))return d.warn("setExpanded("+n+") while animating: ignored."),$(d,["recursion"]);if(d.expanded&&n||!d.expanded&&!n)return O(d);if(n&&!d.lazy&&!d.hasChildren())return O(d);if(!n&&d.getLevel()<h.minExpandLevel)return $(d,["locked"]);if(!f&&!1===this._triggerNodeEvent("beforeExpand",d,t.originalEvent))return $(d,["rejected"]);if(p||d.isVisible()||(p=r.noAnimation=!0),o=new e.Deferred,n&&!d.expanded&&h.autoCollapse){l=d.getParentList(!1,!0),c=h.autoCollapse;try{for(h.autoCollapse=!1,a=0,s=l.length;a<s;a++)this._callHook("nodeCollapseSiblings",l[a],r)}finally{h.autoCollapse=c}}return o.done((function(){var e=d.getLastChild();n&&h.autoScroll&&!p&&e&&u._enableUpdate?e.scrollIntoView(!0,{topNode:d}).always((function(){f||t.tree._triggerNodeEvent(n?"expand":"collapse",t)})):f||t.tree._triggerNodeEvent(n?"expand":"collapse",t)})),i=function(r){var i=h._classNames,o=h.toggleEffect;if(d.expanded=n,u._callHook("treeStructureChanged",t,n?"expand":"collapse"),u._callHook("nodeRender",t,!1,!1,!0),d.ul)if("none"!==d.ul.style.display==!!d.expanded)d.warn("nodeSetExpanded: UL.style.display already set");else{if(o&&!p)return e(d.li).addClass(i.animating),void(x(e(d.ul)[o.effect])?e(d.ul)[o.effect]({duration:o.duration,always:function(){e(this).removeClass(i.animating),e(d.li).removeClass(i.animating),r()}}):(e(d.ul).stop(!0,!0),e(d.ul).parent().find(".ui-effects-placeholder").remove(),e(d.ul).toggle(o.effect,o.options,o.duration,(function(){e(this).removeClass(i.animating),e(d.li).removeClass(i.animating),r()}))));d.ul.style.display=d.expanded||!parent?"":"none"}r()},n&&d.lazy&&void 0===d.hasChildren()?d.load().done((function(){o.notifyWith&&o.notifyWith(d,["loaded"]),i((function(){o.resolveWith(d)}))})).fail((function(e){i((function(){o.rejectWith(d,["load failed ("+e+")"])}))})):i((function(){o.resolveWith(d)})),o.promise()},nodeSetFocus:function(t,n){var r,i=t.tree,o=t.node,a=i.options,s=!!t.originalEvent&&e(t.originalEvent.target).is(":input");if(n=!1!==n,i.focusNode){if(i.focusNode===o&&n)return;r=e.extend({},t,{node:i.focusNode}),i.focusNode=null,this._triggerNodeEvent("blur",r),this._callHook("nodeRenderStatus",r)}n&&(this.hasFocus()||(o.debug("nodeSetFocus: forcing container focus"),this._callHook("treeSetFocus",t,!0,{calledByNode:!0})),o.makeVisible({scrollIntoView:!1}),i.focusNode=o,a.titlesTabbable&&(s||e(o.span).find(".fancytree-title").focus()),a.aria&&e(i.$container).attr("aria-activedescendant",e(o.tr||o.li).uniqueId().attr("id")),this._triggerNodeEvent("focus",t),document.activeElement===i.$container.get(0)||e(document.activeElement,i.$container).length>=1||e(i.$container).focus(),a.autoScroll&&o.scrollIntoView(),this._callHook("nodeRenderStatus",t))},nodeSetSelected:function(e,t,n){n=n||{};var i=e.node,o=e.tree,a=e.options,s=!0===n.noEvents,l=i.parent;if(t=!1!==t,!r.evalOption("unselectable",i,i,a,!1)){if(i._lastSelectIntent=t,!!i.selected===t&&(3!==a.selectMode||!i.partsel||t))return t;if(!s&&!1===this._triggerNodeEvent("beforeSelect",i,e.originalEvent))return!!i.selected;t&&1===a.selectMode?(o.lastSelectedNode&&o.lastSelectedNode.setSelected(!1),i.selected=t):3!==a.selectMode||!l||l.radiogroup||i.radiogroup?l&&l.radiogroup?i.visitSiblings((function(e){e._changeSelectStatusAttrs(t&&e===i)}),!0):i.selected=t:(i.selected=t,i.fixSelection3AfterClick(n)),this.nodeRenderStatus(e),o.lastSelectedNode=t?i:null,s||o._triggerNodeEvent("select",e)}},nodeSetStatus:function(t,n,r,i){var o=t.node,a=t.tree;function s(n,r){var i=o.children?o.children[0]:null;return i&&i.isStatusNode()?(e.extend(i,n),i.statusNodeType=r,a._callHook("nodeRenderTitle",i
vendor: 1,996 bytes, line 799
799)):(o._setChildren([n]),a._callHook("treeStructureChanged",t,"setStatusNode"),o.children[0].statusNodeType=r,a.render()),o.children[0]}switch(n){case"ok":!function(){var e=o.children?o.children[0]:null;if(e&&e.isStatusNode()){try{o.ul&&(o.ul.removeChild(e.li),e.li=null)}catch(e){}1===o.children.length?o.children=[]:o.children.shift(),a._callHook("treeStructureChanged",t,"clearStatusNode")}}(),o._isLoading=!1,o._error=null,o.renderStatus();break;case"loading":o.parent||s({title:a.options.strings.loading+(r?" ("+r+")":""),checkbox:!1,tooltip:i},n),o._isLoading=!0,o._error=null,o.renderStatus();break;case"error":s({title:a.options.strings.loadError+(r?" ("+r+")":""),checkbox:!1,tooltip:i},n),o._isLoading=!1,o._error={message:r,details:i},o.renderStatus();break;case"nodata":s({title:r||a.options.strings.noData,checkbox:!1,tooltip:i},n),o._isLoading=!1,o._error=null,o.renderStatus();break;default:e.error("invalid node status "+n)}},nodeToggleExpanded:function(e){return this.nodeSetExpanded(e,!e.node.expanded)},nodeToggleSelected:function(e){var t=e.node,n=!t.selected;return t.partsel&&!t.selected&&!0===t._lastSelectIntent&&(n=!1,t.selected=!0),t._lastSelectIntent=n,this.nodeSetSelected(e,n)},treeClear:function(e){var t=e.tree;t.activeNode=null,t.focusNode=null,t.$div.find(">ul.fancytree-container").empty(),t.rootNode.children=null,t._callHook("treeStructureChanged",e,"clear")},treeCreate:function(e){},treeDestroy:function(e){this.$div.find(">ul.fancytree-container").remove(),this.$source&&this.$source.removeClass("fancytree-helper-hidden")},treeInit:function(t){var n=t.tree,r=n.options;n.$container.attr("tabindex",r.tabindex),e.each(f,(function(e,t){void 0!==r[t]&&(n.info("Move option "+t+" to tree"),n[t]=r[t],delete r[t])})),r.checkboxAutoHide&&n.$container.addClass("fancytree-checkbox-auto-hide"),r.rtl?n.$container.attr("DIR","RTL").addClass("fancytree-rtl"):n.$container.removeAttr("DIR").removeClass("fancytree-rtl"),r.aria&&(n.$container.attr("role","tree"),1!==r.
799selectMode&&n.$container.attr("aria-multiselectable",!0)),this.treeLoad(t)},treeLoad:function(t,n){var i,o,a,s=t.tree,l=t.widget.element,c=e.extend({},t,{node:this.rootNode});if(s.rootNode.children&&this.treeClear(t),n=n||this.options.source)"string"==typeof n&&e.error("Not implemented");else switch(o=l.data("type")||"html"){case"html":(a=l.find(">ul").not(".fancytree-container").first()).length?(a.addClass("ui-fancytree-source fancytree-helper-hidden"),n=e.ui.fancytree.parseHtml(a),this.data=e.extend(this.data,I(a))):(r.warn("No `source` option was passed and container does not contain `<ul>`: assuming `source: []`."),n=[]);break;case"json":n=e.parseJSON(l.text()),l.contents().filter((function(){return 3===this.nodeType})).remove(),e.isPlainObject(n)&&(_(b(n.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),i=n,n=n.children,delete i.children,e.each(f,(function(e,t){void 0!==i[t]&&(s[t]=i[t],delete i[t])})),e.extend(s.data,i));break;default:e.error("Invalid data-type: "+o)}return s._triggerTreeEvent("preInit",null),this.nodeLoadChildren(c,n).done((function(){s._callHook("treeStructureChanged",t,"loadChildren"),s.render(),3===t.options.selectMode&&s.rootNode.fixSelection3FromEndNodes(),s.activeNode&&s.options.activeVisible&&s.activeNode.makeVisible(),s._triggerTreeEvent("init",null,{status:!0})})).fail((function(){s.render(),s._triggerTreeEvent("init",null,{status:!1})}))},treeRegisterNode:function(e,t,n){e.tree._callHook("treeStructureChanged",e,t?"addNode":"removeNode")},treeSetFocus:function(t,n,r){var i;(n=!1!==n)!==this.hasFocus()&&(this._hasFocus=n,!n&&this.focusNode?this.focusNode.setFocus(!1):!n||r&&r.calledByNode||e(this.$container).focus(),this.$container.toggleClass("fancytree-treefocus",n),this._triggerTreeEvent(n?"focusTree":"blurTree"),n&&!this.activeNode&&(i=this._lastMousedownNode||this.getFirstChild())&&i.setFocus())},treeSetOption:function(t,n,r){var i=t.tree,o=!0,a=!1,s=!1;switch(n){case"aria":case"checkbox":case"icon":case"minExpandLevel":case"tabindex":a=!0,s=!0;break;case"checkboxAutoHide":i.$container.toggleClass("fancytree-checkbox-auto-hide",!!r);break;case"escapeTitles":case"tooltip":s=!0;break;case"rtl":!1===r?i.$container.removeAttr("DIR").removeClass("fancytree-rtl"):i.$container.attr("DIR","RTL").addClass("fancytree-rtl"),s=!0;break;case"source":o=!1,i._callHook("treeLoad",i,r),s=!0}i.debug("set option "+n+"="+r+" <"+qe(r)+">"),o&&(this.widget._super?this.widget._super.call(this.widget,n,r):e.Widget.prototype._setOption.call(this.widget,n,r)),a&&i._callHook("treeCreate",i),s&&i.render(!0,!1)},treeStructureChanged:function(e,t){}}),e.widget("ui.fancytree",{options:{activeVisible:!0,ajax:{type:"GET",cache:!1,dataType:"json"},aria:!0,autoActivate:!0,autoCollapse:!1,autoScroll:!1,checkbox:!1,clickFolderMode:4,copyFunctionsToData:!1,debugLevel:null,disabled:!1,enableAspx:42,escapeTitles:!1,extensions:[],focusOnSelect:!1,generateIds:!1,icon:!0,idPrefix:"ft_",keyboard:!0,keyPathSeparator:"/",minExpandLevel:1,nodata:!0,quicksearch:!1,rtl:!1,scrollOfs:{top:0,bottom:0},scrollParent:null,selectMode:2,strings:{loading:"Loading...",loadError:"Load error!",moreData:"More...",noData:"No data."},tabindex:"0",titlesTabbable:!1,toggleEffect:{effect:"slideToggle",duration:200},tooltip:!1,treeId:null,_classNames:{active:"fancytree-active",animating:"fancytree-animating",combinedExpanderPrefix:"fancytree-exp-",combinedIconPrefix:"fancytree-ico-",error:"fancytree-error",expanded:"fancytree-expanded",focused:"fancytree-focused",folder:"fancytree-folder",hasChildren:"fancytree-has-children",lastsib:"fancytree-lastsib",lazy:"fancytree-lazy",loading:"fancytree-loading",node:"fancytree-node",partload:"fancytree-partload",partsel:"fancytree-partsel",radio:"fancytree-radio",selected:"fancytree-selected",statusNodePrefix:"fancytree-statusnode-",unselectable:"fancytree-unselectable"},lazyLoad:null,postProcess:null},_deprecationWarning:function(e){var t=this.tree;t&&t.options.debugLevel>=3&&t.warn("$().fancytree('"+e+"') is deprecated (see https://wwwendt.de/tech/fancytree/doc/jsdoc/Fancytree_Widget.html")},_create:function(){this.tree=new j(this),this.$source=this.source||"json"===this.element.data("type")?this.element:this.element.find(">ul").first();var t,n,r,i=this.options,o=i.extensions;for(this.tree,r=0;r<o.length;r++)n=o[r],(t=e.ui.fancytree._extensions[n])||e.error("Could not apply extension '"+n+"' (it is not registered, did you forget to include it?)"),this.tree.options[n]=E({},t.options,this.tree.options[n]),_(void 0===this.tree.ext[n],"Extension name must not exist as Fancytree.ext attribute: '"+n+"'"),this.tree.ext[n]={},T(this.tree,0,t,n);void 0!==i.icons&&(!0===i.icon?(this.tree.warn("'icons' tree option is deprecated since v2.14.0: use 'icon' instead"),i.icon=i.icons):e.error("'icons' tree option is deprecated since v2.14.0: use 'icon' only instead")),void 0!==i.iconClass&&(i.icon?e.error("'iconClass' tree option is deprecated since v2.14.0: use 'icon' only instead"):(this.tree.warn("'iconClass' tree option is deprecated since v2.14.0: use 'icon' instead"),i.icon=i.iconClass)),void 0!==i.tabbable&&(i.tabindex=i.tabbable?"0":"-1",this.tree.warn("'tabbable' tree option is deprecated since v2.17.0: use 'tabindex='"+i.tabindex+"' instead")),this.tree._callHook("treeCreate",this.tree)},_init:function(){this.tree._callHook("treeInit",this.tree),this._bind()},_setOption:function(e,t){return this.tree._callHook("treeSetOption",this.tree,e,t)},_destroy:function(){this._unbind(),this.tree._callHook("treeDestroy",this.tree)},_unbind:function(){var t=this.tree._ns;this.element.off(t),this.tree.$container.off(t),e(document).off(t)},_bind:function(){var t=this,n=this.options,i=this.tree,o=i._ns;this._unbind(),i.$container.on("focusin"+o+" focusout"+o,(function(t){var n=r.getNode(t),o="focusin"===t.type;if(!o&&n&&e(t.target).is("a"))n.debug("Ignored focusout on embedded <a> element.");else{if(o){if(i._getExpiringValue("focusin"))return void i.debug("Ignored double focusin.");i._setExpiringValue("focusin",!0,50),n||(n=i._getExpiringValue("mouseDownNode"))&&i.debug("Reconstruct mouse target for focusin from recent event.")}n?i._callHook("nodeSetFocus",i._makeHookContext(n,t),o):i.tbody&&e(t.target).parents("table.fancytree-container > thead").length?i.debug("Ignore focus event outside table body.",t):i._callHook("treeSetFocus",i,o)}})).on("selectstart"+o,"span.fancytree-title",(function(e){e.preventDefault()})).on("keydown"+o,(function(e){if(n.disabled||!1===n.keyboard)return!0;var t,r=i.focusNode,o=i._makeHookContext(r||i,e),a=i.phase;try{return i.phase="userEvent","preventNav"===(t=r?i._triggerNodeEvent("keydown",r,e):i._triggerTreeEvent("keydown",e))?t=!0:!1!==t&&(t=i._callHook("nodeKeydown",o)),t}finally{i.phase=a}})).on("mousedown"+o,(function(e){var t=r.getEventTarget(e);i._lastMousedownNode=t?t.node:null,i._setExpiringValue("mouseDownNode",i._lastMousedownNode)}
799)).on("click"+o+" dblclick"+o,(function(e){if(n.disabled)return!0;var i,o=r.getEventTarget(e),a=o.node,s=t.tree,l=s.phase;if(!a)return!0;i=s._makeHookContext(a,e);try{switch(s.phase="userEvent",e.type){case"click":return i.targetType=o.type,a.isPagingNode()?!0===s._triggerNodeEvent("clickPaging",i,e):!1!==s._triggerNodeEvent("click",i,e)&&s._callHook("nodeClick",i);case"dblclick":return i.targetType=o.type,!1!==s._triggerNodeEvent("dblclick",i,e)&&s._callHook("nodeDblclick",i)}}finally{s.phase=l}}))},getActiveNode:function(){return this._deprecationWarning("getActiveNode"),this.tree.activeNode},getNodeByKey:function(e){return this._deprecationWarning("getNodeByKey"),this.tree.getNodeByKey(e)},getRootNode:function(){return this._deprecationWarning("getRootNode"),this.tree.rootNode},getTree:function(){return this._deprecationWarning("getTree"),this.tree}}),r=e.ui.fancytree,e.extend(e.ui.fancytree,{version:"2.38.2",buildType:"production",debugLevel:3,_nextId:1,_nextNodeKey:1,_extensions:{},_FancytreeClass:j,_FancytreeNodeClass:M,jquerySupports:{positionMyOfs:function(t,n,r,i){var o,a,s,l=e.map(C(t).split("."),(function(e){return parseInt(e,10)})),c=e.map(Array.prototype.slice.call(arguments,1),(function(e){return parseInt(e,10)}));for(o=0;o<c.length;o++)if((a=l[o]||0)!==(s=c[o]||0))return a>s;return!0}(e.ui.version,1,9)},assert:function(e,t){return _(e,t)},createTree:function(t,n){var i=e(t).fancytree(n);return r.getTree(i)},debounce:function(e,t,n,r){var i;return 3===arguments.length&&"boolean"!=typeof n&&(r=n,n=!1),function(){var o=arguments;r=r||this,n&&!i&&t.apply(r,o),clearTimeout(i),i=setTimeout((function(){n||t.apply(r,o),i=null}),e)}},debug:function(t){e.ui.fancytree.debugLevel>=4&&S("log",arguments)},error:function(t){e.ui.fancytree.debugLevel>=1&&S("error",arguments)},escapeHtml:function(e){return(""+e).replace(o,(function(e){return s[e]}))},fixPositionOptions:function(t){if((t.offset||(""+t.my+t.at).indexOf("%")>=0)&&e.error("expected new position syntax (but '%' is not supported)"),!e.ui.fancytree.jquerySupports.positionMyOfs){var n=/(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(t.my),r=/(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(t.at),i=(n[2]?+n[2]:0)+(r[2]?+r[2]:0),o=(n[4]?+n[4]:0)+(r[4]?+r[4]:0);t=e.extend({},t,{my:n[1]+" "+n[3],at:r[1]+" "+r[3]}),(i||o)&&(t.offset=i+" "+o)}return t},getEventTarget:function(t){var n,i=t&&t.target?t.target.className:"",o={node:this.getNode(t.target),type:void 0};return/\bfancytree-title\b/.test(i)?o.type="title":/\bfancytree-expander\b/.test(i)?o.type=!1===o.node.hasChildren()?"prefix":"expander":/\bfancytree-checkbox\b/.test(i)?o.type="checkbox":/\bfancytree(-custom)?-icon\b/.test(i)?o.type="icon":/\bfancytree-node\b/.test(i)?o.type="title":t&&t.target&&((n=e(t.target)).is("ul[role=group]")?((o.node&&o.node.tree||r).debug("Ignoring click on outer UL."),o.node=null):n.closest(".fancytree-title").length?o.type="title":n.closest(".fancytree-checkbox").length?o.type="checkbox":n.closest(".fancytree-expander").length&&(o.type="expander")),o},getEventTargetType:function(e){return this.getEventTarget(e).type},getNode:function(t){if(t instanceof M)return t;for(t instanceof e?t=t[0]:void 0!==t.originalEvent&&(t=t.target);t;){if(t.ftnode)return t.ftnode;t=t.parentNode}return null},getTree:function(t){var n,r=t;return t instanceof j?t:(void 0===t&&(t=0),"number"==typeof t?t=e(".fancytree-container").eq(t):"string"==typeof t?(t=e("#ft-id-"+r).eq(0)).length||(t=e(r).eq(0)):t instanceof Element||t instanceof HTMLDocument?t=e(t):t instanceof e?t=t.eq(0):void 0!==t.originalEvent&&(t=e(t.target)),(n=(t=t.closest(":ui-fancytree")).data("ui-fancytree")||t.data("fancytree"))?n.tree:null)},evalOption:function(e,t,n,r,i){var o,a,s=t.tree,l=r[e],c=n[e];return x(l)?(o={node:t,tree:s,widget:s.widget,options:s.widget.options,typeInfo:s.types[t.type]||{}},null==(a=l.call(s,{type:e},o))&&(a=c)):a=null==c?l:c,null==a&&(a=i),a},setSpanIcon:function(t,n,r){var i=e(t);"string"==typeof r?i.attr("class",n+" "+r):(r.text?i.text(""+r.text):r.html&&(t.innerHTML=r.html),i.attr("class",n+" "+(r.addClass||"")))},eventToString:function(e){var t=e.which,n=e.type,r=[];return e.altKey&&r.push("alt"),e.ctrlKey&&r.push("ctrl"),e.metaKey&&r.push("meta"),e.shiftKey&&r.push("shift"),"click"===n||"dblclick"===n?r.push(u[e.button]+n):"wheel"===n?r.push(n):l[t]||r.push(c[t]||String.fromCharCode(t).toLowerCase()),r.join("+")},info:function(t){e.ui.fancytree.debugLevel>=3&&S("info",arguments)},keyEventToString:function(e){return this.warn("keyEventToString() is deprecated: use eventToString()"),this.eventToString(e)},overrideMethod:function(t,n,r,i){var o,a=t[n]||e.noop;t[n]=function(){var e=i||this;try{return o=e._super,e._super=a,r.apply(e,arguments)}finally{e._super=o}}},parseHtml:function(t){var n,r,i,o,a,s,l,c,d=t.find(">li"),u=[];return d.each((function(){var d,f,g=e(this),y=g.find(">span",this).first(),b=y.length?null:g.find(">a").first(),_={tooltip:null,data:{}};for(y.length?_.title=y.html():b&&b.length?(_.title=b.html(),_.data.href=b.attr("href"),_.data.target=b.attr("target"),_.tooltip=b.attr("title")):(_.title=g.html(),(a=_.title.search(/<ul/i))>=0&&(_.title=_.title.substring(0,a))),_.title=C(_.title),o=0,s=h.length;o<s;o++)_[h[o]]=void 0;for(n=this.className.split(" "),i=[],o=0,s=n.length;o<s;o++)r=n[o],p[r]?_[r]=!0:i.push(r);
799if(_.extraClasses=i.join(" "),(l=g.attr("title"))&&(_.tooltip=l),(l=g.attr("id"))&&(_.key=l),g.attr("hideCheckbox")&&(_.checkbox=!1),(d=I(g))&&!e.isEmptyObject(d)){for(f in v)w(d,f)&&(d[v[f]]=d[f],delete d[f]);for(o=0,s=m.length;o<s;o++)l=m[o],null!=(c=d[l])&&(delete d[l],_[l]=c);e.extend(_.data,d)}(t=g.find(">ul").first()).length?_.children=e.ui.fancytree.parseHtml(t):_.children=_.lazy?void 0:null,u.push(_)})),u},registerExtension:function(t){_(null!=t.name,"extensions must have a `name` property."),_(null!=t.version,"extensions must have a `version` property."),e.ui.fancytree._extensions[t.name]=t},trim:C,unescapeHtml:function(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue},warn:function(t){e.ui.fancytree.debugLevel>=2&&S("warn",arguments)}}),e.ui.fancytree}function _(t,n){t||(n="Fancytree assertion failed"+(n=n?": "+n:""),e.ui.fancytree.error(n),e.error(n))}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x(e){return"function"==typeof e}function C(e){return null==e?"":e.trim()}function S(e,t){var n,r,i=window.console?window.console[e]:null;if(i)try{i.apply(window.console,t)}catch(e){for(r="",n=0;n<t.length;n++)r+=t[n];i(r)}}function E(){var t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length;if("object"==qe(a)||x(a)||(a={}),s===l)throw Error("need at least two args");for(;s<l;s++)if(null!=(t=arguments[s]))for(n in t)if(w(t,n)){if(r=a[n],a===(i=t[n]))continue;i&&e.isPlainObject(i)?(o=r&&e.isPlainObject(r)?r:{},a[n]=E(o,i)):void 0!==i&&(a[n]=i)}return a}function k(e,t,n,r,i){var o,a,s,l,c;return o=t[e],a=r[e],s=t.ext[i],l=function(){return o.apply(t,arguments)},c=function(e){return o.apply(t,e)},function(){var e=t._local,n=t._super,r=t._superApply;try{return t._local=s,t._super=l,t._superApply=c,a.apply(t,arguments)}finally{t._local=e,t._super=n,t._superApply=r}}}function T(t,n,r,i){for(var o in r)"function"==typeof r[o]?"function"==typeof t[o]?t[o]=k(o,t,0,r,i):"_"===o.charAt(0)?t.ext[i][o]=k(o,t,0,r,i):e.error("Could not override tree."+o+". Use prefix '_' to create tree."+i+"._"+o):"options"!==o&&(t.ext[i][o]=r[o])}function O(t,n){return void 0===t?e.Deferred((function(){this.resolve()})).promise():e.Deferred((function(){this.resolveWith(t,n)})).promise()}function $(t,n){return void 0===t?e.Deferred((function(){this.reject()})).promise():e.Deferred((function(){this.rejectWith(t,n)})).promise()}function P(e,t){return function(){e.resolveWith(t)}}function I(t){var n=e.extend({},t.data()),r=n.json;return delete n.fancytree,delete n.uiFancytree,r&&(delete n.json,n=e.extend(n,r)),n}function L(e){return(""+e).replace(a,(function(e){return s[e]}))}function A(e){return e=e.toLowerCase(),function(t){return t.title.toLowerCase().indexOf(e)>=0}}function M(t,n){var i,o,a,s;for(this.parent=t,this.tree=t.tree,this.ul=null,this.li=null,this.statusNodeType=null,this._isLoading=!1,this._error=null,this.data={},i=0,o=m.length;i<o;i++)this[a=m[i]]=n[a];for(a in null==this.unselectableIgnore&&null==this.unselectableStatus||(this.unselectable=!0),n.hideCheckbox&&e.error("'hideCheckbox' node option was removed in v2.23.0: use 'checkbox: false'"),n.data&&e.extend(this.data,n.data),n)g[a]||!this.tree.options.copyFunctionsToData&&x(n[a])||y[a]||(this.data[a]=n[a]);null==this.key?this.tree.options.defaultKey?(this.key=""+this.tree.options.defaultKey(this),_(this.key,"defaultKey() must return a unique key")):this.key="_"+r._nextNodeKey++:this.key=""+this.key,n.active&&(_(null===this.tree.activeNode,"only one active node allowed"),this.tree.activeNode=this),n.selected&&(this.tree.lastSelectedNode=this),(s=n.children)?s.length?this._setChildren(s):this.children=this.lazy?[]:null:this.children=null,this.tree._callHook("treeRegisterNode",this.tree,!0,this)}function j(t){this.widget=t,this.$div=t.element,this.options=t.options,this.options&&(void 0!==this.options.lazyload&&e.error("The 'lazyload' event is deprecated since 2014-02-25. Use 'lazyLoad' (with uppercase L) instead."),void 0!==this.options.loaderror&&e.error("The 'loaderror' event was renamed since 2014-07-03. Use 'loadError' (with uppercase E) instead."),void 0!==this.options.fx&&e.error("The 'fx' option was replaced by 'toggleEffect' since 2014-11-30."),void 0!==this.options.removeNode&&e.error("The 'removeNode' event was replaced by 'modifyChild' since 2.20 (2016-09-10).")),this.ext={},this.types={},this.columns={},this.data=I(this.$div),this._id=""+(this.options.treeId||e.ui.fancytree._nextId++),this._ns=".fancytree-"+this._id,this.activeNode=null,this.focusNode=null,this._hasFocus=null,this._tempCache={},this._lastMousedownNode=null,this._enableUpdate=!0,this.lastSelectedNode=null,this.systemFocusElement=null,this.lastQuicksearchTerm="",this.lastQuicksearchTime=0,this.viewport=null,this.statusClassPropName="span",this.ariaPropName="li",this.nodeContainerAttrName="li",this.$div.find(">ul.fancytree-container").remove();var n,i={tree:this};this.rootNode=new M(i,{title:"root",key:"root_"+this._id,children:null,expanded:!0}),this.rootNode.parent=null,n=e("<ul>",{id:"ft-id-"+this._id,class:"ui-fancytree fancytree-container fancytree-plain"}).appendTo(this.$div),this.$container=n,this.rootNode.ul=n[0],null==this.options.debugLevel&&(this.options.debugLevel=r.debugLevel)}e.ui.fancytree.warn("Fancytree: ignored duplicate include")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r=n(159),i=n.n(r),o=n(0),a=n(4),s=n(5),l=function(){function e(e){this.rbush_=new i.a(e),this.items_={}}return e.prototype.insert=function(e,t){var n={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(n),this.items_[Object(a.c)(t)]=n},e.prototype.load=function(e,t){for(var n=new Array(t.length),r=0,i=t.length;r<i;r++){var o=e[r],s=t[r],l={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:s};n[r]=l,this.items_[Object(a.c)(s)]=l}this.rbush_.load(n)},e.prototype.remove=function(e){var t=Object(a.c)(e),n=this.items_[t];return delete this.items_[t],null!==this.rbush_.remove(n)},e.prototype.update=function(e,t){var n=this.items_[Object(a.c)(t)],r=[n.minX,n.minY,n.maxX,n.maxY];Object(o.equals)(r,e)||(this.remove(t),this.insert(e,t))},e.prototype.getAll=function(){return this.rbush_.all().map((function(e){return e.value}))},e.prototype.getInExtent=function(e){var t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this.rbush_.search(t).map((function(e){return e.value}))},e.prototype.forEach=function(e){return this.forEach_(this.getAll(),e)},e.prototype.forEachInExtent=function(e,t){return this.forEach_(this.getInExtent(e),t)},e.prototype.forEach_=function(e,t){for(var n,r=0,i=e.length;r<i;r++)if(n=t(e[r]))return n;return n},e.prototype.isEmpty=function(){return Object(s.d)(this.items_)},e.prototype.clear=function(){this.rbush_.clear(),this.items_={}},e.prototype.getExtent=function(e){var t=this.rbush_.toJSON();return Object(o.createOrUpdate)(t.minX,t.minY,t.maxX,t.maxY,e)},e.prototype.concat=function(e){for(var t in this.rbush_.load(e.rbush_.all()),e.items_)this.items_[t]=e.items_[t]},e}();t.a=l},function(e,t,n){n.d(t,"a",(function(){return o}
799)),n.d(t,"b",(function(){return a}));var r=n(109),i=n(9);function o(e,t,n,o,a,s,l){for(var c,d,u,h,p,f,m,g=a[s+1],v=[],y=0,b=n.length;y<b;++y){var _=n[y];for(h=e[_-o],f=e[_-o+1],c=t;c<_;c+=o)p=e[c],m=e[c+1],(g<=f&&m<=g||f<=g&&g<=m)&&(u=(g-f)/(m-f)*(p-h)+h,v.push(u)),h=p,f=m}var w=NaN,x=-1/0;for(v.sort(i.i),h=v[0],c=1,d=v.length;c<d;++c){p=v[c];var C=Math.abs(p-h);C>x&&(u=(h+p)/2,Object(r.c)(e,t,n,o,u,g)&&(w=u,x=C)),h=p}return isNaN(w)&&(w=a[s]),l?(l.push(w,g,x),l):[w,g,x]}function a(e,t,n,r,i){for(var a=[],s=0,l=n.length;s<l;++s){var c=n[s];a=o(e,t,c,r,i,2*s,a),t=c[c.length-1]}return a}},function(e,t,n){(function(e){n.d(t,"a",(function(){return a}));var r,i=n(4),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function a(e,t,n,r){var o=document.createElement("script"),a="olc_"+Object(i.c)(t);function s(){delete window[a],o.parentNode.removeChild(o)}o.async=!0,o.src=e+(-1==e.indexOf("?")?"?":"&")+(r||"callback")+"="+a;var l=setTimeout((function(){s(),n&&n()}),1e4);window[a]=function(e){clearTimeout(l),s(),t(e)},document.head.appendChild(o)}(function(e){o((function(t){var n=this,r="Unexpected response status: "+t.status;return(n=e.call(this,r)||this).name="ResponseError",n.response=t,n}),e)})(Error),function(e){o((function(t){var n=e.call(this,"Failed to issue request")||this;return n.name="ClientError",n.client=t,n}),e)}(Error)}).call(this,n(223))},function(e,t,n){t.a={ACTIVE:"active"}},function(e,t,n){var r=n(214),i=n.n(r),o=n(36),a=n(49);t.a=function(e,t){var n=Object(a.c)(e),r=Object(a.c)(t),s=e.properties||{},l=i.a.difference(n.coordinates,r.coordinates);return 0===l.length?null:1===l.length?Object(o.polygon)(l[0],s):Object(o.multiPolygon)(l,s)}},function(e,t,n){n.d(t,"a",(function(){return K}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(34),l=n.n(s),c=n(88),d=n.n(c),u=n(53),h=n.n(u),p=n(57),f=n.n(p),m=n(255),g=n.n(m),v=n(31),y=n.n(v),b=n(50),_=n(98),w=n(211),x=n(0),C=n(71),S=n(115),E=n(72),k=n(24),T=n(37),O=n(22),$=n(44),P=n(67),I=n(65),L=n(156),A=n(170),M=n(148),j=n(36),R=n(49);function D(e){var t=Object(R.b)(e);if(2===t.length&&!F(t[0],t[1]))return t;var n=[],r=t.length-1,i=n.length;n.push(t[0]);for(var o=1;o<r;o++){var a=n[n.length-1];t[o][0]===a[0]&&t[o][1]===a[1]||(n.push(t[o]),(i=n.length)>2&&N(n[i-3],n[i-1],n[i-2])&&n.splice(n.length-2,1))}if(n.push(t[t.length-1]),i=n.length,F(t[0],t[t.length-1])&&i<4)throw new Error("invalid polygon");return N(n[i-3],n[i-1],n[i-2])&&n.splice(n.length-2,1),n}function F(e,t){return e[0]===t[0]&&e[1]===t[1]}function N(e,t,n){var r=n[0],i=n[1],o=e[0],a=e[1],s=t[0],l=t[1],c=s-o,d=l-a;return 0==(r-o)*d-(i-a)*c&&(Math.abs(c)>=Math.abs(d)?c>0?o<=r&&r<=s:s<=r&&r<=o:d>0?a<=i&&i<=l:l<=i&&i<=a)}function B(e){var t={type:"Feature"};return Object.keys(e).forEach((function(n){switch(n){case"type":case"properties":case"geometry":return;default:t[n]=e[n]}})),t.properties=function e(t){var n={};return t?(Object.keys(t).forEach((function(r){var i=t[r];"object"==qe(i)?null===i?n[r]=null:Array.isArray(i)?n[r]=i.map((function(e){return e})):n[r]=e(i):n[r]=i})),n):n}(e.properties),t.geometry=U(e.geometry),t}function U(e){var t={type:e.type};return e.bbox&&(t.bbox=e.bbox),"GeometryCollection"===e.type?(t.geometries=e.geometries.map((function(e){return U(e)})),t):(t.coordinates=function e(t){var n=t;return"object"!=qe(n[0])?n.slice():n.map((function(t){return e(t)}))}(e.coordinates),t)}var z=n(87);function G(e,t,n){var r=t.x,i=t.y,o=n.x-r,a=n.y-i;if(0!==o||0!==a){var s=((e.x-r)*o+(e.y-i)*a)/(o*o+a*a);s>1?(r=n.x,i=n.y):s>0&&(r+=o*s,i+=a*s)}return(o=e.x-r)*o+(a=e.y-i)*a}function V(e,t,n){if(e.length<=2)return e;var r=void 0!==t?t*t:1;return function(e,t){var n=e.length-1,r=[e[0]];return function e(t,n,r,i,o){for(var a,s=i,l=n+1;l<r;l++){var c=G(t[l],t[n],t[r]);c>s&&(a=l,s=c)}s>i&&(a-n>1&&e(t,n,a,i,o),o.push(t[a]),r-a>1&&e(t,a,r,i,o))}(e,0,n,t,r),r.push(e[n]),r}(e=n?e:function(e,t){for(var n,r,i,o,a,s=e[0],l=[s],c=1,d=e.length;c<d;c++)i=s,void 0,void 0,(o=(r=n=e[c]).x-i.x)*o+(a=r.y-i.y)*a>t&&(l.push(n),s=n);return s!==n&&l.push(n),l}(e,r),r)}function q(e,t,n){return V(e.map((function(e){return{x:e[0],y:e[1],z:e[2]}})),t,n).map((function(e){return e.z?[e.x,e.y,e.z]:[e.x,e.y]}))}function H(e,t,n){return e.map((function(e){var r=e.map((function(e){return{x:e[0],y:e[1]}}));if(r.length<4)throw new Error("invalid polygon");for(var i=V(r,t,n).map((function(e){return[e.x,e.y]}));!W(i);)i=V(r,t-=.01*t,n).map((function(e){return[e.x,e.y]}));return i[i.length-1][0]===i[0][0]&&i[i.length-1][1]===i[0][1]||i.push(i[0]),i}))}function W(e){return!(e.length<3||3===e.length&&e[2][0]===e[0][0]&&e[2][1]===e[0][1])}var Y=function(e,t){if(t=t||{}
799,!Object(j.isObject)(t))throw new Error("options is invalid");var n=void 0!==t.tolerance?t.tolerance:1,r=t.highQuality||!1,i=t.mutate||!1;if(!e)throw new Error("geojson is required");if(n&&n<0)throw new Error("invalid tolerance");return!0!==i&&(e=function(e){if(!e)throw new Error("geojson is required");switch(e.type){case"Feature":return B(e);case"FeatureCollection":return function(e){var t={type:"FeatureCollection"};return Object.keys(e).forEach((function(n){switch(n){case"type":case"features":return;default:t[n]=e[n]}})),t.features=e.features.map((function(e){return B(e)})),t}(e);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return U(e);default:throw new Error("unknown GeoJSON type")}}(e)),Object(z.geomEach)(e,(function(e){!function(e,t,n){var r=e.type;if("Point"===r||"MultiPoint"===r)return e;!function(e,t){void 0===t&&(t={});var n="object"==qe(t)?t.mutate:t;if(!e)throw new Error("geojson is required");var r=Object(R.d)(e),i=[];switch(r){case"LineString":i=D(e);break;case"MultiLineString":case"Polygon":Object(R.b)(e).forEach((function(e){i.push(D(e))}));break;case"MultiPolygon":Object(R.b)(e).forEach((function(e){var t=[];e.forEach((function(e){t.push(D(e))})),i.push(t)}));break;case"Point":return e;case"MultiPoint":var o={};Object(R.b)(e).forEach((function(e){var t=e.join("-");Object.prototype.hasOwnProperty.call(o,t)||(i.push(e),o[t]=!0)}));break;default:throw new Error(r+" geometry not supported")}e.coordinates?!0===n&&(e.coordinates=i):!0===n?e.geometry.coordinates=i:Object(j.feature)({type:r,coordinates:i},e.properties,{bbox:e.bbox,id:e.id})}(e,!0);var i=e.coordinates;switch(r){case"LineString":e.coordinates=q(i,t,n);break;case"MultiLineString":e.coordinates=i.map((function(e){return q(e,t,n)}));break;case"Polygon":e.coordinates=H(i,t,n);break;case"MultiPolygon":e.coordinates=i.map((function(e){return H(e,t,n)}))}}(e,n,r)})),e},X=n(55);var K=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(e){var r,o;i()(this,n);var a=e||{},s=document.createElement("div");o=t.call(this,{element:s,target:a.target}),g()((r=l()(o),y()(n.prototype)),"render",o.updateBox.bind(l()(o)),r,!0),o.trackingFlag=!0===a.tracking,o.stateManager=a.stateManager?a.stateManager:null,o.pmaViewport=a.pmaViewport,o.stateManager?(o.stateManager.overview||(o.stateManager.overview={},o.stateManager.overview.collapsed=!!a.collapsed&&a.collapsed),o.collapsed_=!0===o.stateManager.overview.collapsed):o.collapsed_=!!a.collapsed&&a.collapsed,o.collapsible_=!a.collapsible||a.collapsible,o.collapsible_||(o.collapsed_=!1);var c=a.className?a.className:"ol-overview",d=a.tipLabel?a.tipLabel:"Overview map",u=a.collapseLabel?a.collapseLabel:"»";o.collapseLabel_=document.createElement("span"),o.collapseLabel_.innerHTML=u;var h=a.label?a.label:"«";o.label_=document.createElement("span"),o.label_.innerHTML=h;var p=o.collapsible_&&!o.collapsed_?o.collapseLabel_:o.label_,f=document.createElement("button");f.type="button",f.title=d,f.appendChild(p),"ontouchstart"in document.documentElement?f.addEventListener("touchstart",o.buttonClk.bind(l()(o)),!1):f.addEventListener("click",o.buttonClk.bind(l()(o)),!1),o.ovmapDiv=document.createElement("div"),o.ovmapDiv.className="ol-overview-map",o.pmaViewport&&o.pmaViewport.imageInfo&&o.pmaViewport.imageInfo.BackgroundColor&&o.ovmapDiv.style.setProperty("background-color","#"+o.pmaViewport.imageInfo.BackgroundColor),o.ovmapDiv.style.setProperty("margin-bottom","4px");var m=c+" ol-unselectable ol-control"+(o.collapsed_&&o.collapsible_?" ol-collapsed":"")+(o.collapsible_?"":" ol-uncollapsible");s.className=m,s.appendChild(o.ovmapDiv),s.appendChild(f);var v=document.createElement("button");v.type="button",v.title="Enlarge",v.className="size",v.innerHTML="<span style='font-size: 10px'><i class='fa fa-plus' aria-hidden='true'></i></span>","ontouchstart"in document.documentElement?v.addEventListener("touchstart",o.enlargeButtonClick.bind(l()(o)),!1):v.addEventListener("click",o.enlargeButtonClick.bind(l()(o)),!1),s.appendChild(v);var b=document.createElement("button");b.type="button",b.title="Shrink",b.className="size",b.innerHTML="<span style='font-size: 10px'><i class='fa fa-minus' aria-hidden='true'></i></span>","ontouchstart"in document.documentElement?b.addEventListener("touchstart",o.shrinkButtonClick.bind(l()(o)),!1):b.addEventListener("click",o.shrinkButtonClick.bind(l()(o)),!1),s.appendChild(b);var _=document.createElement("button");return _.type="button",_.title="Enable tracking",_.className="size",_.innerHTML="<span style='font-size: 14px'><i class='fa fa-map-marker'></i></span>","ontouchstart"in document.documentElement?_.addEventListener("touchstart",o.trackingButtonClick.bind(l()(o)),!1):_.addEventListener("click",o.trackingButtonClick.bind(l()(o)),!1),s.appendChild(_),o.trackingButton=_,o.featureSelect=null,o.eventKeys=[],o}return a()(n,[{key:"getBoxSize",value:function(){if(this.masterMap){var e=x.getBottomLeft(this.masterMap.getView().getProjection().getExtent()),t=x.getTopRight(this.masterMap.getView().getProjection().getExtent());return[Math.abs((e[0]-t[0])/this.masterMap.getView().getMaxResolution()),Math.abs((t[1]-e[1])/this.masterMap.getView().getMaxResolution())]}return[0,0]}},{key:"createOverviewView",value:function(){var e=this.masterMap.getView().getProjection(),t=e.getExtent();
799return new _.a({projection:e,center:x.getCenter(t),showFullExtent:!0,maxResolution:5e3,minResolution:1})}},{key:"setMap",value:function(e){if(e){var t=this.getMap();if(e!==t){t&&this.overviewMap.setTarget(null),d()(y()(n.prototype),"setMap",this).call(this,e),this.masterMap=e;var r=this.getBoxSize(),i=1,o=e.getSize();if(o){(r[0]>o[0]/5||r[1]>o[1]/5)&&(i=2),r[0]/=i,r[1]/=i;var a=this.createOverviewView(),s=new C.a({source:new E.a({features:[new k.a({geometry:Object(O.c)(e.getView().calculateExtent(e.getSize()))})]}),style:new $.c({stroke:new P.a({width:2,color:"rgba(0, 60, 136, 1.0)"}),fill:new I.a({color:"rgba(0, 0, 0, 0.0)"})})}),l=new k.a({geometry:Object(O.c)(e.getView().calculateExtent(e.getSize()))});l.setStyle(new $.c({fill:new I.a({color:"rgba(0, 0, 0, 0.4)"})}));var c=new C.a({source:new E.a({features:[l]}),visible:!1}),u=e.getLayers().item(0),h=e.getLayers().getArray().filter((function(e){return!0===e.get("active")}));h.length>0&&(u=h[0]);var p=[new S.a({source:u.getSource()})];p.push(c),p.push(s),this.currentOverlayFeature=l,this.viewboxFeatures=[null,null,null,null];var f=Math.round(Math.sqrt(r[0]*r[0]+r[1]*r[1]));this.ovmapDiv.style.width=f+"px",this.ovmapDiv.style.height=f+"px",this.overviewMap=new w.a({controls:new T.a,interactions:new T.a,target:this.ovmapDiv,view:a,layers:p});var m=new L.a;this.format=m,this.simplifyOptions={tolerance:.01,highQuality:!1};var g={featureProjection:this.overviewMap.getView().getProjection()};this.formatOptions=g;var v=m.writeFeatureObject(this.currentOverlayFeature,g);this.currentOverlayFeatureJson=v;var b=[];b.push(new $.c({stroke:new P.a({width:1,color:"rgba(255, 0, 0, 1.0)"}),fill:new I.a({color:"rgba(0, 0, 0, 0.3)"})})),b.push(new $.c({stroke:new P.a({width:1,color:"rgba(0, 255, 255, 1.0)"}),fill:new I.a({color:"rgba(0, 0, 0, 0.2)"})})),b.push(new $.c({stroke:new P.a({width:1,color:"rgba(255, 215, 0, 1.0)"}),fill:new I.a({color:"rgba(0, 0, 0, 0.1)"})}
799)),b.push(new $.c({stroke:new P.a({width:1,color:"rgba(0, 255, 0, 1.0)"}),fill:new I.a({color:"rgba(0, 0, 0, 0.0)"})})),this.featureStyle=b,this.vectorLayer=s,this.fogLayer=c,this.polling=0,this.pollingRate=10;var _=e.getView().getZoom();this.lastZoomValue=_;var A=this,M=this.overviewMap.on("singleclick",(function(t){t.preventDefault(),e.getView().setCenter(t.coordinate)}),this);this.eventKeys.push(M),M=this.overviewMap.on("pointermove",(function(t){t.preventDefault();var n=!1;t.dragging?(A.featureSelect||(A.featureSelect=A.overviewMap.forEachFeatureAtPixel(t.pixel,(function(e,t){return n=!0,e}))),A.featureSelect&&e.getView().setCenter(t.coordinate)):A.featureSelect&&(A.featureSelect=null),n||(n=A.overviewMap.forEachFeatureAtPixel(t.pixel,(function(e,t){return!0}))),t.map.getTargetElement().style.cursor=n?"move":""}),this),this.eventKeys.push(M),M=e.getView().on("change:center",this.updateBox.bind(this),this),this.eventKeys.push(M),M=e.getView().on("change:resolution",this.updateBox.bind(this),this),this.eventKeys.push(M),M=e.getView().on("change:rotation",this.updateBox.bind(this),this),this.eventKeys.push(M),this.overviewMap.updateSize();var j=e.getView().getProjection().getExtent();this.overviewMap.getView().fit(j,this.overviewMap.getSize()),this.overviewMap.getView().setCenter(x.getCenter(j)),this.updateBox(),this.setTrackingEnabled(this.trackingFlag),this.masterView=this.masterMap.getView()}}}else Object(X.b)(this.eventKeys)}},{key:"updateBox",value:function(){if(this.masterMap&&this.masterMap.isRendered()&&this.overviewMap.isRendered()){var e=this.masterMap.getView(),t=this.overviewMap.getView(),n=e.getRotation();t.setRotation(n);var r=this.masterMap.getSize(),i=e.getResolution(),o=r[0]*i*.5,a=r[1]*i*.5,s=e.getCenter(),l=s[0]-o,c=s[0]+o,d=[l,s[1]-a,c,s[1]+a],u=e.getProjection().getExtent(),h=x.getBottomLeft(u),p=x.getTopRight(u),f=x.getCenter(u),m=Math.abs(h[0]-p[0]),g=Math.abs(p[1]-h[1]),v=.5*Math.sqrt(m*m+g*g),y=[f[0]-v,f[1]-v,f[0]+v,f[1]+v],b=x.getIntersection(d,y),_=new O.a([[[b[0],b[1]],[b[2],b[1]],[b[2],b[3]],[b[0],b[3]],[b[0],b[1]]]]);if(_.rotate(n,_.getInteriorPoint().getFirstCoordinate()),this.vectorLayer.getSource().getFeatures()[0].setGeometry(_),this.trackingFlag){var w;switch(!0){case Math.floor(e.getZoom())<3:return;case Math.floor(e.getZoom())<4:w=1;break;case Math.floor(e.getZoom())<6:w=2;break;case Math.floor(e.getZoom())<7:w=3;break;default:w=4}var C=new k.a({geometry:_}),S=this.format.writeFeatureObject(C,this.formatOptions);if(0!==this.polling&&this.polling<this.pollingRate&&this.lastZoomValue===e.getZoom())return void this.polling++;this.polling=1,this.lastZoomValue=e.getZoom();for(var E=0;E<w;E++){var T=this.viewboxFeatures[E];if(null!==T){var P=Object(A.a)(T,S);this.viewboxFeatures[E]=P}else this.viewboxFeatures[E]=S}for(var L=Array.from(this.viewboxFeatures),j=0;j<L.length-1;j++){var R=L[j+1];if(null!==R){var D=Y(R,this.simplifyOptions),F=L[j];if(null!==F){var N=Y(F,this.simplifyOptions);if(null!==N&&null!==D){var B=Object(M.a)(N,D);L[j]=B}}}}var U=null,z=null,G=this.viewboxFeatures[0];null!==G&&(z=Y(G,this.simplifyOptions)),null!==z&&(U=Object(M.a)(this.currentOverlayFeatureJson,z));var V=null;null!==U&&(V=this.format.readFeature(U,this.formatOptions)).setStyle(new $.c({fill:new I.a({color:"rgba(0, 0, 0, 0.4)"})}));var q=Array.from(this.fogLayer.getSource().getFeatures());this.fogLayer.getSource().clear(),null!==V&&this.fogLayer.getSource().addFeature(V);for(var H=0;H<L.length;H++){var W=L[H];if(null!==W){var X=this.format.readFeature(W,this.formatOptions);X.setStyle(this.featureStyle[H]),this.fogLayer.getSource().addFeature(X)}else q[H+1]&&this.fogLayer.getSource().addFeature(q[H+1])}}}}},{key:"buttonClk",value:function(e){e&&(e.preventDefault(),e.stopPropagation()),(" "+this.element.className+" ").indexOf(" ol-collapsed ")>-1?this.element.className=this.element.className.replace(/ol-collapsed/g,""):this.element.className+=" ol-collapsed",this.collapsed_?this.label_.parentNode.replaceChild(this.collapseLabel_,this.label_):this.collapseLabel_.parentNode.replaceChild(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.stateManager&&(this.stateManager.overview.collapsed=this.collapsed_),this.overviewMap.updateSize()}},{key:"changeOverviewSize",value:function(e){var t=[this.ovmapDiv.clientWidth,this.ovmapDiv.clientHeight];t[0]/=e,t[1]/=e;var n=Math.round(Math.sqrt(t[0]*t[0]+t[1]*t[1]));n<60||n>600||(this.ovmapDiv.style.width=t[0]+"px",this.ovmapDiv.style.height=t[1]+"px",this.overviewMap.updateSize(),this.overviewMap.getView().fit(this.overviewMap.getView().getProjection().getExtent(),this.overviewMap.getSize()))}},{key:"changeOverviewSizePx",value:function(e){if(!(e<60||e>600)){var t=this.getBoxSize();Math.round(Math.sqrt(t[0]*t[0]+t[1]*t[1])),this.ovmapDiv.style.width=e+"px",this.ovmapDiv.style.height=e+"px",this.overviewMap&&(this.overviewMap.updateSize(),this.overviewMap.getView().fit(this.masterMap.getView().getProjection().getExtent()))}}},{key:"enlargeButtonClick",value:function(e){e&&(e.preventDefault(),e.stopPropagation()),this.changeOverviewSize(.75)}},{key:"shrinkButtonClick",value:function(e){e&&(e.preventDefault(),e.stopPropagation()),this.changeOverviewSize(1.25)}},{key:"trackingButtonClick",value:function(e){e&&(e.preventDefault(),e.stopPropagation()),this.setTrackingEnabled(!this.trackingFlag)}},{key:"setTrackingEnabled",value:function(e){this.trackingFlag=e,this.trackingFlag?(this.trackingButton.classList.add("selected"),this.polling=0,this.fogLayer.setVisible(!0),this.updateBox()):(this.trackingButton.classList.remove("selected"),this.fogLayer.setVisible(!1)),this.trackingButton.blur(),this.trackingButton.hideFocus=!0,this.trackingButton.style.outline="none"}},{key:"getTrackingEnabled",value:function(){return this.trackingFlag}},{key:"getCollapsed",value:function(){return(" "+this.element.className+" ").indexOf(" ol-collapsed ")>-1}},{key:"setCollapsed",value:function(e){this.getCollapsed()!=e&&this.buttonClk()}}]),n}(b.a)},function(e,t,n){n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return x}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(34),l=n.n(s),c=n(53),d=n.n(c),u=n(57),h=n.n(u),p=n(31),f=n.n(p),m=n(50),g=n(256),v=n.n(g),y=(n(276),n(41)),b=n(7);var _=[{step:1,class:"x1"},{step:.5,class:"x2"},{step:.2,class:"x3"},{step:.1,class:"x4"}
799,{step:.05,class:"x5"}],w=function(e){d()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}(n);function n(e){var r;i()(this,n);var o=e||{},a=document.createElement("div");(r=t.call(this,{element:a,target:o.target})).options=o,r.pmaViewport=o.pmaViewport,r.stateManager=o.stateManager?o.stateManager:null,r.stateManager?(r.stateManager.dimensionSelector||(r.stateManager.dimensionSelector={},r.stateManager.dimensionSelector.collapsed=!!o.collapsed&&o.collapsed),r.collapsed_=!0===r.stateManager.dimensionSelector.collapsed):r.collapsed_=!!o.collapsed&&o.collapsed,r.sliders=[],r.slidersValues=[],r.currentStep=0;var s=o.className?o.className:"ol-dimension-selector";r.tipLabel=o.tipLabel?o.tipLabel:"Channels";var c=o.collapseLabel?o.collapseLabel:"»";r.collapseLabel_=document.createElement("span"),r.collapseLabel_.innerHTML=c;var d=o.label?o.label:"«";r.label_=document.createElement("span"),r.label_.innerHTML=d;var u=r.collapsed_?r.collapseLabel_:r.label_,h=document.createElement("button");h.type="button",h.title=r.tipLabel,h.appendChild(u),h.className="collapse-button",h.style="float: left",r.btnEventUsed="click","ontouchstart"in document.documentElement&&(r.btnEventUsed="touchstart"),h.addEventListener(r.btnEventUsed,r.buttonClk.bind(l()(r)),!1);var p=s+" ol-unselectable ol-control "+(r.collapsed_?" ol-collapsed":"");return r.dimensionsDiv=document.createElement("div"),r.dimensionsDiv.className="ol-dimensions-container",r.renderDimensionsControl(),r.dimensionControlsDiv=document.createElement("div"),r.dimensionControlsDiv.className="ol-dimensions-container",r.renderSelectors(!0),a.className=p,r.dimensionsDiv&&""!==r.dimensionsDiv&&a.appendChild(r.dimensionsDiv),r.dimensionControlsDiv&&""!==r.dimensionControlsDiv&&a.appendChild(r.dimensionControlsDiv),a.appendChild(h),d='<i class="fa fa-minus" aria-hidden="true"></i>',document.createElement("span").innerHTML=d,r.lastSelection=-1,r.pmaViewport.element.addEventListener("wheel",(function(e){e.ctrlKey&&r.wheelEvent(e,!0),e.shiftKey&&r.wheelEvent(e,!1)}),!1),r}return a()(n,[{key:"buttonClk",value:function(e){e&&(e.preventDefault(),e.stopPropagation()),(" "+this.element.className+" ").indexOf(" ol-collapsed ")>-1?this.element.className=this.element.className.replace(/ol-collapsed/g,""):this.element.className+=" ol-collapsed",x(this.pmaViewport.imageInfo.TimeFrames[0].Layers[0])||(this.collapsed_?this.collapseLabel_.parentNode.replaceChild(this.label_,this.collapseLabel_):this.label_.parentNode.replaceChild(this.collapseLabel_,this.label_)),this.collapsed_=!this.collapsed_,this.stateManager&&(this.stateManager.dimensionSelector.collapsed=this.collapsed_)}},{key:"getCollapsed",value:function(){return(" "+this.element.className+" ").indexOf(" ol-collapsed ")>-1}},{key:"setCollapsed",value:function(e){this.getCollapsed()!=e&&this.buttonClk()}},{key:"renderDimensionsControl",value:function(){function e(){for(var e=[],t=this.dimensionsDiv.querySelectorAll(".ol-dimensions-container ul input[type='checkbox']"),n=0;n<t.length;n++)t[n].checked&&(e.push(n),this.lastSelection=n);0===e.length&&this.lastSelection>=0&&this.lastSelection<t.length&&(t[this.lastSelection].checked=!0,e.push(this.lastSelection)),this.pmaViewport.setActiveChannels(e)}if(this.sliders=[],!x(this.pmaViewport.imageInfo.TimeFrames[0].Layers[0])){for(var t="<div id='channels'>"+this.tipLabel+"</div><div id='step'></div><ul>",n=this.pmaViewport.getChannelRenderingOptions(),r=0;r<this.pmaViewport.imageInfo.TimeFrames[0].Layers[0].Channels.length;r++){var i=Object(y.c)();this.sliders.push(i);var o=this.pmaViewport.imageInfo.TimeFrames[0].Layers[0].Channels[r];this.slidersValues.push(n[r].clipping),t+="<li style='background-color: #"+n[r].color.substr(2,6)+"'>",t+="<span class='channel-span'><label title='"+n[r].name+"' for='"+"".concat(i,"_channel_checkbox")+"'>"+n[r].name+"</label><input id='"+"".concat(i,"_channel_checkbox")+"' type='checkbox' "+(o.Active?"checked='checked'":"")+" />",t+="<button id='"+"".concat(i,"_color_reset")+"' title=\"Click to reset channel's color to initial value\" class='color-reset' style='"+(this.options.supportsRenderingOptions?""
799:"display: none")+"'><i class='fa fa-undo' aria-hidden='true'></i></button>",t+="<input id='"+"".concat(i,"_color_selector")+"' title=\"Click to select channel's color\" type='color' class='color-selector' style='"+(this.options.supportsRenderingOptions?"":"display: none")+"' data-default-color='#"+n[r].defaultColor.substr(2,6)+"' value='#"+n[r].color.substr(2,6)+"' />",t+="</span>","Default"!==o.Name&&(t+="<span class='slider-span' id='"+"".concat(i,"_slider")+"'></span>"),t+="</li>"}t+="</ul>",this.sliders.length>0&&(t+="<div style='display: block; height: 25px;'>",t+="<button id='increaseButton' type='button' title='Increase resolution' style='float: right;'>",t+="<span style='font-size: 10px'><i class='fa fa-plus' aria-hidden='true'></i></span>",t+="</button>",t+="<button id='decreaseButton' type='button' title='Decrease resolution' style='float: right;'>",t+="<span style='font-size: 10px'><i class='fa fa-minus' aria-hidden='true'></i></span>",t+="</button>",t+="</div>"),this.dimensionsDiv.innerHTML=t;var a=this.dimensionsDiv.querySelectorAll(".ol-dimensions-container ul input[type='checkbox']");for(r=0;r<a.length;r++)a[r].addEventListener("change",e.bind(this),!1);if(this.sliders.length>0){var s=this;this.dimensionsDiv.querySelector("#increaseButton").addEventListener("click",(function(){s.destroySliders(),s.renderDimensionsControl(),s.renderSelectors(!1),s.currentStep=s.currentStep<4?s.currentStep+1:s.currentStep,s.renderSliders(s.currentStep)}),!1),this.dimensionsDiv.querySelector("#decreaseButton").addEventListener("click",(function(){s.destroySliders(),s.renderDimensionsControl(),s.renderSelectors(!1),s.currentStep=s.currentStep>0?s.currentStep-1:s.currentStep,s.renderSliders(s.currentStep)}),!1)}}}},{key:"renderSelectors",value:function(e){var t=this;function n(e){"timeframe"==e.target.name?this.pmaViewport.setActiveTimeFrame(e.target.value):"zstack"==e.target.name&&this.pmaViewport.setActiveLayer(e.target.value),document.getElementById("zstackSlider")&&(document.getElementById("zstackLabel").innerHTML=b.a.translate("Z-stack: <br /> {stack} / {total}",{stack:this.pmaViewport.getActiveLayer()+1,total:this.pmaViewport.imageInfo.TimeFrames[this.pmaViewport.getActiveTimeFrame()].Layers.length})),document.getElementById("timeframeSlider")&&(document.getElementById("timeframeLabel").innerHTML=b.a.translate("Time frame: <br /> {frame} / {total}",{frame:this.pmaViewport.getActiveTimeFrame()+1,total:this.pmaViewport.imageInfo.TimeFrames.length}))}function r(e){var t=this.pmaViewport.getActiveTimeFrame(),n=this.pmaViewport.getActiveLayer();"prev-timeframe"==e.target.name?(--t<0&&(t=this.pmaViewport.imageInfo.TimeFrames.length-1),this.pmaViewport.setActiveTimeFrame(t)):"next-timeframe"==e.target.name?(++t>=this.pmaViewport.imageInfo.TimeFrames.length&&(t=0),this.pmaViewport.setActiveTimeFrame(t)):"prev-zstack"==e.target.name?(--n<0&&(n=this.pmaViewport.imageInfo.TimeFrames[t].Layers.length-1),this.pmaViewport.setActiveLayer(n)):"next-zstack"==e.target.name&&(++n>=this.pmaViewport.imageInfo.TimeFrames[t].Layers.length&&(n=0),this.pmaViewport.setActiveLayer(n)),document.getElementById("zstackSlider")&&(document.getElementById("zstackSlider").value=n,document.getElementById("zstackLabel").innerHTML=b.a.translate("Z-stack: <br /> {stack} / {total}",{stack:this.pmaViewport.getActiveLayer()+1,total:this.pmaViewport.imageInfo.TimeFrames[this.pmaViewport.getActiveTimeFrame()].Layers.length})),document.getElementById("timeframeSlider")&&(document.getElementById("timeframeSlider").value=t,document.getElementById("timeframeLabel").innerHTML=b.a.translate("Time frame: <br /> {frame} / {total}",{frame:this.pmaViewport.getActiveTimeFrame()+1,total:this.pmaViewport.imageInfo.TimeFrames.length}))}var i="";this.pmaViewport.imageInfo.TimeFrames.length>1&&(i+='<div id="timeframeLabel">'+b.a.translate("Time frame: <br /> {frame} / {total}",{frame:this.pmaViewport.getActiveTimeFrame()+1,total:this.pmaViewport.imageInfo.TimeFrames.length})+"</div>",i+="<button name='prev-timeframe' class='prev-next-button' title=\"Click to switch to previous time frame\"><</button>",i+='<input type="range" min="0" max="'+(this.pmaViewport.imageInfo.TimeFrames.length-1)+'" value="'+this.pmaViewport.getActiveTimeFrame()+'" name="timeframe" id="timeframeSlider" title="Drag to switch between time frames (Shift + MouseWheel)">',i+="<button name='next-timeframe' class='prev-next-button' title=\"Click to switch to next time frame\">></button>");var o=this.pmaViewport.imageInfo.TimeFrames[this.pmaViewport.getActiveTimeFrame()];if(o.Layers.length>1){e&&this.pmaViewport.setActiveLayer(0|Math.round((o.Layers.length-1)/2));var a=this.pmaViewport.getActiveLayer();i+='<div id="zstackLabel">'+b.a.translate("Z-stack: <br /> {stack} / {total}",{stack:a+1,total:o.Layers.length})+"</div>",i+="<button name='prev-zstack' class='prev-next-button' title=\"Click to switch to previous z-stack\"><</button>",i+='<input type="range" min="0" max="'+(o.Layers.length-1)+'" value="'+a+'" name="zstack" id="zstackSlider" title="Drag to switch between z-stacks (Ctrl + MouseWheel)">',i+="<button name='next-zstack' class='prev-next-button' title=\"Click to switch to next z-stack\">></button>"}if(""!==i){this.dimensionControlsDiv.innerHTML="<div>"+i+"</div>";for(var s=this.dimensionControlsDiv.querySelectorAll(".ol-dimensions-container input[type=range]"),l=0;l<s.length;l++)s[l].addEventListener("input",n.bind(this),!1);var c=this.dimensionControlsDiv.querySelectorAll(".ol-dimensions-container .prev-next-button");for(l=0;l<c.length;l++)c[l].addEventListener(this.btnEventUsed,r.bind(this),!1);this.dimensionControlsDiv.querySelector("#zstackSlider")&&this.dimensionControlsDiv.querySelector("#zstackSlider").addEventListener("wheel",(function(e){return t.wheelEvent(e,!0)}
799),!1),this.dimensionControlsDiv.querySelector("#timeframeSlider")&&this.dimensionControlsDiv.querySelector("#timeframeSlider").addEventListener("wheel",(function(e){return t.wheelEvent(e,!1)}),!1)}}},{key:"wheelEvent",value:function(e,t){if(e.preventDefault(),!((" "+this.element.className+" ").indexOf(" ol-collapsed ")>-1)&&this.pmaViewport.imageInfo.TimeFrames&&(1!==this.pmaViewport.imageInfo.TimeFrames.length||!this.pmaViewport.imageInfo.TimeFrames[0].Layers||1!==this.pmaViewport.imageInfo.TimeFrames[0].Layers.length)){var n=this.pmaViewport.getActiveTimeFrame(),r=this.pmaViewport.getActiveLayer();e.deltaY&&e.deltaY<0?t?(--r<0&&(r=0),this.pmaViewport.setActiveLayer(r)):(--n<0&&(n=0),this.pmaViewport.setActiveLayer(r),this.pmaViewport.setActiveTimeFrame(n)):e.deltaY&&e.deltaY>0&&(t?(++r>=this.pmaViewport.imageInfo.TimeFrames[n].Layers.length&&(r=this.pmaViewport.imageInfo.TimeFrames[n].Layers.length-1),this.pmaViewport.setActiveLayer(r)):(++n>=this.pmaViewport.imageInfo.TimeFrames.length&&(n=this.pmaViewport.imageInfo.TimeFrames.length-1),this.pmaViewport.setActiveLayer(r),this.pmaViewport.setActiveTimeFrame(n))),document.getElementById("zstackSlider")&&(document.getElementById("zstackSlider").value=r,document.getElementById("zstackLabel").innerHTML=b.a.translate("Z-stack: <br /> {stack} / {total}",{stack:this.pmaViewport.getActiveLayer()+1,total:this.pmaViewport.imageInfo.TimeFrames[this.pmaViewport.getActiveTimeFrame()].Layers.length})),document.getElementById("timeframeSlider")&&(document.getElementById("timeframeSlider").value=n,document.getElementById("timeframeLabel").innerHTML=b.a.translate("Time frame: <br /> {frame} / {total}",{frame:this.pmaViewport.getActiveTimeFrame()+1,total:this.pmaViewport.imageInfo.TimeFrames.length}))}}}
799,{key:"round",value:function(e,t){var n=Math.pow(10,t||0);return Math.round(e*n)/n}},{key:"renderSliders",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(0!==this.sliders.length)for(var t=this,n=0;n<this.sliders.length;n++){var r;r=this.slidersValues[n]?this.slidersValues[n]:[0,100];var i=this.sliders[n],o=document.getElementById("".concat(i,"_slider"));o&&(o.title="Drag to adjust channel clipping",_.forEach((function(e){o.parentElement.classList.remove(e.class)})),o.parentElement.classList.add(_[e].class),document.getElementById("step").innerText="Step: "+_[e].step,v.a.create(o,{start:r,tooltips:[!0,!0],step:_[e].step,connect:!0,margin:_[e].step,keyboardSupport:!0,range:{min:0,max:100},format:{to:function(e){return t.round(e,2).toFixed(2)},from:function(e){return t.round(e,2).toFixed(2)}}}),o.noUiSlider.channelIndex=n,o.noUiSlider.on("change",(function(e){var n=document.getElementById(this.target.id.replace("slider","color_selector")).value;t.pmaViewport.setChannelRenderingOptions({index:this.channelIndex,clipping:e,color:n.replace("#","ff")})})));var a=document.getElementById("".concat(i,"_color_selector"));a&&($(a).data("channel",n),a.addEventListener("change",(function(e){var n,r=document.getElementById(e.target.id.replace("color_selector","slider"));if(r){var i=r.noUiSlider;i&&(n=i.get())}n||(n=["0.00","100.00"]),document.getElementById(e.target.id.replace("color_selector","slider")).parentElement.style="background-color: "+e.target.value,t.pmaViewport.setChannelRenderingOptions({index:$(e.target).data("channel"),clipping:n,color:e.target.value.replace("#","ff")})})));var s=document.getElementById("".concat(i,"_color_reset"));s&&($(s).data("channel",n),s.addEventListener("click",(function(e){this.blur();var n,r=$(document.getElementById(e.currentTarget.id.replace("color_reset","color_selector"))).data("default-color");document.getElementById(e.currentTarget.id.replace("color_reset","color_selector")).value=r;var i=document.getElementById(e.currentTarget.id.replace("color_reset","slider"));if(i){var o=i.noUiSlider;o&&(n=o.get())}n||(n=["0.00","100.00"]),document.getElementById(e.currentTarget.id.replace("color_reset","slider")).parentElement.style="background-color: "+r,t.pmaViewport.setChannelRenderingOptions({index:$(e.currentTarget).data("channel"),clipping:n,color:r.replace("#","ff")})})))}}},{key:"destroySliders",value:function(){for(var e=0;e<this.sliders.length;e++){var t=document.getElementById("".concat(this.sliders[e],"_slider"));this.slidersValues[e]=t.noUiSlider.get(),t.noUiSlider.destroy()}this.sliders=[]}}]),n}(m.a);function x(e){return console.log(e.Channels),1===e.Channels.length&&"ffffffff"===e.Channels[0].Color&&("Default"===e.Channels[0].Name||"Brightfield"===e.Channels[0].Name||""===e.Channels[0].Name)}},function(e,t,n){n.d(t,"a",(function(){return p}));var r=n(118),i=n(19),o=n(199),a=n(95),s=n(17),l=n(4),c=n(0);function d(e,t,n,r,i){var o,a,s,l,c,d,u,h,p,f=n,m=n,g=0,v=0,y=n;for(o=n;o<r;o+=i){var b=t[o],_=t[o+1];void 0!==l&&(h=b-l,p=_-c,s=Math.sqrt(h*h+p*p),void 0!==d&&(v+=a,Math.acos((d*h+u*p)/(a*s))>e&&(v>g&&(g=v,f=y,m=o),v=0,y=o-i)),a=s,d=h,u=p),l=b,c=_}return(v+=s)>g?[y,o]:[f,m]}var u,h=(u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},f=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return h(t,e),t.prototype.finish=function(){var t=e.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},t.prototype.drawText=function(e,t){var n=this.textFillState_,r=this.textStrokeState_,a=this.textState_;if(""!==this.text_&&a&&(n||r)){var l=this.coordinates,u=l.length,h=e.getType(),p=null,f=e.getStride();if(a.placement!==o.a.LINE||"LineString"!=h&&"MultiLineString"!=h&&"Polygon"!=h&&"MultiPolygon"!=h){var m=a.overflow?null:[];switch(h){case"Point":case"MultiPoint":p=e.getFlatCoordinates();break;case"LineString":p=e.getFlatMidpoint();break;case"Circle":p=e.getCenter();break;case"MultiLineString":p=e.getFlatMidpoints(),f=2;break;case"Polygon":p=e.getFlatInteriorPoint(),a.overflow||m.push(p[2]/this.resolution),f=3;break;case"MultiPolygon":var g=e.getFlatInteriorPoints();for(p=[],T=0,O=g.length;T<O;T+=3)a.overflow||m.push(g[T+2]/this.resolution),p.push(g[T],g[T+1]);if(0===p.length)return;f=2}if((j=this.appendFlatPointCoordinates(p,f))===u)return;if(m&&(j-u)/2!=p.length/f){var v=u/2;m=m.filter((function(e,t){var n=l[2*(v+t)]===p[t*f]&&l[2*(v+t)+1]===p[t*f+1];return n||--v,n}))}this.saveTextStates_(),(a.backgroundFill||a.backgroundStroke)&&(this.setFillStrokeStyle(a.backgroundFill,a.backgroundStroke),a.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),a.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,t);var y=a.padding;if(y!=s.j&&(a.scale[0]<0||a.scale[1]<0)){var b=a.padding[0],_=a.padding[1],w=a.padding[2],x=a.padding[3];a.scale[0]<0&&(_=-_,x=-x),a.scale[1]<0&&(b=-b,w=-w),y=[b,_,w,x]}var C=this.pixelRatio;this.instructions.push([i.c.DRAW_IMAGE,u,j,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,y==s.j?s.j:y.map((function(e){return e*C})),!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,m]);var S=1/C;this.hitDetectionInstructions.push([i.c.DRAW_IMAGE,u,j,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[S,S],NaN,void 0,this.declutterImageWithText_,y,!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,m]),this.endGeometry(t)}else{if(!Object(c.intersects)(this.getBufferedMaxExtent(),e.getExtent()))return;var E=void 0;if(p=e.getFlatCoordinates(),"LineString"==h)E=[p.length];else if("MultiLineString"==h)E=e.getEnds();else if("Polygon"==h)E=e.getEnds().slice(0,1);else if("MultiPolygon"==h){var k=e.getEndss();E=[];for(var T=0,O=k.length;T<O;++T)E.push(k[T][0])}this.beginGeometry(e,t);for(var $=a.textAlign,P=0,I=void 0,L=0,A=E.length;L<A;++L){if(null==$){var M=d(a.maxAngle,p,P,E[L],f);P=M[0],I=M[1]}else I=E[L];for(T=P;T<I;T+=f)l.push(p[T],p[T+1]);var j=l.length;P=E[L],this.drawChars_(u,j),u=j}this.endGeometry(t)}}},t.prototype.saveTextStates_=function(){var e=this.textStrokeState_,t=this.textState_,n=this.textFillState_,r=this.strokeKey_;e&&(r in this.strokeStates||(this.strokeStates[r]={strokeStyle:e.strokeStyle,lineCap:e.lineCap,lineDashOffset:e.lineDashOffset,lineWidth:e.lineWidth,lineJoin:e.lineJoin,miterLimit:e.miterLimit,lineDash:e.lineDash}));var i=this.textKey_;i in this.textStates||(this.textStates[i]={font:t.font,textAlign:t.textAlign||s.l,justify:t.justify,textBaseline:t.textBaseline||s.m,scale:t.scale});var o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))},t.prototype.drawChars_=function(e,t){var n=this.textStrokeState_,r=this.textState_,o=this.strokeKey_,a=this.textKey_,s=this.fillKey_;this.saveTextStates_();var l=this.pixelRatio,c=p[r.textBaseline],d=this.textOffsetY_*l,u=this.text_,h=n?n.lineWidth*Math.abs(r.scale[0])/2:0;this.instructions.push([i.c.DRAW_CHARS,e,t,c,r.overflow,s,r.maxAngle,l,d,o,h*l,u,a,1]),this.hitDetectionInstructions.push([i.c.DRAW_CHARS,e,t,c,r.overflow,s,r.maxAngle,1,d,o,h,u,a,1/l])},t.prototype.setTextStyle=function(e,t){var n,r,i;
799if(e){var o=e.getFill();o?((r=this.textFillState_)||(r={},this.textFillState_=r),r.fillStyle=Object(a.a)(o.getColor()||s.b)):(r=null,this.textFillState_=r);var c=e.getStroke();if(c){(i=this.textStrokeState_)||(i={},this.textStrokeState_=i);var d=c.getLineDash(),u=c.getLineDashOffset(),h=c.getWidth(),p=c.getMiterLimit();i.lineCap=c.getLineCap()||s.d,i.lineDash=d?d.slice():s.e,i.lineDashOffset=void 0===u?s.f:u,i.lineJoin=c.getLineJoin()||s.g,i.lineWidth=void 0===h?s.h:h,i.miterLimit=void 0===p?s.i:p,i.strokeStyle=Object(a.a)(c.getColor()||s.k)}else i=null,this.textStrokeState_=i;n=this.textState_;var f=e.getFont()||s.c;Object(s.q)(f);var m=e.getScaleArray();n.overflow=e.getOverflow(),n.font=f,n.maxAngle=e.getMaxAngle(),n.placement=e.getPlacement(),n.textAlign=e.getTextAlign(),n.justify=e.getJustify(),n.textBaseline=e.getTextBaseline()||s.m,n.backgroundFill=e.getBackgroundFill(),n.backgroundStroke=e.getBackgroundStroke(),n.padding=e.getPadding()||s.j,n.scale=void 0===m?[1,1]:m;var g=e.getOffsetX(),v=e.getOffsetY(),y=e.getRotateWithView(),b=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=void 0===g?0:g,this.textOffsetY_=void 0===v?0:v,this.textRotateWithView_=void 0!==y&&y,this.textRotation_=void 0===b?0:b,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:Object(l.c)(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.justify||"?")+(n.textBaseline||"?"),this.fillKey_=r?"string"==typeof r.fillStyle?r.fillStyle:"|"+Object(l.c)(r.fillStyle):""}else this.text_="";this.declutterImageWithText_=t},t}(r.a);t.b=f},function(e,t,n){var r=n(4),i=n(30),o=function(){function e(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Object(i.d)(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}return e.prototype.clone=function(){var t=this.getScale();return new e({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},e.prototype.getOpacity=function(){return this.opacity_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.getRotation=function(){return this.rotation_},e.prototype.getScale=function(){return this.scale_},e.prototype.getScaleArray=function(){return this.scaleArray_},e.prototype.getDisplacement=function(){return this.displacement_},e.prototype.getDeclutterMode=function(){return this.declutterMode_},e.prototype.getAnchor=function(){return Object(r.b)()},e.prototype.getImage=function(e){return Object(r.b)()},e.prototype.getHitDetectionImage=function(){return Object(r.b)()},e.prototype.getPixelRatio=function(e){return 1},e.prototype.getImageState=function(){return Object(r.b)()},e.prototype.getImageSize=function(){return Object(r.b)()},e.prototype.getOrigin=function(){return Object(r.b)()},e.prototype.getSize=function(){return Object(r.b)()},e.prototype.setDisplacement=function(e){this.displacement_=e},e.prototype.setOpacity=function(e){this.opacity_=e},e.prototype.setRotateWithView=function(e){this.rotateWithView_=e},e.prototype.setRotation=function(e){this.rotation_=e},e.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Object(i.d)(e)},e.prototype.listenImageChange=function(e){Object(r.b)()},e.prototype.load=function(){Object(r.b)()},e.prototype.unlistenImageChange=function(e){Object(r.b)()},e}();t.a=o},function(e,t,n){var r,i=n(60),o=n(46),a=n(4),s=n(10),l=n(0),c=n(1),d=n(32),u=n(69),h=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=Object(s.c)(),f=function(e){function t(){var t=e.call(this)||this;return t.extent_=Object(l.createEmpty)(),t.extentRevision_=-1,t.simplifiedGeometryMaxMinSquaredTolerance=0,t.simplifiedGeometryRevision=0,t.simplifyTransformedInternal=Object(d.d)((function(e,t,n){if(!n)return this.get
799SimplifiedGeometry(t);var r=this.clone();return r.applyTransform(n),r.getSimplifiedGeometry(t)})),t}return h(t,e),t.prototype.simplifyTransformed=function(e,t){return this.simplifyTransformedInternal(this.getRevision(),e,t)},t.prototype.clone=function(){return Object(a.b)()},t.prototype.closestPointXY=function(e,t,n,r){return Object(a.b)()},t.prototype.containsXY=function(e,t){var n=this.getClosestPoint([e,t]);return n[0]===e&&n[1]===t},t.prototype.getClosestPoint=function(e,t){var n=t||[NaN,NaN];return this.closestPointXY(e[0],e[1],n,1/0),n},t.prototype.intersectsCoordinate=function(e){return this.containsXY(e[0],e[1])},t.prototype.computeExtent=function(e){return Object(a.b)()},t.prototype.getExtent=function(e){if(this.extentRevision_!=this.getRevision()){var t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&Object(l.createOrUpdateEmpty)(t),this.extentRevision_=this.getRevision()}return Object(l.returnOrUpdate)(this.extent_,e)},t.prototype.rotate=function(e,t){Object(a.b)()},t.prototype.scale=function(e,t,n){Object(a.b)()},t.prototype.simplify=function(e){return this.getSimplifiedGeometry(e*e)},t.prototype.getSimplifiedGeometry=function(e){return Object(a.b)()},t.prototype.getType=function(){return Object(a.b)()},t.prototype.applyTransform=function(e){Object(a.b)()},t.prototype.intersectsExtent=function(e){return Object(a.b)()},t.prototype.translate=function(e,t){Object(a.b)()},t.prototype.transform=function(e,t){var n=Object(c.get)(e),r=n.getUnits()==o.b.TILE_PIXELS?function(e,r,i){var o=n.getExtent(),a=n.getWorldExtent(),d=Object(l.getHeight)(a)/Object(l.getHeight)(o);return Object(s.b)(p,a[0],a[3],d,-d,0,0,0),Object(u.c)(e,0,e.length,i,p,r),Object(c.getTransform)(n,t)(e,r,i)}:Object(c.getTransform)(n,t);return this.applyTransform(r),this},t}(i.a);t.a=f},function(e,t,n){var r,i=n(135),o=n(108),a=n(13),s=n(85),l=n(43),c=n(4),d=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(n){var r=e.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,opaque:n.opaque,projection:n.projection,state:n.state,tileGrid:n.tileGrid,tilePixelRatio:n.tilePixelRatio,wrapX:n.wrapX,transition:n.transition,interpolate:n.interpolate,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this;return r.generateTileUrlFunction_=r.tileUrlFunction===t.prototype.tileUrlFunction,r.tileLoadFunction=n.tileLoadFunction,n.tileUrlFunction&&(r.tileUrlFunction=n.tileUrlFunction),r.urls=null,n.urls?r.setUrls(n.urls):n.url&&r.setUrl(n.url),r.tileLoadingKeys_={},r}return d(t,e),t.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},t.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},t.prototype.getUrls=function(){return this.urls},t.prototype.handleTileChange=function(e){var t,n=e.target,r=Object(c.c)(n),s=n.getState();s==a.a.LOADING?(this.tileLoadingKeys_[r]=!0,t=i.a.TILELOADSTART):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],t=s==a.a.ERROR?i.a.TILELOADERROR:s==a.a.LOADED?i.a.TILELOADEND:void 0),null!=t&&this.dispatchEvent(new o.a(t,n))},t.prototype.setTileLoadFunction=function(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()},t.prototype.setTileUrlFunction=function(e,t){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),void 0!==t?this.setKey(t):this.changed()},t.prototype.setUrl=function(e){var t=Object(s.c)(e);this.urls=t,this.setUrls(t)},t.prototype.setUrls=function(e){this.urls=e;var t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(Object(s.a)(e,this.tileGrid),t):this.setKey(t)},t.prototype.tileUrlFunction=function(e,t,n){},t.prototype.useTile=function(e,t,n){var r=Object(l.e)(e,t,n);this.tileCache.containsKey(r)&&this.tileCache.get(r)},t}(o.b);t.a=u},function(e,t,n){var r,i=n(33),o=n(14),a=n(40),s=n(56),l=n(63),c=n(64),d=n(247),u=n.n(d),h=n(29),p=n(22),f=n(128),m=n(181),g=n(46),v=n(15),y=n(1),b=n(94),_=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.dataProjection=new f.a({code:"",units:g.b.TILE_PIXELS}),n.featureClass_=r.featureClass?r.featureClass:m.a,n.geometryName_=r.geometryName,n.layerName_=r.layerName?r.layerName:"layer",n.layers_=r.layers?r.layers:null,n.idProperty_=r.idProperty,n.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"],n}return _(t,e),t.prototype.readRawGeometry_=function(e,t,n,r){e.pos=t.geometry;for(var i=e.readVarint()+e.pos,o=1,a=0,s=0,l=0,c=0,d=0;e.pos<i;){if(!a){var u=e.readVarint();o=7&u,a=u>>3}a--,1===o||2===o?(s+=e.readSVarint(),l+=e.readSVarint(),1===o&&c>d&&(r.push(c),d=c),n.push(s,l),c+=2):7===o?c>d&&(n.push(n[d],n[d+1]),c+=2):Object(v.a)(!1,59)}c>d&&(r.push(c),d=c)},t.prototype.createFeature_=function(e,t,n){var r,d=t.type;if(0===d)return null;var u,f=t.properties;this.idProperty_?(u=f[this.idProperty_],delete f[this.idProperty_]):u=t.id,f[this.layerName_]=t.layer.name;var g=[],v=[];this.readRawGeometry_(e,t,g,v);var y=function(e,t){var n;return 1===e?n=1===t?"Point":"MultiPoint":2===e?n=1===t?"LineString":"MultiLineString":3===e&&(n="Polygon"),n}(d,v.length);if(this.featureClass_===m.a)(r=new this.featureClass_(y,g,v,f,u)).transform(n.dataProjection);else{var _=void 0;if("Polygon"==y){var w=Object(b.a)(g,v);_=w.length>1?new c.a(g,o.a.XY,w):new p.a(g,o.a.XY,v)}else _="Point"===y?new h.a(g,o.a.XY):"LineString"===y?new a.a(g,o.a.XY):"MultiPoint"===y?new l.a(g,o.a.XY):"MultiLineString"===y?new s.a(g,o.a.XY,v):null;r=new(0,this.featureClass_),this.geometryName_&&r.setGeometryName(this.geometryName_);var x=Object(i.c)(_,!1,n);r.setGeometry(x),void 0!==u&&r.setId(u),r.setProperties(f,!0)}return r},t.prototype.getType=function(){return"arraybuffer"},t.prototype.readFeatures=function(e,t){var n=this.layers_,r=this.adaptOptions(t),i=Object(y.get)(r.dataProjection);i.setWorldExtent(r.extent),r.dataProjection=i;var o=new u.a(e),a=o.readFields(x,{}),s=[];for(var l in a)if(!n||-1!=n.indexOf(l)){var c=a[l],d=c?[0,0,c.extent,c.extent]:null;i.setExtent(d);for(var h=0,p=c.length;h<p;++h){var f=E(o,c,h),m=this.createFeature_(o,f,r);null!==m&&s.push(m)}}return s},t.prototype.readProjection=function(e){return this.dataProjection},t.prototype.setLayers=function(e){this.layers_=e},t}(i.a);function x(e,t,n){if(3===e){var r={keys:[],values:[],features:[]},i=n.readVarint()+n.pos;n.readFields(C,r,i),r.length=r.features.length,r.length&&(t[r.name]=r)}}
799function C(e,t,n){if(15===e)t.version=n.readVarint();else if(1===e)t.name=n.readString();else if(5===e)t.extent=n.readVarint();else if(2===e)t.features.push(n.pos);else if(3===e)t.keys.push(n.readString());else if(4===e){for(var r=null,i=n.readVarint()+n.pos;n.pos<i;)r=1==(e=n.readVarint()>>3)?n.readString():2===e?n.readFloat():3===e?n.readDouble():4===e?n.readVarint64():5===e?n.readVarint():6===e?n.readSVarint():7===e?n.readBoolean():null;t.values.push(r)}}function S(e,t,n){if(1==e)t.id=n.readVarint();else if(2==e)for(var r=n.readVarint()+n.pos;n.pos<r;){var i=t.layer.keys[n.readVarint()],o=t.layer.values[n.readVarint()];t.properties[i]=o}else 3==e?t.type=n.readVarint():4==e&&(t.geometry=n.pos)}function E(e,t,n){e.pos=t.features[n];var r=e.readVarint()+e.pos,i={layer:t,type:0,properties:{}};return e.readFields(S,i,r),i}t.a=w},function(e,t,n){var r,i=n(24),o=n(70),a=n(165),s=n(40),l=n(56),c=n(63),d=n(64),u=n(29),h=n(22),p=n(15),f=n(5),m=n(1),g=n(33),v=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e){function t(t){var n=this,r=t||{};return(n=e.call(this)||this).dataProjection=Object(m.get)(r.dataProjection?r.dataProjection:"EPSG:4326"),r.featureProjection&&(n.defaultFeatureProjection=Object(m.get)(r.featureProjection)),n.geometryName_=r.geometryName,n.extractGeometryName_=r.extractGeometryName,n.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],n}return v(t,e),t.prototype.readFeatureFromObject=function(e,t){var n,r=b((n="Feature"===e.type?e:{type:"Feature",geometry:e,properties:null}).geometry,t),o=new i.a;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&o.setGeometryName(n.geometry_name),o.setGeometry(r),"id"in n&&o.setId(n.id),n.properties&&o.setProperties(n.properties,!0),o},t.prototype.readFeaturesFromObject=function(e,t){var n=null;if("FeatureCollection"===e.type){n=[];for(var r=e.features,i=0,o=r.length;i<o;++i)n.push(this.readFeatureFromObject(r[i],t))}else n=[this.readFeatureFromObject(e,t)];return n},t.prototype.readGeometryFromObject=function(e,t){return b(e,t)},t.prototype.readProjectionFromObject=function(e){var t,n=e.crs;return n?"name"==n.type?t=Object(m.get)(n.properties.name):"EPSG"===n.type?t=Object(m.get)("EPSG:"+n.properties.code):Object(p.a)(!1,36):t=this.dataProjection,t},t.prototype.writeFeatureObject=function(e,t){t=this.adaptOptions(t);var n={type:"Feature",geometry:null,properties:null},r=e.getId();if(void 0!==r&&(n.id=r),!e.hasProperties())return n;var i=e.getProperties(),o=e.getGeometry();return o&&(n.geometry=_(o,t),delete i[e.getGeometryName()]),Object(f.d)(i)||(n.properties=i),n},t.prototype.writeFeaturesObject=function(e,t){t=this.adaptOptions(t);for(var n=[],r=0,i=e.length;r<i;++r)n.push(this.writeFeatureObject(e[r],t));return{type:"FeatureCollection",features:n}},t.prototype.writeGeometryObject=function(e,t){return _(e,this.adaptOptions(t))},t}(a.a);function b(e,t){if(!e)return null;var n;switch(e.type){case"Point":n=function(e){return new u.a(e.coordinates)}(e);break;case"LineString":n=function(e){return new s.a(e.coordinates)}(e);break;case"Polygon":n=function(e){return new h.a(e.coordinates)}(e);break;case"MultiPoint":n=function(e){return new c.a(e.coordinates)}(e);break;case"MultiLineString":n=function(e){return new l.a(e.coordinates)}(e);break;case"MultiPolygon":n=function(e){return new d.a(e.coordinates)}(e);break;case"GeometryCollection":n=function(e,t){var n=e.geometries.map((function(e){return b(e,void 0)}));return new o.a(n)}(e);break;default:throw new Error("Unsupported GeoJSON type: "+e.type)}return Object(g.c)(n,!1,t)}function _(e,t){var n,r=(e=Object(g.c)(e,!0,t)).getType();switch(r){case"Point":n=function(e,t){return{type:"Point",coordinates:e.getCoordinates()}}(e);break;case"LineString":n=function(e,t){return{type:"LineString",coordinates:e.getCoordinates()}}(e);break;case"Polygon":n=function(e,t){var n;return t&&(n=t.rightHanded),{type:"Polygon",coordinates:e.getCoordinates(n)}}(e,t);break;case"MultiPoint":n=function(e,t){return{type:"MultiPoint",coordinates:e.getCoordinates()}}(e);break;case"MultiLineString":n=function(e,t){return{type:"MultiLineString",coordinates:e.getCoordinates()}}(e);break;case"MultiPolygon":n=function(e,t){var n;return t&&(n=t.rightHanded),{type:"MultiPolygon",coordinates:e.getCoordinates(n)}}(e,t);break;case"GeometryCollection":n=function(e,t){return{type:"GeometryCollection",geometries:e.getGeometriesArray().map((function(e){var n=Object(f.a)({},t);return delete n.featureProjection,_(e,n)}))}}(e,t);break;case"Circle":n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+r)}return n}t.a=y},function(e,t,n){n.d(t,"a",(function(){return It}));var r=n(101),i=n.n(r),o=n(61),a=n.n(o),s=n(25),l=n.n(s),c=n(26),d=n.n(c),u=n(28),h=n.n(u),p=n(41),f=n(3),m=n(58),g=n.n(m),v=n(16),y=n(44),b=n(182),_=n(18),w=n(98),x=n(211),C=n(7),S=n(183),E=n(169),k=n(149),T=n(184),O=n(185),$=n(186),P=n(150),I=n(187),L=n(215),A=n(188),M=n(216),j=n(34),R=n.n(j),D=n(53),F=n.n(D),N=n(57),B=n.n(N),U=n(31),z=n.n(U);var G=function(e){F()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z()(e);if(t){var i=z()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return B()(this,n)}}(n);function n(e){var r;if(l()(this,n),r=t.call(this,e),!Object.prototype.hasOwnProperty.call(R()(r),"deltaPerZoom_"))throw"deltaPerZoom_ not found";return r.deltaPerZoom_=e.deltaPerZoom,r.mode=f.h.normal,r}return d()(n,[{key:"setMode",value:function(e){var t=this.getMap().getView();e==f.h.normal?(t.setConstrainResolution(!1),this.constrainResolution_=!1,this.mode=e):(t.setConstrainResolution(!0),this.constrainResolution_=!0,this.mode=e)}},{key:"getZoomDelta",value:function(){return this.deltaPerZoom_}},{key:"setZoomDelta",value:function(e){this.deltaPerZoom_=Math.max(e,1)}}]),n}(n(194).a),V=n(158);function q(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
799if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W(e){return Y.apply(this,arguments)}function Y(){return(Y=a()(h.a.mark((function e(t){var n,r,o,a,s,l,c,d,u,p,f,m;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X.call(this);case 2:for(n=e.sent,r=[],o=0;o<n.r.length;o++)r[o]=Math.floor(.299*n.r[o]+.587*n.g[o]+.114*n.b[o]);for(a=ee(r),s=n.r.length,l=[],c=0;c<a.length;c++)l.push(a[c]/s*100);d=l.findIndex((function(e){return e>=.01})),u=a.findIndex((function(e){return e===Math.max.apply(Math,i()(a))})),f=p=255/(u-d),m=-1*(d*p-128*p+128),this.setBrightness(m),this.setContrast(f),this.redraw(),t&&"function"==typeof t&&t.call();case 19:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function X(){return K.apply(this,arguments)}function K(){return(K=a()(h.a.mark((function e(){var t,n,r,i,o,a,s,l;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.sessionID,n=this.getActiveLayer(),r=this.getActiveTimeFrame(),i=1e3/Math.max(this.imageInfo.Width,this.imageInfo.Height),o="".concat(this.serverUrls[0],"/region?pathOrUid=").concat(encodeURIComponent(this.imageInfo.Filename),"&format=jpg&timeframe=").concat(r,"&layer=").concat(n,"&sessionID=").concat(encodeURIComponent(t),"&x=0&y=0&width=").concat(this.imageInfo.Width,"&height=").concat(this.imageInfo.Height,"&scale=").concat(i),e.next=7,Z(o);case 7:return a=e.sent,s=J(a),l=Q(s),e.abrupt("return",l);case 11:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}var Z=function(e){return new Promise((function(t){var n=new Image;n.onload=function(){return t(n)},n.crossOrigin="Anonymous",n.src=e}))},J=function(e){var t=document.createElement("canvas");t.width=e.width,t.height=e.height;var n=t.getContext("2d");return n.drawImage(e,0,0),n.getImageData(0,0,e.width,e.height).data},Q=function(e){for(var t=[],n=[],r=[],i=[],o=0;o<e.length;)t.push(e[o++]),n.push(e[o++]),r.push(e[o++]),i.push(e[o++]);return{r:t,g:n,b:r,a:i}},ee=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256,r=new Array(n).fill(0),i=q(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;r[o]++}}catch(e){i.e(e)}finally{i.f()}return r},te={},ne=[1,2,5,10,20,40,80,160,320];function re(){this.imageInfo?(this.serviceUrl=this.imageInfo.BaseUrl+"api/json/",this.imagesUrl=this.imageInfo.BaseUrl,this.sessionID?me.call(this):fe.call(this,me)):this.image?pe.call(this,0):$e.call(this)}function ie(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)}function oe(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")}function ae(e,t){e&&(oe(e,t)||(e.className+=" "+t))}function se(e,t){e&&oe(e,t)&&(e.className=e.className.replace(new RegExp(t,"g"),""))}function le(e){if(null==e||""===e)return null;var t=JSON.parse(e);return t?Object.prototype.hasOwnProperty.call(t,"d")?t.d:t:null}function ce(e,t){if(!0===this.options.flip.horizontally||!0===this.options.flip.vertically||0!==this.imageAdjustments.brightness||1!==this.imageAdjustments.contrast||1!==this.imageAdjustments.gamma||null!==this.imageAdjustments.rgb&&(1!=this.imageAdjustments.rgb[0]||1!=this.imageAdjustments.rgb[1]||1!=this.imageAdjustments.rgb[2])||this.imageAdjustments.tileTransformers&&0!==this.imageAdjustments.tileTransformers.length){var n=new Image;n.crossOrigin="";var r=this;n.onload=function(){var t=document.createElement("canvas");t.width=n.width,t.height=n.height;var i=t.getContext("2d"),o=r.options.flip.horizontally?n.width:0,a=r.options.flip.vertically?n.height:0,s=r.options.flip.horizontally?-1:1,l=r.options.flip.vertically?-1:1;
799if(i.translate(o,a),i.scale(s,l),i.drawImage(n,0,0),0!==r.imageAdjustments.brightness||1!==r.imageAdjustments.contrast||1!==r.imageAdjustments.gamma||null!==r.imageAdjustments.rgb&&(1!=r.imageAdjustments.rgb[0]||1!=r.imageAdjustments.rgb[1]||1!=r.imageAdjustments.rgb[2])||r.imageAdjustments.tileTransformers&&r.imageAdjustments.tileTransformers.length>0){var c=i.getImageData(0,0,t.width,t.height);if(r.imageAdjustments.tileTransformers)for(var d=0;d<r.imageAdjustments.tileTransformers.length;d++)r.imageAdjustments.tileTransformers[d](c);var u=r.imageAdjustments.brightness,h=r.imageAdjustments.contrast;!function(e,t,n,r){var i=[];(!r||r<0)&&(r=0);for(var o=0;o<256;o++){var a=n*(o-128)+128+t;1!=r&&(a=255*Math.pow(a/255,1/r)),a[o]<0&&(a[o]=0),a[o]>255&&(a[o]=255),i.push(a)}for(o=0;o<e.length;o+=4)e[o]=i[e[o]],e[o+1]=i[e[o+1]],e[o+2]=i[e[o+2]]}(c.data,u,h,r.imageAdjustments.gamma),null===r.imageAdjustments.rgb||1==r.imageAdjustments.rgb[0]&&1==r.imageAdjustments.rgb[1]&&1==r.imageAdjustments.rgb[2]||function(e,t,n,r){for(var i=0;i<e.length;i+=4)e[i]=Math.max(0,Math.min(255,e[i]*t)),e[i+1]=Math.max(0,Math.min(255,e[i+1]*n)),e[i+2]=Math.max(0,Math.min(255,e[i+2]*r))}(c.data,r.imageAdjustments.rgb[0],r.imageAdjustments.rgb[1],r.imageAdjustments.rgb[2]),i.putImageData(c,0,0)}e.getImage().src=t.toDataURL("image/jpeg")},n.src=t}else e.getImage().src=t}function de(e,t,n){this.imageInfo.MaxZoomLevel;var r=Math.pow(2,e[0]),i=e[1];!0===this.options.flip.horizontally&&(i=r-e[1]-1);var o=e[2];return!0===this.options.flip.vertically&&(o=r-e[2]-1),this.imagesUrl+"tile?sessionID="+encodeURIComponent(this.sessionID)+"&channels="+this.channelsString+"&channelClipping="+this.channelClippingString+"&channelColor="+this.channelColorString+"&gamma="+this.channelGammaString+"&timeframe="+this.selectedTimeFrame+"&layer="+this.selectedLayer+"&pathOrUid="+encodeURIComponent(this.image)+"&x="+i+"&y="+o+"&z="+e[0]}function ue(e,t,n,r){this.imageInfo.MaxZoomLevel;var i=Math.pow(2,t[0]),o=t[1];!0===this.options.flip.horizontally&&(o=i-t[1]-1);var a=t[2];return!0===this.options.flip.vertically&&(a=i-t[2]-1),this.imagesUrl+"annotatedTile?sessionID="+encodeURIComponent(this.sessionID)+"&pathOrUid="+encodeURIComponent(this.image)+"&type="+encodeURIComponent(e)+"&x="+o+"&y="+a+"&z="+t[0]}function he(e,t){if(!0===this.options.flip.horizontally||!0===this.options.flip.vertically){var n=new Image;n.crossOrigin="";var r=this;n.onload=function(){var t=document.createElement("canvas");t.width=n.width,t.height=n.height;var i=t.getContext("2d"),o=r.options.flip.horizontally?n.width:0,a=r.options.flip.vertically?n.height:0,s=r.options.flip.horizontally?-1:1,l=r.options.flip.vertically?-1:1;i.translate(o,a),i.scale(s,l),i.drawImage(n,0,0),e.getImage().src=t.toDataURL("image/png")},n.src=t}else e.getImage().src=t}function pe(e){var t=this;p.a.call(this,this.serverUrls[e]+"api/json/GetVersionInfo","GET",null,(function(n){if(200==n.status){var r=this.serverUrls[e];"/"!=r[r.length-1]&&(r+="/");var i=JSON.parse(n.responseText);this.serviceUrl=r+"api/json/",this.imagesUrl=r,this.sessionID?me.call(this):fe.call(this,me,i)}else{if(!(e<this.serverUrls.length-1))throw"function"==typeof t.failCallback&&t.failCallback(),"No accessible server URL found.";pe.call(this,e+1)}}))}function fe(e,t){var n=this;n.userInfo=null;var r=Object(V.b)(t);p.a.call(this,this.serviceUrl+"Authenticate",r?"POST":"GET",{username:this.username,password:this.password,caller:this.options.caller},(function(t){if(200!=t.status)throw"function"==typeof n.failCallback&&n.failCallback(),console.log(t),"Login failed with status "+t.status+" "+t.statusText;var r=le(t.responseText);if(!r||!0!==r.Success)throw"function"==typeof n.failCallback&&n.failCallback(),"Login failed. "+r.Reason;n.sessionID=r.SessionId,n.userInfo=r,e&&e.call(n)}),{contentType:"application/json",dataEncodeCallback:r?JSON.stringify:null})}function me(){if(this.imageInfo)_e.call(this,Oe);else{var e=this;p.a.call(this,this.serviceUrl+"GetImageInfo","GET",{sessionID:this.sessionID,pathOrUid:this.image},(function(t){if(200==t.status){var n=le(t.responseText);n?(e.imageInfo=n,_e.call(e,Oe)):("function"==typeof e.failCallback&&e.failCallback(),e.fireEvent(f.g.SlideLoadError,e),console.error("Server found but could not get image info"))}else{"function"==typeof e.failCallback&&e.failCallback();var r=0,i=C.a.translate("Unknown Error");try{if(t.responseText&&0!==t.responseText.length){var o=le(t.responseText);o&&Object.prototype.hasOwnProperty.call(o,"Code")&&(r=o.Code,i=C.a.translate(o.Message))}}catch(e){}this.element&&(this.element.innerHTML="Cannot load slide. "+i),e.Error={Code:r,Message:i},e.fireEvent(f.g.SlideLoadError,e),console.error("Server responded with status "+t.status+" and code "+r),console.log(t)}}))}}function ge(e,t,n){for(var r=0;r<e.length;r+=n){var i=e[r],o=e[r+1];!0!==this.flip.vertically&&(o=this.extent[3]-o),!0===this.flip.horizontally&&(i=this.extent[2]-i),t[r]=i,t[r+1]=o}}function ve(e,t){var n=this;"object"===g()(this.options.annotations)&&"loadAnnotationsByFingerprint"in this.options.annotations&&this.options.annotations.loadAnnotationsByFingerprint?be.call(this,(function(r){ye.call(n,e,t,r,n.options.annotations.filter,n.readyCallback)})):ye.call(this,e,t,null,this.options.annotations.filter,this.readyCallback)}function ye(e,t,n,r,i){var o=this,a={sessionID:this.sessionID,pathOrUid:this.image,currentUserOnly:!0===this.options.annotations.currentUserOnly,refresh:Math.random()};Object.assign(a,n?{fingerprint:n}:{}),Object.assign(a,this.options.annotations.contexts?{contexts:this.options.annotations.contexts}:{}),p.a.call(this,this.serviceUrl+"GetAnnotations","GET",a,(function(n){if(200==n.status){var a=le(n.responseText);if(a){var s=a;"function"==typeof r&&(s=[],a.forEach((function(e){r(e)&&s.push(e)})));var l=o.initializeFeatures(s,t);e.addFeatures(l)}}"function"==typeof i&&i()}))}function be(e){p.a.call(this,this.serviceUrl+"GetFingerprint","GET",{sessionID:this.sessionID,pathOrUid:this.image},(function(t){if(200==t.status){var n=le(t.responseText);e(n||null)}else e(null)}))}function _e(e){p.a.call(this,this.serviceUrl+"GetRenderingOptions","GET",{sessionID:this.sessionID,pathOrUid:this.image},(function(t){if(200==t.status){var n=le(t.responseText);n?(n.supportsRenderingOptions=!0,e.call(this,n)):e.call(this,{supportsRenderingOptions:!0})}else e.call(this,{supportsRenderingOptions:!1})}))}function we(){var e=this.getChannelRenderingOptions.call(this),t={SessionID:this.sessionID,PathOrUid:this.image,Contrast:this.imageAdjustments.contrast,Brightness:this.imageAdjustments.brightness,Gamma:this.imageAdjustments.gamma,Channels:this.imageInfo.TimeFrames[0].Layers[0].Channels.map((function(t,n){return{Visible:t.Active,Clipping:e[n].clipping?e[n].clipping.map((function(e){return parseFloat(e)}
799)):null,ChannelColor:e[n].color?e[n].color:null,Gamma:e[n].gamma?e[n].gamma:null}}))};p.a.call(this,this.serviceUrl+"SetRenderingOptions","POST",t,(function(e){return 200==e.status}),{contentType:"application/json",dataEncodeCallback:function(e){return JSON.stringify(e)}})}function xe(){var e,t,n;null!==this.arrowPanInteraction&&this.map.removeInteraction(this.arrowPanInteraction),this.arrowPanInteraction=new v.a.interaction.KeyboardPan({pixelDelta:(e=this.options.keyboardPanFactor,t=this.element.offsetWidth,n=e*t,(isNaN(n)||n<0||!isFinite(n))&&(n=50),n),duration:this.options.panAnimations?this.options.animationDuration:0}),this.map.addInteraction(this.arrowPanInteraction)}function Ce(){var e=this.imageInfo.MaxZoomLevel,t=0,n=0,r=Math.pow(2,e)*this.imageInfo.TileSize;return!0===this.options.flip.horizontally&&(t=r-this.imageInfo.Width),!0!==this.options.flip.vertically&&(n=r-this.imageInfo.Height),{xPadding:t,yPadding:n}}function Se(){var e=Ce.call(this),t=1;return this.imageInfo.MicrometresPerPixelX&&this.imageInfo.MicrometresPerPixelX>0&&(t=this.imageInfo.MicrometresPerPixelX),new v.a.proj.Projection({code:"pixel",units:"pixels",extent:[e.xPadding,e.yPadding,e.xPadding+this.imageInfo.Width,e.yPadding+this.imageInfo.Height],metersPerUnit:1e-6*t,getPointResolution:function(e,t){return e}})}function Ee(e,t,n,r){var i=Math.pow(2,this.imageInfo.MaxZoomLevel),o=parseInt(this.options.digitalZoomLevels);(isNaN(o)||o<=0)&&(o=0),o=Math.min(o,3),this.options.digitalZoomLevels=o;for(var a=this.imageInfo.MaxZoomLevel,s=this.imageInfo.Width,l=this.imageInfo.Height;a>0&&(s>this.element.offsetWidth||l>this.element.offsetHeight);)s/=2,l/=2,a--;var c=[],d=1/Math.pow(2,o);if(this.imageInfo.MicrometresPerPixelX){var u=i,h=this.imageInfo.MicrometresPerPixelX;for(c=ne.map((function(e){return{objective:e,resolution:10/h/e}}));c[0].resolution<u;)c=[{objective:0,resolution:2*c[0].resolution}].concat(c);c[c.length-1]>d&&c.push({objective:"MAX",resolution:d})}var p=this.options.digitalZoomLevels+this.imageInfo.MaxZoomLevel,m=0==c.length?void 0:c.slice(0,p+1).map((function(e){return e.resolution})),g=new w.a({projection:e,center:t||v.a.extent.getCenter(e.getExtent()),showFullExtent:!0,maxResolution:i,minResolution:1/Math.pow(2,o),zoom:n||a,rotation:r||0,resolutions:m,constrainResolution:!1,zoomFactor:2}),y=this;function b(){y.fireEvent(f.g.ViewChanged,y)}return g.on("change:center",b.bind(this)),g.on("change:resolution",b.bind(this)),g.on("change:rotation",b.bind(this)),g}function ke(e,t){return new M.a({target:e,collapsed:t})}function Te(){if(this.imageInfo){var e=Math.pow(2,this.imageInfo.MaxZoomLevel);return this.element.querySelector(".ol-overview")&&this.element.querySelector(".ol-overview").remove(),new k.a({maxResolution:e,tipLabel:C.a.translate("Overview"),collapsed:this.options.overview&&!0===this.options.overview.collapsed,tracking:this.options.overview&&!0===this.options.overview.tracking,stateManager:te,pmaViewport:this})}return this.element.querySelector(".ol-overview")&&this.element.querySelector(".ol-overview").remove(),new k.a({tipLabel:C.a.translate("Overview"),collapsed:this.options.overview&&!0===this.options.overview.collapsed,tracking:this.options.overview&&!0===this.options.overview.tracking,stateManager:te,pmaViewport:this})}function Oe(e){this.imageInfo.TimeFrames&&this.imageInfo.TimeFrames.TimeFrame&&(this.imageInfo.TimeFrames=[this.imageInfo.TimeFrames.TimeFrame]),this.imageInfo.TimeFrames&&0!==this.imageInfo.TimeFrames.length||(this.imageInfo.TimeFrames=[],this.imageInfo.TimeFrames.push({Layers:[{LayerID:0,Channels:[{ChannelID:0,Color:"ffffffff",Name:"Default"}]}],TimeID:0}));for(var t=0;t<this.imageInfo.TimeFrames.length;t++){var n=this.imageInfo.TimeFrames[t];n.Layers.ImageLayer&&(n.Layers=[n.Layers.ImageLayer]);for(var r=0;r<this.imageInfo.TimeFrames[t].Layers.length;r++){var i=this.imageInfo.TimeFrames[t].Layers[r];i.Channels.Channel&&(i.Channels=[i.Channels.Channel])}}for(this.selectedTimeFrame=this.options.fov&&this.options.fov.timeframe?this.options.fov.timeframe:0,this.selectedLayer=this.options.fov&&this.options.fov.layer?this.options.fov.layer:0,t=0;t<this.imageInfo.TimeFrames[0].Layers[0].Channels.length;t++){var o=this.imageInfo.TimeFrames[0].Layers[0].Channels[t];if(this.options.fov&&this.options.fov.channels?o.Active=this.options.fov.channels.includes(t):Object.prototype.hasOwnProperty.call(o,"Active")||(o.Active=!0),o.DefaultGamma?o.Gamma=o.DefaultGamma:o.Gamma=1,e&&e.Channels&&e.Channels[t]){var a=e.Channels[t];o.UserOptions={Clipping:a.Clipping,Gamma:a.Gamma,Color:a.ChannelColor},null!==a.Visible&&(o.Active=a.Visible)}}for(var s in this.channelsString=this.getActiveChannels().join(","),this.channelGammaString=this.getChannelGammaString(),this.channelColorString=this.getChannelColorString(),this.channelClippingString=this.getChannelClippingString(),ae(this.element,"pma-ui-viewport-container"),this.element.tabIndex<0&&(this.element.tabIndex=0),f.j)Object.prototype.hasOwnProperty.call(f.j,s)&&se(this.element,f.j[s]);ae(this.element,this.options.theme),this.element.innerHTML="",this.imageInfo.Backgroun
799dColor||(this.imageInfo.BackgroundColor="ffffff"),1===this.imageInfo.TimeFrames.length&&1===this.imageInfo.TimeFrames[0].Layers.length&&Object(P.b)(this.imageInfo.TimeFrames[0].Layers[0])&&(this.options.dimensions=!1),this.element.style.backgroundColor="#"+this.imageInfo.BackgroundColor,this.imageInfo.NumberOfZoomLevels&&(this.imageInfo.MaxZoomLevel=this.imageInfo.NumberOfZoomLevels);var l=this.imageInfo.MaxZoomLevel;(!this.imageInfo.MicrometresPerPixelX||this.imageInfo.MicrometresPerPixelX<=0)&&(this.options.scaleLine=!1);var c=Se.call(this),d=Math.pow(2,l),u=new v.a.layer.Tile({source:new v.a.source.XYZ({tileUrlFunction:de.bind(this),tileLoadFunction:ce.bind(this),projection:c,wrapX:!1,attributions:"",crossOrigin:"PMA.UI",cacheSize:1/0,tileGrid:v.a.tilegrid.createXYZ({tileSize:[this.imageInfo.TileSize,this.imageInfo.TileSize],extent:[0,0,d*this.imageInfo.TileSize,d*this.imageInfo.TileSize],maxZoom:l})}),preload:1/0,className:"ol-layer main-layer",extent:[0,0,d*this.imageInfo.TileSize,d*this.imageInfo.TileSize]});this.mainLayer=u,this.loading=0,this.loaded=0,this.progressEl=null;var h=this;this.options.loadingBar&&(this.loading=0,this.loaded=0,this.progressEl=document.createElement("div"),this.progressEl.className="ol-progress",this.imageInfo.TimeFrames[0].Layers[0].Channels.length>1&&(this.progressEl.className="ol-progress dark"),this.element.appendChild(this.progressEl),u.getSource().on("tileloadstart",(function(){0===h.loading&&(h.progressEl.style.visibility="visible"),++h.loading,Re.call(h)})),u.getSource().on("tileloadend",(function(){setTimeout((function(){++h.loaded,Re.call(h)}),100)})),u.getSource().on("tileloaderror",(function(){setTimeout((function(){++h.loaded,Re.call(h)}),100)}))),u.getSource().on("tileloaderror",(function(){h.fireEvent(f.g.TilesError,h)}));var p=new v.a.interaction.DragZoom({condition:_.m,duration:this.options.panAnimations?this.options.animationDuration:0}),m=new v.a.interaction.DragRotate({condition:_.b}),g=[new v.a.control.Zoom({zoomInTipLabel:C.a.translate("Zoom in"),zoomOutTipLabel:C.a.translate("Zoom out")}),new S.a({tipLabel:C.a.translate("Previous view"),dragZoom:p})];g.push(new v.a.control.FullScreen({tipLabel:C.a.translate("Toggle fullscreen"),source:this.options.fullScreenElement,label:"â",labelActive:"â"}));var w=[u];if(this.options.annotationsLayers&&this.imageInfo.AnnotationsLayers&&this.imageInfo.AnnotationsLayers.length>0){for(var E=[],k=0;k<this.imageInfo.AnnotationsLayers.length;k++){var T=this.imageInfo.AnnotationsLayers[k],O=new v.a.layer.Tile({displayInLayerSwitcher:!0,visible:!0===this.options.annotationsLayers.loadLayers,title:T,source:new v.a.source.XYZ({tileUrlFunction:ue.bind(this,T),tileLoadFunction:he.bind(this),projection:c,wrapX:!1,attributions:"",crossOrigin:"PMA.UI"}),extent:[0,0,d*this.imageInfo.TileSize,d*this.imageInfo.TileSize],className:"ol-layer annotations-layer"});O.getSource().tileGrid=v.a.tilegrid.createXYZ({tileSize:[this.imageInfo.TileSize,this.imageInfo.TileSize],extent:[0,0,d*this.imageInfo.TileSize,d*this.imageInfo.TileSize],maxZoom:l}),E.push(O)}if(E.length>0){var $=new v.a.layer.Group({title:C.a.translate("Annotation layers"),layers:E});w.push($)}}if(this.options.annotations){var I=new v.a.source.Vector({projection:c});this.annotationsLayer=new v.a.layer.Vector({source:I,updateWhileAnimating:!0,updateWhileInteracting:!0,className:"ol-layer annotations-layer"}),ve.call(this,I,c),w.push(this.annotationsLayer),this.showAnnotations(!1!==this.options.annotations.visible)}var L=new v.a.source.Vector({projection:c});this.measureLayer=new v.a.layer.Vector({source:L,updateWhileAnimating:!0,updateWhileInteracting:!0,style:new y.c({fill:new v.a.style.Fill({color:"rgba(255, 255, 255, 0.2)"}),stroke:new v.a.style.Stroke({color:"#ffcc33",width:2}),image:new v.a.style.Circle({radius:7,fill:new v.a.style.Fill({color:"rgba(255, 255, 255, 0.2)"}),stroke:new v.a.style.Stroke({color:"#ff0000",width:2})}),text:new v.a.style.Text({font:"12px Calibri,sans-serif",fill:new v.a.style.Fill({color:"#000"}),stroke:new v.a.style.Stroke({color:"#fff",width:2})})})}),this.measureLayer.setZIndex(1e4),this.gridLayer=new v.a.layer.Vector({updateWhileAnimating:!0,updateWhileInteracting:!0,source:new v.a.source.Vector({projection:c}),style:new v.a.style.Style({fill:new v.a.style.Fill({color:"rgba(255, 255, 255, 0.2)"}),stroke:new v.a.style.Stroke({color:this.options&&this.options.grid&&this.options.grid.color?this.options.grid.color:"#c0c0c0",width:1})})}),this.measureTooltips=[],w.push(this.measureLayer),w.push(this.gridLayer),this.options.keyboardPanFactor||0===this.options.keyboardPanFactor||(this.options.keyboardPanFactor=.5);var A=new v.a.interaction.DragPan({kinetic:new b.a(-.005,.05,100),onFocusOnly:!1});this.mouseWheelInteraction=new G({duration:this.options.mouseWheelZoomAnimations?this.options.animationDuration:0,maxDelta:1,deltaPerZoom:100,timeout:0,onFocusOnly:!1,condition:_.j,constrainResolution:!1});var M=1;if(0==this.options.keyboardZoomDelta?M=0:this.options.keyboardZoomDelta&&(M=this.options.keyboardZoomDelta),this.map=new x.a({interactions:[A,m,p,this.mouseWheelInteraction,new v.a.interaction.PinchZoom({constrainResolution:!1}),new v.a.interaction.PinchRotate,new v.a.interaction.DoubleClickZoom({duration:this.options.panAnimations?this.options.animationDuration:0}
799),new v.a.interaction.KeyboardZoom({delta:M})],loadTilesWhileAnimating:!0===this.options.highQuality,loadTilesWhileInteracting:!0===this.options.highQuality,layers:w,target:this.element,controls:g,view:Ee.call(this,c)}),Ge.call(this,this.element.querySelector(".ol-full-screen"),this.options.fullscreenControl),xe.call(this),this.options.customButtons&&ze.call(this,this.options.customButtons),this.options.position&&this.setPosition(this.options.position),this.options.fov&&this.options.fov.extent&&this.fitToExtent(this.options.fov.extent,1==this.options.fov.constrainResolution),this.options.fov&&this.options.fov.rotation&&this.setPosition({rotation:this.options.fov.rotation}),Ye.call(this,!!e&&e.supportsRenderingOptions),this.options.digitalZoomLevels>0){var j=this.options.digitalZoomLevels+l-1,R=100-Math.round(100*this.options.digitalZoomLevels/j)-2;if(R>0&&R<=100){var D=this.element.querySelector(".ol-zoomslider");if(D){var F,N=window.getComputedStyle(D,null),B=document.createElement("div");B.className="pma-ui-viewport-container "+this.options.theme;var U=document.createElement("div");U.className=this.options.theme+" ol-zoomslider digital-zoom-levels",B.appendChild(U),D.appendChild(B),F=window.getComputedStyle(U,null).getPropertyValue("background-color"),D.removeChild(B),D.style.background="linear-gradient(to top, "+N.getPropertyValue("background-color")+" "+R+"%, "+F+" "+R+"%, "+F+" 100%)"}}}this.options.grid&&this.showGrid(this.options.grid.size,this.options.grid.color),this.map&&(this.map.on("change:size",Pe.bind(this)),Ie.call(this)),isNaN(this.imageInfo.DefaultGamma)||(this.imageAdjustments.gamma=this.imageInfo.DefaultGamma),e&&(e.Brightness&&(this.imageAdjustments.brightness=e.Brightness),e.Contrast&&(this.imageAdjustments.contrast=e.Contrast),e.Gamma&&(this.imageAdjustments.gamma=e.Gamma)),De.call(this,!1),this.options.annotations||"function"!=typeof this.readyCallback||this.readyCallback()}function $e(){var e=this,t=this.options.referenceImage.width,n=this.options.referenceImage.height,r="#ffffff";this.options.referenceImage&&(r=this.options.referenceImage.backgroundColor,this.referenceImage=this.options.referenceImage.src),this.imageInfo={Filename:"Pathomation",MicrometresPerPixelX:1,MicrometresPerPixelY:1,MaxZoomLevel:4,Width:32*t,Height:32*n,TimeFrames:[{TimeID:0,Layers:[{LayerID:0,Channels:[{ChannelID:0,Color:"ffffffff",Name:"Default",DefaultGamma:1,ExposureTime:0,EmmissionWaveLength:0},{ChannelID:1,Color:"ff0000ff",Name:"Default",DefaultGamma:1,ExposureTime:0,EmmissionWaveLength:0}]},{LayerID:1,Channels:[{ChannelID:0,Color:"ffffffff",Name:"Default",DefaultGamma:1,ExposureTime:0,EmmissionWaveLength:0},{ChannelID:1,Color:"ff0000ff",Name:"Default",DefaultGamma:1,ExposureTime:0,EmmissionWaveLength:0}]}]},{TimeID:1,Layers:[{LayerID:0,Channels:[{ChannelID:0,Color:"ffffffff",Name:"Default",DefaultGamma:1,ExposureTime:0,EmmissionWaveLength:0},{ChannelID:1,Color:"ff0000ff",Name:"Default",DefaultGamma:1,ExposureTime:0,EmmissionWaveLength:0}]},{LayerID:1,Channels:[{ChannelID:0,Color:"ffffffff",Name:"Default",DefaultGamma:1,ExposureTime:0,EmmissionWaveLength:0},{ChannelID:1,Color:"ff0000ff",Name:"Default",DefaultGamma:1,ExposureTime:0,EmmissionWaveLength:0}]}]}]},this.selectedTimeFrame=this.options.fov&&this.options.fov.timeframe?this.options.fov.timeframe:0,this.selectedLayer=this.options.fov&&this.options.fov.layer?this.options.fov.layer:0;for(var i=0;i<this.imageInfo.TimeFrames[0].Layers[0].Channels.length;i++){var o=this.imageInfo.TimeFrames[0].Layers[0].Channels[i];this.options.fov&&this.options.fov.channels?o.Active=this.options.fov.channels.includes(i):Object.prototype.hasOwnProperty.call(o,"Active")||(o.Active=!0),o.DefaultGamma?o.Gamma=o.DefaultGamma:o.Gamma=1}for(var a in this.channelsString=this.getActiveChannels().join(","),this.channelGammaString=this.getChannelGammaString(),ae(this.element,"pma-ui-viewport-container"),this.element.tabIndex<0&&(this.element.tabIndex=0),f.j)Object.prototype.hasOwnProperty.call(f.j,a)&&se(this.element,f.j[a]);ae(this.element,this.options.theme),this.element.innerHTML="",this.element.style.backgroundColor=r;var s=1;this.imageInfo.MicrometresPerPixelX&&this.imageInfo.MicrometresPerPixelX>0&&(s=this.imageInfo.MicrometresPerPixelX);var l=[-2*t,-2*n,2*t,2*n],c=new v.a.proj.Projection({code:"pixel",units:"pixels",extent:l,metersPerUnit:1e-6*s,getPointResolution:function(e,t){return e}}),d=new v.a.layer.Tile({source:new v.a.source.XYZ({tileUrlFunction:function(){return e.referenceImage},projection:c,wrapX:!1,attributions:"",crossOrigin:"PMA.UI",cacheSize:1/0,tileGrid:v.a.tilegrid.createXYZ({tileSize:[32*t,32*n],extent:l,maxZoom:4})}),preload:1/0,className:"ol-layer main-layer",extent:l});this.mainLayer=d,this.loading=0,this.loaded=0,this.progressEl=null;var u=this;this.options.loadingBar&&(this.loading=0,this.loaded=0,this.progressEl=document.createElement("div"),this.progressEl.className="ol-progress",this.imageInfo.TimeFrames[0].Layers[0].Channels.length>1&&(this.progressEl.className="ol-progress dark"),this.element.appendChild(this.progressEl),d.getSource().on("tileloadstart",(function(){0===u.loading&&(u.progressEl.style.visibility="visible"),++u.loading,Re.call(u)})),d.getSource().on("tileloadend",(function(){setTimeout((function(){++u.loaded,Re.call(u)}),100)})),d.getSource().on("tileloaderror",(function(){setTimeout((function(){++u.loaded,Re.call(u)}),100)})));var h=new v.a.interaction.DragZoom({condition:_.m,duration:this.options.panAnimations?this.options.animationDuration:0}),p=new v.a.interaction.DragRotate({condition:_.b}),m=[new v.a.control.Zoom({zoomInTipLabel:C.a.translate("Zoom in"),zoomOutTipLabel:C.a.translate("Zoom out")}),new S.a({tipLabel:C.a.translate("Previous view"),dragZoom:h})];m.push(new v.a.control.FullScreen({tipLabel:C.a.translate("Toggle fullscreen"),source:this.options.fullScreenElement,label:"â",labelActive:"â"}));var g=[d];this.options.keyboardPanFactor||0===this.options.keyboardPanFactor||(this.options.keyboardPanFactor=.5);var y=new v.a.interaction.DragPan({kinetic:new b.a(-.005,.05,100),onFocusOnly:!1});this.mouseWheelInteraction=new G({duration:this.options.mouseWheelZoomAnimations?this.options.animationDuration:0,maxDelta:1,deltaPerZoom:100,timeout:0,onFocusOnly:!1,condition:_.d,constrainResolution:!1});var E=1;0==this.options.keyboardZoomDelta?E=0:this.options.keyboardZoomDelta&&(E=this.options.keyboardZoomDelta),this.map=new x.a({interactions:[y,p,h,this.mouseWheelInteraction,new v.a.interaction.PinchZoom({constrainResolution:!1}),new v.a.interaction.PinchRotate,new v.a.interaction.DoubleClickZoom({duration:this.options.panAnimations?this.options.animationDuration:0}
799),new v.a.interaction.KeyboardZoom({delta:E})],layers:g,target:this.element,controls:m,view:new w.a({projection:c,center:v.a.extent.getCenter(l),zoom:1,maxZoom:4,rotation:0})}),Ge.call(this,this.element.querySelector(".ol-full-screen"),this.options.fullscreenControl),xe.call(this),this.options.customButtons&&ze.call(this,this.options.customButtons),this.options.position&&this.setPosition(this.options.position),this.options.fov&&this.options.fov.extent&&this.fitToExtent(this.options.fov.extent,1==this.options.fov.constrainResolution),this.options.fov&&this.options.fov.rotation&&this.setPosition({rotation:this.options.fov.rotation}),Xe.call(this),this.map&&(this.map.on("change:size",Pe.bind(this)),Ie.call(this)),this.options.annotations||"function"!=typeof this.readyCallback||this.readyCallback()}function Pe(){this.map.getSize()&&(Ie.call(this),xe.call(this))}function Ie(){var e=this.map.getSize();if(e&&(this.element.className=this.element.className.replace(/ xlg\b| lg\b| md\b| sm\b| xs\b/g,""),ae(this.element.querySelector(".ol-scale-line"),"ol-control"),e[0]>1200?(this.element.className+=" xlg",se(this.element.querySelector(".ol-scale-line"),"collapsed"),se(this.element.querySelector(".ol-filename"),"ol-collapsed")):e[0]>992?(this.element.className+=" lg",se(this.element.querySelector(".ol-scale-line"),"collapsed"),se(this.element.querySelector(".ol-filename"),"ol-collapsed")):e[0]>768?(this.element.className+=" md",se(this.element.querySelector(".ol-scale-line"),"collapsed"),se(this.element.querySelector(".ol-filename"),"ol-collapsed")):e[0]>360?this.element.className+=" sm":this.element.className+=" xs",this.element.className=this.element.className.replace(/ xlgh| lgh| mdh| smh| xsh/g,""),e[1]>1200?this.element.className+=" xlgh":e[1]>992?this.element.className+=" lgh":e[1]>768?this.element.className+=" mdh":e[1]>360?this.element.className+=" smh":this.element.className+=" xsh",this.overviewControl))if(e[0]<300||e[1]<300);else{var t=1/14;e[0]<500?t=1/6:e[0]<750?t=1/7:e[0]<1e3?t=1/8:e[0]<1250?t=1/9:e[0]<1500?t=.1:e[0]<1750?t=1/11:e[0]<2e3?t=1/12:e[0]<3e3&&(t=1/13),this.overviewControl.changeOverviewSizePx(Math.sqrt(e[0]*e[0])*t)}}function Le(){var e=this.element.querySelector(".ol-zoomslider");if(e){var t=e.querySelector(".objectives-scale");t&&e.removeChild(t);var n=window.getComputedStyle(e,null);if(0!==this.imageInfo.MicrometresPerPixelX){for(var r=parseFloat(n.getPropertyValue("padding-top"))+parseFloat(n.getPropertyValue("margin-top"))+parseFloat(n.getPropertyValue("border-top-width")),i=this.element.querySelector(".ol-zoomslider-thumb"),o=window.getComputedStyle(i,null),a=i.clientHeight+parseFloat(o.getPropertyValue("border-top-width"))+parseFloat(o.getPropertyValue("border-bottom-width")),s=e.clientHeight-a-r,l=10/this.imageInfo.MicrometresPerPixelX,c=this.options.digitalZoomLevels+this.imageInfo.MaxZoomLevel,d=s/c,u=[],h=0;h<=c;h++){var p=l/Math.pow(2,c-h-this.options.digitalZoomLevels);!1!==(p=Ae(p))?u.push({name:p+"X",height:d*h}):u.push({name:"",height:d*h})}if(u.length>0){var f=document.createElement("div");f.className="objectives-scale",e.appendChild(f);for(var m="",g=0;g<u.length;g++)m+='<div style="bottom: '+u[g].height+'px"><div>'+u[g].name+"</div></div>";f.innerHTML=m,f.style.height=s+"px",f.style.top=a/2+r+"px"}}}}function Ae(e){if(e>1){e=Me(e);for(var t=0;t<ne.length;t++)if(ne[t]===e)return ne[t]}return!1}function Me(e){return ne[ne.map((function(t){return Math.abs(1-t/e)})).reduce((function(e,t,n,r){return t<r[e]?n:e}),0)]}function je(e){var t=Me(10/this.imageInfo.MicrometresPerPixelX),n=this.map.getView().getResolution(),r=t/n;r>1?(r=Me(r),e.innerHTML=r+"X",e.style.display="block",n<1&&(e.innerHTML=r+"X / "+t+"X",e.style.display="block")):e.style.display="none"}function Re(){var e=this.loaded/this.loading*100;e>100&&(e=100);var t=e.toFixed(1)+"%";if(0==this.loaded&&(this.startLoadTime=performance.now()),this.progressEl.style.width=t,this.loading<=this.loaded){this.lastLoadTime=performance.now()-this.startLoadTime,this.startLoadTime=0,this.fireEvent(f.g.ViewLoaded,{time:this.lastLoadTime,tiles:this.loaded}),this.loading=0,this.loaded=0;var n=this;setTimeout((function(){n.loading===n.loaded&&(n.progressEl.style.visibility="hidden",n.progressEl.style.width=0)}),500)}}function De(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];null!=this.colorAdjustmentsControl&&this.colorAdjustmentsControl.update(this.imageAdjustments.brightness,this.imageAdjustments.contrast,this.imageAdjustments.gamma),e&&this.debouncedSetRenderingOptions.call(this),this.redraw()}function Fe(e,t,n,r,i,o){var a=e;if(0!=t.MicrometresPerPixelX){i||(i="24px serif"),o||(o="black"),r||(r="TopLeft");for(var s=n/t.MicrometresPerPixelX,l=0,c=1,d=0,u=a.canvas.width,h=a.canvas.height;d<80;){var p=l/c;0==p?l=1:1==p?l=2:2==p?l=5:(l=1,c*=10),d=(l*=c)*s}var f="";l%1e3==0?(f=" mm",l/=1e3):f=" μm";var m=r.toLowerCase().startsWith("bottom")?h-40-20:20,g=r.toLowerCase().endsWith("right")?u-160-20:20;a.fillStyle="#ffffff77",a.fillRect(g-4,m-4,d+8,48),a.lineWidth=2;var v=m+20;a.beginPath(),a.moveTo(g,v),a.lineTo(g,v+20),a.moveTo(g,v+10),a.lineTo(g+d,v+10),a.moveTo(g+d,v+20),a.lineTo(g+d,v),a.stroke(),a.font=i,a.fillStyle=o;var y=g+d/2-a.measureText("".concat(l," ").concat(f)).width/2;y=y<g?g:y,a.textBaseline="top",a.fillText("".concat(l," ").concat(f),y,m)}}function Ne(e,t,n,r,i){if(t&&e){r||(r="32px serif"),i||(i="black"),n||(n="Top");var o=e.canvas.height;e.font=r,e.fillStyle=i,e.strokeStyle="white",e.lineWidth=4;var a=e.measureText(t),s=e.canvas.width/2-a.width/2,l=n.toLowerCase().startsWith("bottom")?o-20:20,c=n.toLowerCase();e.textBaseline=c,e.strokeText(t,s,l),e.fillText(t,s,l)}}function Be(e,t,n){return new Promise((function(r,i){var o=t&&t.imageInfo;if(t&&e&&o)if(o.AssociatedImageTypes.indexOf("Barcode")<0)r();else{var a=new Image;a.crossOrigin="anonymous",a.onload=function(){var t=.12*e.canvas.width,n=t*(a.height/a.width),i=e.canvas.width-t-20;e.lineWidth=2,e.drawImage(a,i,20,t,n),e.strokeStyle="black",e.strokeRect(i,20,t+2,n+2),e.strokeStyle="white",e.strokeRect(i+2,22,t-2,n-2),r()},a.onerror=i,a.src=function(e,t){return e.getActiveServerUrl()+"barcode?sessionID="+encodeURIComponent(e.getSessionID())+"&pathOrUid="+encodeURIComponent(e.imageInfo.Filename)+(t?"&rotation="+t:"")}(t,n)}else r()}))}function Ue(e,t){return new Promise((function(n,r){var i=.2*e.canvas.width/t.imageInfo.Width,o=t.imagesUrl+"region?pathOrUid="+encodeURIComponent(t.image)+"&format=jpg&timeframe="+t.selectedTimeFrame+"&layer="+t.selectedLayer+"&channels="+t.channelsString+"&channelClipping="+t.channelClippingString+"&channelColor="+t.channelColorString+"&sessionID="+encodeURIComponent(t.sessionID)+"&drawScaleBar=false&x=0&y=0&width="+t.imageInfo.Width+"&height="+t.imageInfo.Height+"&scale="+i,a=new Image;a.crossOrigin="anonymous",a.onload=function(){var t=.2*e.canvas.width,r=t*(a.height/a.width),i=e.canvas.width-t-20,o=e.canvas.height-r-20;e.drawImage(a,i,o,t,r),e.lineWidth=2,e.strokeStyle="black",e.strokeRect(i,o,t+2,r+2),e.strokeStyle="white",e.strokeRect(i+2,o+2,t-2,r-2),n()},a.onerror=r,a.src=o}))}function ze(e){if(null!=e&&e.length>0&&this.element){for(var t=f.d.S,n={},r=0;r<e.length;r++)if(e[r].location){var i=e[r].location;(n[i]=n[i]||[]).push(e[r])}else(n[t]=n[t]||[]).push(e[r]);for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var a=document.createElement("div");for(a.className="ol-unselectable ol-control ol-pma-custom-btn ol-custom-control "+o.toString(),r=0;r<n[o].length;r++){var s=n[o][r],l=document.createElement("button");l.title=s.title?s.title:"",l.innerHTML=s.content?s.content:"",l.className=s.class?
799s.class:"","function"==typeof s.callback&&l.addEventListener("click",s.callback.bind(this)),a.appendChild(l)}this.element.querySelector(".ol-overlaycontainer-stopevent").appendChild(a)}}}function Ge(e,t){if(e)if(!1===t)ae(e,"ol-hidden");else{if(oe(e,"ol-dimension-selector")&&Object(P.b)(this.imageInfo.TimeFrames[0].Layers[0]))return;se(e,"ol-hidden")}}function Ve(e){return!!e&&!oe(e,"ol-hidden")}function qe(e){var t=this.element.querySelector(".ol-scale-line");t&&(Ge.call(this,t,e.visible),!0===e.collapsed?(ae(t,"collapsed"),te.scaleLine.collapsed=!0):(se(t,"collapsed"),te.scaleLine.collapsed=!1))}function He(e){for(var t=0;t<e.length;t++){var n=e[t];n.control==f.e.ZoomSlider?Ge.call(this,this.element.querySelector(".ol-zoomslider"),n.visible):n.control==f.e.ScaleLine?this.imageInfo&&this.imageInfo.MicrometresPerPixelY&&0!==this.imageInfo.MicrometresPerPixelY&&this.imageInfo.MicrometresPerPixelX&&0!==this.imageInfo.MicrometresPerPixelX&&qe.call(this,n):n.control==f.e.Overview?(Ge.call(this,this.element.querySelector(".ol-overview"),n.visible),this.overviewControl&&this.overviewControl.setCollapsed(n.collapsed)):n.control==f.e.Barcode?(Ge.call(this,this.element.querySelector(".ol-associated-image"),n.visible),this.barcodeControl&&(this.barcodeControl.setCollapsed(n.collapsed),this.barcodeControl.setRotation(n.rotation))):n.control==f.e.Magnifier?this.magnifierControl&&this.magnifierControl.setCollapsed(n.visible):n.control==f.e.ColorAdjustments?Ge.call(this,this.element.querySelector(".ol-brightness-contrast"),n.visible):n.control==f.e.LayerSwitch?(Ge.call(this,this.element.querySelector(".ol-layerswitch"),n.visible),this.layerSwitcher&&this.layerSwitcher.setCollapsed(n.collapsed)):n.control==f.e.DimensionSelector?(Ge.call(this,this.element.querySelector(".ol-dimension-selector"),n.visible),this.dimensionsControl&&this.dimensionsControl.setCollapsed(n.collapsed)):n.control==f.e.Filename?(Ge.call(this,this.element.querySelector(".ol-filename"),n.visible),this.filenameControl&&this.filenameControl.setCollapsed(n.collapsed)):n.control==f.e.Snapshot?Ge.call(this,this.element.querySelector(".ol-snapshot"),n.visible):n.control==f.e.Rotation?(Ge.call(this,this.element.querySelector(".ol-rotation"),n.visible),this.rotationControl&&this.rotationControl.setCollapsed(n.collapsed)):n.control==f.e.Attribution?Ge.call(this,this.element.querySelector(".ol-attr"),n.visible):n.control==f.e.Fullscreen&&Ge.call(this,this.element.querySelector(".ol-full-screen"),n.visible)}}function We(){var e=this.element.querySelector(".ol-scale-line");return[{control:f.e.ZoomSlider,visible:Ve.call(this,this.element.querySelector(".ol-zoomslider"))},{control:f.e.ScaleLine,visible:this.scaleLineControl&&Ve.call(this,this.element.querySelector(".ol-scale-line")),collapsed:!!e&&oe(e,"collapsed")},{control:f.e.Overview,visible:Ve.call(this,this.element.querySelector(".ol-overview")),collapsed:this.overviewControl&&this.overviewControl.getCollapsed()},{control:f.e.Barcode,visible:Ve.call(this,this.element.querySelector(".ol-associated-image")),collapsed:this.barcodeControl&&this.barcodeControl.getCollapsed(),rotation:this.barcodeControl?this.barcodeControl.rotation:0},{control:f.e.Magnifier,visible:this.magnifierControl&&this.magnifierControl.getCollapsed()},{control:f.e.ColorAdjustments,visible:Ve.call(this,this.element.querySelector(".ol-brightness-contrast"))},{control:f.e.LayerSwitch,visible:!!this.layerSwitcher&&Ve.call(this,this.element.querySelector(".ol-layerswitch")),collapsed:!!this.layerSwitcher&&this.layerSwitcher.getCollapsed()},{control:f.e.DimensionSelector,visible:this.dimensionsControl&&Ve.call(this,this.element.querySelector(".ol-dimension-selector")),collapsed:!!this.dimensionsControl&&this.dimensionsControl.getCollapsed()},{control:f.e.Filename,visible:this.filenameControl&&Ve.call(this,this.element.querySelector(".ol-filename")),collapsed:!!this.filenameControl&&this.filenameControl.getCollapsed(),filename:null},{control:f.e.Snapshot,visible:this.snapShotControl&&Ve.call(this,this.element.querySelector(".ol-snapshot"))},{control:f.e.Rotation,visible:this.rotationControl&&Ve.call(this,this.element.querySelector(".ol-rotation")),collapsed:!!this.rotationControl&&this.rotationControl.getCollapsed()},{control:f.e.Attribution,visible:!!this.attributionControl&&Ve.call(this,this.element.querySelector(".ol-attr")),options:null}]}function Ye(e){this.zoomSliderControl=new v.a.control.ZoomSlider({duration:this.options.panAnimations?this.options.animationDuration:0}),this.map.addControl(this.zoomSliderControl),this.zoomSliderControl.element.title="Drag to zoom in and out",!1===this.options.zoomSlider&&Ge.call(this,this.element.querySelector(".ol-zoomslider"),!1);for(var t=this.imageInfo.MetaData,n=0;n<t.length;n++)if("compression"===t[n].Name){"Jpeg2000YCbCr"!==t[n].Value&&"Jpeg2000RGB"!==t[n].Value&&"Jpeg2000"!==t[n].Value&&-1===t[n].Value.indexOf("JPEG 2000")&&t[n].Value;break}
799if(this.options.attributions&&(this.attributionControl=new I.a(this.options.attributions),this.map.addControl(this.attributionControl)),this.colorAdjustmentsControl=new A.a({layer:this.mainLayer,viewer:this}),this.map.addControl(this.colorAdjustmentsControl),Ge.call(this,this.element.querySelector(".ol-brightness-contrast"),this.options.colorAdjustments),this.options.annotationsLayers&&this.imageInfo.AnnotationsLayers&&this.imageInfo.AnnotationsLayers.length>0&&(this.layerSwitcher=new L.a({pmaViewport:this,tipLabel:C.a.translate("Layers"),collapsed:!(!this.options.annotationsLayers||!this.options.annotationsLayers.collapsed),stateManager:te}),this.map.addControl(this.layerSwitcher)),this.overviewControl=Te.call(this),this.map.addControl(this.overviewControl),Ge.call(this,this.element.querySelector(".ol-overview"),this.options.overview),this.imageInfo.AssociatedImageTypes)for(var r=0;r<this.imageInfo.AssociatedImageTypes.length;r++)if("barcode"==this.imageInfo.AssociatedImageTypes[r].toLowerCase()){var i=0,o=!1;this.options.barcode&&(this.options.barcode.rotation&&(i=this.options.barcode.rotation),this.options.barcode.collapsed&&(o=this.options.barcode.collapsed)),this.barcodeControl=new T.a({pmaViewport:this,rotation:i,collapsed:o,imageType:"barcode",tipLabel:C.a.translate("Barcode"),stateManager:te}),this.map.addControl(this.barcodeControl),Ge.call(this,this.element.querySelector(".ol-associated-image"),this.options.barcode);break}this.dimensionsControl=new P.a({pmaViewport:this,supportsRenderingOptions:!0===e,tipLabel:C.a.translate("Channels"),collapsed:this.options.dimensions&&this.options.dimensions.collapsed,stateManager:te}),this.map.addControl(this.dimensionsControl),this.dimensionsControl.renderSliders(),Ge.call(this,this.element.querySelector(".ol-dimension-selector"),this.options.dimensions);var a=this,s={onClick:function(){a.fireEvent(f.g.FilenameClick,a)},stateManager:te};"string"==typeof this.options.filename?s.filename=a.options.filename:"function"==typeof this.options.filename?s.filename=a.options.filename.call(a,{serverUrl:a.getActiveServerUrl(),path:a.imageInfo.Filename}):s.filename=a.imageInfo.Filename,this.filenameControl=new $.a(s),this.map.addControl(this.filenameControl),Ge.call(this,this.element.querySelector(".ol-filename"),this.options.filename),te.scaleLine||(te.scaleLine={}),this.scaleLineControl=new v.a.control.ScaleLine,this.map.addControl(this.scaleLineControl);var l,c=this.element.querySelector(".ol-scale-line");if(c){0==this.options.scaleLine&&qe.call(this,{visible:!1,collapsed:te.scaleLine.collapsed}),!0===te.scaleLine.collapsed&&ae(c,"collapsed");var d=document.createElement("div");d.className="scanResolution",je.call(this,d),c.appendChild(d);var u=this;this.map.getView().on("change:resolution",(function(){je.call(u,d)})),ie(c,"click",(function(){oe(c,"collapsed")?(se(c,"collapsed"),te.scaleLine.collapsed=!1):(ae(c,"collapsed"),te.scaleLine.collapsed=!0)}))}this.snapShotControl=new O.a({pmaViewport:this,tipLabel:C.a.translate("Snapshot")}),this.map.addControl(this.snapShotControl),Ge.call(this,this.element.querySelector(".ol-snapshot"),1==this.options.snapshot);try{l=!0===this.options.rotationControl.collapsed}catch(e){l=!1}this.rotationControl=new E.a({pmaViewport:this,resetTipLabel:C.a.translate("Reset rotation"),flipHorizontallyTipLabel:C.a.translate("Flip horizontally"),flipVerticallyTipLabel:C.a.translate("Flip vertically"),collapsed:l}),this.map.addControl(this.rotationControl),Ge.call(this,this.element.querySelector(".ol-rotation"),!(!1===this.options.rotationControl)),this.magnifierControl=ke.call(this,null,!this.options.magnifier||this.options.magnifier&&!0===this.options.magnifier.collapsed),this.map.addControl(this.magnifierControl),Le.call(this)}function Xe(){this.zoomSliderControl=new v.a.control.ZoomSlider({duration:this.options.panAnimations?this.options.animationDuration:0}),this.map.addControl(this.zoomSliderControl),!1===this.options.zoomSlider&&Ge.call(this,this.element.querySelector(".ol-zoomslider"),!1),this.colorAdjustmentsControl=new A.a({layer:this.mainLayer,viewer:this}),this.map.addControl(this.colorAdjustmentsControl),Ge.call(this,this.element.querySelector(".ol-brightness-contrast"),this.options.colorAdjustments),this.overviewControl=Te.call(this),this.map.addControl(this.overviewControl),Ge.call(this,this.element.querySelector(".ol-overview"),this.options.overview);var e=0,t=!1;this.options.barcode&&(this.options.barcode.rotation&&(e=this.options.barcode.rotation),this.options.barcode.collapsed&&(t=this.options.barcode.collapsed)),this.barcodeControl=new T.a({pmaViewport:this,rotation:e,collapsed:t,imageType:"barcode",tipLabel:C.a.translate("Barcode"),stateManager:te,url:this.referenceImage}),this.map.addControl(this.barcodeControl),Ge.call(this,this.element.querySelector(".ol-associated-image"),this.options.barcode),this.dimensionsControl
799=new P.a({pmaViewport:this,tipLabel:C.a.translate("Channels"),collapsed:this.options.dimensions&&this.options.dimensions.collapsed,stateManager:te}),this.map.addControl(this.dimensionsControl),this.dimensionsControl.renderSliders(),Ge.call(this,this.element.querySelector(".ol-dimension-selector"),this.options.dimensions);var n=this,r={onClick:function(){n.fireEvent(f.g.FilenameClick,n)},stateManager:te};"string"==typeof this.options.filename?r.filename=n.options.filename:"function"==typeof this.options.filename?r.filename=n.options.filename.call(n,{serverUrl:n.getActiveServerUrl(),path:n.imageInfo.Filename}):r.filename=n.imageInfo.Filename,this.filenameControl=new $.a(r),this.map.addControl(this.filenameControl),Ge.call(this,this.element.querySelector(".ol-filename"),this.options.filename),te.scaleLine||(te.scaleLine={}),this.scaleLineControl=new v.a.control.ScaleLine,this.map.addControl(this.scaleLineControl);var i,o=this.element.querySelector(".ol-scale-line");if(o){0==this.options.scaleLine&&qe.call(this,{visible:!1,collapsed:te.scaleLine.collapsed}),!0===te.scaleLine.collapsed&&ae(o,"collapsed");var a=document.createElement("div");a.className="scanResolution",je.call(this,a),o.appendChild(a);var s=this;this.map.getView().on("change:resolution",(function(){je.call(s,a)})),ie(o,"click",(function(){oe(o,"collapsed")?(se(o,"collapsed"),te.scaleLine.collapsed=!1):(ae(o,"collapsed"),te.scaleLine.collapsed=!0)}))}this.snapShotControl=new O.a({pmaViewport:this,tipLabel:C.a.translate("Snapshot")}),this.map.addControl(this.snapShotControl),Ge.call(this,this.element.querySelector(".ol-snapshot"),1==this.options.snapshot);try{i=!0===this.options.rotationControl.collapsed}catch(e){i=!1}this.rotationControl=new E.a({pmaViewport:this,resetTipLabel:C.a.translate("Reset rotation"),flipHorizontallyTipLabel:C.a.translate("Flip horizontally"),flipVerticallyTipLabel:C.a.translate("Flip vertically"),collapsed:i}),this.map.addControl(this.rotationControl),Ge.call(this,this.element.querySelector(".ol-rotation"),!(!1===this.options.rotationControl)),this.magnifierControl=ke.call(this,null,!this.options.magnifier||this.options.magnifier&&!0===this.options.magnifier.collapsed),this.map.addControl(this.magnifierControl),Le.call(this)}var Ke=n(257),Ze=n.n(Ke);function Je(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function et(){return tt.apply(this,arguments)}function tt(){return(tt=a()(h.a.mark((function e(){var t,n,r,o,a,s,l,c,d,u,p,f,m,g,v,y,b,_,w,x,C,S,E,k,T,O,$;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rt.call(this);case 2:for(t=e.sent,n=Ze()(t,2),r=n[0],o=n[1],a=r.r.length,s=[],l=0;l<a;l++)s[l]=Math.floor(.299*r.r[l]+.587*r.g[l]+.114*r.b[l]);for(c=st(s),d=[],u=0;u<c.length;u++)d.push(c[u]/a*100);for(p=d.findIndex((function(e){return e>=.01})),f=c.findIndex((function(e){return e===Math.max.apply(Math,i()(c))})),m=255/(f-p),g={},v=0,y=["r","g","b"];v<y.length;v++)for(g[b=y[v]]=[],_=0;_<a;_++)w=Math.max(Math.min(Math.round((r[b][_]-p)*m),255),0),g[b].push(w);for(x=[],C=0;C<a;C++)x[C]=Math.floor(.299*g.r[C]+.587*g.g[C]+.114*g.b[C]);for(S=Math.round(this.imageInfo.Width*o),E=[],k=[],T=0;T<a;T++)O=x[T]<=230?255:0,E.push(O);for(;E.length>0;)k.push(E.splice(0,S));$=lt.call(this,k,o),this.fitToExtent($,!1);case 28:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}var nt=function(e){return new Promise((function(t){var n=new Image;n.onload=function(){return t(n)},n.crossOrigin="Anonymous",n.src=e}))};function rt(){return it.apply(this,arguments)}function it(){return(it=a()(h.a.mark((function e(){var t,n,r,i,o,a,s,l;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.sessionID,n=this.getActiveLayer(),r=this.getActiveTimeFrame(),i=1e3/Math.max(this.imageInfo.Width,this.imageInfo.Height),o="".concat(this.serverUrls[0],"/region?pathOrUid=").concat(encodeURIComponent(this.imageInfo.Filename),"&format=jpg&timeframe=").concat(r,"&layer=").concat(n,"&sessionID=").concat(encodeURIComponent(t),"&x=0&y=0&width=").concat(this.imageInfo.Width,"&height=").concat(this.imageInfo.Height,"&scale=").concat(i),e.next=7,nt
799(o);case 7:return a=e.sent,s=ot(a),l=at(s),e.abrupt("return",[l,i]);case 11:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}var ot=function(e){var t=document.createElement("canvas");t.width=e.width,t.height=e.height;var n=t.getContext("2d");return n.drawImage(e,0,0),n.getImageData(0,0,e.width,e.height).data},at=function(e){for(var t=[],n=[],r=[],i=[],o=0;o<e.length;)t.push(e[o++]),n.push(e[o++]),r.push(e[o++]),i.push(e[o++]);return{r:t,g:n,b:r,a:i}},st=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256,r=new Array(n).fill(0),i=Je(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;r[o]++}}catch(e){i.e(e)}finally{i.f()}return r};function lt(e,t){for(var n=Ce.call(this),r=e.length,i=0,o=e[0].length,a=0,s=0;s<e.length;s++)for(var l=0;l<e[s].length;l++)255===e[s][l]&&(r=Math.min(r,l),i=Math.max(i,l),o=Math.min(o,s),a=Math.max(a,s));return o/=t,i/=t,a/=t,[(r/=t)+n.xPadding,o+n.yPadding,i+n.xPadding,a+n.yPadding]}function ct(e,t,n){for(var r=n.horizontally?-1:1,i=n.vertically?-1:1,o=0;o<e.length;o++)e[o][0]=(t.center[0]-e[o][0])*r,e[o][1]=(t.center[1]-e[o][1])*i}function dt(e,t,n){ct(n,e.getPosition(),e.getFlip()),ct(t,this.getPosition(),this.getFlip());var r,i,o,a,s,l,c,d,u,h,p,f,m,g,v=(i=t,o={x:(r=n)[0][0],y:r[0][1]},a={x:r[1][0],y:r[1][1]},s={x:i[0][0],y:i[0][1]},l={x:i[1][0],y:i[1][1]},c=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),d=Math.sqrt(Math.pow(l.x-s.x,2)+Math.pow(l.y-s.y,2))/c,u=Math.atan2(a.y-o.y,a.x-o.x),h=Math.atan2(l.y-s.y,l.x-s.x)-u,p=o.x*d,f=o.y*d,m=Math.cos(h)*p-Math.sin(h)*f,g=Math.sin(h)*p+Math.cos(h)*f,{translation:{x:s.x-m,y:s.y-g},rotation:h,scale:d,flip:[(a.x-o.x)*(l.x-s.x)<0,(a.y-o.y)*(l.y-s.y)<0]}),y=e.getFlip(),b=this.getFlip(),_=e.getPosition().rotation+v.rotation;y.horizontally===b.horizontally&&y.vertically===b.vertically||(_*=-1);var w=this.getPosition();w.resolution=e.getPosition().resolution*v.scale,delete w.zoom,console.log("rotation = ".concat(_,", flip2.horizontally = ").concat(b.horizontally,", flip2.vertically = ").concat(b.vertically)),w.center[0]-=v.translation.x,w.center[1]-=v.translation.y,w.rotation=_,this.setPosition(w),this.setFlip(y.horizontally,y.vertically)}var ut=n(166),ht=n(55);function pt(){var e=document.createElement("div");e.className="pma-ui-viewport-tooltip pma-ui-viewport-tooltip-measure";var t=new ut.a({element:e,offset:[0,-15],positioning:"bottom-center",stopEvent:!1,insertFirst:!1});this.map.addOverlay(t),t.element=e,e.parentElement.style.display="block";var n=this;return ie(e,"click",(function(){n.map.removeOverlay(t),n.measureLayer.getSource().removeFeature(t.sketch),e.parentNode&&e.parentNode.removeChild(e),e=null})),t}function ft(e){if(!this.measureDraw){e="area"===e?"Polygon":"LineString",this.measureDraw=new v.a.interaction.Draw({source:this.measureLayer.getSource(),type:e,geometryFunction:null,style:new v.a.style.Style({fill:new v.a.style.Fill({color:"rgba(255, 255, 255, 0.2)"}),stroke:new v.a.style.Stroke({color:"rgba(0, 0, 0, 0.5)",lineDash:[10,10],width:2}),image:new v.a.style.Circle({radius:5,stroke:new v.a.style.Stroke({color:"rgba(0, 0, 0, 0.7)"}),fill:new v.a.style.Fill({color:"rgba(255, 255, 255, 0.2)"})})}),condition:"Polygon"===e?_.n:_.j,freehandCondition:"Polygon"===e?_.j:_.i}),this.map.addInteraction(this.measureDraw);var t,n,r=this,i=pt.call(this);this.measureTooltips.push(i),this.measureDraw.on("drawstart",(function(e){n=e.feature,i.sketch=n;var o=e.coordinate;t=n.getGeometry().on("change",(function(e){var t,n=e.target;n instanceof v.a.geom.Polygon?(t=vt.call(r,n),o=n.getInteriorPoint().getCoordinates()):n instanceof v.a.geom.LineString&&(t=gt.call(r,n),o=n.getLastCoordinate()),i.element.innerHTML=t,i.setPosition(o)}))}),this),this.measureDraw.on("drawend",(function(){i.element.className="pma-ui-viewport-tooltip pma-ui-viewport-tooltip-static",i.setOffset([0,-7]),i.sketch=n,n=null,Object(ht.b)(t),setTimeout((function(){mt.call(r)}),100)}),this)}}function mt(e){if(this.measureDraw&&(this.map.removeInteraction(this.measureDraw),this.measureDraw=null,this.fireEvent(f.g.MeasurementStop,this)),1==e)for(;this.measureTooltips.length>0;){var t=this.measureTooltips.pop();if(this.map.removeOverlay(t),t.sketch){try{this.measureLayer.getSource().removeFeature
799(t.sketch)}catch(e){}t.element.parentNode&&t.element.parentNode.removeChild(t.element)}}}function gt(e){if(0===this.imageInfo.MicrometresPerPixelX)return e.getLength()+" px";var t=e.getLength()*this.imageInfo.MicrometresPerPixelX;return t>=1e3?Math.round(10*t/1e3)/10+" mm":Math.round(10*t)/10+" μm"}function vt(e){if(0===this.imageInfo.MicrometresPerPixelX)return e.getArea()+" px<sup>2</sup>";var t=e.getArea()*this.imageInfo.MicrometresPerPixelX*this.imageInfo.MicrometresPerPixelX;return t>1e5?Math.round(10*t/1e6)/10+" mm<sup>2</sup>":Math.round(10*t)/10+" μm<sup>2</sup>"}var yt,bt=n(258),_t=n(0),wt=n(22),xt=n(104),Ct=n(65),St=n(67);var Et="p".charCodeAt(0),kt="H".charCodeAt(0),Tt="Y".charCodeAt(0),Ot="s".charCodeAt(0);function $t(e,t){var n=e.slice(0,33);return new Promise((function(r){var i=new FileReader;i.onload=function(){var n=new Uint8Array(i.result),o=e.slice(33),a=function(e,t,n,r){if("image/jpeg"===n)return e[13]=1,e[14]=t>>8,e[15]=255&t,e[16]=t>>8,e[17]=255&t,e;if("image/png"===n){var i=new Uint8Array(13);t*=39.3701,i[0]=Et,i[1]=kt,i[2]=Tt,i[3]=Ot,i[4]=t>>>24,i[5]=t>>>16,i[6]=t>>>8,i[7]=255&t,i[8]=i[4],i[9]=i[5],i[10]=i[6],i[11]=i[7],i[12]=1;var o=function(e){var t=-1;yt||(yt=function(){for(var e=new Int32Array(256),t=0;t<256;t++){for(var n=t,r=0;r<8;r++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e}());for(var n=0;n<e.length;n++)t=yt[255&(t^e[n])]^t>>>8;return-1^t}(i),a=new Uint8Array(4);if(a[0]=o>>>24,a[1]=o>>>16,a[2]=o>>>8,a[3]=255&o,r){var s=function(e){for(var t=e.length-1;t>=4;t--)if(9===e[t-4]&&e[t-3]===Et&&e[t-2]===kt&&e[t-1]===Tt&&e[t]===Ot)return t-3}(e);return e.set(i,s),e.set(a,s+13),e}var l=new Uint8Array(4);l[0]=0,l[1]=0,l[2]=0,l[3]=9;var c=new Uint8Array(54);return c.set(e,0),c.set(l,33),c.set(i,37),c.set(a,50),c}}(n,t,e.type);r(new Blob([a,o],{type:e.type}))},i.readAsArrayBuffer(n)}))}var Pt=n(2),It=function(){function e(t,n,r){if(l()(this,e),this.options=t,Object.prototype.hasOwnProperty.call(this.options,"magnifier")||(this.options.magnifier=!1),Object.prototype.hasOwnProperty.call(this.options,"colorAdjustments")||(this.options.colorAdjustments=!1),Object.prototype.hasOwnProperty.call(this.options,"annotations")||(this.options.annotations=!1),Object.prototype.hasOwnProperty.call(this.options,"fullscreenControl")||(this.options.fullscreenControl=!0),this.readyCallback=n,this.failCallback=r,this.options.flip||(this.options.flip={horizontally:!1,vertically:!1}),Object(p.b)(t.element)){if("string"!=typeof t.caller&&this.image)throw"function"==typeof this.failCallback&&this.failCallback(),"Caller parameter not supplied";if("string"!=typeof t.theme&&(t.theme="default"),!t.element)throw"function"==typeof this.failCallback&&this.failCallback(),"No element provided";if(t.element instanceof HTMLElement)this.element=t.element;else if("string"==typeof t.element){var i=document.querySelector(t.element);if(!i)throw"Invalid selector for element";this.element=i}if(this.userInfo=null,this.imageInfo=t.imageInfo,t.image)this.image=t.image;else if(this.imageInfo)this.image=this.imageInfo.Filename;else if(!(t.referenceImage&&t.referenceImage.src&&t.referenceImage.width&&t.referenceImage.height))throw"function"==typeof this.failCallback&&this.failCallback(),"No image path, UID or reference image provided";if(t.sessionID)this.sessionID=t.sessionID;else if(t.username||t.password){if(this.username=t.username,this.password=t.password,!t.username||!t.password)throw"function"==typeof this.failCallback&&this.failCallback(),"Username and/or password not provided"}else if(this.image)throw"function"==typeof this.failCallback&&this.failCallback(),"SessionID or Username not provided. Cannot login.";if(t.serverUrls&&t.serverUrls instanceof Array&&t.serverUrls.length>0)this.serverUrls=t.serverUrls;else if(!this.imageInfo&&this.image)throw"function"==typeof this.failCallback&&this.failCallback(),"Server URLs not provided or is not an array and no image info was given.";this.overviewControl=null,this.dimensionsControl=null,this.barcodeControl=null,this.colorAdjustmentsControl=null,this.rotationControl=null,this.layerSwitcher=null,this.mouseWheelInteraction=null,this.measureDraw=null,this.zoomSliderControl=null,this.scaleLineControl=null,this.magnifierControl=null,this.filenameControl=null,this.snapShotControl=null,this.attributionControl
799=null,this.serviceUrl=null,this.imagesUrl=null,this.channelsString=null,this.channelClippingString=null,this.channelColorString=null,this.channelGammaString=null,this.shouldShowGrid=!1,this.imageAdjustments={brightness:0,contrast:1,gamma:1,rgb:[1,1,1],tileTransformers:[]},void 0===this.options.loadingBar&&(this.options.loadingBar=!0),void 0===this.options.annotationsLayers&&(this.options.annotationsLayers=!0),void 0===this.options.animationDuration&&(this.options.animationDuration=0),this.listeners={},this.listeners[f.g.DimensionsChanged]=[],this.listeners[f.g.ViewChanged]=[],this.listeners[f.g.TilesError]=[],this.listeners[f.g.SlideLoadError]=[],this.listeners[f.g.FilenameClick]=[],this.listeners[f.g.AnnotationLayerChanged]=[],this.listeners[f.g.MeasurementStop]=[],this.listeners[f.g.ViewLoaded]=[],this.map=null,this.debounceFn=function(e,t){return function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(this.timeoutId),this.timeoutId=setTimeout((function(){return e.apply(n,i)}),t)}},this.debouncedSetRenderingOptions=this.debounceFn(we.bind(this),1e3),re.call(this)}}return d()(e,[{key:"alignViewports",value:function(e,t,n){dt.call(this,e,t,n)}},{key:"calculateArea",value:function(e){if(0===this.imageInfo.MicrometresPerPixelX)return 0;var t=null;if(e instanceof v.a.geom.Polygon)t=e.getCoordinates()[0];else{if(e instanceof v.a.geom.LineString)return 0;if(!(e instanceof v.a.geom.Circle)){if(e instanceof v.a.geom.GeometryCollection){for(var n=e.getGeometries(),r=0,i=0;i<n.length;i++)r+=this.calculateArea.call(this,n[i]);return r}return 0}t=Object(wt.b)(e).getCoordinates()[0]}for(var o=[],a=0;a<t.length;a++)o.push([t[a][0]*this.imageInfo.MicrometresPerPixelX,t[a][1]*this.imageInfo.MicrometresPerPixelY]);var s=new v.a.geom.Polygon([o]),l=s.getArea();return s=null,l}},{key:"calculateLength",value:function(e){if(0===this.imageInfo.MicrometresPerPixelX)return 0;var t=null;if(e instanceof v.a.geom.Polygon)t=e.getCoordinates()[0];else if(e instanceof v.a.geom.LineString)t=e.getCoordinates();else{if(!(e instanceof v.a.geom.Circle)){if(e instanceof v.a.geom.GeometryCollection){for(var n=e.getGeometries(),r=0,i=0;i<n.length;i++)r+=this.calculateLength.call(this,n[i]);return r}return 0}t=Object(wt.b)(e).getCoordinates()[0]}for(var o=[],a=0;a<t.length;a++)o.push([t[a][0]*this.imageInfo.MicrometresPerPixelX,t[a][1]*this.imageInfo.MicrometresPerPixelY]);var s=new v.a.geom.LineString(o),l=s.getLength();return s=null,l}},{key:"formatLength",value:function(e){return 0===this.imageInfo.MicrometresPerPixelX?0:e<=0?"":(!this.options.annotations||!0!==this.options.annotations.alwaysDisplayInMicrons)&&e>=1e3?Math.round(10*e/1e3)/10+" mm":Math.round(10*e)/10+" μm"}},{key:"formatArea",value:function(e){if(0===this.imageInfo.MicrometresPerPixelX)return"";if(e<=0)return"";var t=String.fromCharCode("2".charCodeAt(0)+128);return(!this.options.annotations||!0!==this.options.annotations.alwaysDisplayInMicrons)&&e>=1e5?Math.round(10*e/1e6)/10+" mm"+t:Math.round(10*e)/10+" μm"+t}},{key:"getAnnotationTextStyle",value:function(e,t){var n=this.getAnnotationFormattedLabel(e);return new xt.a({text:n,textAlign:"center",textBaseline:"bottom",placement:"point",overflow:!0,font:"normal 16px Tahoma",fill:new Ct.a({color:"#000000"}),stroke:new St.a({color:"#ffffff",width:2})})}},{key:"getAnnotationFormattedLabel",value:function(e){var t="";if(this.options.annotations&&e&&e.metaData&&(!1!==this.options.annotations.labels&&e.metaData.Notes&&(t=e.metaData.Notes),!1!==this.options.annotations.showMeasurements)){var n=e.getGeometry().getType();Object.prototype.hasOwnProperty.call(e.metaData,"Dimensions")&&!isNaN(e.metaData.Dimensions)?e.metaData.Dimensions>1?t+="\n"+e.metaData.FormattedArea:e.metaData.Dimensions>0&&(t+="\n"+e.metaData.FormattedLength):-1!==n.indexOf("LineString")?t+="\n"+e.metaData.FormattedLength:-1===n.indexOf("Polygon")&&-1===n.indexOf("Circle")||(t+="\n"+e.metaData.FormattedArea)}return t}},{key:"showAnnotation",value:function(e,t){if(null!==e&&!isNaN(e)){this.hiddenAnnotations||(this.hiddenAnnotations=[]);var n=null;if(t){for(var r=0;r<this.hiddenAnnotations.length;r++)if(this.hiddenAnnotations[r].getId()==e)return n=this.hiddenAnnotations.splice(r,1),void this.annotationsLayer.getSource().addFeatures(n)}else(n=this.annotationsLayer.getSource().getFeatureById(e))&&(this.annotationsLayer.getSource().removeFeature
799(n),this.hiddenAnnotations.push(n))}}},{key:"showAnnotationsByFingerprint",value:function(e){var t=this;e&&(this.forceLoadedAnnotationsByFingerprint||this.options.annotations.loadAnnotationsByFingerprint||(be.call(this,(function(e){t.reloadAnnotations(null,e)})),this.forceLoadedAnnotationsByFingerprint=!0)),this.hiddenAnnotationsByFingerprint||(this.hiddenAnnotationsByFingerprint=[]);var n=null,r=this.annotationsLayer.getSource().getFeatures();if(e)for(var i=this.hiddenAnnotationsByFingerprint.length;i>0;i--)n=this.hiddenAnnotationsByFingerprint.pop(),this.annotationsLayer.getSource().addFeature(n);else for(var o=0;o<r.length;o++)(n=r[o]).metaData.Image!==this.imageInfo.Filename&&(this.annotationsLayer.getSource().removeFeature(n),this.hiddenAnnotationsByFingerprint.push(n))}},{key:"showAnnotations",value:function(e){this.annotationsLayer&&this.annotationsLayer.setVisible(e)}},{key:"getAnnotationLabelsVisible",value:function(){return!!this.annotationsLayer&&!0===this.options.annotations.labels}},{key:"showAnnotationsLabels",value:function(e,t){if(this.annotationsLayer){var n=this;if(void 0!==t){if(this.options.annotations.labels===e&&this.options.annotations.showMeasurements===t)return;this.options.annotations.showMeasurements=t}else t=this.options.annotations.showMeasurements;this.options.annotations.labels=e,this.annotationsLayer.getSource().forEachFeature((function(r){var i=r.getStyle(),o=null;if(i instanceof Array){for(var a=0;a<i.length;a++)if(i[a].getText()){o=i[a];break}}else o=i;if(o)try{"function"==typeof o&&(o=o(r)),e||t?o.getText().setText(n.getAnnotationFormattedLabel(r)):o.getText().setText("")}catch(e){console.error(e)}}),this),this.annotationsLayer.changed()}}},{key:"getAnnotations",value:function(){return this.annotationsLayer?this.hiddenAnnotations&&this.hiddenAnnotations.length>0?this.annotationsLayer.getSource().getFeatures().concat(this.hiddenAnnotations).filter((function(e){return!!e.metaData})):this.annotationsLayer.getSource().getFeatures().filter((function(e){return!!e.metaData})):null}},{key:"getActiveChannels",value:function(){for(var e=[],t=0;t<this.imageInfo.TimeFrames[0].Layers[0].Channels.length;t++)this.imageInfo.TimeFrames[0].Layers[0].Channels[t].Active&&e.push(t);return e}},{key:"setActiveChannels",value:function(e){for(var t=0;t<this.imageInfo.TimeFrames[0].Layers[0].Channels.length;t++)this.imageInfo.TimeFrames[0].Layers[0].Channels[t].Active=!1;for(t=0;t<e.length;t++)this.imageInfo.TimeFrames[0].Layers[0].Channels[e[t]].Active=!0;this.channelsString=this.getActiveChannels().join(","),this.channelClippingString=this.getChannelClippingString(),this.channelGammaString=this.getChannelGammaString(),this.channelColorString=this.getChannelColorString(),this.debouncedSetRenderingOptions.call(this),this.redraw(),this.fireEvent(f.g.DimensionsChanged,this)}},{key:"getChannelRenderingOptions",value:function(e){if(e&&Number.isInteger(e.index)){var t=this.imageInfo.TimeFrames[0].Layers[0].Channels[e.index];return t?[{index:e.index,name:t.Name,color:t.UserOptions&&t.UserOptions.Color?t.UserOptions.Color:t.Color,defaultColor:t.Color,clipping:t.UserOptions?t.UserOptions.Clipping:null,gamma:t.UserOptions&&t.UserOptions.Gamma?t.UserOptions.Gamma:t.Gamma}]:void console.error("Channel not found!")}for(var n=this.imageInfo.TimeFrames[0].Layers[0].Channels,r=[],i=0;i<n.length;i++){var o=n[i];r.push({index:i,name:o.Name,color:o.UserOptions&&o.UserOptions.Color?o.UserOptions.Color:o.Color,defaultColor:o.Color,clipping:o.UserOptions?o.UserOptions.Clipping:null,gamma:o.UserOptions&&o.UserOptions.Gamma?o.UserOptions.Gamma:o.Gamma})}return r}},{key:"setChannelRenderingOptions",value:function(e){var t=this.imageInfo.TimeFrames[0].Layers[0].Channels[e.index];t.UserOptions={Clipping:e.clipping,Color:e.color?e.color:t.Color,Gamma:e.gamma?e.gamma:t.Gamma},this.channelClippingString=this.getChannelClippingString(),this.channelGammaString=this.getChannelGammaString(),this.channelColorString=this.getChannelColorString(),this.debouncedSetRenderingOptions.call(this),this.redraw(),this.fireEvent(f.g.DimensionsChanged,this)}},{key:"getChannelClippingString",value:function(){var e=this.imageInfo.TimeFrames[0].Layers[0].Channels;this.channelClippingString="";for(var t=0;t<e.length;t++)e[t].Active&&(this.channelClippingString.length>0&&(this.channelClippingString+=","),e[t].UserOptions&&e[t].UserOptions.Clipping||e[t].Clipping?this.channelClippingString+=e[t].UserOptions&&e[t].UserOptions.Clipping?e[t].UserOptions.Clipping[0]+","+e[t].UserOptions.Clipping[1]:e[t].Clipping[0]+","+e[t].Clipping[1]:this.channelClippingString+="null");return this.channelClippingString}},{key:"getChannelColorString",value:function(){var e=this.imageInfo.TimeFrames[0].Layers[0].Channels;this.channelColorString="";for(var t=0;t<e.length;t++)e[t].Active&&(this.channelColorString.length>0&&(this.channelColorString+=","),e[t].Color&&(this.channelColorString+=e[t].UserOptions&&e[t].UserOptions.Color?e[t].UserOptions.Color:e[t].Color));return this.channelColorString}},{key:"getChannelGammaString",value:function(){var e=this.imageInfo.TimeFrames[0].Layers[0].Channels;this.channelGammaString="";for(var t=0;t<e.length;t++)e[t].Active&&(this.channelGammaString.length>0&&(this.channelGammaString+=","),e[t].Gamma?this.channelGammaString+=e[t].UserOptions&&e[t].UserOptions.Gamma?e[t].UserOptions.Gamma:e[t].Gamma:this.channelGammaString+="1.0");return this.channelGammaString}},{key:"getActiveTimeFrame",value:function(){return this.selectedTimeFrame}},{key:"setActiveTimeFrame",value:function(e){(e=parseInt(e))>=0&&e<this.imageInfo.TimeFrames.length&&(this.selectedTimeFrame=e,this.redraw(),this.fireEvent(f.g.DimensionsChanged,this))}},{key:"getActiveLayer",value:function(){return this.selectedLayer}},{key:"setActiveLayer",value:function(e){(e=parseInt(e))>=0&&e<this.imageInfo.TimeFrames[this.selectedTimeFrame].Layers.length&&(this.selectedLayer=e,this.redraw(),this.fireEvent(f.g.DimensionsChanged,this))}},{key:"setFlip",value:function(e,t){if(this.image){var n=1==e,r=1==t,i=this.options.flip.horizontally!==n,o=this.options.flip.vertically!==r;if(i||o){var a,s=this.map.getView().getProjection().getExtent(),l=this.getPosition(),c=this.map.getView(),d=c.getProjection().getExtent(),u={extent:d,flip:this.options.flip},h=this.getAnnotations();if(h)for(a=0;a<h.length;a++)h[a].getGeometry().applyTransform(ge.bind(u));this.options.flip.horizontally=n,this.options.flip.vertically=r;var p=Se.call(this);
799if(this.map.setView(Ee.call(this,p,null,null,-c.getRotation())),u={extent:d=this.map.getView().getProjection().getExtent(),flip:this.options.flip},h)for(a=0;a<h.length;a++)h[a].getGeometry().applyTransform(ge.bind(u));this.options.grid&&this.shouldShowGrid&&this.showGrid(this.options.grid.size,this.options.grid.color);var m=this.getPosition();if(m.zoom=l.zoom,m.center[0]=i?d[0]+(s[2]-l.center[0]):d[0]+(l.center[0]-s[0]),m.center[1]=o?d[1]+(s[3]-l.center[1]):d[1]+(l.center[1]-s[1]),this.setPosition(m,null),this.redraw(),this.overviewControl){this.overviewControl.setMap(null);var g=Ve.call(this,this.element.querySelector(".ol-overview")),v=this.overviewControl&&this.overviewControl.getCollapsed();this.map.removeControl(this.overviewControl),this.overviewControl=Te.call(this),this.map.addControl(this.overviewControl),g||Ge.call(this,this.element.querySelector(".ol-overview"),!1),this.overviewControl.setCollapsed(v),Ie.call(this)}this.fireEvent(f.g.ViewChanged,this)}}}},{key:"getFlip",value:function(){return{horizontally:this.options.flip.horizontally,vertically:this.options.flip.vertically}}},{key:"redraw",value:function(){if(this.image&&this.map){for(var e,t=this.map.getLayers().getArray(),n=0;n<t.length;n++)if(t[n].getSource){if(t[n]===this.mainLayer){var r=this.imageInfo.MaxZoomLevel,i=Math.pow(2,r);if((e=new v.a.layer.Tile({source:new v.a.source.XYZ({tileUrlFunction:this.mainLayer.getSource().getTileUrlFunction().bind(this),tileLoadFunction:this.mainLayer.getSource().getTileLoadFunction().bind(this),projection:this.mainLayer.getSource().getProjection(),wrapX:!1,attributions:"",crossOrigin:"PMA.UI",cacheSize:1/0,tileGrid:v.a.tilegrid.createXYZ({tileSize:[this.imageInfo.TileSize,this.imageInfo.TileSize],extent:[0,0,i*this.imageInfo.TileSize,i*this.imageInfo.TileSize],maxZoom:r})}),className:"ol-layer main-layer",preload:1/0,extent:[0,0,i*this.imageInfo.TileSize,i*this.imageInfo.TileSize]})).set("active",!0,!0),this.mainLayer.set("active",!1,!0),this.options.loadingBar){Object(ht.b)(this.listeners.tileloadstart),Object(ht.b)(this.listeners.tileloadend),Object(ht.b)(this.listeners.tileloaderror),this.listeners.tileloadstart=[],this.listeners.tileloadend=[],this.listeners.tileloaderror=[],this.loading=0,this.loaded=0,Re.call(this);var o=this;this.listeners.tileloadstart.push(e.getSource().on("tileloadstart",(function(){0===o.loading&&(o.progressEl.style.visibility="visible"),++o.loading,Re.call(o)}))),this.listeners.tileloadend.push(e.getSource().on("tileloadend",(function(){setTimeout((function(){++o.loaded,Re.call(o)}),100)}))),this.listeners.tileloaderror.push(e.getSource().on("tileloaderror",(function(){setTimeout((function(){++o.loaded,Re.call(o)}),100)})))}setTimeout((function(e,t,n){e.removeLayer(t),n.setMap(e)}),1e4,this.map,this.mainLayer,this.overviewControl)}}else if(t[n].getLayers)for(var a=t[n].getLayers().getArray(),s=0;s<a.length;s++)a[s].getSource().refresh(),a[s].setZIndex(999);e&&(this.mainLayer=e,this.map.addLayer(this.mainLayer),this.mainLayer.setZIndex(900),this.annotationsLayer&&this.annotationsLayer.setZIndex(1e3),this.gridLayer&&this.gridLayer.setZIndex(5e3),this.measureLayer&&this.measureLayer.setZIndex(1e4))}}},{key:"zoomToObjective",value:function(e){if(this.imageInfo&&0!==this.imageInfo.MicrometresPerPixelX){var t;if("1:1"===e)t=1;else{if(e=parseFloat(e),isNaN(e)||0===e)return;t=10/this.imageInfo.MicrometresPerPixelX/e}this.map.getView().animate({resolution:t,duration:this.options.panAnimations?this.options.animationDuration:0})}}},{key:"getPosition",value:function(){if(!this.map)return null;var e=this.map.getView();return e?{center:e.getCenter(),zoom:e.getZoom(),resolution:e.getResolution(),rotation:e.getRotation()}:null}},{key:"setPosition",value:function(e,t){this.map&&this.map.getView().animate(Object.assign(e,{duration:this.options.panAnimations?this.options.animationDuration:0}))}},{key:"fitToExtent",value:function(e,t){this.map&&this.map.getView().fit(e,{size:this.map.getSize(),constrainResolution:t||!1})}},{key:"getCurrentExtent",value:function(e){if(this.map){var t=this.map.getView(),n=t.calculateExtent(this.map.getSize());return e?this.rotateExtent(n,-t.getRotation()):n}}},{key:"setSessionID",value:function(e){this.sessionID=e,this.redraw()}},{key:"getSessionID",value:function(){return this.sessionID}},{key:"login",value:function(e,t){e&&(this.username=e),t&&(this.password=t),fe.call(this,this.redraw)}},{key:"getViewportCoordinates",value:function(){var e=this.map.getSize(),t=[this.map.getCoordinateFromPixel([0,0]),this.map.getCoordinateFromPixel([e[0],0]),this.map.getCoordinateFromPixel([e[0],e[1]]),this.map.getCoordinateFromPixel([0,e[1]])],n=this.getFlip(),r=this.imageInfo.MaxZoomLevel,i=0,o=0,a=Math.pow(2,r)*this.imageInfo.TileSize;!0===n.horizontally&&(i=a-this.imageInfo.Width),!0!==n.vertically&&(o=a-this.imageInfo.Height);for(var s=0;s<4;s++)t[s][0]-=i,t[s][1]-=o,!0===n.horizontally&&(t[s][0]=this.imageInfo.Width-t[s][0]),!0!==n.vertically&&(t[s][1]=this.imageInfo.Height-t[s][1]);return t}},{key:"getSnapshotParameters",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r=r||1/this.map.getView().getResolution();var i=this.getViewportCoordinates(),o=this.map.getSize().map((function(e){return e/r})),a=this.getFlip();if(n){var s=this.mainLayer.getSource().getProjection(),l=s.getExtent(),c={extent:l,flip:a},d=n.getGeometry().clone();d.applyTransform(ge.bind(c));var u=this.map.getView().getProjection().getExtent(),h=d.getExtent(),p=a.horizontally?h[2]+u[0]:h[0],m=h[a.vertically?3:1];i=[[p,m],[h[2],h[3]]],o=[Math.abs(h[2]-h[0]),Math.abs(h[3]-h[1])]}if(e)if(e==f.i.Min)r=1/Math.pow(2,this.imageInfo.MaxZoomLevel);else if(e==f.i.Max)r=this.options.digitalZoomLevels>0?2:1;else if(e==f.i["1:1"])r=1;else{var g=parseInt(e);if(g>=1){var v=-Math.log2(10)+Math.log2(g*this.imageInfo.MicrometresPerPixelX)+this.imageInfo.MaxZoomLevel;r=1/Math.pow(2,this.imageInfo.MaxZoomLevel-v)}}var y=180*-this.map.getView().getRotation()/Math.PI%360;a.horizontally^a.vertically&&(y*=-1),n&&(y=0);var b=Math.round(i[0][0]),_=Math.round(i[0][1]),w=Math.round(o[0]),x=Math.round(o[1]);return{x:b,y:_,width:w,height:x,dpi:t,rotation:y,channels:this.getActiveChannels(),channelClipping:this.channelClippingString,channelColor:this.channelColorString,gamma:this.channelGammaString,layer:this.selectedLayer,timeframe:this.selectedTimeFrame,flipHorizontally:a.horizontally,flipVertically:a.vertically,postGamma:this.imageAdjustments.gamma&&1!=this.imageAdjustments.gamma?this.imageAdjustments.gamma.toFixed(2):null,brightness:this.imageAdjustments.brightness&&0!=this.imageAdjustments.brightness?this.imageAdjustments.brightness:null,contrast:this.imageAdjustments.contrast&&1!=this.imageAdjustments.contrast?this.imageAdjustments.contrast:null,scale:r}}},{key:"getSnapshotUrl",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"snapshot",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;n||(n="jpg");var l=this.getSnapshotParameters(t,i,a,s),c=Math.round(l.width*l.scale),d=Math.round(l.height*l.scale),u=Object(Pt.k)(this.imagesUrl,this.sessionID,this.image,l,c,d,r,n,o,e);return{url:u,width:c,height:d,scale:l.scale}}},{key:"drawViewport",value:function(){var e=[],t=this.map.getSize();e.push(this.map.getCoordinateFromPixel([0,0])),e.push(this.map.getCoordinateFromPixel([0,t[1]])),e.push(this.map.getCoordinateFromPixel([t[0],t[1]])),e.push(this.map.getCoordinateFromPixel([t[0],0]));
799var n=new v.a.geom.Polygon([e]),r=new v.a.Feature(n),i=this.measureLayer.getSource();i.clear(),i.addFeature(r)}},{key:"getSnapshot",value:function(e,t){e||(e="png");var n=this;return new Promise((function(r,o){n.map.once("rendercomplete",(function(s){try{var l=document.createElement("canvas"),c=s.target.getSize();l.width=c[0],l.height=c[1];var d=l.getContext("2d"),u=1/n.map.getView().getResolution();(function(){var e=a()(h.a.mark((function e(){var r,o,a,s,l,c,p,f,m,g;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Array.from(n.map.getTargetElement().querySelectorAll(".ol-layer.main-layer canvas")),o=r[r.length-1],a=Array.from(n.map.getTargetElement().querySelectorAll(".ol-layer.annotations-layer canvas")),a=[o].concat(i()(a)),s=a[0],0!==a.length){e.next=7;break}return e.abrupt("return");case 7:if(!(s.width>0)){e.next=25;break}for(l=s.parentNode.style.opacity,d.globalAlpha=""===l?1:Number(l),c="#000000",n.imageInfo&&n.imageInfo.BackgroundColor&&(c="#"+n.imageInfo.BackgroundColor),d.fillStyle=c,d.fillRect(0,0,d.canvas.width,d.canvas.height),p=0;p<a.length;p++)a[p].width>0&&(f=a[p].style.transform,m=f.match(/^matrix\(([^\(]*)\)$/)[1].split(",").map(Number),CanvasRenderingContext2D.prototype.setTransform.apply(d,m),d.drawImage(a[p],0,0),d.resetTransform());if(t&&!1===t.scalebar||Fe(d,n.imageInfo,u,t?t.scalebarLocation:null,t?t.scalebarFont:null,t?t.scalebarFontColor:null),t&&t.title&&Ne(d,t.title,t?t.titleLocation:null,t?t.titleFont:null,t?t.titleFontColor:null),!t||!t.barcode){e.next=22;break}return g=0,n.barcodeControl&&n.barcodeControl.rotation&&(g=n.barcodeControl.rotation),e.next=22,Be(d,n,g);case 22:if(!t||!t.overview){e.next=25;break}return e.next=25,Ue(d,n);case 25:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()().then((function(){var n="snapshot";if(t&&t.filename&&(n=t.filename),navigator.msSaveBlob){var i=l.msToBlob();if("jpg"==e&&console.warn("Cannot save jpg snapshot on internet explorer/edge. The resulting snapshot is in png format"),"blob"==e)return void r(i);var o=function(e){if(t&&"open-tab"===t.action){var r=new FileReader;return r.onload=function(e){var t=window.open(e.target.result,"_blank");t&&t.focus()},void r.readAsDataURL(e)}navigator.msSaveBlob(e,n+".png")};if(t&&t.dpi)return void $t(i,t.dpi).then((function(e){o(e),r(e)}));o(i),r(i)}else l.toBlob((function(i){if("blob"!=e){var o=function(r){if(t&&"open-tab"===t.action){var i=URL.createObjectURL(r),o=window.open(i,"_blank");o&&o.focus()}else Object(bt.saveAs)(r,n+"."+("jpg"==e?"jpg":"png"))};t&&t.dpi?$t(i,t.dpi).then((function(e){o(e),r(e)})):(o(i),r(i))}else r(i)}),"jpg"==e?"image/jpeg":"image/png")}))}catch(e){o(Error("Error creating snapshot"))}})),n.map.renderSync()}))}},{key:"listen",value:function(e,t){Object.prototype.hasOwnProperty.call(this.listeners,e)||console.error(e+" is not a valid event"),this.listeners[e].push(t)}},{key:"unlisten",value:function(e,t){Object.prototype.hasOwnProperty.call(this.listeners,e)||console.error(e+" is not a valid event");var n=this.listeners[e].indexOf(t);return n>=0&&n<this.listeners[e].length&&(this.listeners[e].splice(n,1),!0)}},{key:"fireEvent",value:function(e,t){if(Object.prototype.hasOwnProperty.call(this.listeners,e))for(var n=0,r=this.listeners[e].length;n<r;n++)this.listeners[e][n].call(this,t);else console.error(e+" does not exist")}},{key:"focusToAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0,0,0],r=this.annotationsLayer.getSource().getFeatureById(e);if(r){var i={duration:this.options.panAnimations?this.options.animationDuration:0,center:this.map.getView().getCenter()},o={size:this.map.getSize(),padding:n},a=r.getGeometry().getExtent(),s=_t.getCenter(a),l=Math.abs((a[2]-a[0])*(a[3]-a[1]));if(t){if(l<1e-4){var c=32,d=this.map.getView().getProjection().getExtent();a[0]-=d[2]/c,a[1]-=d[3]/c,a[2]+=d[2]/c,a[3]+=d[3]/c}this.map.getView().animate(i),this.map.getView().fit(a,o)}else this.map.getView().setCenter(s)}}},{key:"focusToTissueRegion",value:function(){et.call(this)}},{key:"setRenderingOptions",value:function(){we.call(this)}},{key:"getRenderingOptions",value:function(){return _e.call(this)}},{key:"setBrightness",value:function(e){this.imageAdjustments.brightness=e,De.call(this)}},{key:"autoAdjustColors",value:function(e){W.call(this,e)}},{key:"setContrast",value:function(e){this.imageAdjustments.contrast=e,De.call(this)}},{key:"setBrightnessContrastGamma",value:function(e,t,n){this.imageAdjustments.brightness=e,this.imageAdjustments.contrast=t,this.imageAdjustments.gamma=n,De.call(this)}},{key:"setGamma",value:function(e){this.imageAdjustments.gamma=e,De.call(this)}},{key:"setColorBalance",value:function(e,t,n){this.imageAdjustments.rgb=[e,t,n],De.call(this)}},{key:"getColorBalance",value:function(){return this.imageAdjustments.rgb}},{key:"addTileTransformer",value:function(e){this.imageAdjustments.tileTransformers=this.imageAdjustments.tileTransformers||[],this.imageAdjustments.tileTransformers.push(e)}},{key:"setTileTransformers",value:function(e){this.imageAdjustments.tileTransformers=e}},{key:"getBrightness",value:function(){return this.imageAdjustments.brightness}},{key:"getGamma",value:function(){return this.imageAdjustments.gamma}},{key:"getContrast",value:function(){return this.imageAdjustments.contrast}},{key:"getTileTransformers",value:function(){return(this.imageAdjustments.tileTransformers||[]).slice()}},{key:"getActiveServerUrl",value:function(){return this.imagesUrl}},{key:"updateSize",value:function(){if(this.map){this.map.updateSize();for(var e=this.map.getControls(),t=0;t<e.getLength();t++){var n=e.item(t);n instanceof k.a&&n.overviewMap&&n.overviewMap.updateSize()}Le.call(this),Ie.call(this)}}},{key:"initializeFeatures",value:function(e,t){for(var n=new v.a.format.WKT,r={extent:t.getExtent(),flip:this.getFlip()},i=[],o=0;o<e.length;o++){var a=e[o],s=n.readFeature(a.Geometry);null===a.AnnotationID||void 0===a.AnnotationID?s.setId(1e4*Math.random()|0):s.setId(a.AnnotationID);var l=s.getGeometry();l.applyTransform(ge.bind(r));var c=isNaN(a.Dimensions)?2:a.Dimensions,d=this.calculateArea(l),u=this.formatArea(d),h=this.calculateLength(l),p=this.formatLength(h),m=null;if(a.AuditLastModifiedOn){var g=/\/Date\(((\d*)([\+\-]?\d*))\)\//.exec(a.AuditLastModifiedOn);g&&g.length>2&&(m=new Date(parseInt(g[2])))}var y=null;if(a.AuditCreatedOn){var b=/\/Date\(((\d*)([\+\-]?\d*))\)\//.exec(a.AuditCreatedOn);b&&b.length>2&&(y=new Date(parseInt(b[2])))}else y=new Date;var _=a.FillColor?a.FillColor:f.f,w=a.Color?a.Color:"#3399CC",x=null;s.name=a.Notes,s.metaData={AnnotationID:a.AnnotationID,Classification:a.
799Classification,Color:w,CreatedOn:y,CreatedBy:a.AuditCreatedBy,Image:a.Image,LayerID:a.LayerID,Notes:a.Notes,UpdateInfo:a.UpdateInfo,UpdatedOn:m,UpdatedBy:a.AuditLastModifiedBy,Geometry:a.Geometry,Area:c>1?d:0,FormattedArea:c>1?u:"",Length:c>0?h:0,FormattedLength:c>0?p:"",FillColor:_,Dimensions:c,State:f.b.Pristine,LineThickness:a.LineThickness?a.LineThickness:2,DrawingType:a.DrawingType,Context:a.Context},"MultiPoint"===l.getType()&&(s.metaData.PointCount=l.getCoordinates().length);var C=new v.a.style.Fill({color:_}),S=new v.a.style.Stroke({color:w,width:s.metaData.LineThickness?s.metaData.LineThickness:2});-1!==a.Geometry.indexOf("POINT")&&(x=w.startsWith("#")||w.startsWith("rgb")?new v.a.style.Circle({fill:C,stroke:S,radius:5}):new v.a.style.Icon({anchor:[.5,.5],anchorXUnits:"fraction",anchorYUnits:"fraction",opacity:1,src:this.options.annotations.imageBaseUrl+w,scale:isNaN(this.options.annotations.imageScale)?1:this.options.annotations.imageScale}));var E=new v.a.style.Style({image:x,fill:C,stroke:S,text:this.getAnnotationTextStyle(s,w)}),k=s.getGeometry();if("MultiPoint"===k.getType()){for(var T=k.getCoordinates(),O=T.length,$=Math.ceil(.05*O),P=[],I=0;I<$;I++){var L=Math.floor(I*O/$),A=new v.a.style.Style({text:this.getAnnotationTextStyle(s,w),geometry:new v.a.geom.Point(T[L])});P.push(A)}s.setStyle([E].concat(P))}else s.setStyle(E);s.originalStyle=E,i.push(s)}return i}},{key:"getAnnotationsLayersNames",value:function(){return this.imageInfo&&this.imageInfo.AnnotationsLayers?this.imageInfo.AnnotationsLayers:[]}},{key:"setControlsConfiguration",value:function(e){Array.isArray(e)||(e=[e]),He.call(this,e)}},{key:"getControlsConfiguration",value:function(){return We.call(this)}},{key:"hideGrid",value:function(){this.gridLayer&&(this.gridLayer.getSource().clear(),this.shouldShowGrid=!1)}},{key:"showGrid",value:function(e,t){if(!e||e.length<2||e[0]<=0||e[1]<=0)throw"Invalid size specified";this.options.grid={size:e,color:t||"#c0c0c0"},this.shouldShowGrid=!0,this.gridLayer.getSource().clear(),this.gridLayer.setStyle(new v.a.style.Style({fill:new v.a.style.Fill({color:"rgba(255, 255, 255, 0.2)"}),stroke:new v.a.style.Stroke({color:this.options.grid.color,width:1})}));var n=e[0]/this.imageInfo.MicrometresPerPixelX,r=e[1]/this.imageInfo.MicrometresPerPixelY,i=this.map.getView().getProjection().getExtent(),o=Math.min(i[0],i[2]),a=Math.max(i[0],i[2]),s=Math.min(i[1],i[3]),l=Math.max(i[1],i[3]),c=Math.ceil((a-o)/n),d=Math.ceil((l-s)/r);a=o+c*n,s=l-d*r;for(var u=0;u<=c;u++)this.gridLayer.getSource().addFeature(new v.a.Feature({geometry:new v.a.geom.LineString([[o+u*n,s],[o+u*n,l]])}));for(var h=0;h<=d;h++)this.gridLayer.getSource().addFeature(new v.a.Feature({geometry:new v.a.geom.LineString([[o,l-h*r],[a,l-h*r]])}))}},{key:"reloadAnnotations",value:function(e,t){if(!(this.annotationsLayer&&this.mainLayer&&this.sessionID&&this.image))return console.error("Reload annotations: No image loaded in viewer"),void("function"==typeof e&&e.call(this));var n=this.annotationsLayer.getSource();n.clear(),this.hiddenAnnotations&&(this.hiddenAnnotations=[]),this.hiddenAnnotationsByFingerprint&&(this.hiddenAnnotationsByFingerprint=[]);var r=this.mainLayer.getSource().getProjection();ye.call(this,n,r,t,this.options.annotations.filter,e)}},{key:"rotateExtent",value:function(e,t){var n=v.a.geom.Polygon.fromExtent(e),r=v.a.extent.getCenter(e);return n.rotate(t,r),n.getExtent()}},{key:"getCurrentObjective",value:function(){if(!this.imageInfo||0==this.imageInfo.MicrometresPerPixelX)return"";if(!this.map)return console.warn("PMA.UI.Viewport map is not initialized"),"";var e=10/this.imageInfo.MicrometresPerPixelX/this.map.getView().getResolution();return e>1?(e|=0)+"X":void 0}},{key:"getMaxObjective",value:function(){var e=10/this.imageInfo.MicrometresPerPixelX;if(e>1)return Me(e|=0)+"X"}},{key:"getAnnotationLayersVisibility",value:function(){return this.layerSwitcher?this.layerSwitcher.getLayersVisibility():[]}},{key:"setAnnotationLayersVisibility",value:function(e){this.layerSwitcher&&this.layerSwitcher.setLayersVisibility(e)}},{key:"getMouseWheelZoomMode",value:function(){return this.mouseWheelInteraction?this.mouseWheelInteraction.mode:MouseWheelMode.Normal}},{key:"setMouseWheelZoomMode",value:function(e){this.mouseWheelInteraction&&this.mouseWheelInteraction.setMode(e)}},{key:"getMouseWheelZoomDelta",value:function(){return this.mouseWheelInteraction?this.mouseWheelInteraction.getZoomDelta():100}},{key:"setMouseWheelZoomDelta",value:function(e){this.mouseWheelInteraction&&e&&this.mouseWheelInteraction.setZoomDelta(e)}},{key:"startMeasuring",value:function(e){ft.call(this,e)}},{key:"stopMeasuring",value:function(e){!1===e&&this.measureDraw&&this.measureDraw.finishDrawing&&this.measureDraw.finishDrawing(),mt.call(this,!1!==e)}}]),e}()},function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}
799));var r=n(245).version,i=function(){return r},o=function(e){var t=!1;if(e&&null!=e&&""!==e){var n=e.split(".").map((function(e){return parseInt(e)}));n.length>=3&&(n[0]>2||2===n[0]&&n[3]>=1836)&&(t=!0)}return t}},function(e,t,n){e.exports=function(){function e(e,r,i,o,a){!function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,c=Math.log(s),d=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*d*(s-d)/s)*(l-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*d/s+u)),Math.min(o,Math.floor(r+(s-l)*d/s+u)),a)}var h=n[r],p=i,f=o;for(t(n,i,r),a(n[o],h)>0&&t(n,i,o);p<f;){for(t(n,p,f),p++,f--;a(n[p],h)<0;)p++;for(;a(n[f],h)>0;)f--}0===a(n[i],h)?t(n,i,f):t(n,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}(e,r,i||0,o||e.length-1,a||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:e>t?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function o(e,t){a(e,0,e.children.length,t,e)}function a(e,t,n,r,i){i||(i=f(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=t;o<n;o++){var a=e.children[o];s(i,e.leaf?r(a):a)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function u(e){return e.maxX-e.minX+(e.maxY-e.minY)}function h(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function p(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function f(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,n,r,i,o){for(var a=[n,r];a.length;)if(!((r=a.pop())-(n=a.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,o),a.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!p(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var o=0;o<t.children.length;o++){var a=t.children[o],s=t.leaf?r(a):a;p(e,s)&&(t.leaf?n.push(a):h(e,s)?this._all(a,n):i.push(a))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!p(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],o=t.leaf?this.toBBox(i):i;if(p(e,o)){if(t.leaf||h(e,o))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=f([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,o,a=this.data,s=this.toBBox(e),l=[],c=[];a||l.length;){if(a||(a=l.pop(),r=l[l.length-1],n=c.pop(),o=!0),a.leaf){var d=i(e,a.children,t);if(-1!==d)return a.children.splice(d,1),l.push(a),this._condense(l),this}o||a.leaf||!h(a,s)?r?(n++,a=r.children[n],o=!1):a=null:(l.push(a),c.push(n),n=0,r=a,a=a.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,a=n-t+1,s=this._maxEntries;if(a<=s)return o(i=f(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,r-1))),(i=f([])).leaf=!1,i.height=r;var l=Math.ceil(a/s),c=l*Math.ceil(Math.sqrt(s));m(e,t,n,c,this.compareMinX);for(var d=t;d<=n;d+=c){var u=Math.min(d+c-1,n);m(e,d,u,l,this.compareMinY);for(var h=d;h<=u;h+=l){var p=Math.min(h+l-1,u);i.children.push(this._build(e,h,p,r-1))}}return o(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,o=1/0,a=void 0,s=0;s<t.children.length;s++){var l=t.children[s],c=d(l),u=(h=e,p=l,(Math.max(p.maxX,h.maxX)-Math.min(p.minX,h.minX))*(Math.max(p.maxY,h.maxY)-Math.min(p.minY,h.minY))-c);u<o?(o=u,i=c<i?c:i,a=l):u===o&&c<i&&(i=c,a=l)}t=a||t.children[0]}var h,p;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);for(o.children.push(e),s(o,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s=f(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=f([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,o,s,l,c,u,h=1/0,p=1/0,f=t;f<=n-t;f++){var m=a(e,0,f,this.toBBox),g=a(e,f,n,this.toBBox),v=(i=m,o=g,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),c=Math.min(i.maxX,o.maxX),u=Math.min(i.maxY,o.maxY),Math.max(0,c-s)*Math.max(0,u-l)),y=d(m)+d(g);v<h?(h=v,r=f,p=y<p?y:p):v===h&&y<p&&(p=y,r=f)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:c;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,o=a(e,0,t,i),l=a(e,n-t,n,i),c=u(o)+u(l),d=t;d<n-t;d++){var h=e.children[d];s(o,e.leaf?i(h):h),c+=u(o)}for(var p=n-t-1;p>=t;p--){var f=e.children[p];s(l,e.leaf?i(f):f),c+=u(l)}return c},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},r}()},function(e,t,n){var r,i=n(92),o=n(11),a=n(4),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.extent=t,o.pixelRatio_=r,o.resolution=n,o.state=i,o}
799return s(t,e),t.prototype.changed=function(){this.dispatchEvent(o.a.CHANGE)},t.prototype.getExtent=function(){return this.extent},t.prototype.getImage=function(){return Object(a.b)()},t.prototype.getPixelRatio=function(){return this.pixelRatio_},t.prototype.getResolution=function(){return this.resolution},t.prototype.getState=function(){return this.state},t.prototype.load=function(){Object(a.b)()},t}(i.a);t.a=l},function(e,t,n){function r(e,t,n,r){for(var i=0,o=e[n-r],a=e[n-r+1];t<n;t+=r){var s=e[t],l=e[t+1];i+=a*s-o*l,o=s,a=l}return i/2}function i(e,t,n,i){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=r(e,t,l,i),t=l}return o}function o(e,t,n,r){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=i(e,t,l,r),t=l[l.length-1]}return o}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},function(e,t,n){var r,i=n(83),o=n(11),a=n(107),s=n(13),l=n(209),c=n(114),d=n(6),u=n(0),h=n(12),p=n(23),f=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t,n,r,o,a,h,p,f,m,g,v,y){var b=e.call(this,a,s.a.IDLE,{interpolate:!!y})||this;b.renderEdges_=void 0!==v&&v,b.pixelRatio_=p,b.gutter_=f,b.canvas_=null,b.sourceTileGrid_=n,b.targetTileGrid_=o,b.wrappedTileCoord_=h||a,b.sourceTiles_=[],b.sourcesListenerKeys_=null,b.sourceZ_=0;var _=o.getTileCoordExtent(b.wrappedTileCoord_),w=b.targetTileGrid_.getExtent(),x=b.sourceTileGrid_.getExtent(),C=w?Object(u.getIntersection)(_,w):_;if(0===Object(u.getArea)(C))return b.state=s.a.EMPTY,b;var S=t.getExtent();S&&(x=x?Object(u.getIntersection)(x,S):S);var E=o.getResolution(b.wrappedTileCoord_[0]),k=Object(c.a)(t,r,C,E);if(!isFinite(k)||k<=0)return b.state=s.a.EMPTY,b;var T=void 0!==g?g:i.b;if(b.triangulation_=new l.a(t,r,C,x,k*T,E),0===b.triangulation_.getTriangles().length)return b.state=s.a.EMPTY,b;b.sourceZ_=n.getZForResolution(k);var O=b.triangulation_.calculateSourceExtent();if(x&&(t.canWrapX()?(O[1]=Object(d.b)(O[1],x[1],x[3]),O[3]=Object(d.b)(O[3],x[1],x[3])):O=Object(u.getIntersection)(O,x)),Object(u.getArea)(O)){for(var $=n.getTileRangeForExtentAndZ(O,b.sourceZ_),P=$.minX;P<=$.maxX;P++)for(var I=$.minY;I<=$.maxY;I++){var L=m(b.sourceZ_,P,I,p);L&&b.sourceTiles_.push(L)}0===b.sourceTiles_.length&&(b.state=s.a.EMPTY)}else b.state=s.a.EMPTY;return b}return f(t,e),t.prototype.getImage=function(){return this.canvas_},t.prototype.reproject_=function(){var e=[];if(this.sourceTiles_.forEach(function(t,n,r){t&&t.getState()==s.a.LOADED&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===e.length)this.state=s.a.ERROR;else{var t=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(t),r="number"==typeof n?n:n[0],i="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(t),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Object(c.d)(r,i,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=s.a.LOADED}this.changed()},t.prototype.load=function(){if(this.state==s.a.IDLE){this.state=s.a.LOADING,this.changed();var e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(t,n,r){var i=t.getState();if(i==s.a.IDLE||i==s.a.LOADING){e++;var a=Object(h.listen)(t,o.a.CHANGE,(function(n){var r=t.getState();r!=s.a.LOADED&&r!=s.a.ERROR&&r!=s.a.EMPTY||(Object(h.unlistenByKey)(a),0==--e&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(a)}}.bind(this)),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(e,t,n){e.getState()==s.a.IDLE&&e.load()}))}},t.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(h.unlistenByKey),this.sourcesListenerKeys_=null},t.prototype.release=function(){this.canvas_&&(Object(p.d)(this.canvas_.getContext("2d")),c.c.push(this.canvas_),this.canvas_=null),e.prototype.release.call(this)},t}(a.a);t.a=m},function(e,t,n){var r,i=n(164),o=n(43),a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.expireCache=function(e){for(;this.canExpireCache()&&!(this.peekLast().getKey()in e);)this.pop().release()},t.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var e=this.peekFirstKey(),t=Object(o.b)(e)[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(Object(o.d)(e.tileCoord)),e.release()
799)}.bind(this))}},t}(i.a);t.a=s},function(e,t,n){var r=n(15),i=function(){function e(e){this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return e.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},e.prototype.expireCache=function(e){for(;this.canExpireCache();)this.pop()},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},e.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},e.prototype.forEach=function(e){for(var t=this.oldest_;t;)e(t.value_,t.key_,this),t=t.newer},e.prototype.get=function(e,t){var n=this.entries_[e];return Object(r.a)(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},e.prototype.remove=function(e){var t=this.entries_[e];return Object(r.a)(void 0!==t,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.key_;return t},e.prototype.getValues=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.value_;return t},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.peek=function(e){if(this.containsKey(e))return this.entries_[e].value_},e.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},e.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},e.prototype.set=function(e,t){Object(r.a)(!(e in this.entries_),16);var n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_},e.prototype.setSize=function(e){this.highWaterMark=e},e}();t.a=i},function(e,t,n){var r,i=n(33),o=n(4),a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){return e.call(this)||this}return a(t,e),t.prototype.getType=function(){return"json"},t.prototype.readFeature=function(e,t){return this.readFeatureFromObject(l(e),this.getReadOptions(e,t))},t.prototype.readFeatures=function(e,t){return this.readFeaturesFromObject(l(e),this.getReadOptions(e,t))},t.prototype.readFeatureFromObject=function(e,t){return Object(o.b)()},t.prototype.readFeaturesFromObject=function(e,t){return Object(o.b)()},t.prototype.readGeometry=function(e,t){return this.readGeometryFromObject(l(e),this.getReadOptions(e,t))},t.prototype.readGeometryFromObject=function(e,t){return Object(o.b)()},t.prototype.readProjection=function(e){return this.readProjectionFromObject(l(e))},t.prototype.readProjectionFromObject=function(e){return Object(o.b)()},t.prototype.writeFeature=function(e,t){return JSON.stringify(this.writeFeatureObject(e,t))},t.prototype.writeFeatureObject=function(e,t){return Object(o.b)()},t.prototype.writeFeatures=function(e,t){return JSON.stringify(this.writeFeaturesObject(e,t))},t.prototype.writeFeaturesObject=function(e,t){return Object(o.b)()},t.prototype.writeGeometry=function(e,t){return JSON.stringify(this.writeGeometryObject(e,t))},t.prototype.writeGeometryObject=function(e,t){return Object(o.b)()},t}(i.a);function l(e){return"string"==typeof e?JSON.parse(e)||null:null!==e?e:null}t.a=s},function(e,t,n){var r,i=n(60),o=n(96),a=n(38),s=n(0),l=n(12),c=n(23),d=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u="element",h="map",p="offset",f="position",m="positioning",g=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un,n.options=t,n.id=t.id,n.insertFirst=void 0===t.insertFirst||t.insertFirst,n.stopEvent=void 0===t.stopEvent||t.stopEvent,n.element=document.createElement("div"),n.element.className=void 0!==t.className?t.className:"ol-overlay-container "+a.d,n.element.style.position="absolute",n.element.style.pointerEvents="auto";var r=t.autoPan;return r&&"object"!=qe(r)&&(r={animation:t.autoPanAnimation,margin:t.autoPanMargin}),n.autoPan=r||!1,n.rendered={transform_:"",visible:!0},n.mapPostrenderListenerKey=null,n.addChangeListener(u,n.handleElementChanged),n.addChangeListener(h,n.handleMapChanged),n.addChangeListener(p,n.handleOffsetChanged),n.addChangeListener(f,n.handlePositionChanged),n.addChangeListener(m,n.handlePositioningChanged),void 0!==t.element&&n.setElement(t.element),n.setOffset(void 0!==t.offset?t.offset:[0,0]),n.setPositioning(t.positioning||"top-left"),void 0!==t.position&&n.setPosition(t.position),n}return d(t,e),t.prototype.getElement=function(){return this.get(u)},t.prototype.getId=function(){return this.id},t.prototype.getMap=function(){return this.get(h)||null},t.prototype.getOffset=function(){return this.get(p)},t.prototype.getPosition=function(){return this.get(f)},t.prototype.getPositioning=function(){return this.get(m)},t.prototype.handleElementChanged=function(){Object(c.e)(this.element);var e=this.getElement();e&&this.element.appendChild(e)},t.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(c.f)(this.element),Object(l.unlistenByKey)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var e=this.getMap();if(e){this.mapPostrenderListenerKey=Object(l.listen)(e,o.a.POSTRENDER,this.render,this),this.updatePixelPosition();var t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.a
799ppendChild(this.element),this.performAutoPan()}},t.prototype.render=function(){this.updatePixelPosition()},t.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},t.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.performAutoPan()},t.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},t.prototype.setElement=function(e){this.set(u,e)},t.prototype.setMap=function(e){this.set(h,e)},t.prototype.setOffset=function(e){this.set(p,e)},t.prototype.setPosition=function(e){this.set(f,e)},t.prototype.performAutoPan=function(){this.autoPan&&this.panIntoView(this.autoPan)},t.prototype.panIntoView=function(e){var t=this.getMap();if(t&&t.getTargetElement()&&this.get(f)){var n=this.getRect(t.getTargetElement(),t.getSize()),r=this.getElement(),i=this.getRect(r,[Object(c.c)(r),Object(c.b)(r)]),o=e||{},a=void 0===o.margin?20:o.margin;if(!Object(s.containsExtent)(n,i)){var l=i[0]-n[0],d=n[2]-i[2],u=i[1]-n[1],h=n[3]-i[3],p=[0,0];if(l<0?p[0]=l-a:d<0&&(p[0]=Math.abs(d)+a),u<0?p[1]=u-a:h<0&&(p[1]=Math.abs(h)+a),0!==p[0]||0!==p[1]){var m=t.getView().getCenterInternal(),g=t.getPixelFromCoordinateInternal(m);if(!g)return;var v=[g[0]+p[0],g[1]+p[1]],y=o.animation||{};t.getView().animateInternal({center:t.getCoordinateFromPixelInternal(v),duration:y.duration,easing:y.easing})}}}},t.prototype.getRect=function(e,t){var n=e.getBoundingClientRect(),r=n.left+window.pageXOffset,i=n.top+window.pageYOffset;return[r,i,r+t[0],i+t[1]]},t.prototype.setPositioning=function(e){this.set(m,e)}
799,t.prototype.setVisible=function(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)},t.prototype.updatePixelPosition=function(){var e=this.getMap(),t=this.getPosition();if(e&&e.isRendered()&&t){var n=e.getPixelFromCoordinate(t),r=e.getSize();this.updateRenderedPosition(n,r)}else this.setVisible(!1)},t.prototype.updateRenderedPosition=function(e,t){var n=this.element.style,r=this.getOffset(),i=this.getPositioning();this.setVisible(!0);var o=Math.round(e[0]+r[0])+"px",a=Math.round(e[1]+r[1])+"px",s="0%",l="0%";"bottom-right"==i||"center-right"==i||"top-right"==i?s="-100%":"bottom-center"!=i&&"center-center"!=i&&"top-center"!=i||(s="-50%"),"bottom-left"==i||"bottom-center"==i||"bottom-right"==i?l="-100%":"center-left"!=i&&"center-center"!=i&&"center-right"!=i||(l="-50%");var c="translate(".concat(s,", ").concat(l,") translate(").concat(o,", ").concat(a,")");this.rendered.transform_!=c&&(this.rendered.transform_=c,n.transform=c,n.msTransform=c)},t.prototype.getOptions=function(){return this.options},t}(i.a);t.a=g},function(e,t,n){var r,i=n(160),o=n(21),a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r,i,a){var s=this,l=void 0!==a?o.a.IDLE:o.a.LOADED;return(s=e.call(this,t,n,r,l)||this).loader_=void 0!==a?a:null,s.canvas_=i,s.error_=null,s}return a(t,e),t.prototype.getError=function(){return this.error_},t.prototype.handleLoad_=function(e){e?(this.error_=e,this.state=o.a.ERROR):this.state=o.a.LOADED,this.changed()},t.prototype.load=function(){this.state==o.a.IDLE&&(this.state=o.a.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},t.prototype.getImage=function(){return this.canvas_},t}(i.a);t.a=s},function(e,t,n){var r,i=n(33),o=n(4),a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){return e.call(this)||this}return a(t,e),t.prototype.getType=function(){return"text"},t.prototype.readFeature=function(e,t){return this.readFeatureFromText(l(e),this.adaptOptions(t))},t.prototype.readFeatureFromText=function(e,t){return Object(o.b)()},t.prototype.readFeatures=function(e,t){return this.readFeaturesFromText(l(e),this.adaptOptions(t))},t.prototype.readFeaturesFromText=function(e,t){return Object(o.b)()},t.prototype.readGeometry=function(e,t){return this.readGeometryFromText(l(e),this.adaptOptions(t))},t.prototype.readGeometryFromText=function(e,t){return Object(o.b)()},t.prototype.readProjection=function(e){return this.readProjectionFromText(l(e))},t.prototype.readProjectionFromText=function(e){return this.dataProjection},t.prototype.writeFeature=function(e,t){return this.writeFeatureText(e,this.adaptOptions(t))},t.prototype.writeFeatureText=function(e,t){return Object(o.b)()},t.prototype.writeFeatures=function(e,t){return this.writeFeaturesText(e,this.adaptOptions(t))},t.prototype.writeFeaturesText=function(e,t){return Object(o.b)()},t.prototype.writeGeometry=function(e,t){return this.writeGeometryText(e,this.adaptOptions(t))},t.prototype.writeGeometryText=function(e,t){return Object(o.b)()},t}(i.a);function l(e){return"string"==typeof e?e:""}t.a=s},function(e,t,n){n.d(t,"a",(function(){return y}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(34),l=n.n(s),c=n(88),d=n.n(c),u=n(53),h=n.n(u),p=n(57),f=n.n(p),m=n(31),g=n.n(m),v=n(50);n(157);var y=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(e){var r;i()(this,n);var o,a,s,c=e||{};c.collapsed=!0===c.collapsed,s=document.createElement("span"),c.collapsed?s.innerHTML="»":s.innerHTML="«";var d=document.createElement("button");d.type="button",d.title="Viewport rotation",d.appendChild(s);var u=document.createElement("div");u.className="ol-rotation ol-control ol-unselectable";var h=document.createElement("span");h.innerHTML="°",h.className="ol-degree";var p=document.createElement("div");p.className="ol-rotation-input";var f=document.createElement("input");f.id="rotationText",f.type="text",f.value=0,f.maxLength=4,f.size=4,p.appendChild(f);var m=document.createElement("div");m.className="ol-rotation-input";var g=document.createElement("input");g.title="Drag to rotate the image (Alt+Drag)",g.id="rotation",g.type="range",g.min=-180,g.max=180,g.value=0,g.step=1,m.appendChild(g),o=c.resetTipLabel?c.resetTipLabel:"Reset rotation",a='<i class="fa fa-long-arrow-up" aria-hidden="true"></i>',(s=document.createElement("span")).innerHTML=a;var v=document.createElement("button");v.type="button",v.title=o,v.appendChild(s),o=c.flipHorizontallyTipLabel?c.flipHorizontallyTipLabel:"Flip horizontally",a='<i class="fa fa-code" aria-hidden="true"></i>',(s=document.createElement("span")).innerHTML=a;var y=document.createElement("button");y.type="button",y.title=o,y.appendChild(s),o=c.flipVerticallyTipLabel?c.flipVerticallyTipLabel:"Flip vertically",a='<i class="fa fa-code fa-rotate-90" aria-hidden="true"></i>',(s=document.createElement("span")).innerHTML=a;var b=document.createElement("button");b.type="button",b.title=o,b.appendChild(s),c.collapsed||(u.appendChild(p),u.appendChild(h),u.appendChild(m),u.appendChild(v),u.appendChild(y),u.appendChild(b)),u.appendChild(d),(r=t.call(this,{element:u,target:c.target})).collapsed=c.collapsed;var _=!1;return r.collapseControl=function(e){e&&(e.preventDefault(),e.stopPropagation()),this.collapsed=!this.collapsed,this.collapsed?(u.removeChild(b),u.removeChild(y),u.removeChild(v),u.removeChild(m),u.removeChild(h),u.removeChild(p),d.firstChild.innerHTML="»"):(u.insertBefore(b,u.firstChild),u.insertBefore(y,u.firstChild),u.insertBefore(v,u.firstChild),u.insertBefore(m,u.firstChild),u.insertBefore(h,u.firstChild),u.insertBefore(p,u.firstChild),d.firstChild.innerHTML="«")},r.pmaViewport=c.pmaViewport,g.addEventListener("input",function(e){_=!0,e.preventDefault(),e.stopPropagation(),f.value=g.value,v.firstChild.firstChild.style="transform: rotate(".concat(g.value,"deg)"),this.pmaViewport.setPosition({rotation:.0174532925*g.value}),_=!1}.bind(l()(r)),!1),v.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),f.value=0,g.value=0,v.firstChild.firstChild.style="transform: rotate(0deg)",this.pmaViewport.setPosition({rotation:0}),v.blur(),v.hideFocus=!0,v.style.outline="none"}.bind(l()(r)),!1),d.addEventListener("click",r.collapseControl.bind(l()(r)),!1),y.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),this.pmaViewport.setFlip(!this.pmaViewport.getFlip().horizontally,this.pmaViewport.getFlip().vertically),this.pmaViewport.getFlip().horizontally?y.classList.add("selected"):y.classList.remove("selected"),y.blur(),y.hideFocus=!0,y.style.outline="none"}.bind(l()(r)),!1),b.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),this.pmaViewport.setFlip(this.pmaViewport.getFlip().horizontally,!this.pmaViewport.getFlip().vertically),this.pmaViewport.getFlip().vertically?b.classList.add("selected"):b.classList.remove("selected"),b.blur(),b.hideFocus=!0,b.style.outline="none"}.bind(l()(r)),!1),f.addEventListener("input",function(e){_=!0,e.preventDefault(),e.stopPropagation();var t=f.value.replace(/[^\d-]/g,"");if("-"!=t){""==t&&(t=0);var n=parseInt(t);f.value=n,g.value=n,v.firstChild.firstChild.style="transform: rotate(".concat(n,"deg)"),this.pmaViewport.setPosition({rotation:n*Math.PI/180}),_=!1}}.bind(l()(r)),!1),r.pmaViewport.listen("viewchanged",function(){if(!_){var e=Math.floor(180*this.pmaViewport.getPosition().rotation/Math.PI);f.value=e,g.value=e,v.firstChild.firstChild.style="transform: rotate(".concat(e,"deg)"),this.pmaViewport.getFlip().horizontally?y.classList.add("selected"):y.classList.remove("selected"),this.pmaViewport.getFlip().vertically?b.classList.add("selected"):b.classList.remove("selected")}}.bind(l()(r))),r}return a()(n,[{key:"setMap",value:function(e){d()(g()(n.prototype),"setMap",this).call(this,e)}},{key:"getCollapsed",value:function(){return this.collapsed}},{key:"setCollapsed",value:function(e){this.getCollapsed()!=e&&this.collapseControl()}}]),n}(v.a)},function(e,t,n){var r=n(214),i=n.n(r),o=n(49),a=n(36);t.a=function(e,t,n){void 0===n&&(n={});var r=Object(o.c)(e),s=Object(o.c)(t),l=i.a.union(r.coordinates,s.coordinates);
799return 0===l.length?null:1===l.length?Object(a.polygon)(l[0],n.properties):Object(a.multiPolygon)(l,n.properties)}},function(e,t,n){n.d(t,"a",(function(){return o}));var r=n(78);function i(e,t,n){return t+":"+e+":"+(n?Object(r.b)(n):"null")}var o=new(function(){function e(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return e.prototype.clear=function(){this.cache_={},this.cacheSize_=0},e.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},e.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var n=this.cache_[t];0!=(3&e++)||n.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}},e.prototype.get=function(e,t,n){var r=i(e,t,n);return r in this.cache_?this.cache_[r]:null},e.prototype.set=function(e,t,n,r){var o=i(e,t,n);this.cache_[o]=r,++this.cacheSize_},e.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},e}())},function(e,t,n){n.r(t);var r=n(87);function i(e){var t=[1/0,1/0,-1/0,-1/0];return Object(r.coordEach)(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}i.default=i,t.default=i},function(e,t,n){var r,i,o,a=n(118),s=n(19),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterMode_=void 0,o.declutterImageWithText_=void 0,o}return l(t,e),t.prototype.drawPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([s.c.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([s.c.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}},t.prototype.drawMultiPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([s.c.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([s.c.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}},t.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,e.prototype.finish.call(this)},t.prototype.setImageStyle=function(e,t){var n=e.getAnchor(),r=e.getSize(),i=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=e.getHitDetectionImage(),this.image_=e.getImage(this.pixelRatio),this.height_=r[1],this.opacity_=e.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScaleArray(),this.width_=r[0],this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=t},t}
799(a.a),d=n(17),u=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return u(t,e),t.prototype.drawFlatCoordinates_=function(e,t,n,r){var i=this.coordinates.length,o=this.appendFlatLineCoordinates(e,t,n,r,!1,!1),a=[s.c.MOVE_TO_LINE_TO,i,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n},t.prototype.drawLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([s.c.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,d.e,d.f],s.a);var o=e.getFlatCoordinates(),a=e.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(s.e),this.endGeometry(t)}},t.prototype.drawMultiLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([s.c.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],s.a);for(var o=e.getEnds(),a=e.getFlatCoordinates(),l=e.getStride(),c=0,d=0,u=o.length;d<u;++d)c=this.drawFlatCoordinates_(a,c,o[d],l);this.hitDetectionInstructions.push(s.e),this.endGeometry(t)}},t.prototype.finish=function(){var t=this.state;return null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(s.e),this.reverseHitDetectionInstructions(),this.state=null,e.prototype.finish.call(this)},t.prototype.applyStroke=function(t){null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(s.e),t.lastStroke=this.coordinates.length),t.lastStroke=0,e.prototype.applyStroke.call(this,t),this.instructions.push(s.a)},t}(a.a),p=n(105),f=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return f(t,e),t.prototype.drawFlatCoordinatess_=function(e,t,n,r){var i=this.state,o=void 0!==i.fillStyle,a=void 0!==i.strokeStyle,l=n.length;this.instructions.push(s.a),this.hitDetectionInstructions.push(s.a);for(var c=0;c<l;++c){var d=n[c],u=this.coordinates.length,h=this.appendFlatLineCoordinates(e,t,d,r,!0,!a),p=[s.c.MOVE_TO_LINE_TO,u,h];this.instructions.push(p),this.hitDetectionInstructions.push(p),a&&(this.instructions.push(s.b),this.hitDetectionInstructions.push(s.b)),t=d}return o&&(this.instructions.push(s.d),this.hitDetectionInstructions.push(s.d)),a&&(this.instructions.push(s.e),this.hitDetectionInstructions.push(s.e)),t},t.prototype.drawCircle=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([s.c.SET_FILL_STYLE,d.b]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([s.c.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getFlatCoordinates(),a=e.getStride(),l=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,a,!1,!1);var c=[s.c.CIRCLE,l];this.instructions.push(s.a,c),this.hitDetectionInstructions.push(s.a,c),void 0!==n.fillStyle&&(this.instructions.push(s.d),this.hitDetectionInstructions.push(s.d)),void 0!==n.strokeStyle&&(this.instructions.push(s.e),this.hitDetectionInstructions.push(s.e)),this.endGeometry(t)}},t.prototype.drawPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([s.c.SET_FILL_STYLE,d.b]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([s.c.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getEnds(),a=e.getOrientedFlatCoordinates(),l=e.getStride();this.drawFlatCoordinatess_(a,0,o,l),this.endGeometry(t)}},t.prototype.drawMultiPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([s.c.SET_FILL_STYLE,d.b]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([s.c.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=e.getEndss(),a=e.getOrientedFlatCoordinates(),l=e.getStride(),c=0,u=0,h=o.length;u<h;++u)c=this.drawFlatCoordinatess_(a,c,o[u],l);this.endGeometry(t)}},t.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var t=this.tolerance;if(0!==t)for(var n=this.coordinates,r=0,i=n.length;r<i;++r)n[r]=Object(p.e)(n[r],t);return e.prototype.finish.call(this)},t.prototype.setFillStrokeStyles_=function(){var e=this.state;void 0!==e.fillStyle&&this.updateFillStyle(e,this.createFill),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)},t}(a.a),g=n(151),v={Circle:m,Default:a.a,Image:c,LineString:h,Polygon:m,Text:g.b},y=function(){function e(e,t,n,r){this.tolerance_=e,this.maxExtent_=t,this.pixelRatio_=r,this.resolution_=n,this.buildersByZIndex_
799={}}return e.prototype.finish=function(){var e={};for(var t in this.buildersByZIndex_){e[t]=e[t]||{};var n=this.buildersByZIndex_[t];for(var r in n){var i=n[r].finish();e[t][r]=i}}return e},e.prototype.getBuilder=function(e,t){var n=void 0!==e?e.toString():"0",r=this.buildersByZIndex_[n];void 0===r&&(r={},this.buildersByZIndex_[n]=r);var i=r[t];return void 0===i&&(i=new(0,v[t])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),r[t]=i),i},e}();t.a=y},function(e,t,n){var r=n(19),i=n(151),o=n(59),a=n(10),s=n(0),l=n(17),c=n(6),d=n(69);function u(e,t,n,r,i,o,a,s,l,u,h,p){var f=e[t],m=e[t+1],g=0,v=0,y=0,b=0;function _(){g=f,v=m,f=e[t+=r],m=e[t+1],b+=y,y=Math.sqrt((f-g)*(f-g)+(m-v)*(m-v))}do{_()}while(t<n-r&&b+y<o);for(var w=0===y?0:(o-b)/y,x=Object(c.e)(g,f,w),C=Object(c.e)(v,m,w),S=t-r,E=b,k=o+s*l(u,i,h);t<n-r&&b+y<k;)_();w=0===y?0:(k-b)/y;var T,O=Object(c.e)(g,f,w),$=Object(c.e)(v,m,w);if(p){var P=[x,C,O,$];Object(d.a)(P,0,4,2,p,P,P),T=P[0]>P[2]}else T=x>O;var I,L=Math.PI,A=[],M=S+r===t;if(y=0,b=E,f=e[t=S],m=e[t+1],M){_(),I=Math.atan2(m-v,f-g),T&&(I+=I>0?-L:L);var j=(O+x)/2,R=($+C)/2;return A[0]=[j,R,(k-o)/2,I,i],A}for(var D=0,F=(i=i.replace(/\n/g," ")).length;D<F;){_();var N=Math.atan2(m-v,f-g);if(T&&(N+=N>0?-L:L),void 0!==I){var B=N-I;if(B+=B>L?-2*L:B<-L?2*L:0,Math.abs(B)>a)return null}I=N;for(var U=D,z=0;D<F;++D){var G=s*l(u,i[T?F-D-1:D],h);if(t+r<n&&b+y<o+z+G/2)break;z+=G}if(D!==U){var V=T?i.substring(F-U,F-D):i.substring(U,D);w=0===y?0:(o+z/2-b)/y,j=Object(c.e)(g,f,w),R=Object(c.e)(v,m,w),A.push([j,R,z/2,N,V]),o+=z}}return A}var h=n(9),p=n(202),f=Object(s.createEmpty)(),m=[],g=[],v=[],y=[];function b(e){return e[3].declutterBox}var _=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function w(e,t){return"start"!==t&&"end"!==t||_.test(e)||(t="start"===t?"left":"right"),i.a[t]}function x(e,t,n){return n>0&&e.push("\n",""),e.push(t,""),e}var C=function(){function e(e,t,n,r){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=Object(a.c)(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}}return e.prototype.createLabel=function(e,t,n,r){var a=e+t+n+r;if(this.labels_[a])return this.labels_[a];var s=r?this.strokeStates[r]:null,c=n?this.fillStates[n]:null,d=this.textStates[t],u=this.pixelRatio,h=[d.scale[0]*u,d.scale[1]*u],p=Array.isArray(e),f=d.justify?i.a[d.justify]:w(Array.isArray(e)?e[0]:e,d.textAlign||l.l),m=r&&s.lineWidth?s.lineWidth:0,g=p?e:e.split("\n").reduce(x,[]),v=Object(l.o)(d,g),y=v.width,b=v.height,_=v.widths,C=v.heights,S=v.lineWidths,E=y+m,k=[],T=(E+2)*h[0],O=(b+m)*h[1],$={width:T<0?Math.floor(T):Math.ceil(T),height:O<0?Math.floor(O):Math.ceil(O),contextInstructions:k};1==h[0]&&1==h[1]||k.push("scale",h),r&&(k.push("strokeStyle",s.strokeStyle),k.push("lineWidth",m),k.push("lineCap",s.lineCap),k.push("lineJoin",s.lineJoin),k.push("miterLimit",s.miterLimit),(o.h?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(k.push("setLineDash",[s.lineDash]),k.push("lineDashOffset",s.lineDashOffset))),n&&k.push("fillStyle",c.fillStyle),k.push("textBaseline","middle"),k.push("textAlign","center");for(var P,I=.5-f,L=f*E+I*m,A=[],M=[],j=0,R=0,D=0,F=0,N=0,B=g.length;N<B;N+=2){var U=g[N];if("\n"!==U){var z=g[N+1]||d.font;z!==P&&(r&&A.push("font",z),n&&M.push("font",z),P=z),j=Math.max(j,C[D]);var G=[U,L+I*_[D]+f*(_[D]-S[F]),.5*(m+j)+R];L+=_[D],r&&A.push("strokeText",G),n&&M.push("fillText",G),++D}else R+=j,j=0,L=f*E+I*m,++F}return Array.prototype.push.apply(k,A),Array.prototype.push.apply(k,M),this.labels_[a]=$,$}
799,e.prototype.replayTextBackground_=function(e,t,n,r,i,o,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,t),o&&(this.alignFill_=o[2],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())},e.prototype.calculateImageOrLabelDimensions_=function(e,t,n,r,i,o,l,c,d,u,h,p,b,_,w,x){var C,S=n-(l*=p[0]),E=r-(c*=p[1]),k=i+d>e?e-d:i,T=o+u>t?t-u:o,O=_[3]+k*p[0]+_[1],$=_[0]+T*p[1]+_[2],P=S-_[3],I=E-_[0];return(w||0!==h)&&(m[0]=P,y[0]=P,m[1]=I,g[1]=I,g[0]=P+O,v[0]=g[0],v[1]=I+$,y[1]=v[1]),0!==h?(C=Object(a.b)(Object(a.c)(),n,r,1,1,h,-n,-r),Object(a.a)(C,m),Object(a.a)(C,g),Object(a.a)(C,v),Object(a.a)(C,y),Object(s.createOrUpdate)(Math.min(m[0],g[0],v[0],y[0]),Math.min(m[1],g[1],v[1],y[1]),Math.max(m[0],g[0],v[0],y[0]),Math.max(m[1],g[1],v[1],y[1]),f)):Object(s.createOrUpdate)(Math.min(P,P+O),Math.min(I,I+$),Math.max(P,P+O),Math.max(I,I+$),f),b&&(S=Math.round(S),E=Math.round(E)),{drawImageX:S,drawImageY:E,drawImageW:k,drawImageH:T,originX:d,originY:u,declutterBox:{minX:f[0],minY:f[1],maxX:f[2],maxY:f[3],value:x},canvasTransform:C,scale:p}},e.prototype.replayImageOrLabel_=function(e,t,n,r,i,o,a){var s=!(!o&&!a),c=r.declutterBox,d=e.canvas,u=a?a[2]*r.scale[0]/2:0;return c.minX-u<=d.width/t&&c.maxX+u>=0&&c.minY-u<=d.height/t&&c.maxY+u>=0&&(s&&this.replayTextBackground_(e,m,g,v,y,o,a),Object(l.n)(e,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0},e.prototype.fill_=function(e){if(this.alignFill_){var t=Object(a.a)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.save(),e.translate(t[0]%n,t[1]%n),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},e.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},e.prototype.drawLabelWithPointPlacement_=function(e,t,n,r){var o=this.textStates[t],a=this.createLabel(e,t,r,n),s=this.strokeStates[n],c=this.pixelRatio,d=w(Array.isArray(e)?e[0]:e,o.textAlign||l.l),u=i.a[o.textBaseline||l.m],h=s&&s.lineWidth?s.lineWidth:0;return{label:a,anchorX:d*(a.width/c-2*o.scale[0])+2*(.5-d)*h,anchorY:u*a.height/c+2*(.5-u)*h}},e.prototype.execute_=function(e,t,n,o,c,f,m,g){var v;this.pixelCoordinates_&&Object(h.b)(n,this.renderedTransform_)?v=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),v=Object(d.c)(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),Object(a.j)(this.renderedTransform_,n));for(var y,_,w,x,C,S,E,k,T,O,$,P,I,L,A,M,j=0,R=o.length,D=0,F=0,N=0,B=null,U=null,z=this.coordinateCache_,G=this.viewRotation_,V=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,q={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:G},H=this.instructions!=o||this.overlaps?0:200;j<R;){var W=o[j];switch(W[0]){case r.c.BEGIN_GEOMETRY:I=W[1],M=W[3],I.getGeometry()?void 0===m||Object(s.intersects)(m,M.getExtent())?++j:j=W[2]+1:j=W[2];break;case r.c.BEGIN_PATH:F>H&&(this.fill_(e),F=0),N>H&&(e.stroke(),N=0),F||N||(e.beginPath(),x=NaN,C=NaN),++j;break;case r.c.CIRCLE:var Y=v[D=W[1]],X=v[D+1],K=v[D+2]-Y,Z=v[D+3]-X,J=Math.sqrt(K*K+Z*Z);e.moveTo(Y+J,X),e.arc(Y,X,J,0,2*Math.PI,!0),++j;break;case r.c.CLOSE_PATH:e.closePath(),++j;break;case r.c.CUSTOM:D=W[1],y=W[2];var Q=W[3],ee=W[4],te=6==W.length?W[5]:void 0;q.geometry=Q,q.feature=I,j in z||(z[j]=[]);var ne=z[j];te?te(v,D,y,2,ne):(ne[0]=v[D],ne[1]=v[D+1],ne.length=2),ee(ne,q),++j;break;case r.c.DRAW_IMAGE:D=W[1],y=W[2],k=W[3],_=W[4],w=W[5];var re=W[6],ie=W[7],oe=W[8],ae=W[9],se=W[10],le=W[11],ce=W[12],de=W[13],ue=W[14],he=W[15];if(!k&&W.length>=20){T=W[19],O=W[20],$=W[21],P=W[22];var pe=this.drawLabelWithPointPlacement_(T,O,$,P);k=pe.label,W[3]=k;var fe=W[23];_=(pe.anchorX-fe)*this.pixelRatio,W[4]=_;var me=W[24];w=(pe.anchorY-me)*this.pixelRatio,W[5]=w,re=k.height,W[6]=re,de=k.width,W[13]=de}var ge=void 0;W.length>25&&(ge=W[25]);var ve=void 0,ye=void 0,be=void 0;W.length>17?(ve=W[16],ye=W[17],be=W[18]):(ve=l.j,ye=!1,be=!1),se&&V?le+=G:se||V||(le-=G);for(var _e=0;D<y;D+=2)if(!(ge&&ge[_e++]<de/this.pixelRatio)){var we=[e,t,k,Ye=this.calculateImageOrLabelDimensions_(k.width,k.height,v[D],v[D+1],de,re,_,w,oe,ae,le,ce,c,ve,ye||be,I),ie,ye?B:null,be?U:null];if(g){if("none"===ue)continue;if("obstacle"===ue){g.insert(Ye.declutterBox);continue}var xe=void 0,Ce=void 0;if(he){var Se=y-D;if(!he[Se]){he[Se]=we;continue}if(xe=he[Se],delete he[Se],Ce=b(xe),g.collides(Ce))continue}if(g.collides(Ye.declutterBox))continue;xe&&(g.insert(Ce),this.replayImageOrLabel_.apply(this,xe)),g.insert(Ye.declutterBox)}this.replayImageOrLabel_.apply(this,we)}++j;break;case r.c.DRAW_CHARS:var Ee=W[1],ke=W[2],Te=W[3],Oe=W[4];P=W[5];var $e=W[6],Pe=W[7],Ie=W[8];$=W[9];var Le=W[10];T=W[11],O=W[12];var Ae=[W[13],W[13]],Me=this.textStates[O],je=Me.font,Re=[Me.scale[0]*Pe,Me.scale[1]*Pe],De=void 0;je in this.widths_?De=this.widths_[je]:(De={},this.widths_[je]=De);var Fe=Object(p.a)(v,Ee,ke,2),Ne=Math.abs(Re[0])*Object(l.p)(je,T,De);if(Oe||Ne<=Fe){var Be=this.textStates[O].textAlign,Ue=u(v,Ee,ke,2,T,(Fe-Ne)*i.a[Be],$e,Math.abs(Re[0]),l.p,je,De,V?0:this.viewRotation_);e:if(Ue){var ze=[],Ge=void 0,Ve=void 0,qe=void 0,He=void 0,We=void 0;if($)for(Ge=0,Ve=Ue.length;Ge<Ve;++Ge){qe=(We=Ue[Ge])[4],He=this.createLabel(qe,O,"",$),_=We[2]+(Re[0]<0?-Le:Le),w=Te*He.height+2*(.5-Te)*Le*Re[1]/Re[0]-Ie;var Ye=this.calculateImageOrLabelDimensions_(He.width,He.height,We[0],We[1],He.width,He.height,_,w,0,0,We[3],Ae,!1,l.j,!1,I);if(g&&g.collides(Ye.declutterBox))break e;ze.push([e,t,He,Ye,1,null,null])}if(P)for(Ge=0,Ve=Ue.length;Ge<Ve;++Ge){if(qe=(We=Ue[Ge])[4],He=this.createLabel(qe,O,P,""),_=We[2],w=Te*He.height-Ie,Ye=this.calculateImageOrLabelDimensions_(He.width,He.height,We[0],We[1],He.width,He.height,_,w,0,0,We[3],Ae,!1,l.j,!1,I),g&&g.collides(Ye.declutterBox))break e;ze.push([e,t,He,Ye,1,null,null])}g&&g.load(ze.map(b));for(var Xe=0,Ke=ze.length;Xe<Ke;++Xe)this.replayImageOrLabel_.apply(this,ze[Xe])}}++j;break;case r.c.END_GEOMETRY:if(void 0!==f){var Ze=f(I=W[1],M);if(Ze)return Ze}++j;break;case r.c.FILL:H?F++:this.fill_(e),++j;break;case r.c.MOVE_TO_LINE_TO:for(D=W[1],y=W[2],L=v[D],E=(A=v[D+1])+.5|0,(S=L+.5|0)===x&&E===C||(e.moveTo(L,A),x=S,C=E),D+=2;D<y;D+=2)S=(L=v[D])+.5|0,E=(A=v[D+1])+.5|0,D!=y-2&&S===x&&E===C||(e.lineTo(L,A),x=S,C=E);++j;break;case r.c.SET_FILL_STYLE:B=W,this.alignFill_=W[2],F&&(this.fill_(e),F=0,N&&(e.stroke(),N=0)),e.fillStyle=W[1],++j;break;case r.c.SET_STROKE_STYLE:U=W,N&&(e.stroke(),N=0),this.setStrokeStyle_(e,W),++j;break;case r.c.STROKE:H?N++:e.stroke(),++j;break;default:++j}}F&&this.fill_(e),N&&e.stroke()},e.prototype.execute=function(e,t,n,r,i,o){this.viewRotation_=r,this.execute_(e,t,n,this.instructions,i,void 0,void 0,o)},e.prototype.executeHitDetection=function(e,t,n,r,i){return this.viewRotation_=n,this.execute_(e,1,t,this.hitDetectionInstructions,!0,r,i)},e}(),S=n(23),E=n(5),k=["Polygon","Circle","LineString","Image","Text","Default"],T=function(){function e(e,t,n,r,i,o){this.maxExtent_=e,this.overlaps_=r,this.pixelRatio_=n,this.resolution_=t,this.renderBuffer_=o,this.executorsByZIndex_
799={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object(a.c)(),this.createExecutors_(i)}return e.prototype.clip=function(e,t){var n=this.getClipCoords(t);e.beginPath(),e.moveTo(n[0],n[1]),e.lineTo(n[2],n[3]),e.lineTo(n[4],n[5]),e.lineTo(n[6],n[7]),e.clip()},e.prototype.createExecutors_=function(e){for(var t in e){var n=this.executorsByZIndex_[t];void 0===n&&(n={},this.executorsByZIndex_[t]=n);var r=e[t];for(var i in r){var o=r[i];n[i]=new C(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},e.prototype.hasExecutors=function(e){for(var t in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[t],r=0,i=e.length;r<i;++r)if(e[r]in n)return!0;return!1},e.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i,o){var l=2*(r=Math.round(r))+1,c=Object(a.b)(this.hitDetectionTransform_,r+.5,r+.5,1/t,-1/t,-n,-e[0],-e[1]),d=!this.hitDetectionContext_;d&&(this.hitDetectionContext_=Object(S.a)(l,l));var u,p=this.hitDetectionContext_;p.canvas.width!==l||p.canvas.height!==l?(p.canvas.width=l,p.canvas.height=l):d||p.clearRect(0,0,l,l),void 0!==this.renderBuffer_&&(u=Object(s.createEmpty)(),Object(s.extendCoordinate)(u,e),Object(s.buffer)(u,t*(this.renderBuffer_+r),u));var f,m=function(e){if(void 0!==O[e])return O[e];for(var t=2*e+1,n=e*e,r=new Array(n+1),i=0;i<=e;++i)for(var o=0;o<=e;++o){var a=i*i+o*o;if(a>n)break;var s=r[a];s||(s=[],r[a]=s),s.push(4*((e+i)*t+(e+o))+3),i>0&&s.push(4*((e-i)*t+(e+o))+3),o>0&&(s.push(4*((e+i)*t+(e-o))+3),i>0&&s.push(4*((e-i)*t+(e-o))+3))}for(var l=[],c=(i=0,r.length);i<c;++i)r[i]&&l.push.apply(l,r[i]);return O[e]=l,l}(r);function g(e,t){for(var n=p.getImageData(0,0,l,l).data,a=0,s=m.length;a<s;a++)if(n[m[a]]>0){if(!o||"Image"!==f&&"Text"!==f||-1!==o.indexOf(e)){var c=(m[a]-3)/4,d=r-c%l,u=r-(c/l|0),h=i(e,t,d*d+u*u);if(h)return h}p.clearRect(0,0,l,l);break}}var v,y,b,_,w,x=Object.keys(this.executorsByZIndex_).map(Number);for(x.sort(h.i),v=x.length-1;v>=0;--v){var C=x[v].toString();for(b=this.executorsByZIndex_[C],y=k.length-1;y>=0;--y)if(void 0!==(_=b[f=k[y]])&&(w=_.executeHitDetection(p,c,n,g,u)))return w}},e.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var n=t[0],r=t[1],i=t[2],o=t[3],a=[n,r,n,o,i,o,i,r];return Object(d.c)(a,0,8,2,e,a),a},e.prototype.isEmpty=function(){return Object(E.d)(this.executorsByZIndex_)},e.prototype.execute=function(e,t,n,r,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(h.i),this.maxExtent_&&(e.save(),this.clip(e,n));var l,c,d,u,p,f,m=o||k;for(a&&s.reverse(),l=0,c=s.length;l<c;++l){var g=s[l].toString();for(p=this.executorsByZIndex_[g],d=0,u=m.length;d<u;++d)void 0!==(f=p[m[d]])&&f.execute(e,t,n,r,i,a)}this.maxExtent_&&e.restore()},e}(),O={};t.a=T},function(e,t,n){var r,i=n(80),o=n(0),a=n(15),s=n(85),l=n(54),c=n(1),d=n(146),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=this,r=void 0===t.imageSmoothing||t.imageSmoothing;if(void 0!==t.interpolate&&(r=t.interpolate),(n=e.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:r,projection:Object(c.get)("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,zDirection:t.zDirection})||this).tileJSON_=null,n.tileSize_=t.tileSize,t.url)if(t.jsonp)Object(d.a)(t.url,n.handleTileJSONResponse.bind(n),n.handleTileJSONError.bind(n));else{var i=new XMLHttpRequest;i.addEventListener("load",n.onXHRLoad_.bind(n)),i.addEventListener("error",n.onXHRError_.bind(n)),i.open("GET",t.url),i.send()}else t.tileJSON?n.handleTileJSONResponse(t.tileJSON):Object(a.a)(!1,51);return n}return u(t,e),t.prototype.onXHRLoad_=function(e){var t=e.target;if(!t.status||t.status>=200&&t.status<300){var n=void 0;try{n=JSON.parse(t.responseText)}catch(e){return void this.handleTileJSONError()}this.handleTileJSONResponse(n)}else this.handleTileJSONError()},t.prototype.onXHRError_=function(e){this.handleTileJSONError()},t.prototype.getTileJSON=function(){return this.tileJSON_},t.prototype.handleTileJSONResponse=function(e){var t,n=Object(c.get)("EPSG:4326"),r=this.getProjection();if(void 0!==e.bounds){var i=Object(c.getTransformFromProjections)(n,r);t=Object(o.applyTransform)(e.bounds,i)}var a=Object(l.extentFromProjection)(r),d=e.minzoom||0,u=e.maxzoom||22,h=Object(l.createXYZ)({extent:a,maxZoom:u,minZoom:d,tileSize:this.tileSize_});if(this.tileGrid=h,this.tileUrlFunction=Object(s.a)(e.tiles,h),void 0!==e.attribution&&!this.getAttributions()){var p=void 0!==t?t:a;this.setAttributions((function(t){return Object(o.intersects)(p,t.extent)?[e.attribution]:null}))}this.tileJSON_=e,this.setState("ready")},t.prototype.handleTileJSONError=function(){this.setState("error")},t}(i.a);t.a=h},function(e,t,n){var r,i=n(52),o=n(0),a=n(81),s=n(69),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n,r){var i=e.call(this)||this;if(void 0!==r&&void 0===n)i.setFlatCoordinates(r,t);else{var o=n||0;i.setCenterAndRadius(t,o,r)}return i}return l(t,e),t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){var i=this.flatCoordinates,o=e-i[0],a=t-i[1],s=o*o+a*a;if(s<r){if(0===s)for(var l=0;l<this.stride;++l)n[l]=i[l];else{var c=this.getRadius()/Math.sqrt(s);for(n[0]=i[0]+c*o,n[1]=i[1]+c*a,l=2;l<this.stride;++l)n[l]=i[l]}return n.length=this.stride,s}return r},t.prototype.containsXY=function(e,t){var n=this.flatCoordinates,r=e-n[0],i=t-n[1];return r*r+i*i<=this.getRadiusSquared_()},t.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.computeExtent=function(e){var t=this.flatCoordinates,n=t[this.stride]-t[0];return Object(o.createOrUpdate)(t[0]-n,t[1]-n,t[0]+n,t[1]+n,e)},t.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},t.prototype.getRadiusSquared_=function(){var e=this.flatCoordinates[this.stride]-this.flatCoordinates[0],t=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return e*e+t*t},t.prototype.getType=function(){return"Circle"},t.prototype.intersectsExtent=function(e){var t=this.getExtent();if(Object(o.intersects)(e,t)){var n=this.getCenter();return e[0]<=n[0]&&e[2]>=n[0]||e[1]<=n[1]&&e[3]>
799=n[1]||Object(o.forEachCorner)(e,this.intersectsCoordinate.bind(this))}return!1},t.prototype.setCenter=function(e){var t=this.stride,n=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+n;for(var i=1;i<t;++i)r[t+i]=e[i];this.setFlatCoordinates(this.layout,r),this.changed()},t.prototype.setCenterAndRadius=function(e,t,n){this.setLayout(n,e,0),this.flatCoordinates||(this.flatCoordinates=[]);var r=this.flatCoordinates,i=Object(a.a)(r,0,e,this.stride);r[i++]=r[0]+t;for(var o=1,s=this.stride;o<s;++o)r[i++]=r[o];r.length=i,this.changed()},t.prototype.getCoordinates=function(){return null},t.prototype.setCoordinates=function(e,t){},t.prototype.setRadius=function(e){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+e,this.changed()},t.prototype.rotate=function(e,t){var n=this.getCenter(),r=this.getStride();this.setCenter(Object(s.a)(n,0,n.length,r,e,t,n)),this.changed()},t.prototype.translate=function(e,t){var n=this.getCenter(),r=this.getStride();this.setCenter(Object(s.d)(n,0,n.length,r,e,t,n)),this.changed()},t}(i.a);c.prototype.transform,t.a=c},function(e,t,n){n.d(t,"a",(function(){return m}));var r=n(61),i=n.n(r),o=n(25),a=n.n(o),s=n(26),l=n.n(s),c=n(28),d=n.n(c),u=n(41),h=n(2),p=n(189),f=n(7),m=function(){function e(t){if(a()(this,e),Object(u.b)()){if(!t||"string"!=typeof t.caller)throw"Caller parameter not supplied";for(var n in this.options=t,this.listeners={},h.c)Object.prototype.hasOwnProperty.call(h.c,n)&&(this.listeners[h.c[n]]=[]);this.authenticationProviders=[]}}var t;return l()(e,[{key:"getCaller",value:function(){return this.options.caller}},{key:"registerAuthenticationProvider",value:function(e){"function"!=typeof e.authenticate?console.error("Invalid authentication provider"):this.authenticationProviders.push(e)}},{key:"removeAuthenticationProvider",value:function(e,t){if("function"!=typeof e.authenticate)console.error("Invalid authentication provider");else for(var n=0;n<this.authenticationProviders.length;n++)if(this.authenticationProviders[n]===e){this.authenticationProviders.splice(n,1),!1!==t&&h.f.clear();break}}},{key:"getAuthenticationProviders",value:function(){return this.authenticationProviders}},{key:"pingServers",value:function(e,t,n){(n<=1||!n||void 0===n)&&(n=6);var r=e.map((function(e){return{serverUrl:e,success:!1,times:[],avgTime:null,attempts:0}})),i=function e(i,o,a){if(r[o].attempts++,a&&r[o].attempts>1){var s=performance.now()-i;r[o].times.push(s),r[o].avgTime=null!=r[o].avgTime?(r[o].avgTime*r[o].times.length+s)/(r[o].times.length+1):s,r[o].success=!0}if(r[o].attempts>=n&&o++,o>=r.length)"function"==typeof t&&t(r.sort((function(e,t){return null!=e.avgTime&&null!=t.avgTime?e.avgTime-t.avgTime:null!=e.avgTime?-1e7:1e7})).map((function(e){return e.serverUrl})),r);else{var l=performance.now();Object(h.h)({serverUrl:r[o].serverUrl,method:h.a.GetVersionInfo,success:e.bind(this,l,o,!0),failure:e.bind(this,l,o,!1)})}},o=performance.now();Object(h.h)({serverUrl:r[0].serverUrl,method:h.a.GetVersionInfo,success:i.bind(this,o,0,!0),failure:i.bind(this,o,0,!1)})}},{key:"evaluateConnection",value:(t=i()(d.a.mark((function e(t){var n,r,i,o,a,s,l,c,u,h,p,f,m,g;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.endsWith("/")||(t+="/"),n=10,r=52428800,i=0,o=0;case 5:return a=performance.now(),e.prev=6,e.next=9,fetch("".concat(t,"api/json/GetVersionInfo"));case 9:e.next=15;break;case 11:return e.prev=11,e.t0=e.catch(6),console.error("connection failed"),e.abrupt("return",{roundTrip:null,downloadSpeed:null});case 15:s=performance.now(),i+=s-a,o++;case 18:if(o<n){e.next=5;break}case 19:return i/=n,l=performance.now(),e.prev=21,e.next=24,fetch("".concat(t,"speedtest"),{headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"size=".concat(r),method:"POST"});case 24:c=e.sent,u=c.body.getReader(),h=!1;case 27:if(h){e.next=36;break}return e.next=30,u.read();case 30:p=e.sent,f=p.done,p.value,h=f,e.next=27;break;case 36:e.next=42;break;case 38:return e.prev=38,e.t1=e.catch(21),console.error("download failed"),e.abrupt("return",{roundTrip:i,downloadSpeed:null});case 42:return m=performance.now(),g=r/((m-l)/1e3),e.abrupt("return",{roundTrip:i,downloadSpeed:g});case 46:case"end":return e.stop()}}),e,null,[[6,11],[21,38]])}))),function(e){return t.apply(this,arguments)})},{key:"getUserInfo",value:function(e){for(var t in h.f.get())if(Object.prototype.hasOwnProperty.call(h.f.get(),t)&&t===e&&h.f.get()[t])return h.f.get()[t];return null}},{key:"getSession",value:function(e,t,n){for(var r in h.f.get())if(Object.prototype.hasOwnProperty.call(h.f.get(),r)&&r===e&&h.f.get()[r])return void t(h.f.get()[r].SessionId);g.call(this,e,t,n)}},{key:"getImageInfo",value:function(e,t,n,r){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.GetImageInfo,data:{pathOrUid:t},httpMethod:"GET",success:n,failure:r})}},{key:"getFiles",value:function(e,t,n,r){console.warn("Context.getFiles is deprecated please use Context.getSlides instead"),v.call(this,{attemptCount:0,serverUrl:e,method:h.a.GetFiles,data:{path:t},httpMethod:"GET",success:n,failure:r})}},{key:"getSlides",value:function(e){v.call(this,{attemptCount:0,serverUrl:e.serverUrl,method:h.a.GetFiles,data:{path:e.path,scope:e.scope?e.scope:0},httpMethod:"GET",success:e.success,failure:e.failure})}},{key:"getDirectories",value:function(e,t,n,r){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.GetDirectories,data:{path:t},httpMethod:"GET",success:n,failure:r})}},{key:"createDirectory",value:function(e,t,n,r){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.CreateDirectory,data:{path:t},httpMethod:"POST",contentType:"application/json",success:n,failure:r})}},{key:"deleteDirectory",value:function(e,t,n,r,i){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.DeleteDirectory,data:{path:t,deleteContents:n},httpMethod:"POST",contentType:"application/json",success:r,failure:i})}},{key:"renameDirectory",value:function(e,t,n,r,i){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.RenameDirectory,data:{path:t,newName:n},httpMethod:"POST",contentType:"application/json",success:r,failure:i})}},{key:"deleteSlide",value:function(e,t,n,r,i){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.DeleteSlide,data:{path:t,deleteAsFile:n},httpMethod:"POST",contentType:"application/json",success:r,failure:i})}},{key:"getAnnotations",value:function(e,t,n,r,i){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.GetAnnotations,data:{pathOrUid:t,currentUserOnly:n},httpMethod:"GET",success:r,failure:i})}},{key:"addAnnotation",value:function(e,t,n,r,i,o,a,s,l){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.AddAnnotation,data:{pathOrUid:t,classification:n,layerID:r,notes:i,geometry:o,color:a},httpMethod:"POST",contentType:"application/json",success:s,failure:l})}},{key:"updateAnnotation",value:function(e,t,n,r,i,o,a,s,l){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.UpdateAnnotation,data:{pathOrUid:t,layerID:n,annotationID:r,notes:i,geometry:o,color:a},httpMethod:"POST",contentType:"application/json",success:s,failure:l})}},{key:"saveAnnotations",value:function(e,t,n,r,i,o,a){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.SaveAnnotations,data:{pathOrUid:t,added:n,updated:r,deleted:i},httpMethod:"POST",contentType:"application/json",success:o,failure:a})}},{key:"deleteAnnotation",value:function(e,t,n,r,i,o){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.DeleteAnnotation,data:{pathOrUid:t,layerID:n,annotationID:r},httpMethod:"POST",contentType:"application/json",success:i,failure:o})}},{key:"getFormDefinitions",value:function(e,t,n,r,i){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.GetFormDefinitions,data:{formIDs:t instanceof Array?t.join(","):t,rootDirectoryAlias:n},httpMethod:"GET",success:r,failure:i})}},{key:"getFormSubmissions",value:function(e,t,n,r,i,o){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.GetFormSubmissions,data:{pathOrUids:t instanceof Array?t:[],formIDs:n instanceof Array?n:[],currentUserOnly:r},httpMethod:"POST",contentType:"application/json",success:i,failure:o})}},{key:"saveFormDefinition",value:function(e,t,n,r){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.SaveFormDefinition,apiPath:"admin",contentType:"application/json",data:{definition:t},httpMethod:"POST",success:n,failure:r})}},{key:"deleteFormDefinition",value:function(e,t,n,r){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.DeleteFormDefinition,apiPath:"admin",data:{formID:t},httpMethod:"GET",success:n,failure:r})}},{key:"getVersionInfo",value:function(e,t,n){Object(h.h)({serverUrl:e,method:h.a.GetVersionInfo,success:function(e){if("function"==typeof t){var n=Object(h.o)(e.responseText);t(n)}},failure:function(e){if("function"==typeof n)if(e.responseText&&0!==e.responseText.length){var t=Object(h.o)(e.responseText);n(t)}else n({Message:f.a.translate("Get Version Info failed")})}})}},{key:"getEvents",value:function(e,t,n){v.call(this,{attemptCount:0,serverUrl:e.serverUrl,method:h.a.GetEvents,apiPath:"admin",data:{page:e.page,pageSize:e.pageSize},httpMethod:"GET",success:t,failure:n})}},{key:"deAuthenticate",value:function(e,t,n){var r=null;if(Object.prototype.hasOwnProperty.call(h.f.get(),e)&&h.f.get()[e]){if(!(r=h.f.get()[e].SessionId)&&"function"==typeof t)return void t()}else for(var i=function(e){r=e},o=0;o<this.authenticationProviders.length&&!(this.authenticationProviders[o]instanceof He.UI.Authentication.SessionLogin&&this.authenticationProviders[o].authenticate(e,i,null));o++);null!=r&&(h.f.set(e,null),Object(h.h)({serverUrl:e,method:h.a.DeAuthenticate,data:{sessionID:r},success:function(){"function"==typeof t&&t()},failure:function(e){if("function"==typeof n)if(e.responseText&&0!==e.responseText.length){var t=Object(h.o)(e.responseText);n(t)}else n()}}))}},{key:"queryFilename",value:function(e,t,n,r,i){v.call(this,{attemptCount:0,serverUrl:e,method:h.a.QueryFilename,apiPath:"query",data:{path:t,pattern:n},httpMethod:"GET",success:r,failure:i})}},{key:"distinctValues",value:function(e){v.call(this,{attemptCount:0,serverUrl:e.serverUrl,method:h.a.DistinctValues,apiPath:"query",data:{formID:e.formId,fieldID:e.fieldId},httpMethod:"GET",success:e.success,failure:e.failure})}},{key:"getImagesInfo",value:function(e){v.call(this,{attemptCount:0,serverUrl:e.serverUrl,method:h.a.GetImagesInfo,apiPath:"api",data:{pathOrUids:e.images},contentType:"application/json",httpMethod:"POST",success:e.success,failure:e.failure})}},{key:"metadata",value:function(e){v.call(this,{attemptCount:0,serverUrl:e.serverUrl,method:h.a.Metadata,apiPath:"query",data:{expressions:e.expressions},httpMethod:"POST",contentType:"application/json",success:e.success,failure:e.failure})}},{key:"checkPmaStartServer",value:function(e,t){Object(h.h)({method:h.a.GetVersionInfo,httpMethod:"GET",serverUrl:"http://127.0.0.1:54001/",success:function(){"function"==typeof callback&&e.call(this,!0)},failure:function(){"function"==typeof callback&&t.call(this,!1)}})}},{key:"getPmaStartCorsUrl",value:function(){return"http://127.0.0.1:54001/home/allowdomain/?host="+document.location.origin}},{key:"runScript",value:function(e){v.call(this,{attemptCount:0,serverUrl:e.serverUrl,method:h.a.RunScripts,apiPath:"scripts",webapi:!0,data:Object.assign({name:e.name},e.params),httpMethod:"GET",success:e.success,failure:e.failure})}},{key:"listen",value:function(e,t){Object.prototype.hasOwnProperty.call(this.listeners,e)||console.error(e+" is not a valid event"),this.listeners[e].push(t)}},{key:"fireEvent",value:function(e,t){if(Object.prototype.hasOwnProperty.call(this.listeners,e))for(var n=0,r=this.listeners[e].length;n<r;n++)this.listeners[e][n](t);else console.error(e+" does not exist")}},{key:"uploadFile",value:function(e){var t=this;return new Promise((function(n,r){v.call(t,{attemptCount:0,serverUrl:e.serverUrl,method:h.a.Upload,apiPath:"transfer",webapi:!0,data:{path:e.targetPath,files:[{isMain:!0,length:e.file.size,path:e.file.name}]},httpMethod:"POST",contentType:"application/json",success:function(t,i){var o="PUT";i.Urls||(i.Urls=[]),0===i.Urls.length&&(o="POST",i.Urls.push("".concat(e.serverUrl,"transfer/Upload/").concat(i.Id,"?sessionId=").concat(t,"&path=").concat(encodeURIComponent(e.file.name))));var a=new FormData;a.append("file",e.file);var s=new XMLHttpRequest;s.open(o,i.Urls[0],!0),s.upload.onprogress=function(t){var n=Math.ceil(t.loaded/t.total*100);
799"function"==typeof e.progress&&e.progress(e.file.name,n)},s.onload=function(){n(!0)},s.onerror=function(){r()},"POST"===o?s.send(a):s.send(e.file)},failure:function(e){r(e)}})}))}},{key:"uploadSlide",value:function(e){var t=this;return new Promise((function(n){var r=0,i=e.slide.files.map((function(e){return e&&e.size?e.size:0})).reduce((function(e,t){return e+t}),0),o=[];v.call(t,{attemptCount:0,serverUrl:e.serverUrl,method:h.a.Upload,apiPath:"transfer",webapi:!0,data:{path:e.targetPath,files:e.slide.files.map((function(t,n){return{isMain:0===n,length:t.size,path:(0===n?"":e.targetChildPath?(Array.isArray(e.targetChildPath)?e.targetChildPath[n]:e.targetChildPath)+"/":"")+t.name}}))},httpMethod:"POST",contentType:"application/json",success:function(t,a){var s="PUT",l=!1;2===a.UploadType&&(l=!0),a.Urls||(a.Urls=[]),0===a.Urls.length&&(s="POST",e.slide.files.map((function(n,r){return a.Urls.push("".concat(e.serverUrl,"transfer/Upload/").concat(a.Id,"?sessionId=").concat(t,"&path=").concat(encodeURIComponent((0===r?"":e.targetChildPath?(Array.isArray(e.targetChildPath)?e.targetChildPath[r]:e.targetChildPath)+"/":"")+n.name)))})));for(var c=0;c<e.slide.files.length;c++)!function(c){var d=new FormData,u=e.slide.files[c];d.append("file",u,u.name);var h=new XMLHttpRequest;h.open(s,a.Urls[c],!0),o[c]=0,l&&h.setRequestHeader("x-ms-blob-type","BlockBlob"),h.upload.onprogress=function(t){o[c]=t.loaded;var n=o.reduce((function(e,t){return e+t}),0),r=Math.floor(n/i*100);r!==e.slide.uploadProgress&&"function"==typeof e.progress&&e.progress(e.slide,r)},h.onload=function(){o[c]=u.size,++r>=e.slide.files.length&&(fetch("".concat(e.serverUrl,"transfer/Upload/").concat(a.Id,"?sessionId=").concat(t)),"function"==typeof e.success&&e.success(e.slide),n(!0))},h.onerror=function(t){"function"==typeof e.error&&e.error(e.slide,t.Message?t.Message:""),n()},"POST"===s?h.send(d):h.send(u)}(c)},failure:function(t){"function"==typeof e.error&&e.error(e.slide,t.Message?t.Message:""),n(t)}})}))}}]),e}();function g(e,t,n){var r=0;for(r=0;r<this.authenticationProviders.length;r++)if(!(this.authenticationProviders[r]instanceof p.a)&&this.authenticationProviders[r].authenticate(e,t,n))return;for(r=0;r<this.authenticationProviders.length;r++)if(this.authenticationProviders[r]instanceof p.a){if(this.authenticationProviders[r].authenticate(e,t,n))return;break}"function"==typeof n&&n({Message:f.a.translate("Authentication failed at server {serverUrl}.",{serverUrl:e})})}function v(e){var t=this;e.apiPath||(e.apiPath="api"),t.getSession(e.serverUrl,(function(n){e.data.sessionID=n,Object(h.h)({serverUrl:e.serverUrl,method:e.method,data:e.data,contentType:e.contentType,httpMethod:e.httpMethod,apiPath:e.apiPath,webapi:e.webapi,success:function(t){if("function"==typeof e.success){var n=Object(h.o)(t.responseText);e.success(e.data.sessionID,n)}},failure:function(n){if(h.f.set(e.serverUrl,null),0==n.status&&0===e.attemptCount)e.attemptCount=1,v.call(t,e);else if("function"==typeof e.failure)if(n.responseText&&0!==n.responseText.length)try{var r=Object(h.o)(n.responseText);e.failure(r),t.fireEvent(h.c.SessionIdLoginFailed,{serverUrl:e.serverUrl})}catch(r){e.failure(n.responseText),t.fireEvent(h.c.SessionIdLoginFailed,{serverUrl:e.serverUrl})}else e.failure({Message:f.a.translate("Authentication failed")}),t.fireEvent(h.c.SessionIdLoginFailed,{serverUrl:e.serverUrl})}})}),(function(n){!n.Message&&n.Reason&&(n.Message=n.Reason),"function"==typeof e.failure&&e.failure(n),t.fireEvent(h.c.SessionIdLoginFailed,{serverUrl:e.serverUrl})}))}m.prototype.GetImagesInfo=m.prototype.getImagesInfo},function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(6);function i(e,t,n){var i=n||6371008.8,o=Object(r.m)(e[1]),a=Object(r.m)(t[1]),s=(a-o)/2,l=Object(r.m)(t[0]-e[0])/2,c=Math.sin(s)*Math.sin(s)+Math.sin(l)*Math.sin(l)*Math.cos(o)*Math.cos(a);return 2*i*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}function o(e,t,n,i){var o=i||6371008.8,a=Object(r.m)(e[1]),s=Object(r.m)(e[0]),l=t/o,c=Math.asin(Math.sin(a)*Math.cos(l)+Math.cos(a)*Math.sin(l)*Math.cos(n)),d=s+Math.atan2(Math.sin(n)*Math.sin(l)*Math.cos(a),Math.cos(l)-Math.sin(a)*Math.sin(c));return[Object(r.l)(d),Object(r.l)(c)]}},function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}
799));var r=n(32);function i(e,t,n,r,i,o,a){var s=new XMLHttpRequest;s.open("GET","function"==typeof e?e(n,r,i):e,!0),"arraybuffer"==t.getType()&&(s.responseType="arraybuffer"),s.withCredentials=!1,s.onload=function(e){if(!s.status||s.status>=200&&s.status<300){var r=t.getType(),l=void 0;"json"==r||"text"==r?l=s.responseText:"xml"==r?(l=s.responseXML)||(l=(new DOMParser).parseFromString(s.responseText,"application/xml")):"arraybuffer"==r&&(l=s.response),l?o(t.readFeatures(l,{extent:n,featureProjection:i}),t.readProjection(l)):a()}else a()},s.onerror=a,s.send()}function o(e,t){return function(n,o,a,s,l){var c=this;i(e,t,n,o,a,(function(e,t){c.addFeatures(e),void 0!==s&&s(e)}),l||r.c)}}},function(e,t,n){var r,i=n(200),o=n(95),a=n(10),s=n(17),l=n(9),c=n(0),d=n(69),u=n(52),h=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t,n,r,i,o,s,l){var c=e.call(this)||this;return c.context_=t,c.pixelRatio_=n,c.extent_=r,c.transform_=i,c.viewRotation_=o,c.squaredTolerance_=s,c.userTransform_=l,c.contextFillState_=null,c.contextStrokeState_=null,c.contextTextState_=null,c.fillState_=null,c.strokeState_=null,c.image_=null,c.imageAnchorX_=0,c.imageAnchorY_=0,c.imageHeight_=0,c.imageOpacity_=0,c.imageOriginX_=0,c.imageOriginY_=0,c.imageRotateWithView_=!1,c.imageRotation_=0,c.imageScale_=[0,0],c.imageWidth_=0,c.text_="",c.textOffsetX_=0,c.textOffsetY_=0,c.textRotateWithView_=!1,c.textRotation_=0,c.textScale_=[0,0],c.textFillState_=null,c.textStrokeState_=null,c.textState_=null,c.pixelCoordinates_=[],c.tmpLocalTransform_=Object(a.c)(),c}return h(t,e),t.prototype.drawImages_=function(e,t,n,r){if(this.image_){var i=Object(d.c)(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.tmpLocalTransform_,l=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=l*this.imageOpacity_);var c=this.imageRotation_;this.imageRotateWithView_&&(c+=this.viewRotation_);for(var u=0,h=i.length;u<h;u+=2){var p=i[u]-this.imageAnchorX_,f=i[u+1]-this.imageAnchorY_;if(0!==c||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var m=p+this.imageAnchorX_,g=f+this.imageAnchorY_;Object(a.b)(s,m,g,1,1,c,-m,-g),o.setTransform.apply(o,s),o.translate(m,g),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,p,f,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=l)}},t.prototype.drawText_=function(e,t,n,r){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=Object(d.c)(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.textRotation_;for(this.textRotateWithView_&&(s+=this.viewRotation_);t<n;t+=r){var l=i[t]+this.textOffsetX_,c=i[t+1]+this.textOffsetY_;if(0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]){var u=Object(a.b)(this.tmpLocalTransform_,l,c,1,1,s,-l,-c);o.setTransform.apply(o,u),o.translate(l,c),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,l,c),this.textFillState_&&o.fillText(this.text_,l,c)}}},t.prototype.moveToLineTo_=function(e,t,n,r,i){var o=this.context_,a=Object(d.c)(e,t,n,r,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var l=2;l<s;
799l+=2)o.lineTo(a[l],a[l+1]);return i&&o.closePath(),n},t.prototype.drawRings_=function(e,t,n,r){for(var i=0,o=n.length;i<o;++i)t=this.moveToLineTo_(e,t,n[i],r,!0);return t},t.prototype.drawCircle=function(e){if(Object(c.intersects)(this.extent_,e.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=Object(u.c)(e,this.transform_,this.pixelCoordinates_),n=t[2]-t[0],r=t[3]-t[1],i=Math.sqrt(n*n+r*r),o=this.context_;o.beginPath(),o.arc(t[0],t[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(e.getCenter(),0,2,2)}},t.prototype.setStyle=function(e){this.setFillStrokeStyle(e.getFill(),e.getStroke()),this.setImageStyle(e.getImage()),this.setTextStyle(e.getText())},t.prototype.setTransform=function(e){this.transform_=e},t.prototype.drawGeometry=function(e){switch(e.getType()){case"Point":this.drawPoint(e);break;case"LineString":this.drawLineString(e);break;case"Polygon":this.drawPolygon(e);break;case"MultiPoint":this.drawMultiPoint(e);break;case"MultiLineString":this.drawMultiLineString(e);break;case"MultiPolygon":this.drawMultiPolygon(e);break;case"GeometryCollection":this.drawGeometryCollection(e);break;case"Circle":this.drawCircle(e)}},t.prototype.drawFeature=function(e,t){var n=t.getGeometryFunction()(e);n&&Object(c.intersects)(this.extent_,n.getExtent())&&(this.setStyle(t),this.drawGeometry(n))},t.prototype.drawGeometryCollection=function(e){for(var t=e.getGeometriesArray(),n=0,r=t.length;n<r;++n)this.drawGeometry(t[n])},t.prototype.drawPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawMultiPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawLineString=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(c.intersects)(this.extent_,e.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getFlatCoordinates();t.beginPath(),this.moveToLineTo_(n,0,n.length,e.getStride(),!1),t.stroke()}if(""!==this.text_){var r=e.getFlatMidpoint();this.drawText_(r,0,2,2)}}},t.prototype.drawMultiLineString=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getExtent();if(Object(c.intersects)(this.extent_,t)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,r=e.getFlatCoordinates(),i=0,o=e.getEnds(),a=e.getStride();n.beginPath();for(var s=0,l=o.length;s<l;++s)i=this.moveToLineTo_(r,i,o[s],a,!1);n.stroke()}if(""!==this.text_){var d=e.getFlatMidpoints();this.drawText_(d,0,d.length,2)}}},t.prototype.drawPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(c.intersects)(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_;t.beginPath(),this.drawRings_(e.getOrientedFlatCoordinates(),0,e.getEnds(),e.getStride()),this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var n=e.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},t.prototype.drawMultiPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(c.intersects)(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getOrientedFlatCoordinates(),r=0,i=e.getEndss(),o=e.getStride();t.beginPath();for(var a=0,s=i.length;a<s;++a){var l=i[a];r=this.drawRings_(n,r,l,o)}this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var d=e.getFlatInteriorPoints();this.drawText_(d,0,d.length,2)}}},t.prototype.setContextFillState_=function(e){var t=this.context_,n=this.contextFillState_;n?n.fillStyle!=e.fillStyle&&(n.fillStyle=e.fillStyle,t.fillStyle=e.fillStyle):(t.fillStyle=e.fillStyle,this.contextFillState_={fillStyle:e.fillStyle})},t.prototype.setContextStrokeState_=function(e){var t=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=e.lineCap&&(n.lineCap=e.lineCap,t.lineCap=e.lineCap),t.setLineDash&&(Object(l.b)(n.lineDash,e.lineDash)||t.setLineDash(n.lineDash=e.lineDash),n.lineDashOffset!=e.lineDashOffset&&(n.lineDashOffset=e.lineDashOffset,t.lineDashOffset=e.lineDashOffset)),n.lineJoin!=e.lineJoin&&(n.lineJoin=e.lineJoin,t.lineJoin=e.lineJoin),n.lineWidth!=e.lineWidth&&(n.lineWidth=e.lineWidth,t.lineWidth=e.lineWidth),n.miterLimit!=e.miter
799Limit&&(n.miterLimit=e.miterLimit,t.miterLimit=e.miterLimit),n.strokeStyle!=e.strokeStyle&&(n.strokeStyle=e.strokeStyle,t.strokeStyle=e.strokeStyle)):(t.lineCap=e.lineCap,t.setLineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.lineWidth=e.lineWidth,t.miterLimit=e.miterLimit,t.strokeStyle=e.strokeStyle,this.contextStrokeState_={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})},t.prototype.setContextTextState_=function(e){var t=this.context_,n=this.contextTextState_,r=e.textAlign?e.textAlign:s.l;n?(n.font!=e.font&&(n.font=e.font,t.font=e.font),n.textAlign!=r&&(n.textAlign=r,t.textAlign=r),n.textBaseline!=e.textBaseline&&(n.textBaseline=e.textBaseline,t.textBaseline=e.textBaseline)):(t.font=e.font,t.textAlign=r,t.textBaseline=e.textBaseline,this.contextTextState_={font:e.font,textAlign:r,textBaseline:e.textBaseline})},t.prototype.setFillStrokeStyle=function(e,t){var n=this;if(e){var r=e.getColor();this.fillState_={fillStyle:Object(o.a)(r||s.b)}}else this.fillState_=null;if(t){var i=t.getColor(),a=t.getLineCap(),l=t.getLineDash(),c=t.getLineDashOffset(),d=t.getLineJoin(),u=t.getWidth(),h=t.getMiterLimit(),p=l||s.e;this.strokeState_={lineCap:void 0!==a?a:s.d,lineDash:1===this.pixelRatio_?p:p.map((function(e){return e*n.pixelRatio_})),lineDashOffset:(c||s.f)*this.pixelRatio_,lineJoin:void 0!==d?d:s.g,lineWidth:(void 0!==u?u:s.h)*this.pixelRatio_,miter
799Limit:void 0!==h?h:s.i,strokeStyle:Object(o.a)(i||s.k)}}else this.strokeState_=null},t.prototype.setImageStyle=function(e){var t;if(e&&(t=e.getSize())){var n=e.getAnchor(),r=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*this.pixelRatio_,this.imageAnchorY_=n[1]*this.pixelRatio_,this.imageHeight_=t[1]*this.pixelRatio_,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation(),this.imageScale_=e.getScaleArray(),this.imageWidth_=t[0]*this.pixelRatio_}else this.image_=null},t.prototype.setTextStyle=function(e){if(e){var t=e.getFill();if(t){var n=t.getColor();this.textFillState_={fillStyle:Object(o.a)(n||s.b)}}else this.textFillState_=null;var r=e.getStroke();if(r){var i=r.getColor(),a=r.getLineCap(),l=r.getLineDash(),c=r.getLineDashOffset(),d=r.getLineJoin(),u=r.getWidth(),h=r.getMiterLimit();this.textStrokeState_={lineCap:void 0!==a?a:s.d,lineDash:l||s.e,lineDashOffset:c||s.f,lineJoin:void 0!==d?d:s.g,lineWidth:void 0!==u?u:s.h,miterLimit:void 0!==h?h:s.i,strokeStyle:Object(o.a)(i||s.k)}}else this.textStrokeState_=null;var p=e.getFont(),f=e.getOffsetX(),m=e.getOffsetY(),g=e.getRotateWithView(),v=e.getRotation(),y=e.getScaleArray(),b=e.getText(),_=e.getTextAlign(),w=e.getTextBaseline();this.textState_={font:void 0!==p?p:s.c,textAlign:void 0!==_?_:s.l,textBaseline:void 0!==w?w:s.m},this.text_=void 0!==b?Array.isArray(b)?b.reduce((function(e,t,n){return e+(n%2?" ":t)}),""):b:"",this.textOffsetX_=void 0!==f?this.pixelRatio_*f:0,this.textOffsetY_=void 0!==m?this.pixelRatio_*m:0,this.textRotateWithView_=void 0!==g&&g,this.textRotation_=void 0!==v?v:0,this.textScale_=[this.pixelRatio_*y[0],this.pixelRatio_*y[1]]}else this.text_=""},t}(i.a);t.a=p},function(e,t,n){n(24),n(14),n(29),n(63),n(40),n(56),n(64),n(22);var r=n(10),i=n(0),o=n(9),a=n(145),s=n(1),l=(n(94),n(125)),c=n(207),d=n(69),u=Object(r.c)(),h=function(){function e(e,t,n,r,i){this.styleFunction,this.extent_,this.id_=i,this.type_=e,this.flatCoordinates_=t,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n,this.properties_=r}return e.prototype.get=function(e){return this.properties_[e]},e.prototype.getExtent=function(){return this.extent_||(this.extent_="Point"===this.type_?Object(i.createOrUpdateFromCoordinate)(this.flatCoordinates_):Object(i.createOrUpdateFromFlatCoordinates)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},e.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var e=Object(i.getCenter)(this.getExtent());this.flatInteriorPoints_=Object(a.a)(this.flatCoordinates_,0,this.ends_,2,e,0)}return this.flatInteriorPoints_},e.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var e=Object(c.a)(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=Object(a.b)(this.flatCoordinates_,0,this.ends_,2,e)}return this.flatInteriorPoints_},e.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=Object(l.a)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},e.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var e=this.flatCoordinates_,t=0,n=this.ends_,r=0,i=n.length;r<i;++r){var a=n[r],s=Object(l.a)(e,t,a,2,.5);Object(o.c)(this.flatMidpoints_,s),t=a}}return this.flatMidpoints_},e.prototype.getId=function(){return this.id_},e.prototype.getOrientedFlatCoordinates=function(){return this.flatCoordinates_},e.prototype.getGeometry=function(){return this},e.prototype.getSimplifiedGeometry=function(e){return this},e.prototype.simplifyTransformed=function(e,t){return this},e.prototype.getProperties=function(){return this.properties_},e.prototype.getStride=function(){return 2},e.prototype.getStyleFunction=function(){return this.styleFunction},e.prototype.getType=function(){return this.type_},e.prototype.transform=function(e){var t=(e=Object(s.get)(e)).getExtent(),n=e.getWorldExtent();if(t&&n){var o=Object(i.getHeight)(n)/Object(i.getHeight)(t);Object(r.b)(u,n[0],n[3],o,-o,0,0,0),Object(d.c)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,u,this.flatCoordinates_)}},e.prototype.getEnds=function(){return this.ends_},e}();h.prototype.getEndss=h.prototype.getEnds,h.prototype.getFlatCoordinates=h.prototype.getOrientedFlatCoordinates,t.a=h},function(e,t,n){var r=function(){function e(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return e.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},e.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},e.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]<e)return!1;for(var n=t-3;n>0&&this.points_[n+2]>e;)n-=3;var r=this.points_[t+2]-this.points_[n+2];if(r<1e3/60)return!1;var i=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_},e.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},e.prototype.getAngle=function(){return this.angle_},e}();t.a=r},function(e,t,n){n.d(t,"a",(function(){return v}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(34),l=n.n(s),c=n(88),d=n.n(c),u=n(53),h=n.n(u),p=n(57),f=n.n(p),m=n(31),g=n.n(m);var v=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(e){var r;i()(this,n);var o=e||{},a=o.dragZoom,s=function(e){e.preventDefault(),e.stopPropagation(),(" "+f.className+" ").indexOf(" disabled ")>-1||(f.className+=" disabled",this.getMap().getView().setResolution(p))},c=o.tipLabel?o.tipLabel:"Previous view",d=o.label?o.label:"â",u=document.createElement("span");u.innerHTML=d;var h=document.createElement("button");h.type="button",h.title=c,h.appendChild(u);var p=1,f=document.createElement("div");return f.className="ol-prevZoom ol-control ol-unselectable disabled",f.appendChild(h),r=t.call(this,{element:f,target:o.target}),a.on("boxstart",function(){(" "+f.className+" ").indexOf(" disabled ")>-1&&(f.className=f.className.replace(/disabled/g,"")),p=this.getMap().getView().getResolution()}
799.bind(l()(r))),h.addEventListener("click",s.bind(l()(r)),!1),h.addEventListener("touchstart",s.bind(l()(r)),!1),r}return a()(n,[{key:"setMap",value:function(e){d()(g()(n.prototype),"setMap",this).call(this,e)}}]),n}(n(50).a)},function(e,t,n){n.d(t,"a",(function(){return m}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(34),l=n.n(s),c=n(53),d=n.n(c),u=n(57),h=n.n(u),p=n(31),f=n.n(p);var m=function(e){d()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}(n);function n(e){var r;i()(this,n);var o=e||{},a=document.createElement("div");(r=t.call(this,{element:a,target:o.target})).pmaViewport=o.pmaViewport,r.stateManager=o.stateManager?o.stateManager:null,r.stateManager?(r.stateManager.associatedImage||(r.stateManager.associatedImage={},r.stateManager.associatedImage.collapsed=!!o.collapsed&&o.collapsed),r.collapsed_=!0===r.stateManager.associatedImage.collapsed):r.collapsed_=!!o.collapsed&&o.collapsed;var s=o.className?o.className:"ol-associated-image",c=o.tipLabel?o.tipLabel:"Barcode",d=o.collapseLabel?o.collapseLabel:"«";r.collapseLabel_=document.createElement("span"),r.collapseLabel_.innerHTML=d;var u=o.label?o.label:"»";r.label_=document.createElement("span"),r.label_.innerHTML=u;var h=r.collapsed_?r.collapseLabel_:r.label_,p=document.createElement("button");p.type="button",p.title=c,p.appendChild(h),"ontouchstart"in document.documentElement?p.addEventListener("touchstart",r.buttonClk.bind(l()(r)),!1):p.addEventListener("click",r.buttonClk.bind(l()(r)),!1),r.stateManager&&"number"==typeof r.stateManager.associatedImage.rotation?r.rotation=r.stateManager.associatedImage.rotation:r.rotation=e.rotation?e.rotation:0,r.imageType=e.imageType.toLowerCase();var f=document.createElement("img");f.src=e.url?e.url:r.getImageUrl();var m=document.createElement("div");m.className="ol-associated-image-container",m.appendChild(f);var g=s+" ol-unselectable ol-control "+(r.collapsed_?" ol-collapsed":"");function v(t){t.preventDefault(),t.stopPropagation(),this.rotation=(this.rotation+90)%360,this.stateManager&&(this.stateManager.associatedImage.rotation=this.rotation),f.src=e.url?e.url:this.getImageUrl()}a.className=g,a.appendChild(m),"ontouchstart"in document.documentElement?f.addEventListener("touchstart",v.bind(l()(r)),!1):f.addEventListener("click",v.bind(l()(r)),!1),r.imageElement=f;var y=document.createElement("button");function b(){window.open(e.url?e.url:this.getImageUrl(!1),"_blank")}y.type="button",y.title="Rotate",y.className="size",y.innerHTML="â®","ontouchstart"in document.documentElement?y.addEventListener("touchstart",v.bind(l()(r)),!1):y.addEventListener("click",v.bind(l()(r)),!1),a.appendChild(y);var _=document.createElement("button");return _.type="button",_.title="Open associated image in new tab",_.className="size",_.innerHTML="â","ontouchstart"in document.documentElement?_.addEventListener("touchstart",b.bind(l()(r)),!1):_.addEventListener("click",b.bind(l()(r)),!1),a.appendChild(_),a.appendChild(p),r}return a()(n,[{key:"getImageUrl",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t="";return e&&(t=90===this.rotation||270===this.rotation?"&h=150":"&w=150"),this.pmaViewport.getActiveServerUrl()+this.imageType+"?sessionID="+encodeURIComponent(this.pmaViewport.getSessionID())+"&pathOrUid="+encodeURIComponent(this.pmaViewport.imageInfo.UID||this.pmaViewport.imageInfo.Filename)+"&rotation="+this.rotation+t}},{key:"setRotation",value:function(e){this.rotation=e,this.stateManager&&(this.stateManager.associatedImage.rotation=this.rotation),this.imageElement.src=this.getImageUrl()}},{key:"getRotation",value:function(){return this.rotation}},{key:"getCollapsed",value:function(){return(" "+this.element.className+" ").indexOf(" ol-collapsed ")>-1}},{key:"setCollapsed",value:function(e){this.getCollapsed()!=e&&this.buttonClk()}},{key:"buttonClk",value:function(e){e&&(e.preventDefault(),e.stopPropagation()),(" "+this.element.className+" ").indexOf(" ol-collapsed ")>-1?this.element.className=this.element.className.replace(/ol-collapsed/g,""):this.element.className+=" ol-collapsed",this.collapsed_?this.collapseLabel_.parentNode.replaceChild(this.label_,this.collapseLabel_):this.label_.parentNode.replaceChild(this.collapseLabel_,this.label_),this.collapsed_=!this.collapsed_,this.stateManager&&(this.stateManager.associatedImage.collapsed=this.collapsed_)}}]),n}(n(50).a)},function(e,t,n){n.d(t,"a",(function(){return m}));var r=n(26),i=n.n(r),o=n(25),a=n.n(o),s=n(34),l=n.n(s),c=n(53),d=n.n(c),u=n(57),h=n.n(u),p=n(31),f=n.n(p);var m=function(e){d()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}(n);function n(e){var r;a()(this,n);var i=e||{},o=document.createElement("div");(r=t.call(this,{element:o,target:i.target})).pmaViewport=i.pmaViewport;var s=document.createElement("a");s.innerHTML=i.tipLabel?i.tipLabel:"Snapshot";var c=l()(r),d=function(e){if(e.preventDefault(),c.pmaViewport){var t=c.pmaViewport.getSnapshotUrl(!1).url;window.open(t,"_blank")}};return s.addEventListener("click",d,!1),s.addEventListener("touchstart",d,!1),o.className="ol-snapshot ol-unselectable ol-control",o.appendChild(s),r}return i()(n)}(n(50).a)},function(e,t,n){n.d(t,"a",(function(){return p}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(53),l=n.n(s),c=n(57),d=n.n(c),u=n(31),h=n.n(u);var p=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(e){var r;i()(this,n);var o=e||{},a=document.createElement("div");(r=t.call(this,{element:a,target:o.target})).stateManager=o.stateManager?o.stateManager:null,r.stateManager?(r.stateManager.fileName||(r.stateManager.fileName={},r.stateManager.fileName.collapsed=!!o.collapsed&&o.collapsed),r.collapsed_=!0===r.stateManager.fileName.collapsed):r.collapsed_=!!o.collapsed&&o.collapsed;var s=o.tipLabel?o.tipLabel:"Filename",l=o.collapseLabel?o.collapseLabel:"«";r.collapseLabel_=document.createElement("button"),r.collapseLabel_.innerHTML=l,r.collapseLabel_.t
799itle=s;var c=o.label?o.label:"»";r.label_=document.createElement("button"),r.label_.innerHTML=c,r.label_.title=s;var d=document.createElement("a"),u=document.createElement("span");u.innerHTML=o.filename,d.appendChild(u);var h=function(e){e.preventDefault(),"function"==typeof o.onClick&&o.onClick()};return d.addEventListener("click",h,!1),d.addEventListener("touchstart",h,!1),a.className="ol-filename ol-unselectable ol-control"+(r.collapsed_?" ol-collapsed":""),a.appendChild(d),a.appendChild(r.collapseLabel_),a.appendChild(r.label_),r.handleCollapseClick=function(e){e&&e.preventDefault(),(" "+a.className+" ").indexOf(" ol-collapsed ")>-1?a.className=a.className.replace(/ol-collapsed/g,""):a.className+=" ol-collapsed"},r.collapseLabel_.addEventListener("click",r.handleCollapseClick,!1),r.collapseLabel_.addEventListener("touchstart",r.handleCollapseClick,!1),r.label_.addEventListener("click",r.handleCollapseClick,!1),r.label_.addEventListener("touchstart",r.handleCollapseClick,!1),r}return a()(n,[{key:"getCollapsed",value:function(){return(" "+this.element.className+" ").indexOf(" ol-collapsed ")>-1}},{key:"setCollapsed",value:function(e){this.getCollapsed()!=e&&this.handleCollapseClick()}}]),n}(n(50).a)},function(e,t,n){n.d(t,"a",(function(){return p}));var r=n(26),i=n.n(r),o=n(25),a=n.n(o),s=n(53),l=n.n(s),c=n(57),d=n.n(c),u=n(31),h=n.n(u);var p=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(e){a()(this,n);var r=e||{},i=document.createElement("div");return i.className=(r.className||"ol-attr")+" ol-unselectable",i.innerHTML=r.html||"",t.call(this,{element:i,target:r.target})}return i()(n)}(n(50).a)},function(e,t,n){n.d(t,"a",(function(){return v}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(34),l=n.n(s),c=n(53),d=n.n(c),u=n(57),h=n.n(u),p=n(31),f=n.n(p),m=n(50),g=n(7);var v=function(e){d()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}(n);function n(e){var r;i()(this,n);var o=e||{},a=(o.layer,o.viewer),s=document.createElement("div");(r=t.call(this,{element:s,target:o.target})).brightness=0,r.contrast=1,r.gamma=1;var c=l()(r);function d(){c.btnbicon.innerHTML=c.brightness.toFixed(0),c.btncicon.innerHTML=c.contrast.toFixed(2),c.btncicon.innerHTML=c.gamma.toFixed(2),a.setBrightnessContrastGamma(c.brightness,c.contrast,c.gamma),c.getMap().render()}return r.btnbplus=document.createElement("button"),r.btnbplus.className="ol-brightness-in",r.btnbplus.innerHTML="+",r.btnbicon=document.createElement("button"),r.btnbicon.className="ol-brightness-middle",r.btnbicon.innerHTML="0",r.btnbicon.title=g.a.translate("Adjust brightness"),r.btnbminus=document.createElement("button"),r.btnbminus.className="ol-brightness-out",r.btnbminus.innerHTML="-",r.btncplus=document.createElement("button"),r.btncplus.className="ol-contrast-in",r.btncplus.innerHTML="+",r.btncicon=document.createElement("button"),r.btncicon.className="ol-contrast-middle",r.btncicon.innerHTML="1.00",r.btncicon.title=g.a.translate("Adjust contrast"),r.btncminus=document.createElement("button"),r.btncminus.className="ol-contrast-out",r.btncminus.innerHTML="-",r.btngplus=document.createElement("button"),r.btngplus.className="ol-gamma-in",r.btngplus.innerHTML="+",r.btngicon=document.createElement("button"),r.btngicon.className="ol-gamma-middle",r.btngicon.innerHTML="1.00",r.btngicon.title=g.a.translate("Adjust gamma"),r.btngminus=document.createElement("button"),r.btngminus.className="ol-gamma-out",r.btngminus.innerHTML="-",r.btnbplus.addEventListener("click",(function(){c.brightness+=10,d()}),!1),r.btnbminus.addEventListener("click",(function(){c.brightness-=10,d()}),!1),r.btnbicon.addEventListener("click",(function(){c.brightness=0,d()}),!1),r.btncplus.addEventListener("click",(function(){c.contrast+=.125,d()}),!1),r.btncminus.addEventListener("click",(function(){c.contrast-=.125,d()}),!1),r.btncicon.addEventListener("click",(function(){c.contrast=1,d()}),!1),r.btngplus.addEventListener("click",(function(){c.gamma+=.1,d()}),!1),r.btngminus.addEventListener("click",(function(){c.gamma-=.1,d()}),!1),r.btngicon.addEventListener("click",(function(){c.gamma=1,d()}),!1),s.className="ol-brightness-contrast ol-unselectable ol-control",s.appendChild(r.btnbminus),s.appendChild(r.btnbicon),s.appendChild(r.btnbplus),s.appendChild(r.btncminus),s.appendChild(r.btncicon),s.appendChild(r.btncplus),s.appendChild(r.btngminus),s.appendChild(r.btngicon),s.appendChild(r.btngplus),r}return a()(n,[{key:"update",value:function(e,t,n){this.brightness=e,this.contrast=t,this.gamma=n,this.btnbicon.innerHTML=this.brightness.toFixed(0),this.btncicon.innerHTML=this.contrast.toFixed(2),this.btngicon.innerHTML=this.gamma.toFixed(2)}}]),n}(m.a)},function(e,t,n){n.d(t,"a",(function(){return p}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(2),l=n(8),c=n.n(l),d=n(7),u=n(41);function h(e,t){var n=this;Object(s.m)(e,c()("div.pma-ui-loginprompt input[type=text]").val(),c()("div.pma-ui-loginprompt input[type=password]").val(),this.context.getCaller(),(function(e){for(var t=0;t<n.successCallbacks.length;t++)n.successCallbacks[t](e);n.active=!1,c()("div.pma-ui-loginprompt").remove()}),(function(e){if(!e.Message&&e.Reason&&(e.Message=e.Reason),t<2)c()("div.pma-ui-loginprompt .error").html(e.Message);else{n.active=!1;for(var r=0;r<n.failureCallbacks.length;r++)n.failureCallbacks[r](e);c()("div.pma-ui-loginprompt").remove()}}))}var p=function(){function e(t,n){i()(this,e),Object(u.b)()&&(this.context=t,this.context.registerAuthenticationProvider(this),this.active=!1,this.serverNameCallback=n)}return a()(e,[{key:"authenticate",value:function(e,t,n){if(this.active)"function"==typeof t&&this.successCallbacks.push(t),"function"==typeof n&&this.failureCallbacks.push(n);else{this.successCallbacks=[],this.failureCallbacks=[],"function"==typeof t&&this.successCallbacks.push(t),"function"==typeof n&&this.failureCallbacks.push(n),this.active=!0;var r=this,i=0,o=e;if("function"==typeof this.serverNameCallback){var a=this.serverNameCallback(e);a&&"string"==typeof a&&(o=a)}c()("body").append("<div class='pma-ui-loginprompt'><div class='login-panel'><div><label>"+o+"</label></div><div><input type='text' placeholder='"+d.a.translate("Username")+"' /></div><div><input type='password' placeholder='"+d.a.translate("Password")+"' /></div><div class='error'></div><div class='controls'><input type='button' class='accept' value='"+d.a.translate("OK")+"' /><input type='button' class='cancel' value='"+d.a.translate("Cancel")+"' /></div></div></div>"),c()("div.pma-ui-loginprompt input[type=text], div.pma-ui-loginprompt input[type=password]").keypress((function(t){13==t.which&&(t.preventDefault(),h.call(r,e,i++))})),c()("div.pma-ui-loginprompt input.accept").click((function(){h.call(r,e,i++)})),c()("div.pma-ui-loginprompt input.cancel").click((function(){r.active=!1;for(var e=0;e<r.failureCallbacks.length;e++)r.failureCallbacks[e]({Message:d.a.translate("Login cancelled")});c()("div.pma-ui-loginprompt").remove()}))}return!0}}]),e}()},function(e,t,n){n.d(t,"b",(function(){return u}));var r,i=n(11),o=n(15),a=n(5),s=function(){function e(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return e.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Object(a.b)(this.queuedElements_)},e.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,n=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var r=this.keyFunction_(n);return delete this.queuedElements_[r],n},e.prototype.enqueue=function(e){Object(o.a)(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);
799return t!=1/0&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},e.prototype.getCount=function(){return this.elements_.length},e.prototype.getLeftChildIndex_=function(e){return 2*e+1},e.prototype.getRightChildIndex_=function(e){return 2*e+2},e.prototype.getParentIndex_=function(e){return e-1>>1},e.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},e.prototype.isEmpty=function(){return 0===this.elements_.length},e.prototype.isKeyQueued=function(e){return e in this.queuedElements_},e.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},e.prototype.siftUp_=function(e){for(var t=this.elements_,n=this.priorities_,r=t.length,i=t[e],o=n[e],a=e;e<r>>1;){var s=this.getLeftChildIndex_(e),l=this.getRightChildIndex_(e),c=l<r&&n[l]<n[s]?l:s;t[e]=t[c],n[e]=n[c],e=c}t[e]=i,n[e]=o,this.siftDown_(a,e)},e.prototype.siftDown_=function(e,t){for(var n=this.elements_,r=this.priorities_,i=n[t],o=r[t];t>e;){var a=this.getParentIndex_(t);if(!(r[a]>o))break;n[t]=n[a],r[t]=r[a],t=a}n[t]=i,r[t]=o},e.prototype.reprioritize=function(){var e,t,n,r=this.priorityFunction_,i=this.elements_,o=this.priorities_,a=0,s=i.length;for(t=0;t<s;++t)(n=r(e=i[t]))==1/0?delete this.queuedElements_[this.keyFunction_(e)]:(o[a]=n,i[a++]=e);i.length=a,o.length=a,this.heapify_()},e}(),l=n(13),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t,n){var r=e.call(this,(function(e){return t.apply(null,e)}),(function(e){return e[0].getKey()}))||this;return r.boundHandleTileChange_=r.handleTileChange.bind(r),r.tileChangeCallback_=n,r.tilesLoading_=0,r.tilesLoadingKeys_={},r}return c(t,e),t.prototype.enqueue=function(t){var n=e.prototype.enqueue.call(this,t);return n&&t[0].addEventListener(i.a.CHANGE,this.boundHandleTileChange_),n},t.prototype.getTilesLoading=function(){return this.tilesLoading_},t.prototype.handleTileChange=function(e){var t=e.target,n=t.getState();if(n===l.a.LOADED||n===l.a.ERROR||n===l.a.EMPTY){t.removeEventListener(i.a.CHANGE,this.boundHandleTileChange_);var r=t.getKey();r in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[r],--this.tilesLoading_),this.tileChangeCallback_()}},t.prototype.loadMoreTiles=function(e,t){for(var n,r,i=0;this.tilesLoading_<e&&i<t&&this.getCount()>0;)r=(n=this.dequeue()[0]).getKey(),n.getState()!==l.a.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++i,n.load())},t}(s);function u(e,t,n,r,i){if(!e||!(n in e.wantedTiles))return 1/0;if(!e.wantedTiles[n][t.getKey()])return 1/0;var o=e.viewState.center,a=r[0]-o[0],s=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(a*a+s*s)/i}t.a=d},function(e,t,n){(function(e){ 800/*! 801 * The buffer module from node.js, for the browser. 802 * 803 * @author Feross Aboukhadijeh <http://feross.org> 804 * @license MIT 805 */ 806var r=n(266),i=n(237),o=n(267);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),i=(e=s(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function u(e,t){if(d(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
vendor: 16,457 bytes, line 806
806(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return $(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var d=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===d?0:o-d)){if(-1===d&&(d=o),o-d+1===l)return d*a}else-1!==d&&(o-=o-d),d=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var u=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){u=!1;break}if(u)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function _(e,t,n,r){return z(B(t,e.length-n),e,n,r)}function w(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return w(e,t,n,r)}function C(e,t,n,r){return z(U(t),e,n,r)}function S(e,t,n,r){return z(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],d=null,u=c>239?4:c>223?3:c>191?2:1;if(i+u<=n)switch(u){case 1:c<128&&(d=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(d=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(d=l)}null===d?(d=65533,u=1):d>65535&&(d-=65536,r.push(d>>>10&1023|55296),d=56320|1023&d),r.push(d),i+=u}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function $(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=N(e[o]);return i}function P(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function A(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function M(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function j(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return o||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,o){return o||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return d(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return u(null,e)},l.allocUnsafeSlow=function(e){return u(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),d=e.slice(t,n),u=0;u<s;++u)if(c[u]!==d[u]){o=c[u],a=d[u];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:B(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function N(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>
806-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(223))},function(e,t,n){n.d(t,"b",(function(){return f}));var r,i=n(92),o=n(11),a=n(21),s=n(78),l=n(23),c=n(171),d=n(106),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=null,p=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s.hitDetectionImage_=null,s.image_=t||new Image,null!==i&&(s.image_.crossOrigin=i),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=r,s.src_=n,s.tainted_,s}return u(t,e),t.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===a.a.LOADED){h||(h=Object(l.a)(1,1)),h.drawImage(this.image_,0,0);try{h.getImageData(0,0,1,1),this.tainted_=!1}catch(e){h=null,this.tainted_=!0}}return!0===this.tainted_},t.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(o.a.CHANGE)},t.prototype.handleImageError_=function(){this.imageState_=a.a.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.handleImageLoad_=function(){this.imageState_=a.a.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.getImage=function(e){return this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_},t.prototype.getPixelRatio=function(e){return this.replaceColor_(e),this.canvas_[e]?e:1},t.prototype.getImageState=function(){return this.imageState_},t.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],t=this.size_[1],n=Object(l.a)(e,t);n.fillRect(0,0,e,t),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},t.prototype.getSize=function(){return this.size_},t.prototype.getSrc=function(){return this.src_},t.prototype.load=function(){if(this.imageState_==a.a.IDLE){this.imageState_=a.a.LOADING;try{this.image_.src=this.src_}catch(e){this.handleImageError_()}this.unlisten_=Object(d.b)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},t.prototype.replaceColor_=function(e){if(this.color_&&!this.canvas_[e]&&this.imageState_===a.a.LOADED){var t=document.createElement("canvas");this.canvas_[e]=t,t.width=Math.ceil(this.image_.width*e),t.height=Math.ceil(this.image_.height*e);var n=t.getContext("2d");if(n.scale(e,e),n.drawImage(this.image_,0,0),n.globalCompositeOperation="multiply","multiply"===n.globalCompositeOperation||this.isTainted_())n.fillStyle=Object(s.b)(this.color_),n.fillRect(0,0,t.width/e,t.height/e),n.globalCompositeOperation="destination-in",n.drawImage(this.image_,0,0);else{for(var r=n.getImageData(0,0,t.width,t.height),i=r.data,o=this.color_[0]/255,l=this.color_[1]/255,c=this.color_[2]/255,d=this.color_[3],u=0,h=i.length;u<h;u+=4)i[u]*=o,i[u+1]*=l,i[u+2]*=c,i[u+3]*=d;n.putImageData(r,0,0)}}},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(i.a);function f(e,t,n,r,i,o){var a=c.a.get(t,r,o);return a||(a=new p(e,t,n,r,i,o),c.a.set(t,r,o,a)),a}t.a=p},function(e,t,n){var r,i=n(42),o=n(32),a=n(18),s=n(82),l=n(27),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,{stopDown:o.a})||this,r=t||{};n.kinetic_=r.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var i=r.condition?r.condition:Object(a.a)(a.j,a.l);return n.condition_=r.onFocusOnly?Object(a.a)(a.f,i):i,n.noKinetic_=!1,n}return c(t,e),t.prototype.handleDragEvent=function(e){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var t=this.targetPointers,n=Object(i.a)(t);if(t.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var r=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],o=e.map.getView();Object(l.i)(r,o.getResolution()),Object(l.h)(r,o.getRotation()),o.adjustCenterInternal(r)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=t.length,e.originalEvent.preventDefault()},t.prototype.handleUpEvent=function(e){var t=e.map,n=t.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var r=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=n.getCenterInternal(),a=t.getPixelFromCo
806ordinateInternal(o),l=t.getCoordinateFromPixelInternal([a[0]-r*Math.cos(i),a[1]-r*Math.sin(i)]);n.animateInternal({center:n.getConstrainedCenter(l),duration:500,easing:s.b})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>0&&this.condition_(e)){var t=e.map.getView();return this.lastCentroid=null,t.getAnimating()&&t.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},t}(i.b);t.a=d},function(e,t,n){var r,i=n(11),o=n(76),a=n(59),s=n(18),l=n(6),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d="trackpad",u=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,r)||this).totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==r.maxDelta?r.maxDelta:1,n.duration_=void 0!==r.duration?r.duration:250,n.timeout_=void 0!==r.timeout?r.timeout:80,n.useAnchor_=void 0===r.useAnchor||r.useAnchor,n.constrainResolution_=void 0!==r.constrainResolution&&r.constrainResolution;var i=r.condition?r.condition:s.d;return n.condition_=r.onFocusOnly?Object(s.a)(s.f,i):i,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return c(t,e),t.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var e=this.getMap();e&&e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},t.prototype.handleEvent=function(e){if(!this.condition_(e))return!0;if(e.type!==i.a.WHEEL)return!0;var t,n=e.map,r=e.originalEvent;if(r.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate),e.type==i.a.WHEEL&&(t=r.deltaY,a.b&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(t/=a.a),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(t*=40)),0===t)return!1;this.lastDelta_=t;var o=Date.now();void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(t)<4?d:"wheel");var s=n.getView();if(this.mode_===d&&!s.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(s.getAnimating()&&s.cancelAnimations(),s.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),s.adju
806stZoom(-t/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=t;var l=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),l),!1},t.prototype.handleWheelZoom_=function(e){var t=e.getView();t.getAnimating()&&t.cancelAnimations();var n=-Object(l.b)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(t.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Object(o.c)(t,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},t.prototype.setMouseAnchor=function(e){this.useAnchor_=e,e||(this.lastAnchor_=null)},t}(o.a);t.a=u},function(e,t,n){var r,i=n(37),o=n(39),a=n(147),s=n(42),l=n(32),c=n(18),d=n(9),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.features=n,a.coordinate=r,a.startCoordinate=i,a.mapBrowserEvent=o,a}return u(t,e),t}(o.a),p=function(e){function t(t){var n,r=this,i=t||{};
806if((r=e.call(this,i)||this).on,r.once,r.un,r.lastCoordinate_=null,r.startCoordinate_=null,r.features_=void 0!==i.features?i.features:null,i.layers&&!r.features_)if("function"==typeof i.layers)n=i.layers;else{var o=i.layers;n=function(e){return Object(d.f)(o,e)}}else n=l.b;return r.layerFilter_=n,r.filter_=i.filter&&!r.features_?i.filter:l.b,r.hitTolerance_=i.hitTolerance?i.hitTolerance:0,r.condition_=i.condition?i.condition:c.d,r.lastFeature_=null,r.addChangeListener(a.a.ACTIVE,r.handleActiveChanged_),r}return u(t,e),t.prototype.handleDownEvent=function(e){if(!e.originalEvent||!this.condition_(e))return!1;if(this.lastFeature_=this.featuresAtPixel_(e.pixel,e.map),!this.lastCoordinate_&&this.lastFeature_){this.startCoordinate_=e.coordinate,this.lastCoordinate_=e.coordinate,this.handleMoveEvent(e);var t=this.features_||new i.a([this.lastFeature_]);return this.dispatchEvent(new h("translatestart",t,e.coordinate,this.startCoordinate_,e)),!0}return!1},t.prototype.handleUpEvent=function(e){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(e);var t=this.features_||new i.a([this.lastFeature_]);return this.dispatchEvent(new h("translateend",t,e.coordinate,this.startCoordinate_,e)),this.startCoordinate_=null,!0}return!1},t.prototype.handleDragEvent=function(e){if(this.lastCoordinate_){var t=e.coordinate,n=t[0]-this.lastCoordinate_[0],r=t[1]-this.lastCoordinate_[1],o=this.features_||new i.a([this.lastFeature_]);o.forEach((function(e){var t=e.getGeometry();t.translate(n,r),e.setGeometry(t)})),this.lastCoordinate_=t,this.dispatchEvent(new h("translating",o,t,this.startCoordinate_,e))}},t.prototype.handleMoveEvent=function(e){var t=e.map.getViewport();this.featuresAtPixel_(e.pixel,e.map)?(t.classList.remove(this.lastCoordinate_?"ol-grab":"ol-grabbing"),t.classList.add(this.lastCoordinate_?"ol-grabbing":"ol-grab")):t.classList.remove("ol-grab","ol-grabbing")},t.prototype.featuresAtPixel_=function(e,t){return t.forEachFeatureAtPixel(e,function(e,t){if(this.filter_(e,t)&&(!this.features_||Object(d.f)(this.features_.getArray(),e)))return e}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})},t.prototype.getHitTolerance=function(){return this.hitTolerance_},t.prototype.setHitTolerance=function(e){this.hitTolerance_=e},t.prototype.setMap=function(t){var n=this.getMap();e.prototype.setMap.call(this,t),this.updateState_(n)},t.prototype.handleActiveChanged_=function(){this.updateState_(null)},t.prototype.updateState_=function(e){var t=this.getMap(),n=this.getActive();t&&n||(t=t||e)&&t.getViewport().classList.remove("ol-grab","ol-grabbing")},t}(s.b);t.a=p},function(e,t,n){n.r(t),n.d(t,"EsriJSON",(function(){return O})),n.d(t,"GeoJSON",(function(){return $.a})),n.d(t,"GML",(function(){return je})),n.d(t,"GPX",(function(){return $t})),n.d(t,"IGC",(function(){return Dt})),n.d(t,"IIIFInfo",(function(){return Ft.b})),n.d(t,"KML",(function(){return zr})),n.d(t,"MVT",(function(){return Gr.a})),n.d(t,"OWS",(function(){return di})),n.d(t,"Polyline",(function(){return yi})),n.d(t,"TopoJSON",(function(){return Oi})),n.d(t,"WFS",(function(){return ka})),n.d(t,"WKB",(function(){return La})),n.d(t,"WKT",(function(){return Aa.a})),n.d(t,"WMSCapabilities",(function(){return ss})),n.d(t,"WMSGetFeatureInfo",(function(){return cs})),n.d(t,"WMTSCapabilities",(function(){return Ts}));var r,i=n(24),o=n(14),a=n(165),s=n(40),l=n(120),c=n(56),d=n(63),u=n(64),h=n(29),p=n(22),f=n(15),m=n(5),g=n(0),v=n(81),y=n(1),b=n(94),_=n(33),w=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),x={Point:function(e){return void 0!==e.m&&void 0!==e.z?new h.a([e.x,e.y,e.z,e.m],o.a.XYZM):void 0!==e.z?new h.a([e.x,e.y,e.z],o.a.XYZ):void 0!==e.m?new h.a([e.x,e.y,e.m],o.a.XYM):new h.a([e.x,e.y])},LineString:function(e){var t=E(e);return new s.a(e.paths[0],t)},Polygon:function(e){var t=E(e);return new p.a(e.rings,t)},MultiPoint:function(e){var t=E(e);return new d.a(e.points,t)},MultiLineString:function(e){var t=E(e);return new c.a(e.paths,t)},MultiPolygon:function(e){var t=E(e);return new u.a(e.rings,t)}},C={Point:function(e,t){var n,r=e.getCoordinates(),i=e.getLayout();return i===o.a.XYZ?n={x:r[0],y:r[1],z:r[2]}:i===o.a.XYM?n={x:r[0],y:r[1],m:r[2]}:i===o.a.XYZM?n={x:r[0],y:r[1],z:r[2],m:r[3]}:i===o.a.XY?n={x:r[0],y:r[1]}:Object(f.a)(!1,34),n},LineString:function(e,t){var n=k(e);return{hasZ:n.hasZ,hasM:n.hasM,paths:[e.getCoordinates()]}},Polygon:function(e,t){var n=k(e);return{hasZ:n.hasZ,hasM:n.hasM,rings:e.getCoordinates(!1)}},MultiPoint:function(e,t){var n=k(e);return{hasZ:n.hasZ,hasM:n.hasM,points:e.getCoordinates()}},MultiLineString:function(e,t){var n=k(e);return{hasZ:n.hasZ,hasM:n.hasM,paths:e.getCoordinates()}},MultiPolygon:function(e,t){for(var n=k(e),r=e.getCoordinates(!1),i=[],o=0;o<r.length;o++)for(var a=r[o].length-1;a>=0;a--)i.push(r[o][a]);return{hasZ:n.hasZ,hasM:n.hasM,rings:i}}};function S(e,t){var n,r,i;if(!e)return null;if("number"==typeof e.x&&"number"==typeof e.y)i="Point";else if(e.points)i="MultiPoint";else if(e.paths)i=1===e.paths.length?"LineString":"MultiLineString";else if(e.rings){var o=e,a=E(o),s=function(e,t){var n,r,i=[],o=[],a=[];for(n=0,r=e.length;n<r;++n)i.length=0,Object(v.b)(i,0,e[n],t.length),Object(b.b)(i,0,i.length,t.length)?o.push([e[n]]):a.push(e[n]);for(;a.length;){var s=a.shift(),c=!1;for(n=o.length-1;n>=0;n--){var d=o[n][0];if(Object(g.containsExtent)(new l.a(d).getExtent(),new l.a(s).getExtent())){o[n].push(s),c=!0;break}}c||o.push([s.reverse()])}return o}(o.rings,a);1===s.length?(i="Polygon",e=Object(m.a)({},e,((n={}).rings=s[0],n))):(i="MultiPolygon",e=Object(m.a)({},e,((r={}).rings=s,r)))}var c=x[i];return Object(_.c)(c(e),!1,t)}function E(e){var t=o.a.XY;return!0===e.hasZ&&!0===e.hasM?t=o.a.XYZM:!0===e.hasZ?t=o.a.XYZ:!0===e.hasM&&(t=o.a.XYM),t}function k(e){var t=e.getLayout();return{hasZ:t===o.a.XYZ||t===o.a.XYZM,hasM:t===o.a.XYM||t===o.a.XYZM}}function T(e,t){return(0,C[e.getType()])(Object(_.c)(e,!0,t),t)}var O=function(e){function t(t){var n=this,r=t||{};return(n=e.call(this)||this).geometryName_=r.geometryName,n}return w(t,e),t.prototype.readFeatureFromObject=function(e,t,n){var r=e,o=S(r.geometry,t),a=new i.a;if(this.geometryName_&&a.setGeometryName(this.geometryName_),a.setGeometry(o),r.attributes){a.setProperties(r.attributes,!0);var s=r.attributes[n];void 0!==s&&a.setId(s)}return a},t.prototype.readFeaturesFromObject=function(e,t){var n=t||{};if(e.features){for(var r=[],i=e.features,o=0,a=i.length;o<a;++o)r.push(this.readFeatureFromObject(i[o],n,e.objectIdFieldName));return r}return[this.readFeatureFromObject(e,n)]},t.prototype.readGeometryFromObject=function(e,t){return S(e,t)},t.prototype.readProjectionFromObject=function(e){if(e.spatialReference&&void 0!==e.spatialReference.wkid){var t=e.spatialReference.wkid;return Object(y.get)("EPSG:"+t)}return null},t.prototype.writeGeometryObject=function(e,t){return T(e,this.adaptOptions(t))},t.prototype.writeFeatureObject=function(e,t){t=this.adaptOptions(t);var n={};if(!e.hasProperties())return n.attributes={},n;var r=e.getProperties(),i=e.getGeometry();if(i){n.geometry=T(i,t);var o=t&&(t.dataProjection||t.featureProjection);o&&(n.geometry.spatialReference={wkid:Number(Object(y.get)(o).getCode().split(":").pop())}),delete r[e.getGeometryName()]}return Object(m.d)(r)?n.attributes={}:n.attributes=r,n},t.prototype.writeFeaturesObject=function(e,t){t=this.adaptOptions(t);for(var n=[],r=0,i=e.length;r<i;++r)n.push(this.writeFeatureObject(e[r],t));return{features:n}},t}(a.a),$=n(156),P=n(4),I=n(9),L="http://www.w3.org/2001/XMLSchema-instance";function A(e,t){return ee().createElementNS(e,t)}
806function M(e,t){return function e(t,n,r){if(t.nodeType==Node.CDATA_SECTION_NODE||t.nodeType==Node.TEXT_NODE)n?r.push(String(t.nodeValue).replace(/(\r\n|\r|\n)/g,"")):r.push(t.nodeValue);else{var i=void 0;for(i=t.firstChild;i;i=i.nextSibling)e(i,n,r)}return r}(e,t,[]).join("")}function j(e){return"documentElement"in e}function R(e){return(new DOMParser).parseFromString(e,"application/xml")}function D(e,t){return function(n,r){var i=e.call(void 0!==t?t:this,n,r);if(void 0!==i){var o=r[r.length-1];Object(I.c)(o,i)}}}function F(e,t){return function(n,r){var i=e.call(void 0!==t?t:this,n,r);void 0!==i&&r[r.length-1].push(i)}}function N(e,t){return function(n,r){var i=e.call(void 0!==t?t:this,n,r);void 0!==i&&(r[r.length-1]=i)}}function B(e,t,n){return function(r,i){var o=e.call(void 0!==n?n:this,r,i);if(void 0!==o){var a=i[i.length-1],s=void 0!==t?t:r.localName,l=void 0;s in a?l=a[s]:(l=[],a[s]=l),l.push(o)}}}function U(e,t,n){return function(r,i){var o=e.call(void 0!==n?n:this,r,i);void 0!==o&&(i[i.length-1][void 0!==t?t:r.localName]=o)}}function z(e,t){return function(n,r,i){e.call(void 0!==t?t:this,n,r,i),i[i.length-1].node.appendChild(n)}}function G(e,t){var n,r;return function(t,i,o){if(void 0===n){n={};var a={};a[t.localName]=e,n[t.namespaceURI]=a,r=V(t.localName)}K(n,r,i,o)}}function V(e,t){var n=e;return function(e,r,i){var o=r[r.length-1].node,a=n;return void 0===a&&(a=i),A(void 0!==t?t:o.namespaceURI,a)}}var q=V();function H(e,t){for(var n=t.length,r=new Array(n),i=0;i<n;++i)r[i]=e[t[i]];return r}function W(e,t,n){var r,i,o=void 0!==n?n:{};for(r=0,i=e.length;r<i;++r)o[e[r]]=t;return o}function Y(e,t,n,r){var i;for(i=t.firstElementChild;i;i=i.nextElementSibling){var o=e[i.namespaceURI];if(void 0!==o){var a=o[i.localName];void 0!==a&&a.call(r,i,n)}}}function X(e,t,n,r,i){return r.push(e),Y(t,n,r,i),r.pop()}function K(e,t,n,r,i,o){for(var a,s,l=(void 0!==i?i:n).length,c=0;c<l;++c)void 0!==(a=n[c])&&void 0!==(s=t.call(void 0!==o?o:this,a,r,void 0!==i?i[c]:void 0))&&e[s.namespaceURI][s.localName].call(o,s,a,r)}function Z(e,t,n,r,i,o,a){return i.push(e),K(t,n,r,i,o,a),i.pop()}var J=void 0,Q=void 0;function ee(){return void 0===Q&&"undefined"!=typeof document&&(Q=document.implementation.createDocument("","",null)),Q}var te,ne,re=(ne=function(e,t){return(ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ne(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ie=function(e){function t(){var t=e.call(this)||this;return t.xmlSerializer_=(void 0===J&&"undefined"!=typeof XMLSerializer&&(J=new XMLSerializer),J),t}return re(t,e),t.prototype.getType=function(){return"xml"},t.prototype.readFeature=function(e,t){if(e){if("string"==typeof e){var n=R(e);return this.readFeatureFromDocument(n,t)}return j(e)?this.readFeatureFromDocument(e,t):this.readFeatureFromNode(e,t)}return null},t.prototype.readFeatureFromDocument=function(e,t){var n=this.readFeaturesFromDocument(e,t);return n.length>0?n[0]:null},t.prototype.readFeatureFromNode=function(e,t){return null},t.prototype.readFeatures=function(e,t){if(e){if("string"==typeof e){var n=R(e);return this.readFeaturesFromDocument(n,t)}return j(e)?this.readFeaturesFromDocument(e,t):this.readFeaturesFromNode(e,t)}return[]},t.prototype.readFeaturesFromDocument=function(e,t){for(var n=[],r=e.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&Object(I.c)(n,this.readFeaturesFromNode(r,t));return n},t.prototype.readFeaturesFromNode=function(e,t){return Object(P.b)()},t.prototype.readGeometry=function(e,t){if(e){if("string"==typeof e){var n=R(e);return this.readGeometryFromDocument(n,t)}return j(e)?this.readGeometryFromDocument(e,t):this.readGeometryFromNode(e,t)}return null},t.prototype.readGeometryFromDocument=function(e,t){return null},t.prototype.readGeometryFromNode=function(e,t){return null},t.prototype.readProjection=function(e){if(e){if("string"==typeof e){var t=R(e);return this.readProjectionFromDocument(t)}return j(e)?this.readProjectionFromDocument(e):this.readProjectionFromNode(e)}return null},t.prototype.readProjectionFromDocument=function(e){return this.dataProjection},t.prototype.readProjectionFromNode=function(e){return this.dataProjection},t.prototype.writeFeature=function(e,t){var n=this.writeFeatureNode(e,t);return this.xmlSerializer_.serializeToString(n)},t.prototype.writeFeatureNode=function(e,t){return null},t.prototype.writeFeatures=function(e,t){var n=this.writeFeaturesNode(e,t);return this.xmlSerializer_.serializeToString(n)},t.prototype.writeFeaturesNode=function(e,t){return null},t.prototype.writeGeometry=function(e,t){var n=this.writeGeometryNode(e,t);return this.xmlSerializer_.serializeToString(n)},t.prototype.writeGeometryNode=function(e,t){return null},t}(_.a),oe=(te=function(e,t){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}te(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ae="http://www.opengis.net/gml",se=/^[\s\xa0]*$/,le=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.featureType=r.featureType,n.featureNS=r.featureNS,n.srsName=r.srsName,n.schemaLocation="",n.FEATURE_COLLECTION_PARSERS={},n.FEATURE_COLLECTION_PARSERS[n.namespace]={featureMember:F(n.readFeaturesInternal),featureMembers:N(n.readFeaturesInternal)},n.supportedMediaTypes=["application/gml+xml"],n}return oe(t,e),t.prototype.readFeaturesInternal=function(e,t){var n=e.localName,r=null;if("FeatureCollection"==n)r=X([],this.FEATURE_COLLECTION_PARSERS,e,t,this);else if("featureMembers"==n||"featureMember"==n||"member"==n){var i=t[0],o=i.featureType,a=i.featureNS;if(!o&&e.childNodes){o=[],a={};for(var s=0,l=e.childNodes.length;s<l;++s){var c=e.childNodes[s];if(1===c.nodeType){var d=c.nodeName.split(":").pop();if(-1===o.indexOf(d)){var u="",h=0,p=c.namespaceURI;for(var f in a){if(a[f]===p){u=f;break}++h}u||(a[u="p"+h]=p),o.push(u+":"+d)}}}
806"featureMember"!=n&&(i.featureType=o,i.featureNS=a)}if("string"==typeof a){var m=a;(a={}).p0=m}var g={},v=Array.isArray(o)?o:[o];for(var y in a){var b={};for(s=0,l=v.length;s<l;++s)(-1===v[s].indexOf(":")?"p0":v[s].split(":")[0])===y&&(b[v[s].split(":").pop()]="featureMembers"==n?F(this.readFeatureElement,this):N(this.readFeatureElement,this));g[a[y]]=b}r=X("featureMember"==n||"member"==n?void 0:[],g,e,t)}return null===r&&(r=[]),r},t.prototype.readGeometryOrExtent=function(e,t){var n=t[0];return n.srsName=e.firstElementChild.getAttribute("srsName"),n.srsDimension=e.firstElementChild.getAttribute("srsDimension"),X(null,this.GEOMETRY_PARSERS,e,t,this)},t.prototype.readExtentElement=function(e,t){var n=t[0],r=this.readGeometryOrExtent(e,t);return r?Object(_.b)(r,n):void 0},t.prototype.readGeometryElement=function(e,t){var n=t[0],r=this.readGeometryOrExtent(e,t);return r?Object(_.c)(r,!1,n):void 0},t.prototype.readFeatureElementInternal=function(e,t,n){for(var r,o={},a=e.firstElementChild;a;a=a.nextElementSibling){var s=void 0,l=a.localName;0===a.childNodes.length||1===a.childNodes.length&&(3===a.firstChild.nodeType||4===a.firstChild.nodeType)?(s=M(a,!1),se.test(s)&&(s=void 0)):(n&&(s="boundedBy"===l?this.readExtentElement(a,t):this.readGeometryElement(a,t)),s?"boundedBy"!==l&&(r=l):s=this.readFeatureElementInternal(a,t,!1));var c=a.attributes.length;if(c>0){s={_content_:s};for(var d=0;d<c;d++)s[a.attributes[d].name]=a.attributes[d].value}o[l]?(o[l]instanceof Array||(o[l]=[o[l]]),o[l].push(s)):o[l]=s}if(n){var u=new i.a(o);r&&u.setGeometryName(r);var h=e.getAttribute("fid")||function(e,t,n){return e.getAttributeNS(t,"id")||""}(e,this.namespace);return h&&u.setId(h),u}return o},t.prototype.readFeatureElement=function(e,t){return this.readFeatureElementInternal(e,t,!0)},t.prototype.readPoint=function(e,t){var n=this.readFlatCoordinatesFromNode(e,t);if(n)return new h.a(n,o.a.XYZ)},t.prototype.readMultiPoint=function(e,t){var n=X([],this.MULTIPOINT_PARSERS,e,t,this);return n?new d.a(n):void 0},t.prototype.readMultiLineString=function(e,t){var n=X([],this.MULTILINESTRING_PARSERS,e,t,this);if(n)return new c.a(n)},t.prototype.readMultiPolygon=function(e,t){var n=X([],this.MULTIPOLYGON_PARSERS,e,t,this);if(n)return new u.a(n)},t.prototype.pointMemberParser=function(e,t){Y(this.POINTMEMBER_PARSERS,e,t,this)},t.prototype.lineStringMemberParser=function(e,t){Y(this.LINESTRINGMEMBER_PARSERS,e,t,this)},t.prototype.polygonMemberParser=function(e,t){Y(this.POLYGONMEMBER_PARSERS,e,t,this)},t.prototype.readLineString=function(e,t){var n=this.readFlatCoordinatesFromNode(e,t);return n?new s.a(n,o.a.XYZ):void 0},t.prototype.readFlatLinearRing=function(e,t){return X(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,e,t,this)||void 0},t.prototype.readLinearRing=function(e,t){var n=this.readFlatCoordinatesFromNode(e,t);if(n)return new l.a(n,o.a.XYZ)},t.prototype.readPolygon=function(e,t){var n=X([null],this.FLAT_LINEAR_RINGS_PARSERS,e,t,this);if(n&&n[0]){var r,i=n[0],a=[i.length],s=void 0;for(s=1,r=n.length;s<r;++s)Object(I.c)(i,n[s]),a.push(i.length);return new p.a(i,o.a.XYZ,a)}},t.prototype.readFlatCoordinatesFromNode=function(e,t){return X(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,e,t,this)},t.prototype.readGeometryFromNode=function(e,t){return this.readGeometryElement(e,[this.getReadOptions(e,t||{})])||null},t.prototype.readFeaturesFromNode=function(e,t){var n={featureType:this.featureType,featureNS:this.featureNS};return t&&Object(m.a)(n,this.getReadOptions(e,t)),this.readFeaturesInternal(e,[n])||[]},t.prototype.readProjectionFromNode=function(e){return Object(y.get)(this.srsName?this.srsName:e.firstElementChild.getAttribute("srsName"))},t}(ie);le.prototype.namespace=ae,le.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{}},le.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{}},le.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{}},le.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml":{pointMember:F(le.prototype.pointMemberParser),pointMembers:F(le.prototype.pointMemberParser)}},le.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml":{lineStringMember:F(le.prototype.lineStringMemberParser),lineStringMembers:
806F(le.prototype.lineStringMemberParser)}},le.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml":{polygonMember:F(le.prototype.polygonMemberParser),polygonMembers:F(le.prototype.polygonMemberParser)}},le.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml":{Point:F(le.prototype.readFlatCoordinatesFromNode)}},le.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml":{LineString:F(le.prototype.readLineString)}},le.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml":{Polygon:F(le.prototype.readPolygon)}},le.prototype.RING_PARSERS={"http://www.opengis.net/gml":{LinearRing:N(le.prototype.readFlatLinearRing)}};var ce=le,de=n(102);function ue(e){return he(M(e,!1))}function he(e){var t=/^\s*(true|1)|(false|0)\s*$/.exec(e);return t?void 0!==t[1]||!1:void 0}function pe(e){var t=M(e,!1),n=Date.parse(t);return isNaN(n)?void 0:n/1e3}function fe(e){return me(M(e,!1))}function me(e){var t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);return t?parseFloat(t[1]):void 0}function ge(e){return ve(M(e,!1))}function ve(e){var t=/^\s*(\d+)\s*$/.exec(e);return t?parseInt(t[1],10):void 0}function ye(e){return M(e,!1).trim()}function be(e,t){xe(e,t?"1":"0")}function _e(e,t){var n=t.toPrecision();e.appendChild(ee().createTextNode(n))}function we(e,t){var n=t.toString();e.appendChild(ee().createTextNode(n))}function xe(e,t){e.appendChild(ee().createTextNode(t))}var Ce,Se=(Ce=function(e,t){return(Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ee={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},ke=function(e){function t(t){var n=this,r=t||{};return(n=e.call(this,r)||this).FEATURE_COLLECTION_PARSERS[ae].featureMember=F(n.readFeaturesInternal),n.schemaLocation=r.schemaLocation?r.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd",n}return Se(t,e),t.prototype.readFlatCoordinates=function(e,t){var n=M(e,!1).replace(/^\s*|\s*$/g,""),r=t[0].srsName,i="enu";if(r){var o=Object(y.get)(r);o&&(i=o.getAxisOrientation())}for(var a=n.trim().split(/\s+/),s=[],l=0,c=a.length;l<c;l++){var d=a[l].split(/,+/),u=parseFloat(d[0]),h=parseFloat(d[1]),p=3===d.length?parseFloat(d[2]):0;"en"===i.substr(0,2)?s.push(u,h,p):s.push(h,u,p)}return s},t.prototype.readBox=function(e,t){var n=X([null],this.BOX_PARSERS_,e,t,this);return Object(g.createOrUpdate)(n[1][0],n[1][1],n[1][3],n[1][4])},t.prototype.innerBoundaryIsParser=function(e,t){var n=X(void 0,this.RING_PARSERS,e,t,this);n&&t[t.length-1].push(n)},t.prototype.outerBoundaryIsParser=function(e,t){var n=X(void 0,this.RING_PARSERS,e,t,this);n&&(t[t.length-1][0]=n)},t.prototype.GEOMETRY_NODE_FACTORY_=function(e,t,n){var r,i=t[t.length-1],o=i.multiSurface,a=i.surface,s=i.multiCurve;return Array.isArray(e)?r="Envelope":"MultiPolygon"===(r=e.getType())&&!0===o?r="MultiSurface":"Polygon"===r&&!0===a?r="Surface":"MultiLineString"===r&&!0===s&&(r="MultiCurve"),A("http://www.opengis.net/gml",r)},t.prototype.writeFeatureElement=function(e,t,n){var r=t.getId();r&&e.setAttribute("fid",r);var i=n[n.length-1],o=i.featureNS,a=t.getGeometryName();i.serializers||(i.serializers={},i.serializers[o]={});var s=[],l=[];if(t.hasProperties()){var c=t.getProperties();for(var d in c){var u=c[d];null!==u&&(s.push(d),l.push(u),d==a||"function"==typeof u.getSimplifiedGeometry?d in i.serializers[o]||(i.serializers[o][d]=z(this.writeGeometryElement,this)):d in i.serializers[o]||(i.serializers[o][d]=z(xe)))}}var h=Object(m.a)({},i);h.node=e,Z(h,i.serializers,V(void 0,o),l,n,s)},t.prototype.writeCurveOrLineString=function(e,t,n){var r=n[n.length-1].srsName;if("LineStringSegment"!==e.nodeName&&r&&e.setAttribute("srsName",r),"LineString"===e.nodeName||"LineStringSegment"===e.nodeName){var i=this.createCoordinatesNode_(e.namespaceURI);e.appendChild(i),this.writeCoordinates_(i,t,n)}else if("Curve"===e.nodeName){var o=A(e.namespaceURI,"segments");e.appendChild(o),this.writeCurveSegments_(o,t,n)}},t.prototype.writeLineStringOrCurveMember=function(e,t,n){var r=this.GEOMETRY_NODE_FACTORY_(t,n);r&&(e.appendChild(r),this.writeCurveOrLineString(r,t,n))},t.prototype.writeMultiCurveOrLineString=function(e,t,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName,a=r.curve;o&&e.setAttribute("srsName",o);var s=t.getLineStrings();Z({node:e,hasZ:i,srsName:o,curve:a},this.LINESTRINGORCURVEMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,s,n,void 0,this)},t.prototype.writeGeometryElement=function(e,t,n){var r,i=n[n.length-1],o=Object(m.a)({},i);o.node=e,r=Array.isArray(t)?Object(_.b)(t,i):Object(_.c)(t,!0,i),Z(o,this.GEOMETRY_SERIALIZERS,this.GEOMETRY_NODE_FACTORY_,[r],n,void 0,this)},t.prototype.createCoordinatesNode_=function(e){var t=A(e,"coordinates");return t.setAttribute("decimal","."),t.setAttribute("cs",","),t.setAttribute("ts"," "),t},t.prototype.writeCoordinates_=function(e,t,n){for(var r=n[n.length-1],i=r.hasZ,o=r.srsName,a=t.getCoordinates(),s=a.length,l=new Array(s),c=0;c<s;++c){var d=a[c];l[c]=this.getCoords_(d,o,i)}xe(e,l.join(" "))}
806,t.prototype.writeCurveSegments_=function(e,t,n){var r=A(e.namespaceURI,"LineStringSegment");e.appendChild(r),this.writeCurveOrLineString(r,t,n)},t.prototype.writeSurfaceOrPolygon=function(e,t,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName;if("PolygonPatch"!==e.nodeName&&o&&e.setAttribute("srsName",o),"Polygon"===e.nodeName||"PolygonPatch"===e.nodeName){var a=t.getLinearRings();Z({node:e,hasZ:i,srsName:o},this.RING_SERIALIZERS,this.RING_NODE_FACTORY_,a,n,void 0,this)}else if("Surface"===e.nodeName){var s=A(e.namespaceURI,"patches");e.appendChild(s),this.writeSurfacePatches_(s,t,n)}},t.prototype.RING_NODE_FACTORY_=function(e,t,n){var r=t[t.length-1],i=r.node,o=r.exteriorWritten;return void 0===o&&(r.exteriorWritten=!0),A(i.namespaceURI,void 0!==o?"innerBoundaryIs":"outerBoundaryIs")},t.prototype.writeSurfacePatches_=function(e,t,n){var r=A(e.namespaceURI,"PolygonPatch");e.appendChild(r),this.writeSurfaceOrPolygon(r,t,n)},t.prototype.writeRing=function(e,t,n){var r=A(e.namespaceURI,"LinearRing");e.appendChild(r),this.writeLinearRing(r,t,n)},t.prototype.getCoords_=function(e,t,n){var r="enu";t&&(r=Object(y.get)(t).getAxisOrientation());var i="en"===r.substr(0,2)?e[0]+","+e[1]:e[1]+","+e[0];return n&&(i+=","+(e[2]||0)),i},t.prototype.writePoint=function(e,t,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName;o&&e.setAttribute("srsName",o);var a=this.createCoordinatesNode_(e.namespaceURI);e.appendChild(a);var s=t.getCoordinates();xe(a,this.getCoords_(s,o,i))},t.prototype.writeMultiPoint=function(e,t,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName;o&&e.setAttribute("srsName",o);var a=t.getPoints();Z({node:e,hasZ:i,srsName:o},this.POINTMEMBER_SERIALIZERS,V("pointMember"),a,n,void 0,this)},t.prototype.writePointMember=function(e,t,n){var r=A(e.namespaceURI,"Point");e.appendChild(r),this.writePoint(r,t,n)},t.prototype.writeLinearRing=function(e,t,n){var r=n[n.length-1].srsName;r&&e.setAttribute("srsName",r);var i=this.createCoordinatesNode_(e.namespaceURI);e.appendChild(i),this.writeCoordinates_(i,t,n)},t.prototype.writeMultiSurfaceOrPolygon=function(e,t,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName,a=r.surface;o&&e.setAttribute("srsName",o);var s=t.getPolygons();Z({node:e,hasZ:i,srsName:o,surface:a},this.SURFACEORPOLYGONMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,s,n,void 0,this)},t.prototype.writeSurfaceOrPolygonMember=function(e,t,n){var r=this.GEOMETRY_NODE_FACTORY_(t,n);r&&(e.appendChild(r),this.writeSurfaceOrPolygon(r,t,n))},t.prototype.writeEnvelope=function(e,t,n){var r=n[n.length-1].srsName;r&&e.setAttribute("srsName",r);var i=[t[0]+" "+t[1],t[2]+" "+t[3]];Z({node:e},this.ENVELOPE_SERIALIZERS,q,i,n,["lowerCorner","upperCorner"],this)},t.prototype.MULTIGEOMETRY_MEMBER_NODE_FACTORY_=function(e,t,n){var r=t[t.length-1].node;return A("http://www.opengis.net/gml",Ee[r.nodeName])},t}(ce);ke.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{coordinates:N(ke.prototype.readFlatCoordinates)}},ke.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{innerBoundaryIs:ke.prototype.innerBoundaryIsParser,outerBoundaryIs:ke.prototype.outerBoundaryIsParser}},ke.prototype.BOX_PARSERS_={"http://www.opengis.net/gml":{coordinates:F(ke.prototype.readFlatCoordinates)}},ke.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{Point:N(ce.prototype.readPoint),MultiPoint:N(ce.prototype.readMultiPoint),LineString:N(ce.prototype.readLineString),MultiLineString:N(ce.prototype.readMultiLineString),LinearRing:N(ce.prototype.readLinearRing),Polygon:N(ce.prototype.readPolygon),MultiPolygon:N(ce.prototype.readMultiPolygon),Box:N(ke.prototype.readBox)}},ke.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml":{Curve:z(ke.prototype.writeCurveOrLineString),MultiCurve:z(ke.prototype.writeMultiCurveOrLineString),Point:z(ke.prototype.writePoint),MultiPoint:z(ke.prototype.writeMultiPoint),LineString:z(ke.prototype.writeCurveOrLineString),MultiLineString:z(ke.prototype.writeMultiCurveOrLineString),LinearRing:z(ke.prototype.writeLinearRing),Polygon:z(ke.prototype.writeSurfaceOrPolygon),MultiPolygon:z(ke.prototype.writeMultiSurfaceOrPolygon),Surface:z(ke.prototype.writeSurfaceOrPolygon),MultiSurface:z(ke.prototype.writeMultiSurfaceOrPolygon),Envelope:z(ke.prototype.writeEnvelope)}},ke.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{lineStringMember:z(ke.prototype.writeLineStringOrCurveMember),curveMember:z(ke.prototype.writeLineStringOrCurveMember)}},ke.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml":{outerBoundaryIs:z(ke.prototype.writeRing),innerBoundaryIs:z(ke.prototype.writeRing)}},ke.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{pointMember:z(ke.prototype.writePointMember)}},ke.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{surfaceMember:z(ke.prototype.writeSurfaceOrPolygonMember),polygonMember:z(ke.prototype.writeSurfaceOrPolygonMember)}},ke.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml":{lowerCorner:z(xe),upperCorner:z(xe)}};var Te,Oe=ke,$e=(Te=function(e,t){return(Te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Te(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Pe={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},Ie=function(e){function t(t){var n=this,r=t||{};return(n=e.call(this,r)||this).surface_=void 0!==r.surface&&r.surface,n.curve_=void 0!==r.curve&&r.curve,
806n.multiCurve_=void 0===r.multiCurve||r.multiCurve,n.multiSurface_=void 0===r.multiSurface||r.multiSurface,n.schemaLocation=r.schemaLocation?r.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd",n.hasZ=void 0!==r.hasZ&&r.hasZ,n}return $e(t,e),t.prototype.readMultiCurve=function(e,t){var n=X([],this.MULTICURVE_PARSERS,e,t,this);return n?new c.a(n):void 0},t.prototype.readFlatCurveRing=function(e,t){for(var n=X([],this.MULTICURVE_PARSERS,e,t,this),r=[],i=0,o=n.length;i<o;++i)Object(I.c)(r,n[i].getFlatCoordinates());return r},t.prototype.readMultiSurface=function(e,t){var n=X([],this.MULTISURFACE_PARSERS,e,t,this);if(n)return new u.a(n)},t.prototype.curveMemberParser=function(e,t){Y(this.CURVEMEMBER_PARSERS,e,t,this)},t.prototype.surfaceMemberParser=function(e,t){Y(this.SURFACEMEMBER_PARSERS,e,t,this)},t.prototype.readPatch=function(e,t){return X([null],this.PATCHES_PARSERS,e,t,this)},t.prototype.readSegment=function(e,t){return X([],this.SEGMENTS_PARSERS,e,t,this)},t.prototype.readPolygonPatch=function(e,t){return X([null],this.FLAT_LINEAR_RINGS_PARSERS,e,t,this)},t.prototype.readLineStringSegment=function(e,t){return X([null],this.GEOMETRY_FLAT_COORDINATES_PARSERS,e,t,this)},t.prototype.interiorParser=function(e,t){var n=X(void 0,this.RING_PARSERS,e,t,this);n&&t[t.length-1].push(n)},t.prototype.exteriorParser=function(e,t){var n=X(void 0,this.RING_PARSERS,e,t,this);n&&(t[t.length-1][0]=n)},t.prototype.readSurface=function(e,t){var n=X([null],this.SURFACE_PARSERS,e,t,this);if(n&&n[0]){var r,i=n[0],a=[i.length],s=void 0;for(s=1,r=n.length;s<r;++s)Object(I.c)(i,n[s]),a.push(i.length);return new p.a(i,o.a.XYZ,a)}},t.prototype.readCurve=function(e,t){var n=X([null],this.CURVE_PARSERS,e,t,this);return n?new s.a(n,o.a.XYZ):void 0},t.prototype.readEnvelope=function(e,t){var n=X([null],this.ENVELOPE_PARSERS,e,t,this);return Object(g.createOrUpdate)(n[1][0],n[1][1],n[2][0],n[2][1])},t.prototype.readFlatPos=function(e,t){for(var n,r=M(e,!1),i=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/,o=[];n=i.exec(r);)o.push(parseFloat(n[1])),r=r.substr(n[0].length);if(""===r){var a=t[0].srsName,s="enu";if(a&&(s=Object(y.get)(a).getAxisOrientation()),"neu"===s){var l,c=void 0;for(c=0,l=o.length;c<l;c+=3){var d=o[c],u=o[c+1];o[c]=u,o[c+1]=d}}var h=o.length;if(2==h&&o.push(0),0!==h)return o}},t.prototype.readFlatPosList=function(e,t){var n=M(e,!1).replace(/^\s*|\s*$/g,""),r=t[0],i=r.srsName,o=r.srsDimension,a="enu";i&&(a=Object(y.get)(i).getAxisOrientation());var s,l,c,d=n.split(/\s+/),u=2;e.getAttribute("srsDimension")?u=ve(e.getAttribute("srsDimension")):e.getAttribute("dimension")?u=ve(e.getAttribute("dimension")):e.parentNode.getAttribute("srsDimension")?u=ve(e.parentNode.getAttribute("srsDimension")):o&&(u=ve(o));for(var h=[],p=0,f=d.length;p<f;p+=u)s=parseFloat(d[p]),l=parseFloat(d[p+1]),c=3===u?parseFloat(d[p+2]):0,"en"===a.substr(0,2)?h.push(s,l,c):h.push(l,s,c);return h},t.prototype.writePos_=function(e,t,n){var r=n[n.length-1],i=r.hasZ,o=i?"3":"2";e.setAttribute("srsDimension",o);var a=r.srsName,s="enu";a&&(s=Object(y.get)(a).getAxisOrientation());var l,c=t.getCoordinates();l="en"===s.substr(0,2)?c[0]+" "+c[1]:c[1]+" "+c[0],i&&(l+=" "+(c[2]||0)),xe(e,l)},t.prototype.getCoords_=function(e,t,n){var r="enu";t&&(r=Object(y.get)(t).getAxisOrientation());var i="en"===r.substr(0,2)?e[0]+" "+e[1]:e[1]+" "+e[0];return n&&(i+=" "+(e[2]||0)),i},t.prototype.writePosList_=function(e,t,n){var r=n[n.length-1],i=r.hasZ,o=i?"3":"2";e.setAttribute("srsDimension",o);for(var a,s=r.srsName,l=t.getCoordinates(),c=l.length,d=new Array(c),u=0;u<c;++u)a=l[u],d[u]=this.getCoords_(a,s,i);xe(e,d.join(" "))},t.prototype.writePoint=function(e,t,n){var r=n[n.length-1].srsName;r&&e.setAttribute("srsName",r);var i=A(e.namespaceURI,"pos");e.appendChild(i),this.writePos_(i,t,n)},t.prototype.writeEnvelope=function(e,t,n){var r=n[n.length-1].srsName;r&&e.setAttribute("srsName",r);var i=[t[0]+" "+t[1],t[2]+" "+t[3]];Z({node:e},this.ENVELOPE_SERIALIZERS,q,i,n,["lowerCorner","upperCorner"],this)},t.prototype.writeLinearRing=function(e,t,n){var r=n[n.length-1].srsName;r&&e.setAttribute("srsName",r);var i=A(e.namespaceURI,"posList");e.appendChild(i),this.writePosList_(i,t,n)},t.prototype.RING_NODE_FACTORY_=function(e,t,n){var r=t[t.length-1],i=r.node,o=r.exteriorWritten;return void 0===o&&(r.exteriorWritten=!0),A(i.namespaceURI,void 0!==o?"
806interior":"exterior")},t.prototype.writeSurfaceOrPolygon=function(e,t,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName;if("PolygonPatch"!==e.nodeName&&o&&e.setAttribute("srsName",o),"Polygon"===e.nodeName||"PolygonPatch"===e.nodeName){var a=t.getLinearRings();Z({node:e,hasZ:i,srsName:o},this.RING_SERIALIZERS,this.RING_NODE_FACTORY_,a,n,void 0,this)}else if("Surface"===e.nodeName){var s=A(e.namespaceURI,"patches");e.appendChild(s),this.writeSurfacePatches_(s,t,n)}},t.prototype.writeCurveOrLineString=function(e,t,n){var r=n[n.length-1].srsName;if("LineStringSegment"!==e.nodeName&&r&&e.setAttribute("srsName",r),"LineString"===e.nodeName||"LineStringSegment"===e.nodeName){var i=A(e.namespaceURI,"posList");e.appendChild(i),this.writePosList_(i,t,n)}else if("Curve"===e.nodeName){var o=A(e.namespaceURI,"segments");e.appendChild(o),this.writeCurveSegments_(o,t,n)}},t.prototype.writeMultiSurfaceOrPolygon=function(e,t,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName,a=r.surface;o&&e.setAttribute("srsName",o);var s=t.getPolygons();Z({node:e,hasZ:i,srsName:o,surface:a},this.SURFACEORPOLYGONMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,s,n,void 0,this)},t.prototype.writeMultiPoint=function(e,t,n){var r=n[n.length-1],i=r.srsName,o=r.hasZ;i&&e.setAttribute("srsName",i);var a=t.getPoints();Z({node:e,hasZ:o,srsName:i},this.POINTMEMBER_SERIALIZERS,V("pointMember"),a,n,void 0,this)},t.prototype.writeMultiCurveOrLineString=function(e,t,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName,a=r.curve;o&&e.setAttribute("srsName",o);var s=t.getLineStrings();Z({node:e,hasZ:i,srsName:o,curve:a},this.LINESTRINGORCURVEMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,s,n,void 0,this)},t.prototype.writeRing=function(e,t,n){var r=A(e.namespaceURI,"LinearRing");e.appendChild(r),this.writeLinearRing(r,t,n)},t.prototype.writeSurfaceOrPolygonMember=function(e,t,n){var r=this.GEOMETRY_NODE_FACTORY_(t,n);r&&(e.appendChild(r),this.writeSurfaceOrPolygon(r,t,n))},t.prototype.writePointMember=function(e,t,n){var r=A(e.namespaceURI,"Point");e.appendChild(r),this.writePoint(r,t,n)},t.prototype.writeLineStringOrCurveMember=function(e,t,n){var r=this.GEOMETRY_NODE_FACTORY_(t,n);r&&(e.appendChild(r),this.writeCurveOrLineString(r,t,n))},t.prototype.writeSurfacePatches_=function(e,t,n){var r=A(e.namespaceURI,"PolygonPatch");e.appendChild(r),this.writeSurfaceOrPolygon(r,t,n)},t.prototype.writeCurveSegments_=function(e,t,n){var r=A(e.namespaceURI,"LineStringSegment");e.appendChild(r),this.writeCurveOrLineString(r,t,n)},t.prototype.writeGeometryElement=function(e,t,n){var r,i=n[n.length-1],o=Object(m.a)({},i);o.node=e,r=Array.isArray(t)?Object(_.b)(t,i):Object(_.c)(t,!0,i),Z(o,this.GEOMETRY_SERIALIZERS,this.GEOMETRY_NODE_FACTORY_,[r],n,void 0,this)},t.prototype.writeFeatureElement=function(e,t,n){var r=t.getId();r&&e.setAttribute("fid",r);var i=n[n.length-1],o=i.featureNS,a=t.getGeometryName();i.serializers||(i.serializers={},i.serializers[o]={});var s=[],l=[];if(t.hasProperties()){var c=t.getProperties();for(var d in c){var u=c[d];null!==u&&(s.push(d),l.push(u),d==a||"function"==typeof u.getSimplifiedGeometry?d in i.serializers[o]||(i.serializers[o][d]=z(this.writeGeometryElement,this)):d in i.serializers[o]||(i.serializers[o][d]=z(xe)))}}var h=Object(m.a)({},i);h.node=e,Z(h,i.serializers,V(void 0,o),l,n,s)},t.prototype.writeFeatureMembers_=function(e,t,n){var r=n[n.length-1],i=r.featureType,o=r.featureNS,a={};a[o]={},a[o][i]=z(this.writeFeatureElement,this);var s=Object(m.a)({},r);s.node=e,Z(s,a,V(i,o),t,n)},t.prototype.MULTIGEOMETRY_MEMBER_NODE_FACTORY_=function(e,t,n){var r=t[t.length-1].node;return A(this.namespace,Pe[r.nodeName])},t.prototype.GEOMETRY_NODE_FACTORY_=function(e,t,n){var r,i=t[t.length-1],o=i.multiSurface,a=i.surface,s=i.curve,l=i.multiCurve;return Array.isArray(e)?r="Envelope":"MultiPolygon"===(r=e.getType())&&!0===o?r="MultiSurface":"Polygon"===r&&!0===a?r="Surface":"LineString"===r&&!0===s?r="Curve":"MultiLineString"===r&&!0===l&&(r="MultiCurve"),A(this.namespace,r)},t.prototype.writeGeometryNode=function(e,t){t=this.adaptOptions(t);var n=A(this.namespace,"geom"),r={node:n,hasZ:this.hasZ,srsName:this.srsName,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_};return t&&Object(m.a)(r,t),this.writeGeometryElement(n,e,[r]),n},t.prototype.writeFeaturesNode=function(e,t){t=this.adaptOptions(t);var n=A(this.namespace,"featureMembers");n.setAttributeNS(L,"xsi:schemaLocation",this.schemaLocation);var r={srsName:this.srsName,hasZ:this.hasZ,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_,featureNS:this.featureNS,featureType:this.featureType};return t&&Object(m.a)(r,t),this.writeFeatureMembers_(n,e,[r]),n},t}(ce);Ie.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{pos:N(Ie.prototype.readFlatPos),posList:N(Ie.prototype.readFlatPosList),coordinates:N(Oe.prototype.readFlatCoordinates)}}
806,Ie.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{interior:Ie.prototype.interiorParser,exterior:Ie.prototype.exteriorParser}},Ie.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{Point:N(ce.prototype.readPoint),MultiPoint:N(ce.prototype.readMultiPoint),LineString:N(ce.prototype.readLineString),MultiLineString:N(ce.prototype.readMultiLineString),LinearRing:N(ce.prototype.readLinearRing),Polygon:N(ce.prototype.readPolygon),MultiPolygon:N(ce.prototype.readMultiPolygon),Surface:N(Ie.prototype.readSurface),MultiSurface:N(Ie.prototype.readMultiSurface),Curve:N(Ie.prototype.readCurve),MultiCurve:N(Ie.prototype.readMultiCurve),Envelope:N(Ie.prototype.readEnvelope)}},Ie.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml":{curveMember:F(Ie.prototype.curveMemberParser),curveMembers:F(Ie.prototype.curveMemberParser)}},Ie.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml":{surfaceMember:F(Ie.prototype.surfaceMemberParser),surfaceMembers:F(Ie.prototype.surfaceMemberParser)}},Ie.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml":{LineString:F(ce.prototype.readLineString),Curve:F(Ie.prototype.readCurve)}},Ie.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml":{Polygon:F(ce.prototype.readPolygon),Surface:F(Ie.prototype.readSurface)}},Ie.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml":{patches:N(Ie.prototype.readPatch)}},Ie.prototype.CURVE_PARSERS={"http://www.opengis.net/gml":{segments:N(Ie.prototype.readSegment)}},Ie.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml":{lowerCorner:F(Ie.prototype.readFlatPosList),upperCorner:F(Ie.prototype.readFlatPosList)}},Ie.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml":{PolygonPatch:N(Ie.prototype.readPolygonPatch)}},Ie.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml":{LineStringSegment:D(Ie.prototype.readLineStringSegment)}},ce.prototype.RING_PARSERS={"http://www.opengis.net/gml":{LinearRing:N(ce.prototype.readFlatLinearRing),Ring:N(Ie.prototype.readFlatCurveRing)}},Ie.prototype.writeFeatures,Ie.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml":{exterior:z(Ie.prototype.writeRing),interior:z(Ie.prototype.writeRing)}},Ie.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml":{lowerCorner:z(xe),upperCorner:z(xe)}},Ie.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{surfaceMember:z(Ie.prototype.writeSurfaceOrPolygonMember),polygonMember:z(Ie.prototype.writeSurfaceOrPolygonMember)}},Ie.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{pointMember:z(Ie.prototype.writePointMember)}},Ie.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{lineStringMember:z(Ie.prototype.writeLineStringOrCurveMember),curveMember:z(Ie.prototype.writeLineStringOrCurveMember)}},Ie.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml":{Curve:z(Ie.prototype.writeCurveOrLineString),MultiCurve:z(Ie.prototype.writeMultiCurveOrLineString),Point:z(Ie.prototype.writePoint),MultiPoint:z(Ie.prototype.writeMultiPoint),LineString:z(Ie.prototype.writeCurveOrLineString),MultiLineString:z(Ie.prototype.writeMultiCurveOrLineString),LinearRing:z(Ie.prototype.writeLinearRing),Polygon:z(Ie.prototype.writeSurfaceOrPolygon),MultiPolygon:z(Ie.prototype.writeMultiSurfaceOrPolygon),Surface:z(Ie.prototype.writeSurfaceOrPolygon),MultiSurface:z(Ie.prototype.writeMultiSurfaceOrPolygon),Envelope:z(Ie.prototype.writeEnvelope)}};var Le=Ie,Ae=Le;Ae.prototype.writeFeatures,Ae.prototype.writeFeaturesNode;var Me,je=Ae,Re=(Me=function(e,t){return(Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),De=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"],Fe={rte:pt,trk:ft,wpt:mt},Ne=W(De,{rte:F(pt),trk:F(ft),wpt:F(mt)}
806),Be=W(De,{text:U(ye,"linkText"),type:U(ye,"linkType")}),Ue=W(De,{rte:z((function(e,t,n){var r=n[0],i=t.getProperties(),o={node:e};o.properties=i;var a=t.getGeometry();if("LineString"==a.getType()){var s=Object(_.c)(a,!0,r);o.geometryLayout=s.getLayout(),i.rtept=s.getCoordinates()}var l=n[n.length-1].node,c=Je[l.namespaceURI],d=H(i,c);Z(o,Qe,q,d,n,c)})),trk:z((function(e,t,n){var r=n[0],i=t.getProperties(),o={node:e};o.properties=i;var a=t.getGeometry();if("MultiLineString"==a.getType()){var s=Object(_.c)(a,!0,r);i.trkseg=s.getLineStrings()}var l=n[n.length-1].node,c=tt[l.namespaceURI],d=H(i,c);Z(o,nt,q,d,n,c)})),wpt:z((function(e,t,n){var r=n[0],i=n[n.length-1];i.properties=t.getProperties();var o=t.getGeometry();if("Point"==o.getType()){var a=Object(_.c)(o,!0,r);i.geometryLayout=a.getLayout(),vt(e,a.getCoordinates(),n)}}))}),ze=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.dataProjection=Object(y.get)("EPSG:4326"),n.readExtensions_=r.readExtensions,n}return Re(t,e),t.prototype.handleReadExtensions_=function(e){e||(e=[]);for(var t=0,n=e.length;t<n;++t){var r=e[t];if(this.readExtensions_){var i=r.get("extensionsNode_")||null;this.readExtensions_(r,i)}r.set("extensionsNode_",void 0)}},t.prototype.readFeatureFromNode=function(e,t){if(!Object(I.f)(De,e.namespaceURI))return null;var n=Fe[e.localName];if(!n)return null;var r=n(e,[this.getReadOptions(e,t)]);return r?(this.handleReadExtensions_([r]),r):null},t.prototype.readFeaturesFromNode=function(e,t){if(!Object(I.f)(De,e.namespaceURI))return[];if("gpx"==e.localName){var n=X([],Ne,e,[this.getReadOptions(e,t)]);return n?(this.handleReadExtensions_(n),n):[]}return[]},t.prototype.writeFeaturesNode=function(e,t){t=this.adaptOptions(t);var n=A("http://www.topografix.com/GPX/1/1","gpx");return n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi",L),n.setAttributeNS(L,"xsi:schemaLocation","http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"),n.setAttribute("version","1.1"),n.setAttribute("creator","OpenLayers"),Z({node:n},Ue,lt,e,[t]),n},t}(ie),Ge=W(De,{name:U(ye),cmt:U(ye),desc:U(ye),src:U(ye),link:ut,number:U(ge),extensions:ht,type:U(ye),rtept:function(e,t){var n=X({},Ve,e,t);if(n){var r=t[t.length-1];ct(r.flatCoordinates,r.layoutOptions,e,n)}}}),Ve=W(De,{ele:U(fe),time:U(pe)}),He=W(De,{name:U(ye),cmt:U(ye),desc:U(ye),src:U(ye),link:ut,number:U(ge),type:U(ye),extensions:ht,trkseg:function(e,t){var n=t[t.length-1];Y(We,e,t);var r=n.flatCoordinates;n.ends.push(r.length)}}),We=W(De,{trkpt:function(e,t){var n=X({},Ye,e,t);if(n){var r=t[t.length-1];ct(r.flatCoordinates,r.layoutOptions,e,n)}}}),Ye=W(De,{ele:U(fe),time:U(pe)}),Xe=W(De,{ele:U(fe),time:U(pe),magvar:U(fe),geoidheight:U(fe),name:U(ye),cmt:U(ye),desc:U(ye),src:U(ye),link:ut,sym:U(ye),type:U(ye),fix:U(ye),sat:U(ge),hdop:U(fe),vdop:U(fe),pdop:U(fe),ageofdgpsdata:U(fe),dgpsid:U(ge),extensions:ht}),Ke=["text","type"],Ze=W(De,{text:z(xe),type:z(xe)}),Je=W(De,["name","cmt","desc","src","link","number","type","rtept"]),Qe=W(De,{name:z(xe),cmt:z(xe),desc:z(xe),src:z(xe),link:z(gt),number:z(we),type:z(xe),rtept:G(z(vt))}),et=W(De,["ele","time"]),tt=W(De,["name","cmt","desc","src","link","number","type","trkseg"]),nt=W(De,{name:z(xe),cmt:z(xe),desc:z(xe),src:z(xe),link:z(gt),number:z(we),type:z(xe),trkseg:G(z((function(e,t,n){var r={node:e};r.geometryLayout=t.getLayout(),r.properties={},Z(r,it,rt,t.getCoordinates(),n)})))}),rt=V("trkpt"),it=W(De,{trkpt:z(vt)}),ot=W(De,["ele","time","magvar","geoidheight","name","cmt","desc","src","link","sym","type","fix","sat","hdop","vdop","pdop","ageofdgpsdata","dgpsid"]),at=W(De,{ele:z(_e),time:z((function(e,t){var n=new Date(1e3*t),r=n.getUTCFullYear()+"-"+Object(de.b)(n.getUTCMonth()+1,2)+"-"+Object(de.b)(n.getUTCDate(),2)+"T"+Object(de.b)(n.getUTCHours(),2)+":"+Object(de.b)(n.getUTCMinutes(),2)+":"+Object(de.b)(n.getUTCSeconds(),2)+"Z";e.appendChild(ee().createTextNode(r))})),magvar:z(_e),geoidheight:z(_e),name:z(xe),cmt:z(xe),desc:z(xe),src:z(xe),link:z(gt),sym:z(xe),type:z(xe),fix:z(xe),sat:z(we),hdop:z(_e),vdop:z(_e),pdop:z(_e),ageofdgpsdata:z(_e),dgpsid:z(we)}),st={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function lt(e,t,n){var r=e.getGeometry();if(r){var i=st[r.getType()];if(i)return A(t[t.length-1].node.namespaceURI,i)}}function ct(e,t,n,r){return e.push(parseFloat(n.getAttribute("lon")),parseFloat(n.getAttribute("lat"))),"ele"in r?(e.push(r.ele),delete r.ele,t.hasZ=!0):e.push(0),"time"in r?(e.push(r.time),delete r.time,t.hasM=!0):e.push(0),e}function dt(e,t,n){var r=o.a.XY,i=2;if(e.hasZ&&e.hasM?(r=o.a.XYZM,i=4):e.hasZ?(r=o.a.XYZ,i=3):e.hasM&&(r=o.a.XYM,i=3),4!==i){for(var a=0,s=t.length/4;a<s;a++)t[a*i]=t[4*a],t[a*i+1]=t[4*a+1],e.hasZ&&(t[a*i+2]=t[4*a+2]),e.hasM&&(t[a*i+2]=t[4*a+3]);if(t.length=t.length/4*i,n)for(a=0,s=n.length;a<s;a++)n[a]=n[a]/4*i}return r}function ut(e,t){var n=t[t.length-1],r=e.getAttribute("href");null!==r&&(n.link=r),Y(Be,e,t)}function ht(e,t){t[t.length-1].extensionsNode_=e}function pt(e,t){var n=t[0],r=X({flatCoordinates:[],layoutOptions:{}},Ge,e,t);if(r){var o=r.flatCoordinates;delete r.flatCoordinates;var a=r.layoutOptions;delete r.layoutOptions;var l=dt(a,o),c=new s.a(o,l);Object(_.c)(c,!1,n);var d=new i.a(c);return d.setProperties(r,!0),d}}function ft(e,t){var n=t[0],r=X({flatCoordinates:[],ends:[],layoutOptions:{}},He,e,t);if(r){var o=r.flatCoordinates;delete r.flatCoordinates;var a=r.ends;delete r.ends;var s=r.layoutOptions;delete r.layoutOptions;var l=dt(s,o,a),d=new c.a(o,l,a);Object(_.c)(d,!1,n);var u=new i.a(d);return u.setProperties(r,!0),u}}function mt(e,t){var n=t[0],r=X({},Xe,e,t);if(r){var o={},a=ct([],o,e,r),s=dt(o,a),l=new h.a(a,s);Object(_.c)(l,!1,n);var c=new i.a(l);return c.setProperties(r,!0),c}}function gt(e,t,n){e.setAttribute("href",t);var r=n[n.length-1].properties,i=[r.linkText,r.linkType];Z({node:e},Ze,q,i,n,Ke)}function vt(e,t,n){var r=n[n.length-1],i=r.node.namespaceURI,a=r.properties;switch(e.setAttributeNS(null,"lat",String(t[1])),e.setAttributeNS(null,"lon",String(t[0])
806),r.geometryLayout){case o.a.XYZM:0!==t[3]&&(a.time=t[3]);case o.a.XYZ:0!==t[2]&&(a.ele=t[2]);break;case o.a.XYM:0!==t[2]&&(a.time=t[2])}var s="rtept"==e.nodeName?et[i]:ot[i],l=H(a,s);Z({node:e,properties:a},at,q,l,n,s)}var yt,bt,_t,wt,xt,Ct,St,Et,kt,Tt,Ot,$t=ze,Pt=n(168),It=(Et=function(e,t){return(Et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Et(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Lt="none",At=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,Mt=/^H.([A-Z]{3}).*?:(.*)/,jt=/^HFDTE(\d{2})(\d{2})(\d{2})/,Rt=/\r\n|\r|\n/,Dt=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.dataProjection=Object(y.get)("EPSG:4326"),n.altitudeMode_=r.altitudeMode?r.altitudeMode:Lt,n}return It(t,e),t.prototype.readFeatureFromText=function(e,t){var n,r,a=this.altitudeMode_,l=e.split(Rt),c={},d=[],u=2e3,h=0,p=1,f=-1;for(n=0,r=l.length;n<r;++n){var m=l[n],g=void 0;if("B"==m.charAt(0)){if(g=At.exec(m)){var v=parseInt(g[1],10),y=parseInt(g[2],10),b=parseInt(g[3],10),w=parseInt(g[4],10)+parseInt(g[5],10)/6e4;"S"==g[6]&&(w=-w);var x=parseInt(g[7],10)+parseInt(g[8],10)/6e4;if("W"==g[9]&&(x=-x),d.push(x,w),a!=Lt){var C;C="gps"==a?parseInt(g[11],10):"barometric"==a?parseInt(g[12],10):0,d.push(C)}var S=Date.UTC(u,h,p,v,y,b);S<f&&(S=Date.UTC(u,h,p+1,v,y,b)),d.push(S/1e3),f=S}}else"H"==m.charAt(0)&&((g=jt.exec(m))?(p=parseInt(g[1],10),h=parseInt(g[2],10)-1,u=2e3+parseInt(g[3],10)):(g=Mt.exec(m))&&(c[g[1]]=g[2].trim()))}if(0===d.length)return null;var E=a==Lt?o.a.XYM:o.a.XYZM,k=new s.a(d,E),T=new i.a(Object(_.c)(k,!1,t));return T.setProperties(c,!0),T},t.prototype.readFeaturesFromText=function(e,t){var n=this.readFeatureFromText(e,t);return n?[n]:[]},t}(Pt.a),Ft=n(134),Nt=n(65),Bt=n(70),Ut=n(130),zt=n(84),Gt=n(74),Vt=n(21),qt=n(67),Ht=n(44),Wt=n(104),Yt=n(78),Xt=n(6),Kt=(St=function(e,t){return(St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}St(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zt=["http://www.google.com/kml/ext/2.2"],Jt=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],Qt={fraction:zt.a.FRACTION,pixels:zt.a.PIXELS,insetPixels:zt.a.PIXELS},en=W(Jt,{ExtendedData:Yn,Region:Xn,MultiGeometry:U(Nn,"geometry"),LineString:U(Rn,"geometry"),LinearRing:U(Dn,"geometry"),Point:U(Bn,"geometry"),Polygon:U(zn,"geometry"),Style:U(Vn),StyleMap:function(e,t){var n=xn.call(this,e,t);if(n){var r=t[t.length-1];Array.isArray(n)?r.Style=n:"string"==typeof n?r.styleUrl=n:Object(f.a)(!1,38)}},address:U(ye),description:U(ye),name:U(ye),open:U(ue),phoneNumber:U(ye),styleUrl:U(bn),visibility:U(ue)},W(Zt,{MultiTrack:U((function(e,t){var n=X([],$n,e,t);if(n)return new c.a(n)}),"geometry"),Track:U(In,"geometry")})),tn=W(Jt,{ExtendedData:Yn,Region:Xn,Link:function(e,t){Y(nn,e,t)},address:U(ye),description:U(ye),name:U(ye),open:U(ue),phoneNumber:U(ye),visibility:U(ue)}),nn=W(Jt,{href:U(yn)}),rn=W(Jt,{LatLonAltBox:function(e,t){var n=X({},Jn,e,t);if(n){var r=t[t.length-1],i=[parseFloat(n.west),parseFloat(n.south),parseFloat(n.east),parseFloat(n.north)];r.extent=i,r.altitudeMode=n.altitudeMode,r.minAltitude=parseFloat(n.minAltitude),r.maxAltitude=parseFloat(n.maxAltitude)}},Lod:function(e,t){var n=X({},Qn,e,t);if(n){var r=t[t.length-1];r.minLodPixels=parseFloat(n.minLodPixels),r.maxLodPixels=parseFloat(n.maxLodPixels),r.minFadeExtent=parseFloat(n.minFadeExtent),r.maxFadeExtent=parseFloat(n.maxFadeExtent)}}}),on=W(Jt,["Document","Placemark"]),an=W(Jt,{Document:z((function(e,t,n){Z({node:e},ir,or,t,n,void 0,this)})),Placemark:z($r)}),sn=null,ln=null,cn=null,dn=null,un=null,hn=null;function pn(e){return 32/Math.min(e[0],e[1])}function fn(e){return e}var mn=function(e){function t(t){var n=e.call(this)||this,r=t||{};return hn||(yt=[255,255,255,1],sn=new Nt.a({color:yt}
806),bt=[20,2],_t=zt.a.PIXELS,wt=zt.a.PIXELS,xt=[64,64],Ct="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",ln=new Ut.a({anchor:bt,anchorOrigin:Gt.a.BOTTOM_LEFT,anchorXUnits:_t,anchorYUnits:wt,crossOrigin:"anonymous",rotation:0,scale:pn(xt),size:xt,src:Ct}),kt="NO_IMAGE",cn=new qt.a({color:yt,width:1}),Tt=new qt.a({color:[51,51,51,1],width:2}),dn=new Wt.a({font:"bold 16px Helvetica",fill:sn,stroke:Tt,scale:.8}),un=new Ht.c({fill:sn,image:ln,text:dn,stroke:cn,zIndex:0}),hn=[un]),n.dataProjection=Object(y.get)("EPSG:4326"),n.defaultStyle_=r.defaultStyle?r.defaultStyle:hn,n.extractStyles_=void 0===r.extractStyles||r.extractStyles,n.writeStyles_=void 0===r.writeStyles||r.writeStyles,n.sharedStyles_={},n.showPointNames_=void 0===r.showPointNames||r.showPointNames,n.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:"anonymous",n.iconUrlFunction_=r.iconUrlFunction?r.iconUrlFunction:fn,n.supportedMediaTypes=["application/vnd.google-earth.kml+xml"],n}return Kt(t,e),t.prototype.readDocumentOrFolder_=function(e,t){return X([],W(Jt,{Document:D(this.readDocumentOrFolder_,this),Folder:D(this.readDocumentOrFolder_,this),Placemark:F(this.readPlacemark_,this),Style:this.readSharedStyle_.bind(this),StyleMap:this.readSharedStyleMap_.bind(this)}),e,t,this)||void 0},t.prototype.readPlacemark_=function(e,t){var n=X({geometry:null},en,e,t,this);if(n){var r=new i.a,o=e.getAttribute("id");null!==o&&r.setId(o);var a=t[0],s=n.geometry;if(s&&Object(_.c)(s,!1,a),r.setGeometry(s),delete n.geometry,this.extractStyles_){var l=function(e,t,n,r,i){return function(o,a){var s=i,l="",c=[];if(s){var d=o.getGeometry();if(d)if(d instanceof Bt.a)s=(c=d.getGeometriesArrayRecursive().filter((function(e){var t=e.getType();return"Point"===t||"MultiPoint"===t}))).length>0;else{var u=d.getType();s="Point"===u||"MultiPoint"===u}}s&&(l=o.get("name"),(s=s&&!!l)&&l.search(/&[^&]+;/)>-1&&(Ot||(Ot=document.createElement("textarea")),Ot.innerHTML=l,l=Ot.value));var h=n;if(e?h=e:t&&(h=function e(t,n,r){return Array.isArray(t)?t:"string"==typeof t?e(r[t],n,r):n}(t,n,r)),s){var p=function(e,t){var n=[0,0],r="start",i=e.getImage();if(i){var o=i.getSize();if(o&&2==o.length){var a=i.getScaleArray(),s=i.getAnchor();n[0]=a[0]*(o[0]-s[0]),n[1]=a[1]*(o[1]/2-s[1]),r="left"}}var l=e.getText();return l?((l=l.clone()).setFont(l.getFont()||dn.getFont()),l.setScale(l.getScale()||dn.getScale()),l.setFill(l.getFill()||dn.getFill()),l.setStroke(l.getStroke()||Tt)):l=dn.clone(),l.setText(t),l.setOffsetX(n[0]),l.setOffsetY(n[1]),l.setTextAlign(r),new Ht.c({image:i,text:l})}(h[0],l);return c.length>0?(p.setGeometry(new Bt.a(c)),[p,new Ht.c({geometry:h[0].getGeometry(),image:null,fill:h[0].getFill(),stroke:h[0].getStroke(),text:null})].concat(h.slice(1))):p}return h}}(n.Style,n.styleUrl,this.defaultStyle_,this.sharedStyles_,this.showPointNames_);r.setStyle(l)}return delete n.Style,r.setProperties(n,!0),r}},t.prototype.readSharedStyle_=function(e,t){var n=e.getAttribute("id");if(null!==n){var r=Vn.call(this,e,t);if(r){var i=void 0,o=e.baseURI;o&&"about:blank"!=o||(o=window.location.href),i=o?new URL("#"+n,o).href:"#"+n,this.sharedStyles_[i]=r}}},t.prototype.readSharedStyleMap_=function(e,t){var n=e.getAttribute("id");if(null!==n){var r=xn.call(this,e,t);if(r){var i,o=e.baseURI;o&&"about:blank"!=o||(o=window.location.href),i=o?new URL("#"+n,o).href:"#"+n,this.sharedStyles_[i]=r}}},t.prototype.readFeatureFromNode=function(e,t){return Object(I.f)(Jt,e.namespaceURI)&&this.readPlacemark_(e,[this.getReadOptions(e,t)])||null},t.prototype.readFeaturesFromNode=function(e,t){if(!Object(I.f)(Jt,e.namespaceURI))return[];var n,r=e.localName;if("Document"==r||"Folder"==r)return(n=this.readDocumentOrFolder_(e,[this.getReadOptions(e,t)]))||[];if("Placemark"==r){var i=this.readPlacemark_(e,[this.getReadOptions(e,t)]);return i?[i]:[]}if("kml"==r){n=[];for(var o=e.firstElementChild;o;o=o.nextElementSibling){var a=this.readFeaturesFromNode(o,t);a&&Object(I.c)(n,a)}return n}return[]},t.prototype.readName=function(e){if(e){if("string"==typeof e){var t=R(e);return this.readNameFromDocument(t)}return j(e)?this.readNameFromDocument(e):this.readNameFromNode(e)}},t.prototype.readNameFromDocument=function(e){for(var t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE){var n=this.readNameFromNode(t);if(n)return n}},t.prototype.readNameFromNode=function(e){for(var t=e.firstElementChild;t;t=t.nextElementSibling)if(Object(I.f)(Jt,t.namespaceURI)&&"name"==t.localName)return ye(t);for(t=e.firstElementChild;t;t=t.nextElementSibling){var n=t.localName;if(Object(I.f)(Jt,t.namespaceURI)&&("Document"==n||"Folder"==n||"Placemark"==n||"kml"==n)){var r=this.readNameFromNode(t);if(r)return r}}},t.prototype.readNetworkLinks=function(e){var t=[];if("string"==typeof e){var n=R(e);Object(I.c)(t,this.readNetworkLinksFromDocument(n))}else j(e)?Object(I.c)(t,this.readNetworkLinksFromDocument(e)):Object(I.c)(t,this.readNetworkLinksFromNode(e));return t},t.prototype.readNetworkLinksFromDocument=function(e){for(var t=[],n=e.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&Object(I.c)(t,this.readNetworkLinksFromNode(n));return t},t.prototype.readNetworkLinksFromNode=function(e){for(var t=[],n=e.firstElementChild;n;n=n.nextElementSibling)if(Object(I.f)(Jt,n.namespaceURI)&&"NetworkLink"==n.localName){var r=X({},tn,n,[]);t.push(r)}for(n=e.firstElementChild;n;n=n.nextElementSibling){var i=n.localName;!Object(I.f)(Jt,n.namespaceURI)||"Document"!=i&&"Folder"!=i&&"kml"!=i||Object(I.c)(t,this.readNetworkLinksFromNode(n))}return t},t.prototype.readRegion=function(e){var t=[];if("string"==typeof e){var n=R(e);Object(I.c)(t,this.readRegionFromDocument(n))}else j(e)?Object(I.c)(t,this.readRegionFromDocument(e)):Object(I.c)(t,this.readRegionFromNode(e));return t},t.prototype.readRegionFromDocument=function(e){for(var t=[],n=e.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&Object(I.c)(t,this.readRegionFromNode(n));return t},t.prototype.readRegionFromNode=function(e){for(var t=[],n=e.firstElementChild;n;n=n.nextElementSibling)if(Object(I.f)(Jt,n.namespaceURI)&&"Region"==n.localName){var r=X({},rn,n,[]);t.push(r)}for(n=e.firstElementChild;n;n=n.nextElementSibling){var i=n.localName;!Object(I.f)(Jt,n.namespaceURI)||"Document"!=i&&"Folder"!=i&&"kml"!=i||Object(I.c)(t,this.readRegionFromNode(n))}return t},t.prototype.writeFeaturesNode=function(e,t){t=this.adaptOptions(t);var n=A(Jt[4],"kml"),r="http://www.w3.org/2000/xmlns/";n.setAttributeNS(r,"xmlns:gx",Zt[0]),n.setAttributeNS(r,"xmlns:xsi",L),n.setAttributeNS(L,"xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var i={node:n},o={};e.length>1?o.Document=e:1==e.length&&(o.Placemark=e[0]);var a=on[n.namespaceURI],s=H(o,a);return Z(i,an,q,s,[t],a,this),n},t}(ie);function gn(e){var t=M(e,!1),n=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(t);if(n){var r=n[1];return[parseInt(r.substr(6,2),16),parseInt(r.substr(4,2),16),parseInt(r.substr(2,2),16),parseInt(r.substr(0,2),16)/255]}}function vn(e){var t=M(e,!1),n=[];t=t.replace(/\s*,\s*/g,",");for(var r,i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i;r=i.exec(t);){var o=parseFloat(r[1]),a=parseFloat(r[2]),s=r[3]?parseFloat(r[3]):0;n.push(o,a,s),t=t.substr(r[0].length)}if(""===t)return n}function yn(e){var t=M(e,!1).trim(),n=e.baseURI;return n&&"about:blank"!=n||(n=window.location.href),n?new URL(t,n).href:t}function bn(e){var t=M(e,!1).trim().replace(/^(?!.*#)/,"#"),n=e.baseURI;return n&&"about:blank"!=n||(n=window.location.href),n?new URL(t,n).href:t}function _n(e){return fe(e)}var wn=W(Jt,{Pair:function(e,t){var n=X({},Kn,e,t,this);if(n){var r=n.key;if(r&&"normal"==r){var i=n.styleUrl;i&&(t[t.length-1]=i);var o=n.Style;o&&(t[t.length-1]=o)}}}});function xn(e,t){return X(void 0,wn,e,t,this)}var Cn=W(Jt,{Icon:U((function(e,t){return X({},Ln,e,t)||null})),color:U(gn),heading:U(fe),hotSpot:U((function(e){var t,n=e.getAttribute("xunits"),r=e.getAttribute("yunits");return t="insetPixels"!==n?"insetPixels"!==r?Gt.a.BOTTOM_LEFT:Gt.a.TOP_LEFT:"insetPixels"!==r?Gt.a.BOTTOM_RIGHT:Gt.a.TOP_RIGHT,{x:parseFloat(e.getAttribute("x")),xunits:Qt[n],y:parseFloat(e.getAttribute("y")),yunits:Qt[r],origin:t}})),scale:U(_n)}),Sn=W(Jt,{color:U(gn),scale:U(_n)}),En=W(Jt,{color:U(gn),width:U(fe)}),kn=W(Jt,{color:U(gn),fill:U(ue),outline:U(ue)}),Tn=W(Jt,{coordinates:N(vn)});function On(e,t){return X(null,Tn,e,t)}var $n=W(Zt,{Track:F(In)}),Pn=W(Jt,{when:function(e,t){var n=t[t.length-1].whens,r=M(e,!1),i=Date.parse(r);n.push(isNaN(i)?0:i)}},W(Zt,{coord:function(e,t){var n=t[t.length-1].coordinates,r=M(e,!1),i=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(r);if(i){var o=parseFloat(i[1]),a=parseFloat(i[2]),s=parseFloat(i[3]);n.push([o,a,s])}else n.push([])}}));function In(e,t){var n=X({coordinates:[],whens:[]},Pn,e,t);if(n){for(var r=[],i=n.coordinates,a=n.whens,l=0,c=Math.min(i.length,a.length);l<c;++l)3==i[l].length&&r.push(i[l][0],i[l][1],i[l][2],a[l]);return new s.a(r,o.a.XYZM)}}var Ln=W(Jt,{href:U(yn)},W(Zt,{x:U(fe),y:U(fe),w:U(fe),h:U(fe)})),An=W(Jt,{coordinates:N(vn)});function Mn(e,t){return X(null,An,e,t)}var jn=W(Jt,{extrude:U(ue),tessellate:U(ue),altitudeMode:U(ye)});function Rn(e,t){var n=X({},jn,e,t),r=Mn(e,t);if(r){var i=new s.a(r,o.a.XYZ);return i.setProperties(n,!0),i}}function Dn(e,t){var n=X({},jn,e,t),r=Mn(e,t);if(r){var i=new p.a(r,o.a.XYZ,[r.length]);return i.setProperties(n,!0),i}}var Fn=W(Jt,{LineString:F(Rn),LinearRing:F(Dn),MultiGeometry:F(Nn),Point:F(Bn),Polygon:F(zn)});function Nn(e,t){var n,r=X([],Fn,e,t);if(!r)return null;if(0===r.length)return new Bt.a(r);for(var i,o=!0,a=r[0].getType(),s=1,l=r.length;s<l;++s)if((i=r[s]).getType()!=a){o=!1;break}if(o){var h=void 0,p=void 0;if("Point"==a){var m=r[0];for(h=m.getLayout(),p=m.getFlatCoordinates(),s=1,l=r.length;s<l;++s)i=r[s],Object(I.c)(p,i.getFlatCoordinates());qn(n=new d.a(p,h),r)}else"LineString"==a?qn(n=new c.a(r),r):"Polygon"==a?qn(n=new u.a(r),r):"GeometryCollection"==a?n=new Bt.a(r):Object(f.a)(!1,37)}else n=new Bt.a(r);return n}function Bn(e,t){var n=X({},jn,e,t),r=Mn(e,t);if(r){var i=new h.a(r,o.a.XYZ);return i.setProperties(n,!0),i}}var Un=W(Jt,{innerBoundaryIs:function(e,t){var n=X([],er,e,t);if(n.length>0){var r=t[t.length-1];r.push.apply(r,n)}},outerBoundaryIs:function(e,t){var n=X(void 0,tr,e,t);n&&(t[t.length-1][0]=n)}});function zn(e,t){var n=X({},jn,e,t),r=X([null],Un,e,t);if(r&&r[0]){for(var i=r[0],a=[i.length],s=1,l=r.length;s<l;++s)Object(I.c)(i,r[s]),a.push(i.length);var c=new p.a(i,o.a.XYZ,a);return c.setProperties(n,!0),c}}var Gn=W(Jt,{IconStyle:function(e,t){var n=X({},Cn,e,t);if(n){var r,i,o,a,s=t[t.length-1],l="Icon"in n?n.Icon:{},c=!("Icon"in n)||Object.keys(l).length>0,d=l.href;d?r=d:c&&(r=Ct);var u,h=Gt.a.BOTTOM_LEFT,p=n.hotSpot;p?(i=[p.x,p.y],o=p.xunits,a=p.yunits,h=p.origin):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(r)&&(/pushpin/.test(r)?(i=bt,o=_t,a=wt):/arrow-reverse/.test(r)?(i=[54,42],o=_t,a=wt):/paddle/.test(r)&&(i=[32,1],o=_t,a=wt));var f,m=l.x,g=l.y;void 0!==m&&void 0!==g&&(u=[m,g]);var v,y=l.w,b=l.h;void 0!==y&&void 0!==b&&(f=[y,b]);var _=n.heading;void 0!==_&&(v=Object(Xt.m)(_));var w=n.scale,x=n.color;if(c){r==Ct&&(f=xt);var C=new Ut.a({anchor:i,anchorOrigin:h,anchorXUnits:o,anchorYUnits:a,crossOrigin:this.crossOrigin_,offset:u,offsetOrigin:Gt.a.BOTTOM_LEFT,rotation:v,scale:w,size:f,src:this.iconUrlFunction_(r),color:x}),S=C.getScaleArray()[0],E=C.getSize();if(null===E){var k=C.getImageState();if(k===Vt.a.IDLE||k===Vt.a.LOADING){C.listenImageChange((function e(){var t=C.getImageState();if(t!==Vt.a.IDLE&&t!==Vt.a.LOADING){var n=C.getSize();if(n&&2==n.length){var r=pn(n);C.setScale(S*r)}C.unlistenImageChange(e)}})),k===Vt.a.IDLE&&C.load()}}else if(2==E.length){var T=pn(E);C.setScale(S*T)}s.imageStyle=C}else s.imageStyle=kt}},LabelStyle:function(e,t){var n=X({},Sn,e,t);if(n){var r=t[t.length-1],i=new Wt.a({fill:new Nt.a({color:"color"in n?n.color:yt}),scale:n.scale});r.textStyle=i}},LineStyle:function(e,t){var n=X({},En,e,t);if(n){var r=t[t.length-1],i=new qt.a({color:"color"in n?n.color:yt,width:"width"in n?n.width:1});r.strokeStyle=i}},PolyStyle:function(e,t){var n=X({},kn,e,t);if(n){var r=t[t.length-1],i=new Nt.a({color:"color"in n?n.color:yt});r.fillStyle=i;var o=n.fill;void 0!==o&&(r.fill=o);var a=n.outline;void 0!==a&&(r.outline=a)}}});function Vn(e,t){var n=X({},Gn,e,t,this);if(!n)return null;var r,i="fillStyle"in n?n.fillStyle:sn,o=n.fill;void 0===o||o||(i=null),"imageStyle"in n?n.imageStyle!=kt&&(r=n.imageStyle):r=ln;var a="textStyle"in n?n.textStyle:dn,s="strokeStyle"in n?n.strokeStyle:cn,l=n.outline;return void 0===l||l?[new Ht.c({fill:i,image:r,stroke:s,text:a,zIndex:void 0})]:[new Ht.c({geometry:function(e){var t=e.getGeometry(),n=t.getType();if("GeometryCollection"===n){var r=t;return new Bt.a(r.getGeometriesArrayRecursive().filter((function(e){var t=e.getType();return"Polygon"!==t&&"MultiPolygon"!==t})))}if("Polygon"!==n&&"MultiPolygon"!==n)return t},fill:i,image:r,stroke:s,text:a,zIndex:void 0}),new Ht.c({geometry:function(e){var t=e.getGeometry(),n=t.getType();if("GeometryCollection"===n){var r=t;return new Bt.a(r.getGeometriesArrayRecursive().filter((function(e){var t=e.getType();return"Polygon"===t||"MultiPolygon"===t})))}if("Polygon"===n||"MultiPolygon"===n)return t},fill:i,stroke:null,zIndex:void 0})]}function qn(e,t){var n,r,i,o=t.length,a=new Array(t.length),s=new Array(t.length),l=new Array(t.length);n=!1,r=!1,i=!1;for(var c=0;c<o;++c){var d=t[c];a[c]=d.get("extrude"),s[c]=d.get("tessellate"),l[c]=d.get("altitudeMode"),n=n||void 0!==a[c],r=r||void 0!==s[c],i=i||l[c]}n&&e.set("extrude",a),r&&e.set("tessellate",s),i&&e.set("altitudeMode",l)}var Hn=W(Jt,{displayName:U(ye),value:U(ye)}),Wn=W(Jt,{Data:function(e,t){var n=e.getAttribute("name");Y(Hn,e,t);var r=t[t.length-1];n&&r.displayName?r[n]={value:r.value,displayName:r.displayName,toString:function(){return r.value}}:null!==n?r[n]=r.value:null!==r.displayName&&(r[r.displayName]=r.value),delete r.value},SchemaData:function(e,t){Y(Zn,e,t)}});function Yn(e,t){Y(Wn,e,t)}function Xn(e,t){Y(rn,e,t)}var Kn=W(Jt,{Style:U(Vn),key:U(ye),styleUrl:U(bn)}),Zn=W(Jt,{SimpleData:function(e,t){var n=e.getAttribute("name");if(null!==n){var r=ye(e);t[t.length-1][n]=r}}}),Jn=W(Jt,{altitudeMode:U(ye),minAltitude:U(fe),maxAltitude:U(fe),north:U(fe),south:U(fe),east:U(fe),west:U(fe)}),Qn=W(Jt,{minLodPixels:U(fe),maxLodPixels:U(fe),minFadeExtent:U(fe),maxFadeExtent:U(fe)}),er=W(Jt,{LinearRing:F(On)}),tr=W(Jt,{LinearRing:N(On)});function nr(e,t){for(var n=Object(Yt.a)(t),r=[255*(4==n.length?n[3]:1),n[2],n[1],n[0]],i=0;i<4;++i){var o=Math.floor(r[i]).toString(16);r[i]=1==o.length?"0"+o:o}xe(e,r.join(""))}var rr=W(Jt,{Data:z((function(e,t,n){e.setAttribute("name",t.name);
806var r={node:e},i=t.value;"object"==qe(i)?(null!==i&&i.displayName&&Z(r,rr,q,[i.displayName],n,["displayName"]),null!==i&&i.value&&Z(r,rr,q,[i.value],n,["value"])):Z(r,rr,q,[i],n,["value"])})),value:z((function(e,t){xe(e,t)})),displayName:z((function(e,t){!function(e,t){e.appendChild(ee().createCDATASection(t))}(e,t)}))}),ir=W(Jt,{Placemark:z($r)}),or=function(e,t,n){return A(t[t.length-1].node.namespaceURI,"Placemark")},ar=V("Data"),sr=W(Jt,["href"],W(Zt,["x","y","w","h"])),lr=W(Jt,{href:z(xe)},W(Zt,{x:z(_e),y:z(_e),w:z(_e),h:z(_e)})),cr=function(e,t,n){return A(Zt[0],"gx:"+n)},dr=W(Jt,["scale","heading","Icon","color","hotSpot"]),ur=W(Jt,{Icon:z((function(e,t,n){var r={node:e},i=n[n.length-1].node,o=sr[i.namespaceURI],a=H(t,o);Z(r,lr,q,a,n,o),a=H(t,o=sr[Zt[0]]),Z(r,lr,cr,a,n,o)})),color:z(nr),heading:z(_e),hotSpot:z((function(e,t){e.setAttribute("x",String(t.x)),e.setAttribute("y",String(t.y)),e.setAttribute("xunits",t.xunits),e.setAttribute("yunits",t.yunits)})),scale:z(Nr)}),hr=W(Jt,["color","scale"]),pr=W(Jt,{color:z(nr),scale:z(Nr)}),fr=W(Jt,["color","width"]),mr=W(Jt,{color:z(nr),width:z(_e)}),gr={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},vr=function(e,t,n){if(e)return A(t[t.length-1].node.namespaceURI,gr[e.getType()])},yr=V("Point"),br=V("LineString"),_r=V("LinearRing"),wr=V("Polygon"),xr=W(Jt,{LineString:z(Lr),Point:z(Lr),Polygon:z(Dr),GeometryCollection:z(Cr)});function Cr(e,t,n){var r,i={node:e},o=t.getType(),a=[];"GeometryCollection"===o?(t.getGeometriesArrayRecursive().forEach((function(e){var t=e.getType();"MultiPoint"===t?a=a.concat(e.getPoints()):"MultiLineString"===t?a=a.concat(e.getLineStrings()):"MultiPolygon"===t?a=a.concat(e.getPolygons()):"Point"===t||"LineString"===t||"Polygon"===t?a.push(e):Object(f.a)(!1,39)})),r=vr):"MultiPoint"===o?(a=t.getPoints(),r=yr):"MultiLineString"===o?(a=t.getLineStrings(),r=br):"MultiPolygon"===o?(a=t.getPolygons(),r=wr):Object(f.a)(!1,39),Z(i,xr,r,a,n)}var Sr=W(Jt,{LinearRing:z(Lr)});function Er(e,t,n){Z({node:e},Sr,_r,[t],n)}var kr=W(Jt,{ExtendedData:z((function(e,t,n){for(var r={node:e},i=t.names,o=t.values,a=i.length,s=0;s<a;s++)Z(r,rr,ar,[{name:i[s],value:o[s]}],n)})),MultiGeometry:z(Cr),LineString:z(Lr),LinearRing:z(Lr),Point:z(Lr),Polygon:z(Dr),Style:z((function(e,t,n){var r,i={node:e},o={};if(t.pointStyles.length){var a=t.pointStyles[0].getText();a&&(o.LabelStyle=a);var s=t.pointStyles[0].getImage();s&&"function"==typeof s.getSrc&&(o.IconStyle=s)}(t.lineStyles.length&&(r=t.lineStyles[0].getStroke())&&(o.LineStyle=r),t.polyStyles.length)&&((r=t.polyStyles[0].getStroke())&&!o.LineStyle&&(o.LineStyle=r),o.PolyStyle=t.polyStyles[0]);var l=n[n.length-1].node,c=Br[l.namespaceURI],d=H(o,c);Z(i,Ur,q,d,n,c)})),address:z(xe),description:z(xe),name:z(xe),open:z(be),phoneNumber:z(xe),styleUrl:z(xe),visibility:z(be)}),Tr=W(Jt,["name","open","visibility","address","phoneNumber","description","styleUrl","Style"]),Or=V("ExtendedData");function $r(e,t,n){var r={node:e};t.getId()&&e.setAttribute("id",t.getId());var i=t.getProperties(),o={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};o[t.getGeometryName()]=1;var a=Object.keys(i||{}).sort().filter((function(e){return!o[e]})),s=t.getStyleFunction();if(s){var l=s(t,0);if(l){var c=Array.isArray(l)?l:[l],d=c;if(t.getGeometry()&&(d=c.filter((function(e){var n=e.getGeometryFunction()(t);if(n){var r=n.getType();return"GeometryCollection"===r?n.getGeometriesArrayRecursive().filter((function(e){var t=e.getType();return"Point"===t||"MultiPoint"===t})).length:"Point"===r||"MultiPoint"===r}}))),this.writeStyles_){var u=c,h=c;t.getGeometry()&&(u=c.filter((function(e){var n=e.getGeometryFunction()(t);if(n){var r=n.getType();return"GeometryCollection"===r?n.getGeometriesArrayRecursive().filter((function(e){var t=e.getType();return"LineString"===t||"MultiLineString"===t})).length:"LineString"===r||"MultiLineString"===r}})),h=c.filter((function(e){var n=e.getGeometryFunction()(t);if(n){var r=n.getType();return"GeometryCollection"===r?n.getGeometriesArrayRecursive().filter((function(e){var t=e.getType();return"Polygon"===t||"MultiPolygon"===t})).length:"Polygon"===r||"MultiPolygon"===r}}))),i.Style={pointStyles:d,lineStyles:u,polyStyles:h}}if(d.length&&void 0===i.name){var p=d[0].getText();p&&(i.name=p.getText())}}}var f=n[n.length-1].node,m=Tr[f.namespaceURI],g=H(i,m);if(Z(r,kr,q,g,n,m),a.length>0){var v=H(i,a);Z(r,kr,Or,[{names:a,values:v}],n)}var y=n[0],b=t.getGeometry();b&&(b=Object(_.c)(b,!0,y)),Z(r,kr,vr,[b],n)}var Pr=W(Jt,["extrude","tessellate","altitudeMode","coordinates"]),Ir=W(Jt,{extrude:z(be),tessellate:z(be),altitudeMode:z(xe),coordinates:z((function(e,t,n){var r,i=n[n.length-1],a=i.layout,s=i.stride;a==o.a.XY||a==o.a.XYM?r=2:a==o.a.XYZ||a==o.a.XYZM?r=3:Object(f.a)(!1,34);var l=t.length,c="";if(l>0){c+=t[0];for(var d=1;d<r;++d)c+=","+t[d];for(var u=s;u<l;u+=s)for(c+=" "+t[u],d=1;d<r;++d)c+=","+t[u+d]}xe(e,c)}))});function Lr(e,t,n){var r=t.getFlatCoordinates(),i={node:e};i.layout=t.getLayout(),i.stride=t.getStride();var o=t.getProperties();
806o.coordinates=r;var a=n[n.length-1].node,s=Pr[a.namespaceURI],l=H(o,s);Z(i,Ir,q,l,n,s)}var Ar=W(Jt,["color","fill","outline"]),Mr=W(Jt,{outerBoundaryIs:z(Er),innerBoundaryIs:z(Er)}),jr=V("innerBoundaryIs"),Rr=V("outerBoundaryIs");function Dr(e,t,n){var r=t.getLinearRings(),i=r.shift(),o={node:e};Z(o,Mr,jr,r,n),Z(o,Mr,Rr,[i],n)}var Fr=W(Jt,{color:z(nr),fill:z(be),outline:z(be)});function Nr(e,t){_e(e,Math.round(1e6*t)/1e6)}var Br=W(Jt,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Ur=W(Jt,{IconStyle:z((function(e,t,n){var r={node:e},i={},o=t.getSrc(),a=t.getSize(),s=t.getImageSize(),l={href:o};if(a){l.w=a[0],l.h=a[1];var c=t.getAnchor(),d=t.getOrigin();if(d&&s&&0!==d[0]&&d[1]!==a[1]&&(l.x=d[0],l.y=s[1]-(d[1]+a[1])),c&&(c[0]!==a[0]/2||c[1]!==a[1]/2)){var u={x:c[0],xunits:zt.a.PIXELS,y:a[1]-c[1],yunits:zt.a.PIXELS};i.hotSpot=u}}i.Icon=l;var h=t.getScaleArray()[0],p=a;null===p&&(p=xt),2==p.length&&(h/=pn(p)),1!==h&&(i.scale=h);var f=t.getRotation();0!==f&&(i.heading=f);var m=t.getColor();m&&(i.color=m);var g=n[n.length-1].node,v=dr[g.namespaceURI],y=H(i,v);Z(r,ur,q,y,n,v)})),LabelStyle:z((function(e,t,n){var r={node:e},i={},o=t.getFill();o&&(i.color=o.getColor());var a=t.getScale();a&&1!==a&&(i.scale=a);var s=n[n.length-1].node,l=hr[s.namespaceURI],c=H(i,l);Z(r,pr,q,c,n,l)})),LineStyle:z((function(e,t,n){var r={node:e},i={color:t.getColor(),width:Number(t.getWidth())||1},o=n[n.length-1].node,a=fr[o.namespaceURI],s=H(i,a);Z(r,mr,q,s,n,a)})),PolyStyle:z((function(e,t,n){var r={node:e},i=t.getFill(),o=t.getStroke(),a={color:i?i.getColor():void 0,fill:!!i&&void 0,outline:!!o&&void 0},s=n[n.length-1].node,l=Ar[s.namespaceURI],c=H(a,l);Z(r,Fr,q,c,n,l)}))}),zr=mn,Gr=n(155),Vr=function(){function e(){}return e.prototype.read=function(e){if(e){if("string"==typeof e){var t=R(e);return this.readFromDocument(t)}return j(e)?this.readFromDocument(e):this.readFromNode(e)}return null},e.prototype.readFromDocument=function(e){for(var t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.readFromNode(t);return null},e.prototype.readFromNode=function(e){},e}();function qr(e){return e.getAttributeNS("http://www.w3.org/1999/xlink","href")}var Hr,Wr=(Hr=function(e,t){return(Hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Hr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Yr=[null,"http://www.opengis.net/ows/1.1"],Xr=W(Yr,{ServiceIdentification:U((function(e,t){return X({},li,e,t)})),ServiceProvider:U((function(e,t){return X({},ci,e,t)})),OperationsMetadata:U((function(e,t){return X({},ii,e,t)}))}),Kr=function(e){function t(){return e.call(this)||this}return Wr(t,e),t.prototype.readFromNode=function(e){return X({},Xr,e,[])||null},t}(Vr),Zr=W(Yr,{DeliveryPoint:U(ye),City:U(ye),AdministrativeArea:U(ye),PostalCode:U(ye),Country:U(ye),ElectronicMailAddress:U(ye)}),Jr=W(Yr,{Value:B((function(e,t){return ye(e)}))}),Qr=W(Yr,{AllowedValues:U((function(e,t){return X({},Jr,e,t)}))}),ei=W(Yr,{Phone:U((function(e,t){return X({},oi,e,t)})),Address:U((function(e,t){return X({},Zr,e,t)}))}),ti=W(Yr,{HTTP:U((function(e,t){return X({},ni,e,t)}))}),ni=W(Yr,{Get:B((function(e,t){var n=qr(e);if(n)return X({href:n},ai,e,t)})),Post:void 0}),ri=W(Yr,{DCP:U((function(e,t){return X({},ti,e,t)}))}),ii=W(Yr,{Operation:function(e,t){var n=e.getAttribute("name"),r=X({},ri,e,t);r&&(t[t.length-1][n]=r)}}),oi=W(Yr,{Voice:U(ye),Facsimile:U(ye)}),ai=W(Yr,{Constraint:B((function(e,t){var n=e.getAttribute("name");if(n)return X({name:n},Qr,e,t)}))}),si=W(Yr,{IndividualName:U(ye),PositionName:U(ye),ContactInfo:U((function(e,t){return X({},ei,e,t)}))}),li=W(Yr,{Abstract:U(ye),AccessConstraints:U(ye),Fees:U(ye),Title:U(ye),ServiceTypeVersion:U(ye),ServiceType:U(ye)}),ci=W(Yr,{ProviderName:U(ye),ProviderSite:U(qr),ServiceContact:U((function(e,t){return X({},si,e,t)}))}),di=Kr;function ui(e,t,n,r,i,o){var a,s;void 0!==i?(a=i,s=void 0!==o?o:0):(a=[],s=0);for(var l=t;l<n;){var c=e[l++];a[s++]=e[l++],a[s++]=c;for(var d=2;d<r;++d)a[s++]=e[l++]}return a.length=s,a}
806var hi,pi=n(52),fi=n(66),mi=(hi=function(e,t){return(hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}hi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function gi(e){for(var t,n="";e>=32;)t=63+(32|31&e),n+=String.fromCharCode(t),e>>=5;return t=e+63,n+String.fromCharCode(t)}var vi,yi=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.dataProjection=Object(y.get)("EPSG:4326"),n.factor_=r.factor?r.factor:1e5,n.geometryLayout_=r.geometryLayout?r.geometryLayout:o.a.XY,n}return mi(t,e),t.prototype.readFeatureFromText=function(e,t){var n=this.readGeometryFromText(e,t);return new i.a(n)},t.prototype.readFeaturesFromText=function(e,t){return[this.readFeatureFromText(e,t)]},t.prototype.readGeometryFromText=function(e,t){var n=Object(pi.b)(this.geometryLayout_),r=function(e,t,n){var r,i=n||1e5,o=new Array(t);for(r=0;r<t;++r)o[r]=0;for(var a=function(e,t){for(var n=t||1e5,r=function(e){for(var t=function(e){for(var t=[],n=0,r=0,i=0,o=e.length;i<o;++i){var a=e.charCodeAt(i)-63;n|=(31&a)<<r,a<32?(t.push(n),n=0,r=0):r+=5}return t}(e),n=0,r=t.length;n<r;++n){var i=t[n];t[n]=1&i?~(i>>1):i>>1}return t}(e),i=0,o=r.length;i<o;++i)r[i]/=n;return r}(e,i),s=0,l=a.length;s<l;)for(r=0;r<t;++r,++s)o[r]+=a[s],a[s]=o[r];return a}(e,n,this.factor_);ui(r,0,r.length,n,r);var i=Object(fi.a)(r,0,r.length,n),o=new s.a(i,this.geometryLayout_);return Object(_.c)(o,!1,this.adaptOptions(t))},t.prototype.writeFeatureText=function(e,t){var n=e.getGeometry();return n?this.writeGeometryText(n,t):(Object(f.a)(!1,40),"")},t.prototype.writeFeaturesText=function(e,t){return this.writeFeatureText(e[0],t)},t.prototype.writeGeometryText=function(e,t){var n=(e=Object(_.c)(e,!0,this.adaptOptions(t))).getFlatCoordinates(),r=e.getStride();return ui(n,0,n.length,r,n),function(e,t,n){var r,i=n||1e5,o=new Array(t);for(r=0;r<t;++r)o[r]=0;for(var a=0,s=e.length;a<s;)for(r=0;r<t;++r,++a){var l=e[a],c=l-o[r];o[r]=l,e[a]=c}return function(e,t){for(var n=t||1e5,r=0,i=e.length;r<i;++r)e[r]=Math.round(e[r]*n);return function(e){for(var t=0,n=e.length;t<n;++t){var r=e[t];e[t]=r<0?~(r<<1):r<<1}return function(e){for(var t="",n=0,r=e.length;n<r;++n)t+=gi(e[n]);return t}(e)}(e)}(e,i)}(n,r,this.factor_)},t}(Pt.a),bi=(vi=function(e,t){return(vi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}vi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_i=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.layerName_=r.layerName,n.layers_=r.layers?r.layers:null,n.dataProjection=Object(y.get)(r.dataProjection?r.dataProjection:"EPSG:4326"),n}return bi(t,e),t.prototype.readFeaturesFromObject=function(e,t){if("Topology"==e.type){var n=e,r=void 0,i=null,o=null;n.transform&&(i=(r=n.transform).scale,o=r.translate);var a=n.arcs;r&&function(e,t,n){for(var r=0,i=e.length;r<i;++r)Ei(e[r],t,n)}(a,i,o);var s=[],l=n.objects,c=this.layerName_,d=void 0;for(var u in l)this.layers_&&-1==this.layers_.indexOf(u)||("GeometryCollection"===l[u].type?(d=l[u],s.push.apply(s,Ci(d,a,i,o,c,u,t))):(d=l[u],s.push(Si(d,a,i,o,c,u,t))));return s}return[]},t.prototype.readProjectionFromObject=function(e){return this.dataProjection},t}(a.a),wi={Point:function(e,t,n){var r=e.coordinates;return t&&n&&ki(r,t,n),new h.a(r)},LineString:function(e,t){var n=xi(e.arcs,t);return new s.a(n)},Polygon:function(e,t){for(var n=[],r=0,i=e.arcs.length;r<i;++r)n[r]=xi(e.arcs[r],t);return new p.a(n)},MultiPoint:function(e,t,n){var r=e.coordinates;if(t&&n)for(var i=0,o=r.length;i<o;++i)ki(r[i],t,n);return new d.a(r)},MultiLineString:function(e,t){for(var n=[],r=0,i=e.arcs.length;r<i;++r)n[r]=xi(e.arcs[r],t);return new c.a(n)},MultiPolygon:function(e,t){for(var n=[],r=0,i=e.arcs.length;r<i;++r){for(var o=e.arcs[r],a=[],s=0,l=o.length;s<l;++s)a[s]=xi(o[s],t);n[r]=a}return new u.a(n)}};function xi(e,t){for(var n,r=[],i=0,o=e.length;i<o;++i)if(n=e[i],i>0&&r.pop(),n>=0)for(var a=0,s=(l=t[n]).length;a<s;++a)r.push(l[a].slice(0));else{var l;
806for(a=(l=t[~n]).length-1;a>=0;--a)r.push(l[a].slice(0))}return r}function Ci(e,t,n,r,i,o,a){for(var s=e.geometries,l=[],c=0,d=s.length;c<d;++c)l[c]=Si(s[c],t,n,r,i,o,a);return l}function Si(e,t,n,r,o,a,s){var l=null,c=e.type;if(c){var d=wi[c];l="Point"===c||"MultiPoint"===c?d(e,n,r):d(e,t),l=Object(_.c)(l,!1,s)}var u=new i.a({geometry:l});void 0!==e.id&&u.setId(e.id);var h=e.properties;return o&&(h||(h={}),h[o]=a),h&&u.setProperties(h,!0),u}function Ei(e,t,n){for(var r=0,i=0,o=0,a=e.length;o<a;++o){var s=e[o];r+=s[0],i+=s[1],s[0]=r,s[1]=i,ki(s,t,n)}}function ki(e,t,n){e[0]=e[0]*t[0]+n[0],e[1]=e[1]*t[1]+n[1]}var Ti,Oi=_i,$i=(Ti=function(e,t){return(Ti=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ti(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Pi=function(e){function t(t){var n=this,r=t||{};return(n=e.call(this,r)||this).schemaLocation=r.schemaLocation?r.schemaLocation:n.namespace+" http://schemas.opengis.net/gml/3.2.1/gml.xsd",n}return $i(t,e),t}(Le);Pi.prototype.namespace="http://www.opengis.net/gml/3.2",Pi.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml/3.2":{pos:N(Le.prototype.readFlatPos),posList:N(Le.prototype.readFlatPosList),coordinates:N(Oe.prototype.readFlatCoordinates)}},Pi.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml/3.2":{interior:Le.prototype.interiorParser,exterior:Le.prototype.exteriorParser}},Pi.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml/3.2":{Point:N(ce.prototype.readPoint),MultiPoint:N(ce.prototype.readMultiPoint),LineString:N(ce.prototype.readLineString),MultiLineString:N(ce.prototype.readMultiLineString),LinearRing:N(ce.prototype.readLinearRing),Polygon:N(ce.prototype.readPolygon),MultiPolygon:N(ce.prototype.readMultiPolygon),Surface:N(Pi.prototype.readSurface),MultiSurface:N(Le.prototype.readMultiSurface),Curve:N(Pi.prototype.readCurve),MultiCurve:N(Le.prototype.readMultiCurve),Envelope:N(Pi.prototype.readEnvelope)}},Pi.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml/3.2":{curveMember:F(Le.prototype.curveMemberParser),curveMembers:F(Le.prototype.curveMemberParser)}},Pi.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{surfaceMember:F(Le.prototype.surfaceMemberParser),surfaceMembers:F(Le.prototype.surfaceMemberParser)}},Pi.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:F(ce.prototype.readLineString),Curve:F(Le.prototype.readCurve)}},Pi.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:F(ce.prototype.readPolygon),Surface:F(Le.prototype.readSurface)}},Pi.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{patches:N(Le.prototype.readPatch)}},Pi.prototype.CURVE_PARSERS={"http://www.opengis.net/gml/3.2":{segments:N(Le.prototype.readSegment)}},Pi.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml/3.2":{lowerCorner:F(Le.prototype.readFlatPosList),upperCorner:F(Le.prototype.readFlatPosList)}},Pi.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml/3.2":{PolygonPatch:N(Le.prototype.readPolygonPatch)}},Pi.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml/3.2":{LineStringSegment:D(Le.prototype.readLineStringSegment)}},Pi.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml/3.2":{pointMember:F(ce.prototype.pointMemberParser),pointMembers:F(ce.prototype.pointMemberParser)}},Pi.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml/3.2":{lineStringMember:F(ce.prototype.lineStringMemberParser),lineStringMembers:F(ce.prototype.lineStringMemberParser)}},Pi.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml/3.2":{polygonMember:F(ce.prototype.polygonMemberParser),polygonMembers:F(ce.prototype.polygonMemberParser)}},Pi.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Point:F(ce.prototype.readFlatCoordinatesFromNode)}},Pi.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:F(ce.prototype.readLineString)}},Pi.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:F(ce.prototype.readPolygon)}},Pi.prototype.RING_PARSERS={"http://www.opengis.net/gml/3.2":{LinearRing:N(ce.prototype.readFlatLinearRing),Ring:N(Pi.prototype.readFlatCurveRing)}},Pi.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml/3.2":{exterior:z(Le.prototype.writeRing),interior:z(Le.prototype.writeRing)}},Pi.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lowerCorner:z(xe),upperCorner:z(xe)}},Pi.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{surfaceMember:z(Le.prototype.writeSurfaceOrPolygonMember),polygonMember:z(Le.prototype.writeSurfaceOrPolygonMember)}},Pi.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{pointMember:z(Le.prototype.writePointMember)}},Pi.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lineStringMember:z(Le.prototype.writeLineStringOrCurveMember),curveMember:z(Le.prototype.writeLineStringOrCurveMember)}},Pi.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml/3.2":{Curve:z(Le.prototype.writeCurveOrLineString),MultiCurve:z(Le.prototype.writeMultiCurveOrLineString),Point:z(Pi.prototype.writePoint),MultiPoint:z(Le.prototype.writeMultiPoint),LineString:z(Le.prototype.writeCurveOrLineString),MultiLineString:z(Le.prototype.writeMultiCurveOrLineString),LinearRing:z(Le.prototype.writeLinearRing),Polygon:z(Le.prototype.writeSurfaceOrPolygon),MultiPolygon:z(Le.prototype.writeMultiSurfaceOrPolygon),Surface:z(Le.prototype.writeSurfaceOrPolygon),MultiSurface:z(Le.prototype.writeMultiSurfaceOrPolygon),Envelope:z(Le.prototype.writeEnvelope)}};var Ii,Li,Ai,Mi,ji,Ri,Di,Fi,Ni,Bi,Ui,zi,Gi,Vi,qi,Hi,Wi,Yi,Xi,Ki,Zi,Ji,Qi,eo,to=Pi,no=function(){function e(e){this.tagName_=e}return e.prototype.getTagName=function(){return this.tagName_},e}
806(),ro=(eo=function(e,t){return(eo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}eo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),io=function(e){function t(t,n){var r=e.call(this,t)||this;return r.conditions=n,Object(f.a)(r.conditions.length>=2,57),r}return ro(t,e),t}(no),oo=(Qi=function(e,t){return(Qi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Qi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ao=function(e){function t(t){return e.call(this,"And",Array.prototype.slice.call(arguments))||this}return oo(t,e),t}(io),so=(Ji=function(e,t){return(Ji=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ji(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),lo=function(e){function t(t,n,r){var i=e.call(this,"BBOX")||this;if(i.geometryName=t,i.extent=n,4!==n.length)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");return i.srsName=r,i}return so(t,e),t}(no),co=(Zi=function(e,t){return(Zi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Zi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),uo=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.geometryName=n||"the_geom",o.geometry=r,o.srsName=i,o}return co(t,e),t}(no),ho=(Ki=function(e,t){return(Ki=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ki(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),po=(function(e){ho((function(t,n,r){return e.call(this,"Contains",t,n,r)||this}),e)}(uo),Xi=function(e,t){return(Xi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Xi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),fo=(function(e){po((function(t,n,r,i,o){var a=e.call(this,"DWithin",t,n,o)||this;return a.distance=r,a.unit=i,a}),e)}(uo),Yi=function(e,t){return(Yi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Yi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),mo=(function(e){fo((function(t,n,r){return e.call(this,"Disjoint",t,n,r)||this}),e)}
806(uo),Wi=function(e,t){return(Wi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Wi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),go=function(e){function t(t,n){var r=e.call(this,t)||this;return r.propertyName=n,r}return mo(t,e),t}(no),vo=(Hi=function(e,t){return(Hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Hi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),yo=(function(e){vo((function(t,n,r){var i=e.call(this,"During",t)||this;return i.begin=n,i.end=r,i}),e)}
806(go),qi=function(e,t){return(qi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}qi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),bo=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.expression=r,o.matchCase=i,o}return yo(t,e),t}(go),_o=(Vi=function(e,t){return(Vi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Vi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),wo=(function(e){_o((function(t,n,r){return e.call(this,"PropertyIsEqualTo",t,n,r)||this}),e)}(bo),Gi=function(e,t){return(Gi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Gi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),xo=(function(e){wo((function(t,n){return e.call(this,"PropertyIsGreaterThan",t,n)||this}),e)}(bo),zi=function(e,t){return(zi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}zi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Co=(function(e){xo((function(t,n){return e.call(this,"PropertyIsGreaterThanOrEqualTo",t,n)||this}),e)}(bo),Ui=function(e,t){return(Ui=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ui(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),So=(function(e){Co((function(t,n,r){return e.call(this,"Intersects",t,n,r)||this}),e)}(uo),Bi=function(e,t){return(Bi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Bi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Eo=(function(e){So((function(t,n,r){var i=e.call(this,"PropertyIsBetween",t)||this;return i.lowerBoundary=n,i.upperBoundary=r,i}),e)}(go),Ni=function(e,t){return(Ni=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ni(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ko=(function(e){Eo((function(t,n,r,i,o,a){var s=e.call(this,"PropertyIsLike",t)||this;return s.pattern=n,s.wildCard=void 0!==r?r:"*",s.singleChar=void 0!==i?i:".",s.escapeChar=void 0!==o?o:"!",s.matchCase=a,s}),e)}(go),Fi=function(e,t){return(Fi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Fi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),To=(function(e){ko((function(t){return e.call(this,"PropertyIsNull",t)||this}),e)}
806(go),Di=function(e,t){return(Di=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Di(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Oo=(function(e){To((function(t,n){return e.call(this,"PropertyIsLessThan",t,n)||this}),e)}(bo),Ri=function(e,t){return(Ri=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ri(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),$o=(function(e){Oo((function(t,n){return e.call(this,"PropertyIsLessThanOrEqualTo",t,n)||this}),e)}(bo),ji=function(e,t){return(ji=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ji(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Po=(function(e){$o((function(t){var n=e.call(this,"Not")||this;return n.condition=t,n}),e)}(no),Mi=function(e,t){return(Mi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Mi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Io=(function(e){Po((function(t,n,r){return e.call(this,"PropertyIsNotEqualTo",t,n,r)||this}),e)}(bo),Ai=function(e,t){return(Ai=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ai(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Lo=(function(e){Io((function(t){return e.call(this,"Or",Array.prototype.slice.call(arguments))||this}),e)}(io),Li=function(e,t){return(Li=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Li(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ao=(function(e){Lo((function(t){var n=e.call(this,"ResourceId")||this;return n.rid=t,n}),e)}(no),Ii=function(e,t){return(Ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ii(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){Ao((function(t,n,r){return e.call(this,"Within",t,n,r)||this}),e)}(uo);var Mo,jo=(Mo=function(e,t){return(Mo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Mo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}
806),Ro={"http://www.opengis.net/gml":{boundedBy:U(ce.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:F(ce.prototype.readFeaturesInternal)}},Do={"http://www.opengis.net/wfs":{totalInserted:U(ge),totalUpdated:U(ge),totalDeleted:U(ge)},"http://www.opengis.net/wfs/2.0":{totalInserted:U(ge),totalUpdated:U(ge),totalDeleted:U(ge)}},Fo={"http://www.opengis.net/wfs":{TransactionSummary:U(Xo,"transactionSummary"),InsertResults:U(Qo,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:U(Xo,"transactionSummary"),InsertResults:U(Qo,"insertIds")}},No={"http://www.opengis.net/wfs":{PropertyName:z(xe)},"http://www.opengis.net/wfs/2.0":{PropertyName:z(xe)}},Bo={"http://www.opengis.net/wfs":{Insert:z(ea),Update:z(ia),Delete:z(ra),Property:z(oa),Native:z(aa)},"http://www.opengis.net/wfs/2.0":{Insert:z(ea),Update:z(ia),Delete:z(ra),Property:z(oa),Native:z(aa)}},Uo="http://www.w3.org/2000/xmlns/",zo={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},Go={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},Vo={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},qo={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},Ho={"2.0.0":to,"1.1.0":Le,"1.0.0":Oe},Wo=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.version_=r.version?r.version:"1.1.0",n.featureType_=r.featureType,n.featureNS_=r.featureNS,n.gmlFormat_=r.gmlFormat?r.gmlFormat:new Ho[n.version_],n.schemaLocation_=r.schemaLocation?r.schemaLocation:qo[n.version_],n}return jo(t,e),t.prototype.getFeatureType=function(){return this.featureType_},t.prototype.setFeatureType=function(e){this.featureType_=e},t.prototype.readFeaturesFromNode=function(e,t){var n={node:e};Object(m.a)(n,{featureType:this.featureType_,featureNS:this.featureNS_}),Object(m.a)(n,this.getReadOptions(e,t||{}));var r=[n],i=X([],"2.0.0"===this.version_?Ro:this.gmlFormat_.FEATURE_COLLECTION_PARSERS,e,r,this.gmlFormat_);return i||(i=[]),i},t.prototype.readTransactionResponse=function(e){if(e){if("string"==typeof e){var t=R(e);return this.readTransactionResponseFromDocument(t)}return j(e)?this.readTransactionResponseFromDocument(e):this.readTransactionResponseFromNode(e)}},t.prototype.readFeatureCollectionMetadata=function(e){if(e){if("string"==typeof e){var t=R(e);return this.readFeatureCollectionMetadataFromDocument(t)}return j(e)?this.readFeatureCollectionMetadataFromDocument(e):this.readFeatureCollectionMetadataFromNode(e)}},t.prototype.readFeatureCollectionMetadataFromDocument=function(e){for(var t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(t)},t.prototype.readFeatureCollectionMetadataFromNode=function(e){var t={},n=ve(e.getAttribute("numberOfFeatures"));return t.numberOfFeatures=n,X(t,Ro,e,[],this.gmlFormat_)},t.prototype.readTransactionResponseFromDocument=function(e){for(var t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(t)},t.prototype.readTransactionResponseFromNode=function(e){return X({},Fo,e,[])},t.prototype.writeGetFeature=function(e){var t=this,n=A(Go[this.version_],"GetFeature");n.setAttribute("service","WFS"),n.setAttribute("version",this.version_),e.handle&&n.setAttribute("handle",e.handle),e.outputFormat&&n.setAttribute("outputFormat",e.outputFormat),void 0!==e.maxFeatures&&n.setAttribute("maxFeatures",String(e.maxFeatures)),e.resultType&&n.setAttribute("resultType",e.resultType),void 0!==e.startIndex&&n.setAttribute("startIndex",String(e.startIndex)),void 0!==e.count&&n.setAttribute("count",String(e.count)),void 0!==e.viewParams&&n.setAttribute("viewParams",e.viewParams),n.setAttributeNS(L,"xsi:schemaLocation",this.schemaLocation_);
806var r={node:n};if(Object(m.a)(r,{version:this.version_,srsName:e.srsName,featureNS:e.featureNS?e.featureNS:this.featureNS_,featurePrefix:e.featurePrefix,propertyNames:e.propertyNames?e.propertyNames:[]}),Object(f.a)(Array.isArray(e.featureTypes),11),"string"==typeof e.featureTypes[0]){var i=e.filter;e.bbox&&(Object(f.a)(e.geometryName,12),i=this.combineBboxAndFilter(e.geometryName,e.bbox,e.srsName,i)),Object(m.a)(r,{geometryName:e.geometryName,filter:i}),Ca(n,e.featureTypes,[r])}else e.featureTypes.forEach((function(i){var o=t.combineBboxAndFilter(i.geometryName,i.bbox,e.srsName,e.filter);Object(m.a)(r,{geometryName:i.geometryName,filter:o}),Ca(n,[i.name],[r])}));return n},t.prototype.combineBboxAndFilter=function(e,t,n,r){var i=function(e,t,n){return new lo(e,t,n)}(e,t,n);return r?function(e){var t=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(ao,t))}(r,i):i},t.prototype.writeTransaction=function(e,t,n,r){var i,o=[],a=r.version?r.version:this.version_,s=A(Go[a],"Transaction");s.setAttribute("service","WFS"),s.setAttribute("version",a),r&&(i=r.gmlOptions?r.gmlOptions:{},r.handle&&s.setAttribute("handle",r.handle)),s.setAttributeNS(L,"xsi:schemaLocation",qo[a]);var l=function(e,t,n,r){var i,o=r.featurePrefix?r.featurePrefix:"feature";return"1.0.0"===n?i=2:"1.1.0"===n?i=3:"2.0.0"===n&&(i=3.2),Object(m.a)({node:e},{version:n,featureNS:r.featureNS,featureType:r.featureType,featurePrefix:o,gmlVersion:i,hasZ:r.hasZ,srsName:r.srsName},t)}(s,i,a,r);return e&&Yo("Insert",e,o,l),t&&Yo("Update",t,o,l),n&&Yo("Delete",n,o,l),r.nativeElements&&Yo("Native",r.nativeElements,o,l),s},t.prototype.readProjectionFromDocument=function(e){for(var t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(t);return null},t.prototype.readProjectionFromNode=function(e){if(e.firstElementChild&&e.firstElementChild.firstElementChild)for(var t=(e=e.firstElementChild.firstElementChild).firstElementChild;t;t=t.nextElementSibling)if(0!==t.childNodes.length&&(1!==t.childNodes.length||3!==t.firstChild.nodeType)){var n=[{}];return this.gmlFormat_.readGeometryElement(t,n),Object(y.get)(n.pop().srsName)}return null},t}(ie);function Yo(e,t,n,r){Z(r,Bo,V(e),t,n)}function Xo(e,t){return X({},Do,e,t)}var Ko={"http://www.opengis.net/ogc":{FeatureId:F((function(e,t){return e.getAttribute("fid")}))},"http://www.opengis.net/ogc/1.1":{FeatureId:F((function(e,t){return e.getAttribute("fid")}))}};function Zo(e,t){Y(Ko,e,t)}var Jo={"http://www.opengis.net/wfs":{Feature:Zo},"http://www.opengis.net/wfs/2.0":{Feature:Zo}};function Qo(e,t){return X([],Jo,e,t)}function ea(e,t,n){var r=n[n.length-1],i=r.featureType,o=r.featureNS,a=r.gmlVersion,s=A(o,i);e.appendChild(s),2===a?Oe.prototype.writeFeatureElement(s,t,n):3===a?Le.prototype.writeFeatureElement(s,t,n):to.prototype.writeFeatureElement(s,t,n)}function ta(e,t,n){var r=n[n.length-1].version,i=zo[r],o=A(i,"Filter"),a=A(i,"FeatureId");o.appendChild(a),a.setAttribute("fid",t),e.appendChild(o)}function na(e,t){var n=(e=e||"feature")+":";return 0===t.indexOf(n)?t:n+t}function ra(e,t,n){var r=n[n.length-1];Object(f.a)(void 0!==t.getId(),26);var i=r.featureType,o=r.featurePrefix,a=r.featureNS,s=na(o,i);e.setAttribute("typeName",s),e.setAttributeNS(Uo,"xmlns:"+o,a);var l=t.getId();void 0!==l&&ta(e,l,n)}function ia(e,t,n){var r=n[n.length-1];Object(f.a)(void 0!==t.getId(),27);var i=r.version,o=r.featureType,a=r.featurePrefix,s=r.featureNS,l=na(a,o),c=t.getGeometryName();e.setAttribute("typeName",l),e.setAttributeNS(Uo,"xmlns:"+a,s);var d=t.getId();if(void 0!==d){for(var u=t.getKeys(),h=[],p=0,m=u.length;p<m;p++){var g=t.get(u[p]);if(void 0!==g){var v=u[p];g&&"function"==typeof g.getSimplifiedGeometry&&(v=c),h.push({name:v,value:g})}}Z({version:i,gmlVersion:r.gmlVersion,node:e,hasZ:r.hasZ,srsName:r.srsName},Bo,V("Property"),h,n),ta(e,d,n)}}function oa(e,t,n){var r=n[n.length-1],i=r.version,o=Go[i],a=A(o,"Name"),s=r.gmlVersion;if(e.appendChild(a),xe(a,t.name),void 0!==t.value&&null!==t.value){var l=A(o,"Value");e.appendChild(l),t.value&&"function"==typeof t.value.getSimplifiedGeometry?2===s?Oe.prototype.writeGeometryElement(l,t.value,n):3===s?Le.prototype.writeGeometryElement(l,t.value,n):to.prototype.writeGeometryElement(l,t.value,n):xe(l,t.value)}}
806function aa(e,t,n){t.vendorId&&e.setAttribute("vendorId",t.vendorId),void 0!==t.safeToIgnore&&e.setAttribute("safeToIgnore",String(t.safeToIgnore)),void 0!==t.value&&xe(e,t.value)}var sa={"http://www.opengis.net/wfs":{Query:z(la)},"http://www.opengis.net/wfs/2.0":{Query:z(la)},"http://www.opengis.net/ogc":{During:z(ha),And:z(pa),Or:z(pa),Not:z(fa),BBOX:z(ca),Contains:z(da),Intersects:z(da),Within:z(da),DWithin:z(ua),PropertyIsEqualTo:z(ma),PropertyIsNotEqualTo:z(ma),PropertyIsLessThan:z(ma),PropertyIsLessThanOrEqualTo:z(ma),PropertyIsGreaterThan:z(ma),PropertyIsGreaterThanOrEqualTo:z(ma),PropertyIsNull:z(ga),PropertyIsBetween:z(va),PropertyIsLike:z(ya)},"http://www.opengis.net/fes/2.0":{During:z(ha),And:z(pa),Or:z(pa),Not:z(fa),BBOX:z(ca),Contains:z(da),Disjoint:z(da),Intersects:z(da),ResourceId:z((function(e,t,n){e.setAttribute("rid",t.rid)})),Within:z(da),DWithin:z(ua),PropertyIsEqualTo:z(ma),PropertyIsNotEqualTo:z(ma),PropertyIsLessThan:z(ma),PropertyIsLessThanOrEqualTo:z(ma),PropertyIsGreaterThan:z(ma),PropertyIsGreaterThanOrEqualTo:z(ma),PropertyIsNull:z(ga),PropertyIsBetween:z(va),PropertyIsLike:z(ya)}};function la(e,t,n){var r,i,o=n[n.length-1],a=o.version,s=o.featurePrefix,l=o.featureNS,c=o.propertyNames,d=o.srsName;r=s?na(s,t):t,i="2.0.0"===a?"typeNames":"typeName",e.setAttribute(i,r),d&&e.setAttribute("srsName",d),l&&e.setAttributeNS(Uo,"xmlns:"+s,l);var u=Object(m.a)({},o);u.node=e,Z(u,No,V("PropertyName"),c,n);var h=o.filter;if(h){var p=A(Sa(a),"Filter");e.appendChild(p),function(e,t,n){var r=n[n.length-1],i={node:e};Object(m.a)(i,{context:r}),Z(i,sa,V(t.getTagName()),[t],n)}(p,h,n)}}function ca(e,t,n){var r=n[n.length-1],i=r.context.version;r.srsName=t.srsName;var o=Ho[i];wa(i,e,t.geometryName),o.prototype.writeGeometryElement(e,t.extent,n)}function da(e,t,n){var r=n[n.length-1],i=r.context.version;r.srsName=t.srsName;var o=Ho[i];wa(i,e,t.geometryName),o.prototype.writeGeometryElement(e,t.geometry,n)}function ua(e,t,n){var r=n[n.length-1].context.version;da(e,t,n);var i=A(Sa(r),"Distance");xe(i,t.distance.toString()),"2.0.0"===r?i.setAttribute("uom",t.unit):i.setAttribute("units",t.unit),e.appendChild(i)}function ha(e,t,n){var r=n[n.length-1].context.version;ba(Vo[r],"ValueReference",e,t.propertyName);var i=A(ae,"TimePeriod");e.appendChild(i);var o=A(ae,"begin");i.appendChild(o),xa(o,t.begin);var a=A(ae,"end");i.appendChild(a),xa(a,t.end)}function pa(e,t,n){var r=n[n.length-1].context,i={node:e};Object(m.a)(i,{context:r});for(var o=t.conditions,a=0,s=o.length;a<s;++a){var l=o[a];Z(i,sa,V(l.getTagName()),[l],n)}}function fa(e,t,n){var r=n[n.length-1].context,i={node:e};Object(m.a)(i,{context:r});var o=t.condition;Z(i,sa,V(o.getTagName()),[o],n)}function ma(e,t,n){var r=n[n.length-1].context.version;void 0!==t.matchCase&&e.setAttribute("matchCase",t.matchCase.toString()),wa(r,e,t.propertyName),_a(r,e,""+t.expression)}function ga(e,t,n){wa(n[n.length-1].context.version,e,t.propertyName)}function va(e,t,n){var r=n[n.length-1].context.version,i=Sa(r);wa(r,e,t.propertyName);var o=A(i,"LowerBoundary");e.appendChild(o),_a(r,o,""+t.lowerBoundary);var a=A(i,"UpperBoundary");e.appendChild(a),_a(r,a,""+t.upperBoundary)}function ya(e,t,n){var r=n[n.length-1].context.version;e.setAttribute("wildCard",t.wildCard),e.setAttribute("singleChar",t.singleChar),e.setAttribute("escapeChar",t.escapeChar),void 0!==t.matchCase&&e.setAttribute("matchCase",t.matchCase.toString()),wa(r,e,t.propertyName),_a(r,e,""+t.pattern)}function ba(e,t,n,r){var i=A(e,t);xe(i,r),n.appendChild(i)}function _a(e,t,n){ba(Sa(e),"Literal",t,n)}function wa(e,t,n){"2.0.0"===e?ba(Vo[e],"ValueReference",t,n):ba(zo[e],"PropertyName",t,n)}function xa(e,t){var n=A(ae,"TimeInstant");e.appendChild(n);var r=A(ae,"timePosition");n.appendChild(r),xe(r,t)}function Ca(e,t,n){var r=n[n.length-1],i=Object(m.a)({},r);i.node=e,Z(i,sa,V("Query"),t,n)}function Sa(e){return"2.0.0"===e?Vo[e]:zo[e]}var Ea,ka=Wo,Ta=(Ea=function(e,t){return(Ea=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ea(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Oa=function(){function e(e){this.view_=e,this.pos_=0,this.initialized_=!1,this.isLittleEndian_=!1,this.hasZ_=!1,this.hasM_=!1,this.srid_=null,this.layout_=o.a.XY}return e.prototype.readUint8=function(){return this.view_.getUint8(this.pos_++)},e.prototype.readUint32=function(e){return this.view_.getUint32((this.pos_+=4)-4,void 0!==e?e:this.isLittleEndian_)},e.prototype.readDouble=function(e){return this.view_.getFloat64((this.pos_+=8)-8,void 0!==e?e:this.isLittleEndian_)},e.prototype.readPoint=function(){var e=[];return e.push(this.readDouble()),e.push(this.readDouble()),this.hasZ_&&e.push(this.readDouble()),this.hasM_&&e.push(this.readDouble()),e},e.prototype.readLineString=function(){for(var e=this.readUint32(),t=[],n=0;n<e;n++)t.push(this.readPoint());return t},e.prototype.readPolygon=function(){for(var e=this.readUint32(),t=[],n=0;n<e;n++)t.push(this.readLineString());return t},e.prototype.readWkbHeader=function(e){var t=this.readUint8()>0,n=this.readUint32(t),r=Math.floor((268435455&n)/1e3),i=Boolean(2147483648&n)||1===r||3===r,o=Boolean(1073741824&n)||2===r||3===r,a=Boolean(536870912&n),s=(268435455&n)%1e3,l=["XY",i?"Z":"",o?"M":""].join(""),c=a?this.readUint32(t):null;if(void 0!==e&&e!==s)throw new Error("Unexpected WKB geometry type "+s);if(this.initialized_){if(this.isLittleEndian_!==t)throw new Error("Inconsistent endian");if(this.layout_!==l)throw new Error("Inconsistent geometry layout");if(c&&this.srid_!==c)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=t,this.hasZ_=i,this.hasM_=o,this.layout_=l,this.srid_=c,this.initialized_=!0;return s},e.prototype.readWkbPayload=function(e){switch(e){case 1:return this.readPoint();case 2:return this.readLineString();case 3:case 17:return this.readPolygon();case 4:return this.readMultiPoint();case 5:return this.readMultiLineString();case 6:case 15:case 16:return this.readMultiPolygon();case 7:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+e+" is found")}},e.prototype.readWkbBlock=function(e){return this.readWkbPayload(this.readWkbHeader(e))},e.prototype.readWkbCollection=function(e,t){for(var n=this.readUint32(),r=[],i=0;i<n;i++){var o=e.call(this,t);o&&r.push(o)}return r},e.prototype.readMultiPoint=function(){return this.readWkbCollection(this.readWkbBlock,1)},e.prototype.readMultiLineString=function(){return this.readWkbCollection(this.readWkbBlock,2)},e.prototype.readMultiPolygon=function(){return this.readWkbCollection(this.readWkbBlock,3)},e.prototype.readGeometryCollection=function(){return this.readWkbCollection(this.readGeometry)},e.prototype.readGeometry=function(){var e=this.readWkbHeader(),t=this.readWkbPayload(e);
806switch(e){case 1:return new h.a(t,this.layout_);case 2:return new s.a(t,this.layout_);case 3:case 17:return new p.a(t,this.layout_);case 4:return new d.a(t,this.layout_);case 5:return new c.a(t,this.layout_);case 6:case 15:case 16:return new u.a(t,this.layout_);case 7:return new Bt.a(t);default:return null}},e.prototype.getSrid=function(){return this.srid_},e}(),$a=function(){function e(e){e=e||{},this.layout_=e.layout,this.isLittleEndian_=!1!==e.littleEndian,this.isEWKB_=!1!==e.ewkb,this.writeQueue_=[],this.nodata_=Object(m.a)({X:0,Y:0,Z:0,M:0},e.nodata)}return e.prototype.writeUint8=function(e){this.writeQueue_.push([1,e])},e.prototype.writeUint32=function(e){this.writeQueue_.push([4,e])},e.prototype.writeDouble=function(e){this.writeQueue_.push([8,e])},e.prototype.writePoint=function(e,t){for(var n=m.a.apply(null,t.split("").map((function(t,n){var r;return(r={})[t]=e[n],r}))),r=0,i=this.layout_;r<i.length;r++){var o=i[r];this.writeDouble(o in n?n[o]:this.nodata_[o])}},e.prototype.writeLineString=function(e,t){this.writeUint32(e.length);for(var n=0;n<e.length;n++)this.writePoint(e[n],t)},e.prototype.writePolygon=function(e,t){this.writeUint32(e.length);for(var n=0;n<e.length;n++)this.writeLineString(e[n],t)},e.prototype.writeWkbHeader=function(e,t){e%=1e3,this.layout_.indexOf("Z")>=0&&(e+=this.isEWKB_?2147483648:1e3),this.layout_.indexOf("M")>=0&&(e+=this.isEWKB_?1073741824:2e3),this.isEWKB_&&Number.isInteger(t)&&(e|=536870912),this.writeUint8(this.isLittleEndian_?1:0),this.writeUint32(e),this.isEWKB_&&Number.isInteger(t)&&this.writeUint32(t)},e.prototype.writeMultiPoint=function(e,t){this.writeUint32(e.length);for(var n=0;n<e.length;n++)this.writeWkbHeader(1),this.writePoint(e[n],t)},e.prototype.writeMultiLineString=function(e,t){this.writeUint32(e.length);for(var n=0;n<e.length;n++)this.writeWkbHeader(2),this.writeLineString(e[n],t)},e.prototype.writeMultiPolygon=function(e,t){this.writeUint32(e.length);for(var n=0;n<e.length;n++)this.writeWkbHeader(3),this.writePolygon(e[n],t)},e.prototype.writeGeometryCollection=function(e){this.writeUint32(e.length);for(var t=0;t<e.length;t++)this.writeGeometry(e[t])},e.prototype.findMinimumLayout=function(e,t){var n,r;if(void 0===t&&(t=o.a.XYZM),e instanceof pi.a)return(n=e.getLayout())===(r=t)?n:n===o.a.XYZM?r:r===o.a.XYZM?n:o.a.XY;if(e instanceof Bt.a)for(var i=e.getGeometriesArray(),a=0;a<i.length&&t!==o.a.XY;a++)t=this.findMinimumLayout(i[a],t);return t},e.prototype.writeGeometry=function(e,t){var n={Point:1,LineString:2,Polygon:3,MultiPoint:4,MultiLineString:5,MultiPolygon:6,GeometryCollection:7},r=e.getType(),i=n[r];if(!i)throw new Error("GeometryType "+r+" is not supported");this.layout_||(this.layout_=this.findMinimumLayout(e)),this.writeWkbHeader(i,t),e instanceof pi.a?{Point:this.writePoint,LineString:this.writeLineString,Polygon:this.writePolygon,MultiPoint:this.writeMultiPoint,MultiLineString:this.writeMultiLineString,MultiPolygon:this.writeMultiPolygon}[r].call(this,e.getCoordinates(),e.getLayout()):e instanceof Bt.a&&this.writeGeometryCollection(e.getGeometriesArray())},e.prototype.getBuffer=function(){var e=this,t=this.writeQueue_.reduce((function(e,t){return e+t[0]}),0),n=new ArrayBuffer(t),r=new DataView(n),i=0;return this.writeQueue_.forEach((function(t){switch(t[0]){case 1:r.setUint8(i,t[1]);break;case 4:r.setUint32(i,t[1],e.isLittleEndian_);break;case 8:r.setFloat64(i,t[1],e.isLittleEndian_)}i+=t[0]})),n},e}();function Pa(e){return"string"==typeof e?function(e){for(var t=new Uint8Array(e.length/2),n=0;n<e.length/2;n++)t[n]=parseInt(e.substr(2*n,2),16);return new DataView(t.buffer)}(e):ArrayBuffer.isView(e)?e instanceof DataView?e:new DataView(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new DataView(e):null}var Ia,La=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.splitCollection=Boolean(r.splitCollection),n.viewCache_=null,n.hex_=!1!==r.hex,n.littleEndian_=!1!==r.littleEndian,n.ewkb_=!1!==r.ewkb,n.layout_=r.geometryLayout,n.nodataZ_=r.nodataZ||0,n.nodataM_=r.nodataM||0,n.srid_=r.srid,n}return Ta(t,e),t.prototype.getType=function(){return this.hex_?"text":"arraybuffer"},t.prototype.readFeature=function(e,t){return new i.a({geometry:this.readGeometry(e,t)})},t.prototype.readFeatures=function(e,t){var n=this.readGeometry(e,t);return(this.splitCollection&&n instanceof Bt.a?n.getGeometriesArray():[n]).map((function(e){return new i.a({geometry:e})}))},t.prototype.readGeometry=function(e,t){var n=Pa(e);if(!n)return null;var r=new Oa(n).readGeometry();this.viewCache_=n;var i=this.getReadOptions(e,t);return this.viewCache_=null,Object(_.c)(r,!1,i)},t.prototype.readProjection=function(e){var t=this.viewCache_||Pa(e);if(t){var n=new Oa(t);return n.readWkbHeader(),n.getSrid()&&Object(y.get)("EPSG:"+n.getSrid())||void 0}},t.prototype.writeFeature=function(e,t){return this.writeGeometry(e.getGeometry(),t)},t.prototype.writeFeatures=function(e,t){return this.writeGeometry(new Bt.a(e.map((function(e){return e.getGeometry()}))),t)},t.prototype.writeGeometry=function(e,t){var n=this.adaptOptions(t),r=new $a({layout:this.layout_,littleEndian:this.littleEndian_,ewkb:this.ewkb_,nodata:{Z:this.nodataZ_,M:this.nodataM_}}),i=Number.isInteger(this.srid_)?Number(this.srid_):null;if(!1!==this.srid_&&!Number.isInteger(this.srid_)){var o=n.dataProjection&&Object(y.get)(n.dataProjection);if(o){var a=o.getCode();0===a.indexOf("EPSG:")&&(i=Number(a.substring(5)))}}r.writeGeometry(Object(_.c)(e,!0,n),i);var s=r.getBuffer();return this.hex_?function(e){var t=new Uint8Array(e);return Array.from(t.values()).map((function(e){return(e<16?"0":"")+Number(e).toString(16).toUpperCase()})).join("")}(s):s},t}
806(_.a),Aa=n(243),Ma=(Ia=function(e,t){return(Ia=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ia(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ja=[null,"http://www.opengis.net/wms"],Ra=W(ja,{Service:U((function(e,t){return X({},Na,e,t)})),Capability:U((function(e,t){return X({},Da,e,t)}))}),Da=W(ja,{Request:U((function(e,t){return X({},Wa,e,t)})),Exception:U((function(e,t){return X([],Ga,e,t)})),Layer:U((function(e,t){var n=X({},Va,e,t);return void 0===n.Layer?Object.assign(n,es(e,t)):n}))}),Fa=function(e){function t(){var t=e.call(this)||this;return t.version=void 0,t}return Ma(t,e),t.prototype.readFromNode=function(e){return this.version=e.getAttribute("version").trim(),X({version:this.version},Ra,e,[])||null},t}(Vr),Na=W(ja,{Name:U(ye),Title:U(ye),Abstract:U(ye),KeywordList:U(is),OnlineResource:U(qr),ContactInformation:U((function(e,t){return X({},Ba,e,t)})),Fees:U(ye),AccessConstraints:U(ye),LayerLimit:U(ge),MaxWidth:U(ge),MaxHeight:U(ge)}),Ba=W(ja,{ContactPersonPrimary:U((function(e,t){return X({},Ua,e,t)})),ContactPosition:U(ye),ContactAddress:U((function(e,t){return X({},za,e,t)})),ContactVoiceTelephone:U(ye),ContactFacsimileTelephone:U(ye),ContactElectronicMailAddress:U(ye)}),Ua=W(ja,{ContactPerson:U(ye),ContactOrganization:U(ye)}),za=W(ja,{AddressType:U(ye),Address:U(ye),City:U(ye),StateOrProvince:U(ye),PostCode:U(ye),Country:U(ye)}),Ga=W(ja,{Format:F(ye)}),Va=W(ja,{Name:U(ye),Title:U(ye),Abstract:U(ye),KeywordList:U(is),CRS:B(ye),EX_GeographicBoundingBox:U((function(e,t){var n=X({},Ha,e,t);if(n){var r=n.westBoundLongitude,i=n.southBoundLatitude,o=n.eastBoundLongitude,a=n.northBoundLatitude;if(void 0!==r&&void 0!==i&&void 0!==o&&void 0!==a)return[r,i,o,a]}})),BoundingBox:B((function(e,t){var n=[me(e.getAttribute("minx")),me(e.getAttribute("miny")),me(e.getAttribute("maxx")),me(e.getAttribute("maxy"))],r=[me(e.getAttribute("resx")),me(e.getAttribute("resy"))];return{crs:e.getAttribute("CRS"),extent:n,res:r}})),Dimension:B((function(e,t){return{name:e.getAttribute("name"),units:e.getAttribute("units"),unitSymbol:e.getAttribute("unitSymbol"),default:e.getAttribute("default"),multipleValues:he(e.getAttribute("multipleValues")),nearestValue:he(e.getAttribute("nearestValue")),current:he(e.getAttribute("current")),values:ye(e)}})),Attribution:U((function(e,t){return X({},qa,e,t)})),AuthorityURL:B((function(e,t){var n=ts(e,t);if(n)return n.name=e.getAttribute("name"),n})),Identifier:B(ye),MetadataURL:B((function(e,t){var n=ts(e,t);if(n)return n.type=e.getAttribute("type"),n})),DataURL:B(ts),FeatureListURL:B(ts),Style:B((function(e,t){return X({},Za,e,t)})),MinScaleDenominator:U(fe),MaxScaleDenominator:U(fe),Layer:B(es)}),qa=W(ja,{Title:U(ye),OnlineResource:U(qr),LogoURL:U(rs)}),Ha=W(ja,{westBoundLongitude:U(fe),eastBoundLongitude:U(fe),southBoundLatitude:U(fe),northBoundLatitude:U(fe)}),Wa=W(ja,{GetCapabilities:U(ns),GetMap:U(ns),GetFeatureInfo:U(ns)}),Ya=W(ja,{Format:B(ye),DCPType:B((function(e,t){return X({},Xa,e,t)}))}),Xa=W(ja,{HTTP:U((function(e,t){return X({},Ka,e,t)}))}),Ka=W(ja,{Get:U(ts),Post:U(ts)}),Za=W(ja,{Name:U(ye),Title:U(ye),Abstract:U(ye),LegendURL:B(rs),StyleSheetURL:U(ts),StyleURL:U(ts)}),Ja=W(ja,{Format:U(ye),OnlineResource:U(qr)}),Qa=W(ja,{Keyword:F(ye)});function es(e,t){var n=t[t.length-1],r=X({},Va,e,t);if(r){var i=he(e.getAttribute("queryable"));void 0===i&&(i=n.queryable),r.queryable=void 0!==i&&i;var o=ve(e.getAttribute("cascaded"));void 0===o&&(o=n.cascaded),r.cascaded=o;var a=he(e.getAttribute("opaque"));void 0===a&&(a=n.opaque),r.opaque=void 0!==a&&a;var s=he(e.getAttribute("noSubsets"));void 0===s&&(s=n.noSubsets),r.noSubsets=void 0!==s&&s;var l=me(e.getAttribute("fixedWidth"));l||(l=n.fixedWidth),r.fixedWidth=l;var c=me(e.getAttribute("fixedHeight"));return c||(c=n.fixedHeight),r.fixedHeight=c,["Style","CRS","AuthorityURL"].forEach((function(e){if(e in n){var t=r[e]||[];r[e]=t.concat(n[e])}})),["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"].forEach((function(e){if(!(e in r)){var t=n[e];r[e]=t}})),r}}function ts(e,t){return X({},Ja,e,t)}function ns(e,t){return X({},Ya,e,t)}function rs(e,t){var n=ts(e,t);if(n){var r=[ve(e.getAttribute("width")),ve(e.getAttribute("height"))];return n.size=r,n}}function is(e,t){return X([],Qa,e,t)}
806var os,as,ss=Fa,ls=(as=function(e,t){return(as=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}as(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),cs=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.featureNS_="http://mapserver.gis.umn.edu/mapserver",n.gmlFormat_=new Oe,n.layers_=r.layers?r.layers:null,n}return ls(t,e),t.prototype.getLayers=function(){return this.layers_},t.prototype.setLayers=function(e){this.layers_=e},t.prototype.readFeatures_=function(e,t){e.setAttribute("namespaceURI",this.featureNS_);var n=e.localName,r=[];if(0===e.childNodes.length)return r;if("msGMLOutput"==n)for(var i=0,o=e.childNodes.length;i<o;i++){var a=e.childNodes[i];if(a.nodeType===Node.ELEMENT_NODE){var s=a,l=t[0],c=s.localName.replace("_layer","");if(!this.layers_||Object(I.f)(this.layers_,c)){var d=c+"_feature";l.featureType=d,l.featureNS=this.featureNS_;var u={};u[d]=F(this.gmlFormat_.readFeatureElement,this.gmlFormat_);var h=W([l.featureNS,null],u);s.setAttribute("namespaceURI",this.featureNS_);var p=X([],h,s,t,this.gmlFormat_);p&&Object(I.c)(r,p)}}}if("FeatureCollection"==n){var f=X([],this.gmlFormat_.FEATURE_COLLECTION_PARSERS,e,[{}],this.gmlFormat_);f&&(r=f)}return r},t.prototype.readFeaturesFromNode=function(e,t){var n={};return t&&Object(m.a)(n,this.getReadOptions(e,t)),this.readFeatures_(e,[n])},t}(ie),ds=(os=function(e,t){return(os=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}os(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),us=[null,"http://www.opengis.net/wmts/1.0"],hs=[null,"http://www.opengis.net/ows/1.1"],ps=W(us,{Contents:U((function(e,t){return X({},ms,e,t)}))}),fs=function(e){function t(){var t=e.call(this)||this;return t.owsParser_=new di,t}return ds(t,e),t.prototype.readFromNode=function(e){var t=e.getAttribute("version");t&&(t=t.trim());var n=this.owsParser_.readFromNode(e);return n?(n.version=t,(n=X(n,ps,e,[]))||null):null},t}(Vr),ms=W(us,{Layer:B((function(e,t){return X({},gs,e,t)})),TileMatrixSet:B((function(e,t){return X({},Cs,e,t)}))}),gs=W(us,{Style:B((function(e,t){var n=X({},vs,e,t);if(n){var r="true"===e.getAttribute("isDefault");return n.isDefault=r,n}})),Format:B(ye),TileMatrixSetLink:B((function(e,t){return X({},ys,e,t)})),Dimension:B((function(e,t){return X({},ws,e,t)})),ResourceURL:B((function(e,t){var n=e.getAttribute("format"),r=e.getAttribute("template"),i=e.getAttribute("resourceType"),o={};return n&&(o.format=n),r&&(o.template=r),i&&(o.resourceType=i),o}))},W(hs,{Title:U(ye),Abstract:U(ye),WGS84BoundingBox:U(Es),Identifier:U(ye)})),vs=W(us,{LegendURL:B((function(e,t){var n={};return n.format=e.getAttribute("format"),n.href=qr(e),n}))},W(hs,{Title:U(ye),Identifier:U(ye)})),ys=W(us,{TileMatrixSet:U(ye),TileMatrixSetLimits:U((function(e,t){return X([],bs,e,t)}))}),bs=W(us,{TileMatrixLimits:F((function(e,t){return X({},_s,e,t)}))}),_s=W(us,{TileMatrix:U(ye),MinTileRow:U(ge),MaxTileRow:U(ge),MinTileCol:U(ge),MaxTileCol:U(ge)}),ws=W(us,{Default:U(ye),Value:B(ye)},W(hs,{Identifier:U(ye)})),xs=W(hs,{LowerCorner:F(ks),UpperCorner:F(ks)}),Cs=W(us,{WellKnownScaleSet:U(ye),TileMatrix:B((function(e,t){return X({},Ss,e,t)}))},W(hs,{SupportedCRS:U(ye),Identifier:U(ye),BoundingBox:U(Es)})),Ss=W(us,{TopLeftCorner:U(ks),ScaleDenominator:U(fe),TileWidth:U(ge),TileHeight:U(ge),MatrixWidth:U(ge),MatrixHeight:U(ge)},W(hs,{Identifier:U(ye)}));function Es(e,t){var n=X([],xs,e,t);if(2==n.length)return Object(g.boundingExtent)(n)}function ks(e,t){var n=ye(e).split(/\s+/);if(n&&2==n.length){var r=+n[0],i=+n[1];if(!isNaN(r)&&!isNaN(i))return[r,i]}}var Ts=fs},function(e,t,n){var r,i,o=n(75),a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=t||{};return e.call(this,n)||this}return a(t,e),t}
806(o.a),l=n(206),c=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.createRenderer=function(){return new l.a(this)},t.prototype.getData=function(t){return e.prototype.getData.call(this,t)},t}(s);t.a=d},function(e,t,n){var r,i=n(4),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=this,r="Assertion failed. See https://openlayers.org/en/"+("latest"===i.a?i.a:"v"+i.a.split("-")[0])+"/doc/errors/#"+t+" for details.";return(n=e.call(this,r)||this).code=t,n.name="AssertionError",n.message=r,n}return o(t,e),t}(Error);t.a=a},function(e,t,n){t.a={POINT:"point",LINE:"line"}},function(e,t,n){var r=function(){function e(){}return e.prototype.drawCustom=function(e,t,n,r){},e.prototype.drawGeometry=function(e){},e.prototype.setStyle=function(e){},e.prototype.drawCircle=function(e,t){},e.prototype.drawFeature=function(e,t){},e.prototype.drawGeometryCollection=function(e,t){},e.prototype.drawLineString=function(e,t){},e.prototype.drawMultiLineString=function(e,t){},e.prototype.drawMultiPoint=function(e,t){},e.prototype.drawMultiPolygon=function(e,t){},e.prototype.drawPoint=function(e,t){},e.prototype.drawPolygon=function(e,t){},e.prototype.drawText=function(e,t){},e.prototype.setFillStrokeStyle=function(e,t){},e.prototype.setImageStyle=function(e,t){},e.prototype.setTextStyle=function(e,t){},e}();t.a=r},function(e,t,n){function r(e,t,n,r,i){var o;for(t+=r;t<n;t+=r)if(o=i(e.slice(t-r,t),e.slice(t,t+r)))return o;return!1}n.d(t,"a",(function(){return r}))},function(e,t,n){function r(e,t,n,r){for(var i=e[t],o=e[t+1],a=0,s=t+r;s<n;s+=r){var l=e[s],c=e[s+1];a+=Math.sqrt((l-i)*(l-i)+(c-o)*(c-o)),i=l,o=c}return a}n.d(t,"a",(function(){return r}))},function(e,t,n){var r,i=n(173),o=n(132),a=n(174),s=n(47),l=n(99),c=n(10),d=n(0),u=n(23),h=n(103),p=n(9),f=n(1),m=n(4),g=n(27),v=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e){function t(t){var n=e.call(this,t)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.animatingOrInteracting_,n.hitDetectionImageData_=null,n.renderedFeatures_=null,n.renderedRevision_=-1,n.renderedResolution_=NaN,n.renderedExtent_=Object(d.createEmpty)(),n.wrappedRenderedExtent_=Object(d.createEmpty)(),n.renderedRotation_,n.renderedCenter_=null,n.renderedProjection_=null,n.renderedRenderOrder_=null,n.replayGroup_=null,n.replayGroupChanged=!0,n.declutterExecutorGroup=null,n.clipping=!0,n.compositionContext_=null,n.opacity_=1,n}return v(t,e),t.prototype.renderWorlds=function(e,t,n){var r=t.extent,i=t.viewState,o=i.center,a=i.resolution,l=i.projection,c=i.rotation,u=l.getExtent(),h=this.getLayer().getSource(),p=t.pixelRatio,f=t.viewHints,m=!(f[s.a.ANIMATING]||f[s.a.INTERACTING]),g=this.compositionContext_,v=Math.round(t.size[0]*p),y=Math.round(t.size[1]*p),b=h.getWrapX()&&l.canWrapX(),_=b?Object(d.getWidth)(u):null,w=b?Math.ceil((r[2]-u[2])/_)+1:1,x=b?Math.floor((r[0]-u[0])/_):0;
806do{var C=this.getRenderTransform(o,a,c,p,v,y,x*_);e.execute(g,1,C,c,m,void 0,n)}while(++x<w)},t.prototype.setupCompositionContext_=function(){if(1!==this.opacity_){var e=Object(u.a)(this.context.canvas.width,this.context.canvas.height,o.a);this.compositionContext_=e}else this.compositionContext_=this.context},t.prototype.releaseCompositionContext_=function(){if(1!==this.opacity_){var e=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=e,Object(u.d)(this.compositionContext_),o.a.push(this.compositionContext_.canvas),this.compositionContext_=null}},t.prototype.renderDeclutter=function(e){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,e,e.declutterTree),this.releaseCompositionContext_())},t.prototype.renderFrame=function(e,t){var n=e.pixelRatio,r=e.layerStatesArray[e.layerIndex];Object(c.e)(this.pixelTransform,1/n,1/n),Object(c.d)(this.inversePixelTransform,this.pixelTransform);var i=Object(c.k)(this.pixelTransform);this.useContainer(t,i,this.getBackground(e));var o=this.context,a=o.canvas,s=this.replayGroup_,l=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!l||l.isEmpty()))return null;var u=Math.round(e.size[0]*n),h=Math.round(e.size[1]*n);a.width!=u||a.height!=h?(a.width=u,a.height=h,a.style.transform!==i&&(a.style.transform=i)):this.containerReused||o.clearRect(0,0,u,h),this.preRender(o,e);var p=e.viewState,m=p.projection;this.opacity_=r.opacity,this.setupCompositionContext_();var g=!1,v=!0;if(r.extent&&this.clipping){var y=Object(f.fromUserExtent)(r.extent,m);(g=(v=Object(d.intersects)(y,e.extent))&&!Object(d.containsExtent)(y,e.extent))&&this.clipUnrotated(this.compositionContext_,e,y)}return v&&this.renderWorlds(s,e),g&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,e),this.renderedRotation_!==p.rotation&&(this.renderedRotation_=p.rotation,this.hitDetectionImageData_=null),this.container},t.prototype.getFeatures=function(e){return new Promise(function(t){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var n=[this.context.canvas.width,this.context.canvas.height];Object(c.a)(this.pixelTransform,n);var r=this.renderedCenter_,i=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,s=this.wrappedRenderedExtent_,u=this.getLayer(),h=[],p=n[0]*l.a,f=n[1]*l.a;h.push(this.getRenderTransform(r,i,o,l.a,p,f,0).slice());var m=u.getSource(),g=a.getExtent();if(m.getWrapX()&&a.canWrapX()&&!Object(d.containsExtent)(g,s)){for(var v=s[0],y=Object(d.getWidth)(g),b=0,_=void 0;v<g[0];)_=y*--b,h.push(this.getRenderTransform(r,i,o,l.a,p,f,_).slice()),v+=y;for(b=0,v=s[2];v>g[2];)_=y*++b,h.push(this.getRenderTransform(r,i,o,l.a,p,f,_).slice()),v-=y}this.hitDetectionImageData_=Object(l.b)(n,h,this.renderedFeatures_,u.getStyleFunction(),s,i,o)}t(Object(l.c)(e,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){var o=this;if(this.replayGroup_){var a,s=t.viewState.resolution,l=t.viewState.rotation,c=this.getLayer(),d={},u=function(e,t,n){var o=Object(m.c)(e),a=d[o];if(a){if(!0!==a&&n<a.distanceSq){if(0===n)return d[o]=!0,i.splice(i.lastIndexOf(a),1),r(e,c,t);a.geometry=t,a.distanceSq=n}}else{if(0===n)return d[o]=!0,r(e,c,t);i.push(d[o]={feature:e,layer:c,geometry:t,distanceSq:n,callback:r})}},h=[this.replayGroup_];return this.declutterExecutorGroup&&h.push(this.declutterExecutorGroup),h.some((function(r){return a=r.forEachFeatureAtCoordinate(e,s,l,n,u,r===o.declutterExecutorGroup&&t.declutterTree?t.declutterTree.all().map((function(e){return e.value})):null)})),a}},t.prototype.handleFontsChanged=function(){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},t.prototype.handleStyleImageChange_=function(e){this.renderIfReadyAndVisible()},t.prototype.prepareFrame=function(e){var t=this.getLayer(),n=t.getSource();if(!n)return!1;var r=e.viewHints[s.a.ANIMATING],o=e.viewHints[s.a.INTERACTING],l=t.getUpdateWhileAnimating(),c=t.getUpdateWhileInteracting();if(this.ready&&!l&&r||!c&&o)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var u=e.extent,m=e.viewState,v=m.projection,y=m.resolution,b=e.pixelRatio,_=t.getRevision(),w=t.getRenderBuffer(),x=t.getRenderOrder();void 0===x&&(x=h.a);var C=m.center.slice(),S=Object(d.buffer)(u,w*y),E=S.slice(),k=[S.slice()],T=v.getExtent();if(n.getWrapX()&&v.canWrapX()&&!Object(d.containsExtent)(T,e.extent)){var O=Object(d.getWidth)(T),$=Math.max(Object(d.getWidth)(S)/2,O);S[0]=T[0]-$,S[2]=T[2]+$,Object(g.l)(C,v);var P=Object(d.wrapX)(k[0],v);
806P[0]<T[0]&&P[2]<T[2]?k.push([P[0]+O,P[1],P[2]+O,P[3]]):P[0]>T[0]&&P[2]>T[2]&&k.push([P[0]-O,P[1],P[2]-O,P[3]])}if(this.ready&&this.renderedResolution_==y&&this.renderedRevision_==_&&this.renderedRenderOrder_==x&&Object(d.containsExtent)(this.wrappedRenderedExtent_,S))return Object(p.b)(this.renderedExtent_,E)||(this.hitDetectionImageData_=null,this.renderedExtent_=E),this.renderedCenter_=C,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var I,L=new i.a(Object(h.c)(y,b),S,y,b);this.getLayer().getDeclutter()&&(I=new i.a(Object(h.c)(y,b),S,y,b));var A,M=Object(f.getUserProjection)();if(M){for(var j=0,R=k.length;j<R;++j){var D=k[j],F=Object(f.toUserExtent)(D,v);n.loadFeatures(F,Object(f.toUserResolution)(y,v),M)}A=Object(f.getTransformFromProjections)(M,v)}else for(j=0,R=k.length;j<R;++j)n.loadFeatures(k[j],y,v);var N=Object(h.b)(y,b),B=!0,U=function(e){var n,r=e.getStyleFunction()||t.getStyleFunction();if(r&&(n=r(e,y)),n){var i=this.renderFeature(e,N,n,L,A,I);B=B&&!i}}.bind(this),z=Object(f.toUserExtent)(S,v),G=n.getFeaturesInExtent(z);for(x&&G.sort(x),j=0,R=G.length;j<R;++j)U(G[j]);this.renderedFeatures_=G,this.ready=B;var V=L.finish(),q=new a.a(S,y,b,n.getOverlaps(),V,t.getRenderBuffer());return I&&(this.declutterExecutorGroup=new a.a(S,y,b,n.getOverlaps(),I.finish(),t.getRenderBuffer())),this.renderedResolution_=y,this.renderedRevision_=_,this.renderedRenderOrder_=x,this.renderedExtent_=E,this.wrappedRenderedExtent_=S,this.renderedCenter_=C,this.renderedProjection_=v,this.replayGroup_=q,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},t.prototype.renderFeature=function(e,t,n,r,i,o){if(!n)return!1;var a=!1;if(Array.isArray(n))for(var s=0,l=n.length;s<l;++s)a=Object(h.d)(r,e,n[s],t,this.boundHandleStyleImageChange_,i,o)||a;else a=Object(h.d)(r,e,n,t,this.boundHandleStyleImageChange_,i,o);return a},t}(o.b);t.a=y},function(e,t,n){var r,i=n(11),o=n(21),a=n(55),s=n(4),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this)||this;return n.ready=!0,n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=t,n.declutterExecutorGroup=null,n}return l(t,e),t.prototype.getFeatures=function(e){return Object(s.b)()},t.prototype.getData=function(e){return null},t.prototype.prepareFrame=function(e){return Object(s.b)()},t.prototype.renderFrame=function(e,t){return Object(s.b)()},t.prototype.loadedTileCallback=function(e,t,n){e[t]||(e[t]={}),e[t][n.tileCoord.toString()]=n},t.prototype.createLoadedTileFinder=function(e,t,n){return function(r,i){var o=this.loadedTileCallback.bind(this,n,r);return e.forEachLoadedTile(t,r,i,o)}.bind(this)},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){},t.prototype.getDataAtPixel=function(e,t,n){return null},t.prototype.getLayer=function(){return this.layer_},t.prototype.handleFontsChanged=function(){},t.prototype.handleImageChange_=function(e){e.target.getState()===o.a.LOADED&&this.renderIfReadyAndVisible()},t.prototype.loadImage=function(e){var t=e.getState();return t!=o.a.LOADED&&t!=o.a.ERROR&&e.addEventListener(i.a.CHANGE,this.boundHandleImageChange_),t==o.a.IDLE&&(e.load(),t=e.getState()),t==o.a.LOADED},t.prototype.renderIfReadyAndVisible=function(){var e=this.getLayer();e&&e.getVisible()&&"ready"===e.getSourceState()&&e.changed()},t.prototype.disposeInternal=function(){delete this.layer_,e.prototype.disposeInternal.call(this)},t}(a.a);t.a=c},function(e,t,n){var r,i=n(60),o=n(48),a=n(4),s=n(15),l=n(5),c=n(6),d=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un,n.background_=t.background;var r=Object(l.a)({},t);return"object"==qe(t.properties)&&(delete r.properties,Object(l.a)(r,t.properties)),r[o.a.OPACITY]=void 0!==t.opacity?t.opacity:1,Object(s.a)("number"==typeof r[o.a.OPACITY],64),r[o.a.VISIBLE]=void 0===t.visible||t.visible,r[o.a.Z_INDEX]=t.zIndex,r[o.a.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,r[o.a.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,r[o.a.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,r[o.a.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,n.className_=void 0!==r.className?r.className:"ol-layer",delete r.className,n.setProperties(r),n.state_=null,n}
806return d(t,e),t.prototype.getBackground=function(){return this.background_},t.prototype.getClassName=function(){return this.className_},t.prototype.getLayerState=function(e){var t=this.state_||{layer:this,managed:void 0===e||e},n=this.getZIndex();return t.opacity=Object(c.b)(Math.round(100*this.getOpacity())/100,0,1),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=void 0!==n||t.managed?n:1/0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),t.minZoom=this.getMinZoom(),t.maxZoom=this.getMaxZoom(),this.state_=t,t},t.prototype.getLayersArray=function(e){return Object(a.b)()},t.prototype.getLayerStatesArray=function(e){return Object(a.b)()},t.prototype.getExtent=function(){return this.get(o.a.EXTENT)},t.prototype.getMaxResolution=function(){return this.get(o.a.MAX_RESOLUTION)},t.prototype.getMinResolution=function(){return this.get(o.a.MIN_RESOLUTION)},t.prototype.getMinZoom=function(){return this.get(o.a.MIN_ZOOM)},t.prototype.getMaxZoom=function(){return this.get(o.a.MAX_ZOOM)},t.prototype.getOpacity=function(){return this.get(o.a.OPACITY)},t.prototype.getSourceState=function(){return Object(a.b)()},t.prototype.getVisible=function(){return this.get(o.a.VISIBLE)},t.prototype.getZIndex=function(){return this.get(o.a.Z_INDEX)},t.prototype.setBackground=function(e){this.background_=e,this.changed()},t.prototype.setExtent=function(e){this.set(o.a.EXTENT,e)},t.prototype.setMaxResolution=function(e){this.set(o.a.MAX_RESOLUTION,e)},t.prototype.setMinResolution=function(e){this.set(o.a.MIN_RESOLUTION,e)},t.prototype.setMaxZoom=function(e){this.set(o.a.MAX_ZOOM,e)},t.prototype.setMinZoom=function(e){this.set(o.a.MIN_ZOOM,e)},t.prototype.setOpacity=function(e){Object(s.a)("number"==typeof e,64),this.set(o.a.OPACITY,e)},t.prototype.setVisible=function(e){this.set(o.a.VISIBLE,e)},t.prototype.setZIndex=function(e){this.set(o.a.Z_INDEX,e)},t.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),e.prototype.disposeInternal.call(this)},t}(i.a);t.a=u},function(e,t,n){var r,i=n(132),o=n(21),a=n(47),s=n(83),l=n(113),c=n(10),d=n(5),u=n(0),h=n(1),p=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t){var n=e.call(this,t)||this;return n.image_=null,n}return p(t,e),t.prototype.getImage=function(){return this.image_?this.image_.getImage():null},t.prototype.prepareFrame=function(e){var t=e.layerStatesArray[e.layerIndex],n=e.pixelRatio,r=e.viewState,i=r.resolution,l=this.getLayer().getSource(),c=e.viewHints,d=e.extent;if(void 0!==t.extent&&(d=Object(u.getIntersection)(d,Object(h.fromUserExtent)(t.extent,r.projection))),!c[a.a.ANIMATING]&&!c[a.a.INTERACTING]&&!Object(u.isEmpty)(d))if(l){var p=r.projection;if(!s.a){var f=l.getProjection();f&&(p=f)}var m=l.getImage(d,i,n,p);m&&(this.loadImage(m)?this.image_=m:m.getState()===o.a.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_},t.prototype.getData=function(e){var t=this.frameState;if(!t)return null;var n=this.getLayer(),r=Object(c.a)(t.pixelToCoordinateTransform,e.slice()),i=n.getExtent();if(i&&!Object(u.containsCoordinate)(i,r))return null;var o=this.image_.getExtent(),a=this.image_.getImage(),s=Object(u.getWidth)(o),l=Math.floor(a.width*((r[0]-o[0])/s));if(l<0||l>=a.width)return null;var d=Object(u.getHeight)(o),h=Math.floor(a.height*((o[3]-r[1])/d));return h<0||h>=a.height?null:this.getImageData(a,l,h)},t.prototype.renderFrame=function(e,t){var n=this.image_,r=n.getExtent(),i=n.getResolution(),o=n.getPixelRatio(),a=e.layerStatesArray[e.layerIndex],s=e.pixelRatio,p=e.viewState,f=p.center,m=s*i/(p.resolution*o),g=e.extent,v=p.resolution,y=p.rotation,b=Math.round(Object(u.getWidth)(g)/v*s),_=Math.round(Object(u.getHeight)(g)/v*s);Object(c.b)(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/s,1/s,y,-b/2,-_/2),Object(c.d)(this.inversePixelTransform,this.pixelTransform);var w=Object(c.k)(this.pixelTransform);
806this.useContainer(t,w,this.getBackground(e));var x=this.context,C=x.canvas;C.width!=b||C.height!=_?(C.width=b,C.height=_):this.containerReused||x.clearRect(0,0,b,_);var S=!1,E=!0;if(a.extent){var k=Object(h.fromUserExtent)(a.extent,p.projection);(S=(E=Object(u.intersects)(k,e.extent))&&!Object(u.containsExtent)(k,e.extent))&&this.clipUnrotated(x,e,k)}var T=n.getImage(),O=Object(c.b)(this.tempTransform,b/2,_/2,m,m,0,o*(r[0]-f[0])/i,o*(f[1]-r[3])/i);this.renderedResolution=i*s/o;var $=T.width*O[0],P=T.height*O[3];if(this.getLayer().getSource().getInterpolate()||Object(d.a)(x,l.a),this.preRender(x,e),E&&$>=.5&&P>=.5){var I=O[4],L=O[5],A=a.opacity,M=void 0;1!==A&&(M=x.globalAlpha,x.globalAlpha=A),x.drawImage(T,0,0,+T.width,+T.height,I,L,$,P),1!==A&&(x.globalAlpha=M)}return this.postRender(x,e),S&&x.restore(),Object(d.a)(x,l.b),w!==C.style.transform&&(C.style.transform=w),this.container},t}(i.b);t.a=f},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(0);function i(e,t,n,i){for(var o=[],a=Object(r.createEmpty)(),s=0,l=n.length;s<l;++s){var c=n[s];a=Object(r.createOrUpdateFromFlatCoordinates)(e,t,c[0],i),o.push((a[0]+a[2])/2,(a[1]+a[3])/2),t=c[c.length-1]}return o}},function(e,t,n){var r,i=n(132),o=n(124),a=n(162),s=n(110),l=n(13),c=n(113),d=n(10),u=n(5),h=n(0),p=n(1),f=n(4),m=n(9),g=n(30),v=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e){function t(t){var n=e.call(this,t)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=Object(h.createEmpty)(),n.tmpTileRange_=new s.b(0,0,0,0),n}return v(t,e),t.prototype.isDrawableTile=function(e){var t=this.getLayer(),n=e.getState(),r=t.getUseInterimTilesOnError();return n==l.a.LOADED||n==l.a.EMPTY||n==l.a.ERROR&&!r},t.prototype.getTile=function(e,t,n,r){var i=r.pixelRatio,o=r.viewState.projection,a=this.getLayer(),s=a.getSource().getTile(e,t,n,i,o);return s.getState()==l.a.ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):s.setState(l.a.LOADED)),this.isDrawableTile(s)||(s=s.getInterimTile()),s},t.prototype.getData=function(e){var t=this.frameState;if(!t)return null;var n=this.getLayer(),r=Object(d.a)(t.pixelToCoordinateTransform,e.slice()),i=n.getExtent();if(i&&!Object(h.containsCoordinate)(i,r))return null;for(var s=t.pixelRatio,c=t.viewState.projection,u=t.viewState,p=n.getRenderSource(),f=p.getTileGridForProjection(u.projection),m=p.getTilePixelRatio(t.pixelRatio),v=f.getZForResolution(u.resolution);v>=f.getMinZoom();--v){var y=f.getTileCoordForCoordAndZ(r,v),b=p.getTile(v,y[1],y[2],s,c);if(!(b instanceof o.a||b instanceof a.a))return null;if(b.getState()===l.a.LOADED){var _=f.getOrigin(v),w=Object(g.d)(f.getTileSize(v)),x=f.getResolution(v),C=Math.floor(m*((r[0]-_[0])/x-y[1]*w[0])),S=Math.floor(m*((_[1]-r[1])/x-y[2]*w[1])),E=Math.round(m*p.getGutterForProjection(u.projection));return this.getImageData(b.getImage(),C+E,S+E)}}return null},t.prototype.loadedTileCallback=function(t,n,r){return!!this.isDrawableTile(r)&&e.prototype.loadedTileCallback.call(this,t,n,r)},t.prototype.prepareFrame=function(e){return!!this.getLayer().getSource()},t.prototype.renderFrame=function(e,t){var n=e.layerStatesArray[e.layerIndex],r=e.viewState,i=r.projection,o=r.resolution,a=r.center,s=r.rotation,g=e.pixelRatio,v=this.getLayer(),y=v.getSource(),b=y.getRevision(),_=y.getTileGridForProjection(i),w=_.getZForResolution(o,y.zDirection),x=_.getResolution(w),C=e.extent,S=e.viewState.resolution,E=y.getTilePixelRatio(g),k=Math.round(Object(h.getWidth)(C)/S*g),T=Math.round(Object(h.getHeight)(C)/S*g),O=n.extent&&Object(p.fromUserExtent)(n.extent,i);O&&(C=Object(h.getIntersection)(C,Object(p.fromUserExtent)(n.extent,i)));var $=x*k/2/E,P=x*T/2/E,I=[a[0]-$,a[1]-P,a[0]+$,a[1]+P],L=_.getTileRangeForExtentAndZ(C,w),A={};A[w]={};var M=this.createLoadedTileFinder(y,i,A),j=this.tmpExtent,R=this.tmpTileRange_;this.newTiles_=!1;for(var D=s?Object(h.getRotatedViewport)(r.center,S,s,e.size):void 0,F=L.minX;F<=L.maxX;++F)for(var N=L.minY;N<=L.maxY;++N)if(!s||_.tileCoordIntersectsViewport([w,F,N],D)){var B=this.getTile(w,F,N,e);if(this.isDrawableTile(B)){var U=Object(f.c)(this);if(B.getState()==l.a.LOADED&&(A[w][B.tileCoord.toString()]=B,(de=B.inTransition(U))&&1!==n.opacity&&(B.endTransition(U),de=!1),this.newTiles_||!de&&-1!==this.renderedTiles.indexOf(B)||(this.newTiles_=!0)),1===B.getAlpha(U,e.time))continue}var z=_.getTileCoordChildTileRange(B.tileCoord,R,j),G=!1;z&&(G=M(w+1,z)),G||_.forEachTileCoordParentTileRange(B.tileCoord,M,R,j)}var V=x/o*g/E;Object(d.b)(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/g,1/g,s,-k/2,-T/2);var q=Object(d.k)(this.pixelTransform);
806this.useContainer(t,q,this.getBackground(e));var H=this.context,W=H.canvas;Object(d.d)(this.inversePixelTransform,this.pixelTransform),Object(d.b)(this.tempTransform,k/2,T/2,V,V,0,-k/2,-T/2),W.width!=k||W.height!=T?(W.width=k,W.height=T):this.containerReused||H.clearRect(0,0,k,T),O&&this.clipUnrotated(H,e,O),y.getInterpolate()||Object(u.a)(H,c.a),this.preRender(H,e),this.renderedTiles.length=0;var Y,X,K,Z=Object.keys(A).map(Number);Z.sort(m.i),1!==n.opacity||this.containerReused&&!y.getOpaque(e.viewState.projection)?(Y=[],X=[]):Z=Z.reverse();for(var J=Z.length-1;J>=0;--J){var Q=Z[J],ee=y.getTilePixelSize(Q,g,i),te=_.getResolution(Q)/x,ne=ee[0]*te*V,re=ee[1]*te*V,ie=_.getTileCoordForCoordAndZ(Object(h.getTopLeft)(I),Q),oe=_.getTileCoordExtent(ie),ae=Object(d.a)(this.tempTransform,[E*(oe[0]-I[0])/x,E*(I[3]-oe[3])/x]),se=E*y.getGutterForProjection(i),le=A[Q];for(var ce in le){var de,ue=(B=le[ce]).tileCoord,he=ie[1]-ue[1],pe=Math.round(ae[0]-(he-1)*ne),fe=ie[2]-ue[2],me=Math.round(ae[1]-(fe-1)*re),ge=pe-(F=Math.round(ae[0]-he*ne)),ve=me-(N=Math.round(ae[1]-fe*re)),ye=w===Q,be=!1;if(!(de=ye&&1!==B.getAlpha(Object(f.c)(this),e.time)))if(Y){K=[F,N,F+ge,N,F+ge,N+ve,F,N+ve];for(var _e=0,we=Y.length;_e<we;++_e)if(w!==Q&&Q<X[_e]){var xe=Y[_e];Object(h.intersects)([F,N,F+ge,N+ve],[xe[0],xe[3],xe[4],xe[7]])&&(be||(H.save(),be=!0),H.beginPath(),H.moveTo(K[0],K[1]),H.lineTo(K[2],K[3]),H.lineTo(K[4],K[5]),H.lineTo(K[6],K[7]),H.moveTo(xe[6],xe[7]),H.lineTo(xe[4],xe[5]),H.lineTo(xe[2],xe[3]),H.lineTo(xe[0],xe[1]),H.clip())}Y.push(K),X.push(Q)}else H.clearRect(F,N,ge,ve);this.drawTileImage(B,e,F,N,ge,ve,se,ye),Y&&!de?(be&&H.restore(),this.renderedTiles.unshift(B)):this.renderedTiles.push(B),this.updateUsedTiles(e.usedTiles,y,B)}}return this.renderedRevision=b,this.renderedResolution=x,this.extentChanged=!this.renderedExtent_||!Object(h.equals)(this.renderedExtent_,I),this.renderedExtent_=I,this.renderedPixelRatio=g,this.renderedProjection=i,this.manageTilePyramid(e,y,_,g,i,C,w,v.getPreload()),this.scheduleExpireCache(e,y),this.postRender(H,e),n.extent&&H.restore(),Object(u.a)(H,c.b),q!==W.style.transform&&(W.style.transform=q),this.container},t.prototype.drawTileImage=function(e,t,n,r,i,o,a,s){var l=this.getTileImage(e);if(l){var c=Object(f.c)(this),d=t.layerStatesArray[t.layerIndex],u=d.opacity*(s?e.getAlpha(c,t.time):1),h=u!==this.context.globalAlpha;h&&(this.context.save(),this.context.globalAlpha=u),this.context.drawImage(l,a,a,l.width-2*a,l.height-2*a,n,r,i,o),h&&this.context.restore(),u!==d.opacity?t.animate=!0:s&&e.endTransition(c)}},t.prototype.getImage=function(){var e=this.context;return e?e.canvas:null},t.prototype.getTileImage=function(e){return e.getImage()},t.prototype.scheduleExpireCache=function(e,t){if(t.canExpireCache()){var n=function(e,t,n){var r=Object(f.c)(e);r in n.usedTiles&&e.expireCache(n.viewState.projection,n.usedTiles[r])}.bind(null,t);e.postRenderFunctions.push(n)}},t.prototype.updateUsedTiles=function(e,t,n){var r=Object(f.c)(t);r in e||(e[r]={}),e[r][n.getKey()]=!0},t.prototype.manageTilePyramid=function(e,t,n,r,i,o,a,s,c){var d=Object(f.c)(t);d in e.wantedTiles||(e.wantedTiles[d]={});var u,p,m,g,v,y,b=e.wantedTiles[d],_=e.tileQueue,w=n.getMinZoom(),x=e.viewState.rotation,C=x?Object(h.getRotatedViewport)(e.viewState.center,e.viewState.resolution,x,e.size):void 0,S=0;for(y=w;y<=a;++y)for(p=n.getTileRangeForExtentAndZ(o,y,p),m=n.getResolution(y),g=p.minX;g<=p.maxX;++g)for(v=p.minY;v<=p.maxY;++v)x&&!n.tileCoordIntersectsViewport([y,g,v],C)||(a-y<=s?(++S,(u=t.getTile(y,g,v,r,i)).getState()==l.a.IDLE&&(b[u.getKey()]=!0,_.isKeyQueued(u.getKey())||_.enqueue([u,d,n.getTileCoordCenter(u.tileCoord),m])),void 0!==c&&c(u)):t.useTile(y,g,v,i));t.updateCacheSize(S,i)},t}(i.b);t.a=y},function(e,t,n){var r=n(0),i=n(1),o=n(6),a=function(){function e(e,t,n,a,s,l){this.sourceProj_=e,this.targetProj_=t;var c={},d=Object(i.getTransform)(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){var t=e[0]+"/"+e[1];return c[t]||(c[t]=d(e)),c[t]},this.maxSourceExtent_=a,this.errorThresholdSquared_=s*s,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!a&&!!this.sourceProj_.getExtent()&&Object(r.getWidth)(a)==Object(r.getWidth)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(r.getWidth)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(r.getWidth)(this.targetProj_.getExtent()):null;var u=Object(r.getTopLeft)(n),h=Object(r.getTopRight)(n),p=Object(r.getBottomRight)(n),f=Object(r.getBottomLeft)(n),m=this.transformInv_(u),g=this.transformInv_(h),v=this.transformInv_(p),y=this.transformInv_(f),b=10+(l?Math.max(0,Math.ceil(Object(o.f)(Object(r.getArea)(n)/(l*l*256*256)))):0);if(this.addQuad_(u,h,p,f,m,g,v,y,b),this.wrapsXInSource_){var _=1/0;this.triangles_.forEach((function(e,t,n){_=Math.min(_,e.source[0][0],e.source[1][0],e.source[2][0])}
806)),this.triangles_.forEach(function(e){if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-_>this.sourceWorldWidth_/2){var t=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];t[0][0]-_>this.sourceWorldWidth_/2&&(t[0][0]-=this.sourceWorldWidth_),t[1][0]-_>this.sourceWorldWidth_/2&&(t[1][0]-=this.sourceWorldWidth_),t[2][0]-_>this.sourceWorldWidth_/2&&(t[2][0]-=this.sourceWorldWidth_);var n=Math.min(t[0][0],t[1][0],t[2][0]);Math.max(t[0][0],t[1][0],t[2][0])-n<this.sourceWorldWidth_/2&&(e.source=t)}}.bind(this))}c={}}return e.prototype.addTriangle_=function(e,t,n,r,i,o){this.triangles_.push({source:[r,i,o],target:[e,t,n]})},e.prototype.addQuad_=function(e,t,n,i,a,s,l,c,d){var u=Object(r.boundingExtent)([a,s,l,c]),h=this.sourceWorldWidth_?Object(r.getWidth)(u)/this.sourceWorldWidth_:null,p=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&h>.5&&h<1,m=!1;if(d>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var g=Object(r.boundingExtent)([e,t,n,i]);m=Object(r.getWidth)(g)/this.targetWorldWidth_>.25||m}!f&&this.sourceProj_.isGlobal()&&h&&(m=h>.25||m)}if(!(!m&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3]))||Object(r.intersects)(u,this.maxSourceExtent_)){var v=0;if(!(m||isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(l[0])&&isFinite(l[1])&&isFinite(c[0])&&isFinite(c[1])))if(d>0)m=!0;else if(1!=(v=(isFinite(a[0])&&isFinite(a[1])?0:8)+(isFinite(s[0])&&isFinite(s[1])?0:4)+(isFinite(l[0])&&isFinite(l[1])?0:2)+(isFinite(c[0])&&isFinite(c[1])?0:1))&&2!=v&&4!=v&&8!=v)return;if(d>0){if(!m){var y=[(e[0]+n[0])/2,(e[1]+n[1])/2],b=this.transformInv_(y),_=void 0;_=f?(Object(o.g)(a[0],p)+Object(o.g)(l[0],p))/2-Object(o.g)(b[0],p):(a[0]+l[0])/2-b[0];var w=(a[1]+l[1])/2-b[1];m=_*_+w*w>this.errorThresholdSquared_}if(m){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){var x=[(t[0]+n[0])/2,(t[1]+n[1])/2],C=this.transformInv_(x),S=[(i[0]+e[0])/2,(i[1]+e[1])/2],E=this.transformInv_(S);this.addQuad_(e,t,x,S,a,s,C,E,d-1),this.addQuad_(S,x,n,i,E,C,l,c,d-1)}else{var k=[(e[0]+t[0])/2,(e[1]+t[1])/2],T=this.transformInv_(k),O=[(n[0]+i[0])/2,(n[1]+i[1])/2],$=this.transformInv_(O);this.addQuad_(e,k,O,i,a,T,$,c,d-1),this.addQuad_(k,t,n,O,T,s,l,$,d-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&v)&&this.addTriangle_(e,n,i,a,l,c),0==(14&v)&&this.addTriangle_(e,n,t,a,l,s),v&&(0==(13&v)&&this.addTriangle_(t,i,e,s,c,a),0==(7&v)&&this.addTriangle_(t,i,n,s,c,l))}},e.prototype.calculateSourceExtent=function(){var e=Object(r.createEmpty)();return this.triangles_.forEach((function(t,n,i){var o=t.source;Object(r.extendCoordinate)(e,o[0]),Object(r.extendCoordinate)(e,o[1]),Object(r.extendCoordinate)(e,o[2])})),e},e.prototype.getTriangles=function(){return this.triangles_},e}();t.a=a},function(e,t,n){var r,i=n(75),o=n(123),a=n(5),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=this,r=t||{},i=Object(a.a)({},r);return delete i.preload,delete i.useInterimTilesOnError,(n=e.call(this,i)||this).on,n.once,n.un,n.setPreload(void 0!==r.preload?r.preload:0),n.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),n}return s(t,e),t.prototype.getPreload=function(){return this.get(o.a.PRELOAD)},t.prototype.setPreload=function(e){this.set(o.a.PRELOAD,e)},t.prototype.getUseInterimTilesOnError=function(){return this.get(o.a.USE_INTERIM_TILES_ON_ERROR)},t.prototype.setUseInterimTilesOnError=function(e){this.set(o.a.USE_INTERIM_TILES_ON_ERROR,e)},t.prototype.getData=function(t){return e.prototype.getData.call(this,t)},t}(i.a);t.a=l},function(e,t,n){var r,i=n(219),o=n(218),a=n(5),s=n(89),l=n(140),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){return(t=Object(a.a)({},t)).controls||(t.controls=Object(s.defaults)()),t.interactions||(t.interactions=Object(l.defaults)({onFocusOnly:!0})),e.call(this,t)||this}return c(t,e),t.prototype.createRenderer=function(){return new i.a(this)},t}(o.a);t.a=d},function(e,t,n){var r,i=n(107),o=n(13),a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=this,r=o.a.IDLE;return(n=e.call(this,t.tileCoord,r,{transition:t.transition,interpolate:t.interpolate})||this).loader_=t.loader,n.data_=null,n.error_=null,n.size_=t.size||[256,256],n}return a(t,e),t.prototype.getSize=function(){return this.size_},t.prototype.getData=function(){return this.data_},t.prototype.getError=function(){return this.error_},t.prototype.load=function(){if(this.state===o.a.IDLE||this.state===o.a.ERROR){this.state=o.a.LOADING,this.changed();var e=this;this.loader_().then((function(t){e.data_=t,e.state=o.a.LOADED,e.changed()})).catch((function(t){e.error_=t,e.state=o.a.ERROR,e.changed()}))}},t}(i.a);t.a=s},function(e,t){/*! @petamoriken/float16 v3.7.1 | MIT License - https://github.com/petamoriken/float16 */!function(e){function t(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return r(e,t,i)}}function n(e,n){return t(s(e,n).get)}var r=Reflect.apply,i=Reflect.construct,o=Reflect.defineProperty,a=Reflect.get,s=Reflect.getOwnPropertyDescriptor,l=Reflect.getPrototypeOf,c=Reflect.has,d=Reflect.ownKeys,u=Reflect.set,h=Reflect.setPrototypeOf,p=Proxy,f=Number.MAX_SAFE_INTEGER,m=Number.isFinite,g=Number.isNaN,v=Symbol.iterator,y=Symbol.species,b=Symbol.toStringTag,_=Symbol.for,w=Object,x=w.create,C=w.defineProperty,S=w.freeze,E=w.is,k=w.prototype,T=k.__lookupGetter__?t(k.__lookupGetter__):function(e,t){if(null==e)throw we("Cannot convert undefined or null to object");var n=w(e);do{var r=s(n,t);if(void 0!==r)return O(r,"get")?r.get:void 0}while(null!==(n=l(n)))},O=w.hasOwn||t(k.hasOwnProperty),$=Array,P=$.isArray,I=$.prototype,L=t(I.join),A=t(I.push),M=t(I.toLocaleStr
806ing),j=I[v],R=t(j),D=Math.trunc,F=ArrayBuffer,N=F.isView,B=F.prototype,U=t(B.slice),z=n(B,"byteLength"),G="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:null,V=G&&n(G.prototype,"byteLength"),q=l(Uint8Array),H=q.from,W=q.prototype,Y=W[v],X=t(W.keys),K=t(W.values),Z=t(W.entries),J=t(W.set),Q=t(W.reverse),ee=t(W.fill),te=t(W.copyWithin),ne=t(W.sort),re=t(W.slice),ie=t(W.subarray),oe=n(W,"buffer"),ae=n(W,"byteOffset"),se=n(W,"length"),le=n(W,b),ce=Uint16Array,de=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r(H,ce,t)},ue=Uint32Array,he=Float32Array,pe=l([][v]()),fe=t(pe.next),me=t($e().mark((function e(){return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))().next),ge=l(pe),ve=DataView.prototype,ye=t(ve.getUint16),be=t(ve.setUint16),we=TypeError,xe=RangeError,Se=WeakSet,ke=Se.prototype,Te=t(ke.add),Pe=t(ke.has),Le=WeakMap,Me=Le.prototype,je=t(Me.get),Re=t(Me.has),De=t(Me.set),Fe=new Le,Ne=x(null,Oe({next:{value:function(){var e=je(Fe,this);return fe(e)}}},v,{value:function(){return this}}));function Be(e){if(e[v]===j&&pe.next===fe)return e;var t=x(Ne);return De(Fe,t,R(e)),t}var Ue,ze=new Le,Ge=x(ge,{next:{value:function(){var e=je(ze,this);return me(e)},writable:!0,configurable:!0}}),Ve=Ee(d(pe));try{for(Ve.s();!(Ue=Ve.n()).done;){var He=Ue.value;"next"!==He&&C(Ge,He,s(pe,He))}}catch(e){Ve.e(e)}finally{Ve.f()}function We(e){var t=x(Ge);return De(ze,t,e),t}function Ye(e){return null!==e&&"object"==qe(e)||"function"==typeof e}function Xe(e){return null!==e&&"object"==qe(e)}function Ke(e){return void 0!==le(e)}function Ze(e){var t=le(e);return"BigInt64Array"===t||"BigUint64Array"===t}function Je(e){return!!P(e)&&e[v]===j&&pe.next===fe}function Qe(e){if("string"!=typeof e)return!1;var t=+e;return e===t+""&&!!m(t)&&t===D(t)}for(var et=_("__Float16Array__"),tt=new F(4),nt=new he(tt),rt=new ue(tt),it=new ue(512),ot=new ue(512),at=0;at<256;++at){var st=at-127;st<-27?(it[at]=0,it[256|at]=32768,ot[at]=24,ot[256|at]=24):st<-14?(it[at]=1024>>-st-14,it[256|at]=1024>>-st-14|32768,ot[at]=-st-1,ot[256|at]=-st-1):st<=15?(it[at]=st+15<<10,it[256|at]=st+15<<10|32768,ot[at]=13,ot[256|at]=13):st<128?(it[at]=31744,it[256|at]=64512,ot[at]=24,ot[256|at]=24):(it[at]=31744,it[256|at]=64512,ot[at]=13,ot[256|at]=13)}function lt(e){nt[0]=e;var t=rt[0],n=t>>23&511;return it[n]+((8388607&t)>>ot[n])}for(var ct=new ue(2048),dt=new ue(64),ut=new ue(64),ht=1;ht<1024;++ht){for(var pt=ht<<13,ft=0;0==(8388608&pt);)pt<<=1,ft-=8388608;pt&=-8388609,ft+=947912704,ct[ht]=pt|ft}for(var mt=1024;mt<2048;++mt)ct[mt]=939524096+(mt-1024<<13);for(var gt=1;gt<31;++gt)dt[gt]=gt<<23;dt[31]=1199570944,dt[32]=2147483648;for(var vt=33;vt<63;++vt)dt[vt]=2147483648+(vt-32<<23);dt[63]=3347054592;for(var yt=1;yt<64;++yt)32!==yt&&(ut[yt]=1024);function bt(e){var t=e>>10;return rt[0]=ct[ut[t]+(1023&e)]+dt[t],nt[0]}function _t(e){var t=+e;return g(t)||0===t?0:D(t)}function wt(e){var t=_t(e);return t<0?0:t<f?t:f}function xt(e,t){if(!Ye(e))throw we("This is not an object");var n=e.constructor;if(void 0===n)return t;if(!Ye(n))throw we("The constructor property value is not an object");var r=n[y];return null==r?t:r}function Ct(e){if(function(e){if(null===G)return!1;try{return V(e),!0}catch(e){return!1}}(e))return!1;try{return U(e,0,0),!1}catch(e){}return!0}function St(e,t){var n=g(e),r=g(t);if(n&&r)return 0;if(n)return 1;if(r)return-1;if(e<t)return-1;if(e>t)return 1;if(0===e&&0===t){var i=E(e,0),o=E(t,0);if(!i&&o)return-1;if(i&&!o)return 1}return 0}var Et=new Le;function kt(e){return Re(Et,e)||!N(e)&&function(e){if(!Xe(e))return!1;var t=l(e);if(!Xe(t))return!1;var n=t.constructor;if(void 0===n)return!1;if(!Ye(n))throw we("The constructor property value is not an object");return c(n,et)}(e)}function Tt(e){if(!kt(e))throw we("This is not a Float16Array object")}function Ot(e,t){var n=kt(e),r=Ke(e);if(!n&&!r)throw we("Species constructor didn't return TypedArray object");if("number"==typeof t){var i;if(n){var o=$t(e);i=se(o)}else i=se(e);if(i<t)throw we("Derived constructor created TypedArray object which was too small length")}if(Ze(e))throw we("Cannot mix BigInt and other types, use explicit conversions")}function $t(e){var t=je(Et,e);if(void 0!==t){if(Ct(oe(t)))throw we("Attempting to access detached ArrayBuffer");return t}var n=e.buffer;if(Ct(n))throw we("Attempting to access detached ArrayBuffer");var r=i(Dt,[n,e.byteOffset,e.length],e.constructor);return je(Et,r)}function Pt(e){for(var t=se(e),n=[],r=0;r<t;++r)n[r]=bt(e[r]);return n}var It,Lt=new Se,At=Ee(d(W));try{for(At.s();!(It=At.n()).done;){var Mt=It.value;if(Mt!==b){var jt=s(W,Mt);O(jt,"get")&&"function"==typeof jt.get&&Te(Lt,jt.get)}}}catch(e){At.e(e)}finally{At.f()}var Rt=S({get:function(e,t,n){return Qe(t)&&O(e,t)?bt(a(e,t)):Pe(Lt,T(e,t))?a(e,t):a(e,t,n
806)},set:function(e,t,n,r){return Qe(t)&&O(e,t)?u(e,t,lt(n)):u(e,t,n,r)},getOwnPropertyDescriptor:function(e,t){if(Qe(t)&&O(e,t)){var n=s(e,t);return n.value=bt(n.value),n}return s(e,t)},defineProperty:function(e,t,n){return Qe(t)&&O(e,t)&&O(n,"value")?(n.value=lt(n.value),o(e,t,n)):o(e,t,n)}}),Dt=function(){function e(t,n,r){var o;if(Ae(this,e),kt(t))o=i(ce,[$t(t)],this instanceof e?this.constructor:void 0);else if(Ye(t)&&!function(e){try{return z(e),!0}catch(e){return!1}}(t)){var a,s;if(Ke(t)){if(a=t,s=se(t),Ct(oe(t)))throw we("Attempting to access detached ArrayBuffer");if(Ze(t))throw we("Cannot mix BigInt and other types, use explicit conversions");var l=new F(2*s);o=i(ce,[l],this instanceof e?this.constructor:void 0)}else{var c=t[v];if(null!=c&&"function"!=typeof c)throw we("@@iterator property is not callable");null!=c?Je(t)?(a=t,s=t.length):s=(a=Ce(t)).length:s=wt((a=t).length),o=i(ce,[s],this instanceof e?this.constructor:void 0)}for(var d=0;d<s;++d)o[d]=lt(a[d])}else o=i(ce,arguments,this instanceof e?this.constructor:void 0);var u=new p(o,Rt);return De(Et,u,o),u}return Ie(e,[{key:"keys",value:function(){Tt(this);var e=$t(this);return X(e)}},{key:"values",value:function(){Tt(this);var e=$t(this);return We($e().mark((function t(){var n,r,i;return $e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=Ee(K(e)),t.prev=1,n.s();case 3:if((r=n.n()).done){t.next=9;break}return i=r.value,t.next=7,bt(i);case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),n.e(t.t0);case 14:return t.prev=14,n.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[1,11,14,17]])}))())}},{key:"entries",value:function(){Tt(this);var e=$t(this);return We($e().mark((function t(){var n,r,i,o,a;return $e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=Ee(Z(e)),t.prev=1,n.s();case 3:if((r=n.n()).done){t.next=9;break}return i=_e(r.value,2),o=i[0],a=i[1],t.next=7,[o,bt(a)];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),n.e(t.t0);case 14:return t.prev=14,n.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[1,11,14,17]])}))())}},{key:"at",value:function(e){Tt(this);var t=$t(this),n=se(t),r=_t(e),i=r>=0?r:n+r;if(!(i<0||i>=n))return bt(t[i])}},{key:"with",value:function(t,n){Tt(this);var r=$t(this),i=se(r),o=_t(t),a=o>=0?o:i+o,s=+n;
806if(a<0||a>=i)throw xe("Offset is out of bounds");var l=new ce(oe(r),ae(r),se(r)),c=new e(oe(re(l)));return $t(c)[a]=lt(s),c}},{key:"map",value:function(t){Tt(this);var n=$t(this),i=se(n),o=arguments.length<=1?void 0:arguments[1],a=xt(n,e);if(a===e){for(var s=new e(i),l=$t(s),c=0;c<i;++c){var d=bt(n[c]);l[c]=lt(r(t,o,[d,c,this]))}return s}var u=new a(i);Ot(u,i);for(var h=0;h<i;++h){var p=bt(n[h]);u[h]=r(t,o,[p,h,this])}return u}},{key:"filter",value:function(t){Tt(this);for(var n=$t(this),i=se(n),o=arguments.length<=1?void 0:arguments[1],a=[],s=0;s<i;++s){var l=bt(n[s]);r(t,o,[l,s,this])&&A(a,l)}var c=new(xt(n,e))(a);return Ot(c),c}},{key:"reduce",value:function(e){Tt(this);var t,n,r=$t(this),i=se(r);if(0===i&&0==(arguments.length<=1?0:arguments.length-1))throw we("Reduce of empty array with no initial value");0==(arguments.length<=1?0:arguments.length-1)?(t=bt(r[0]),n=1):(t=arguments.length<=1?void 0:arguments[1],n=0);for(var o=n;o<i;++o)t=e(t,bt(r[o]),o,this);return t}},{key:"reduceRight",value:function(e){Tt(this);var t,n,r=$t(this),i=se(r);if(0===i&&0==(arguments.length<=1?0:arguments.length-1))throw we("Reduce of empty array with no initial value");0==(arguments.length<=1?0:arguments.length-1)?(t=bt(r[i-1]),n=i-2):(t=arguments.length<=1?void 0:arguments[1],n=i-1);for(var o=n;o>=0;--o)t=e(t,bt(r[o]),o,this);return t}},{key:"forEach",value:function(e){Tt(this);for(var t=$t(this),n=se(t),i=arguments.length<=1?void 0:arguments[1],o=0;o<n;++o)r(e,i,[bt(t[o]),o,this])}},{key:"find",value:function(e){Tt(this);for(var t=$t(this),n=se(t),i=arguments.length<=1?void 0:arguments[1],o=0;o<n;++o){var a=bt(t[o]);if(r(e,i,[a,o,this]))return a}}},{key:"findIndex",value:function(e){Tt(this);for(var t=$t(this),n=se(t),i=arguments.length<=1?void 0:arguments[1],o=0;o<n;++o){var a=bt(t[o]);if(r(e,i,[a,o,this]))return o}return-1}},{key:"findLast",value:function(e){Tt(this);for(var t=$t(this),n=se(t),i=arguments.length<=1?void 0:arguments[1],o=n-1;o>=0;--o){var a=bt(t[o]);if(r(e,i,[a,o,this]))return a}}},{key:"findLastIndex",value:function(e){Tt(this);for(var t=$t(this),n=se(t),i=arguments.length<=1?void 0:arguments[1],o=n-1;o>=0;--o){var a=bt(t[o]);if(r(e,i,[a,o,this]))return o}return-1}},{key:"every",value:function(e){Tt(this);for(var t=$t(this),n=se(t),i=arguments.length<=1?void 0:arguments[1],o=0;o<n;++o)if(!r(e,i,[bt(t[o]),o,this]))return!1;return!0}},{key:"some",value:function(e){Tt(this);for(var t=$t(this),n=se(t),i=arguments.length<=1?void 0:arguments[1],o=0;o<n;++o)if(r(e,i,[bt(t[o]),o,this]))return!0;return!1}},{key:"set",value:function(e){Tt(this);var t=$t(this),n=_t(arguments.length<=1?void 0:arguments[1]);if(n<0)throw xe("Offset is out of bounds");if(null==e)throw we("Cannot convert undefined or null to object");if(Ze(e))throw we("Cannot mix BigInt and other types, use explicit conversions");if(kt(e))return J($t(this),$t(e),n);if(Ke(e)&&Ct(oe(e)))throw we("Attempting to access detached ArrayBuffer");var r=se(t),i=w(e),o=wt(i.length);if(n===1/0||o+n>r)throw xe("Offset is out of bounds");for(var a=0;a<o;++a)t[a+n]=lt(i[a])}},{key:"reverse",value:function(){Tt(this);var e=$t(this);return Q(e),this}},{key:"toReversed",value:function(){Tt(this);var t=$t(this),n=new ce(oe(t),ae(t),se(t)),r=new e(oe(re(n))),i=$t(r);return Q(i),r}},{key:"fill",value:function(e){Tt(this);for(var t=$t(this),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return ee.apply(void 0,[t,lt(e)].concat(Ce(Be(r)))),this}},{key:"copyWithin",value:function(e,t){Tt(this);for(var n=$t(this),r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return te.apply(void 0,[n,e,t].concat(Ce(Be(i)))),this}},{key:"sort",value:function(e){Tt(this);var t=$t(this),n=void 0!==e?e:St;return ne(t,(function(e,t){return n(bt(e),bt(t))})),this}},{key:"toSorted",value:function(t){Tt(this);var n=$t(this);if(void 0!==t&&"function"!=typeof t)throw new we("The comparison function must be either a function or undefined");var r=void 0!==t?t:St,i=new ce(oe(n),ae(n),se(n)),o=new e(oe(re(i))),a=$t(o);return ne(a,(function(e,t){return r(bt(e),bt(t))})),o}},{key:"slice",value:function(t,n){Tt(this);var r=$t(this),i=xt(r,e);if(i===e){var o=new ce(oe(r),ae(r),se(r));return new e(oe(re(o,t,n)))}var a,s,l=se(r),c=_t(t),d=void 0===n?l:_t(n),u=(s=d===-1/0?0:d<0?l+d>0?l+d:0:l<d?l:d)-(a=c===-1/0?0:c<0?l+c>0?l+c:0:l<c?l:c)>0?s-a:0,h=new i(u);if(Ot(h,u),0===u)return h;if(Ct(oe(r)))throw we("Attempting to access detached ArrayBuffer");for(var p=0;a<s;)h[p]=bt(r[a]),++a,++p;return h}},{key:"subarray",value:function(t,n){Tt(this);var r=$t(this),i=xt(r,e),o=new ce(oe(r),ae(r),se(r)),a=ie(o,t,n),s=new i(oe(a),ae(a),se(a));return Ot(s),s}},{key:"indexOf",value:function(e){Tt(this);var t=$t(this),n=se(t),r=_t(arguments.length<=1?void 0:arguments[1]);if(r===1/0)return-1;r<0&&((r+=n)<0&&(r=0));for(var i=r;i<n;++i)if(O(t,i)&&bt(t[i])===e)return i;return-1}},{key:"lastIndexOf",value:function(e){Tt(this);var t=$t(this),n=se(t),r=(arguments.length<=1?0:arguments.length-1)>=1?_t(arguments.length<=1?void 0:arguments[1]):n-1;if(r===-1/0)return-1;r>=0?r=r<n-1?r:n-1:r+=n;for(var i=r;i>=0;--i)if(O(t,i)&&bt(t[i])===e)return i;return-1}},{key:"includes",value:function(e){Tt(this);var t=$t(this),n=se(t),r=_t(arguments.length<=1?void 0:arguments[1]);if(r===1/0)return!1;r<0&&((r+=n)<0&&(r=0));for(var i=g(e),o=r;o<n;++o){var a=bt(t[o]);if(i&&g(a))return!0;
806if(a===e)return!0}return!1}},{key:"join",value:function(e){Tt(this);var t=Pt($t(this));return L(t,e)}},{key:"toLocaleString",value:function(){Tt(this);for(var e=Pt($t(this)),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return M.apply(void 0,[e].concat(Ce(Be(n))))}},{key:b,get:function(){if(kt(this))return"Float16Array"}}],[{key:"from",value:function(t){if(!c(this,et))throw we("This constructor is not a subclass of Float16Array");if(this===e){if(kt(t)&&0==(arguments.length<=1?0:arguments.length-1)){var n=$t(t),i=new ce(oe(n),ae(n),se(n));return new e(oe(re(i)))}if(0==(arguments.length<=1?0:arguments.length-1))return new e(oe(de(t,lt)));var o=arguments.length<=1?void 0:arguments[1],a=arguments.length<=2?void 0:arguments[2];return new e(oe(de(t,(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return lt(r(o,this,[e].concat(Ce(Be(n)))))}),a)))}var s,l,d=t[v];if(null!=d&&"function"!=typeof d)throw we("@@iterator property is not callable");if(null!=d)Je(t)?(s=t,l=t.length):function(e){return!!Ke(e)&&e[v]===Y&&pe.next===fe}(t)?(s=t,l=se(t)):l=(s=Ce(t)).length;else{if(null==t)throw we("Cannot convert undefined or null to object");l=wt((s=w(t)).length)}var u=new this(l);if(0==(arguments.length<=1?0:arguments.length-1))for(var h=0;h<l;++h)u[h]=s[h];else for(var p=arguments.length<=1?void 0:arguments[1],f=arguments.length<=2?void 0:arguments[2],m=0;m<l;++m)u[m]=r(p,f,[s[m],m]);return u}},{key:"of",value:function(){if(!c(this,et))throw we("This constructor is not a subclass of Float16Array");var t=arguments.length;if(this===e){for(var n=new e(t),r=$t(n),i=0;i<t;++i)r[i]=lt(i<0||arguments.length<=i?void 0:arguments[i]);return n}for(var o=new this(t),a=0;a<t;++a)o[a]=a<0||arguments.length<=a?void 0:arguments[a];return o}}]),e}();C(Dt,"BYTES_PER_ELEMENT",{value:2}),C(Dt,et,{}),h(Dt,q);var Ft=Dt.prototype;C(Ft,"BYTES_PER_ELEMENT",{value:2}),C(Ft,v,{value:Ft.values,writable:!0,configurable:!0}),h(Ft,W),e.Float16Array=Dt,e.getFloat16=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return bt(ye.apply(void 0,[e,t].concat(Ce(Be(r)))))},e.hfround=function(e){var t=+e;return m(t)&&0!==t?bt(lt(t)):t},e.isFloat16Array=kt,e.isTypedArray=function(e){return Ke(e)||kt(e)},e.setFloat16=function(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return be.apply(void 0,[e,t,lt(n)].concat(Ce(Be(i))))},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}({})},function(e,t,n){(function(t){e.exports=function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e 807/** 808 * splaytree v3.1.0 809 * Fast Splay tree for Node and browser 810 * 811 * @author Alexander Milevski <[email protected]> 812 * @license MIT 813 * @preserve 814 */}var i=function(e,t){this.next=null,this.key=e,this.data=t,this.left=null,this.right=null};function o(e,t){return e>t?1:e<t?-1:0}function a(e,t,n){for(var r=new i(null,null),o=r,a=r;;){var s=n(e,t.key);if(s<0){if(null===t.left)break;if(n(e,t.left.key)<0){var l=t.left;if(t.left=l.right,l.right=t,null===(t=l).left)break}a.left=t,a=t,t=t.left}else{if(!(s>0))break;if(null===t.right)break;if(n(e,t.right.key)>0&&(l=t.right,t.right=l.left,l.left=t,null===(t=l).right))break;o.right=t,o=t,t=t.right}}return o.right=t.left,a.left=t.right,t.left=r.right,t.right=r.left,t}function s(e,t,n,r){var o=new i(e,t);if(null===n)return o.left=o.right=null,o;var s=r(e,(n=a(e,n,r)).key);return s<0?(o.left=n.left,o.right=n,n.left=null):s>=0&&(o.right=n.right,o.left=n,n.right=null),o}function l(e,t,n){var r=null,i=null;if(t){var o=n((t=a(e,t,n)).key,e);0===o?(r=t.left,i=t.right):o<0?(i=t.right,t.right=null,r=t):(r=t.left,t.left=null,i=t)}return{left:r,right:i}}var c=function(){function e(e){void 0===e&&(e=o),this._root=null,this._size=0,this._comparator=e}return e.prototype.insert=function(e,t){return this._size++,this._root=s(e,t,this._root,this._comparator)},e.prototype.add=function(e,t){var n=new i(e,t);
814null===this._root&&(n.left=n.right=null,this._size++,this._root=n);var r=this._comparator,o=a(e,this._root,r),s=r(e,o.key);return 0===s?this._root=o:(s<0?(n.left=o.left,n.right=o,o.left=null):s>0&&(n.right=o.right,n.left=o,o.right=null),this._size++,this._root=n),this._root},e.prototype.remove=function(e){this._root=this._remove(e,this._root,this._comparator)},e.prototype._remove=function(e,t,n){var r;return null===t?null:0===n(e,(t=a(e,t,n)).key)?(null===t.left?r=t.right:(r=a(e,t.left,n)).right=t.right,this._size--,r):t},e.prototype.pop=function(){var e=this._root;if(e){for(;e.left;)e=e.left;return this._root=a(e.key,this._root,this._comparator),this._root=this._remove(e.key,this._root,this._comparator),{key:e.key,data:e.data}}return null},e.prototype.findStatic=function(e){for(var t=this._root,n=this._comparator;t;){var r=n(e,t.key);if(0===r)return t;t=r<0?t.left:t.right}return null},e.prototype.find=function(e){return this._root&&(this._root=a(e,this._root,this._comparator),0!==this._comparator(e,this._root.key))?null:this._root},e.prototype.contains=function(e){for(var t=this._root,n=this._comparator;t;){var r=n(e,t.key);if(0===r)return!0;t=r<0?t.left:t.right}return!1},e.prototype.forEach=function(e,t){for(var n=this._root,r=[],i=!1;!i;)null!==n?(r.push(n),n=n.left):0!==r.length?(n=r.pop(),e.call(t,n),n=n.right):i=!0;return this},e.prototype.range=function(e,t,n,r){for(var i=[],o=this._comparator,a=this._root;0!==i.length||a;)if(a)i.push(a),a=a.left;else{if(o((a=i.pop()).key,t)>0)break;if(o(a.key,e)>=0&&n.call(r,a))return this;a=a.right}return this},e.prototype.keys=function(){var e=[];return this.forEach((function(t){var n=t.key;return e.push(n)})),e},e.prototype.values=function(){var e=[];return this.forEach((function(t){var n=t.data;return e.push(n)})),e},e.prototype.min=function(){return this._root?this.minNode(this._root).key:null},e.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},e.prototype.minNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.left;)e=e.left;return e},e.prototype.maxNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.right;)e=e.right;return e},e.prototype.at=function(e){for(var t=this._root,n=!1,r=0,i=[];!n;)if(t)i.push(t),t=t.left;else if(i.length>0){if(t=i.pop(),r===e)return t;r++,t=t.right}else n=!0;return null},e.prototype.next=function(e){var t=this._root,n=null;if(e.right){for(n=e.right;n.left;)n=n.left;return n}for(var r=this._comparator;t;){var i=r(e.key,t.key);if(0===i)break;i<0?(n=t,t=t.left):t=t.right}return n},e.prototype.prev=function(e){var t=this._root,n=null;if(null!==e.left){for(n=e.left;n.right;)n=n.right;return n}for(var r=this._comparator;t;){var i=r(e.key,t.key);if(0===i)break;i<0?t=t.left:(n=t,t=t.right)}return n},e.prototype.clear=function(){return this._root=null,this._size=0,this},e.prototype.toList=function(){return function(e){for(var t=e,n=[],r=!1,o=new i(null,null),a=o;!r;)t?(n.push(t),t=t.left):n.length>0?t=(t=a=a.next=n.pop()).right:r=!0;return a.next=null,o.next}(this._root)},e.prototype.load=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1);var r=e.length,o=this._comparator;if(n&&function e(t,n,r,i,o){if(!(r>=i)){for(var a=t[r+i>>1],s=r-1,l=i+1;;){do{s++}while(o(t[s],a)<0);do{l--}while(o(t[l],a)>0);if(s>=l)break;var c=t[s];t[s]=t[l],t[l]=c,c=n[s],n[s]=n[l],n[l]=c}e(t,n,r,l,o),e(t,n,l+1,i,o)}}(e,t,0,r-1,o),null===this._root)this._root=function e(t,n,r,o){var a=o-r;if(a>0){var s=r+Math.floor(a/2),l=t[s],c=n[s],d=new i(l,c);return d.left=e(t,n,r,s),d.right=e(t,n,s+1,o),d}return null}(e,t,0,r),this._size=r;else{var a=function(e,t,n){for(var r=new i(null,null),o=r,a=e,s=t;null!==a&&null!==s;)n(a.key,s.key)<0?(o.next=a,a=a.next):(o.next=s,s=s.next),o=o.next;return null!==a?o.next=a:null!==s&&(o.next=s),r.next}(this.toList(),function(e,t){for(var n=new i(null,null),r=n,o=0;o<e.length;o++)r=r.next=new i(e[o],t[o]);return r.next=null,n.next}(e,t),o);r=this._size+r,this._root=function e(t,n,r){var i=r-n;if(i>0){var o=n+Math.floor(i/2),a=e(t,n,o),s=t.head;return s.left=a,t.head=t.head.next,s.right=e(t,o+1,r),s}return null}({head:a},0,r)}return this},e.prototype.isEmpty=function(){return null===this._root},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),e.prototype.toString=function(e){void 0===e&&(e=function(e){return String(e.key)});var t=[];return function e(t,n,r,i,o){if(t){i(n+(r?"âââ ":"âââ ")+o(t)+"\n");var a=n+(r?" ":"â ");t.left&&e(t.left,a,!1,i,o),t.right&&e(t.right,a,!0,i,o)}}(this._root,"",!0,(function(e){return t.push(e)}),e),t.join("")},e.prototype.update=function(e,t,n){var r=this._comparator,i=l(e,this._root,r),o=i.left,c=i.right;r(e,t)<0?c=s(t,n,c,r):o=s(t,n,o,r),this._root=function(e,t,n){return null===t?e:(null===e||((t=a(e.key,t,n)).left=e),t)}(o,c,r)},e.prototype.split=function(e){return l(e,this._root,this._comparator)},e}(),d=function(e,t){return e.ll.x<=t.x&&t.x<=e.ur.x&&e.ll.y<=t.y&&t.y<=e.ur.y},u=function(e,t){if(t.ur.x<e.ll.x||e.ur.x<t.ll.x||t.ur.y<e.ll.y||e.ur.y<t.ll.y)return null;var n=e.ll.x<t.ll.x?t.ll.x:e.ll.x,r=e.ur.x<t.ur.x?e.ur.x:t.ur.x;return{ll:{x:n,y:e.ll.y<t.ll.y?t.ll.y:e.ll.y}
814,ur:{x:r,y:e.ur.y<t.ur.y?e.ur.y:t.ur.y}}},h=Number.EPSILON;void 0===h&&(h=Math.pow(2,-52));var p=h*h,f=function(e,t){if(-h<e&&e<h&&-h<t&&t<h)return 0;var n=e-t;return n*n<p*e*t?0:e<t?-1:1},m=function(){function t(){e(this,t),this.reset()}return r(t,[{key:"reset",value:function(){this.xRounder=new g,this.yRounder=new g}},{key:"round",value:function(e,t){return{x:this.xRounder.round(e),y:this.yRounder.round(t)}}}]),t}(),g=function(){function t(){e(this,t),this.tree=new c,this.round(0)}return r(t,[{key:"round",value:function(e){var t=this.tree.add(e),n=this.tree.prev(t);if(null!==n&&0===f(t.key,n.key))return this.tree.remove(e),n.key;var r=this.tree.next(t);return null!==r&&0===f(t.key,r.key)?(this.tree.remove(e),r.key):e}}]),t}(),v=new m,y=function(e,t){return e.x*t.y-e.y*t.x},b=function(e,t){return e.x*t.x+e.y*t.y},_=function(e,t,n){var r={x:t.x-e.x,y:t.y-e.y},i={x:n.x-e.x,y:n.y-e.y},o=y(r,i);return f(o,0)},w=function(e){return Math.sqrt(b(e,e))},x=function(e,t,n){var r={x:t.x-e.x,y:t.y-e.y},i={x:n.x-e.x,y:n.y-e.y};return b(i,r)/w(i)/w(r)},C=function(e,t,n){return 0===t.y?null:{x:e.x+t.x/t.y*(n-e.y),y:n}},S=function(e,t,n){return 0===t.x?null:{x:n,y:e.y+t.y/t.x*(n-e.x)}},E=function(){function t(n,r){e(this,t),void 0===n.events?n.events=[this]:n.events.push(this),this.point=n,this.isLeft=r}return r(t,null,[{key:"compare",value:function(e,n){var r=t.comparePoints(e.point,n.point);return 0!==r?r:(e.point!==n.point&&e.link(n),e.isLeft!==n.isLeft?e.isLeft?1:-1:T.compare(e.segment,n.segment))}},{key:"comparePoints",value:function(e,t){return e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0}}]),r(t,[{key:"link",value:function(e){if(e.point===this.point)throw new Error("Tried to link already linked events");for(var t=e.point.events,n=0,r=t.length;n<r;n++){var i=t[n];this.point.events.push(i),i.point=this.point}this.checkForConsuming()}},{key:"checkForConsuming",value:function(){for(var e=this.point.events.length,t=0;t<e;t++){var n=this.point.events[t];if(void 0===n.segment.consumedBy)for(var r=t+1;r<e;r++){var i=this.point.events[r];void 0===i.consumedBy&&n.otherSE.point.events===i.otherSE.point.events&&n.segment.consume(i.segment)}}}},{key:"getAvailableLinkedEvents",value:function(){for(var e=[],t=0,n=this.point.events.length;t<n;t++){var r=this.point.events[t];r!==this&&!r.segment.ringOut&&r.segment.isInResult()&&e.push(r)}return e}},{key:"getLeftmostComparator",value:function(e){var t=this,n=new Map,r=function(r){var i,o,a,s,l,c=r.otherSE;n.set(r,{sine:(i=t.point,o=e.point,a=c.point,s={x:o.x-i.x,y:o.y-i.y},l={x:a.x-i.x,y:a.y-i.y},y(l,s)/w(l)/w(s)),cosine:x(t.point,e.point,c.point)})};return function(e,t){n.has(e)||r(e),n.has(t)||r(t);var i=n.get(e),o=i.sine,a=i.cosine,s=n.get(t),l=s.sine,c=s.cosine;return o>=0&&l>=0?a<c?1:a>c?-1:0:o<0&&l<0?a<c?-1:a>c?1:0:l<o?-1:l>o?1:0}}}]),t}(),k=0,T=function(){function t(n,r,i,o){e(this,t),this.id=++k,this.leftSE=n,n.segment=this,n.otherSE=r,this.rightSE=r,r.segment=this,r.otherSE=n,this.rings=i,this.windings=o}return r(t,null,[{key:"compare",value:function(e,t){var n=e.leftSE.point.x,r=t.leftSE.point.x,i=e.rightSE.point.x,o=t.rightSE.point.x;if(o<n)return 1;if(i<r)return-1;var a=e.leftSE.point.y,s=t.leftSE.point.y,l=e.rightSE.point.y,c=t.rightSE.point.y;if(n<r){if(s<a&&s<l)return 1;if(s>a&&s>l)return-1;var d=e.comparePoint(t.leftSE.point);if(d<0)return 1;if(d>0)return-1;var u=t.comparePoint(e.rightSE.point);return 0!==u?u:-1}if(n>r){if(a<s&&a<c)return-1;if(a>s&&a>c)return 1;var h=t.comparePoint(e.leftSE.point);if(0!==h)return h;var p=e.comparePoint(t.rightSE.point);return p<0?1:p>0?-1:1}if(a<s)return-1;if(a>s)return 1;if(i<o){var f=t.comparePoint(e.rightSE.point);if(0!==f)return f}if(i>o){var m=e.comparePoint(t.rightSE.point);if(m<0)return 1;if(m>0)return-1}if(i!==o){var g=l-a,v=i-n,y=c-s,b=o-r;if(g>v&&y<b)return 1;if(g<v&&y>b)return-1}return i>o?1:i<o||l<c?-1:l>c?1:e.id<t.id?-1:e.id>t.id?1:0}}]),r(t,[{key:"replaceRightSE",value:function(e){this.rightSE=e,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var e=this.leftSE.point.y,t=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:e<t?e:t},ur:{x:this.rightSE.point.x,y:e>t?e:t}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(e){return e.x===this.leftSE.point.x&&e.y===this.leftSE.point.y||e.x===this.rightSE.point.x&&e.y===this.rightSE.point.y}},{key:"comparePoint",value:function(e){if(this.isAnEndpoint(e))return 0;
814var t=this.leftSE.point,n=this.rightSE.point,r=this.vector();if(t.x===n.x)return e.x===t.x?0:e.x<t.x?1:-1;var i=(e.y-t.y)/r.y,o=t.x+i*r.x;if(e.x===o)return 0;var a=(e.x-t.x)/r.x,s=t.y+a*r.y;return e.y===s?0:e.y<s?-1:1}},{key:"getIntersection",value:function(e){var t=this.bbox(),n=e.bbox(),r=u(t,n);if(null===r)return null;var i=this.leftSE.point,o=this.rightSE.point,a=e.leftSE.point,s=e.rightSE.point,l=d(t,a)&&0===this.comparePoint(a),c=d(n,i)&&0===e.comparePoint(i),h=d(t,s)&&0===this.comparePoint(s),p=d(n,o)&&0===e.comparePoint(o);if(c&&l)return p&&!h?o:!p&&h?s:null;if(c)return h&&i.x===s.x&&i.y===s.y?null:i;if(l)return p&&o.x===a.x&&o.y===a.y?null:a;if(p&&h)return null;if(p)return o;if(h)return s;var f=function(e,t,n,r){if(0===t.x)return S(n,r,e.x);if(0===r.x)return S(e,t,n.x);if(0===t.y)return C(n,r,e.y);if(0===r.y)return C(e,t,n.y);var i=y(t,r);if(0==i)return null;var o={x:n.x-e.x,y:n.y-e.y},a=y(o,t)/i,s=y(o,r)/i;return{x:(e.x+s*t.x+(n.x+a*r.x))/2,y:(e.y+s*t.y+(n.y+a*r.y))/2}}(i,this.vector(),a,e.vector());return null===f?null:d(r,f)?v.round(f.x,f.y):null}},{key:"split",value:function(e){var n=[],r=void 0!==e.events,i=new E(e,!0),o=new E(e,!1),a=this.rightSE;this.replaceRightSE(o),n.push(o),n.push(i);var s=new t(i,a,this.rings.slice(),this.windings.slice());return E.comparePoints(s.leftSE.point,s.rightSE.point)>0&&s.swapEvents(),E.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),r&&(i.checkForConsuming(),o.checkForConsuming()),n}},{key:"swapEvents",value:function(){var e=this.rightSE;this.rightSE=this.leftSE,this.leftSE=e,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var t=0,n=this.windings.length;t<n;t++)this.windings[t]*=-1}},{key:"consume",value:function(e){for(var n=this,r=e;n.consumedBy;)n=n.consumedBy;for(;r.consumedBy;)r=r.consumedBy;var i=t.compare(n,r);if(0!==i){if(i>0){var o=n;n=r,r=o}if(n.prev===r){var a=n;n=r,r=a}for(var s=0,l=r.rings.length;s<l;s++){var c=r.rings[s],d=r.windings[s],u=n.rings.indexOf(c);-1===u?(n.rings.push(c),n.windings.push(d)):n.windings[u]+=d}r.rings=null,r.windings=null,r.consumedBy=n,r.leftSE.consumedBy=n.leftSE,r.rightSE.consumedBy=n.rightSE}}},{key:"prevInResult",value:function(){return void 0!==this._prevInResult||(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null),this._prevInResult}},{key:"beforeState",value:function(){if(void 0!==this._beforeState)return this._beforeState;if(this.prev){var e=this.prev.consumedBy||this.prev;this._beforeState=e.afterState()}else this._beforeState={rings:[],windings:[],multiPolys:[]};return this._beforeState}},{key:"afterState",value:function(){if(void 0!==this._afterState)return this._afterState;var e=this.beforeState();this._afterState={rings:e.rings.slice(0),windings:e.windings.slice(0),multiPolys:[]};for(var t=this._afterState.rings,n=this._afterState.windings,r=this._afterState.multiPolys,i=0,o=this.rings.length;i<o;i++){var a=this.rings[i],s=this.windings[i],l=t.indexOf(a);-1===l?(t.push(a),n.push(s)):n[l]+=s}for(var c=[],d=[],u=0,h=t.length;u<h;u++)if(0!==n[u]){var p=t[u],f=p.poly;if(-1===d.indexOf(f))if(p.isExterior)c.push(f);else{-1===d.indexOf(f)&&d.push(f);var m=c.indexOf(p.poly);-1!==m&&c.splice(m,1)}}for(var g=0,v=c.length;g<v;g++){var y=c[g].multiPoly;-1===r.indexOf(y)&&r.push(y)}return this._afterState}},{key:"isInResult",value:function(){if(this.consumedBy)return!1;if(void 0!==this._isInResult)return this._isInResult;var e=this.beforeState().multiPolys,t=this.afterState().multiPolys;switch(D.type){case"union":var n=0===e.length,r=0===t.length;this._isInResult=n!==r;break;case"intersection":var i,o;e.length<t.length?(i=e.length,o=t.length):(i=t.length,o=e.length),this._isInResult=o===D.numMultiPolys&&i<o;break;case"xor":var a=Math.abs(e.length-t.length);this._isInResult=a%2==1;break;case"difference":var s=function(e){return 1===e.length&&e[0].isSubject};this._isInResult=s(e)!==s(t);break;default:throw new Error("Unrecognized operation type found ".concat(D.type))}return this._isInResult}}],[{key:"fromRing",value:function(e,n,r){var i,o,a,s=E.comparePoints(e,n
814);if(s<0)i=e,o=n,a=1;else{if(!(s>0))throw new Error("Tried to create degenerate segment at [".concat(e.x,", ").concat(e.y,"]"));i=n,o=e,a=-1}return new t(new E(i,!0),new E(o,!1),[r],[a])}}]),t}(),O=function(){function t(n,r,i){if(e(this,t),!Array.isArray(n)||0===n.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=r,this.isExterior=i,this.segments=[],"number"!=typeof n[0][0]||"number"!=typeof n[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var o=v.round(n[0][0],n[0][1]);this.bbox={ll:{x:o.x,y:o.y},ur:{x:o.x,y:o.y}};for(var a=o,s=1,l=n.length;s<l;s++){if("number"!=typeof n[s][0]||"number"!=typeof n[s][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var c=v.round(n[s][0],n[s][1]);c.x===a.x&&c.y===a.y||(this.segments.push(T.fromRing(a,c,this)),c.x<this.bbox.ll.x&&(this.bbox.ll.x=c.x),c.y<this.bbox.ll.y&&(this.bbox.ll.y=c.y),c.x>this.bbox.ur.x&&(this.bbox.ur.x=c.x),c.y>this.bbox.ur.y&&(this.bbox.ur.y=c.y),a=c)}o.x===a.x&&o.y===a.y||this.segments.push(T.fromRing(a,o,this))}return r(t,[{key:"getSweepEvents",value:function(){for(var e=[],t=0,n=this.segments.length;t<n;t++){var r=this.segments[t];e.push(r.leftSE),e.push(r.rightSE)}return e}}]),t}(),$=function(){function t(n,r){if(e(this,t),!Array.isArray(n))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new O(n[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(var i=1,o=n.length;i<o;i++){var a=new O(n[i],this,!1);a.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=a.bbox.ll.x),a.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=a.bbox.ll.y),a.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=a.bbox.ur.x),a.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=a.bbox.ur.y),this.interiorRings.push(a)}this.multiPoly=r}return r(t,[{key:"getSweepEvents",value:function(){for(var e=this.exteriorRing.getSweepEvents(),t=0,n=this.interiorRings.length;t<n;t++)for(var r=this.interiorRings[t].getSweepEvents(),i=0,o=r.length;i<o;i++)e.push(r[i]);return e}}]),t}(),P=function(){function t(n,r){if(e(this,t),!Array.isArray(n))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{"number"==typeof n[0][0][0]&&(n=[n])}catch(e){}this.polys=[],this.bbox={ll:{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY},ur:{x:Number.NEGATIVE_INFINITY,y:Number.NEGATIVE_INFINITY}};for(var i=0,o=n.length;i<o;i++){var a=new $(n[i],this);a.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=a.bbox.ll.x),a.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=a.bbox.ll.y),a.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=a.bbox.ur.x),a.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=a.bbox.ur.y),this.polys.push(a)}this.isSubject=r}return r(t,[{key:"getSweepEvents",value:function(){for(var e=[],t=0,n=this.polys.length;t<n;t++)for(var r=this.polys[t].getSweepEvents(),i=0,o=r.length;i<o;i++)e.push(r[i]);return e}}]),t}(),I=function(){function t(n){e(this,t),this.events=n;for(var r=0,i=n.length;r<i;r++)n[r].segment.ringOut=this;this.poly=null}return r(t,null,[{key:"factory",value:function(e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];if(o.isInResult()&&!o.ringOut){for(var a=null,s=o.leftSE,l=o.rightSE,c=[s],d=s.point,u=[];a=s,s=l,c.push(s),s.point!==d;)for(;;){var h=s.getAvailableLinkedEvents();if(0===h.length){var p=c[0].point,f=c[c.length-1].point;throw new Error("Unable to complete output ring starting at [".concat(p.x,",")+" ".concat(p.y,"]. Last matching segment found ends at")+" [".concat(f.x,", ").concat(f.y,"]."))}if(1===h.length){l=h[0].otherSE;break}for(var m=null,g=0,v=u.length;g<v;g++)if(u[g].point===s.point){m=g;break}if(null===m){u.push({index:c.length,point:s.point});var y=s.getLeftmostComparator(a);l=h.sort(y)[0].otherSE;break}var b=u.splice(m)[0],_=c.splice(b.index);_.unshift(_[0].otherSE),n.push(new t(_.reverse()))}n.push(new t(c))}}return n}}]),r(t,[{key:"getGeom",value:function(){for(var e=this.events[0].point,t=[e],n=1,r=this.events.length-1;n<r;n++){var i=this.events[n].point,o=this.events[n+1].point;0!==_(i,e,o)&&(t.push(i),e=i)}if(1===t.length)return null;var a=t[0],s=t[1];0===_(a,e,s)&&t.shift(),t.push(t[0]);for(var l=this.isExteriorRing()?1:-1,c=this.isExteriorRing()?0:t.length-1,d=this.isExteriorRing()?t.length:-1,u=[],h=c;h!=d;h+=l)u.push([t[h].x,t[h].y]);return u}},{key:"isExteriorRing",value:function(){if(void 0===this._isExteriorRing){var e=this.enclosingRing();this._isExteriorRing=!e||!e.isExteriorRing()}return this._isExteriorRing}},{key:"enclosingRing",value:function(){return void 0===this._enclosingRing&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}},{key:"_calcEnclosingRing",value:function(){for(var e=this.events[0],t=1,n=this.events.length;t<n;t++){var r=this.events[t];E.compare(e,r)>0&&(e=r)}for(var i=e.segment.prevInResult(),o=i?i.prevInResult():null;;){if(!i)return null;if(!o)return i.ringOut;if(o.ringOut!==i.ringOut)return o.ringOut.enclosingRing()!==i.ringOut?i.ringOut:i.ringOut.enclosingRing();i=o.prevInResult(),o=i?i.prevInResult():null}}}]),t}(),L=function(){function t(n){e(this,t),this.exteriorRing=n,n.poly=this,this.interiorRings=[]}return r(t,[{key:"addInterior",value:function(e){this.interiorRings.push(e),e.poly=this}},{key:"getGeom",value:function(){var e=[this.exteriorRing.getGeom()];if(null===e[0])return null;for(var t=0,n=this.interiorRings.length;t<n;t++){var r=this.interiorRings[t].getGeom();null!==r&&e.push(r)}return e}}]),t}(),A=function(){function t(n){e(this,t),this.rings=n,this.polys=this._composePolys(n)}return r(t,[{key:"getGeom",value:function(){for(var e=[],t=0,n=this.polys.length;t<n;t++){var r=this.polys[t].getGeom();null!==r&&e.push(r)}return e}},{key:"_composePolys",value:function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];if(!i.poly)if(i.isExteriorRing())t.push(new L(i));else{var o=i.enclosingRing();
814o.poly||t.push(new L(o)),o.poly.addInterior(i)}}return t}}]),t}(),M=function(){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.compare;e(this,t),this.queue=n,this.tree=new c(r),this.segments=[]}return r(t,[{key:"process",value:function(e){var t=e.segment,n=[];if(e.consumedBy)return e.isLeft?this.queue.remove(e.otherSE):this.tree.remove(t),n;var r=e.isLeft?this.tree.insert(t):this.tree.find(t);if(!r)throw new Error("Unable to find segment #".concat(t.id," ")+"[".concat(t.leftSE.point.x,", ").concat(t.leftSE.point.y,"] -> ")+"[".concat(t.rightSE.point.x,", ").concat(t.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var i=r,o=r,a=void 0,s=void 0;void 0===a;)null===(i=this.tree.prev(i))?a=null:void 0===i.key.consumedBy&&(a=i.key);for(;void 0===s;)null===(o=this.tree.next(o))?s=null:void 0===o.key.consumedBy&&(s=o.key);if(e.isLeft){var l=null;if(a){var c=a.getIntersection(t);if(null!==c&&(t.isAnEndpoint(c)||(l=c),!a.isAnEndpoint(c)))for(var d=this._splitSafely(a,c),u=0,h=d.length;u<h;u++)n.push(d[u])}var p=null;if(s){var f=s.getIntersection(t);if(null!==f&&(t.isAnEndpoint(f)||(p=f),!s.isAnEndpoint(f)))for(var m=this._splitSafely(s,f),g=0,v=m.length;g<v;g++)n.push(m[g])}if(null!==l||null!==p){var y;y=null===l?p:null===p||E.comparePoints(l,p)<=0?l:p,this.queue.remove(t.rightSE),n.push(t.rightSE);for(var b=t.split(y),_=0,w=b.length;_<w;_++)n.push(b[_])}n.length>0?(this.tree.remove(t),n.push(e)):(this.segments.push(t),t.prev=a)}else{if(a&&s){var x=a.getIntersection(s);if(null!==x){if(!a.isAnEndpoint(x))for(var C=this._splitSafely(a,x),S=0,k=C.length;S<k;S++)n.push(C[S]);if(!s.isAnEndpoint(x))for(var T=this._splitSafely(s,x),O=0,$=T.length;O<$;O++)n.push(T[O])}}this.tree.remove(t)}return n}},{key:"_splitSafely",value:function(e,t){this.tree.remove(e);var n=e.rightSE;this.queue.remove(n);var r=e.split(t);return r.push(n),void 0===e.consumedBy&&this.tree.insert(e),r}}]),t}(),j=void 0!==t&&t.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,R=void 0!==t&&t.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6,D=new(function(){function t(){e(this,t)}return r(t,[{key:"run",value:function(e,t,n){D.type=e,v.reset();for(var r=[new P(t,!0)],i=0,o=n.length;i<o;i++)r.push(new P(n[i],!1));if(D.numMultiPolys=r.length,"difference"===D.type)for(var a=r[0],s=1;s<r.length;)null!==u(r[s].bbox,a.bbox)?s++:r.splice(s,1);if("intersection"===D.type)for(var l=0,d=r.length;l<d;l++)for(var h=r[l],p=l+1,f=r.length;p<f;p++)if(null===u(h.bbox,r[p].bbox))return[];for(var m=new c(E.compare),g=0,y=r.length;g<y;g++)for(var b=r[g].getSweepEvents(),_=0,w=b.length;_<w;_++)if(m.insert(b[_]),m.size>j)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var x=new M(m),C=m.size,S=m.pop();S;){var k=S.key;if(m.size===C){var T=k.segment;throw new Error("Unable to pop() ".concat(k.isLeft?"left":"right"," SweepEvent ")+"[".concat(k.point.x,", ").concat(k.point.y,"] from segment #").concat(T.id," ")+"[".concat(T.leftSE.point.x,", ").concat(T.leftSE.point.y,"] -> ")+"[".concat(T.rightSE.point.x,", ").concat(T.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(m.size>j)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(x.segments.length>R)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var O=x.process(k),$=0,L=O.length;$<L;$++){var F=O[$];void 0===F.consumedBy&&m.insert(F)}C=m.size,S=m.pop()}v.reset();var N=I.factory(x.segments);return new A(N).getGeom()}}]),t}());return{union:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return D.run("union",e,n)},intersection:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return D.run("intersection",e,n)},xor:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return D.run("xor",e,n)},difference:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return D.run("difference",e,n)}}}()}).call(this,n(275))},function(e,t,n){n.d(t,"a",(function(){return b}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(34),l=n.n(s),c=n(88),d=n.n(c),u=n(53),h=n.n(u),p=n(57),f=n.n(p),m=n(31),g=n.n(m),v=n(50),y=n(3);var b=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(e){var r;i()(this,n);var o=e||{},a=document.createElement("div");(r=t.call(this,{element:a,target:o.target})).pmaViewport=o.pmaViewport,r.stateManager=o.stateManager?o.stateManager:null,r.stateManager?(r.stateManager.layerSwitch||(r.stateManager.layerSwitch={},r.stateManager.layerSwitch.collapsed=!!o.collapsed&&o.collapsed),r.collapsed_=!0===r.stateManager.layerSwitch.collapsed):r.collapsed_=!!o.collapsed&&o.collapsed;var s=o.className?o.className:"ol-layerswitch",c=o.tipLabel?o.tipLabel:"Channels",d=o.collapseLabel?o.collapseLabel:"»";r.collapseLabel_=document.createElement("span"),r.collapseLabel_.innerHTML=d;var u=o.label?o.label:"«";r.label_=document.createElement("span"),r.label_.innerHTML=u;var h=r.collapsed_?r.collapseLabel_:r.label_,p=document.createElement("button");
814p.type="button",p.title=c,p.appendChild(h),p.className="collapse-button",r.btnEventUsed="click","ontouchstart"in document.documentElement&&(r.btnEventUsed="touchstart"),p.addEventListener(r.btnEventUsed,r.buttonClk.bind(l()(r)),!1);var f=s+" ol-unselectable ol-control "+(r.collapsed_?" ol-collapsed":"");return a.className=f,a.appendChild(p),r.panel_=document.createElement("ul"),r.panel_.className="panel",a.appendChild(r.panel_),r}return a()(n,[{key:"setMap",value:function(e){d()(g()(n.prototype),"setMap",this).call(this,e),this.drawPanel()}},{key:"setLayersVisibility",value:function(e){if(e&&0!=e.length&&this.getMap())for(var t=this.getMap().getLayers().getArray(),n=0;n<e.length;n++){var r=e[n];if(r.name)for(var i=t.length-1;i>=0;i--)if(t[i].getLayers)for(var o=t[i].getLayers().getArray(),a=o.length-1;a>=0;a--){var s=o[a],l=s.get("title")||s.get("name");l==r.name&&(s.setVisible(r.visible),null!=r.opacity&&s.setOpacity(r.opacity));var c=this.panel_.querySelector("li[data-name='".concat(l,"']"));c&&(c.querySelector("input[type=checkbox]").checked=s.getVisible(),c.querySelector("input[type=range]").value=100*s.getOpacity())}}}},{key:"getLayersVisibility",value:function(){if(this.getMap()){for(var e=[],t=this.getMap().getLayers().getArray(),n=t.length-1;n>=0;n--)if(t[n].getLayers)for(var r=t[n].getLayers().getArray(),i=r.length-1;i>=0;i--){var o=r[i],a=o.get("title")||o.get("name");e.push({name:a,visible:o.getVisible(),opacity:o.getOpacity()})}return e}}},{key:"drawPanel",value:function(){if(this.getMap()){var e=this.getMap().getLayers().getArray();this.panel_.innerHTML="";for(var t=e.length-1;t>=0;t--)if(e[t].getLayers)for(var n=e[t].getLayers().getArray(),r=n.length-1;r>=0;r--){var i=n[r],o=document.createElement("li");o.setAttribute("data-name",i.get("title")||i.get("name")),o.className=i.getVisible()?"visible ":" ",this.panel_.appendChild(o);var a="<input type='checkbox' "+(i.getVisible()?"checked='checked' ":"")+"/>";a+="<label title='"+(i.get("title")||i.get("name"))+"'>"+(i.get("title")||i.get("name"))+"</label>",a+='<input type="range" min="0" max="100" value="'+100*i.getOpacity()+'" name="layer-opacity" >',o.innerHTML=a;var s=o.querySelector("input[type=checkbox]");s.addEventListener("change",c.bind(this,i,s),!1),o.querySelector("label").addEventListener(this.btnEventUsed,c.bind(this,i,s),!1);var l=o.querySelector("input[type=range]");l.addEventListener("change",d.bind(this,i,l),!1)}}function c(e,t){e.setVisible(!e.getVisible()),t.checked=e.getVisible(),this.pmaViewport&&this.pmaViewport.fireEvent(y.g.AnnotationLayerChanged,this.pmaViewport)}function d(e,t){e.setOpacity(t.value/100),this.pmaViewport&&this.pmaViewport.fireEvent(y.g.AnnotationLayerChanged,this.pmaViewport)}}},{key:"getCollapsed",value:function(){return(" "+this.element.className+" ").indexOf(" ol-collapsed ")>-1}},{key:"setCollapsed",value:function(e){this.getCollapsed()!=e&&this.buttonClk()}},{key:"buttonClk",value:function(e){e&&(e.preventDefault(),e.stopPropagation()),(" "+this.element.className+" ").indexOf(" ol-collapsed ")>-1?this.element.className=this.element.className.replace(/ol-collapsed/g,""):this.element.className+=" ol-collapsed",this.collapsed_?this.collapseLabel_.parentNode.replaceChild(this.label_,this.collapseLabel_):this.label_.parentNode.replaceChild(this.collapseLabel_,this.label_),this.collapsed_=!this.collapsed_,this.stateManager&&(this.stateManager.layerSwitch.collapsed=this.collapsed_)}}]),n}(v.a)},function(e,t,n){n.d(t,"a",(function(){return x}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(34),l=n.n(s),c=n(88),d=n.n(c),u=n(53),h=n.n(u),p=n(57),f=n.n(p),m=n(31),g=n.n(m),v=n(50),y=n(98),b=n(211),_=n(37),w=n(115);var x=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(e){var r;i()(this,n);var o=e||{},a=document.createElement("div");if((r=t.call(this,{element:a,target:o.target})).collapsed_=!1,!0===o.collapsed&&(r.collapsed_=!0),a.className="ol-control ",o.target)r.magnifierDiv=a;else{a.className+=" ol-magnifier",r.magnifierDiv=document.createElement("div"),r.magnifierDiv.className="magnifier-map-container",a.appendChild(r.magnifierDiv);var s=document.createElement("button");s.type="button",s.title="Enlarge",s.className="size",s.innerHTML="+","ontouchstart"in document.documentElement?s.addEventListener("touchstart",r.enlargeButtonClick.bind(l()(r)),!1):s.addEventListener("click",r.enlargeButtonClick.bind(l()(r)),!1),a.appendChild(s);var c=document.createElement("button");c.type="button",c.title="Shrink",c.className="size",c.innerHTML="-","ontouchstart"in document.documentElement?c.addEventListener("touchstart",r.shrinkButtonClick.bind(l()(r)),!1):c.addEventListener("click",r.shrinkButtonClick.bind(l()(r)),!1),a.appendChild(c)}return r.magnifierMap=null,r.mouseMoveFunc=null,r}return a()(n,[{key:"handleMouseMove",value:function(e){if(!0!==this.getCollapsed()){var t=this.getMap(),n=t.getEventPixel(e),r=t.getCoordinateFromPixel(n);r&&this.magnifierMap.getView().setCenter(r)}}},{key:"getCollapsed",value:function(){return(" "+this.element.className+" ").indexOf(" ol-collapsed ")>-1}},{key:"setCollapsed",value:function(e){this.getCollapsed()!=e&&((" "+this.element.className+" ").indexOf(" ol-collapsed ")>-1?(this.element.className=this.element.className.replace(/ol-collapsed/g,""),this.magnifierMap&&this.magnifierMap.updateSize()):this.element.className+=" ol-collapsed"),this.collapsed_=e}},{key:"changeMagnifierSize",value:function(e){if(this.element){var t=Math.sqrt(this.element.clientHeight*this.element.clientHeight+this.element.clientWidth*this.element.clientWidth);if(t<60||t>600)return;this.element.style.width=this.element.clientWidth*e+"px",this.element.style.height=this.element.clientHeight*e+"px"}this.magnifierMap&&this.magnifierMap.updateSize()}},{key:"setMap",value:function(e){if(e){if(e!==this.getMap()){d()(g()(n.prototype),"setMap",this).call(this,e);var t=e.getView(),r=new y.a({projection:t.getProjection(),center:t.getCenter(),extent:t.getProjection().getExtent(),maxResolution:1,minResolution:1,zoom:0}),i=e.getLayers().item(0);this.magnifierMap=new b.a({controls:new _.a,interactions:new _.a,target:this.magnifierDiv,view:r,layers:[new w.a({source:i.getSource()})]});var o=!1;this.magnifierMap.on("change:size",function(){o||(o=!0,this.magnifierMap.updateSize(),o=!1)}.bind(this)),this.mouseMoveFunc=this.handleMouseMove.bind(this),e.getViewport().addEventListener("mousemove",this.mouseMoveFunc),this.collapsed_!==this.getCollapsed()&&this.setCollapsed(this.collapsed_)}}else{if(this.magnifierMap){var a=this.element;a&&a.parentElement.removeChild(a)}this.getMap()&&this.mouseMoveFunc&&this.getMap().getViewport().removeEventListener("mousemove",this.mouseMoveFunc)}}},{key:"enlargeButtonClick",value:function(e){e&&(e.preventDefault(),e.stopPropagation()),this.changeMagnifierSize(1.25)}},{key:"shrinkButtonClick",value:function(e){e&&(e.preventDefault(),e.stopPropagation()),this.changeMagnifierSize(.75)}}]),n}(v.a)},function(e,t,n){n.d(t,"a",(function(){return l}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(41),l=function(){function e(t,n){i()(this,e),Object(s.b)()&&(n instanceof Array?(this.serverSessions=n,this.context=t,this.context.registerAuthenticationProvider(this)):console.error("Expected array of server credentials"))}return a()(e,[{key:"authenticate",value:function(e,t,n){for(var r=0,i=this.serverSessions.length;r<i;r++)if(this.serverSessions[r].serverUrl===e)return t(this.serverSessions[r].sessionId),!0;return!1}},{key:"updateSessionId",value:function(e,t){for(var n=0,r=this.serverSessions.length;n<r;n++)if(this.serverSessions[n].serverUrl===e){this.serverSessions[n].sessionId=t;break}}}]),e}()},function(e,t,n){var r,i,o=n(60),a=n(37),s=n(51),l=n(11),c=n(75),d=n(126),u=n(111),h=n(35),p=n(97),f=n(92),m=n(59),g=n(32),v=n(5),y=n(12),b=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=function(e){function t(t,n){var r=e.call(this,t)||this;r.map_=t,r.clickTimeoutId_,r.emulateClicks_=!1,r.dragging_=!1,r.dragListenerKeys_=[],r.moveTolerance_=void 0===n?1:n,r.down_=null;var i=r.map_.getViewport();return r.activePointers_=[],r.trackedTouches_={},r.element_=i,r.pointerdownListenerKey_=Object(y.listen)(i,p.a.POINTERDOWN,r.handlePointerDown_,r),r.originalPointerMoveEvent_,r.relayedListenerKey_=Object(y.listen)(i,p.a.POINTERMOVE,r.relayMoveEvent_,r),r.boundHandleTouchMove_=r.handleTouchMove_.bind(r),r.element_.addEventListener(l.a.TOUCHMOVE,r.boundHandleTouchMove_,!!m.e&&{passive:!1}),r}return b(t,e),t.prototype.emulateClick_=function(e){var t=new u.a(h.a.CLICK,this.map_,e);this.dispatchEvent(t),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,t=new u.a(h.a.DBLCLICK,this.map_,e),this.dispatchEvent(t)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var t=new u.a(h.a.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}.bind(this),250)},t.prototype.updateActivePointers_=function(e){var t=e,n=t.pointerId;if(t.type==h.a.POINTERUP||t.type==h.a.POINTERCANCEL){for(var r in delete this.trackedTouches_[n],this.trackedTouches_)if(this.trackedTouches_[r].target!==t.target){delete this.trackedTouches_[r];break}}else t.type!=h.a.POINTERDOWN&&t.type!=h.a.POINTERMOVE||(this.trackedTouches_[n]=t);this.activePointers_=Object(v.c)(this.trackedTouches_)},t.prototype.handlePointerUp_=function(e){this.updateActivePointers_(e);var t=new u.a(h.a.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(t),this.emulateClicks_&&!t.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(y.unlistenByKey),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},t.prototype.isMouseActionButton_=function(e){return 0===e.button},t.prototype.handlePointerDown_=function(e){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(e);var t=new u.a(h.a.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);for(var n in this.dispatchEvent(t),this.down_={},e){var r=e[n];this.down_[n]="function"==typeof r?g.c:r}if(0===this.dragListenerKeys_.length){var i=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Object(y.listen)(i,h.a.POINTERMOVE,this.handlePointerMove_,this),Object(y.listen)(i,h.a.POINTERUP,this.handlePointerUp_,this),Object(y.listen)(this.element_,h.a.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push(Object(y.listen)(this.element_.getRootNode(),h.a.POINTERUP,this.handlePointerUp_,this))}},t.prototype.handlePointerMove_=function(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;var t=new u.a(h.a.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(t)}},t.prototype.relayMoveEvent_=function(e){this.originalPointerMoveEvent_=e;var t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new u.a(h.a.POINTERMOVE,this.map_,e,t))},t.prototype.handleTouchMove_=function(e){var t=this.originalPointerMoveEvent_;t&&!t.defaultPrevented||"boolean"==typeof e.cancelable&&!0!==e.cancelable||e.preventDefault()},t.prototype.isMoving_=function(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_},t.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(y.unlistenByKey)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(l.a.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(y.unlistenByKey)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(y.unlistenByKey),this.dragListenerKeys_.length=0,this.element_=null,e.prototype.disposeInternal.call(this)},t}(f.a),w=n(136),x=n(96),C=n(62),S=n(100),E=n(73),k=n(190),T=n(98),O=n(47),$=n(10),P=n(15),I=n(0),L=n(1),A=n(4),M=n(30),j=n(23),R=(i=function(e,t){return(i=Object.
814setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function D(e){e instanceof c.a?e.setMapInternal(null):e instanceof d.b&&e.getLayers().forEach(D)}var F=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un;var r=function(e){var t=null;void 0!==e.keyboardEventTarget&&(t="string"==typeof e.keyboardEventTarget?document.getElementById(e.keyboardEventTarget):e.keyboardEventTarget);var n,r,i,o={},s=e.layers&&"function"==typeof e.layers.getLayers?e.layers:new d.b({layers:e.layers});return o[C.a.LAYERGROUP]=s,o[C.a.TARGET]=e.target,o[C.a.VIEW]=e.view instanceof T.a?e.view:new T.a,void 0!==e.controls&&(Array.isArray(e.controls)?n=new a.a(e.controls.slice()):(Object(P.a)("function"==typeof e.controls.getArray,47),n=e.controls)),void 0!==e.interactions&&(Array.isArray(e.interactions)?r=new a.a(e.interactions.slice()):(Object(P.a)("function"==typeof e.interactions.getArray,48),r=e.interactions)),void 0!==e.overlays?Array.isArray(e.overlays)?i=new a.a(e.overlays.slice()):(Object(P.a)("function"==typeof e.overlays.getArray,49),i=e.overlays):i=new a.a,{controls:n,interactions:r,keyboardEventTarget:t,overlays:i,values:o}}(t);n.renderComplete_,n.loaded_=!0,n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,n.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:m.a,n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=Object($.c)(),n.pixelToCoordinateTransform_=Object($.c)(),n.frameIndex_=0,n.frameState_=null,n.previousExtent_=null,n.viewPropertyListenerKey_=null,n.viewChangeListenerKey_=null,n.layerGroupPropertyListenerKeys_=null,n.viewport_=document.createElement("div"),n.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),n.viewport_.style.position="relative",n.viewport_.style.overflow="hidden",n.viewport_.style.width="100%",n.viewport_.style.height="100%",n.overlayContainer_=document.createElement("div"),n.overlayContainer_.style.position="absolute",n.overlayContainer_.style.zIndex="0",n.overlayContainer_.style.width="100%",n.overlayContainer_.style.height="100%",n.overlayContainer_.style.pointerEvents="none",n.overlayContainer_.className="ol-overlaycontainer",n.viewport_.appendChild(n.overlayContainer_),n.overlayContainerStopEvent_=document.createElement("div"),n.overlayContainerStopEvent_.style.position="absolute",n.overlayContainerStopEvent_.style.zIndex="0",n.overlayContainerStopEvent_.style.width="100%",n.overlayContainerStopEvent_.style.height="100%",n.overlayContainerStopEvent_.style.pointerEvents="none",n.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",n.viewport_.appendChild(n.overlayContainerStopEvent_),n.mapBrowserEventHandler_=null,n.moveTolerance_=t.moveTolerance,n.keyboardEventTarget_=r.keyboardEventTarget,n.targetChangeHandlerKeys_=null,n.controls=r.controls||new a.a,n.interactions=r.interactions||new a.a,n.overlays_=r.overlays,n.overlayIdIndex_={},n.renderer_=null,n.postRenderFunctions_=[],n.tileQueue_=new k.a(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addChangeListener(C.a.LAYERGROUP,n.handleLayerGroupChanged_),n.addChangeListener(C.a.VIEW,n.handleViewChanged_),n.addChangeListener(C.a.SIZE,n.handleSizeChanged_),n.addChangeListener(C.a.TARGET,n.handleTargetChanged_),n.setProperties(r.values);var i=n;return!t.view||t.view instanceof T.a||t.view.then((function(e){i.setView(new T.a(e))})),n.controls.addEventListener(s.a.ADD,function(e){e.element.setMap(this)}.bind(n)),n.controls.addEventListener(s.a.REMOVE,function(e){e.element.setMap(null)}.bind(n)),n.interactions.addEventListener(s.a.ADD,function(e){e.element.setMap(this)}.bind(n)),n.interactions.addEventListener(s.a.REMOVE,function(e){e.element.setMap(null)}.bind(n)),n.overlays_.addEventListener(s.a.ADD,function(e){this.addOverlayInternal_(e.element)}.bind(n)),n.overlays_.addEventListener(s.a.REMOVE,function(e){var t=e.element.getId();void 0!==t&&delete this.overlayIdIndex_[t.toString()],e.element.setMap(null)}
814.bind(n)),n.controls.forEach(function(e){e.setMap(this)}.bind(n)),n.interactions.forEach(function(e){e.setMap(this)}.bind(n)),n.overlays_.forEach(n.addOverlayInternal_.bind(n)),n}return R(t,e),t.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},t.prototype.addControl=function(e){this.getControls().push(e)},t.prototype.addInteraction=function(e){this.getInteractions().push(e)},t.prototype.addLayer=function(e){this.getLayerGroup().getLayers().push(e)},t.prototype.handleLayerAdd_=function(e){!function e(t,n){if(t instanceof c.a)t.setMapInternal(n);else if(t instanceof d.b)for(var r=t.getLayers().getArray(),i=0,o=r.length;i<o;++i)e(r[i],n)}(e.layer,this)},t.prototype.addOverlay=function(e){this.getOverlays().push(e)},t.prototype.addOverlayInternal_=function(e){var t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)},t.prototype.disposeInternal=function(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),e.prototype.disposeInternal.call(this)},t.prototype.forEachFeatureAtPixel=function(e,t,n){if(this.frameState_&&this.renderer_){var r=this.getCoordinateFromPixelInternal(e),i=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,o=void 0!==n.layerFilter?n.layerFilter:g.b,a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,i,a,t,null,o,null)}},t.prototype.getFeaturesAtPixel=function(e,t){var n=[];return this.forEachFeatureAtPixel(e,(function(e){n.push(e)}),t),n},t.prototype.getAllLayers=function(){var e=[];return function t(n){n.forEach((function(n){n instanceof d.b?t(n.getLayers()):e.push(n)}))}(this.getLayers()),e},t.prototype.forEachLayerAtPixel=function(e,t,n){if(this.frameState_&&this.renderer_){var r=n||{},i=void 0!==r.hitTolerance?r.hitTolerance:0,o=r.layerFilter||g.b;return this.renderer_.forEachLayerAtPixel(e,this.frameState_,i,t,o)}},t.prototype.hasFeatureAtPixel=function(e,t){if(!this.frameState_||!this.renderer_)return!1;var n=this.getCoordinateFromPixelInternal(e),r=void 0!==(t=void 0!==t?t:{}).layerFilter?t.layerFilter:g.b,i=void 0!==t.hitTolerance?t.hitTolerance:0,o=!1!==t.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,i,o,r,null)},t.prototype.getEventCoordinate=function(e){return this.getCoordinateFromPixel(this.getEventPixel(e))},t.prototype.getEventCoordinateInternal=function(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))},t.prototype.getEventPixel=function(e){var t=this.viewport_.getBoundingClientRect(),n="changedTouches"in e?e.changedTouches[0]:e;return[n.clientX-t.left,n.clientY-t.top]},t.prototype.getTarget=function(){return this.get(C.a.TARGET)},t.prototype.getTargetElement=function(){var e=this.getTarget();return void 0!==e?"string"==typeof e?document.getElementById(e):e:null},t.prototype.getCoordinateFromPixel=function(e){return Object(L.toUserCoordinate)(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())},t.prototype.getCoordinateFromPixelInternal=function(e){var t=this.frameState_;return t?Object($.a)(t.pixelToCoordinateTransform,e.slice()):null},t.prototype.getControls=function(){return this.controls},t.prototype.getOverlays=function(){return this.overlays_},t.prototype.getOverlayById=function(e){var t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getInteractions=function(){return this.interactions},t.prototype.getLayerGroup=function(){return this.get(C.a.LAYERGROUP)},t.prototype.setLayers=function(e){var t=this.getLayerGroup();if(e instanceof a.a)t.setLayers(e);else{var n=t.getLayers();n.clear(),n.extend(e)}},t.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},t.prototype.getLoadingOrNotReady=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,n=e.length;t<n;++t){var r=e[t];if(r.visible){var i=r.layer.getRenderer();if(i&&!i.ready)return!0;var o=r.layer.getSource();if(o&&o.loading)return!0}}return!1},t.prototype.getPixelFromCoordinate=function(e){var t=Object(L.fromUserCoordinate)(e,this.getView().getProjection());
814return this.getPixelFromCoordinateInternal(t)},t.prototype.getPixelFromCoordinateInternal=function(e){var t=this.frameState_;return t?Object($.a)(t.coordinateToPixelTransform,e.slice(0,2)):null},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.getSize=function(){return this.get(C.a.SIZE)},t.prototype.getView=function(){return this.get(C.a.VIEW)},t.prototype.getViewport=function(){return this.viewport_},t.prototype.getOverlayContainer=function(){return this.overlayContainer_},t.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},t.prototype.getOwnerDocument=function(){var e=this.getTargetElement();return e?e.ownerDocument:document},t.prototype.getTilePriority=function(e,t,n,r){return Object(k.b)(this.frameState_,e,t,n,r)},t.prototype.handleBrowserEvent=function(e,t){var n=t||e.type,r=new u.a(n,this,e);this.handleMapBrowserEvent(r)},t.prototype.handleMapBrowserEvent=function(e){if(this.frameState_){var t=e.originalEvent,n=t.type;if(n===p.a.POINTERDOWN||n===l.a.WHEEL||n===l.a.KEYDOWN){var r=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():r,o=t.target;if(this.overlayContainerStopEvent_.contains(o)||!(i===r?r.documentElement:i).contains(o))return}if(e.frameState=this.frameState_,!1!==this.dispatchEvent(e))for(var a=this.getInteractions().getArray().slice(),s=a.length-1;s>=0;s--){var c=a[s];if(c.getMap()===this&&c.getActive()&&this.getTargetElement()&&(!c.handleEvent(e)||e.propagationStopped))break}}},t.prototype.handlePostRender=function(){var e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){var n=this.maxTilesLoading_,r=n;if(e){var i=e.viewHints;if(i[O.a.ANIMATING]||i[O.a.INTERACTING]){var o=Date.now()-e.time>8;n=o?0:8,r=o?0:2}}t.getTilesLoading()<n&&(t.reprioritize(),t.loadMoreTiles(n,r))}e&&this.renderer_&&!e.animate&&(!0===this.renderComplete_?(this.hasListener(E.a.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(E.a.RENDERCOMPLETE,e),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new w.a(x.a.LOADEND,this,e)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new w.a(x.a.LOADSTART,this,e))));for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,e);a.length=0},t.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},t.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var e=0,t=this.targetChangeHandlerKeys_.length;e<t;++e)Object(y.unlistenByKey)(this.targetChangeHandlerKeys_[e]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(l.a.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(l.a.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Object(j.f)(this.viewport_)}var n=this.getTargetElement();if(n){for(var r in n.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new _(this,this.moveTolerance_),h.a)this.mapBrowserEventHandler_.addEventListener(h.a[r],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(l.a.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(l.a.WHEEL,this.boundHandleBrowserEvent_,!!m.e&&{passive:!1});var i=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:n;this.targetChangeHandlerKeys_=[Object(y.listen)(o,l.a.KEYDOWN,this.handleBrowserEvent,this),Object(y.listen)(o,l.a.KEYPRESS,this.handleBrowserEvent,this),Object(y.listen)(i,l.a.RESIZE,this.updateSize,this)]}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},t.prototype.handleTileChange_=function(){this.render()},t.prototype.handleViewPropertyChanged_=function(){this.render()},t.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Object(y.unlistenByKey)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(y.unlistenByKey)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var e=this.getView();e&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(y.listen)(e,S.a.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(y.listen)(e,l.a.CHANGE,this.handleViewPropertyChanged_,this),e.resolve
814Constraints(0)),this.render()},t.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(y.unlistenByKey),this.layerGroupPropertyListenerKeys_=null);var e=this.getLayerGroup();e&&(this.handleLayerAdd_(new d.a("addlayer",e)),this.layerGroupPropertyListenerKeys_=[Object(y.listen)(e,S.a.PROPERTYCHANGE,this.render,this),Object(y.listen)(e,l.a.CHANGE,this.render,this),Object(y.listen)(e,"addlayer",this.handleLayerAdd_,this),Object(y.listen)(e,"removelayer",this.handleLayerRemove_,this)]),this.render()},t.prototype.isRendered=function(){return!!this.frameState_},t.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},t.prototype.redrawText=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,n=e.length;t<n;++t){var r=e[t].layer;r.hasRenderer()&&r.getRenderer().handleFontsChanged()}},t.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},t.prototype.removeControl=function(e){return this.getControls().remove(e)},t.prototype.removeInteraction=function(e){return this.getInteractions().remove(e)},t.prototype.removeLayer=function(e){return this.getLayerGroup().getLayers().remove(e)},t.prototype.handleLayerRemove_=function(e){D(e.layer)},t.prototype.removeOverlay=function(e){return this.getOverlays().remove(e)},t.prototype.renderFrame_=function(e){var t=this,n=this.getSize(),r=this.getView(),i=this.frameState_,o=null;if(void 0!==n&&Object(M.b)(n)&&r&&r.isDef()){var a=r.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=r.getState();if(o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Object(I.getForViewAndSize)(s.center,s.resolution,s.rotation,n),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:n,tileQueue:this.tileQueue_,time:e,usedTiles:{},viewState:s,viewHints:a,wantedTiles:{},mapId:Object(A.c)(this),renderTargets:{}},s.nextCenter&&s.nextResolution){var l=isNaN(s.nextRotation)?s.rotation:s.nextRotation;o.nextExtent=Object(I.getForViewAndSize)(s.nextCenter,s.nextResolution,l,n)}}this.frameState_=o,this.renderer_.renderFrame(o),o&&(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),i&&(!this.previousExtent_||!Object(I.isEmpty)(this.previousExtent_)&&!Object(I.equals)(o.extent,this.previousExtent_))&&(this.dispatchEvent(new w.a(x.a.MOVESTART,this,i)),this.previousExtent_=Object(I.createOrUpdateEmpty)(this.previousExtent_)),this.previousExtent_&&!o.viewHints[O.a.ANIMATING]&&!o.viewHints[O.a.INTERACTING]&&!Object(I.equals)(o.extent,this.previousExtent_)&&(this.dispatchEvent(new w.a(x.a.MOVEEND,this,o)),Object(I.clone)(o.extent,this.previousExtent_))),this.dispatchEvent(new w.a(x.a.POSTRENDER,this,o)),this.renderComplete_=this.hasListener(x.a.LOADSTART)||this.hasListener(x.a.LOADEND)||this.hasListener(E.a.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){t.postRenderTimeoutHandle_=void 0,t.handlePostRender()}),0))},t.prototype.setLayerGroup=function(e){var t=this.getLayerGroup();t&&this.handleLayerRemove_(new d.a("removelayer",t)),this.set(C.a.LAYERGROUP,e)},t.prototype.setSize=function(e){this.set(C.a.SIZE,e)},t.prototype.setTarget=function(e){this.set(C.a.TARGET,e)},t.prototype.setView=function(e){if(!e||e instanceof T.a)this.set(C.a.VIEW,e);else{this.set(C.a.VIEW,new T.a);var t=this;e.then((function(e){t.setView(new T.a(e))}))}},t.prototype.updateSize=function(){var e=this.getTargetElement(),t=void 0;if(e){var n=getComputedStyle(e),r=e.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),i=e.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);isNaN(r)||isNaN(i)||(t=[r,i],!Object(M.b)(t)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(t),this.updateViewportSize_()},t.prototype.updateViewportSize_=function(){var e=this.getView();if(e){var t=void 0,n=getComputedStyle(this.viewport_);n.width&&n.height&&(t=[parseInt(n.width,10),parseInt(n.height,10)]),e.setViewportSize(t)}
814},t}(o.a);t.a=F},function(e,t,n){var r,i=n(116),o=n(32),a=n(4),s=n(10),l=n(0),c=n(171),d=n(75),u=n(27),h=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function p(e,t){c.a.expire()}var f,m=function(e){function t(t){var n=e.call(this)||this;return n.map_=t,n}return h(t,e),t.prototype.dispatchRenderEvent=function(e,t){Object(a.b)()},t.prototype.calculateMatrices2D=function(e){var t=e.viewState,n=e.coordinateToPixelTransform,r=e.pixelToCoordinateTransform;Object(s.b)(n,e.size[0]/2,e.size[1]/2,1/t.resolution,-1/t.resolution,-t.rotation,-t.center[0],-t.center[1]),Object(s.d)(r,n)},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i,o,a,s){var c,h=t.viewState;function p(e,t,n,r){return i.call(o,t,e?n:null,r)}var f=h.projection,m=Object(u.l)(e.slice(),f),g=[[0,0]];if(f.canWrapX()&&r){var v=f.getExtent(),y=Object(l.getWidth)(v);g.push([-y,0],[y,0])}for(var b=t.layerStatesArray,_=b.length,w=[],x=[],C=0;C<g.length;C++)for(var S=_-1;S>=0;--S){var E=b[S],k=E.layer;if(k.hasRenderer()&&Object(d.b)(E,h)&&a.call(s,k)){var T=k.getRenderer(),O=k.getSource();if(T&&O){var $=O.getWrapX()?m:e,P=p.bind(null,E.managed);x[0]=$[0]+g[C][0],x[1]=$[1]+g[C][1],c=T.forEachFeatureAtCoordinate(x,t,n,P,w)}if(c)return c}}if(0!==w.length){var I=1/w.length;return w.forEach((function(e,t){return e.distanceSq+=t*I})),w.sort((function(e,t){return e.distanceSq-t.distanceSq})),w.some((function(e){return c=e.callback(e.feature,e.layer,e.geometry)})),c}},t.prototype.forEachLayerAtPixel=function(e,t,n,r,i){return Object(a.b)()},t.prototype.hasFeatureAtCoordinate=function(e,t,n,r,i,a){return void 0!==this.forEachFeatureAtCoordinate(e,t,n,r,o.b,this,i,a)},t.prototype.getMap=function(){return this.map_},t.prototype.renderFrame=function(e){Object(a.b)()},t.prototype.scheduleExpireIconCache=function(e){c.a.canExpireCache()&&e.postRenderFunctions.push(p)},t}(i.a),g=n(100),v=n(133),y=n(73),b=n(38),_=n(17),w=n(12),x=n(23),C=(f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=function(e){function t(t){var n=e.call(this,t)||this;n.fontChangeListenerKey_=Object(w.listen)(_.a,g.a.PROPERTYCHANGE,t.redrawText.bind(t)),n.element_=document.createElement("div");var r=n.element_.style;r.position="absolute",r.width="100%",r.height="100%",r.zIndex="0",n.element_.className=b.e+" ol-layers";var i=t.getViewport();return i.insertBefore(n.element_,i.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return C(t,e),t.prototype.dispatchRenderEvent=function(e,t){var n=this.getMap();if(n.hasListener(e)){var r=new v.a(e,void 0,t);n.dispatchEvent(r)}},t.prototype.disposeInternal=function(){Object(w.unlistenByKey)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),e.prototype.disposeInternal.call(this)},t.prototype.renderFrame=function(e){if(e){this.calculateMatrices2D(e),this.dispatchRenderEvent(y.a.PRECOMPOSE,e);var t=e.layerStatesArray.sort((function(e,t){return e.zIndex-t.zIndex})),n=e.viewState;this.children_.length=0;for(var r=[],i=null,o=0,a=t.length;o<a;++o){var s=t[o];e.layerIndex=o;var l=s.layer,c=l.getSourceState();if(!Object(d.b)(s,n)||"ready"!=c&&"undefined"!=c)l.unrender();else{var u=l.render(e,i);u&&(u!==i&&(this.children_.push(u),i=u),"getDeclutter"in l&&r.push(l))}}for(o=r.length-1;o>=0;--o)r[o].renderDeclutter(e);Object(x.g)(this.element_,this.children_),this.dispatchRenderEvent(y.a.POSTCOMPOSE,e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},t.prototype.forEachLayerAtPixel=function(e,t,n,r,i){for(var o=t.viewState,a=t.layerStatesArray,s=a.length-1;s>=0;--s){var l=a[s],c=l.layer;if(c.hasRenderer()&&Object(d.b)(l,o)&&i(c)){var u=c.getRenderer().getDataAtPixel(e,t,n);if(u){var h=r(c,u);
814if(h)return h}}}},t}(m);t.a=S},function(e,t){function n(e,t,n){var r=n&&n.debug||!1;r&&console.log("getting "+t+" in "+e);var i="object"==qe(e)?e.outer:e,o=t+'\\="([^"]*)"';r&&console.log("pattern:",o);var a=new RegExp(o).exec(i);if(r&&console.log("match:",a),a)return a[1]}e.exports=n,e.exports.default=n},function(e,t){},,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==("undefined"==typeof window?"undefined":qe(window))&&(n=window)}e.exports=n},function(e,t,n){var r,i,o; 815/*! 816 * jquery.fancytree.dnd5.js 817 * 818 * Drag-and-drop support (native HTML5). 819 * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) 820 * 821 * Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de) 822 * 823 * Released under the MIT license 824 * https://github.com/mar10/fancytree/wiki/LicenseInfo 825 * 826 * @version 2.38.2 827 * @date 2022-06-30T18:24:06Z 828 */i=[n(8),n(143)],void 0===(o="function"==typeof(r=function(e){var t,n,r=e.ui.fancytree,i=/Mac/.test(navigator.platform),o="fancytree-drop-over",a="application/x-fancytree-node",s=null,l=null,c=null,d=null,u=null,h=null,p=null,f=null,m=null,g=null;function v(){u=null,g=null,p=null,f=null,h=null,l=null,c=null,d&&d.removeClass("fancytree-drag-source fancytree-drag-remove"),d=null,s&&s.hide(),n&&(n.remove(),n=null)}function y(e){return 0===e?"":e>0?"+"+e:""+e}function b(e,t){var n=t.tree,r=t.dataTransfer;"dragstart"===e.type?(t.effectAllowed=n.options.dnd5.effectAllowed,t.dropEffect=n.options.dnd5.dropEffectDefault):(t.effectAllowed=f,t.dropEffect=p),t.dropEffectSuggested=function(e,t,n){var r=n;return i?t.metaKey&&t.altKey||t.ctrlKey?r="link":t.metaKey?r="move":t.altKey&&(r="copy"):t.ctrlKey?r="copy":t.shiftKey?r="move":t.altKey&&(r="link"),r!==h&&e.info("evalEffectModifiers: "+t.type+" - evalEffectModifiers(): "+h+" -> "+r),h=r,r}(n,e,n.options.dnd5.dropEffectDefault),t.isMove="move"===t.dropEffect,t.files=r.files||[]}function _(e,t,n){var r=t.tree,i=t.dataTransfer;return"dragstart"!==e.type&&f!==t.effectAllowed&&r.warn("effectAllowed should only be changed in dragstart event: "+e.type+": data.effectAllowed changed from "+f+" -> "+t.effectAllowed),!1===n&&(r.info("applyDropEffectCallback: allowDrop === false"),t.effectAllowed="none",t.dropEffect="none"),t.isMove="move"===t.dropEffect,"dragstart"===e.type&&(f=t.effectAllowed,p=t.dropEffect),i.effectAllowed=f,i.dropEffect=p,p}function w(t,n){if(n.options.dnd5.scroll&&function(t,n){var r,i,o=t.options.dnd5,a=t.$scrollParent[0],s=o.scrollSensitivity,l=o.scrollSpeed,c=0;a!==document&&"HTML"!==a.tagName?(r=t.$scrollParent.offset(),i=a.scrollTop,r.top+a.offsetHeight-n.pageY<s?a.scrollHeight-t.$scrollParent.innerHeight()-i>0&&(a.scrollTop=c=i+l):i>0&&n.pageY-r.top<s&&(a.scrollTop=c=i-l)):(i=e(document).scrollTop())>0&&n.pageY-i<s?(c=i-l,e(document).scrollTop(c)):e(window).height()-(n.pageY-i)<s&&(c=i+l,e(document).scrollTop(c)),c&&t.debug("autoScroll: "+c+"px")}(n.tree,t),!n.node)return n.tree.warn("Ignored dragover for non-node"),m;var i,a,l,c,d=null,h=n.tree,p=h.options,f=p.dnd5,g=n.node,v=n.otherNode,w="center",x=e(g.span),C=x.find("span.fancytree-title");if(!1===u)return h.debug("Ignored dragover, since dragenter returned false."),!1;if("string"==typeof u&&e.error("assert failed: dragenter returned string"),a=x.offset(),c=(t.pageY-a.top)/x.height(),void 0===t.pageY&&h.warn("event.pageY is undefined: see issue #1013."),u.after&&c>.75||!u.over&&u.after&&c>.5?d="after":u.before&&c<=.25||!u.over&&u.before&&c<=.5?d="before":u.over&&(d="over"),f.preventVoidMoves&&"move"===n.dropEffect&&(g===v?(g.debug("Drop over source node prevented."),d=null):"before"===d&&v&&g===v.getNextSibling()?(g.debug("Drop after source node prevented."),d=null):"after"===d&&v&&g===v.getPrevSibling()?(g.debug("Drop before source node prevented."),d=null):"over"===d&&v&&v.parent===g&&v.isLastSibling()&&(g.debug("Drop last child over own parent prevented."),d=null)),n.hitMode=d,d&&f.dragOver&&(b(t,n),f.dragOver(g,n),_(t,n,!!d),d=n.hitMode),m=d,"after"===d||"before"===d||"over"===d){switch(i=f.dropMarkerOffsetX||0,d){case"before":w="top",i+=f.dropMarkerInsertOffsetX||0;break;case"after":w="bottom",i+=f.dropMarkerInsertOffsetX||0}l={my:"left"+y(i)+" center",at:"left "+w,of:C},p.rtl&&(l.my="right"+y(-i)+" center",l.at="right "+w),s.toggleClass("fancytree-drop-after","after"===d).toggleClass(o,"over"===d).toggleClass("fancytree-drop-before","before"===d).show().position(r.fixPositionOptions(l))}else s.hide();return e(g.span).toggleClass("fancytree-drop-target","after"===d||"before"===d||"over"===d).toggleClass("fancytree-drop-after","after"===d).toggleClass("fancytree-drop-before","before"===d).toggleClass("fancytree-drop-accept","over"===d).toggleClass("fancytree-drop-reject",!1===d),d}function x(i){var o,s=this.options.dnd5,u=r.getNode(i),h=i.dataTransfer||i.originalEvent.dataTransfer,p={tree:this,node:u,options:this.options,originalEvent:i.originalEvent,widget:this.widget,dataTransfer:h,useDefaultImage:!0,dropEffect:void 0,dropEffectSuggested:void 0,effectAllowed:void 0,files:void 0,isCancelled:void 0,isMove:void 0};switch(i.type){case"dragstart":if(!u)return this.info("Ignored dragstart on a non-node."),!1;l=u,c=!1===s.multiSource?[u]:!0===s.multiSource?u.isSelected()?this.get
828SelectedNodes():[u]:s.multiSource(u,p),(d=e(e.map(c,(function(e){return e.span})))).addClass("fancytree-drag-source");var f=u.toDict(!0,s.sourceCopyHook);f.treeId=u.tree._id,o=JSON.stringify(f);try{h.setData(a,o),h.setData("text/html",e(u.span).html()),h.setData("text/plain",u.title)}catch(e){this.warn("Could not set data (IE only accepts 'text') - "+e)}return s.setTextTypeJson?h.setData("text",o):h.setData("text",u.title),b(i,p),!1===s.dragStart(u,p)?(v(),!1):(_(i,p),n=null,p.useDefaultImage&&(t=e(u.span).find(".fancytree-title"),c&&c.length>1&&(n=e("<span class='fancytree-childcounter'/>").text("+"+(c.length-1)).appendTo(t)),h.setDragImage&&h.setDragImage(t[0],-10,-10)),!0);case"drag":b(i,p),s.dragDrag(u,p),_(i,p),d.toggleClass("fancytree-drag-remove",p.isMove);break;case"dragend":b(i,p),v(),p.isCancelled=!m,s.dragEnd(u,p,!m)}}function C(t){var n,i,d,h,p=this.options.dnd5,f=null,y=r.getNode(t),x=t.dataTransfer||t.originalEvent.dataTransfer,C={tree:this,node:y,options:this.options,originalEvent:t.originalEvent,widget:this.widget,hitMode:u,dataTransfer:x,otherNode:l||null,otherNodeList:c||null,otherNodeData:null,useDefaultImage:!0,dropEffect:void 0,dropEffectSuggested:void 0,effectAllowed:void 0,files:null,isCancelled:void 0,isMove:void 0};switch(t.type){case"dragenter":if(g=null,!y){this.debug("Ignore non-node "+t.type+": "+t.target.tagName+"."+t.target.className),u=!1;break}if(e(y.span).addClass(o).removeClass("fancytree-drop-accept fancytree-drop-reject"),d=e.inArray(a,x.types)>=0,p.preventNonNodes&&!d){y.debug("Reject dropping a non-node."),u=!1;break}if(p.preventForeignNodes&&(!l||l.tree!==y.tree)){y.debug("Reject dropping a foreign node."),u=!1;break}if(p.preventSameParent&&C.otherNode&&C.otherNode.tree===y.tree&&y.parent===C.otherNode.parent){y.debug("Reject dropping as sibling (same parent)."),u=!1;break}if(p.preventRecursion&&C.otherNode&&C.otherNode.tree===y.tree&&y.isDescendantOf(C.otherNode)){y.debug("Reject dropping below own ancestor."),u=!1;break}if(p.preventLazyParents&&!y.isLoaded()){y.warn("Drop over unloaded target node prevented."),u=!1;break}s.show(),b(t,C),h=function(t){var n;return!!t&&(n=e.isPlainObject(t)?{over:!!t.over,before:!!t.before,after:!!t.after}:Array.isArray(t)?{over:e.inArray("over",t)>=0,before:e.inArray("before",t)>=0,after:e.inArray("after",t)>=0}:{over:!0===t||"over"===t,before:!0===t||"before"===t,after:!0===t||"after"===t},0!==Object.keys(n).length&&n)}(p.dragEnter(y,C)),u=h,_(t,C,f=h&&(h.over||h.before||h.after));break;case"dragover":if(!y){this.debug("Ignore non-node "+t.type+": "+t.target.tagName+"."+t.target.className);break}b(t,C),f=!!(m=w(t,C)),"over"!==m&&!1!==m||y.expanded||!1===y.hasChildren()?g=null:g?!(p.autoExpandMS&&Date.now()-g>p.autoExpandMS)||y.isLoading()||p.dragExpand&&!1===p.dragExpand(y,C)||y.setExpanded():g=Date.now();break;case"dragleave":if(!y){this.debug("Ignore non-node "+t.type+": "+t.target.tagName+"."+t.target.className);break}if(!e(y.span).hasClass(o)){y.debug("Ignore dragleave (multi).");break}e(y.span).removeClass(o+" fancytree-drop-accept fancytree-drop-reject"),y.scheduleAction("cancel"),p.dragLeave(y,C),s.hide();break;case"drop":if(e.inArray(a,x.types)>=0&&(i=x.getData(a),this.info(t.type+": getData('application/x-fancytree-node'): '"+i+"'")),i||(i=x.getData("text"),this.info(t.type+": getData('text'): '"+i+"'")),i)try{void 0!==(n=JSON.parse(i)).title&&(C.otherNodeData=n)}catch(e){}this.debug(t.type+": nodeData: '"+i+"', otherNodeData: ",C.otherNodeData),e(y.span).removeClass(o+" fancytree-drop-accept fancytree-drop-reject"),C.hitMode=m,b(t,C),C.isCancelled=!m;var S=l&&l.span,E=l&&l.tree;p.dragDrop(y,C),t.preventDefault(),S&&!document.body.contains(S)&&(E===this?(this.debug("Drop handler removed source element: generating dragEnd."),p.dragEnd(l,C)):this.warn("Drop handler removed source element: dragend event may be lost.")),v()}if(f)return t.preventDefault(),!1}return e.ui.fancytree.getDragNodeList=function(){return c||[]},e.ui.fancytree.getDragNode=function(){return l},e.ui.fancytree.registerExtension({name:"dnd5",version:"2.38.2",options:{autoExpandMS:1500,dropMarkerInsertOffsetX:-16,dropMarkerOffsetX:-24,dropMarkerParent:"body",multiSource:!1,effectAllowed:"all",dropEffectDefault:"move",preventForeignNodes:!1,preventLazyParents:!0,preventNonNodes:!1,preventRecursion:!0,preventSameParent:!1,preventVoidMoves:!0,scroll:!0,scrollSensitivity:20,scrollSpeed:5,setTextTypeJson:!1,sourceCopyHook:null,dragStart:null,dragDrag:e.noop,dragEnd:e.noop,dragEnter:null,dragOver:e.noop,dragExpand:e.noop,dragDrop:e.noop,dragLeave:e.noop},treeInit:function(t){var n,i=t.tree,o=t.options,a=o.glyph||null,l=o.dnd5;e.inArray("dnd",o.extensions)>=0&&e.error("Extensions 'dnd' and 'dnd5' are mutually exclusive."),l.dragStop&&e.error("dragStop is not used by ext-dnd5. Use dragEnd instead."),null!=l.preventRecursiveMoves&&e.error("preventRecursiveMoves was renamed to preventRecursion."),l.dragStart&&r.overrideMethod(t.options,"createNode",(function(e,t){this._super.apply(this,arguments),t.node.span?t.node.span.draggable=!0:t.node.warn("Cannot add `draggable`: no span tag")})),this._superApply(arguments),this.$container.addClass("fancytree-ext-dnd5"),n=e("<span>").appendTo(this.$container),this.$scrollParent=n.scrollParent(),n.remove(),(s=e("#fancytree-drop-marker")).length||(s=e("<div id='fancytree-drop-marker'></div>").hide().css({"z-index":1e3,"pointer-events":"none"}).prependTo(l.dropMarkerParent),a&&r.setSpanIcon(s[0],a.map._addClass,a.map.dropMarker)),s.toggleClass("fancytree-rtl",!!o.rtl),l.dragStart&&i.$container.on("dragstart drag dragend",x.bind(i)),l.dragEnter&&i.$container.on("dragenter dragover dragleave drop",C.bind(i))}}),e.ui.fancytree})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){},function(e,t,n){},function(e,t,n){n.r(t),function(e){var t,r,i=n(58),o=n.n(i); 829/** 830 * jscolor - JavaScript Color Picker 831 * 832 * @link http://jscolor.com 833 * @license For open source use: GPLv3 834 * For commercial use: JSColor Commercial License 835 * @author Jan Odvarko - East Desire 836 * @version 2.5.2 837 * 838 * See usage examples at http://jscolor.com/examples/ 839 */t="undefined"!=typeof window?window:void 0,r=function(e){var t,n,r,i,a=((i={initialized:!1,instances:[],readyQueue:[],register:function(){void 0!==e&&e.document&&("loading"!==e.document.readyState?i.pub.init():e.document.addEventListener("DOMContentLoaded",i.pub.init,!1))},installBySelector:function(t,n){if(!(n=n?i.node(n):e.document))throw new Error("Missing root node");for(var r=n.querySelectorAll(t),o=new RegExp("(^|\\s)("+i.pub.lookupClass+")(\\s*(\\{[^}]*\\})|\\s|$)","i"),a=0;a<r.length;a+=1){var s,l;if(!(r[a].jscolor&&r[a].jscolor instanceof i.pub)&&(void 0===r[a].type||"color"!=r[a].type.toLowerCase()||!i.isColorAttrSupported)&&(null!==(s=i.getDataAttr(r[a],"jscolor"))||r[a].className&&(l=r[a].className.match(o)
839))){var c=r[a],d="";null!==s?d=s:l&&(console.warn('Installation using class name is DEPRECATED. Use data-jscolor="" attribute instead.'+i.docsRef),l[4]&&(d=l[4]));var u=null;if(d.trim())try{u=i.parseOptionsStr(d)}catch(e){console.warn(e+"\n"+d)}try{new i.pub(c,u)}catch(e){console.warn(e)}}}},parseOptionsStr:function(e){var t=null;try{t=JSON.parse(e)}catch(n){if(!i.pub.looseJSON)throw new Error("Could not parse jscolor options as JSON: "+n);try{t=new Function("var opts = ("+e+'); return typeof opts === "object" ? opts : {};')()}catch(e){throw new Error("Could not evaluate jscolor options: "+e)}}return t},getInstances:function(){for(var e=[],t=0;t<i.instances.length;t+=1)i.instances[t]&&i.instances[t].targetElement&&e.push(i.instances[t]);return e},createEl:function(t){var n=e.document.createElement(t);return i.setData(n,"gui",!0),n},node:function(t){if(!t)return null;if("string"==typeof t){var n=t,r=null;try{r=e.document.querySelector(n)}catch(e){return console.warn(e),null}return r||console.warn("No element matches the selector: %s",n),r}return i.isNode(t)?t:(console.warn("Invalid node of type %s: %s",o()(t),t),null)},isNode:function(e){return"object"===("undefined"==typeof Node?"undefined":o()(Node))?e instanceof Node:e&&"object"===o()(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},nodeName:function(e){return!(!e||!e.nodeName)&&e.nodeName.toLowerCase()},removeChildren:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},isTextInput:function(e){return e&&"input"===i.nodeName(e)&&"text"===e.type.toLowerCase()},isButton:function(e){if(!e)return!1;var t=i.nodeName(e);return"button"===t||"input"===t&&["button","submit","reset"].indexOf(e.type.toLowerCase())>-1},isButtonEmpty:function(e){switch(i.nodeName(e)){case"input":return!e.value||""===e.value.trim();case"button":return""===e.textContent.trim()}return null},isPassiveEventSupported:function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassive",null,n),e.removeEventListener("testPassive",null,n)}catch(e){}return t}(),isColorAttrSupported:(r=e.document.createElement("input"),!(!r.setAttribute||(r.setAttribute("type","color"),"color"!=r.type.toLowerCase()))),dataProp:"_data_jscolor",setData:function(){var e=arguments[0];if(3===arguments.length){var t=e.hasOwnProperty(i.dataProp)?e[i.dataProp]:e[i.dataProp]={},n=arguments[2];return t[a=arguments[1]]=n,!0}if(2===arguments.length&&"object"===o()(arguments[1])){t=e.hasOwnProperty(i.dataProp)?e[i.dataProp]:e[i.dataProp]={};var r=arguments[1];for(var a in r)r.hasOwnProperty(a)&&(t[a]=r[a]);return!0}throw new Error("Invalid arguments")},removeData:function(){var e=arguments[0];if(!e.hasOwnProperty(i.dataProp))return!0;for(var t=1;t<arguments.length;t+=1){var n=arguments[t];delete e[i.dataProp][n]}return!0},getData:function(e,t,n){if(!e.hasOwnProperty(i.dataProp)){if(void 0===n)return;e[i.dataProp]={}}var r=e[i.dataProp];return r.hasOwnProperty(t)||void 0===n||(r[t]=n),r[t]},getDataAttr:function(e,t){var n="data-"+t;return e.getAttribute(n)},setDataAttr:function(e,t,n){var r="data-"+t;e.setAttribute(r,n)},_attachedGroupEvents:{},attachGroupEvent:function(e,t,n,r){i._attachedGroupEvents.hasOwnProperty(e)||(i._attachedGroupEvents[e]=[]),i._attachedGroupEvents[e].push([t,n,r]),t.addEventListener(n,r,!1)},detachGroupEvents:function(e){if(i._attachedGroupEvents.hasOwnProperty(e)){for(var t=0;t<i._attachedGroupEvents[e].length;t+=1){var n=i._attachedGroupEvents[e][t];n[0].removeEventListener(n[1],n[2],!1)}delete i._attachedGroupEvents[e]}},preventDefault:function(e){e.preventDefault&&e.preventDefault(),e.returnValue=!1},triggerEvent:function(t,n,r,o){if(t){var a=null;return"function"==typeof Event?a=new Event(n,{bubbles:r,cancelable:o}):(a=e.document.createEvent("Event")).initEvent(n,r,o),!!a&&(i.setData(a,"internal",!0),t.dispatchEvent(a),!0)}},triggerInputEvent:function(e,t,n,r){e&&i.isTextInput(e)&&i.triggerEvent(e,t,n,r)},eventKey:function(e){var t={9:"Tab",13:"Enter",27:"Escape"};
839return"string"==typeof e.code?e.code:void 0!==e.keyCode&&t.hasOwnProperty(e.keyCode)?t[e.keyCode]:null},strList:function(e){return e?e.replace(/^\s+|\s+$/g,"").split(/\s+/):[]},hasClass:function(e,t){return!!t&&(void 0!==e.classList?e.classList.contains(t):-1!=(" "+e.className.replace(/\s+/g," ")+" ").indexOf(" "+t+" "))},addClass:function(e,t){var n=i.strList(t);if(void 0===e.classList)for(r=0;r<n.length;r+=1)i.hasClass(e,n[r])||(e.className+=(e.className?" ":"")+n[r]);else for(var r=0;r<n.length;r+=1)e.classList.add(n[r])},removeClass:function(e,t){var n=i.strList(t);if(void 0===e.classList)for(o=0;o<n.length;o+=1){var r=new RegExp("^\\s*"+n[o]+"\\s*|\\s*"+n[o]+"\\s*$|\\s+"+n[o]+"(\\s+)","g");e.className=e.className.replace(r,"$1")}else for(var o=0;o<n.length;o+=1)e.classList.remove(n[o])},getCompStyle:function(t){return(e.getComputedStyle?e.getComputedStyle(t):t.currentStyle)||{}},setStyle:function(e,t,n,r){var o=n?"important":"",a=null;for(var s in t)if(t.hasOwnProperty(s)){var l=null;null===t[s]?(a||(a=i.getData(e,"origStyle")),a&&a.hasOwnProperty(s)&&(l=a[s])):(r&&(a||(a=i.getData(e,"origStyle",{})),a.hasOwnProperty(s)||(a[s]=e.style[s])),l=t[s]),null!==l&&e.style.setProperty(s,l,o)}},appendCss:function(e){var t=document.querySelector("head"),n=document.createElement("style");n.innerText=e,t.appendChild(n)},appendDefaultCss:function(e){i.appendCss([".jscolor-wrap, .jscolor-wrap div, .jscolor-wrap canvas { position:static; display:block; visibility:visible; overflow:visible; margin:0; padding:0; border:none; border-radius:0; outline:none; z-index:auto; float:none; width:auto; height:auto; left:auto; right:auto; top:auto; bottom:auto; min-width:0; min-height:0; max-width:none; max-height:none; background:none; clip:auto; opacity:1; transform:none; box-shadow:none; box-sizing:content-box; }",".jscolor-wrap { clear:both; }",".jscolor-wrap .jscolor-picker { position:relative; }",".jscolor-wrap .jscolor-shadow { position:absolute; left:0; top:0; width:100%; height:100%; }",".jscolor-wrap .jscolor-border { position:relative; }",".jscolor-wrap .jscolor-palette { position:absolute; }",".jscolor-wrap .jscolor-palette-sw { position:absolute; display:block; cursor:pointer; }",".jscolor-wrap .jscolor-btn { position:absolute; overflow:hidden; white-space:nowrap; font:13px sans-serif; text-align:center; cursor:pointer; }"].join("\n"))},hexColor:function(e,t,n){return"#"+(("0"+Math.round(e).toString(16)).slice(-2)+("0"+Math.round(t).toString(16)).slice(-2)+("0"+Math.round(n).toString(16)).slice(-2)).toUpperCase()},hexaColor:function(e,t,n,r){return"#"+(("0"+Math.round(e).toString(16)).slice(-2)+("0"+Math.round(t).toString(16)).slice(-2)+("0"+Math.round(n).toString(16)).slice(-2)+("0"+Math.round(255*r).toString(16)).slice(-2)).toUpperCase()},rgbColor:function(e,t,n){return"rgb("+Math.round(e)+","+Math.round(t)+","+Math.round(n)+")"},rgbaColor:function(e,t,n,r){return"rgba("+Math.round(e)+","+Math.round(t)+","+Math.round(n)+","+Math.round(100*(null==r?1:r))/100+")"},linearGradient:(n=function(){for(var t=["","-webkit-","-moz-","-o-","-ms-"],n=e.document.createElement("div"),r=0;r<t.length;r+=1){var i=t[r]+"linear-gradient",o=i+"(to right, rgba(0,0,0,0), rgba(0,0,0,0))";if(n.style.background=o,n.style.background)return i}return"linear-gradient"}(),function(){return n+"("+Array.prototype.join.call(arguments,", ")+")"}),setBorderRadius:function(e,t){i.setStyle(e,{"border-radius":t||"0"})},setBoxShadow:function(e,t){i.setStyle(e,{"box-shadow":t||"none"})},getElementPos:function(e,t){var n=0,r=0,o=e.getBoundingClientRect();if(n=o.left,r=o.top,!t){var a=i.getViewPos();n+=a[0],r+=a[1]}return[n,r]},getElementSize:function(e){return[e.offsetWidth,e.offsetHeight]},getAbsPointerPos:function(e){var t=0,n=0;return void 0!==e.changedTouches&&e.changedTouches.length?(t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY):"number"==typeof e.clientX&&(t=e.clientX,n=e.clientY),{x:t,y:n}},getRelPointerPos:function(e){var t=(e.target||e.srcElement).getBoundingClientRect(),n=0,r=0;return void 0!==e.changedTouches&&e.changedTouches.length?(n=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY):"number"==typeof e.clientX&&(n=e.clientX,r=e.clientY),{x:n-t.left,y:r-t.top}},getViewPos:function(){var t=e.document.documentElement;return[(e.pageXOffset||t.scrollLeft)-(t.clientLeft||0),(e.pageYOffset||t.scrollTop)-(t.clientTop||0)]},getViewSize:function(){var t=e.document.documentElement;
839return[e.innerWidth||t.clientWidth,e.innerHeight||t.clientHeight]},RGB_HSV:function(e,t,n){e/=255,t/=255,n/=255;var r=Math.min(Math.min(e,t),n),i=Math.max(Math.max(e,t),n),o=i-r;if(0===o)return[null,0,100*i];var a=e===r?3+(n-t)/o:t===r?5+(e-n)/o:1+(t-e)/o;return[60*(6===a?0:a),o/i*100,100*i]},HSV_RGB:function(e,t,n){var r=n/100*255;if(null===e)return[r,r,r];e/=60,t/=100;var i=Math.floor(e),o=r*(1-t),a=r*(1-t*(i%2?e-i:1-(e-i)));switch(i){case 6:case 0:return[r,a,o];case 1:return[a,r,o];case 2:return[o,r,a];case 3:return[o,a,r];case 4:return[a,o,r];case 5:return[r,o,a]}},parseColorString:function(e){var t,n={rgba:null,format:null};if(t=e.match(/^\W*([0-9A-F]{3,8})\W*$/i)){if(8===t[1].length)n.format="hexa",n.rgba=[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4,6),16),parseInt(t[1].slice(6,8),16)/255];else if(6===t[1].length)n.format="hex",n.rgba=[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4,6),16),null];else{if(3!==t[1].length)return!1;n.format="hex",n.rgba=[parseInt(t[1].charAt(0)+t[1].charAt(0),16),parseInt(t[1].charAt(1)+t[1].charAt(1),16),parseInt(t[1].charAt(2)+t[1].charAt(2),16),null]}return n}if(t=e.match(/^\W*rgba?\(([^)]*)\)\W*$/i)){var r,i,o,a,s=t[1].split(","),l=/^\s*(\d+|\d*\.\d+|\d+\.\d*)\s*$/;if(s.length>=3&&(r=s[0].match(l))&&(i=s[1].match(l))&&(o=s[2].match(l)))return n.format="rgb",n.rgba=[parseFloat(r[1])||0,parseFloat(i[1])||0,parseFloat(o[1])||0,null],s.length>=4&&(a=s[3].match(l))&&(n.format="rgba",n.rgba[3]=parseFloat(a[1])||0),n}return!1},parsePaletteValue:function(e){var t=[];"string"==typeof e?e.replace(/#[0-9A-F]{3}\b|#[0-9A-F]{6}([0-9A-F]{2})?\b|rgba?\(([^)]*)\)/gi,(function(e){t.push(e)})):Array.isArray(e)&&(t=e);for(var n=[],r=0;r<t.length;r++){var o=i.parseColorString(t[r]);o&&n.push(o)}return n},containsTranparentColor:function(e){for(var t=0;t<e.length;t++){var n=e[t].rgba[3];if(null!==n&&n<1)return!0}return!1},isAlphaFormat:function(e){switch(e.toLowerCase()){case"hexa":case"rgba":return!0}return!1},scaleCanvasForHighDPR:function(t){var n=e.devicePixelRatio||1;t.width*=n,t.height*=n,t.getContext("2d").scale(n,n)},genColorPreviewCanvas:function(e,t,n,r){var o=Math.round(i.pub.previewSeparator.length),a=i.pub.chessboardSize,s=i.pub.chessboardColor1,l=i.pub.chessboardColor2,c=n||2*a,d=2*a,u=i.createEl("canvas"),h=u.getContext("2d");u.width=c,u.height=d,r&&i.scaleCanvasForHighDPR(u),h.fillStyle=s,h.fillRect(0,0,c,d),h.fillStyle=l;for(var p=0;p<c;p+=2*a)h.fillRect(p,0,a,a),h.fillRect(p+a,a,a,a);e&&(h.fillStyle=e,h.fillRect(0,0,c,d));var f=null;switch(t){case"left":f=0,h.clearRect(0,0,o/2,d);break;case"right":f=c-o,h.clearRect(c-o/2,0,o/2,d)}if(null!==f){h.lineWidth=1;for(var m=0;m<i.pub.previewSeparator.length;m+=1)h.beginPath(),h.strokeStyle=i.pub.previewSeparator[m],h.moveTo(.5+f+m,0),h.lineTo(.5+f+m,d),h.stroke()}return{canvas:u,width:c,height:d}},genColorPreviewGradient:function(e,t,n){var r;return r=t&&n?["to "+{left:"right",right:"left"}[t],e+" 0%",e+" "+n+"px","rgba(0,0,0,0) "+(n+1)+"px","rgba(0,0,0,0) 100%"]:["to right",e+" 0%",e+" 100%"],i.linearGradient.apply(this,r)},redrawPosition:function(){if(i.picker&&i.picker.owner){var t=i.picker.owner;if(t.container!==e.document.body)i._drawPosition(t,0,0,"relative",!1);else{var n,r;t.fixed?(n=i.getElementPos(t.targetElement,!0),r=[0,0]):(n=i.getElementPos(t.targetElement),r=i.getViewPos());var o,a,s,l=i.getElementSize(t.targetElement),c=i.getViewSize(),d=i.getPickerDims(t),u=[d.borderW,d.borderH];switch(t.position.toLowerCase()){case"left":o=1,a=0,s=-1;break;case"right":o=1,a=0,s=1;break;case"top":o=0,a=1,s=-1;break;default:o=0,a=1,s=1}var h=(l[a]+u[a])/2;if(t.smartPosition)p=[-r[o]+n[o]+u[o]>c[o]&&-r[o]+n[o]+l[o]/2>c[o]/2&&n[o]+l[o]-u[o]>=0?n[o]+l[o]-u[o]:n[o],-r[a]+n[a]+l[a]+u[a]-h+h*s>c[a]?-r[a]+n[a]+l[a]/2>c[a]/2&&n[a]+l[a]-h-h*s>=0?n[a]+l[a]-h-h*s:n[a]+l[a]-h+h*s:n[a]+l[a]-h+h*s>=0?n[a]+l[a]-h+h*s:n[a]+l[a]-h-h*s];else var p=[n[o],n[a]+l[a]-h+h*s];var f=p[o],m=p[a],g=t.fixed?"fixed":"absolute",v=(p[0]+u[0]>n[0]||p[0]<n[0]+l[0])&&p[1]+u[1]<n[1]+l[1];i._drawPosition(t,f,m,g,v)}}},_drawPosition:function(e,t,n,r,o){var a=o?0:e.shadowBlur;i.picker.wrap.style.position=r,Math.round(parseFloat(i.picker.wrap.style.left))===Math.round(t)&&Math.round(parseFloat(i.picker.wrap.style.top))===Math.round(n)||(i.picker.wrap.style.left=t+"px",i.picker.wrap.style.top=n+"px"),i.setBoxShadow(i.picker.boxS,e.shadow?new i.BoxShadow(0,a,e.shadowBlur,0,e.shadowColor):null)},getPickerDims:function(e){var t=2*e.controlBorderWidth+e.width,n=2*e.controlBorderWidth+e.height,r=2*e.controlBorderWidth+2*i.getControlPadding(e)+e.sliderSize;
839i.getSliderChannel(e)&&(t+=r),e.hasAlphaChannel()&&(t+=r);var o=i.getPaletteDims(e,t);o.height&&(n+=o.height+e.padding),e.closeButton&&(n+=2*e.controlBorderWidth+e.padding+e.buttonHeight);var a=t+2*e.padding,s=n+2*e.padding;return{contentW:t,contentH:n,paddedW:a,paddedH:s,borderW:a+2*e.borderWidth,borderH:s+2*e.borderWidth,palette:o}},getPaletteDims:function(e,t){var n=0,r=0,i=0,o=0,a=0,s=e._palette?e._palette.length:0;return s&&(r=(n=e.paletteCols)>0?Math.ceil(s/n):0,i=Math.max(1,Math.floor((t-(n-1)*e.paletteSpacing)/n)),o=e.paletteHeight?Math.min(e.paletteHeight,i):i),r&&(a=r*o+(r-1)*e.paletteSpacing),{cols:n,rows:r,cellW:i,cellH:o,width:t,height:a}},getControlPadding:function(e){return Math.max(e.padding/2,2*e.pointerBorderWidth+e.pointerThickness-e.controlBorderWidth)},getPadYChannel:function(e){switch(e.mode.charAt(1).toLowerCase()){case"v":return"v"}return"s"},getSliderChannel:function(e){if(e.mode.length>2)switch(e.mode.charAt(2).toLowerCase()){case"s":return"s";case"v":return"v"}return null},triggerCallback:function(e,t){if(e[t]){var n=null;if("string"==typeof e[t])try{n=new Function(e[t])}catch(e){console.error(e)}else n=e[t];n&&n.call(e)}},triggerGlobal:function(e){for(var t=i.getInstances(),n=0;n<t.length;n+=1)t[n].trigger(e)},_pointerMoveEvent:{mouse:"mousemove",touch:"touchmove"},_pointerEndEvent:{mouse:"mouseup",touch:"touchend"},_pointerOrigin:null,onDocumentKeyUp:function(e){-1!==["Tab","Escape"].indexOf(i.eventKey(e))&&i.picker&&i.picker.owner&&i.picker.owner.tryHide()},onWindowResize:function(e){i.redrawPosition()},onWindowScroll:function(e){i.redrawPosition()},onParentScroll:function(e){i.picker&&i.picker.owner&&i.picker.owner.tryHide()},onDocumentMouseDown:function(e){var t=e.target||e.srcElement;t.jscolor&&t.jscolor instanceof i.pub?t.jscolor.showOnClick&&!t.disabled&&t.jscolor.show():i.getData(t,"gui")?i.getData(t,"control")&&i.onControlPointerStart(e,t,i.getData(t,"control"),"mouse"):i.picker&&i.picker.owner&&i.picker.owner.tryHide()},onPickerTouchStart:function(e){var t=e.target||e.srcElement;i.getData(t,"control")&&i.onControlPointerStart(e,t,i.getData(t,"control"),"touch")},onControlPointerStart:function(t,n,r,o){var a=i.getData(n,"instance");i.preventDefault(t);var s=function(e,a){i.attachGroupEvent("drag",e,i._pointerMoveEvent[o],i.onDocumentPointerMove(t,n,r,o,a)),i.attachGroupEvent("drag",e,i._pointerEndEvent[o],i.onDocumentPointerEnd(t,n,r,o))};if(s(e.document,[0,0]),e.parent&&e.frameElement){var l=e.frameElement.getBoundingClientRect(),c=[-l.left,-l.top];s(e.parent.window.document,c)}var d=i.getAbsPointerPos(t),u=i.getRelPointerPos(t);switch(i._pointerOrigin={x:d.x-u.x,y:d.y-u.y},r){case"pad":"v"===i.getSliderChannel(a)&&0===a.channels.v&&a.fromHSVA(null,null,100,null),i.setPad(a,t,0,0);break;case"sld":i.setSld(a,t,0);break;case"asld":i.setASld(a,t,0)}a.trigger("input")},onDocumentPointerMove:function(e,t,n,r,o){return function(e){var r=i.getData(t,"instance");switch(n){case"pad":i.setPad(r,e,o[0],o[1]);break;case"sld":i.setSld(r,e,o[1]);break;case"asld":i.setASld(r,e,o[1])}r.trigger("input")}},onDocumentPointerEnd:function(e,t,n,r){return function(e){var n=i.getData(t,"instance");i.detachGroupEvents("drag"),n.trigger("input"),n.trigger("change")}},onPaletteSampleClick:function(e){var t=e.currentTarget,n=i.getData(t,"instance"),r=i.getData(t,"color");"any"===n.format.toLowerCase()&&(n._setFormat(r.format),i.isAlphaFormat(n.getFormat())||(r.rgba[3]=1)),null===r.rgba[3]&&(!0===n.paletteSetsAlpha||"auto"===n.paletteSetsAlpha&&n._paletteHasTransparency)&&(r.rgba[3]=1),n.fromRGBA.apply(n,r.rgba),n.trigger("input"),n.trigger("change"),n.hideOnPaletteClick&&n.hide()},setPad:function(e,t,n,r){var o=i.getAbsPointerPos(t),a=n+o.x-i._pointerOrigin.x-e.padding-e.controlBorderWidth,s=r+o.y-i._pointerOrigin.y-e.padding-e.controlBorderWidth,l=a*(360/(e.width-1)),c=100-s*(100/(e.height-1));switch(i.getPadYChannel(e)){case"s":e.fromHSVA(l,c,null,null);break;case"v":e.fromHSVA(l,null,c,null)}},setSld:function(e,t,n){var r=100-(n+i.getAbsPointerPos(t).y-i._pointerOrigin.y-e.padding-e.controlBorderWidth)*(100/(e.height-1));switch(i.getSliderChannel(e)){case"s":e.fromHSVA(null,r,null,null);break;case"v":e.fromHSVA(null,null,r,null)}},setASld:function(e,t,n){var r=1-(n+i.getAbsPointerPos(t).y-i._pointerOrigin.y-e.padding-e.controlBorderWidth)*(1/(e.height-1));if(r<1){var o=e.getFormat();"any"!==e.format.toLowerCase()||i.isAlphaFormat(o)||e._setFormat("hex"===o?"hexa":"rgba")}e.fromHSVA(null,null,null,r)},createPadCanvas:function(){var e={elm:null,draw:null},t=i.createEl("canvas"),n=t.getContext("2d");return e.elm=t,e.draw=function(e,r,i){t.width=e,t.height=r,n.clearRect(0,0,t.width,t.height);var o=n.createLinearGradient(0,0,t.width,0);o.addColorStop(0,"#F00"),o.addColorStop(1/6,"#FF0"),o.addColorStop(2/6,"#0F0"),o.addColorStop(.5,"#0FF"),o.addColorStop(4/6,"#00F"),o.addColorStop(5/6,"#F0F"),o.addColorStop(1,"#F00"),n.fillStyle=o,n.fillRect(0,0,t.width,t.height);var a=n.createLinearGradient(0,0,0,t.height);switch(i.toLowerCase()){case"s":a.addColorStop(0,"rgba(255,255,255,0)"),a.addColorStop(1,"rgba(255,255,255,1)");break;case"v":a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)")}n.fillStyle=a,n.fillRect(0,0,t.width,t.height)},e},createSliderGradient:function(){var e={elm:null,draw:null},t=i.createEl("canvas"),n=t.getContext("2d");return e.elm=t,e.draw=function(e,r,i,o){t.width=e,t.height=r,n.clearRect(0,0,t.width,t.height);var a=n.createLinearGradient(0,0,0,t.height);a.addColorStop(0,i),a.addColorStop(1,o),n.fillStyle=a,n.fillRect(0,0,t.width,t.height)},e},createASliderGradient:function(){var e={elm:null,draw:null},t=i.createEl("canvas"),n=t.getContext("2d");return e.elm=t,e.draw=function(e,r,o){t.width=e,t.height=r,n.clearRect(0,0,t.width,t.height);var a=t.width/2,s=i.pub.chessboardColor1,l=i.pub.chessboardColor2;if(n.fillStyle=s,n.fillRect(0,0,t.width,t.height),a>0)for(var c=0;c<t.height;c+=2*a)n.fillStyle=l,n.fillRect(0,c,a,a),n.fillRect(a,c+a,a,a);var d=n.createLinearGradient(0,0,0,t.height);d.addColorStop(0,o),d.addColorStop(1,"rgba(0,0,0,0)"),n.fillStyle=d,n.fillRect(0,0,t.width,t.height)},e},BoxShadow:(t=function(e,t,n,r,i,o){this.hShadow=e,this.vShadow=t,this.blur=n,this.spread=r,this.color=i,this.inset=!!o},t.prototype.toString=function(){var e=[Math.round(this.hShadow)+"px",Math.round(this.vShadow)+"px",Math.round(this.blur)+"px",Math.round(this.spread)+"px",this.color];return this.inset&&e.push("inset"),e.join(" ")},t),flags:{leaveValue:1,leaveAlpha:2,leavePreview:4},enumOpts:{format:["auto","any","hex","hexa","rgb","rgba"],previewPosition:["left","right"],mode:["hsv","hvs","hs","hv"],position:["left","right","top","bottom"],alphaChannel:["auto",!0,!1],paletteSetsAlpha:["auto",!0,!1]},deprecatedOpts:{styleElement:"previewElement",onFineChange:"onInput",overwriteImportant:"forceStyle",closable:"closeButton",insetWidth:"controlBorderWidth",insetColor:"controlBorderColor",refine:null},docsRef:" See https://jscolor.com/docs/",pub:function(t,n){var r=this;function a(e,t){if("string"!=typeof e)throw new Error("Invalid value for option name: "+e);if(i.enumOpts.hasOwnProperty(e)&&("string"==typeof t&&(t=t.toLowerCase()),-1===i.enumOpts[e].indexOf(t)))throw new Error("Option '"+e+"' has invali
839d value: "+t);if(i.deprecatedOpts.hasOwnProperty(e)){var n=e,o=i.deprecatedOpts[e];if(!o)throw new Error("Option '"+e+"' is DEPRECATED");console.warn("Option '%s' is DEPRECATED, using '%s' instead."+i.docsRef,n,o),e=o}var a="set__"+e;if("function"==typeof r[a])return r[a](t),!0;if(e in r)return r[e]=t,!0;throw new Error("Unrecognized configuration option: "+e)}function s(e){if("string"!=typeof e)throw new Error("Invalid value for option name: "+e);if(i.deprecatedOpts.hasOwnProperty(e)){var t=e,n=i.deprecatedOpts[e];if(!n)throw new Error("Option '"+e+"' is DEPRECATED");console.warn("Option '%s' is DEPRECATED, using '%s' instead."+i.docsRef,t,n),e=n}var o="get__"+e;if("function"==typeof r[o])return r[o](value);if(e in r)return r[e];throw new Error("Unrecognized configuration option: "+e)}function l(){r._processParentElementsInDOM(),i.picker||(i.picker={owner:null,wrap:i.createEl("div"),box:i.createEl("div"),boxS:i.createEl("div"),boxB:i.createEl("div"),pad:i.createEl("div"),padB:i.createEl("div"),padM:i.createEl("div"),padCanvas:i.createPadCanvas(),cross:i.createEl("div"),crossBY:i.createEl("div"),crossBX:i.createEl("div"),crossLY:i.createEl("div"),crossLX:i.createEl("div"),sld:i.createEl("div"),sldB:i.createEl("div"),sldM:i.createEl("div"),sldGrad:i.createSliderGradient(),sldPtrS:i.createEl("div"),sldPtrIB:i.createEl("div"),sldPtrMB:i.createEl("div"),sldPtrOB:i.createEl("div"),asld:i.createEl("div"),asldB:i.createEl("div"),asldM:i.createEl("div"),asldGrad:i.createASliderGradient(),asldPtrS:i.createEl("div"),asldPtrIB:i.createEl("div"),asldPtrMB:i.createEl("div"),asldPtrOB:i.createEl("div"),pal:i.createEl("div"),btn:i.createEl("div"),btnT:i.createEl("div")},i.picker.pad.appendChild(i.picker.padCanvas.elm),i.picker.padB.appendChild(i.picker.pad),i.picker.cross.appendChild(i.picker.crossBY),i.picker.cross.appendChild(i.picker.crossBX),i.picker.cross.appendChild(i.picker.crossLY),i.picker.cross.appendChild(i.picker.crossLX),i.picker.padB.appendChild(i.picker.cross),i.picker.box.appendChild(i.picker.padB),i.picker.box.appendChild(i.picker.padM),i.picker.sld.appendChild(i.picker.sldGrad.elm),i.picker.sldB.appendChild(i.picker.sld),i.picker.sldB.appendChild(i.picker.sldPtrOB),i.picker.sldPtrOB.appendChild(i.picker.sldPtrMB),i.picker.sldPtrMB.appendChild(i.picker.sldPtrIB),i.picker.sldPtrIB.appendChild(i.picker.sldPtrS),i.picker.box.appendChild(i.picker.sldB),i.picker.box.appendChild(i.picker.sldM),i.picker.asld.appendChild(i.picker.asldGrad.elm),i.picker.asldB.appendChild(i.picker.asld),i.picker.asldB.appendChild(i.picker.asldPtrOB),i.picker.asldPtrOB.appendChild(i.picker.asldPtrMB),i.picker.asldPtrMB.appendChild(i.picker.asldPtrIB),i.picker.asldPtrIB.appendChild(i.picker.asldPtrS),i.picker.box.appendChild(i.picker.asldB),i.picker.box.appendChild(i.picker.asldM),i.picker.box.appendChild(i.picker.pal),i.picker.btn.appendChild(i.picker.btnT),i.picker.box.appendChild(i.picker.btn),i.picker.boxB.appendChild(i.picker.box),i.picker.wrap.appendChild(i.picker.boxS),i.picker.wrap.appendChild(i.picker.boxB),i.picker.wrap.addEventListener("touchstart",i.onPickerTouchStart,!!i.isPassiveEventSupported&&{passive:!1}));var e,t,n=i.picker,o=!!i.getSliderChannel(r),a=r.hasAlphaChannel(),s=i.getPickerDims(r),l=2*r.pointerBorderWidth+r.pointerThickness+2*r.crossSize,h=i.getControlPadding(r),p=Math.min(r.borderRadius,Math.round(r.padding*Math.PI));n.wrap.className="jscolor-wrap",n.wrap.style.width=s.borderW+"px",n.wrap.style.height=s.borderH+"px",n.wrap.style.zIndex=r.zIndex,n.box.className="jscolor-picker",n.box.style.width=s.paddedW+"px",n.box.style.height=s.paddedH+"px",n.boxS.className="jscolor-shadow",i.setBorderRadius(n.boxS,p+"px"),n.boxB.className="jscolor-border",n.boxB.style.border=r.borderWidth+"px solid",n.boxB.style.borderColor=r.borderColor,n.boxB.style.background=r.backgroundColor,i.setBorderRadius(n.boxB,p+"px"),n.padM.style.background="rgba(255,0,0,.2)",n.sldM.style.background="rgba(0,255,0,.2)",n.asldM.style.background="rgba(0,0,255,.2)",n.padM.style.opacity=n.sldM.style.opacity=n.asldM.style.opacity="0",n.pad.style.position="relative",n.pad.style.width=r.width+"px",n.pad.style.height=r.height+"px",n.padCanvas.draw(r.width,r.height,i.getPadYChannel(r)),n.padB.style.position="absolute",n.padB.style.left=r.padding+"px",n.padB.style.top=r.padding+"px",n.padB.style.border=r.controlBorderWidth+"px solid",n.padB.style.borderColor=r.controlBorderColor,n.padM.style.position="absolute",n.padM.style.left="0px",n.padM.style.top="0px",n.padM.style.width=r.padding+2*r.controlBorderWidth+r.width+h+"px",n.padM.style.height=2*r.controlBorderWidth+2*r.padding+r.height+"px",n.padM.style.cursor="crosshair",i.setData(n.padM,{instance:r,control:"pad"}),n.cross.style.position="absolute",n.cross.style.left=n.cross.style.top="0",n.cross.style.width=n.cross.style.height=l+"px",n.crossBY.style.position=n.crossBX.style.position="absolute",n.crossBY.style.background=n.crossBX.style.background=r.pointerBorderColor,n.crossBY.style.width=n.crossBX.style.height=2*r.pointerBorderWidth+r.pointerThickness+"px",n.crossBY.style.height=n.crossBX.style.width=l+"px",n.crossBY.style.left=n.crossBX.style.top=Math.floor(l/2)-Math.floor(r.pointerThickness/2)-r.pointerBorderWidth+"px",n.crossBY.style.top=n.crossBX.style.left="0",n.crossLY.style.position=n.crossLX.style.position="absolute",n.crossLY.style.background=n.crossLX.style.background=r.pointerColor,n.crossLY.style.height=n.crossLX.style.width=l-2*r.pointerBorderWidth+"px",n.crossLY.style.width=n.crossLX.style.height=r.pointerThickness+"px",n.crossLY.style.left=n.crossLX.style.top=Math.floor(l/2)-Math.floor(r.pointerThickness/2)+"px",n.crossLY.style.top=n.crossLX.style.left=r.pointerBorderWidth+"px",n.sld.style.overflow="hidden",n.sld.style.width=r.sliderSize+"px",n.sld.style.height=r.height+"px",n.sldGrad.draw(r.sliderSize,r.height,"#000","#000"),n.sldB.style.display=o?"block":"none",n.sldB.style.position="absolute",n.sldB.style.left=r.padding+r.width+2*r.controlBorderWidth+2*h+"px",n.sldB.style.top=r.padding+"px",n.sldB.style.border=r.controlBorderWidth+"px solid",n.sldB.style.borderColor=r.controlBorderColor,n.sldM.style.display=o?"block":"none",n.sldM.style.position="absolute",n.sldM.style.left=r.padding+r.width+2*r.controlBorderWidth+h+"px",n.sldM.style.top="0px",n.sldM.style.width=r.sliderSize+2*h+2*r.controlBorderWidth+(a?0:Math.max(0,r.padding-h))+"px",n.sldM.style.height=2*r.controlBorderWidth+2*r.padding+r.height+"px",n.sldM.style.cursor="default",i.setData(n.sldM,{instance:r,control:"sld"}),n.sldPtrIB.style.border=n.sldPtrOB.style.border=r.pointerBorderWidth+"px solid "+r.pointerBorderColor,n.sldPtrOB.style.position="absolute",n.sldPtrOB.style.left=-(2*r.pointerBorderWidth+r.pointerThickness)+"px",n.sldPtrOB.style.top="0",n.sldPtrMB.style.border=r.pointerThickness+"px solid "+r.pointerColor,n.sldPtrS.style.width=r.sliderSize+"px",n.sldPtrS.style.height=i.pub.sliderInnerSpace+"px",n.asld.style.overflow="hidden",n.asld.style.width=r.sliderSize+"px",n.asld.style.height=r.height+"px",n.asldGrad.draw(r.sliderSize,r.height,"#000"),n.asldB.style.display=a?"block":"none",n.asldB.style.position="absolute",n.asldB.style.left=r.padding+r.width+2*r.controlBorderWidth+h+(o?r.sliderSize+3*h+2*r.controlBorderWidth:0)+"px",n.asldB.style.top=r.padding+"px",n.asldB.style.border=r.controlBorderWidth+"px solid",n.asldB.style.borderColor=r.controlBorderColor,n.asldM.style.display=a?"block":"none",n.asldM.style.position="absolute",n.asldM.style.left=r.padding+r.width+2*r.controlBorderWidth+h+(o?r.sliderSize+2*h+2*r.controlBorderWidth:0)+"px",n.asldM.style.top="0px",n.asldM.style.width=r.sliderSize+2*h+2*r.controlBorderWidth+Math.max(0,r.padding-h)+"px",n.asldM.style.height=2*r.controlBorderWidth+2*r.padding+r.height+"px",n.asldM.style.cursor="default",i.setData(n.asldM,{instance:r,control:"asld"}),n.asldPtrIB.style.border=n.asldPtrOB.style.border=r.pointerBorderWidth+"px solid "+r.pointerBorderColor,n.asldPtrOB.style.position="absolute",n.asldPtrOB.style.left=-(2*r.pointerBorderWidth+r.pointerThickness)+"px",n.asldPtrOB.style.top="0",n.asldPtrMB.style.border=r.pointerThickness+"px solid "+r.pointerColor,n.asldPtrS.style.width=r.sliderSize+"px",n.asldPtrS.style.height=i.pub.sliderInnerSpace+"px",n.pal.className="jscolor-palette",n.pal.style.display=s.palette.rows?"block":"none",n.pal.style.left=r.padding+"px",n.pal.style.top=2*r.controlBorderWidth+2*r.padding+r.height+"px",n.pal.innerHTML="";for(var f=i.genColorPreviewCanvas("rgba(0,0,0,0)"),m=0,g=0;g<s.palette.rows;g++)for(var v=0;v<s.palette.cols&&m<r._palette.length;
839v++,m++){var y=r._palette[m],b=i.rgbaColor.apply(null,y.rgba),_=i.createEl("div");_.style.width=s.palette.cellW-2*r.controlBorderWidth+"px",_.style.height=s.palette.cellH-2*r.controlBorderWidth+"px",_.style.backgroundColor=b;var w=i.createEl("div");w.className="jscolor-palette-sw",w.style.left=(s.palette.cols<=1?0:Math.round(v*((s.contentW-s.palette.cellW)/(s.palette.cols-1))*10)/10)+"px",w.style.top=g*(s.palette.cellH+r.paletteSpacing)+"px",w.style.border=r.controlBorderWidth+"px solid",w.style.borderColor=r.controlBorderColor,null!==y.rgba[3]&&y.rgba[3]<1&&(w.style.backgroundImage="url('"+f.canvas.toDataURL()+"')",w.style.backgroundRepeat="repeat",w.style.backgroundPosition="center center"),i.setData(w,{instance:r,control:"palette-sw",color:y}),w.addEventListener("click",i.onPaletteSampleClick,!1),w.appendChild(_),n.pal.appendChild(w)}n.btn.className="jscolor-btn jscolor-btn-close",n.btn.style.display=r.closeButton?"block":"none",n.btn.style.left=r.padding+"px",n.btn.style.bottom=r.padding+"px",n.btn.style.padding="0 15px",n.btn.style.maxWidth=s.contentW-2*r.controlBorderWidth-30+"px",n.btn.style.height=r.buttonHeight+"px",n.btn.style.border=r.controlBorderWidth+"px solid",t=(e=r.controlBorderColor.split(/\s+/)).length<2?e[0]:e[1]+" "+e[0]+" "+e[0]+" "+e[1],n.btn.style.borderColor=t,n.btn.style.color=r.buttonColor,n.btn.onmousedown=function(){r.hide()},n.btnT.style.display="inline",n.btnT.style.lineHeight=r.buttonHeight+"px",n.btnT.innerText=r.closeText,c(),d(),u(),i.picker.owner&&i.picker.owner!==r&&i.removeClass(i.picker.owner.targetElement,i.pub.activeClassName),i.picker.owner=r,i.redrawPosition(),n.wrap.parentNode!==r.container&&r.container.appendChild(n.wrap),i.addClass(r.targetElement,i.pub.activeClassName)}function c(){var e=i.getPadYChannel(r),t=Math.round(r.channels.h/360*(r.width-1)),n=Math.round((1-r.channels[e]/100)*(r.height-1)),o=2*r.pointerBorderWidth+r.pointerThickness+2*r.crossSize,a=-Math.floor(o/2);switch(i.picker.cross.style.left=t+a+"px",i.picker.cross.style.top=n+a+"px",i.getSliderChannel(r)){case"s":var s=i.HSV_RGB(r.channels.h,100,r.channels.v),l=i.HSV_RGB(r.channels.h,0,r.channels.v),c="rgb("+Math.round(s[0])+","+Math.round(s[1])+","+Math.round(s[2])+")",d="rgb("+Math.round(l[0])+","+Math.round(l[1])+","+Math.round(l[2])+")";i.picker.sldGrad.draw(r.sliderSize,r.height,c,d);break;case"v":var u=i.HSV_RGB(r.channels.h,r.channels.s,100);c="rgb("+Math.round(u[0])+","+Math.round(u[1])+","+Math.round(u[2])+")",d="#000",i.picker.sldGrad.draw(r.sliderSize,r.height,c,d)}i.picker.asldGrad.draw(r.sliderSize,r.height,r.toHEXString())}function d(){var e=i.getSliderChannel(r);if(e){var t=Math.round((1-r.channels[e]/100)*(r.height-1));i.picker.sldPtrOB.style.top=t-(2*r.pointerBorderWidth+r.pointerThickness)-Math.floor(i.pub.sliderInnerSpace/2)+"px"}i.picker.asldGrad.draw(r.sliderSize,r.height,r.toHEXString())}function u(){var e=Math.round((1-r.channels.a)*(r.height-1));i.picker.asldPtrOB.style.top=e-(2*r.pointerBorderWidth+r.pointerThickness)-Math.floor(i.pub.sliderInnerSpace/2)+"px"}function h(){return i.picker&&i.picker.owner===r}if(n||(n={}),this.channels={r:255,g:255,b:255,h:0,s:0,v:100,a:1},this.format="auto",this.value=void 0,this.alpha=void 0,this.random=!1,this.onChange=void 0,this.onInput=void 0,this.valueElement=void 0,this.alphaElement=void 0,this.previewElement=void 0,this.previewPosition="left",this.previewSize=32,this.previewPadding=8,this.required=!0,this.hash=!0,this.uppercase=!0,this.forceStyle=!0,this.width=181,this.height=101,this.mode="HSV",this.alphaChannel="auto",this.position="bottom",this.smartPosition=!0,this.showOnClick=!0,this.hideOnLeave=!0,this.palette=[],this.paletteCols=10,this.paletteSetsAlpha="auto",this.paletteHeight=16,this.paletteSpacing=4,this.hideOnPaletteClick=!1,this.sliderSize=16,this.crossSize=8,this.closeButton=!1,this.closeText="Close",this.buttonColor="rgba(0,0,0,1)",this.buttonHeight=18,this.padding=12,this.backgroundColor="rgba(255,255,255,1)",this.borderWidth=1,this.borderColor="rgba(187,187,187,1)",this.borderRadius=8,this.controlBorderWidth=1,this.controlBorderColor="rgba(187,187,187,1)",this.shadow=!0,this.shadowBlur=15,this.shadowColor="rgba(0,0,0,0.2)",this.pointerColor="rgba(76,76,76,1)",this.pointerBorderWidth=1,this.pointerBorderColor="rgba(255,255,255,1)",this.pointerThickness=2,this.zIndex=5e3,this.container=void 0,this.minS=0,this.maxS=100,this.minV=0,this.maxV=100,this.minA=0,this.maxA=1,this.option=function(){if(!arguments.length)throw new Error("No option specified");if(1===arguments.length&&"string"==typeof arguments[0]){try{return s(arguments[0])}catch(e){console.warn(e)}return!1}if(arguments.length>=2&&"string"==typeof arguments[0]){try{if(!a(arguments[0],arguments[1]))return!1}catch(e){return console.warn(e),!1}return this.redraw(),this.exposeColor(),!0}if(1===arguments.length&&"object"===o()(arguments[0])){var e=arguments[0],t=!0;for(var n in e)if(e.hasOwnProperty(n))try{a(n,e[n])||(t=!1)}catch(e){console.warn(e),t=!1}return this.redraw(),this.exposeColor(),t}throw new Error("Invalid arguments")},this.channel=function(e,t){if("string"!=typeof e)throw new Error("Invalid value for channel name: "+e);if(void 0===t)return this.channels.hasOwnProperty(e.toLowerCase())?this.channels[e.toLowerCase()]:(console.warn("Getting unknown channel: "+e),!1);var n=!1;switch(e.toLowerCase()){case"r":n=this.fromRGBA(t,null,null,null);break;case"g":n=this.fromRGBA(null,t,null,null);break;case"b":n=this.fromRGBA(null,null,t,null);break;case"h":n=this.fromHSVA(t,null,null,null);break;case"s":n=this.fromHSVA(null,t,null,null);break;case"v":n=this.fromHSVA(null,null,t,null);break;case"a":n=this.fromHSVA(null,null,null,t);break;default:return console.warn("Setting unknown channel: "+e),!1}return!!n&&(this.redraw(),!0)},this.trigger=function(e){for(var t=i.strList(e),n=0;n<t.length;n+=1){var r=t[n].toLowerCase(),o=null;switch(r){case"input":o="onInput";break;case"change":o="onChange"}o&&i.triggerCallback(this,o),i.triggerInputEvent(this.valueElement,r,!0,!0)}},this.fromHSVA=function(e,t,n,r,o){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null!==e){if(isNaN(e))return!1;this.channels.h=Math.max(0,Math.min(360,e))}if(null!==t){if(isNaN(t))return!1;this.channels.s=Math.max(0,Math.min(100,this.maxS,t),this.minS)}if(null!==n){if(isNaN(n))return!1;this.channels.v=Math.max(0,Math.min(100,this.maxV,n),this.minV)}if(null!==r){if(isNaN(r))return!1;this.channels.a=this.hasAlphaChannel()?Math.max(0,Math.min(1,this.maxA,r),this.minA):1}var a=i.HSV_RGB(this.channels.h,this.channels.s,this.channels.v);return this.channels.r=a[0],this.channels.g=a[1],this.channels.b=a[2],this.exposeColor(o),!0},this.fromRGBA=function(e,t,n,r,o){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null!==e){if(isNaN(e))return!1;e=Math.max(0,Math.min(255,e))}if(null!==t){if(isNaN(t))return!1;t=Math.max(0,Math.min(255,t))}if(null!==n){if(isNaN(n))return!1;n=Math.max(0,Math.min(255,n))}if(null!==r){if(isNaN(r))return!1;this.channels.a=this.hasAlphaChannel()?Math.max(0,Math.min(1,this.maxA,r),this.minA):1}var a=i.RGB_HSV(null===e?this.channels.r:e,null===t?this.channels.g:t,null===n?this.channels.b:n);null!==a[0]&&(this.channels.h=Math.max(0,Math.min(360,a[0]))),0!==a[2]&&(this.channels.s=Math.max(0,this.minS,Math.min(100,this.maxS,a[1]))),this.channels.v=Math.max(0,this.minV,Math.min(100,this.maxV,a[2]));var s=i.HSV_RGB(this.channels.h,this.channels.s,this.channels.v);return this.channels.r=s[0],this.channels.g=s[1],this.channels.b=s[2],this.exposeColor(o),!0},this.fromHSV=function(e,t,n,r){return console.warn("fromHSV() method is DEPRECATED. Using fromHSVA() instead."+i.docsRef),this.fromHSVA(e,t,n,null,r)},this.fromRGB=function(e,t,n,r){return console.warn("fromRGB() method is DEPRECATED. Using fromRGBA() instead."+i.docsRef),this.fromRGBA(e,t,n,null,r)},this.fromString=function(e,t){if(!this.required&&""===e.trim())return this.setPreviewElementBg(null),this.setValueElementValue(""),!0;var n=i.parseColorString(e);return!!n&&("any"===this.format.toLowerCase()&&(this._setFormat(n.format),i.isAlphaFormat(this.getFormat())||(n.rgba[3]=1)),this.fromRGBA(n.rgba[0],n.rgba[1],n.rgba[2],n.rgba[3],t),!0)},this.randomize=function(e,t,n,r,i,o,a,s){void 0===e&&(e=0),void 0===t&&(t=100),void 0===n&&(n=0),void 0===r&&(r=100),void 0===i&&(i=0),void 0===o&&(o=359),void 0===a&&(a=1),void 0===s&&(s=1),this.fromHSVA(i+Math.floor(Math.random()*(o-i+1)),n+Math.floor(Math.random()*(r-n+1)),e+Math.floor(Math.random()*(t-e+1)),(100*a+Math.floor(Math.random()*(100*(s-a)+1)))/100)},this.toString=function(e){switch(void 0===e&&(e=this.getFormat()),e.toLowerCase()){case"hex":return this.toHEXString();case"hexa":return this.toHEXAString();case"rgb":return this.toRGBString();case"rgba":return this.toRGBAString()}return!1},this.toHEXString=function(){return i.hexColor(this.channels.r,this.channels.g,this.channels.b)},this.toHEXAString=function(){return i.hexaColor(this.channels.r,this.channels.g,this.channels.b,this.channels.a)},this.toRGBString=function(){return i.rgbColor(this.channels.r,this.channels.g,this.channels.b)},this.toRGBAString=function(){return i.rgbaColor(this.channels.r,this.channels.g,this.channels.b,this.channels.a)},this.toGrayscale=function(){return.213*this.channels.r+.715*this.channels.g+.072*this.channels.b},this.toCanvas=function(){return i.genColorPreviewCanvas(this.toRGBAString()).canvas},this.toDataURL=function(){return this.toCanvas().toDataURL()}
839,this.toBackground=function(){return i.pub.background(this.toRGBAString())},this.isLight=function(){return this.toGrayscale()>127.5},this.hide=function(){h()&&(i.removeClass(r.targetElement,i.pub.activeClassName),i.picker.wrap.parentNode.removeChild(i.picker.wrap),delete i.picker.owner)},this.show=function(){l()},this.redraw=function(){h()&&l()},this.getFormat=function(){return this._currentFormat},this._setFormat=function(e){this._currentFormat=e.toLowerCase()},this.hasAlphaChannel=function(){return"auto"===this.alphaChannel?"any"===this.format.toLowerCase()||i.isAlphaFormat(this.getFormat())||void 0!==this.alpha||void 0!==this.alphaElement:this.alphaChannel},this.processValueInput=function(e){this.fromString(e)||this.exposeColor()},this.processAlphaInput=function(e){this.fromHSVA(null,null,null,parseFloat(e))||this.exposeColor()},this.exposeColor=function(e){var t=this.toString(),n=this.getFormat();if(i.setDataAttr(this.targetElement,"current-color",t),e&i.flags.leaveValue||!this.valueElement||("hex"!==n&&"hexa"!==n||(this.uppercase||(t=t.toLowerCase()),this.hash||(t=t.replace(/^#/,""))),this.setValueElementValue(t)),!(e&i.flags.leaveAlpha)&&this.alphaElement){var r=Math.round(100*this.channels.a)/100;this.setAlphaElementValue(r)}e&i.flags.leavePreview||!this.previewElement||((i.isTextInput(this.previewElement)||i.isButton(this.previewElement)&&!i.isButtonEmpty(this.previewElement))&&this.previewPosition,this.setPreviewElementBg(this.toRGBAString())),h()&&(c(),d(),u())},this.setPreviewElementBg=function(e){if(this.previewElement){var t=null,n=null;(i.isTextInput(this.previewElement)||i.isButton(this.previewElement)&&!i.isButtonEmpty(this.previewElement))&&(t=this.previewPosition,n=this.previewSize);var r=[];if(e){r.push({image:i.genColorPreviewGradient(e,t,n?n-i.pub.previewSeparator.length:null),position:"left top",size:"auto",repeat:t?"repeat-y":"repeat",origin:"padding-box"});var o=i.genColorPreviewCanvas("rgba(0,0,0,0)",t?{left:"right",right:"left"}[t]:null,n,!0);r.push({image:"url('"+o.canvas.toDataURL()+"')",position:(t||"left")+" top",size:o.width+"px "+o.height+"px",repeat:t?"repeat-y":"repeat",origin:"padding-box"})}else r.push({image:"none",position:"left top",size:"auto",repeat:"no-repeat",origin:"padding-box"});for(var a={image:[],position:[],size:[],repeat:[],origin:[]},s=0;s<r.length;s+=1)a.image.push(r[s].image),a.position.push(r[s].position),a.size.push(r[s].size),a.repeat.push(r[s].repeat),a.origin.push(r[s].origin);var l={"background-image":a.image.join(", "),"background-position":a.position.join(", "),"background-size":a.size.join(", "),"background-repeat":a.repeat.join(", "),"background-origin":a.origin.join(", ")};i.setStyle(this.previewElement,l,this.forceStyle);var c={left:null,right:null};t&&(c[t]=this.previewSize+this.previewPadding+"px"),l={"padding-left":c.left,"padding-right":c.right},i.setStyle(this.previewElement,l,this.forceStyle,!0)}},this.setValueElementValue=function(e){this.valueElement&&("input"===i.nodeName(this.valueElement)?this.valueElement.value=e:this.valueElement.innerHTML=e)},this.setAlphaElementValue=function(e){this.alphaElement&&("input"===i.nodeName(this.alphaElement)?this.alphaElement.value=e:this.alphaElement.innerHTML=e)},this._processParentElementsInDOM=function(){if(!this._parentElementsProcessed){this._parentElementsProcessed=!0;var e=this.targetElement;do{var t=i.getCompStyle(e);t.position&&"fixed"===t.position.toLowerCase()&&(this.fixed=!0),e!==this.targetElement&&(i.getData(e,"hasScrollListener")||(e.addEventListener("scroll",i.onParentScroll,!1),i.setData(e,"hasScrollListener",!0)))}while((e=e.parentNode)&&"body"!==i.nodeName(e))}},this.tryHide=function(){this.hideOnLeave&&this.hide()},this.set__palette=function(e){this.palette=e,this._palette=i.parsePaletteValue(e),this._paletteHasTransparency=i.containsTranparentColor(this._palette)},i.pub.options)for(var p in i.pub.options)if(i.pub.options.hasOwnProperty(p))try{a(p,i.pub.options[p])}catch(e){console.warn(e)}var f=[];n.preset&&("string"==typeof n.preset?f=n.preset.split(/\s+/):Array.isArray(n.preset)?f=n.preset.slice():console.warn("Unrecognized preset value")),-1===f.indexOf("default")&&f.push("default");for(var m=f.length-1;m>=0;m-=1){var g=f[m];
839if(g)if(i.pub.presets.hasOwnProperty(g)){for(var p in i.pub.presets[g])if(i.pub.presets[g].hasOwnProperty(p))try{a(p,i.pub.presets[g][p])}catch(e){console.warn(e)}}else console.warn("Unknown preset: %s",g)}var v=["preset"];for(var p in n)if(n.hasOwnProperty(p)&&-1===v.indexOf(p))try{a(p,n[p])}catch(e){console.warn(e)}if(void 0===this.container?this.container=e.document.body:this.container=i.node(this.container),!this.container)throw new Error("Cannot instantiate color picker without a container element");if(this.targetElement=i.node(t),!this.targetElement){if("string"==typeof t&&/^[a-zA-Z][\w:.-]*$/.test(t))throw new Error("If '"+t+"' is supposed to be an ID, please use '#"+t+"' or any valid CSS selector.");throw new Error("Cannot instantiate color picker without a target element")}if(this.targetElement.jscolor&&this.targetElement.jscolor instanceof i.pub)throw new Error("Color picker already installed on this element");if(this.targetElement.jscolor=this,i.addClass(this.targetElement,i.pub.className),i.instances.push(this),i.isButton(this.targetElement)&&("button"!==this.targetElement.type.toLowerCase()&&(this.targetElement.type="button"),i.isButtonEmpty(this.targetElement))){i.removeChildren(this.targetElement),this.targetElement.appendChild(e.document.createTextNode("Â "));var y=i.getCompStyle(this.targetElement);(parseFloat(y["min-width"])||0)<this.previewSize&&i.setStyle(this.targetElement,{"min-width":this.previewSize+"px"},this.forceStyle)}if(void 0===this.valueElement?i.isTextInput(this.targetElement)&&(this.valueElement=this.targetElement):null===this.valueElement||(this.valueElement=i.node(this.valueElement)),this.alphaElement&&(this.alphaElement=i.node(this.alphaElement)),void 0===this.previewElement?this.previewElement=this.targetElement:null===this.previewElement||(this.previewElement=i.node(this.previewElement)),this.valueElement&&i.isTextInput(this.valueElement)){var b={onInput:this.valueElement.oninput};this.valueElement.oninput=null,this.valueElement.addEventListener("keydown",(function(e){"Enter"===i.eventKey(e)&&(r.valueElement&&r.processValueInput(r.valueElement.value),r.tryHide())}),!1),this.valueElement.addEventListener("change",(function(e){if(!i.getData(e,"internal")){var t=r.valueElement.value;r.processValueInput(r.valueElement.value),i.triggerCallback(r,"onChange"),r.valueElement.value!==t&&i.triggerInputEvent(r.valueElement,"change",!0,!0)}}),!1),this.valueElement.addEventListener("input",(function(e){i.getData(e,"internal")||(r.valueElement&&r.fromString(r.valueElement.value,i.flags.leaveValue),i.triggerCallback(r,"onInput"))}),!1),b.onInput&&this.valueElement.addEventListener("input",b.onInput,!1),this.valueElement.setAttribute("autocomplete","off"),this.valueElement.setAttribute("autocorrect","off"),this.valueElement.setAttribute("autocapitalize","off"),this.valueElement.setAttribute("spellcheck",!1)}this.alphaElement&&i.isTextInput(this.alphaElement)&&(this.alphaElement.addEventListener("keydown",(function(e){"Enter"===i.eventKey(e)&&(r.alphaElement&&r.processAlphaInput(r.alphaElement.value),r.tryHide())}),!1),this.alphaElement.addEventListener("change",(function(e){if(!i.getData(e,"internal")){var t=r.alphaElement.value;r.processAlphaInput(r.alphaElement.value),i.triggerCallback(r,"onChange"),i.triggerInputEvent(r.valueElement,"change",!0,!0),r.alphaElement.value!==t&&i.triggerInputEvent(r.alphaElement,"change",!0,!0)}}),!1),this.alphaElement.addEventListener("input",(function(e){i.getData(e,"internal")||(r.alphaElement&&r.fromHSVA(null,null,null,parseFloat(r.alphaElement.value),i.flags.leaveAlpha),i.triggerCallback(r,"onInput"),i.triggerInputEvent(r.valueElement,"input",!0,!0))}),!1),this.alphaElement.setAttribute("autocomplete","off"),this.alphaElement.setAttribute("autocorrect","off"),this.alphaElement.setAttribute("autocapitalize","off"),this.alphaElement.setAttribute("spellcheck",!1));var _="FFFFFF";void 0!==this.value?_=this.value:this.valueElement&&void 0!==this.valueElement.value&&(_=this.valueElement.value);var w=void 0;if(void 0!==this.alpha?w=""+this.alpha:this.alphaElement&&void 0!==this.alphaElement.value&&(w=this.alphaElement.value),this._currentFormat=null,["auto","any"].indexOf(this.format.toLowerCase())>-1){var x=i.parseColorString(_);
839this._currentFormat=x?x.format:"hex"}else this._currentFormat=this.format.toLowerCase();this.processValueInput(_),void 0!==w&&this.processAlphaInput(w),this.random&&this.randomize.apply(this,Array.isArray(this.random)?this.random:[])}}).pub.className="jscolor",i.pub.activeClassName="jscolor-active",i.pub.looseJSON=!0,i.pub.presets={},i.pub.presets.default={},i.pub.presets.light={backgroundColor:"rgba(255,255,255,1)",controlBorderColor:"rgba(187,187,187,1)",buttonColor:"rgba(0,0,0,1)"},i.pub.presets.dark={backgroundColor:"rgba(51,51,51,1)",controlBorderColor:"rgba(153,153,153,1)",buttonColor:"rgba(240,240,240,1)"},i.pub.presets.small={width:101,height:101,padding:10,sliderSize:14,paletteCols:8},i.pub.presets.medium={width:181,height:101,padding:12,sliderSize:16,paletteCols:10},i.pub.presets.large={width:271,height:151,padding:12,sliderSize:24,paletteCols:15},i.pub.presets.thin={borderWidth:1,controlBorderWidth:1,pointerBorderWidth:1},i.pub.presets.thick={borderWidth:2,controlBorderWidth:2,pointerBorderWidth:2},i.pub.sliderInnerSpace=3,i.pub.chessboardSize=8,i.pub.chessboardColor1="#666666",i.pub.chessboardColor2="#999999",i.pub.previewSeparator=["rgba(255,255,255,.65)","rgba(128,128,128,.65)"],i.pub.init=function(){if(!i.initialized)for(e.document.addEventListener("mousedown",i.onDocumentMouseDown,!1),e.document.addEventListener("keyup",i.onDocumentKeyUp,!1),e.addEventListener("resize",i.onWindowResize,!1),e.addEventListener("scroll",i.onWindowScroll,!1),i.appendDefaultCss(),i.pub.install(),i.initialized=!0;i.readyQueue.length;)i.readyQueue.shift()()},i.pub.install=function(e){var t=!0;try{i.installBySelector("[data-jscolor]",e)}catch(e){t=!1,console.warn(e)}if(i.pub.lookupClass)try{i.installBySelector("input."+i.pub.lookupClass+", button."+i.pub.lookupClass,e)}catch(e){}return t},i.pub.ready=function(e){return"function"!=typeof e?(console.warn("Passed value is not a function"),!1):(i.initialized?e():i.readyQueue.push(e),!0)},i.pub.trigger=function(e){var t=function(){i.triggerGlobal(e)};i.initialized?t():i.pub.ready(t)},i.pub.hide=function(){i.picker&&i.picker.owner&&i.picker.owner.hide()},i.pub.chessboard=function(e){return e||(e="rgba(0,0,0,0)"),i.genColorPreviewCanvas(e).canvas.toDataURL()},i.pub.background=function(e){var t=[];t.push(i.genColorPreviewGradient(e));var n=i.genColorPreviewCanvas();return t.push(["url('"+n.canvas.toDataURL()+"')","left top","repeat"].join(" ")),t.join(", ")},i.pub.options={},i.pub.lookupClass="jscolor",i.pub.installByClassName=function(){return console.error('jscolor.installByClassName() is DEPRECATED. Use data-jscolor="" attribute instead of a class name.'+i.docsRef),!1},i.register(),i.pub);return void 0===e.jscolor&&(e.jscolor=e.JSColor=a),a},"object"!==o()(e)||"object"!==o()(e.exports)?r(t):e.exports=t.document?r(t):function(e){if(!e.document)throw new Error("jscolor needs a window with document");return r(e)}}
839.call(this,n(286)(e))},function(e,t,n){n.r(t),n.d(t,"BingMaps",(function(){return v})),n.d(t,"CartoDB",(function(){return x})),n.d(t,"Cluster",(function(){return I})),n.d(t,"DataTile",(function(){return N})),n.d(t,"GeoTIFF",(function(){return wt})),n.d(t,"IIIF",(function(){return At})),n.d(t,"Image",(function(){return Mt.a})),n.d(t,"ImageArcGISRest",(function(){return Kt})),n.d(t,"ImageCanvas",(function(){return Qt})),n.d(t,"ImageMapGuide",(function(){return tn})),n.d(t,"ImageStatic",(function(){return an})),n.d(t,"ImageWMS",(function(){return un})),n.d(t,"OSM",(function(){return fn})),n.d(t,"Raster",(function(){return mn.a})),n.d(t,"Source",(function(){return gn.a})),n.d(t,"Stamen",(function(){return wn})),n.d(t,"Tile",(function(){return M.b})),n.d(t,"TileArcGISRest",(function(){return Cn})),n.d(t,"TileDebug",(function(){return En})),n.d(t,"TileImage",(function(){return d.a})),n.d(t,"TileJSON",(function(){return kn.a})),n.d(t,"TileWMS",(function(){return On})),n.d(t,"UrlTile",(function(){return $n.a})),n.d(t,"UTFGrid",(function(){return Mn})),n.d(t,"Vector",(function(){return k.a})),n.d(t,"VectorTile",(function(){return jn.a})),n.d(t,"WMTS",(function(){return Nn})),n.d(t,"XYZ",(function(){return b})),n.d(t,"Zoomify",(function(){return Ot})),n.d(t,"sourcesFromTileGrid",(function(){return Bn}));var r,i,o,a,s,l=n(164),c=n(0),d=n(80),u=n(85),h=n(43),p=n(54),f=n(1),m=n(146),g=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e){function t(t){var n=this,r=void 0!==t.hidpi&&t.hidpi,i=void 0===t.imageSmoothing||t.imageSmoothing;void 0!==t.interpolate&&(i=t.interpolate),(n=e.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",interpolate:i,opaque:!0,projection:Object(f.get)("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,tilePixelRatio:r?2:1,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,zDirection:t.zDirection})||this).hidpi_=r,n.culture_=void 0!==t.culture?t.culture:"en-us",n.maxZoom_=void 0!==t.maxZoom?t.maxZoom:-1,n.apiKey_=t.key,n.imagerySet_=t.imagerySet;var o="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+n.imagerySet_+"?uriScheme=https&include=ImageryProviders&ke
839y="+n.apiKey_+"&c="+n.culture_;return Object(m.a)(o,n.handleImageryMetadataResponse.bind(n),void 0,"jsonp"),n}return g(t,e),t.prototype.getApiKey=function(){return this.apiKey_},t.prototype.getImagerySet=function(){return this.imagerySet_},t.prototype.handleImageryMetadataResponse=function(e){if(200==e.statusCode&&"OK"==e.statusDescription&&"ValidCredentials"==e.authenticationResultCode&&1==e.resourceSets.length&&1==e.resourceSets[0].resources.length){var t=e.resourceSets[0].resources[0],n=-1==this.maxZoom_?t.zoomMax:this.maxZoom_,r=this.getProjection(),i=Object(p.extentFromProjection)(r),o=this.hidpi_?2:1,a=t.imageWidth==t.imageHeight?t.imageWidth/o:[t.imageWidth/o,t.imageHeight/o],s=Object(p.createXYZ)({extent:i,minZoom:t.zoomMin,maxZoom:n,tileSize:a});this.tileGrid=s;var l=this.culture_,d=this.hidpi_;if(this.tileUrlFunction=Object(u.b)(t.imageUrlSubdomains.map((function(e){var n=[0,0,0],r=t.imageUrl.replace("{subdomain}",e).replace("{culture}",l);return function(e,t,i){if(e){Object(h.a)(e[0],e[1],e[2],n);var o=r;return d&&(o+="&dpi=d1&device=mobile"),o.replace("{quadkey}",function(e){var t,n,r=e[0],i=new Array(r),o=1<<r-1;for(t=0;t<r;++t)n=48,e[1]&o&&(n+=1),e[2]&o&&(n+=2),i[t]=String.fromCharCode(n),o>>=1;return i.join("")}(n))}}}))),t.imageryProviders){var m=Object(f.getTransformFromProjections)(Object(f.get)("EPSG:4326"),this.getProjection());this.setAttributions(function(e){var n=[],r=e.viewState,i=this.getTileGrid(),o=i.getZForResolution(r.resolution,this.zDirection),a=i.getTileCoordForCoordAndZ(r.center,o)[0];return t.imageryProviders.map((function(t){for(var r=!1,i=t.coverageAreas,o=0,s=i.length;o<s;++o){var l=i[o];if(a>=l.zoomMin&&a<=l.zoomMax){var d=l.bbox,u=[d[1],d[0],d[3],d[2]],h=Object(c.applyTransform)(u,m);if(Object(c.intersects)(h,e.extent)){r=!0;break}}}r&&n.push(t.attribution)})),n.push('<a class="ol-attribution-bing-tos" href="https://www.microsoft.com/maps/product/terms.html" target="_blank">Terms of Use</a>'),n}.bind(this))}this.setState("ready")}else this.setState("error")},t}(d.a),y=(s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(e){function t(t){var n=this,r=t||{},i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate);var o=void 0!==r.projection?r.projection:"EPSG:3857",a=void 0!==r.tileGrid?r.tileGrid:Object(p.createXYZ)({extent:Object(p.extentFromProjection)(o),maxResolution:r.maxResolution,maxZoom:r.maxZoom,minZoom:r.minZoom,tileSize:r.tileSize});return(n=e.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,opaque:r.opaque,projection:o,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileGrid:a,tileLoadFunction:r.tileLoadFunction,tilePixelRatio:r.tilePixelRatio,tileUrlFunction:r.tileUrlFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,attributionsCollapsible:r.attributionsCollapsible,zDirection:r.zDirection})||this).gutter_=void 0!==r.gutter?r.gutter:0,n}return y(t,e),t.prototype.getGutter=function(){return this.gutter_},t}(d.a),_=n(5),w=(a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),x=function(e){function t(t){var n=e.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,maxZoom:void 0!==t.maxZoom?t.maxZoom:18,minZoom:t.minZoom,projection:t.projection,transition:t.transition,wrapX:t.wrapX,zDirection:t.zDirection})||this;return n.account_=t.account,n.mapId_=t.map||"",n.config_=t.config||{},n.templateCache_={},n.initializeMap_(),n}return w(t,e),t.prototype.getConfig=function(){return this.config_},t.prototype.updateConfig=function(e){Object(_.a)(this.config_,e),this.initializeMap_()},t.prototype.setConfig=function(e){this.config_=e||{},this.initializeMap_()},t.prototype.initializeMap_=function(){var e=JSON.stringify(this.config_);if(this.templateCache_[e])this.applyTemplate_(this.templateCache_[e]);else{var t="https://"+this.account_+".carto.com/api/v1/map";this.mapId_&&(t+="/named/"+this.mapId_);var n=new XMLHttpRequest;n.addEventListener("load",this.handleInitResponse_.bind(this,e)),n.addEventListener("error",this.handleInitError_.bind(this)),n.open("POST",t),n.setRequestHeader("Content-type","application/json"),n.send(JSON.stringify(this.config_))}},t.prototype.handleInitResponse_=function(e,t){var n=t.target;if(!n.status||n.status>=200&&n.status<300){var r=void 0;try{r=JSON.parse(n.responseText)}catch(e){return void this.setState("error")}this.applyTemplate_(r),this.templateCache_[e]=r,this.setState("ready")}else this.setState("error")},t.prototype.handleInitError_=function(e){this.setState("error")},t.prototype.applyTemplate_=function(e){var t="https://"+e.cdn_url.https+"/"+this.account_+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png";this.setUrl(t)},t}(b),C=n(11),S=n(24),E=n(29),k=n(72),T=n(27),O=n(15),$=n(4),P=(o=function(e,t){return(o=Object.
839setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),I=function(e){function t(t){var n=e.call(this,{attributions:t.attributions,wrapX:t.wrapX})||this;return n.resolution=void 0,n.distance=void 0!==t.distance?t.distance:20,n.minDistance=t.minDistance||0,n.interpolationRatio=0,n.features=[],n.geometryFunction=t.geometryFunction||function(e){var t=e.getGeometry();return Object(O.a)("Point"==t.getType(),10),t},n.createCustomCluster_=t.createCluster,n.source=null,n.boundRefresh_=n.refresh.bind(n),n.updateDistance(n.distance,n.minDistance),n.setSource(t.source||null),n}return P(t,e),t.prototype.clear=function(t){this.features.length=0,e.prototype.clear.call(this,t)},t.prototype.getDistance=function(){return this.distance},t.prototype.getSource=function(){return this.source},t.prototype.loadFeatures=function(e,t,n){this.source.loadFeatures(e,t,n),t!==this.resolution&&(this.resolution=t,this.refresh())},t.prototype.setDistance=function(e){this.updateDistance(e,this.minDistance)},t.prototype.setMinDistance=function(e){this.updateDistance(this.distance,e)},t.prototype.getMinDistance=function(){return this.minDistance},t.prototype.setSource=function(e){this.source&&this.source.removeEventListener(C.a.CHANGE,this.boundRefresh_),this.source=e,e&&e.addEventListener(C.a.CHANGE,this.boundRefresh_),this.refresh()},t.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},t.prototype.updateDistance=function(e,t){var n=0===e?0:Math.min(t,e)/e,r=e!==this.distance||this.interpolationRatio!==n;this.distance=e,this.minDistance=t,this.interpolationRatio=n,r&&this.refresh()}
839,t.prototype.cluster=function(){if(void 0!==this.resolution&&this.source)for(var e=Object(c.createEmpty)(),t=this.distance*this.resolution,n=this.source.getFeatures(),r={},i=0,o=n.length;i<o;i++){var a=n[i];if(!(Object($.c)(a)in r)){var s=this.geometryFunction(a);if(s){var l=s.getCoordinates();Object(c.createOrUpdateFromCoordinate)(l,e),Object(c.buffer)(e,t,e);var d=this.source.getFeaturesInExtent(e).filter((function(e){var t=Object($.c)(e);return!(t in r)&&(r[t]=!0,!0)}));this.features.push(this.createCluster(d,e))}}}},t.prototype.createCluster=function(e,t){for(var n=[0,0],r=e.length-1;r>=0;--r){var i=this.geometryFunction(e[r]);i?Object(T.a)(n,i.getCoordinates()):e.splice(r,1)}Object(T.i)(n,1/e.length);var o=Object(c.getCenter)(t),a=this.interpolationRatio,s=new E.a([n[0]*(1-a)+o[0]*a,n[1]*(1-a)+o[1]*a]);return this.createCustomCluster_?this.createCustomCluster_(s,e):new S.a({geometry:s,features:e})},t}(k.a),L=n(212),A=n(135),M=n(108),j=n(13),R=n(32),D=n(30),F=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),N=function(e){function t(t){var n=this,r=void 0===t.projection?"EPSG:3857":t.projection,i=t.tileGrid;if(void 0===i&&r&&(i=Object(p.createXYZ)({extent:Object(p.extentFromProjection)(r),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize})),(n=e.call(this,{cacheSize:.1,attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:r,tileGrid:i,opaque:t.opaque,state:t.state,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate})||this).gutter_=void 0!==t.gutter?t.gutter:0,n.tileSize_=t.tileSize?Object(D.d)(t.tileSize):null,!n.tileSize_&&t.tilePixelRatio&&i){var o=Object(D.d)(i.getTileSize(0));n.tileSize_=[o[0]*t.tilePixelRatio,o[1]*t.tilePixelRatio]}return n.tileSizes_=null,n.tileLoadingKeys_={},n.loader_=t.loader,n.handleTileChange_=n.handleTileChange_.bind(n),n.bandCount=void 0===t.bandCount?4:t.bandCount,n}return F(t,e),t.prototype.setTileSizes=function(e){this.tileSizes_=e},t.prototype.getTileSize=function(e){if(this.tileSizes_)return this.tileSizes_[e];if(this.tileSize_)return this.tileSize_;var t=this.getTileGrid();return t?Object(D.d)(t.getTileSize(e)):[256,256]},t.prototype.getGutterForProjection=function(e){return this.gutter_},t.prototype.setLoader=function(e){this.loader_=e},t.prototype.getTile=function(e,t,n,r,i){var o=this.getTileSize(e),a=Object(h.e)(e,t,n);if(this.tileCache.containsKey(a))return this.tileCache.get(a);var s=this.loader_,l=Object(_.a)({tileCoord:[e,t,n],loader:function(){return Object(R.e)((function(){return s(e,t,n)}))},size:o},this.tileOptions),c=new L.a(l);return c.key=this.getKey(),c.addEventListener(C.a.CHANGE,this.handleTileChange_),this.tileCache.set(a,c),c},t.prototype.handleTileChange_=function(e){var t,n=e.target,r=Object($.c)(n),i=n.getState();i==j.a.LOADING?(this.tileLoadingKeys_[r]=!0,t=A.a.TILELOADSTART):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],t=i==j.a.ERROR?A.a.TILELOADERROR:i==j.a.LOADED?A.a.TILELOADEND:void 0),t&&this.dispatchEvent(new M.a(t,n))},t}(M.b),B=n(86),U=new Map;function z(e,t){Array.isArray(e)||(e=[e]),e.forEach((function(e){return U.set(e,t)}))}function G(e){return V.apply(this,arguments)}function V(){return(V=Ve($e().mark((function e(t){var n;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=U.get(t.Compression)){e.next=3;break}throw new Error("Unknown compression method identifier: "+t.Compression);case 3:return e.next=5,n();case 5:return e.t0=e.sent,e.t1=t,e.abrupt("return",new e.t0(e.t1));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}z([void 0,1],(function(){return n.e(6).then(n.bind(null,296)).then((function(e){return e.default}))})),z(5,(function(){return n.e(4).then(n.bind(null,297)).then((function(e){return e.default}))})),z(6,(function(){throw new Error("old style JPEG compression is not supported.")})),z(7,(function(){return n.e(3).then(n.bind(null,298)).then((function(e){return e.default}))})),z([8,32946],(function(){return Promise.all([n.e(0),n.e(10)]).then(n.bind(null,299)).then((function(e){return e.default}))})),z(32773,(function(){return n.e(5).then(n.bind(null,300)).then((function(e){return e.default}))})),z(34887,(function(){return Promise.all([n.e(0),n.e(8)]).then(n.bind(null,301)).then((function(e){return e.default}))})),z(50001,(function(){return n.e(7).then(n.bind(null,302)).then((function(e){return e.default}))}));var q="undefined"!=typeof navigator&&navigator.hardwareConcurrency||2,H=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,i=arguments.length>1?arguments[1]:void 0;Ae(this,e),this.workers=null,this._awaitingDecoder=null,this.size=r,this.messageId=0,r&&(this._awaitingDecoder=i?Promise.resolve(i):new Promise((function(e){n.e(9).then(n.bind(null,295)).then((function(t){e(t.create)}))})),this._awaitingDecoder.then((function(e){t._awaitingDecoder=null,t.workers=[];for(var n=0;n<r;n++)t.workers.push({worker:e(),idle:!0})}
839)))}var t;return Ie(e,[{key:"decode",value:(t=Ve($e().mark((function e(t,n){var r=this;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this._awaitingDecoder,!e.t0){e.next=4;break}return e.next=4,this._awaitingDecoder;case 4:return e.abrupt("return",0===this.size?G(t).then((function(e){return e.decode(t,n)})):new Promise((function(e){var i=r.workers.find((function(e){return e.idle}))||r.workers[Math.floor(Math.random()*r.size)];i.idle=!1;var o=r.messageId++;i.worker.addEventListener("message",(function t(n){n.data.id===o&&(i.idle=!0,e(n.data.decoded),i.worker.removeEventListener("message",t))})),i.worker.postMessage({fileDirectory:t,buffer:n,id:o},[n])})));case 5:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"destroy",value:function(){this.workers&&(this.workers.forEach((function(e){e.worker.terminate()})),this.workers=null)}}]),e}(),W=n(213),Y=n(220),X=n.n(Y),K=n(248),Z=n.n(K),J=n(20);function Q(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return new(Object.getPrototypeOf(e).constructor)(t*n*r)}function ee(e,t,n){return(1-n)*e+n*t}function te(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"nearest";switch(o.toLowerCase()){case"nearest":return function(e,t,n,r,i){var o=t/r,a=n/i;return e.map((function(e){for(var s=Q(e,r,i),l=0;l<i;++l)for(var c=Math.min(Math.round(a*l),n-1),d=0;d<r;++d){var u=Math.min(Math.round(o*d),t-1),h=e[c*t+u];s[l*r+d]=h}return s}))}(e,t,n,r,i);case"bilinear":case"linear":return function(e,t,n,r,i){var o=t/r,a=n/i;return e.map((function(e){for(var s=Q(e,r,i),l=0;l<i;++l)for(var c=a*l,d=Math.floor(c),u=Math.min(Math.ceil(c),n-1),h=0;h<r;++h){var p=o*h,f=p%1,m=Math.floor(p),g=Math.min(Math.ceil(p),t-1),v=e[d*t+m],y=e[d*t+g],b=e[u*t+m],_=e[u*t+g],w=ee(ee(v,y,f),ee(b,_,f),c%1);s[l*r+h]=w}return s}))}(e,t,n,r,i);default:throw new Error("Unsupported resampling method: '".concat(o,"'"))}}function ne(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"nearest";switch(a.toLowerCase()){case"nearest":return function(e,t,n,r,i,o){for(var a=t/r,s=n/i,l=Q(e,r,i,o),c=0;c<i;++c)for(var d=Math.min(Math.round(s*c),n-1),u=0;u<r;++u)for(var h=Math.min(Math.round(a*u),t-1),p=0;p<o;++p){var f=e[d*t*o+h*o+p];l[c*r*o+u*o+p]=f}return l}(e,t,n,r,i,o);case"bilinear":case"linear":return function(e,t,n,r,i,o){for(var a=t/r,s=n/i,l=Q(e,r,i,o),c=0;c<i;++c)for(var d=s*c,u=Math.floor(d),h=Math.min(Math.ceil(d),n-1),p=0;p<r;++p)for(var f=a*p,m=f%1,g=Math.floor(f),v=Math.min(Math.ceil(f),t-1),y=0;y<o;++y){var b=e[u*t*o+g*o+y],_=e[u*t*o+v*o+y],w=e[h*t*o+g*o+y],x=e[h*t*o+v*o+y],C=ee(ee(b,_,m),ee(w,x,m),d%1);l[c*r*o+p*o+y]=C}return l}(e,t,n,r,i,o);default:throw new Error("Unsupported resampling method: '".concat(a,"'"))}}function re(e,t,n){for(var r=0,i=t;i<n;++i)r+=e[i];return r}function ie(e,t,n){switch(e){case 1:if(t<=8)return new Uint8Array(n);if(t<=16)return new Uint16Array(n);if(t<=32)return new Uint32Array(n);break;case 2:if(8===t)return new Int8Array(n);if(16===t)return new Int16Array(n);if(32===t)return new Int32Array(n);break;case 3:switch(t){case 16:case 32:return new Float32Array(n);case 64:return new Float64Array(n)}}throw Error("Unsupported data format/bitsPerSample")}var oe=function(){function e(t,n,r,i,o,a){Ae(this,e),this.fileDirectory=t,this.geoKeys=n,this.dataView=r,this.littleEndian=i,this.tiles=o?{}:null,this.isTiled=!t.StripOffsets;var s=t.PlanarConfiguration;if(this.planarConfiguration=void 0===s?1:s,1!==this.planarConfiguration&&2!==this.planarConfiguration)throw new Error("Invalid planar configuration.");this.source=a}var t,n,r,i;return Ie(e,[{key:"getFileDirectory",value:function(){return this.fileDirectory}},{key:"getGeoKeys",value:function(){return this.geoKeys}},{key:"getWidth",value:function(){return this.fileDirectory.ImageWidth}},{key:"getHeight",value:function(){return this.fileDirectory.ImageLength}},{key:"getSamplesPerPixel",value:function(){return void 0!==this.fileDirectory.SamplesPerPixel?this.fileDirectory.SamplesPerPixel:1}},{key:"getTileWidth",value:function(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}},{key:"getTileHeight",value:function(){return this.isTiled?this.fileDirectory.TileLength:void 0!==this.fileDirectory.RowsPerStrip?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}},{key:"getBlockWidth",value:function(){return this.getTileWidth()}},{key:"getBlockHeight",value:function(e){return this.isTiled||(e+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-e*this.getTileHeight()}},{key:"getBytesPerPixel",value:function(){for(var e=0,t=0;t<this.fileDirectory.BitsPerSample.length;++t)e+=this.getSampleByteSize(t);return e}},{key:"getSampleByteSize",value:function(e){if(e>=this.fileDirectory.BitsPerSample.length)throw new RangeError("Sample index ".concat(e," is out of range."));return Math.ceil(this.fileDirectory.BitsPerSample[e]/8)}},{key:"getReaderForSample",value:function(e){var t=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1,n=this.fileDirectory.BitsPerSample[e];switch(t){case 1:if(n<=8)return DataView.prototype.getUint8;if(n<=16)return DataView.prototype.getUint16;if(n<=32)return DataView.prototype.getUint32;break;case 2:if(n<=8)return DataView.prototype.getInt8;if(n<=16)return DataView.prototype.getInt16;if(n<=32)return DataView.prototype.getInt32;break;case 3:switch(n){case 16:return function(e,t){return Object(W.getFloat16)(this,e,t)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}}throw Error("Unsupported data format/bitsPerSample")}},{key:"getSampleFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1}},{key:"getBitsPerSample",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.fileDirectory.BitsPerSample[e]}},{key:"getArrayForSample",value:function(e,t){return ie(this.getSampleFormat(e),this.getBitsPerSample(e),t)}},{key:"getTileOrStrip",value:(i=Ve($e().mark((function e(t,n,r,i,o){var a,s,l,c,d,u,h,p,f=this;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Math.ceil(this.getWidth()/this.getTileWidth()),s=Math.ceil(this.getHeight()/this.getTileHeight()),c=this.tiles,1===this.planarConfiguration?l=n*a+t:2===this.planarConfiguration&&(l=r*a*s+n*a+t),this.isTiled?(d=this.fileDirectory.TileOffsets[l],u=this.fileDirectory.TileByteCounts[l]):(d=this.fileDirectory.StripOffsets[l],u=this.fileDirectory.StripByteCounts[l]),e.next=5,this.source.fetch([{offset:d,length:u}],o);case 5:return h=e.sent[0],null!==c&&c[l]?p=c[l]:(p=Ve($e().mark((function e(){var t,r,o;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.decode(f.fileDirectory,h);case 2:return t=e.sent,r=f.getSampleFormat(),o=f.getBitsPerSample(),e.abrupt("return",(function(e,t){return(1!==e&&2!==e||!(t<=32)||t%8!=0)&&(3!==e||16!==t&&32!==t&&64!==t)}(r,o)&&(t=function(e,t,n,r,i,o,a){var s=new DataView(e),l=2===n?1:r,c=ie(t,i,2===n?a*o:a*o*r),d=parseInt("1".repeat(i),2);if(1===t){var u=o*(1===n?r*i:i);0!=(7&u)&&(u=u+7&-8);for(var h=0;h<a;++h)for(var p=h*u,f=0;f<o;++f)for(var m=p+f*l*i,g=0;g<l;++g){var v=m+g*i,y=(h*o+f)*l+g,b=Math.floor(v/8),_=v%8;if(_+i<=8)c[y]=s.getUint8(b)>>8-i-_&d;else if(_+i<=16)c[y]=s.getUint16(b)>>16-i-_&d;else if(_+i<=24){var w=s.getUint16(b)<<8|s.getUint8(b+2);c[y]=w>>24-i-_&d}else c[y]=s.getUint32(b)>>32-i-_&d}}return c.buffer}(t,r,f.planarConfiguration,f.getSamplesPerPixel(),o,f.getTileWidth(),f.getBlockHeight(n))),t));case 5:case"end":return e.stop()}}),e)})))(),null!==c&&(c[l]=p)),e.t0=t,e.t1=n,e.t2=r,e.next=12,p;case 12:return e.t3=e.sent,e.abrupt("return",{x:e.t0,y:e.t1,sample:e.t2,data:e.t3});case 14:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,o){return i.apply(this,arguments)})},{key:"_readRaster",value:(r=Ve($e().mark((function e(t,n,r,i,o,a,s,l,c){var d,u,h,p,f,m,g,v,y,b,_,w,x,C,S,E,k,T,O,$,P
839=this;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(d=this.getTileWidth(),u=this.getTileHeight(),h=this.getWidth(),p=this.getHeight(),f=Math.max(Math.floor(t[0]/d),0),m=Math.min(Math.ceil(t[2]/d),Math.ceil(h/d)),g=Math.max(Math.floor(t[1]/u),0),v=Math.min(Math.ceil(t[3]/u),Math.ceil(p/u)),y=t[2]-t[0],b=this.getBytesPerPixel(),_=[],w=[],x=0;x<n.length;++x)1===this.planarConfiguration?_.push(re(this.fileDirectory.BitsPerSample,0,n[x])/8):_.push(0),w.push(this.getReaderForSample(n[x]));C=[],S=this.littleEndian,E=g;case 6:if(!(E<v)){e.next=22;break}k=f;case 8:if(!(k<m)){e.next=19;break}T=$e().mark((function e(){var a,s,l;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=O,s=n[O],2===P.planarConfiguration&&(b=P.getSampleByteSize(O)),l=P.getTileOrStrip(k,E,s,o,c),C.push(l),l.then((function(e){for(var o=e.data,s=new DataView(o),l=P.getBlockHeight(e.y),c=e.y*u,f=e.x*d,m=c+l,g=(e.x+1)*d,v=w[a],x=Math.min(l,l-(m-t[3]),p-c),C=Math.min(d,d-(g-t[2]),h-f),E=Math.max(0,t[1]-c);E<x;++E)for(var k=Math.max(0,t[0]-f);k<C;++k){var T=(E*d+k)*b,O=v.call(s,T+_[a],S),$=void 0;i?($=(E+c-t[1])*y*n.length+(k+f-t[0])*n.length+a,r[$]=O):($=(E+c-t[1])*y+k+f-t[0],r[a][$]=O)}}));case 4:case"end":return e.stop()}}),e)})),O=0;case 11:if(!(O<n.length)){e.next=16;break}return e.delegateYield(T(),"t0",13);case 13:++O,e.next=11;break;case 16:++k,e.next=8;break;case 19:++E,e.next=6;break;case 22:return e.next=24,Promise.all(C);case 24:if(!(a&&t[2]-t[0]!==a||s&&t[3]-t[1]!==s)){e.next=26;break}return e.abrupt("return",(($=i?ne(r,t[2]-t[0],t[3]-t[1],a,s,n.length,l):te(r,t[2]-t[0],t[3]-t[1],a,s,l)).width=a,$.height=s,$));case 26:return e.abrupt("return",(r.width=a||t[2]-t[0],r.height=s||t[3]-t[1],r));case 27:case"end":return e.stop()}}),e,this)}))),function(e,t,n,i,o,a,s,l,c){return r.apply(this,arguments)})},{key:"readRasters",value:(n=Ve($e().mark((function e(){var t,n,r,i,o,a,s,l,c,d,u,h,p,f,m,g,v,y,b,_,w,x=arguments;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=x.length>0&&void 0!==x[0]?x[0]:{},n=t.window,r=t.samples,i=void 0===r?[]:r,o=t.interleave,a=t.pool,s=void 0===a?null:a,l=t.width,c=t.height,d=t.resampleMethod,u=t.fillValue,h=t.signal,!((p=n||[0,0,this.getWidth(),this.getHeight()])[0]>p[2]||p[1]>p[3])){e.next=4;break}throw new Error("Invalid subsets");case 4:if(f=(p[2]-p[0])*(p[3]-p[1]),m=this.getSamplesPerPixel(),!i||!i.length){e.next=15;break}g=0;case 7:if(!(g<i.length)){e.next=13;break}if(!(i[g]>=m)){e.next=10;break}return e.abrupt("return",Promise.reject(new RangeError("Invalid sample index '".concat(i[g],"'."))));case 10:++g,e.next=7;break;case 13:e.next=16;break;case 15:for(v=0;v<m;++v)i.push(v);case 16:if(o)y=ie(this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,Math.max.apply(null,this.fileDirectory.BitsPerSample),f*i.length),u&&y.fill(u);else for(y=[],b=0;b<i.length;++b)_=this.getArrayForSample(i[b],f),Array.isArray(u)&&b<u.length?_.fill(u[b]):u&&!Array.isArray(u)&&_.fill(u),y.push(_);if(e.t0=s,e.t0){e.next=22;break}return e.next=21,G(this.fileDirectory);case 21:e.t0=e.sent;case 22:return w=e.t0,e.next=25,this._readRaster(p,i,y,o,w,l,c,d,h);case 25:return e.abrupt("return",e.sent);case 26:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"readRGB",value:(t=Ve($e().mark((function e(){var t,n,r,i,o,a,s,l,c,d,u,h,p,f,m,g,v,y,b,_,w,x,C,S,E,k,T,O=arguments;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=O.length>0&&void 0!==O[0]?O[0]:{},n=t.window,r=t.interleave,i=void 0===r||r,o=t.pool,a=void 0===o?null:o,s=t.width,l=t.height,c=t.resampleMethod,d=t.enableAlpha,u=void 0!==d&&d,h=t.signal,!((p=n||[0,0,this.getWidth(),this.getHeight()])[0]>p[2]||p[1]>p[3])){e.next=4;break}throw new Error("Invalid subsets");case 4:if((f=this.fileDirectory.PhotometricInterpretation)!==J.j.RGB){e.next=9;break}if(m=[0,1,2],this.fileDirectory.ExtraSamples!==J.a.Unspecified&&u)for(m=[],g=0;g<this.fileDirectory.BitsPerSample.length;g+=1)m.push(g);return e.abrupt("return",this.readRasters({window:n,interleave:i,samples:m,pool:a,width:s,height:l,resampleMethod:c,signal:h}));case 9:e.t0=f,e.next=e.t0===J.j.WhiteIsZero||e.t0===J.j.BlackIsZero||e.t0===J.j.Palette?12:e.t0===J.j.CMYK?14:e.t0===J.j.YCbCr||e.t0===J.j.CIELab?16:18;break;case 12:return v=[0],e.abrupt("break",19);case 14:return v=[0,1,2,3],e.abrupt("break",19);case 16:return v=[0,1,2],e.abrupt("break",19);case 18:throw new Error("Invalid or unsupported photometric interpretation.");case 19:return y={window:p,interleave:!0,samples:v,pool:a,width:s,height:l,resampleMethod:c,signal:h},b=this.fileDirectory,e.next=23,this.readRasters(y);case 23:_=e.sent,w=Math.pow(2,this.fileDirectory.BitsPerSample[0]),e.t1=f,e.next=e.t1===J.j.WhiteIsZero?28:e.t1===J.j.BlackIsZero?30:e.t1===J.j.Palette?32:e.t1===J.j.CMYK?34:e.t1===J.j.YCbCr?36:e.t1===J.j.CIELab?38:40;break;
839case 28:return x=function(e,t){for(var n,r=e.width,i=e.height,o=new Uint8Array(r*i*3),a=0,s=0;a<e.length;++a,s+=3)n=256-e[a]/t*256,o[s]=n,o[s+1]=n,o[s+2]=n;return o}(_,w),e.abrupt("break",41);case 30:return x=function(e,t){for(var n,r=e.width,i=e.height,o=new Uint8Array(r*i*3),a=0,s=0;a<e.length;++a,s+=3)n=e[a]/t*256,o[s]=n,o[s+1]=n,o[s+2]=n;return o}(_,w),e.abrupt("break",41);case 32:return x=function(e,t){for(var n=e.width,r=e.height,i=new Uint8Array(n*r*3),o=t.length/3,a=t.length/3*2,s=0,l=0;s<e.length;++s,l+=3){var c=e[s];i[l]=t[c]/65536*256,i[l+1]=t[c+o]/65536*256,i[l+2]=t[c+a]/65536*256}return i}(_,b.ColorMap),e.abrupt("break",41);case 34:return x=function(e){for(var t=e.width,n=e.height,r=new Uint8Array(t*n*3),i=0,o=0;i<e.length;i+=4,o+=3){var a=e[i],s=e[i+1],l=e[i+2],c=e[i+3];r[o]=(255-a)/256*255*((255-c)/256),r[o+1]=(255-s)/256*255*((255-c)/256),r[o+2]=(255-l)/256*255*((255-c)/256)}return r}(_),e.abrupt("break",41);case 36:return x=function(e){for(var t=e.width,n=e.height,r=new Uint8ClampedArray(t*n*3),i=0,o=0;i<e.length;i+=3,o+=3){var a=e[i],s=e[i+1],l=e[i+2];r[o]=a+1.402*(l-128),r[o+1]=a-.34414*(s-128)-.71414*(l-128),r[o+2]=a+1.772*(s-128)}return r}(_),e.abrupt("break",41);case 38:return x=function(e){for(var t=e.width,n=e.height,r=new Uint8Array(t*n*3),i=0,o=0;i<e.length;i+=3,o+=3){var a=void 0,s=void 0,l=void 0,c=(e[i+0]+16)/116,d=(e[i+1]<<24>>24)/500+c,u=c-(e[i+2]<<24>>24)/200;s=-.9689*(d=.95047*(d*d*d>.008856?d*d*d:(d-16/116)/7.787))+1.8758*(c=1*(c*c*c>.008856?c*c*c:(c-16/116)/7.787))+.0415*(u=1.08883*(u*u*u>.008856?u*u*u:(u-16/116)/7.787)),l=.0557*d+-.204*c+1.057*u,a=(a=3.2406*d+-1.5372*c+-.4986*u)>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:12.92*s,l=l>.0031308?1.055*Math.pow(l,1/2.4)-.055:12.92*l,r[o]=255*Math.max(0,Math.min(1,a)),r[o+1]=255*Math.max(0,Math.min(1,s)),r[o+2]=255*Math.max(0,Math.min(1,l))}return r}(_),e.abrupt("break",41);case 40:throw new Error("Unsupported photometric interpretation.");case 41:if(!i){for(C=new Uint8Array(x.length/3),S=new Uint8Array(x.length/3),E=new Uint8Array(x.length/3),k=0,T=0;k<x.length;k+=3,++T)C[T]=x[k],S[T]=x[k+1],E[T]=x[k+2];x=[C,S,E]}return e.abrupt("return",(x.width=_.width,x.height=_.height,x));case 43:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getTiePoints",value:function(){if(!this.fileDirectory.ModelTiepoint)return[];for(var e=[],t=0;t<this.fileDirectory.ModelTiepoint.length;t+=6)e.push({i:this.fileDirectory.ModelTiepoint[t],j:this.fileDirectory.ModelTiepoint[t+1],k:this.fileDirectory.ModelTiepoint[t+2],x:this.fileDirectory.ModelTiepoint[t+3],y:this.fileDirectory.ModelTiepoint[t+4],z:this.fileDirectory.ModelTiepoint[t+5]});return e}},{key:"getGDALMetadata",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t={};if(!this.fileDirectory.GDAL_METADATA)return null;var n=this.fileDirectory.GDAL_METADATA,r=Z()(n,"Item");r=null===e?r.filter((function(e){return void 0===X()(e,"sample")})):r.filter((function(t){return Number(X()(t,"sample"))===e}));for(var i=0;i<r.length;++i){var o=r[i];t[X()(o,"name")]=o.inner}return t}},{key:"getGDALNoData",value:function(){if(!this.fileDirectory.GDAL_NODATA)return null;var e=this.fileDirectory.GDAL_NODATA;return Number(e.substring(0,e.length-1))}},{key:"getOrigin",value:function(){var e=this.fileDirectory.ModelTiepoint,t=this.fileDirectory.ModelTransformation;if(e&&6===e.length)return[e[3],e[4],e[5]];if(t)return[t[3],t[7],t[11]];throw new Error("The image does not have an affine transformation.")}},{key:"getResolution",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.fileDirectory.ModelPixelScale,n=this.fileDirectory.ModelTransformation;if(t)return[t[0],-t[1],t[2]];if(n)return[n[0],n[5],n[10]];if(e){var r=e.getResolution(),i=_e(r,3),o=i[0],a=i[1],s=i[2];return[o*e.getWidth()/this.getWidth(),a*e.getHeight()/this.getHeight(),s*e.getWidth()/this.getWidth()]}throw new Error("The image does not have an affine transformation.")}},{key:"pixelIsArea",value:function(){return 1===this.geoKeys.GTRasterTypeGeoKey}},{key:"getBoundingBox",value:function(){var e=this.getOrigin(),t=this.getResolution(),n=e[0],r=e[1],i=n+t[0]*this.getWidth(),o=r+t[1]*this.getHeight();return[Math.min(n,i),Math.min(r,o),Math.max(n,i),Math.max(r,o)]}}]),e}(),ae=function(){function e(t){Ae(this,e),this._dataView=new DataView(t)}return Ie(e,[{key:"buffer",get:function(){return this._dataView.buffer}},{key:"getUint64",value:function(e,t){var n,r=this.getUint32(e,t),i=this.getUint32(e+4,t);if(t){if(n=r+Math.pow(2,32)*i,!Number.isSafeInteger(n))throw new Error(n+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return n}if(n=Math.pow(2,32)*r+i,!Number.isSafeInteger(n))throw new Error(n+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return n}},{key:"getInt64",value:function(e,t){for(var n=0,r=(128&this._dataView.getUint8(e+(t?7:0)))>0,i=!0,o=0;o<8;o++){var a=this._dataView.getUint8(e+(t?o:7-o));r&&(i?0!==a&&(a=255&~(a-1),i=!1):a=255&~a),n+=a*Math.pow(256,o)}return r&&(n=-n),n}},{key:"getUint8",value:function(e,t){return this._dataView.getUint8(e,t)}},{key:"getInt8",value:function(e,t){return this._dataView.getInt8(e,t)}},{key:"getUint16",value:function(e,t){return this._dataView.getUint16(e,t)}},{key:"getInt16",value:function(e,t){return this._dataView.getInt16(e,t)}},{key:"getUint32",value:function(e,t){return this._dataView.getUint32(e,t)}},{key:"getInt32",value:function(e,t){return this._dataView.getInt32(e,t)}},{key:"getFloat16",value:function(e,t){return Object(W.getFloat16)(this._dataView,e,t)}},{key:"getFloat32",value:function(e,t){return this._dataView.getFloat32(e,t)}},{key:"getFloat64",value:function(e,t){return this._dataView.getFloat64(e,t)}}]),e}(),se=function(){function e(t,n,r,i){Ae(this,e),this._dataView=new DataView(t),this._sliceOffset=n,this._littleEndian=r,this._bigTiff=i}return Ie(e,[{key:"sliceOffset",get:function(){return this._sliceOffset}},{key:"sliceTop",get:function(){return this._sliceOffset+this.buffer.byteLength}},{key:"littleEndian",get:function(){return this._littleEndian}},{key:"bigTiff",get:function(){return this._bigTiff}},{key:"buffer",get:function(){return this._dataView.buffer}},{key:"covers",value:function(e,t){return this.sliceOffset<=e&&this.sliceTop>=e+t}},{key:"readUint8",value:function(e){return this._dataView.getUint8(e-this._sliceOffset,this._littleEndian)}},{key:"readInt8",value:function(e){return this._dataView.getInt8(e-this._sliceOffset,this._littleEndian)}},{key:"readUint16",value:function(e){return this._dataView.getUint16(e-this._sliceOffset,this._littleEndian)}},{key:"readInt16",value:function(e){return this._dataView.getInt16(e-this._sliceOffset,this._littleEndian)}},{key:"readUint32",value:function(e){return this._dataView.getUint32(e-this._sliceOffset,this._littleEndian)}},{key:"readInt32",value:function(e){return this._dataView.getInt32(e-this._sliceOffset,this._littleEndian)}},{key:"readFloat32",value:function(e){return this._dataView.getFloat32(e-this._sliceOffset,this._littleEndian)}},{key:"readFloat64",value:function(e){return this._dataView.getFloat64(e-this._sliceOffset,this._littleEndian)}},{key:"readUint64",value:function(e){var t,n=this.readUint32(e),r=this.readUint32(e+4);if(this._littleEndian){if(t=n+Math.pow(2,32)*r,!Number.isSafeInteger(t))throw new Error(t+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return t}if(t=Math.pow(2,32)*n+r,!Number.isSafeInteger(t))throw new Error(t+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return t}},{key:"readInt64",value:function(e){for(var t=0,n=(128&this._dataView.getUint8(e+(this._littleEndian?7:0)))>0,r=!0,i=0;i<8;i++){var o=this._dataView.getUint8(e+(this._littleEndian?i:7-i));n&&(r?0!==o&&(o=255&~(o-1),r=!1):o=255&~o),t+=o*Math.pow(256,i)}return n&&(t=-t),t}},{key:"readOffset",value:function(e){return this._bigTiff?this.readUint64(e):this.readUint32(e)}}]),e}();function le(e){if(void 0!==Object.fromEntries)return Object.fromEntries(e);var t,n={},r=Ee(e);try{for(r.s();!(t=r.n()).done;){var i=_e(t.value,2),o=i[0],a=i[1];n[o.toLowerCase()]=a}}catch(e){r.e(e)}finally{r.f()}return n}function ce(e){return le(e.split("\r\n").map((function(e){var t=e.split(":").map((function(e){return e.trim()}));return t[0]=t[0].toLowerCase(),t})))}function de(e){var t,n,r,i;return e&&(n=(t=_e(e.match(/bytes (\d+)-(\d+)\/(\d+)/),4))[1],r=t[2],i=t[3],n=parseInt(n,10),r=parseInt(r,10),i=parseInt(i,10)),{start:n,end:r,total:i}}
839var ue=n(121),he=n(249),ye=n.n(he),Ce=n(45),Te=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Ae(this,e),this.offset=t,this.length=n,this.data=r}return Ie(e,[{key:"top",get:function(){return this.offset+this.length}}]),e}(),Oe=Ie((function e(t,n,r){Ae(this,e),this.offset=t,this.length=n,this.blockIds=r})),Pe=function(e){Me(r,e);var t,n=je(r);function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.blockSize,a=void 0===o?65536:o,s=i.cacheSize,l=void 0===s?100:s;return Ae(this,r),(t=n.call(this)).source=e,t.blockSize=a,t.blockCache=new ye.a({max:l}),t.blockRequests=new Map,t.blockIdsToFetch=new Set,t}return Ie(r,[{key:"fileSize",get:function(){return this.source.fileSize}},{key:"fetch",value:(t=Ve($e().mark((function e(t,n){var r,i,o,a,s,l,c,d,u,h,p,f,m,g,v,y,b,_,w,x,C,S,E,k,T,O,$,P,I,L,A,M,j,R,D,F,N;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new Map,i=new Map,o=new Set,a=Ee(t);try{for(a.s();!(s=a.n()).done;)for(l=s.value,c=l.offset,d=l.length,u=c+d,null!==(h=this.fileSize)&&(u=Math.min(u,h)),p=Math.floor(c/this.blockSize)*this.blockSize;p<u;p+=this.blockSize)f=Math.floor(p/this.blockSize),this.blockCache.has(f)?r.set(f,this.blockCache.get(f)):this.blockRequests.has(f)?i.set(f,this.blockRequests.get(f)):(this.blockIdsToFetch.has(f)||this.blockIdsToFetch.add(f),o.add(f))}catch(e){a.e(e)}finally{a.f()}return e.next=5,Object(Ce.h)();case 5:this.fetchBlocks(n),m=Ee(o),e.prev=7,m.s();case 9:if((g=m.n()).done){e.next=21;break}if(v=g.value,y=this.blockRequests.get(v),b=this.blockCache.get(v),!y){e.next=16;break}i.set(v,y),e.next=19;break;case 16:if(b){e.next=18;break}throw new Error("Block ".concat(v," is not in the block requests"));case 18:r.set(v,b);case 19:e.next=9;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(7),m.e(e.t0);case 26:return e.prev=26,m.f(),e.finish(26);case 29:return e.next=31,Promise.allSettled(Array.from(i.values()));case 31:if(!(_=e.sent).some((function(e){return"rejected"===e.status}))){e.next=60;break}w=new Set,x=Ee(Object(Ce.i)(i.keys(),_));try{for(x.s();!(C=x.n()).done;)S=_e(C.value,2),E=S[0],k=S[1],T=k.rejected,O=k.reason,T&&"AbortError"===O.name&&O.signal!==n&&(this.blockIdsToFetch.add(E),w.add(E))}catch(e){x.e(e)}finally{x.f()}if(!(this.blockIdsToFetch.length>0)){e.next=60;break}this.fetchBlocks(n),$=Ee(w),e.prev=39,$.s();case 41:if((P=$.n()).done){e.next=49;break}if(I=P.value,L=this.blockRequests.get(I)){e.next=46;break}throw new Error("Block ".concat(I," is not in the block requests"));case 46:i.set(I,L);case 47:e.next=41;break;case 49:e.next=54;break;case 51:e.prev=51,e.t1=e.catch(39),$.e(e.t1);case 54:return e.prev=54,$.f(),e.finish(54);case 57:return e.next=59,Promise.allSettled(Array.from(i.values()));case 59:_=e.sent;case 60:if(!_.some((function(e){return"rejected"===e.status}))){e.next=64;break}if(!n||!n.aborted){e.next=63;break}throw new Ce.a("Request was aborted");case 63:throw new Ce.b(_.filter((function(e){return"rejected"===e.status})).map((function(e){return e.reason})),"Request failed");case 64:A=_.map((function(e){return e.value})),M=new Map(Object(Ce.i)(Array.from(i.keys()),A)),j=Ee(r);try{for(j.s();!(R=j.n()).done;)D=_e(R.value,2),F=D[0],N=D[1],M.set(F,N)}catch(e){j.e(e)}finally{j.f()}return e.abrupt("return",this.readSliceData(t,M));case 68:case"end":return e.stop()}}),e,this,[[7,23,26,29],[39,51,54,57]])}))),function(e,n){return t.apply(this,arguments)})},{key:"fetchBlocks",value:function(e){var t=this;if(this.blockIdsToFetch.size>0){for(var n=this.groupBlocks(this.blockIdsToFetch),r=this.source.fetch(n,e),i=function(i){var o,a=Ee(n[i].blockIds);try{var s=function(){var n=o.value,a=Ve($e().mark((function o(){var a,s,l,c,d,u;return $e().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,r;case 3:return o.t0=i,a=o.sent[o.t0],s=n*t.blockSize,l=s-a.offset,c=Math.min(l+t.blockSize,a.data.byteLength),d=a.data.slice(l,c),u=new Te(s,d.byteLength,d),o.abrupt("return",(t.blockCache.set(n,u),u));case 13:throw o.prev=13,o.t1=o.catch(0),"AbortError"===o.t1.name&&(o.t1.signal=e),o.t1;case 16:return o.prev=16,t.blockRequests.delete(n),o.finish(16);case 19:case"end":return o.stop()}}),o,null,[[0,13,16,19]])})))();t.blockRequests.set(n,a)};for(a.s();!(o=a.n()).done;)s()}catch(e){a.e(e)}finally{a.f()}},o=0;o<n.length;++o)i(o);this.blockIdsToFetch.clear()}}},{key:"groupBlocks",value:function(e){var t=Array.from(e).sort((function(e,t){return e-t}));if(0===t.length)return[];var n,r=[],i=null,o=[],a=Ee(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;null===i||i+1===s?(r.push(s),i=s):(o.push(new Oe(r[0]*this.blockSize,r.length*this.blockSize,r)),r=[s],i=s)}}catch(e){a.e(e)}finally{a.f()}return o.push(new Oe(r[0]*this.blockSize,r.length*this.blockSize,r)),o}},{key:"readSliceData",value:function(e,t){var n=this;return e.map((function(e){for(var r=e.offset+e.length,i=Math.floor(e.offset/n.blockSize),o=Math.floor((e.offset+e.length)/n.blockSize),a=new ArrayBuffer(e.length),s=new Uint8Array(a),l=i;l<=o;++l){var c,d=t.get(l),u=d.offset-e.offset,h=0,p=0;u<0?h=-u:u>0&&(p=u),c=d.top-r<0?d.length-h:r-d.offset-h;var f=new Uint8Array(d.data,h,c);s.set(f,p)}return a}))}}]),r}(ue.a),Le=n(127),Re=function(e){Me(r,e);var t,n=je(r);function r(e){var t;return Ae(this,r),(t=n.call(this)).response=e,t}return Ie(r,[{key:"status",get:function(){return this.response.status}},{key:"getHeader",value:function(e){return this.response.headers.get(e)}},{key:"getData",value:(t=Ve($e().mark((function e(){return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.response.arrayBuffer){e.next=6;break}return e.next=3,this.response.arrayBuffer();case 3:e.t0=e.sent,e.next=9;break;case 6:return e.next=8,this.response.buffer();case 8:e.t0=e.sent.buffer;case 9:return e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(Le.b),De=function(e){Me(r,e);var t,n=je(r);function r(e,t){var i;return Ae(this,r),(i=n.call(this,e)).credentials=t,i}return Ie(r,[{key:"request",value:(t=Ve($e().mark((function e(){var t,n,r,i,o,a=arguments;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{}
839,n=t.headers,r=t.credentials,i=t.signal,e.next=3,fetch(this.url,{headers:n,credentials:r,signal:i});case 3:return o=e.sent,e.abrupt("return",new Re(o));case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(Le.a),Ne=function(e){Me(r,e);var t,n=je(r);function r(e,t){var i;return Ae(this,r),(i=n.call(this)).xhr=e,i.data=t,i}return Ie(r,[{key:"status",get:function(){return this.xhr.status}},{key:"getHeader",value:function(e){return this.xhr.getResponseHeader(e)}},{key:"getData",value:(t=Ve($e().mark((function e(){return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.data);case 1:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(Le.b),Be=function(e){Me(r,e);var t,n=je(r);function r(){return Ae(this,r),n.apply(this,arguments)}return Ie(r,[{key:"constructRequest",value:function(e,t){var n=this;return new Promise((function(r,i){var o=new XMLHttpRequest;o.open("GET",n.url),o.responseType="arraybuffer";for(var a=0,s=Object.entries(e);a<s.length;a++){var l=_e(s[a],2),c=l[0],d=l[1];o.setRequestHeader(c,d)}o.onload=function(){var e=o.response;r(new Ne(o,e))},o.onerror=i,o.onabort=function(){return i(new Ce.a("Request aborted"))},o.send(),t&&(t.aborted&&o.abort(),t.addEventListener("abort",(function(){return o.abort()})))}))}},{key:"request",value:(t=Ve($e().mark((function e(){var t,n,r,i=arguments;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.headers,r=t.signal,e.next=3,this.constructRequest(n,r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(Le.a),Ue=n(250),ze=function(e){Me(o,e);var t,n,r,i=je(o);function o(e,t,n,r){var a;return Ae(this,o),(a=i.call(this)).client=e,a.headers=t,a.maxRanges=n,a.allowFullFile=r,a._fileSize=null,a}return Ie(o,[{key:"fetch",value:(r=Ve($e().mark((function e(t,n){var r=this;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.maxRanges>=t.length?this.fetchSlices(t,n):(this.maxRanges>0&&t.length,Promise.all(t.map((function(e){return r.fetchSlice(e,n)})))));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"fetchSlices",value:(n=Ve($e().mark((function e(t,n){var r,i,o,a,s,l,c,d,u,h,p,f,m,g=this;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.request({headers:be(be({},this.headers),{},{Range:"bytes="+t.map((function(e){var t=e.offset,n=e.length;return"".concat(t,"-").concat(t+n)})).join(",")}),signal:n});case 2:if(!(r=e.sent).ok){e.next=35;break}if(206!==r.status){e.next=29;break}if(i=function(e){var t,n=e.split(";").map((function(e){return e.trim()})),r=xe(t=n)||Se(t)||ke(t)||we();return{type:r[0],params:le(r.slice(1).map((function(e){return e.split("=")})))}}(r.getHeader("content-type")),o=i.type,a=i.params,"multipart/byteranges"!==o){e.next=14;break}return e.t0=function(e,t){for(var n=null,r=new TextDecoder("ascii"),i=[],o="--"+t,a=o+"--",s=0;s<10;++s)r.decode(new Uint8Array(e,s,o.length))===o&&(n=s);if(null===n)throw new Error("Could not find initial boundary");for(;n<e.byteLength;){var l=r.decode(new Uint8Array(e,n,Math.min(o.length+1024,e.byteLength-n)));if(0===l.length||l.startsWith(a))break;if(!l.startsWith(o))throw new Error("Part does not start with boundary");var c=l.substr(o.length+2);if(0===c.length)break;var d=c.indexOf("\r\n\r\n"),u=ce(c.substr(0,d)),h=de(u["content-range"]),p=h.start,f=h.end,m=h.total,g=n+o.length+d+"\r\n\r\n".length,v=parseInt(f,10)+1-parseInt(p,10);i.push({headers:u,data:e.slice(g,g+v),offset:p,length:v,fileSize:m}),n=g+v+4}return i},e.next=10,r.getData();case 10:return e.t1=e.sent,e.t2=a.boundary,s=(0,e.t0)(e.t1,e.t2),e.abrupt("return",(this._fileSize=s[0].fileSize||null,s));case 14:return e.next=16,r.getData();case 16:if(l=e.sent,c=de(r.getHeader("content-range")),d=c.start,u=c.end,h=c.total,this._fileSize=h||null,p=[{data:l,offset:d,length:u-d}],!(t.length>1)){e.next=28;break}return e.next=26,Promise.all(t.slice(1).map((function(e){return g.fetchSlice(e,n)})));case 26:return f=e.sent,e.abrupt("return",p.concat(f));case 28:return e.abrupt("return",p);case 29:if(this.allowFullFile){e.next=31;break}throw new Error("Server responded with full file");case 31:return e.next=33,r.getData();case 33:return m=e.sent,e.abrupt("return",(this._fileSize=m.byteLength,[{data:m,offset:0,length:m.byteLength}]));case 35:throw new Error("Error fetching data.");case 36:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"fetchSlice",value:(t=Ve($e().mark((function e(t,n){var r,i,o,a,s,l,c;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.offset,i=t.length,e.next=4,this.client.request({headers:be(be({},this.headers),{},{Range:"bytes=".concat(r,"-").concat(r+i)}),signal:n});case 4:if(!(o=e.sent).ok){e.next=19;break}if(206!==o.status){e.next=13;break}return e.next=9,o.getData();case 9:return a=e.sent,s=de(o.getHeader("content-range")),l=s.total,e.abrupt("return",(this._fileSize=l||null,{data:a,offset:r,length:i}));case 13:if(this.allowFullFile){e.next=15;break}throw new Error("Server responded with full file");case 15:return e.next=17,o.getData();case 17:return c=e.sent,e.abrupt("return",(this._fileSize=c.byteLength,{data:c,offset:0,length:c.byteLength}));case 19:throw new Error("Error fetching data.");case 20:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"fileSize",get:function(){return this._fileSize}}]),o}(ue.a);function Ge(e,t){var n=t.blockSize,r=t.cacheSize;return null===n?e:new Pe(e,n,r)}function qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.forceXHR,r=void 0!==n&&n,i=ve(t,pe);return"function"!=typeof fetch||r?"undefined"!=typeof XMLHttpRequest?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
839,n=t.headers,r=void 0===n?{}:n,i=t.maxRanges,o=void 0===i?0:i,a=t.allowFullFile,s=void 0!==a&&a,l=ve(t,fe),c=new Be(e);return Ge(new ze(c,r,o,s),l)}(e,i):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.headers,r=void 0===n?{}:n,i=t.maxRanges,o=void 0===i?0:i,a=t.allowFullFile,s=void 0!==a&&a,l=ve(t,me),c=new Ue.a(e);return Ge(new ze(c,r,o,s),l)}(e,i):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.headers,r=void 0===n?{}:n,i=t.credentials,o=t.maxRanges,a=void 0===o?0:o,s=t.allowFullFile,l=void 0!==s&&s,c=ve(t,ge),d=new De(e,i);return Ge(new ze(d,r,a,l),c)}(e,i)}ue.a;var He=function(e){Me(r,e);var t,n=je(r);function r(e){var t;return Ae(this,r),(t=n.call(this)).file=e,t}return Ie(r,[{key:"fetchSlice",value:(t=Ve($e().mark((function e(t,n){var r=this;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,i){var o=r.file.slice(t.offset,t.offset+t.length),a=new FileReader;a.onload=function(t){return e(t.target.result)},a.onerror=i,a.onabort=i,a.readAsArrayBuffer(o),n&&n.addEventListener("abort",(function(){return a.abort()}))})));case 1:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})}]),r}(ue.a);n(254);var We=Object(Ce.f)(J.e),Ye=Object(Ce.f)(J.i),Xe={};Object(Ce.c)(Xe,We),Object(Ce.c)(Xe,Ye),Object(Ce.f)(J.g);var Ke={nextZero:function(e,t){for(var n=t;0!==e[n];)n++;return n},readUshort:function(e,t){return e[t]<<8|e[t+1]},readShort:function(e,t){var n=Ke.ui8;return n[0]=e[t+1],n[1]=e[t+0],Ke.i16[0]},readInt:function(e,t){var n=Ke.ui8;return n[0]=e[t+3],n[1]=e[t+2],n[2]=e[t+1],n[3]=e[t+0],Ke.i32[0]},readUint:function(e,t){var n=Ke.ui8;return n[0]=e[t+3],n[1]=e[t+2],n[2]=e[t+1],n[3]=e[t+0],Ke.ui32[0]},readASCII:function(e,t,n){return n.map((function(n){return String.fromCharCode(e[t+n])})).join("")},readFloat:function(e,t){var n=Ke.ui8;return Object(Ce.g)(4,(function(r){n[r]=e[t+3-r]})),Ke.fl32[0]},readDouble:function(e,t){var n=Ke.ui8;return Object(Ce.g)(8,(function(r){n[r]=e[t+7-r]})),Ke.fl64[0]},writeUshort:function(e,t,n){e[t]=n>>8&255,e[t+1]=255&n},writeUint:function(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n>>0&255},writeASCII:function(e,t,n){Object(Ce.g)(n.length,(function(r){e[t+r]=n.charCodeAt(r)}))},ui8:new Uint8Array(8)};function Ze(e){switch(e){case J.h.BYTE:case J.h.ASCII:case J.h.SBYTE:case J.h.UNDEFINED:return 1;case J.h.SHORT:case J.h.SSHORT:return 2;case J.h.LONG:case J.h.SLONG:case J.h.FLOAT:case J.h.IFD:return 4;case J.h.RATIONAL:case J.h.SRATIONAL:case J.h.DOUBLE:case J.h.LONG8:case J.h.SLONG8:case J.h.IFD8:return 8;default:throw new RangeError("Invalid field type: "+e)}}function Je(e,t,n,r){var i=null,o=null,a=Ze(t);switch(t){case J.h.BYTE:case J.h.ASCII:case J.h.UNDEFINED:i=new Uint8Array(n),o=e.readUint8;break;case J.h.SBYTE:i=new Int8Array(n),o=e.readInt8;break;case J.h.SHORT:i=new Uint16Array(n),o=e.readUint16;break;case J.h.SSHORT:i=new Int16Array(n),o=e.readInt16;break;case J.h.LONG:case J.h.IFD:i=new Uint32Array(n),o=e.readUint32;break;case J.h.SLONG:i=new Int32Array(n),o=e.readInt32;break;case J.h.LONG8:case J.h.IFD8:i=new Array(n),o=e.readUint64;break;case J.h.SLONG8:i=new Array(n),o=e.readInt64;break;case J.h.RATIONAL:i=new Uint32Array(2*n),o=e.readUint32;break;case J.h.SRATIONAL:i=new Int32Array(2*n),o=e.readInt32;break;case J.h.FLOAT:i=new Float32Array(n),o=e.readFloat32;break;case J.h.DOUBLE:i=new Float64Array(n),o=e.readFloat64;break;default:throw new RangeError("Invalid field type: "+t)}if(t!==J.h.RATIONAL&&t!==J.h.SRATIONAL)for(var s=0;s<n;++s)i[s]=o.call(e,r+s*a);else for(var l=0;l<n;l+=2)i[l]=o.call(e,r+l*a),i[l+1]=o.call(e,r+(l*a+4));return t===J.h.ASCII?new TextDecoder("utf-8").decode(i):i}Ke.fl64=new Float64Array(Ke.ui8.buffer),Ke.writeDouble=function(e,t,n){Ke.fl64[0]=n,Object(Ce.g)(8,(function(n){e[t+n]=Ke.ui8[7-n]}))};var Qe=Ie((function e(t,n,r){Ae(this,e),this.fileDirectory=t,this.geoKeyDirectory=n,this.nextIFDByteOffset=r})),et=function(e){Me(n,e);var t=je(n);function n(e){var r;return Ae(this,n),(r=t.call(this,"No image at index "+e)).index=e,r}return Ie(n)}(Fe(Error)),tt=function(){function e(){Ae(this,e)}var t;return Ie(e,[{key:"readRasters",value:(t=Ve($e().mark((function e(){var t,n,r,i,o,a,s,l,c,d,u,h,p,f,m,g,v,y,b,_,w,x,C,S,E,k,T,O,$,P,I,L,A,M,j,R,D,F,N,B=arguments;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=B.length>0&&void 0!==B[0]?B[0]:{},n=t.window,r=t.width,i=t.height,o=t.resX,a=t.resY,s=t.bbox,e.next=5,this.getImage();case 5:return l=e.sent,c=l,e.next=9,this.getImageCount();case 9:if(d=e.sent,u=l.getBoundingBox(),!n||!s){e.next=13;break}throw new Error('Both "bbox" and "window" passed.');case 13:if(!r&&!i){e.next=24;break}if(n&&(h=l.getOrigin(),p=_e(h,2),f=p[0],m=p[1],g=l.getResolution(),v=_e(g,2),y=v[0],b=v[1],s=[f+n[0]*y,m+n[1]*b,f+n[2]*y,m+n[3]*b]),_=s||u,!r){e.next=20;break}if(!o){e.next=19;break}throw new Error("Both width and resX passed");case 19:o=(_[2]-_[0])/r;case 20:if(!i){e.next=24;break}if(!a){e.next=23;break}throw new Error("Both width and resY passed");case 23:a=(_[3]-_[1])/i;case 24:if(!o&&!a){e.next=47;break}w=[],x=0;case 27:if(!(x<d)){e.next=38;break}return e.next=30,this.getImage(x);case 30:C=e.sent,S=C.fileDirectory,E=S.SubfileType,k=S.NewSubfileType,(0===x||2===E||1&k)&&w.push(C);case 35:++x,e.next=27;break;
839case 38:w.sort((function(e,t){return e.getWidth()-t.getWidth()})),T=0;case 40:if(!(T<w.length)){e.next=47;break}if(O=w[T],$=(u[2]-u[0])/O.getWidth(),P=(u[3]-u[1])/O.getHeight(),c=O,!(o&&o>$||a&&a>P)){e.next=44;break}return e.abrupt("break",47);case 44:++T,e.next=40;break;case 47:return I=n,s&&(L=l.getOrigin(),A=_e(L,2),M=A[0],j=A[1],R=c.getResolution(l),D=_e(R,2),F=D[0],N=D[1],I=[Math.round((s[0]-M)/F),Math.round((s[1]-j)/N),Math.round((s[2]-M)/F),Math.round((s[3]-j)/N)],I=[Math.min(I[0],I[2]),Math.min(I[1],I[3]),Math.max(I[0],I[2]),Math.max(I[1],I[3])]),e.abrupt("return",c.readRasters(be(be({},t),{},{window:I})));case 50:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),nt=function(e){Me(c,e);var t,n,r,i,o,a,s,l=je(c);function c(e,t,n,r){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return Ae(this,c),(i=l.call(this)).source=e,i.littleEndian=t,i.bigTiff=n,i.firstIFDOffset=r,i.cache=o.cache||!1,i.ifdRequests=[],i.ghostValues=null,i}return Ie(c,[{key:"getSlice",value:(s=Ve($e().mark((function e(t,n){var r;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.bigTiff?4048:1024,e.t0=se,e.next=4,this.source.fetch([{offset:t,length:void 0!==n?n:r}]);case 4:return e.t1=e.sent[0],e.t2=t,e.t3=this.littleEndian,e.t4=this.bigTiff,e.abrupt("return",new e.t0(e.t1,e.t2,e.t3,e.t4));case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"parseFileDirectoryAt",value:(a=Ve($e().mark((function e(t){var n,r,i,o,a,s,l,c,d,u,h,p,f,m,g,v,y,b,_;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.bigTiff?20:12,r=this.bigTiff?8:2,e.next=3,this.getSlice(t);case 3:if(i=e.sent,o=this.bigTiff?i.readUint64(t):i.readUint16(t),a=o*n+(this.bigTiff?16:6),e.t0=i.covers(t,a),e.t0){e.next=10;break}return e.next=9,this.getSlice(t,a);case 9:i=e.sent;case 10:s={},l=t+(this.bigTiff?8:2),c=0;case 13:if(!(c<o)){e.next=38;break}if(d=i.readUint16(l),u=i.readUint16(l+2),h=this.bigTiff?i.readUint64(l+4):i.readUint32(l+4),p=void 0,f=void 0,m=Ze(u),g=l+(this.bigTiff?12:8),!(m*h<=(this.bigTiff?8:4))){e.next=21;break}p=Je(i,u,h,g),e.next=34;break;case 21:if(v=i.readOffset(g),y=Ze(u)*h,!i.covers(v,y)){e.next=26;break}p=Je(i,u,h,v),e.next=34;break;case 26:return e.t1=Je,e.next=29,this.getSlice(v,y);case 29:e.t2=e.sent,e.t3=u,e.t4=h,e.t5=v,p=(0,e.t1)(e.t2,e.t3,e.t4,e.t5);case 34:f=1===h&&-1===J.d.indexOf(d)&&u!==J.h.RATIONAL&&u!==J.h.SRATIONAL?p[0]:p,s[J.e[d]]=f;case 35:l+=n,++c,e.next=13;break;case 38:return b=function(e){var t=e.GeoKeyDirectory;if(!t)return null;for(var n={},r=4;r<=4*t[3];r+=4){var i=J.i[t[r]],o=t[r+1]?J.e[t[r+1]]:null,a=t[r+2],s=t[r+3],l=null;if(o){if(null==(l=e[o]))throw new Error("Could not get value of geoKey '".concat(i,"'."));"string"==typeof l?l=l.substring(s,s+a-1):l.subarray&&(l=l.subarray(s,s+a),1===a&&(l=l[0]))}else l=s;n[i]=l}return n}(s),_=i.readOffset(t+r+n*o),e.abrupt("return",new Qe(s,b,_));case 40:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"requestIFD",value:(o=Ve($e().mark((function e(t){var n=this;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.ifdRequests[t]){e.next=2;break}return e.abrupt("return",this.ifdRequests[t]);case 2:if(0!==t){e.next=4;break}return e.abrupt("return",(this.ifdRequests[t]=this.parseFileDirectoryAt(this.firstIFDOffset),this.ifdRequests[t]));case 4:if(this.ifdRequests[t-1]){e.next=14;break}e.prev=5,this.ifdRequests[t-1]=this.requestIFD(t-1),e.next=14;break;case 9:if(e.prev=9,e.t0=e.catch(5),!(e.t0 instanceof et)){e.next=13;break}throw new et(t);case 13:throw e.t0;case 14:return e.abrupt("return",(this.ifdRequests[t]=Ve($e().mark((function e(){var r;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.ifdRequests[t-1];case 2:if(0!==(r=e.sent).nextIFDByteOffset){e.next=5;break}throw new et(t);case 5:return e.abrupt("return",n.parseFileDirectoryAt(r.nextIFDByteOffset));case 6:case"end":return e.stop()}}),e)})))(),this.ifdRequests[t]));case 15:case"end":return e.stop()}}),e,this,[[5,9]])}))),function(e){return o.apply(this,arguments)})},{key:"getImage",value:(i=Ve($e().mark((function e(){var t,n,r=arguments;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:0,e.next=3,this.requestIFD(t);case 3:return n=e.sent,e.abrupt("return",new oe(n.fileDirectory,n.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source));case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"getImageCount",value:(r=Ve($e().mark((function e(){var t,n;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0,n=!0;case 1:if(!n){e.next=15;break}return e.prev=2,e.next=5,this.requestIFD(t);case 5:++t,e.next=13;break;case 8:if(e.prev=8,e.t0=e.catch(2),e.t0 instanceof et){e.next=12;break}throw e.t0;case 12:n=!1;case 13:e.next=1;break;case 15:return e.abrupt("return",t);case 16:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(){return r.apply(this,arguments)})},{key:"getGhostValues",value:(n=Ve($e().mark((function e(){var t,n,r,i,o,a,s,l=this;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.bigTiff?16:8,!this.ghostValues){e.next=3;break}return e.abrupt("return",this.ghostValues);case 3:return r=(n="GDAL_STRUCTURAL_METADATA_SIZE=").length+100,e.next=6,this.get
839Slice(t,r);case 6:if(i=e.sent,n!==Je(i,J.h.ASCII,n.length,t)){e.next=16;break}if(o=Je(i,J.h.ASCII,r,t).split("\n")[0],a=Number(o.split("=")[1].split(" ")[0])+o.length,e.t0=a>r,!e.t0){e.next=14;break}return e.next=13,this.getSlice(t,a);case 13:i=e.sent;case 14:s=Je(i,J.h.ASCII,a,t),this.ghostValues={},s.split("\n").filter((function(e){return e.length>0})).map((function(e){return e.split("=")})).forEach((function(e){var t=_e(e,2),n=t[0],r=t[1];l.ghostValues[n]=r}));case 16:return e.abrupt("return",this.ghostValues);case 17:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"close",value:function(){return"function"==typeof this.source.close&&this.source.close()}}],[{key:"fromSource",value:(t=Ve($e().mark((function e(t,n,r){var i,o,a,s,l,d,u;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.fetch([{offset:0,length:1024}],r);case 2:if(i=e.sent[0],o=new ae(i),18761!==(a=o.getUint16(0,0))){e.next=9;break}s=!0,e.next=12;break;case 9:if(19789===a){e.next=11;break}throw new TypeError("Invalid byte order value.");case 11:s=!1;case 12:if(42!==(l=o.getUint16(2,s))){e.next=17;break}d=!1,e.next=22;break;case 17:if(43===l){e.next=19;break}throw new TypeError("Invalid magic number.");case 19:if(d=!0,8===o.getUint16(4,s)){e.next=22;break}throw new Error("Unsupported offset byte-size.");case 22:return u=d?o.getUint64(8,s):o.getUint32(4,s),e.abrupt("return",new c(t,s,d,u,n));case 24:case"end":return e.stop()}}),e)}))),function(e,n,r){return t.apply(this,arguments)})}]),c}(tt),rt=function(e){Me(o,e);var t,n,r,i=je(o);function o(e,t){var n;return Ae(this,o),(n=i.call(this)).mainFile=e,n.overviewFiles=t,n.imageFiles=[e].concat(t),n.fileDirectoriesPerFile=null,n.fileDirectoriesPerFileParsing=null,n.imageCount=null,n}return Ie(o,[{key:"parseFileDirectoriesPerFile",value:(r=Ve($e().mark((function e(){var t;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)].concat(this.overviewFiles.map((function(e){return e.parseFileDirectoryAt(e.firstIFDOffset)}))),e.next=3,Promise.all(t);case 3:return this.fileDirectoriesPerFile=e.sent,e.abrupt("return",this.fileDirectoriesPerFile);case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getImage",value:(n=Ve($e().mark((function e(){var t,n,r,i,o,a,s,l=arguments;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]?l[0]:0,e.next=3,this.getImageCount();case 3:return e.next=5,this.parseFileDirectoriesPerFile();case 5:n=0,r=0,i=0;case 7:if(!(i<this.imageFiles.length)){e.next=24;break}o=this.imageFiles[i],a=0;case 10:if(!(a<this.imageCounts[i])){e.next=20;break}if(t!==n){e.next=16;break}return e.next=14,o.requestIFD(r);case 14:return s=e.sent,e.abrupt("return",new oe(s.fileDirectory,s.geoKeyDirectory,o.dataView,o.littleEndian,o.cache,o.source));case 16:n++,r++;case 17:a++,e.next=10;break;case 20:r=0;case 21:i++,e.next=7;break;case 24:throw new RangeError("Invalid image index");case 25:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getImageCount",value:(t=Ve($e().mark((function e(){var t;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===this.imageCount){e.next=2;break}return e.abrupt("return",this.imageCount);case 2:return t=[this.mainFile.getImageCount()].concat(this.overviewFiles.map((function(e){return e.getImageCount()}))),e.next=5,Promise.all(t);case 5:return this.imageCounts=e.sent,this.imageCount=this.imageCounts.reduce((function(e,t){return e+t}),0),e.abrupt("return",this.imageCount);case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),o}(tt);function it(){return(it=Ve($e().mark((function e(t,n){return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",nt.fromSource(function(e){return new He(e)}(t),n));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ot,at,st=n(6),lt=n(46),ct=(at=function(e,t){return(at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}at(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function dt(e){try{return e.getBoundingBox()}catch(n){var t=e.fileDirectory;return[0,0,t.ImageWidth,t.ImageLength]}}function ut(e){try{return e.getOrigin().slice(0,2)}catch(t){return[0,e.fileDirectory.ImageLength]}}function ht(e,t){try{return e.getResolution(t)}catch(n){return[t.fileDirectory.ImageWidth/e.fileDirectory.ImageWidth,t.fileDirectory.ImageHeight/e.fileDirectory.ImageHeight]}}function pt(e){var t,n,r=e.geoKeys;if(!r)return null;if(r.ProjectedCSTypeGeoKey){var i="EPSG:"+r.ProjectedCSTypeGeoKey;return(t=Object(f.get)(i))||(n=Object(lt.c)(r.ProjLinearUnitsGeoKey))&&
839(t=new f.Projection({code:i,units:n})),t}return r.GeographicTypeGeoKey?(i="EPSG:"+r.GeographicTypeGeoKey,(t=Object(f.get)(i))||(n=Object(lt.c)(r.GeogAngularUnitsGeoKey))&&(t=new f.Projection({code:i,units:n})),t):null}function ft(e){return e.getImageCount().then((function(t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e.getImage(r);return Promise.all(n)}))}function mt(e,t){return(e.blob?function(e,t){return it.apply(this,arguments)}(e.blob):e.overviews?(r=Ve($e().mark((function e(t){var n,r,i,o,a,s=arguments;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:[],r=s.length>2&&void 0!==s[2]?s[2]:{},i=s.length>3?s[3]:void 0,e.next=5,nt.fromSource(qe(t,r),i);case 5:return o=e.sent,e.next=8,Promise.all(n.map((function(e){return nt.fromSource(qe(e,r))})));case 8:return a=e.sent,e.abrupt("return",new rt(o,a));case 10:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})(e.url,e.overviews,t):(n=Ve($e().mark((function e(t){var n,r,i=arguments;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},r=i.length>2?i[2]:void 0,e.abrupt("return",nt.fromSource(qe(t,n),r));case 3:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})(e.url,t)).then(ft);var n,r}function gt(e,t,n,r,i){if(Array.isArray(e)){var o=e.length;if(!Array.isArray(t)||o!=t.length){var a=new Error(r);throw i(a),a}for(var s=0;s<o;++s)gt(e[s],t[s],n,r,i)}else if(t=t,Math.abs(e-t)>n*e)throw new Error(r)}function vt(e){return e instanceof Int8Array?127:e instanceof Uint8Array||e instanceof Uint8ClampedArray?255:e instanceof Int16Array?32767:e instanceof Uint16Array?65535:e instanceof Int32Array?2147483647:e instanceof Uint32Array?4294967295:e instanceof Float32Array?34e37:255}var yt=function(e){function t(t){var n=e.call(this,{state:"loading",tileGrid:null,projection:null,opaque:t.opaque,transition:t.transition,interpolate:!1!==t.interpolate,wrapX:t.wrapX})||this;n.sourceInfo_=t.sources;var r=n.sourceInfo_.length;n.sourceOptions_=t.sourceOptions,n.sourceImagery_=new Array(r),n.resolutionFactors_=new Array(r),n.samplesPerPixel_,n.nodataValues_,n.metadata_,n.normalize_=!1!==t.normalize,n.addAlpha_=!1,n.error_=null,n.readMethod_=t.convertToRGB?"readRGB":"readRasters",n.setKey(n.sourceInfo_.map((function(e){return e.url})).join(","));for(var i=n,o=new Array(r),a=0;a<r;++a)o[a]=mt(n.sourceInfo_[a],n.sourceOptions_);return Promise.all(o).then((function(e){i.configure_(e)})).catch((function(e){console.error(e),i.error_=e,i.setState("error")})),n}return ct(t,e),t.prototype.getError=function(){return this.error_},t.prototype.configure_=function(e){for(var t,n,r,i,o,a=new Array(e.length),s=new Array(e.length),l=new Array(e.length),d=0,u=e.length,h=function(u){var h=e[u],f=h.length,m=void 0,g=void 0,v=new Array(f),y=new Array(f),b=new Array(f);s[u]=new Array(f),l[u]=new Array(f);for(var _=0;_<f;++_){var w=h[_],x=w.getGDALNoData();l[u][_]=w.getGDALMetadata(0),s[u][_]=x;var C=p.sourceInfo_[u].bands;a[u]=C?C.length:w.getSamplesPerPixel();var S=f-(_+1);m||(m=dt(w)),g||(g=ut(w));var E=ht(w,h[0]);b[S]=E[0];var k=[w.getTileWidth(),w.getTileHeight()];v[S]=k;var T=E[0]/Math.abs(E[1]);y[S]=[k[0],k[1]/T]}if(t?Object(c.getIntersection)(t,m,t):t=m,n){var O="Origin mismatch for source ".concat(u,", got [").concat(g,"] but expected [").concat(n,"]");gt(n,g,0,O,p.viewRejector)}else n=g;if(o){o.length-d>b.length&&(d=o.length-b.length);var $=o[o.length-1]/b[b.length-1];p.resolutionFactors_[u]=$;var P=b.map((function(e){return e*$}));O="Resolution mismatch for source ".concat(u,", got [").concat(P,"] but expected [").concat(o,"]"),gt(o.slice(d,o.length),P,.02,O,p.viewRejector)}else o=b,p.resolutionFactors_[u]=1;r?gt(r.slice(d,r.length),y,.01,"Tile size mismatch for source ".concat(u),p.viewRejector):r=y,i?gt(i.slice(d,i.length),v,0,"Tile size mismatch for source ".concat(u),p.viewRejector):i=v,p.sourceImagery_[u]=h.reverse()},p=this,m=0;m<u;++m)h(m);for(var g=0,v=this.sourceImagery_.length;g<v;++g)for(var y=this.sourceImagery_[g];y.length<o.length;)y.unshift(void 0);if(!this.getProjection()){var b=e[0];for(g=b.length-1;g>=0;--g){var _=pt(b[g]);if(_){this.projection=_;break}}}this.samplesPerPixel_=a,this.nodataValues_=s,this.metadata_=l;e:for(m=0;m<u;++m){if(void 0!==this.sourceInfo_[m].nodata){this.addAlpha_=!0;break}var w=s[m],x=this.sourceInfo_[m].bands;if(x){for(g=0;g<x.length;++g)if(null!==w[x[g]-1]){this.addAlpha_=!0;break e}}else for(var C=0;C<w.length;++C)if(null!==w[C]){this.addAlpha_=!0;break e}}var S=this.addAlpha_?1:0;this.bandCount=a.reduce((function(e,t){return e+t}),0)+S;var E=new B.a({extent:t,minZoom:d,origin:n,resolutions:o,tileSizes:r});this.tileGrid=E,this.setTileSizes(i),this.setLoader(this.loadTile_.bind(this)),this.setState("ready"),this.viewResolver({projection:this.projection,resolutions:o,center:Object(f.toUserCoordinate)(Object(c.getCenter)(t),this.projection),extent:Object(f.toUserExtent)(t,this.projection),zoom:0})},t.prototype.loadTile_=function(e,t,n){for(var r=this.getTileSize(e),i=this.sourceImagery_.length,o=new Array(i),a=this.addAlpha_,s=this.bandCount,l=this.samplesPerPixel_,c=this.nodataValues_,d=this.sourceInfo_,u=function(i){var a=d[i],s=h.resolutionFactors_[i],l=[Math.round(t*(r[0]*s)),Math.round(n*(r[1]*s)),Math.round((t+1)*(r[0]*s)),Math.round((n+1)*(r[1]*s))],u=h.sourceImagery_[i][e],p=void 0;a.bands&&(p=a.bands.map((function(e){return e-1})));var f;f="nodata"in a&&null!==a.nodata?a.nodata:p?p.map((function(e){return c[i][e]})):c[i],o[i]=u[h.readMethod_]({window:l,width:r[0],height:r[1],samples:p,fillValue:f,pool:(ot||(ot=new H),ot),interleave:!1})},h=this,p=0;p<i;++p)u(p);var f=r[0]*r[1],m=f*s,g=this.normalize_,v=this.metadata_;return Promise.all(o).then((function(e){var t;t=g?new Uint8Array(m):new Float32Array(m);for(var n,r=0,o=0;o<f;++o){for(var s=a,u=0;u<i;++u){var h=d[u],p=h.min,y=h.max,b=void 0,_=void 0;if(g){var w=v[u][0];void 0===p&&(p=w&&"STATISTICS_MINIMUM"in w?parseFloat(w.STATISTICS_MINIMUM):(n=e[u][0])instanceof Int8Array?-128:n instanceof Int16Array?-32768:n instanceof Int32Array?-2147483648:n instanceof Float32Array?12e-39:0),void 0===y&&(y=w&&"STATISTICS_MAXIMUM"in w?parseFloat(w.STATISTICS_MAXIMUM):vt(e[u][0])),_=-p*(b=255/(y-p))}for(var x=0;x<l[u];++x){var C,S=e[u][x][o];if(C=g?Object(st.b)(b*S+_,0,255):S,a){var E=h.nodata;if(void 0===E){var k;k=h.bands?h.bands[x]-1:x,E=c[u][k]}var T=isNaN(E);(!T&&S!==E||T&&!isNaN(S))&&(s=!1,t[r]=C)}else t[r]=C;r++}}a&&(s||(t[r]=255),r++)}return t})).catch((function(e){throw console.error(e),e}))},t}(N);yt.prototype.getView;var bt,_t,wt=yt,xt=n(93),Ct=n(124),St=n(23),Et=(_t=function(e,t){return(_t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_t(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),kt="default",Tt=function(e){function t(t,n,r,i,o,a,s){var l=e.call(this,n,r,i,o,a,s)||this;return l.zoomifyImage_=null,l.tileSize_=t,l}return Et(t,e),t.prototype.getImage=function(){if(this.zoomifyImage_)return this.zoomifyImage_;var t=e.prototype.getImage.call(this);if(this.state==j.a.LOADED){var n=this.tileSize_;if(t.width==n[0]&&t.height==n[1])return this.zoomifyImage_=t,t;var r=Object(St.a)(n[0],n[1]);return r.drawImage(t,0,0),this.zoomifyImage_=r.canvas,r.canvas}return t},t}(Ct.a),Ot=function(e){function t(t){var n=this,r=t,i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate);var o=r.size,a=void 0!==r.tierSizeCalculation?r.tierSizeCalculation:kt,s=r.tilePixelRatio||1,l=o[0],d=o[1],h=[],p=r.tileSize||xt.b,f=p*s;switch(a){case kt:for(;l>f||d>f;)h.push([Math.ceil(l/f),Math.ceil(d/f)]),f+=f;break;case"truncated":for(var m=l,g=d;m>f||g>f;)h.push([Math.ceil(m/f),Math.ceil(g/f)]),m>>=1,g>>=1;break;default:Object(O.a)(!1,53)}h.push([1,1]),h.reverse();for(var v=[s],y=[0],b=1,_=h.length;b<_;b++)v.push(s<<b),y.push(h[b-1][0]*h[b-1][1]+y[b-1]);v.reverse();var w=new B.a({tileSize:p,extent:r.extent||[0,-d,l,0],resolutions:v}),x=r.url;x&&-1==x.indexOf("{TileGroup}")&&-1==x.indexOf("{tileIndex}")&&(x+="{TileGroup}/{z}-{x}-{y}.jpg");var C=Object(u.c)(x),S=p*s,E=Object(u.b)(C.map((function(e){return function(t,n,r){if(t){var i=t[0],o=t[1],a=t[2],s=o+a*h[i][0],l={z:i,x:o,y:a,tileIndex:s,TileGroup:"TileGroup"+((s+y[i])/S|0)};return e.replace(/\{(\w+?)\}/g,(function(e,t){return l[t]}))}}}))),k=Tt.bind(null,Object(D.d)(p*s));(n=e.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,projection:r.projection,tilePixelRatio:s,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileClass:k,tileGrid:w,tileUrlFunction:E,transition:r.transition})||this).zDirection=r.zDirection;var T=E(w.getTileCoordForCoordAndResolution(Object(c.getCenter)(w.getExtent()),v[v.length-1]),1,null),$=new Image;return $.addEventListener("error",function(){S=p,this.changed()}.bind(n)),$.src=T,n}return Et(t,e),t}(d.a),$t=n(134),Pt=n(9),It=(bt=function(e,t){return(bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}bt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
839function Lt(e){return e.toLocaleString("en",{maximumFractionDigits:10})}var At=function(e){function t(t){var n=this,r=t||{},i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate);var o=r.url||"";o+=o.lastIndexOf("/")===o.length-1||""===o?"":"/";var a=r.version||$t.a.VERSION2,s=r.sizes||[],l=r.size;Object(O.a)(null!=l&&Array.isArray(l)&&2==l.length&&!isNaN(l[0])&&l[0]>0&&!isNaN(l[1])&&l[1]>0,60);var d,u,h,p=l[0],f=l[1],m=r.tileSize,g=r.tilePixelRatio||1,v=r.format||"jpg",y=r.quality||(r.version==$t.a.VERSION1?"native":"default"),b=r.resolutions||[],_=r.supports||[],w=r.extent||[0,-f,p,0],x=null!=s&&Array.isArray(s)&&s.length>0,C=void 0!==m&&("number"==typeof m&&Number.isInteger(m)&&m>0||Array.isArray(m)&&m.length>0),S=null!=_&&Array.isArray(_)&&(Object(Pt.f)(_,"regionByPx")||Object(Pt.f)(_,"regionByPct"))&&(Object(Pt.f)(_,"sizeByWh")||Object(Pt.f)(_,"sizeByH")||Object(Pt.f)(_,"sizeByW")||Object(Pt.f)(_,"sizeByPct"));if(b.sort((function(e,t){return t-e})),C||S)if(null!=m&&("number"==typeof m&&Number.isInteger(m)&&m>0?(d=m,u=m):Array.isArray(m)&&m.length>0&&((1==m.length||null==m[1]&&Number.isInteger(m[0]))&&(d=m[0],u=m[0]),2==m.length&&(Number.isInteger(m[0])&&Number.isInteger(m[1])?(d=m[0],u=m[1]):null==m[0]&&Number.isInteger(m[1])&&(d=m[1],u=m[1])))),void 0!==d&&void 0!==u||(d=xt.b,u=xt.b),0==b.length)for(var E=h=Math.max(Math.ceil(Math.log(p/d)/Math.LN2),Math.ceil(Math.log(f/u)/Math.LN2));E>=0;E--)b.push(Math.pow(2,E));else{var k=Math.max.apply(Math,b);h=Math.round(Math.log(k)/Math.LN2)}else if(d=p,u=f,b=[],x){s.sort((function(e,t){return e[0]-t[0]})),h=-1;var T=[];for(E=0;E<s.length;E++){var $=p/s[E][0];b.length>0&&b[b.length-1]==$?T.push(E):(b.push($),h++)}if(T.length>0)for(E=0;E<T.length;E++)s.splice(T[E]-E,1)}else b.push(1),s.push([p,f]),h=0;var P=new B.a({tileSize:[d,u],extent:w,origin:Object(c.getTopLeft)(w),resolutions:b}),I=Tt.bind(null,Object(D.d)(m||256).map((function(e){return e*g})));return(n=e.call(this,{attributions:r.attributions,attributionsCollapsible:r.attributionsCollapsible,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,projection:r.projection,reprojectionErrorThreshold:r.reprojectionErrorThreshold,state:r.state,tileClass:I,tileGrid:P,tilePixelRatio:r.tilePixelRatio,tileUrlFunction:function(e,t,n){var r,i,l=e[0];if(!(l>h)){var c=e[1],m=e[2],g=b[l];if(!(void 0===c||void 0===m||void 0===g||c<0||Math.ceil(p/g/d)<=c||m<0||Math.ceil(f/g/u)<=m)){if(S||C){var w=c*d*g,E=m*u*g,k=d*g,T=u*g,O=d,$=u;w+k>p&&(k=p-w),E+T>f&&(T=f-E),w+d*g>p&&(O=Math.floor((p-w+g-1)/g)),E+u*g>f&&($=Math.floor((f-E+g-1)/g)),0==w&&k==p&&0==E&&T==f?r="full":!S||Object(Pt.f)(_,"regionByPx")?r=w+","+E+","+k+","+T:Object(Pt.f)(_,"regionByPct")&&(r="pct:"+Lt(w/p*100)+","+Lt(E/f*100)+","+Lt(k/p*100)+","+Lt(T/f*100)),a!=$t.a.VERSION3||S&&!Object(Pt.f)(_,"sizeByWh")?!S||Object(Pt.f)(_,"sizeByW")?i=O+",":Object(Pt.f)(_,"sizeByH")?i=","+$:Object(Pt.f)(_,"sizeByWh")?i=O+","+$:Object(Pt.f)(_,"sizeByPct")&&(i="pct:"+Lt(100/g)):i=O+","+$}else if(r="full",x){var P=s[l][0],I=s[l][1];i=a==$t.a.VERSION3?P==p&&I==f?"max":P+","+I:P==p?"full":P+","}else i=a==$t.a.VERSION3?"max":"full";return o+r+"/"+i+"/0/"+y+"."+v}}},transition:r.transition})||this).zDirection=r.zDirection,n}return It(t,e),t}(d.a),Mt=n(79),jt=n(106);function Rt(e,t){var n=[];Object.keys(t).forEach((function(e){null!==t[e]&&void 0!==t[e]&&n.push(e+"="+encodeURIComponent(t[e]))}));var r=n.join("&");return(e=-1===(e=e.replace(/[?&]$/,"")).indexOf("?")?e+"?":e+"&")+r}var Dt,Ft,Nt,Bt,Ut,zt,Gt,Vt,qt,Ht,Wt,Yt,Xt=(Nt=function(e,t){return(Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Kt=function(e){function t(t){var n=this,r=t||{},i=void 0===r.imageSmoothing||r.imageSmoothing;return void 0!==r.interpolate&&(i=r.interpolate),(n=e.call(this,{attributions:r.attributions,interpolate:i,projection:r.projection,resolutions:r.resolutions})||this).crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null,n.hidpi_=void 0===r.hidpi||r.hidpi,n.url_=r.url,n.imageLoadFunction_=void 0!==r.imageLoadFunction?r.imageLoadFunction:Mt.b,n.params_=r.params||{},n.image_=null,n.imageSize_=[0,0],n.renderedRevision_=0,n.ratio_=void 0!==r.ratio?r.ratio:1.5,n}return Xt(t,e),t.prototype.getParams=function(){return this.params_},t.prototype.getImageInternal=function(e,t,n,r){if(void 0===this.url_)return null;t=this.findNearestResolution(t),n=this.hidpi_?n:1;var i=this.image_;if(i&&this.renderedRevision_==this.getRevision()&&i.getResolution()==t&&i.getPixelRatio()==n&&Object(c.containsExtent)(i.getExtent(),e))return i;var o={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Object(_.a)(o,this.params_);var a=((e=e.slice())[0]+e[2])/2,s=(e[1]+e[3])/2;if(1!=this.ratio_){var l=this.ratio_*Object(c.getWidth)(e)/2,d=this.ratio_*Object(c.getHeight)(e)/2;e[0]=a-l,e[1]=s-d,e[2]=a+l,e[3]=s+d}var u=t/n,h=Math.ceil(Object(c.getWidth)(e)/u),p=Math.ceil(Object(c.getHeight)(e)/u);e[0]=a-u*h/2,e[2]=a+u*h/2,e[1]=s-u*p/2,e[3]=s+u*p/2,this.imageSize_[0]=h,this.imageSize_[1]=p;var f=this.getRequestUrl_(e,this.imageSize_,n,r,o);return this.image_=new jt.a(e,t,n,f,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(C.a.CHANGE,this.handleImageChange.bind(this)),this.image_},t.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},t.prototype.getRequestUrl_=function(e,t,n,r,i){var o=r.getCode().split(/:(?=\d+$)/).pop();i.SIZE=t[0]+","+t[1],i.BBOX=e.join(","),i.BBOXSR=o,i.IMAGESR=o,i.DPI=Math.round(90*n);var a=this.url_,s=a.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return s==a&&Object(O.a)(!1,50),Rt(s,i)},t.prototype.getUrl=function(){return this.url_},t.prototype.setImageLoadFunction=function(e){this.image_=null,this.imageLoadFunction_=e,this.changed()},t.prototype.setUrl=function(e){e!=this.url_&&(this.url_=e,this.image_=null,this.changed())},t.prototype.updateParams=function(e){Object(_.a)(this.params_,e),this.image_=null,this.changed()},t}(Mt.a),Zt=n(167),Jt=(Ft=function(e,t){return(Ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ft(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Qt=function(e){function t(t){var n=this,r=t||{},i=void 0===r.imageSmoothing||r.imageSmoothing;return void 0!==r.interpolate&&(i=r.interpolate),(n=e.call(this,{attributions:r.attributions,interpolate:i,projection:r.projection,resolutions:r.resolutions,state:r.state})||this).canvasFunction_=r.canvasFunction,n.canvas_=null,n.renderedRevision_=0,n.ratio_=void 0!==r.ratio?r.ratio:1.5,n}return Jt(t,e),t.prototype.getImageInternal=function(e,t,n,r){t=this.findNearestResolution(t);var i=this.canvas_;if(i&&this.renderedRevision_==this.getRevision()&&i.getResolution()==t&&i.getPixelRatio()==n&&Object(c.containsExtent)(i.getExtent(),e))return i;e=e.slice(),Object(c.scaleFromCenter)(e,this.ratio_);var o=[Object(c.getWidth)(e)/t*n,Object(c.getHeight)(e)/t*n],a=this.canvasFunction_.call(this,e,t,n,o,r);return a&&(i=new Zt.a(e,t,n,a)),this.canvas_=i,this.renderedRevision_=this.getRevision(),i},t}(Mt.a),en=(Dt=function(e,t){return(Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),tn=function(e){function t(t){var n=this,r=void 0===t.imageSmoothing||t.imageSmoothing;return void 0!==t.interpolate&&(r=t.interpolate),(n=e.call(this,{interpolate:r,projection:t.projection,resolutions:t.resolutions})||this).crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null,n.displayDpi_=void 0!==t.displayDpi?t.displayDpi:96,n.params_=t.params||{},n.url_=t.url,n.imageLoadFunction_=void 0!==t.imageLoadFunction?t.imageLoadFunction:Mt.b,n.hidpi_=void 0===t.hidpi||t.hidpi,n.metersPerUnit_=void 0!==t.metersPerUnit?t.metersPerUnit:1,n.ratio_=void 0!==t.ratio?t.ratio:1,n.useOverlay_=void 0!==t.useOverlay&&t.useOverlay,n.image_=null,n.renderedRevision_=0,n}return en(t,e),t.prototype.getParams=function(){return this.params_},t.prototype.getImageInternal=function(e,t,n,r){t=this.findNearestResolution(t),n=this.hidpi_?n:1;var i=this.image_;if(i&&this.renderedRevision_==this.getRevision()&&i.getResolution()==t&&i.getPixelRatio()==n&&Object(c.containsExtent)(i.getExtent(),e))return i;1!=this.ratio_&&(e=e.slice(),Object(c.scaleFromCenter)(e,this.ratio_));var o=[Object(c.getWidth)(e)/t*n,Object(c.getHeight)(e)/t*n];if(void 0!==this.url_){var a=this.getUrl(this.url_,this.params_,e,o,r);(i=new jt.a(e,t,n,a,this.crossOrigin_,this.imageLoadFunction_)).addEventListener(C.a.CHANGE,this.handleImageChange.bind(this))}else i=null;return this.image_=i,this.renderedRevision_=this.getRevision(),i},t.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},t.prototype.updateParams=function(e){Object(_.a)(this.params_,e),this.changed()},t.prototype.getUrl=function(e,t,n,r,i){var o=function(e,t,n,r){var i=Object(c.getWidth)(e),o=Object(c.getHeight)(e),a=t[0],s=t[1],l=.0254/r;return s*i>a*o?i*n/(a*l):o*n/(s*l)}(n,r,this.metersPerUnit_,this.displayDpi_),a=Object(c.getCenter)(n),s={OPERATION:this.useOverlay_?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol/source/ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.displayDpi_,SETDISPLAYWIDTH:Math.round(r[0]),SETDISPLAYHEIGHT:Math.round(r[1]),SETVIEWSCALE:o,SETVIEWCENTERX:a[0],SETVIEWCENTERY:a[1]};return Object(_.a)(s,t),Rt(e,s)},t.prototype.setImageLoadFunction=function(e){this.image_=null,this.imageLoadFunction_=e,this.changed()},t}(Mt.a),nn=n(21),rn=n(113),on=(Yt=function(e,t){return(Yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Yt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),an=function(e){function t(t){var n=this,r=void 0!==t.crossOrigin?t.crossOrigin:null,i=void 0!==t.imageLoadFunction?t.imageLoadFunction:Mt.b,o=void 0===t.imageSmoothing||t.imageSmoothing;
839return void 0!==t.interpolate&&(o=t.interpolate),(n=e.call(this,{attributions:t.attributions,interpolate:o,projection:Object(f.get)(t.projection)})||this).url_=t.url,n.imageExtent_=t.imageExtent,n.image_=new jt.a(n.imageExtent_,void 0,1,n.url_,r,i),n.imageSize_=t.imageSize?t.imageSize:null,n.image_.addEventListener(C.a.CHANGE,n.handleImageChange.bind(n)),n}return on(t,e),t.prototype.getImageExtent=function(){return this.imageExtent_},t.prototype.getImageInternal=function(e,t,n,r){return Object(c.intersects)(e,this.image_.getExtent())?this.image_:null},t.prototype.getUrl=function(){return this.url_},t.prototype.handleImageChange=function(t){if(this.image_.getState()==nn.a.LOADED){var n=this.image_.getExtent(),r=this.image_.getImage(),i=void 0,o=void 0;this.imageSize_?(i=this.imageSize_[0],o=this.imageSize_[1]):(i=r.width,o=r.height);var a=Object(c.getWidth)(n),s=Object(c.getHeight)(n),l=a/i,d=s/o,u=i,h=o;if(l>d?u=Math.round(a/d):h=Math.round(s/l),u!==i||h!==o){var p=Object(St.a)(u,h);this.getInterpolate()||Object(_.a)(p,rn.a);var f=p.canvas;p.drawImage(r,0,0,i,o,0,0,f.width,f.height),this.image_.setImage(f)}}e.prototype.handleImageChange.call(this,t)},t}(Mt.a),sn=n(114),ln=n(102),cn=(Wt=function(e,t){return(Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Wt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),dn=[101,101],un=function(e){function t(t){var n=this,r=t||{},i=void 0===r.imageSmoothing||r.imageSmoothing;return void 0!==r.interpolate&&(i=r.interpolate),(n=e.call(this,{attributions:r.attributions,interpolate:i,projection:r.projection,resolutions:r.resolutions})||this).crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null,n.url_=r.url,n.imageLoadFunction_=void 0!==r.imageLoadFunction?r.imageLoadFunction:Mt.b,n.params_=r.params||{},n.v13_=!0,n.updateV13_(),n.serverType_=r.serverType,n.hidpi_=void 0===r.hidpi||r.hidpi,n.image_=null,n.imageSize_=[0,0],n.renderedRevision_=0,n.ratio_=void 0!==r.ratio?r.ratio:1.5,n}return cn(t,e),t.prototype.getFeatureInfoUrl=function(e,t,n,r){if(void 0!==this.url_){var i=Object(f.get)(n),o=this.getProjection();o&&o!==i&&(t=Object(sn.b)(o,i,e,t),e=Object(f.transform)(e,i,o));var a=Object(c.getForViewAndSize)(e,t,0,dn),s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Object(_.a)(s,this.params_,r);var l=Object(st.d)((e[0]-a[0])/t,4),d=Object(st.d)((a[3]-e[1])/t,4);return s[this.v13_?"I":"X"]=l,s[this.v13_?"J":"Y"]=d,this.getRequestUrl_(a,dn,1,o||i,s)}},t.prototype.getLegendUrl=function(e,t){if(void 0!==this.url_){var n={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===t||void 0===t.LAYER){var r=this.params_.LAYERS;if(Array.isArray(r)&&1!==r.length)return;n.LAYER=r}if(void 0!==e){var i=this.getProjection()?this.getProjection().getMetersPerUnit():1;n.SCALE=e*i/28e-5}return Object(_.a)(n,t),Rt(this.url_,n)}},t.prototype.getParams=function(){return this.params_},t.prototype.getImageInternal=function(e,t,n,r){if(void 0===this.url_)return null;t=this.findNearestResolution(t),1==n||this.hidpi_&&void 0!==this.serverType_||(n=1);var i=t/n,o=Object(c.getCenter)(e),a=Object(st.a)(Object(c.getWidth)(e)/i,4),s=Object(st.a)(Object(c.getHeight)(e)/i,4),l=Object(c.getForViewAndSize)(o,i,0,[a,s]),d=Object(st.a)(this.ratio_*Object(c.getWidth)(e)/i,4),u=Object(st.a)(this.ratio_*Object(c.getHeight)(e)/i,4),h=Object(c.getForViewAndSize)(o,i,0,[d,u]),p=this.image_;if(p&&this.renderedRevision_==this.getRevision()&&p.getResolution()==t&&p.getPixelRatio()==n&&Object(c.containsExtent)(p.getExtent(),l))return p;var f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Object(_.a)(f,this.params_),this.imageSize_[0]=Object(st.h)(Object(c.getWidth)(h)/i,4),this.imageSize_[1]=Object(st.h)(Object(c.getHeight)(h)/i,4);var m=this.getRequestUrl_(h,this.imageSize_,n,r,f);return this.image_=new jt.a(h,t,n,m,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(C.a.CHANGE,this.handleImageChange.bind(this)),this.image_},t.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},t.prototype.getRequestUrl_=function(e,t,n,r,i){if(Object(O.a)(void 0!==this.url_,9),i[this.v13_?"CRS":"SRS"]=r.getCode(),"STYLES"in this.params_||(i.STYLES=""),1!=n)switch(this.serverType_){case"geoserver":var o=90*n+.5|0;"FORMAT_OPTIONS"in i?i.FORMAT_OPTIONS+=";dpi:"+o:i.FORMAT_OPTIONS="dpi:"+o;break;case"mapserver":i.MAP_RESOLUTION=90*n;break;case"carmentaserver":case"qgis":i.DPI=90*n;break;default:Object(O.a)(!1,8)}i.WIDTH=t[0],i.HEIGHT=t[1];var a,s=r.getAxisOrientation();return a=this.v13_&&"ne"==s.substr(0,2)?[e[1],e[0],e[3],e[2]]:e,i.BBOX=a.join(","),Rt(this.url_,i)},t.prototype.getUrl=function(){return this.url_},t.prototype.setImageLoadFunction=function(e){this.image_=null,this.imageLoadFunction_=e,this.changed()},t.prototype.setUrl=function(e){e!=this.url_&&(this.url_=e,this.image_=null,this.changed())},t.prototype.updateParams=function(e){Object(_.a)(this.params_,e),this.updateV13_(),this.image_=null,this.changed()},t.prototype.updateV13_=function(){var e=this.params_.VERSION||"1.3.0";this.v13_=Object(ln.a)(e,"1.3")>=0},t}(Mt.a),hn=(Ht=function(e,t){return(Ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ht(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),pn='© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.',fn=function(e){function t(t){var n,r=t||{},i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate),n=void 0!==r.attributions?r.attributions:[pn];var o=void 0!==r.crossOrigin?r.crossOrigin:"anonymous",a=void 0!==r.url?r.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";
839return e.call(this,{attributions:n,attributionsCollapsible:!1,cacheSize:r.cacheSize,crossOrigin:o,interpolate:i,maxZoom:void 0!==r.maxZoom?r.maxZoom:19,opaque:void 0===r.opaque||r.opaque,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileLoadFunction:r.tileLoadFunction,transition:r.transition,url:a,wrapX:r.wrapX,zDirection:r.zDirection})||this}return hn(t,e),t}(b),mn=n(242),gn=n(112),vn=(qt=function(e,t){return(qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}qt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),yn=['Map tiles by <a href="https://stamen.com/" target="_blank">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.',pn],bn={terrain:{extension:"jpg",opaque:!0},"terrain-background":{extension:"jpg",opaque:!0},"terrain-labels":{extension:"png",opaque:!1},"terrain-lines":{extension:"png",opaque:!1},"toner-background":{extension:"png",opaque:!0},toner:{extension:"png",opaque:!0},"toner-hybrid":{extension:"png",opaque:!1},"toner-labels":{extension:"png",opaque:!1},"toner-lines":{extension:"png",opaque:!1},"toner-lite":{extension:"png",opaque:!0},watercolor:{extension:"jpg",opaque:!0}},_n={terrain:{minZoom:0,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:0,maxZoom:18}},wn=function(e){function t(t){var n=void 0===t.imageSmoothing||t.imageSmoothing;void 0!==t.interpolate&&(n=t.interpolate);var r=t.layer.indexOf("-"),i=-1==r?t.layer:t.layer.slice(0,r),o=_n[i],a=bn[t.layer],s=void 0!==t.url?t.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+t.layer+"/{z}/{x}/{y}."+a.extension;return e.call(this,{attributions:yn,cacheSize:t.cacheSize,crossOrigin:"anonymous",interpolate:n,maxZoom:null!=t.maxZoom?t.maxZoom:o.maxZoom,minZoom:null!=t.minZoom?t.minZoom:o.minZoom,opaque:a.opaque,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:s,wrapX:t.wrapX,zDirection:t.zDirection})||this}return vn(t,e),t}(b),xn=(Vt=function(e,t){return(Vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Vt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Cn=function(e){function t(t){var n=this,r=t||{},i=void 0===r.imageSmoothing||r.imageSmoothing;return void 0!==r.interpolate&&(i=r.interpolate),(n=e.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,projection:r.projection,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileGrid:r.tileGrid,tileLoadFunction:r.tileLoadFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,zDirection:r.zDirection})||this).params_=r.params||{},n.hidpi_=void 0===r.hidpi||r.hidpi,n.tmpExtent_=Object(c.createEmpty)(),n.setKey(n.getKeyForParams_()),n}return xn(t,e),t.prototype.getKeyForParams_=function(){var e=0,t=[];for(var n in this.params_)t[e++]=n+"-"+this.params_[n];return t.join("/")},t.prototype.getParams=function(){return this.params_},t.prototype.getRequestUrl_=function(e,t,n,r,i,o){var a=this.urls;if(a){var s=i.getCode().split(/:(?=\d+$)/).pop();return o.SIZE=t[0]+","+t[1],o.BBOX=n.join(","),o.BBOXSR=s,o.IMAGESR=s,o.DPI=Math.round(o.DPI?o.DPI*r:90*r),Rt((1==a.length?a[0]:a[Object(st.g)(Object(h.f)(e),a.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),o)}},t.prototype.getTilePixelRatio=function(e){return this.hidpi_?e:1},t.prototype.updateParams=function(e){Object(_.a)(this.params_,e),this.setKey(this.getKeyForParams_())},t.prototype.tileUrlFunction=function(e,t,n){var r=this.getTileGrid();if(r||(r=this.getTileGridForProjection(n)),!(r.getResolutions().length<=e[0])){1==t||this.hidpi_||(t=1);var i=r.getTileCoordExtent(e,this.tmpExtent_),o=Object(D.d)(r.getTileSize(e[0]),this.tmpSize);1!=t&&(o=Object(D.c)(o,t,this.tmpSize));var a={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return Object(_.a)(a,this.params_),this.getRequestUrl_(e,o,i,t,n,a)}},t}(d.a),Sn=(Gt=function(e,t){return(Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Gt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),En=function(e){function t(t){var n=this,r=t||{};return n=e.call(this,{opaque:!1,projection:r.projection,tileGrid:r.tileGrid,wrapX:void 0===r.wrapX||r.wrapX,zDirection:r.zDirection,url:r.template||"z:{z} x:{x} y:{y}",tileLoadFunction:function(e,t){var r=e.getTileCoord()[0],i=Object(D.d)(n.tileGrid.getTileSize(r)),o=Object(St.a)(i[0],i[1]);o.strokeStyle="grey",o.strokeRect(.5,.5,i[0]+.5,i[1]+.5),o.fillStyle="grey",o.strokeStyle="white",o.textAlign="center",o.textBaseline="middle",o.font="24px sans-serif",o.lineWidth=4,o.strokeText(t,i[0]/2,i[1]/2,i[0]),o.fillText(t,i[0]/2,i[1]/2,i[0]),e.setImage(o.canvas)}})||this}return Sn(t,e),t}(b),kn=n(175),Tn=(zt=function(e,t){return(zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}zt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),On=function(e){function t(t){var n=this,r=t||{},i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate);var o=r.params||{},a=!("TRANSPARENT"in o)||o.TRANSPARENT;return(n=e.call(this,{attributions:r.attributions,attributionsCollapsible:r.attributionsCollapsible,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,opaque:!a,projection:r.projection,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileClass:r.tileClass,tileGrid:r.tileGrid,tileLoadFunction:r.tileLoadFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,zDirection:r.zDirection})||this).gutter_=void 0!==r.gutter?r.gutter:0,n.params_=o,n.v13_=!0,n.serverType_=r.serverType,n.hidpi_=void 0===r.hidpi||r.hidpi,n.tmpExtent_=Object(c.createEmpty)(),n.updateV13_(),n.setKey(n.getKeyForParams_()),n}return Tn(t,e),t.prototype.getFeatureInfoUrl=function(e,t,n,r){var i=Object(f.get)(n),o=this.getProjection(),a=this.getTileGrid();a||(a=this.getTileGridForProjection(i));var s=a.getZForResolution(t,this.zDirection),l=a.getTileCoordForCoordAndZ(e,s);if(!(a.getResolutions().length<=l[0])){var d=a.getResolution(l[0]),u=a.getTileCoordExtent(l,this.tmpExtent_),h=Object(D.d)(a.getTileSize(l[0]),this.tmpSize),p=this.gutter_;0!==p&&(h=Object(D.a)(h,p,this.tmpSize),u=Object(c.buffer)(u,d*p,u)),o&&o!==i&&(d=Object(sn.b)(o,i,e,d),u=Object(f.transformExtent)(u,i,o),e=Object(f.transform)(e,i,o));var m={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Object(_.a)(m,this.params_,r);var g=Math.floor((e[0]-u[0])/d),v=Math.floor((u[3]-e[1])/d);return m[this.v13_?"I":"X"]=g,m[this.v13_?"J":"Y"]=v,this.getRequestUrl_(l,h,u,1,o||i,m)}},t.prototype.getLegendUrl=function(e,t){if(void 0!==this.urls[0]){var n={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===t||void 0===t.LAYER){var r=this.params_.LAYERS;
839if(Array.isArray(r)&&1!==r.length)return;n.LAYER=r}if(void 0!==e){var i=this.getProjection()?this.getProjection().getMetersPerUnit():1;n.SCALE=e*i/28e-5}return Object(_.a)(n,t),Rt(this.urls[0],n)}},t.prototype.getGutter=function(){return this.gutter_},t.prototype.getParams=function(){return this.params_},t.prototype.getRequestUrl_=function(e,t,n,r,i,o){var a=this.urls;if(a){if(o.WIDTH=t[0],o.HEIGHT=t[1],o[this.v13_?"CRS":"SRS"]=i.getCode(),"STYLES"in this.params_||(o.STYLES=""),1!=r)switch(this.serverType_){case"geoserver":var s=90*r+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+s:o.FORMAT_OPTIONS="dpi:"+s;break;case"mapserver":o.MAP_RESOLUTION=90*r;break;case"carmentaserver":case"qgis":o.DPI=90*r;break;default:Object(O.a)(!1,52)}var l=i.getAxisOrientation(),c=n;if(this.v13_&&"ne"==l.substr(0,2)){var d=void 0;d=n[0],c[0]=n[1],c[1]=d,d=n[2],c[2]=n[3],c[3]=d}return o.BBOX=c.join(","),Rt(1==a.length?a[0]:a[Object(st.g)(Object(h.f)(e),a.length)],o)}},t.prototype.getTilePixelRatio=function(e){return this.hidpi_&&void 0!==this.serverType_?e:1},t.prototype.getKeyForParams_=function(){var e=0,t=[];for(var n in this.params_)t[e++]=n+"-"+this.params_[n];return t.join("/")},t.prototype.updateParams=function(e){Object(_.a)(this.params_,e),this.updateV13_(),this.setKey(this.getKeyForParams_())},t.prototype.updateV13_=function(){var e=this.params_.VERSION||"1.3.0";this.v13_=Object(ln.a)(e,"1.3")>=0},t.prototype.tileUrlFunction=function(e,t,n){var r=this.getTileGrid();if(r||(r=this.getTileGridForProjection(n)),!(r.getResolutions().length<=e[0])){1==t||this.hidpi_&&void 0!==this.serverType_||(t=1);var i=r.getResolution(e[0]),o=r.getTileCoordExtent(e,this.tmpExtent_),a=Object(D.d)(r.getTileSize(e[0]),this.tmpSize),s=this.gutter_;0!==s&&(a=Object(D.a)(a,s,this.tmpSize),o=Object(c.buffer)(o,i*s,o)),1!=t&&(a=Object(D.c)(a,t,this.tmpSize));var l={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return Object(_.a)(l,this.params_),this.getRequestUrl_(e,a,o,t,n,l)}},t}(d.a),$n=n(154),Pn=n(107),In=n(12),Ln=(Ut=function(e,t){return(Ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ut(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),An=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n)||this;return s.src_=r,s.extent_=i,s.preemptive_=o,s.grid_=null,s.keys_=null,s.data_=null,s.jsonp_=a,s}return Ln(t,e),t.prototype.getImage=function(){return null},t.prototype.getData=function(e){if(!this.grid_||!this.keys_)return null;var t=(e[0]-this.extent_[0])/(this.extent_[2]-this.extent_[0]),n=(e[1]-this.extent_[1])/(this.extent_[3]-this.extent_[1]),r=this.grid_[Math.floor((1-n)*this.grid_.length)];if("string"!=typeof r)return null;var i=r.charCodeAt(Math.floor(t*r.length));i>=93&&i--,i>=35&&i--;var o=null;if((i-=32)in this.keys_){var a=this.keys_[i];o=this.data_&&a in this.data_?this.data_[a]:a}return o},t.prototype.forDataAtCoordinate=function(e,t,n){this.state==j.a.EMPTY&&!0===n?(this.state=j.a.IDLE,Object(In.listenOnce)(this,C.a.CHANGE,(function(n){t(this.getData(e))}),this),this.loadInternal_()):!0===n?setTimeout(function(){t(this.getData(e))}.bind(this),0):t(this.getData(e))},t.prototype.getKey=function(){return this.src_},t.prototype.handleError_=function(){this.state=j.a.ERROR,this.changed()},t.prototype.handleLoad_=function(e){this.grid_=e.grid,this.keys_=e.keys,this.data_=e.data,this.state=j.a.LOADED,this.changed()},t.prototype.loadInternal_=function(){if(this.state==j.a.IDLE)if(this.state=j.a.LOADING,this.jsonp_)Object(m.a)(this.src_,this.handleLoad_.bind(this),this.handleError_.bind(this));else{var e=new XMLHttpRequest;e.addEventListener("load",this.onXHRLoad_.bind(this)),e.addEventListener("error",this.onXHRError_.bind(this)),e.open("GET",this.src_),e.send()}},t.prototype.onXHRLoad_=function(e){var t=e.target;if(!t.status||t.status>=200&&t.status<300){var n=void 0;try{n=JSON.parse(t.responseText)}catch(e){return void this.handleError_()}this.handleLoad_(n)}else this.handleError_()},t.prototype.onXHRError_=function(e){this.handleError_()},t.prototype.load=function(){this.preemptive_?this.loadInternal_():this.setState(j.a.EMPTY)},t}(Pn.a),Mn=function(e){function t(t){var n=e.call(this,{projection:Object(f.get)("EPSG:3857"),state:"loading",zDirection:t.zDirection})||this;if(n.preemptive_=void 0===t.preemptive||t.preemptive,n.tileUrlFunction_=u.d,n.template_=void 0,n.jsonp_=t.jsonp||!1,t.url)if(n.jsonp_)Object(m.a)(t.url,n.handleTileJSONResponse.bind(n),n.handleTileJSONError.bind(n));else{var r=new XMLHttpRequest;r.addEventListener("load",n.onXHRLoad_.bind(n)),r.addEventListener("error",n.onXHRError_.bind(n)),r.open("GET",t.url),r.send()}else t.tileJSON?n.handleTileJSONResponse(t.tileJSON):Object(O.a)(!1,51);return n}return Ln(t,e),t.prototype.onXHRLoad_=function(e){var t=e.target;if(!t.status||t.status>=200&&t.status<300){var n=void 0;try{n=JSON.parse(t.responseText)}catch(e){return void this.handleTileJSONError()}this.handleTileJSONResponse(n)}else this.handleTileJSONError()},t.prototype.onXHRError_=function(e){this.handleTileJSONError()},t.prototype.getTemplate=function(){return this.template_},t.prototype.forDataAtCoordinateAndResolution=function(e,t,n,r){if(this.tileGrid){var i=this.tileGrid.getZForResolution(t,this.zDirection),o=this.tileGrid.getTileCoordForCoordAndZ(e,i);this.getTile(o[0],o[1],o[2],1,this.getProjection()).forDataAtCoordinate(e,n,r)}else!0===r?setTimeout((function(){n(null)}),0):n(null)},t.prototype.handleTileJSONError=function(){this.setState("error")},t.prototype.handleTileJSONResponse=function(e){var t,n=Object(f.get)("EPSG:4326"),r=this.getProjection();if(void 0!==e.bounds){var i=Object(f.getTransformFromProjections)(n,r);t=Object(c.applyTransform)(e.bounds,i)}var o=Object(p.extentFromProjection)(r),a=e.minzoom||0,s=e.maxzoom||22,l=Object(p.createXYZ)({extent:o,maxZoom:s,minZoom:a});this.tileGrid=l,this.template_=e.template;var d=e.grids;if(d){if(this.tileUrlFunction_=Object(u.a)(d,l),void 0!==e.attribution){var h=void 0!==t?t:o;this.setAttributions((function(t){return Object(c.intersects)(h,t.extent)?[e.attribution]:null}))}this.setState("ready")}else this.setState("error")},t.prototype.getTile=function(e,t,n,r,i){var o=Object(h.e)(e,t,n);if(this.tileCache.containsKey(o))return this.tileCache.get(o);var a=[e,t,n],s=this.getTileCoordForTileUrlFunction(a,i),l=this.tileUrlFunction_(s,r,i),c=new An(a,void 0!==l?j.a.IDLE:j.a.EMPTY,void 0!==l?l:"",this.tileGrid.getTileCoordExtent(a),this.preemptive_,this.jsonp_);return this.tileCache.set(o,c),c},t.prototype.useTile=function(e,t,n){var r=Object(h.e)(e,t,n);this.tileCache.containsKey(r)&&this.tileCache.get(r)},t}(M.b),jn=n(131),Rn=(Bt=function(e,t){return(Bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Bt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){function t(t){var n=e.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})||this;return n.matrixIds_=t.matrixIds,n}Rn(t,e),t.prototype.getMatrixId=function(e){return this.matrixIds_[e]},t.prototype.getMatrixIds=function(){return this.matrixIds_}}(B.a);
839var Dn,Fn=(Dn=function(e,t){return(Dn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Dn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Nn=function(e){function t(t){var n=this,r=void 0===t.imageSmoothing||t.imageSmoothing;void 0!==t.interpolate&&(r=t.interpolate);var i=void 0!==t.requestEncoding?t.requestEncoding:"KVP",o=t.tileGrid,a=t.urls;return void 0===a&&void 0!==t.url&&(a=Object(u.c)(t.url)),(n=e.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:r,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,urls:a,wrapX:void 0!==t.wrapX&&t.wrapX,transition:t.transition,zDirection:t.zDirection})||this).version_=void 0!==t.version?t.version:"1.0.0",n.format_=void 0!==t.format?t.format:"image/jpeg",n.dimensions_=void 0!==t.dimensions?t.dimensions:{},n.layer_=t.layer,n.matrixSet_=t.matrixSet,n.style_=t.style,n.requestEncoding_=i,n.setKey(n.getKeyForDimensions_()
839),a&&a.length>0&&(n.tileUrlFunction=Object(u.b)(a.map(n.createFromWMTSTemplate.bind(n)))),n}return Fn(t,e),t.prototype.setUrls=function(e){this.urls=e;var t=e.join("\n");this.setTileUrlFunction(Object(u.b)(e.map(this.createFromWMTSTemplate.bind(this))),t)},t.prototype.getDimensions=function(){return this.dimensions_},t.prototype.getFormat=function(){return this.format_},t.prototype.getLayer=function(){return this.layer_},t.prototype.getMatrixSet=function(){return this.matrixSet_},t.prototype.getRequestEncoding=function(){return this.requestEncoding_},t.prototype.getStyle=function(){return this.style_},t.prototype.getVersion=function(){return this.version_},t.prototype.getKeyForDimensions_=function(){var e=0,t=[];for(var n in this.dimensions_)t[e++]=n+"-"+this.dimensions_[n];return t.join("/")},t.prototype.updateDimensions=function(e){Object(_.a)(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())},t.prototype.createFromWMTSTemplate=function(e){var t=this.requestEncoding_,n={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};"KVP"==t&&Object(_.a)(n,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e="KVP"==t?Rt(e,n):e.replace(/\{(\w+?)\}/g,(function(e,t){return t.toLowerCase()in n?n[t.toLowerCase()]:e}));var r=this.tileGrid,i=this.dimensions_;return function(n,o,a){if(n){var s={TileMatrix:r.getMatrixId(n[0]),TileCol:n[1],TileRow:n[2]};Object(_.a)(s,i);var l=e;return"KVP"==t?Rt(l,s):l.replace(/\{(\w+?)\}/g,(function(e,t){return s[t]}))}}},t}(d.a);function Bn(e,t){var n=new l.a(32),r=e.getExtent();return function(i,o){n.expireCache(),r&&(i=Object(c.getIntersection)(r,i));var a=e.getZForResolution(o),s=[];return e.forEachTileCoord(i,a,(function(e){var r=e.toString();if(!n.containsKey(r)){var i=t(e);n.set(r,i)}s.push(n.get(r))})),s}}},function(e,t,n){n.r(t),n.d(t,"Graticule",(function(){return $})),n.d(t,"Group",(function(){return P.b})),n.d(t,"Heatmap",(function(){return Se})),n.d(t,"Image",(function(){return Ee.a})),n.d(t,"Layer",(function(){return ke.a})),n.d(t,"MapboxVector",(function(){return $i})),n.d(t,"Tile",(function(){return Qe.a})),n.d(t,"Vector",(function(){return p.a})),n.d(t,"VectorImage",(function(){return Ni})),n.d(t,"VectorTile",(function(){return Ge})),n.d(t,"WebGLPoints",(function(){return Vo})),n.d(t,"WebGLTile",(function(){return Xo}));var r=n(37),i=n(73),o=n(24),a=n(65),s=n(14),l=n(40),c=n(29),d=n(67),u=n(44),h=n(104),p=n(71),f=n(72),m=n(0),g=n(5),v=n(6),y=n(27),b=n(1),_=n(180),w=n(59),x=n(10),C=n(103);function S(e,t,n){for(var r,i,o,a,s,l,c=[],d=e(0),u=e(1),h=t(d),p=t(u),f=[u,d],m=[p,h],g=[1,0],y={},b=1e5;--b>0&&g.length>0;)o=g.pop(),d=f.pop(),h=m.pop(),(l=o.toString())in y||(c.push(h[0],h[1]),y[l]=!0),a=g.pop(),u=f.pop(),p=m.pop(),i=t(r=e(s=(o+a)/2)),Object(v.k)(i[0],i[1],h[0],h[1],p[0],p[1])<n?(c.push(p[0],p[1]),y[l=a.toString()]=!0):(g.push(a,s,s,o),m.push(p,i,i,h),f.push(u,r,r,d));return c}var E,k=(E=function(e,t){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),T=new d.a({color:"rgba(0,0,0,0.2)"}),O=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001],$=function(e){function t(t){var n=this,o=t||{},s=Object(g.a)({updateWhileAnimating:!0,updateWhileInteracting:!0,renderBuffer:0},o);return delete s.maxLines,delete s.strokeStyle,delete s.targetSize,delete s.showLabels,delete s.lonLabelFormatter,delete s.latLabelFormatter,delete s.lonLabelPosition,delete s.latLabelPosition,delete s.lonLabelStyle,delete s.latLabelStyle,delete s.intervals,(n=e.call(this,s)||this).projection_=null,n.maxLat_=1/0,n.maxLon_=1/0,n.minLat_=-1/0,n.minLon_=-1/0,n.maxX_=1/0,n.maxY_=1/0,n.minX_=-1/0,n.minY_=-1/0,n.targetSize_=void 0!==o.targetSize?o.targetSize:100,n.maxLines_=void 0!==o.maxLines?o.maxLines:100,n.meridians_=[],n.parallels_=[],n.strokeStyle_=void 0!==o.strokeStyle?o.strokeStyle:T,n.fromLonLatTransform_=void 0,n.toLonLatTransform_=void 0,n.projectionCenterLonLat_=null,n.bottomLeft_=null,n.bottomRight_=null,n.topLeft_=null,n.topRight_=null,n.meridiansLabels_=null,n.parallelsLabels_=null,o.showLabels&&(n.lonLabelFormatter_=null==o.lonLabelFormatter?y.d.bind(n,"EW"):o.lonLabelFormatter,n.latLabelFormatter_=null==o.latLabelFormatter?y.d.bind(n,"NS"):o.latLabelFormatter,n.lonLabelPosition_=null==o.lonLabelPosition?0:o.lonLabelPosition,n.latLabelPosition_=null==o.latLabelPosition?1:o.latLabelPosition,n.lonLabelStyleBase_=ne
839w u.c({text:void 0!==o.lonLabelStyle?o.lonLabelStyle.clone():new h.a({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new a.a({color:"rgba(0,0,0,1)"}),stroke:new d.a({color:"rgba(255,255,255,1)",width:3})})}),n.lonLabelStyle_=function(e){var t=e.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(t),this.lonLabelStyleBase_}.bind(n),n.latLabelStyleBase_=new u.c({text:void 0!==o.latLabelStyle?o.latLabelStyle.clone():new h.a({font:"12px Calibri,sans-serif",textAlign:"right",fill:new a.a({color:"rgba(0,0,0,1)"}),stroke:new d.a({color:"rgba(255,255,255,1)",width:3})})}),n.latLabelStyle_=function(e){var t=e.get("graticule_label");return this.latLabelStyleBase_.getText().setText(t),this.latLabelStyleBase_}.bind(n),n.meridiansLabels_=[],n.parallelsLabels_=[],n.addEventListener(i.a.POSTRENDER,n.drawLabels_.bind(n))),n.intervals_=void 0!==o.intervals?o.intervals:O,n.setSource(new f.a({loader:n.loaderFunction.bind(n),strategy:n.strategyFunction.bind(n),features:new r.a,overlaps:!1,useSpatialIndex:!1,wrapX:o.wrapX})),n.featurePool_=[],n.lineStyle_=new u.c({stroke:n.strokeStyle_}),n.loadedExtent_=null,n.renderedExtent_=null,n.renderedResolution_=null,n.setRenderOrder(null),n}return k(t,e),t.prototype.strategyFunction=function(e,t){var n=e.slice();
839return this.projection_&&this.getSource().getWrapX()&&Object(m.wrapX)(n,this.projection_),this.loadedExtent_&&(Object(m.approximatelyEquals)(this.loadedExtent_,n,t)?n=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[n]},t.prototype.loaderFunction=function(e,t,n){this.loadedExtent_=e;var r=this.getSource(),i=this.getExtent()||[-1/0,-1/0,1/0,1/0],a=Object(m.getIntersection)(i,e);if(!(this.renderedExtent_&&Object(m.equals)(this.renderedExtent_,a)&&this.renderedResolution_===t||(this.renderedExtent_=a,this.renderedResolution_=t,Object(m.isEmpty)(a)))){var s=Object(m.getCenter)(a),l=t*t/4;(!this.projection_||!Object(b.equivalent)(this.projection_,n))&&this.updateProjectionInfo_(n),this.createGraticule_(a,s,t,l);var c,d=this.meridians_.length+this.parallels_.length;for(this.meridiansLabels_&&(d+=this.meridians_.length),this.parallelsLabels_&&(d+=this.parallels_.length);d>this.featurePool_.length;)c=new o.a,this.featurePool_.push(c);var u=r.getFeaturesCollection();u.clear();var h,p,f=0;for(h=0,p=this.meridians_.length;h<p;++h)(c=this.featurePool_[f++]).setGeometry(this.meridians_[h]),c.setStyle(this.lineStyle_),u.push(c);for(h=0,p=this.parallels_.length;h<p;++h)(c=this.featurePool_[f++]).setGeometry(this.parallels_[h]),c.setStyle(this.lineStyle_),u.push(c)}},t.prototype.addMeridian_=function(e,t,n,r,i,o){var a=this.getMeridian_(e,t,n,r,o);if(Object(m.intersects)(a.getExtent(),i)){if(this.meridiansLabels_){var s=this.lonLabelFormatter_(e);o in this.meridiansLabels_?this.meridiansLabels_[o].text=s:this.meridiansLabels_[o]={geom:new c.a([]),text:s}}this.meridians_[o++]=a}return o},t.prototype.addParallel_=function(e,t,n,r,i,o){var a=this.getParallel_(e,t,n,r,o);if(Object(m.intersects)(a.getExtent(),i)){if(this.parallelsLabels_){var s=this.latLabelFormatter_(e);o in this.parallelsLabels_?this.parallelsLabels_[o].text=s:this.parallelsLabels_[o]={geom:new c.a([]),text:s}}this.parallels_[o++]=a}return o},t.prototype.drawLabels_=function(e){var t=e.frameState.viewState.rotation,n=e.frameState.viewState.resolution,r=e.frameState.size,i=e.frameState.extent,o=Object(m.getCenter)(i),a=i;if(t){var s=r[0]*n,l=r[1]*n;a=[o[0]-s/2,o[1]-l/2,o[0]+s/2,o[1]+l/2]}var c=0,d=0,u=this.latLabelPosition_<.5,h=this.projection_.getExtent(),p=Object(m.getWidth)(h);this.getSource().getWrapX()&&this.projection_.canWrapX()&&!Object(m.containsExtent)(h,i)&&(c=Math.floor((i[0]-h[0])/p),d=Math.ceil((i[2]-h[2])/p),u=u!==Math.abs(t)>Math.PI/2);for(var f=function(e){if(!(e.context instanceof CanvasRenderingContext2D))throw new Error("Only works for render events from Canvas 2D layers");var t,n=e.inversePixelTransform[0],r=e.frameState,i=Object(x.f)(e.inversePixelTransform.slice(),r.coordinateToPixelTransform),o=Object(C.b)(r.viewState.resolution,n),a=Object(b.getUserProjection)();return a&&(t=Object(b.getTransformFromProjections)(a,r.viewState.projection)),new _.a(e.context,n,r.extent,i,r.viewState.rotation,o,t)}(e),g=c;g<=d;++g){var v=this.meridians_.length+this.parallels_.length,y=void 0,w=void 0,S=void 0,E=void 0;if(this.meridiansLabels_)for(w=0,S=this.meridiansLabels_.length;w<S;++w){var k=this.meridians_[w];t||0!==g?((T=k.clone()).translate(g*p,0),T.rotate(-t,o),(E=this.getMeridianPoint_(T,a,w)).rotate(t,o)):E=this.getMeridianPoint_(k,i,w),(y=this.featurePool_[v++]).setGeometry(E),y.set("graticule_label",this.meridiansLabels_[w].text),f.drawFeature(y,this.lonLabelStyle_(y))}if(this.parallelsLabels_&&(g===c&&u||g===d&&!u))for(w=0,S=this.parallels_.length;w<S;++w){var T;k=this.parallels_[w],t||0!==g?((T=k.clone()).translate(g*p,0),T.rotate(-t,o),(E=this.getParallelPoint_(T,a,w)).rotate(t,o)):E=this.getParallelPoint_(k,i,w),(y=this.featurePool_[v++]).setGeometry(E),y.set("graticule_label",this.parallelsLabels_[w].text),f.drawFeature(y,this.latLabelStyle_(y))}}},t.prototype.createGraticule_=function(e,t,n,r){var i=this.getInterval_(n);if(-1==i)return this.meridians_.length=0,this.parallels_.length=0,this.meridiansLabels_&&(this.meridiansLabels_.length=0),void(this.parallelsLabels_&&(this.parallelsLabels_.length=0));var o=!1,a=this.projection_.getExtent(),s=Object(m.getWidth)(a);
839this.getSource().getWrapX()&&this.projection_.canWrapX()&&!Object(m.containsExtent)(a,e)&&(Object(m.getWidth)(e)>=s?(e[0]=a[0],e[2]=a[2]):o=!0);var l=[Object(v.b)(t[0],this.minX_,this.maxX_),Object(v.b)(t[1],this.minY_,this.maxY_)],c=this.toLonLatTransform_(l);isNaN(c[1])&&(c[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);var d,u,h,p,f=Object(v.b)(c[0],this.minLon_,this.maxLon_),g=Object(v.b)(c[1],this.minLat_,this.maxLat_),y=this.maxLines_,b=e;o||(b=[Object(v.b)(e[0],this.minX_,this.maxX_),Object(v.b)(e[1],this.minY_,this.maxY_),Object(v.b)(e[2],this.minX_,this.maxX_),Object(v.b)(e[3],this.minY_,this.maxY_)]);var _=Object(m.applyTransform)(b,this.toLonLatTransform_,void 0,8),w=_[3],x=_[2],C=_[1],S=_[0];if(o||(Object(m.containsCoordinate)(b,this.bottomLeft_)&&(S=this.minLon_,C=this.minLat_),Object(m.containsCoordinate)(b,this.bottomRight_)&&(x=this.maxLon_,C=this.minLat_),Object(m.containsCoordinate)(b,this.topLeft_)&&(S=this.minLon_,w=this.maxLat_),Object(m.containsCoordinate)(b,this.topRight_)&&(x=this.maxLon_,w=this.maxLat_),w=Object(v.b)(w,g,this.maxLat_),x=Object(v.b)(x,f,this.maxLon_),C=Object(v.b)(C,this.minLat_,g),S=Object(v.b)(S,this.minLon_,f)),f=Math.floor(f/i)*i,p=Object(v.b)(f,this.minLon_,this.maxLon_),u=this.addMeridian_(p,C,w,r,e,0),d=0,o)for(;(p-=i)>=S&&d++<y;)u=this.addMeridian_(p,C,w,r,e,u);else for(;p!=this.minLon_&&d++<y;)p=Math.max(p-i,this.minLon_),u=this.addMeridian_(p,C,w,r,e,u);if(p=Object(v.b)(f,this.minLon_,this.maxLon_),d=0,o)for(;(p+=i)<=x&&d++<y;)u=this.addMeridian_(p,C,w,r,e,u);else for(;p!=this.maxLon_&&d++<y;)p=Math.min(p+i,this.maxLon_),u=this.addMeridian_(p,C,w,r,e,u);for(this.meridians_.length=u,this.meridiansLabels_&&(this.meridiansLabels_.length=u),g=Math.floor(g/i)*i,h=Object(v.b)(g,this.minLat_,this.maxLat_),u=this.addParallel_(h,S,x,r,e,0),d=0;h!=this.minLat_&&d++<y;)h=Math.max(h-i,this.minLat_),u=this.addParallel_(h,S,x,r,e,u);for(h=Object(v.b)(g,this.minLat_,this.maxLat_),d=0;h!=this.maxLat_&&d++<y;)h=Math.min(h+i,this.maxLat_),u=this.addParallel_(h,S,x,r,e,u);this.parallels_.length=u,this.parallelsLabels_&&(this.parallelsLabels_.length=u)},t.prototype.getInterval_=function(e){for(var t=this.projectionCenterLonLat_[0],n=this.projectionCenterLonLat_[1],r=-1,i=Math.pow(this.targetSize_*e,2),o=[],a=[],s=0,l=this.intervals_.length;s<l;++s){var c=Object(v.b)(this.intervals_[s]/2,0,90),d=Object(v.b)(n,-90+c,90-c);if(o[0]=t-c,o[1]=d-c,a[0]=t+c,a[1]=d+c,this.fromLonLatTransform_(o,o),this.fromLonLatTransform_(a,a),Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)<=i)break;r=this.intervals_[s]}return r},t.prototype.getMeridian_=function(e,t,n,r,i){var o=function(e,t,n,r,i){var o=Object(b.get)("EPSG:4326");return S((function(r){return[e,t+(n-t)*r]}),Object(b.getTransform)(o,r),i)}(e,t,n,this.projection_,r),a=this.meridians_[i];return a?(a.setFlatCoordinates(s.a.XY,o),a.changed()):(a=new l.a(o,s.a.XY),this.meridians_[i]=a),a},t.prototype.getMeridianPoint_=function(e,t,n){var r=e.getFlatCoordinates(),i=1,o=r.length-1;r[i]>r[o]&&(i=o,o=1);var a=Math.max(t[1],r[i]),s=Math.min(t[3],r[o]),l=Object(v.b)(t[1]+Math.abs(t[1]-t[3])*this.lonLabelPosition_,a,s),c=[r[i-1]+(r[o-1]-r[i-1])*(l-r[i])/(r[o]-r[i]),l],d=this.meridiansLabels_[n].geom;return d.setCoordinates(c),d},t.prototype.getMeridians=function(){return this.meridians_},t.prototype.getParallel_=function(e,t,n,r,i){var o=function(e,t,n,r,i){var o=Object(b.get)("EPSG:4326");return S((function(r){return[t+(n-t)*r,e]}),Object(b.getTransform)(o,r),i)}(e,t,n,this.projection_,r),a=this.parallels_[i];return a?(a.setFlatCoordinates(s.a.XY,o),a.changed()):a=new l.a(o,s.a.XY),a},t.prototype.getParallelPoint_=function(e,t,n){var r=e.getFlatCoordinates(),i=0,o=r.length-2;r[i]>r[o]&&(i=o,o=0);var a=Math.max(t[0],r[i]),s=Math.min(t[2],r[o]),l=Object(v.b)(t[0]+Math.abs(t[0]-t[2])*this.latLabelPosition_,a,s),c=[l,r[i+1]+(r[o+1]-r[i+1])*(l-r[i])/(r[o]-r[i])],d=this.parallelsLabels_[n].geom;return d.setCoordinates(c),d},t.prototype.getParallels=function(){return this.parallels_},t.prototype.updateProjectionInfo_=function(e){var t=Object(b.get)("EPSG:4326"),n=e.getWorldExtent();this.maxLat_=n[3],this.maxLon_=n[2],this.minLat_=n[1],this.minLon_=n[0];var r=Object(b.getTransform)(e,t);if(this.minLon_<this.maxLon_)this.toLonLatTransform_=r;else{var i=this.minLon_+this.maxLon_/2;this.maxLon_+=360,this.toLonLatTransform_=function(e,t,n){for(var o=n||2,a=r(e,t,o),s=0,l=a.length;s<l;s+=o)a[s]<i&&(a[s]+=360);return a}}this.fromLonLatTransform_=Object(b.getTransform)(t,e);var o=Object(m.applyTransform)([this.minLon_,this.minLat_,this.maxLon_,this.maxLat_],this.fromLonLatTransform_,void 0,8);this.minX_=o[0],this.maxX_=o[2],this.minY_=o[1],this.maxY_=o[3],this.bottomLeft_=this.fromLonLatTransform_([this.minLon_,this.minLat_]),this.bottomRight_=this.fromLonLatTransform_([this.maxLon_,this.minLat_]),this.topLeft_=this.fromLonLatTransform_([this.minLon_,this.maxLat_]),this.topRight_=this.fromLonLatTransform_([this.maxLon_,this.maxLat_]),this.projectionCenterLonLat_=this.toLonLatTransform_(Object(m.getCenter)(e.getExtent())),isNaN(this.projectionCenterLonLat_[1])&&(this.projectionCenterLonLat_[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=e},t}(p.a),P=n(126),I=n(119),L=n(68),A=n(47),M=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function j(e,t){for(var n=Object(g.a)({preserveDrawingBuffer:!0,antialias:!w.f},t),r=M.length,i=0;i<r;++i)try{var o=e.getContext(M[i],n);if(o)return o}catch(e){}return null}var R=n(15);function D(e){switch(e){case 34962:return Float32Array;case 34963:return Uint32Array;default:return Float32Array}}var F=function(){function e(e,t){this.array=null,this.type=e,Object(R.a)(34962===e||34963===e,62),this.usage=void 0!==t?t:35044}return e.prototype.ofSize=function(e){this.array=new(D(this.type))(e)},e.prototype.fromArray=function(e){var t=D(this.type);this.array=t.from?t.from(e):new t(e)},e.prototype.fromArrayBuffer=function(e){this.array=new(D(this.type))(e)},e.prototype.getType=function(){return this.type},e.prototype.getArray=function(){return this.array},e.prototype.getUsage=function(){return this.usage},e.prototype.getSize=function(){return this.array?this.array.length:0},e}(),N=n(48),B=n(204),U=n(133),z="webglcontextlost",G="webglcontextrestored",V=n(116),q=n(4),H=function(){function e(e){this.gl_=e.webGlContext;var t=this.gl_;this.scaleRatio_=e.scaleRatio||1,this.renderTargetTexture_=t.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=t.createFramebuffer();var n=t.createShader(t.VERTEX_SHADER);t.shaderSource(n,e.vertexShader||"\n precision mediump float;\n \n attribute vec2 a_position;\n varying vec2 v_texCoord;\n varying vec2 v_screenCoord;\n \n uniform vec2 u_screenSize;
839\n \n void main() {\n v_texCoord = a_position * 0.5 + 0.5;\n v_screenCoord = v_texCoord * u_screenSize;\n gl_Position = vec4(a_position, 0.0, 1.0);\n }\n"),t.compileShader(n);var r=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(r,e.fragmentShader||"\n precision mediump float;\n \n uniform sampler2D u_image;\n uniform float u_opacity;\n \n varying vec2 v_texCoord;\n \n void main() {\n gl_FragColor = texture2D(u_image, v_texCoord) * u_opacity;\n }\n"),t.compileShader(r),this.renderTargetProgram_=t.createProgram(),t.attachShader(this.renderTargetProgram_,n),t.attachShader(this.renderTargetProgram_,r),t.linkProgram(this.renderTargetProgram_),this.renderTargetVerticesBuffer_=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,-1,1,1,-1,1]),t.STATIC_DRAW),this.renderTargetAttribLocation_=t.getAttribLocation(this.renderTargetProgram_,"a_position"),this.renderTargetUniformLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_screenSize"),this.renderTargetOpacityLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_opacity"),this.renderTargetTextureLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_image"),this.uniforms_=[],e.uniforms&&Object.keys(e.uniforms).forEach(function(n){this.uniforms_.push({value:e.uniforms[n],location:t.getUniformLocation(this.renderTargetProgram_,n)})}.bind(this))}return e.prototype.getGL=function(){return this.gl_},e.prototype.init=function(e){var t=this.getGL(),n=[t.drawingBufferWidth*this.scaleRatio_,t.drawingBufferHeight*this.scaleRatio_];if(t.bindFramebuffer(t.FRAMEBUFFER,this.getFrameBuffer()),t.viewport(0,0,n[0],n[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==n[0]||this.renderTargetTextureSize_[1]!==n[1]){this.renderTargetTextureSize_=n;var r=t.RGBA,i=t.RGBA,o=t.UNSIGNED_BYTE;t.bindTexture(t.TEXTURE_2D,this.renderTargetTexture_),t.texImage2D(t.TEXTURE_2D,0,r,n[0],n[1],0,i,o,null),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.renderTargetTexture_,0)}},e.prototype.apply=function(e,t,n,r){var i=this.getGL(),o=e.size;if(i.bindFramebuffer(i.FRAMEBUFFER,t?t.getFrameBuffer():null),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,this.renderTargetTexture_),!t){var a=Object(q.c)(i.canvas);if(!e.renderTargets[a]){var s=i.getContextAttributes();s&&s.preserveDrawingBuffer&&(i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT)),e.renderTargets[a]=!0}}i.enable(i.BLEND),i.blendFunc(i.ONE,i.ONE_MINUS_SRC_ALPHA),i.viewport(0,0,i.drawingBufferWidth,i.drawingBufferHeight),i.bindBuffer(i.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),i.useProgram(this.renderTargetProgram_),i.enableVertexAttribArray(this.renderTargetAttribLocation_),i.vertexAttribPointer(this.renderTargetAttribLocation_,2,i.FLOAT,!1,0,0),i.uniform2f(this.renderTargetUniformLocation_,o[0],o[1]),i.uniform1i(this.renderTargetTextureLocation_,0);var l=e.layerStatesArray[e.layerIndex].opacity;i.uniform1f(this.renderTargetOpacityLocation_,l),this.applyUniforms(e),n&&n(i,e),i.drawArrays(i.TRIANGLES,0,6),r&&r(i,e)},e.prototype.getFrameBuffer=function(){return this.frameBuffer_},e.prototype.applyUniforms=function(e){var t,n=this.getGL(),r=1;this.uniforms_.forEach((function(i){if((t="function"==typeof i.value?i.value(e):i.value)instanceof HTMLCanvasElement||t instanceof ImageData)i.texture||(i.texture=n.createTexture()),n.activeTexture(n["TEXTURE".concat(r)]),n.bindTexture(n.TEXTURE_2D,i.texture),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.L
839INEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),t instanceof ImageData?n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,t.width,t.height,0,n.UNSIGNED_BYTE,new Uint8Array(t.data)):n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),n.uniform1i(i.location,r++);else if(Array.isArray(t))switch(t.length){case 2:return void n.uniform2f(i.location,t[0],t[1]);case 3:return void n.uniform3f(i.location,t[0],t[1],t[2]);case 4:return void n.uniform4f(i.location,t[0],t[1],t[2],t[3]);default:return}else"number"==typeof t&&n.uniform1f(i.location,t)}))},e}();function W(e,t){return e[0]=t[0],e[1]=t[1],e[4]=t[2],e[5]=t[3],e[12]=t[4],e[13]=t[5],e}var Y,X=(Y=function(e,t){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),K={UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123,UNSIGNED_INT:5125,FLOAT:5126},Z={};function J(e){return"shared/"+e}var Q=0;function ee(e){switch(e){case K.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case K.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case K.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case K.FLOAT:default:return Float32Array.BYTES_PER_ELEMENT}}var te,ne,re,ie,oe,ae,se=function(e){function t(t){var n,r=e.call(this)||this,i=t||{};r.boundHandleWebGLContextLost_=r.handleWebGLContextLost.bind(r),r.boundHandleWebGLContextRestored_=r.handleWebGLContextRestored.bind(r),r.canvasCacheKey_=i.canvasCacheKey?J(i.canvasCacheKey):(n="unique/"+Q,Q+=1,n),r.canvas_=function(e){var t=Z[e];if(!t){var n=document.createElement("canvas");n.style.position="absolute",n.style.left="0",t={users:0,canvas:n},Z[e]=t}return t.users+=1,t.canvas}(r.canvasCacheKey_),r.gl_=j(r.canvas_),r.bufferCache_={},r.extensionCache_={},r.currentProgram_=null,r.canvas_.addEventListener(z,r.boundHandleWebGLContextLost_),r.canvas_.addEventListener(G,r.boundHandleWebGLContextRestored_),r.offsetRotateMatrix_=Object(x.c)(),r.offsetScaleMatrix_=Object(x.c)(),r.tmpMat4_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],r.uniformLocations_={},r.attribLocations_={},r.uniforms_=[],i.uniforms&&r.setUniforms(i.uniforms);var o=r.getGL();return r.postProcessPasses_=i.postProcesses?i.postProcesses.map((function(e){return new H({webGlContext:o,scaleRatio:e.scaleRatio,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms})})):[new H({webGlContext:o})],r.shaderCompileErrors_=null,r.startTime_=Date.now(),r}return X(t,e),t.prototype.setUniforms=function(e){for(var t in this.uniforms_=[],e)this.uniforms_.push({name:t,value:e[t]});this.uniformLocations_={}},t.prototype.canvasCacheKeyMatches=function(e){return this.canvasCacheKey_===J(e)},t.prototype.getExtension=function(e){if(e in this.extensionCache_)return this.extensionCache_[e];var t=this.gl_.getExtension(e);return this.extensionCache_[e]=t,t},t.prototype.bindBuffer=function(e){var t=this.getGL(),n=Object(q.c)(e),r=this.bufferCache_[n];r||(r={buffer:e,webGlBuffer:t.createBuffer()},this.bufferCache_[n]=r),t.bindBuffer(e.getType(),r.webGlBuffer)},t.prototype.flushBufferData=function(e){var t=this.getGL();this.bindBuffer(e),t.bufferData(e.getType(),e.getArray(),e.getUsage())},t.prototype.deleteBuffer=function(e){var t=this.getGL(),n=Object(q.c)(e),r=this.bufferCache_[n];r&&!t.isContextLost()&&t.deleteBuffer(r.webGlBuffer),delete this.bufferCache_[n]},t.prototype.disposeInternal=function(){this.canvas_.removeEventListener(z,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(G,this.boundHandleWebGLContextRestored_),function(e){var t=Z[e];if(t&&(t.users-=1,!(t.users>0))){var n=j(t.canvas).getExtension("WEBGL_lose_context");n&&n.loseContext(),delete Z[e]}}(this.canvasCacheKey_),delete this.gl_,delete this.canvas_},t.prototype.prepareDraw=function(e,t){var n=this.getGL(),r=this.getCanvas(),i=e.size,o=e.pixelRatio;r.width=i[0]*o,r.height=i[1]*o,r.style.width=i[0]+"px",r.style.height=i[1]+"px",n.useProgram(this.currentProgram_);for(var a=this.postProcessPasses_.length-1;a>=0;a--)this.postProcessPasses_[a].init(e);n.bindTexture(n.TEXTURE_2D,null),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.enable(n.BLEND),n.blendFunc(n.ONE,t?n.ZERO:n.ONE_MINUS_SRC_ALPHA),n.useProgram(this.currentProgram_),this.applyFrameState(e),this.applyUniforms(e)},t.prototype.prepareDrawToRenderTarget=function(e,t,n){var r=this.getGL(),i=t.getSize();r.bindFramebuffer(r.FRAMEBUFFER,t.getFramebuffer()),r.viewport(0,0,i[0],i[1]),r.bindTexture(r.TEXTURE_2D,t.getTexture()),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.enable(r.BLEND),r.blendFunc(r.ONE,n?r.ZERO:r.ONE_MINUS_SRC_ALPHA),r.useProgram(this.currentProgram_),this.applyFrameState(e),this.applyUniforms(e)},t.prototype.drawElements=function(e,t){var n=this.getGL();this.getExtension("OES_element_index_uint");var r=n.UNSIGNED_INT,i=t-e,o=4*e;n.drawElements(n.TRIANGLES,i,r,o)},t.prototype.finalizeDraw=function(e,t,n){for(var r=0,i=this.postProcessPasses_.length;r<i;r++)r===i-1?this.postProcessPasses_[r].apply(e,null,t,n):this.postProcessPasses_[r].apply(e,this.postProcessPasses_[r+1])},t.prototype.getCanvas=function(){return this.canvas_},t.prototype.getGL=function(){return this.gl_},t.prototype.applyFrameState=function(e){var t=e.size,n=e.viewState.rotation,r=Object(x.g)(this.offsetScaleMatrix_);Object(x.i)(r,2/t[0],2/t[1]);var i=Object(x.g)(this.offsetRotateMatrix_);0!==n&&Object(x.h)(i,-n),this.setUniformMatrixValue("u_offsetScaleMatrix",W(this.tmpMat4_,r)),this.setUniformMatrixValue("u_offsetRotateMatrix",W(this.tmpMat4_,i)),this.setUniformFloatValue("u_time",.001*(Date.now()-this.startTime_)),this.setUniformFloatValue("u_zoom",e.viewState.zoom),this.setUniformFloatValue("u_resolution",e.viewState.resolution)},t.prototype.applyUniforms=function(e){var t,n=this.getGL(),r=0;this.uniforms_.forEach(function(i){if((t="function"==typeof i.value?i.value(e):i.value)instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof ImageData)i.texture||(i.prevValue=void 0,i.texture=n.createTexture()),n.activeTexture(n["TEXTURE".concat(r)]),n.bindTexture(n.TEXTURE_2D,i.texture),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.L
839INEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(!(t instanceof HTMLImageElement)||t.complete)&&i.prevValue!==t&&(i.prevValue=t,n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t)),n.uniform1i(this.getUniformLocation(i.name),r++);else if(Array.isArray(t)&&6===t.length)this.setUniformMatrixValue(i.name,W(this.tmpMat4_,t));else if(Array.isArray(t)&&t.length<=4)switch(t.length){case 2:return void n.uniform2f(this.getUniformLocation(i.name),t[0],t[1]);case 3:return void n.uniform3f(this.getUniformLocation(i.name),t[0],t[1],t[2]);case 4:return void n.uniform4f(this.getUniformLocation(i.name),t[0],t[1],t[2],t[3]);default:return}else"number"==typeof t&&n.uniform1f(this.getUniformLocation(i.name),t)}.bind(this))},t.prototype.useProgram=function(e){return e!=this.currentProgram_&&(this.getGL().useProgram(e),this.currentProgram_=e,this.uniformLocations_={},this.attribLocations_={},!0)},t.prototype.compileShader=function(e,t){var n=this.getGL(),r=n.createShader(t);return n.shaderSource(r,e),n.compileShader(r),r},t.prototype.getProgram=function(e,t){var n=this.getGL(),r=this.compileShader(e,n.FRAGMENT_SHADER),i=this.compileShader(t,n.VERTEX_SHADER),o=n.createProgram();if(n.attachShader(o,r),n.attachShader(o,i),n.linkProgram(o),!n.getShaderParameter(r,n.COMPILE_STATUS)){var a="Fragment shader compliation failed: ".concat(n.getShaderInfoLog(r));throw new Error(a)}if(n.deleteShader(r),!n.getShaderParameter(i,n.COMPILE_STATUS))throw a="Vertex shader compilation failed: ".concat(n.getShaderInfoLog(i)),new Error(a);if(n.deleteShader(i),!n.getProgramParameter(o,n.LINK_STATUS))throw a="GL program linking failed: ".concat(n.getShaderInfoLog(i)),new Error(a);return o},t.prototype.getUniformLocation=function(e){return void 0===this.uniformLocations_[e]&&(this.uniformLocations_[e]=this.getGL().getUniformLocation(this.currentProgram_,e)),this.uniformLocations_[e]},t.prototype.getAttributeLocation=function(e){return void 0===this.attribLocations_[e]&&(this.attribLocations_[e]=this.getGL().getAttribLocation(this.currentProgram_,e)),this.attribLocations_[e]},t.prototype.makeProjectionTransform=function(e,t){var n=e.size,r=e.viewState.rotation,i=e.viewState.resolution,o=e.viewState.center;return Object(x.g)(t),Object(x.b)(t,0,0,2/(i*n[0]),2/(i*n[1]),-r,-o[0],-o[1]),t},t.prototype.setUniformFloatValue=function(e,t){this.getGL().uniform1f(this.getUniformLocation(e),t)},t.prototype.setUniformFloatVec4=function(e,t){this.getGL().uniform4fv(this.getUniformLocation(e),t)},t.prototype.setUniformMatrixValue=function(e,t){this.getGL().uniformMatrix4fv(this.getUniformLocation(e),!1,t)},t.prototype.enableAttributeArray_=function(e,t,n,r,i){var o=this.getAttributeLocation(e);o<0||(this.getGL().enableVertexAttribArray(o),this.getGL().vertexAttribPointer(o,t,n,!1,r,i))},t.prototype.enableAttributes=function(e){for(var t=function(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];t+=r.size*ee(r.type)}return t}(e),n=0,r=0;r<e.length;r++){var i=e[r];this.enableAttributeArray_(i.name,i.size,i.type||5126,t,n),n+=i.size*ee(i.type)}},t.prototype.handleWebGLContextLost=function(){Object(g.b)(this.bufferCache_),this.currentProgram_=null},t.prototype.handleWebGLContextRestored=function(){},t.prototype.createTexture=function(e,t,n){var r=this.getGL(),i=n||r.createTexture(),o=r.RGBA,a=r.RGBA,s=r.UNSIGNED_BYTE;return r.bindTexture(r.TEXTURE_2D,i),t?r.texImage2D(r.TEXTURE_2D,0,o,a,s,t):r.texImage2D(r.TEXTURE_2D,0,o,e[0],e[1],0,a,s,null),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),i},t}(V.a),le=(te=function(e,t){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}te(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ce="GENERATE_BUFFERS",de=function(e){function t(t,n){var r=e.call(this,t)||this,i=n||{};return r.inversePixelTransform_=Object(x.c)(),r.pixelContext_=null,r.postProcesses_=i.postProcesses,r.uniforms_=i.uniforms,r.helper,t.addChangeListener(N.a.MAP,r.removeHelper.bind(r)),r.dispatchPreComposeEvent=r.dispatchPreComposeEvent.bind(r),r.dispatchPostComposeEvent=r.dispatchPostComposeEvent.bind(r),r}return le(t,e),t.prototype.dispatchPreComposeEvent=function(e,t){var n=this.getLayer();
839if(n.hasListener(i.a.PRECOMPOSE)){var r=new U.a(i.a.PRECOMPOSE,void 0,t,e);n.dispatchEvent(r)}},t.prototype.dispatchPostComposeEvent=function(e,t){var n=this.getLayer();if(n.hasListener(i.a.POSTCOMPOSE)){var r=new U.a(i.a.POSTCOMPOSE,void 0,t,e);n.dispatchEvent(r)}},t.prototype.reset=function(e){this.uniforms_=e.uniforms,this.helper&&this.helper.setUniforms(this.uniforms_)},t.prototype.removeHelper=function(){this.helper&&(this.helper.dispose(),delete this.helper)},t.prototype.prepareFrame=function(e){if(this.getLayer().getRenderSource()){for(var n=!0,r=-1,i=void 0,o=0,a=e.layerStatesArray.length;o<a;o++){var s=e.layerStatesArray[o].layer,l=s.getRenderer();if(l instanceof t){var c=s.getClassName();if((n||c!==i)&&(r+=1,n=!1),i=c,l===this)break}else n=!0}var d="map/"+e.mapId+"/group/"+r;this.helper&&this.helper.canvasCacheKeyMatches(d)||(this.removeHelper(),this.helper=new se({postProcesses:this.postProcesses_,uniforms:this.uniforms_,canvasCacheKey:d}),i&&(this.helper.getCanvas().className=i),this.afterHelperCreated())}return this.prepareFrameInternal(e)},t.prototype.afterHelperCreated=function(){},t.prototype.prepareFrameInternal=function(e){return!0},t.prototype.disposeInternal=function(){this.removeHelper(),e.prototype.disposeInternal.call(this)},t.prototype.dispatchRenderEvent_=function(e,t,n){var r=this.getLayer();if(r.hasListener(e)){Object(x.b)(this.inversePixelTransform_,0,0,n.pixelRatio,-n.pixelRatio,0,0,-n.size[1]);var i=new U.a(e,this.inversePixelTransform_,n,t);r.dispatchEvent(i)}},t.prototype.preRender=function(e,t){this.dispatchRenderEvent_(i.a.PRERENDER,e,t)},t.prototype.postRender=function(e,t){this.dispatchRenderEvent_(i.a.POSTRENDER,e,t)},t.prototype.getDataAtPixel=function(e,t,n){var r=Object(x.a)([t.pixelRatio,0,0,t.pixelRatio,0,0],e.slice()),i=this.helper.getGL();if(!i)return null;var o=this.getLayer().getExtent();if(o){var a=Object(x.a)(t.pixelToCoordinateTransform,e.slice());if(!Object(m.containsCoordinate)(o,a))return null}var s=i.getContextAttributes();if(!s||!s.preserveDrawingBuffer)return new Uint8Array;var l,c=Math.round(r[0]),d=Math.round(r[1]),u=this.pixelContext_;if(!u){var h=document.createElement("canvas");h.width=1,h.height=1,u=h.getContext("2d"),this.pixelContext_=u}u.clearRect(0,0,1,1);try{u.drawImage(i.canvas,c,d,1,1,0,0,1,1),l=u.getImageData(0,0,1,1).data}catch(e){return l}return 0===l[3]?null:l},t}(B.a),ue=n(9),he=new Uint8Array(4),pe=function(){function e(e,t){this.helper_=e;var n=e.getGL();this.texture_=n.createTexture(),this.framebuffer_=n.createFramebuffer(),this.size_=t||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}return e.prototype.setSize=function(e){Object(ue.b)(e,this.size_)||(this.size_[0]=e[0],this.size_[1]=e[1],this.updateSize_())},e.prototype.getSize=function(){return this.size_},e.prototype.clearCachedData=function(){this.dataCacheDirty_=!0},e.prototype.readAll=function(){if(this.dataCacheDirty_){var e=this.size_,t=this.helper_.getGL();t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.readPixels(0,0,e[0],e[1],t.RGBA,t.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_},e.prototype.readPixel=function(e,t){if(e<0||t<0||e>this.size_[0]||t>=this.size_[1])return he[0]=0,he[1]=0,he[2]=0,he[3]=0,he;this.readAll();var n=Math.floor(e)+(this.size_[1]-Math.floor(t)-1)*this.size_[0];return he[0]=this.data_[4*n],he[1]=this.data_[4*n+1],he[2]=this.data_[4*n+2],he[3]=this.data_[4*n+3],he},e.prototype.getTexture=function(){return this.texture_},e.prototype.getFramebuffer=function(){return this.framebuffer_},e.prototype.updateSize_=function(){var e=this.size_,t=this.helper_.getGL();this.texture_=this.helper_.createTexture(e,null,this.texture_),t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.viewport(0,0,e[0],e[1]),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(e[0]*e[1]*4)},e}(),fe=n(246),me=n(12),ge=(re=function(e,t){return(re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}re(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ve=function(e){function t(t,n){var r=this,i=n.uniforms||{},o=Object(x.c)();i.u_projectionMatrix=o,(r=e.call(this,t,{uniforms:i,postProcesses:n.postProcesses}
839)||this).ready=!1,r.sourceRevision_=-1,r.verticesBuffer_=new F(34962,35048),r.hitVerticesBuffer_=new F(34962,35048),r.indicesBuffer_=new F(34963,35048),r.vertexShader_=n.vertexShader,r.fragmentShader_=n.fragmentShader,r.program_,r.hitDetectionEnabled_=!(!n.hitFragmentShader||!n.hitVertexShader),r.hitVertexShader_=n.hitVertexShader,r.hitFragmentShader_=n.hitFragmentShader,r.hitProgram_;var a=n.attributes?n.attributes.map((function(e){return{name:"a_"+e.name,size:1,type:K.FLOAT}})):[];r.attributes=[{name:"a_position",size:2,type:K.FLOAT},{name:"a_index",size:1,type:K.FLOAT}].concat(a),r.hitDetectionAttributes=[{name:"a_position",size:2,type:K.FLOAT},{name:"a_index",size:1,type:K.FLOAT},{name:"a_hitColor",size:4,type:K.FLOAT},{name:"a_featureUid",size:1,type:K.FLOAT}].concat(a),r.customAttributes=n.attributes?n.attributes:[],r.previousExtent_=Object(m.createEmpty)(),r.currentTransform_=o,r.renderTransform_=Object(x.c)(),r.invertRenderTransform_=Object(x.c)(),r.renderInstructions_=new Float32Array(0),r.hitRenderInstructions_=new Float32Array(0),r.hitRenderTarget_,r.generateBuffersRun_=0,r.worker_=Object(fe.a)(),r.worker_.addEventListener("message",function(e){var t=e.data;if(t.type===ce){var n=t.projectionTransform;t.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(t.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(t.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(t.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=n,Object(x.d)(this.invertRenderTransform_,this.renderTransform_),t.hitDetection?this.hitRenderInstructions_=new Float32Array(e.data.renderInstructions):(this.renderInstructions_=new Float32Array(e.data.renderInstructions),t.generateBuffersRun===this.generateBuffersRun_&&(this.ready=!0)),this.getLayer().changed()}}.bind(r)),r.featureCache_={},r.featureCount_=0;var s=r.getLayer().getSource();return r.sourceListenKeys_=[Object(me.listen)(s,L.a.ADDFEATURE,r.handleSourceFeatureAdded_,r),Object(me.listen)(s,L.a.CHANGEFEATURE,r.handleSourceFeatureChanged_,r),Object(me.listen)(s,L.a.REMOVEFEATURE,r.handleSourceFeatureDelete_,r),Object(me.listen)(s,L.a.CLEAR,r.handleSourceFeatureClear_,r)],s.forEachFeature(function(e){this.featureCache_[Object(q.c)(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++}.bind(r)),r}return ge(t,e),t.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitProgram_=this.helper.getProgram(this.hitFragmentShader_,this.hitVertexShader_),this.hitRenderTarget_=new pe(this.helper))},t.prototype.handleSourceFeatureAdded_=function(e){var t=e.feature;this.featureCache_[Object(q.c)(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()},this.featureCount_++},t.prototype.handleSourceFeatureChanged_=function(e){var t=e.feature;this.featureCache_[Object(q.c)(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()}},t.prototype.handleSourceFeatureDelete_=function(e){var t=e.feature;delete this.featureCache_[Object(q.c)(t)],this.featureCount_--},t.prototype.handleSourceFeatureClear_=function(){this.featureCache_={},this.featureCount_=0},t.prototype.renderFrame=function(e){var t=this.helper.getGL();this.preRender(t,e);var n=e.viewState.projection,r=this.getLayer().getSource().getWrapX()&&n.canWrapX(),i=n.getExtent(),o=e.extent,a=r?Object(m.getWidth)(i):null,s=r?Math.ceil((o[2]-i[2])/a)+1:1,l=r?Math.floor((o[0]-i[0])/a):0,c=l,d=this.indicesBuffer_.getSize();do{this.helper.makeProjectionTransform(e,this.currentTransform_),Object(x.l)(this.currentTransform_,c*a,0),Object(x.f)(this.currentTransform_,this.invertRenderTransform_),this.helper.applyUniforms(e),this.helper.drawElements(0,d)}while(++c<s);this.helper.finalizeDraw(e,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var u=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderHitDetection(e,l,s,a),this.hitRenderTarget_.clearCachedData()),this.postRender(t,e),u},t.prototype.prepareFrameInternal=function(e){var t=this.getLayer(),n=t.getSource(),r
839=e.viewState,i=!e.viewHints[A.a.ANIMATING]&&!e.viewHints[A.a.INTERACTING],o=!Object(m.equals)(this.previousExtent_,e.extent),a=this.sourceRevision_<n.getRevision();if(a&&(this.sourceRevision_=n.getRevision()),i&&(o||a)){var s=r.projection,l=r.resolution,c=t instanceof I.a?t.getRenderBuffer():0,d=Object(m.buffer)(e.extent,c*l);n.loadFeatures(d,l,s),this.rebuildBuffers_(e),this.previousExtent_=e.extent.slice()}return this.helper.useProgram(this.program_),this.helper.prepareDraw(e),this.helper.bindBuffer(this.verticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.attributes),!0},t.prototype.rebuildBuffers_=function(e){var t=Object(x.c)();this.helper.makeProjectionTransform(e,t);var n,r,i=(2+this.customAttributes.length)*this.featureCount_;if(this.renderInstructions_&&this.renderInstructions_.length===i||(this.renderInstructions_=new Float32Array(i)),this.hitDetectionEnabled_){var o=(7+this.customAttributes.length)*this.featureCount_;this.hitRenderInstructions_&&this.hitRenderInstructions_.length===o||(this.hitRenderInstructions_=new Float32Array(o))}var a,s,l,c=[],d=[],u=0,h=0;for(var p in this.featureCache_)if((r=(n=this.featureCache_[p]).geometry)&&"Point"===r.getType()){c[0]=r.getFlatCoordinates()[0],c[1]=r.getFlatCoordinates()[1],Object(x.a)(t,c),s=h+6,l=void 0,(l=d||[])[0]=Math.floor(s/256/256/256)/255,l[1]=Math.floor(s/256/256)%256/255,l[2]=Math.floor(s/256)%256/255,l[3]=s%256/255,a=l,this.renderInstructions_[u++]=c[0],this.renderInstructions_[u++]=c[1],this.hitDetectionEnabled_&&(this.hitRenderInstructions_[h++]=c[0],this.hitRenderInstructions_[h++]=c[1],this.hitRenderInstructions_[h++]=a[0],this.hitRenderInstructions_[h++]=a[1],this.hitRenderInstructions_[h++]=a[2],this.hitRenderInstructions_[h++]=a[3],this.hitRenderInstructions_[h++]=Number(p));for(var f=void 0,m=0;m<this.customAttributes.length;m++)f=this.customAttributes[m].callback(n.feature,n.properties),this.renderInstructions_[u++]=f,this.hitDetectionEnabled_&&(this.hitRenderInstructions_[h++]=f)}var g={type:ce,renderInstructions:this.renderInstructions_.buffer,customAttributesCount:this.customAttributes.length};if(g.projectionTransform=t,g.generateBuffersRun=++this.generateBuffersRun_,this.ready=!1,this.worker_.postMessage(g,[this.renderInstructions_.buffer]),this.renderInstructions_=null,this.hitDetectionEnabled_){var v={type:ce,renderInstructions:this.hitRenderInstructions_.buffer,customAttributesCount:5+this.customAttributes.length};v.projectionTransform=t,v.hitDetection=!0,this.worker_.postMessage(v,[this.hitRenderInstructions_.buffer]),this.hitRenderInstructions_=null}},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){if(Object(R.a)(this.hitDetectionEnabled_,66),this.hitRenderInstructions_){var o=Object(x.a)(t.coordinateToPixelTransform,e.slice()),a=this.hitRenderTarget_.readPixel(o[0]/2,o[1]/2),s=function(e){var t=0;return t+=Math.round(256*e[0]*256*256*255),t+=Math.round(256*e[1]*256*255
839),(t+=Math.round(256*e[2]*255))+Math.round(255*e[3])}([a[0]/255,a[1]/255,a[2]/255,a[3]/255]),l=this.hitRenderInstructions_[s],c=Math.floor(l).toString(),d=this.getLayer().getSource().getFeatureByUid(c);return d?r(d,this.getLayer(),null):void 0}},t.prototype.renderHitDetection=function(e,t,n,r){if(this.hitVerticesBuffer_.getSize()){var i=t;this.hitRenderTarget_.setSize([Math.floor(e.size[0]/2),Math.floor(e.size[1]/2)]),this.helper.useProgram(this.hitProgram_),this.helper.prepareDrawToRenderTarget(e,this.hitRenderTarget_,!0),this.helper.bindBuffer(this.hitVerticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.hitDetectionAttributes);do{this.helper.makeProjectionTransform(e,this.currentTransform_),Object(x.l)(this.currentTransform_,i*r,0),Object(x.f)(this.currentTransform_,this.invertRenderTransform_),this.helper.applyUniforms(e);var o=this.indicesBuffer_.getSize();this.helper.drawElements(0,o)}while(++i<n)}},t.prototype.disposeInternal=function(){this.worker_.terminate(),this.layer_=null,this.sourceListenKeys_.forEach((function(e){Object(me.unlistenByKey)(e)})),this.sourceListenKeys_=null,e.prototype.disposeInternal.call(this)},t}(de),ye=n(23),be=(ne=function(e,t){return(ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ne(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_e="blur",we="gradient",xe="radius",Ce=["#00f","#0ff","#0f0","#ff0","#f00"],Se=function(e){function t(t){var n=this,r=t||{},i=Object(g.a)({},r);delete i.gradient,delete i.radius,delete i.blur,delete i.weight,(n=e.call(this,i)||this).gradient_=null,n.addChangeListener(we,n.handleGradientChanged_),n.setGradient(r.gradient?r.gradient:Ce),n.setBlur(void 0!==r.blur?r.blur:15),n.setRadius(void 0!==r.radius?r.radius:8);var o=r.weight?r.weight:"weight";return n.weightFunction_="string"==typeof o?function(e){return e.get(o)}:o,n.setRenderOrder(null),n}return be(t,e),t.prototype.getBlur=function(){return this.get(_e)},t.prototype.getGradient=function(){return this.get(we)},t.prototype.getRadius=function(){return this.get(xe)},t.prototype.handleGradientChanged_=function(){this.gradient_=function(e){for(var t=Object(ye.a)(1,256),n=t.createLinearGradient(0,0,1,256),r=1/(e.length-1),i=0,o=e.length;i<o;++i)n.addColorStop(i*r,e[i]);return t.fillStyle=n,t.fillRect(0,0,1,256),t.canvas}(this.getGradient())},t.prototype.setBlur=function(e){this.set(_e,e)},t.prototype.setGradient=function(e){this.set(we,e)},t.prototype.setRadius=function(e){this.set(xe,e)},t.prototype.createRenderer=function(){return new ve(this,{className:this.getClassName(),attributes:[{name:"weight",callback:function(e){var t=this.weightFunction_(e);return void 0!==t?Object(v.b)(t,0,1):1}.bind(this)}],vertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_weight = a_weight;\n }",fragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;
839\n gl_FragColor = vec4(alpha, alpha, alpha, alpha);\n }",hitVertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n attribute vec4 a_hitColor;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_hitColor = a_hitColor;\n v_weight = a_weight;\n }",hitFragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n if (alpha < 0.05) {\n discard;\n }\n\n gl_FragColor = v_hitColor;\n }",uniforms:{u_size:function(){return 2*(this.get(xe)+this.get(_e))}.bind(this),u_blurSlope:function(){return this.get(xe)/Math.max(1,this.get(_e))}.bind(this)},postProcesses:[{fragmentShader:"\n precision mediump float;\n\n uniform sampler2D u_image;\n uniform sampler2D u_gradientTexture;\n uniform float u_opacity;\n\n varying vec2 v_texCoord;\n\n void main() {\n vec4 color = texture2D(u_image, v_texCoord);\n gl_FragColor.a = color.a * u_opacity;\n gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb;\n gl_FragColor.rgb *= gl_FragColor.a;\n }",uniforms:{u_gradientTexture:function(){return this.gradient_}.bind(this),u_opacity:function(){return this.getOpacity()}.bind(this)}}]})},t.prototype.renderDeclutter=function(){},t}(I.a),Ee=n(197),ke=n(75),Te=n(39),Oe=n(11),$e=n(155),Pe=n(173),Ie=n(174),Le=n(208),Ae=n(13),Me="vector",je=n(99),Re=n(30),De=(ae=function(e,t){return(ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ae(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Fe={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},Ne={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},Be=function(e){function t(t){var n=e.call(this,t)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.renderedLayerRevision_,n.renderedPixelToCoordinateTransform_=null,n.renderedRotation_,n.tmpTransform_=Object(x.c)(),n}return De(t,e),t.prototype.prepareTile=function(e,t,n){var r,i=e.getState();return i!==Ae.a.LOADED&&i!==Ae.a.ERROR||(this.updateExecutorGroup_(e,t,n),this.tileImageNeedsRender_(e)&&(r=!0)),r},t.prototype.getTile=function(t,n,r,i){var o=i.pixelRatio,a=i.viewState,s=a.resolution,l=a.projection,c=this.getLayer(),d=c.getSource().getTile(t,n,r,o,l),u=i.viewHints,h=!(u[A.a.ANIMATING]||u[A.a.INTERACTING]);return!h&&d.wantedResolution||(d.wantedResolution=s),this.prepareTile(d,o,l)&&(h||Date.now()-i.time<8)&&c.getRenderMode()!==Me&&this.renderTileImage_(d,i),e.prototype.getTile.call(this,t,n,r,i)},t.prototype.isDrawableTile=function(t){var n=this.getLayer();return e.prototype.isDrawableTile.call(this,t)&&(n.getRenderMode()===Me?Object(q.c)(n)in t.executorGroups:t.hasContext(n))},t.prototype.getTileImage=function(e){return e.getImage(this.getLayer())},t.prototype.prepareFrame=function(t){var n=this.getLayer().getRevision();return this.renderedLayerRevision_!==n&&(this.renderedLayerRevision_=n,this.renderedTiles.length=0),e.prototype.prepareFrame.call(this,t)},t.prototype.updateExecutorGroup_=function(e,t,n){var r=this.getLayer(),i=r.getRevision(),o=r.getRenderOrder()||null,a=e.wantedResolution,s=e.getReplayState(r);if(s.dirty||s.renderedResolution!==a||s.renderedRevision!=i||s.renderedRenderOrder!=o){var l=r.getSource(),c=r.getDeclutter(),d=l.getTileGrid(),u=l.getTileGridForProjection(n).getTileCoordExtent(e.wrappedTileCoord),h=l.getSourceTiles(t,n,e),p=Object(q.c)(r);delete e.hitDetectionImageData[p],e.executorGroups[p]=[],c&&(e.declutterExecutorGroups[p]=[]),s.dirty=!1;for(var f=function(n,i){var f=h[n];if(f.getState()!=Ae.a.LOADED)return"continue";var v=f.tileCoord,y=d.getTileCoordExtent(v),b=Object(m.getIntersection)(u,y),_=Object(m.buffer)(b,r.getRenderBuffer()*
839a,g.tmpExtent),w=Object(m.equals)(y,b)?null:_,x=new Pe.a(0,_,a,t),S=c?new Pe.a(0,b,a,t):void 0,E=Object(C.b)(a,t),k=function(e){var t,n=e.getStyleFunction()||r.getStyleFunction();if(n&&(t=n(e,a)),t){var i=this.renderFeature(e,E,t,x,S);s.dirty=s.dirty||i}},T=f.getFeatures();o&&o!==s.renderedRenderOrder&&T.sort(o);for(var O=0,$=T.length;O<$;++O){var P=T[O];w&&!Object(m.intersects)(w,P.getGeometry().getExtent())||k.call(g,P)}var I=x.finish(),L=r.getRenderMode()!==Me&&c&&1===h.length?null:b,A=new Ie.a(L,a,t,l.getOverlaps(),I,r.getRenderBuffer());if(e.executorGroups[p].push(A),S){var M=new Ie.a(null,a,t,l.getOverlaps(),S.finish(),r.getRenderBuffer());e.declutterExecutorGroups[p].push(M)}},g=this,v=0,y=h.length;v<y;++v)f(v);s.renderedRevision=i,s.renderedRenderOrder=o,s.renderedResolution=a}},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){var o=t.viewState.resolution,a=t.viewState.rotation;n=null==n?0:n;var s=this.getLayer(),l=s.getSource().getTileGridForProjection(t.viewState.projection),c=Object(m.boundingExtent)([e]);Object(m.buffer)(c,o*n,c);for(var d,u={},h=function(e,t,n){var o=e.getId();void 0===o&&(o=Object(q.c)(e));var a=u[o];if(a){if(!0!==a&&n<a.distanceSq){if(0===n)return u[o]=!0,i.splice(i.lastIndexOf(a),1),r(e,s,t);a.geometry=t,a.distanceSq=n}}else{if(0===n)return u[o]=!0,r(e,s,t);i.push(u[o]={feature:e,layer:s,geometry:t,distanceSq:n,callback:r})}},p=this.renderedTiles,f=function(r,i){var u=p[r],f=l.getTileCoordExtent(u.wrappedTileCoord);if(!Object(m.intersects)(f,c))return"continue";var g=Object(q.c)(s),v=[u.executorGroups[g]],y=u.declutterExecutorGroups[g];y&&v.push(y),v.some((function(r){for(var i=r===y?t.declutterTree.all().map((function(e){return e.value})):null,s=0,l=r.length;s<l;++s){var c=r[s];if(d=c.forEachFeatureAtCoordinate(e,o,a,n,h,i))return!0}}))},g=0,v=p.length;!d&&g<v;++g)f(g);return d},t.prototype.getFeatures=function(e){return new Promise(function(t,n){for(var r,i=this.getLayer(),o=Object(q.c)(i),a=i.getSource(),s=this.renderedProjection,l=s.getExtent(),c=this.renderedResolution,d=a.getTileGridForProjection(s),u=Object(x.a)(this.renderedPixelToCoordinateTransform_,e.slice()),h=d.getTileCoordForCoordAndResolution(u,c),p=0,f=this.renderedTiles.length;p<f;++p)if(h.toString()===this.renderedTiles[p].tileCoord.toString()){if((r=this.renderedTiles[p]).getState()===Ae.a.LOADED){var g=d.getTileCoordExtent(r.tileCoord);a.getWrapX()&&s.canWrapX()&&!Object(m.containsExtent)(l,g)&&Object(y.l)(u,s);break}r=void 0}if(!r||r.loadingSourceTiles>0)t([]);else{var v=d.getTileCoordExtent(r.wrappedTileCoord),b=Object(m.getTopLeft)(v),_=[(u[0]-b[0])/c,(b[1]-u[1])/c],w=r.getSourceTiles().reduce((function(e,t){return e.concat(t.getFeatures())}),[]),C=r.hitDetectionImageData[o];if(!C&&!this.animatingOrInteracting_){var S=Object(Re.d)(d.getTileSize(d.getZForResolution(c,a.zDirection))),E=this.renderedRotation_,k=[this.getRenderTransform(d.getTileCoordCenter(r.wrappedTileCoord),c,0,je.a,S[0]*je.a,S[1]*je.a,0)];C=Object(je.b)(S,k,w,i.getStyleFunction(),d.getTileCoordExtent(r.wrappedTileCoord),r.getReplayState(i).renderedResolution,E),r.hitDetectionImageData[o]=C}t(Object(je.c)(_,w,C))}}.bind(this))},t.prototype.handleFontsChanged=function(){var e=this.getLayer();e.getVisible()&&void 0!==this.renderedLayerRevision_&&e.changed()},t.prototype.handleStyleImageChange_=function(e){this.renderIfReadyAndVisible()},t.prototype.renderDeclutter=function(e){var t=this.context,n=t.globalAlpha;t.globalAlpha=this.getLayer().getOpacity();for(var r=e.viewHints,i=!(r[A.a.ANIMATING]||r[A.a.INTERACTING]),o=this.renderedTiles,a=0,s=o.length;a<s;++a){var l=o[a],c=l.declutterExecutorGroups[Object(q.c)(this.getLayer())];if(c)for(var d=c.length-1;d>=0;--d)c[d].execute(this.context,1,this.getTileRenderTransform(l,e),e.viewState.rotation,i,void 0,e.declutterTree)}t.globalAlpha=n},t.prototype.getTileRenderTransform=function(e,t){var n=t.pixelRatio,r=t.viewState,i=r.center,o=r.resolution,a=r.rotation,s=t.size,l=Math.round(s[0]*n),c=Math.round(s[1]*n),d=this.getLayer().getSource().getTileGridForProjection(t.viewState.projection),u=e.tileCoord,h=d.getTileCoordExtent(e.wrappedTileCoord),p=d.getTileCoordExtent(u,this.tmpExtent)[0]-h[0];return Object(x.f)(Object(x.i)(this.inversePixelTransform.slice(),1/n,1/n),this.getRenderTransform(i,o,a,n,l,c,p))},t.prototype.renderFrame=function(t,n){var r=t.viewHints,i=!(r[A.a.ANIMATING]||r[A.a.INTERACTING]);e.prototype.renderFrame.call(this,t,n),this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice(),this.renderedRotation_=t.viewState.rotation;var o=this.getLayer(),a=o.getRenderMode(),s=this.context,l=s.globalAlpha;s.globalAlpha=o.getOpacity();for(var c=Ne[a],d=t.viewState,u=d.rotation,h=o.getSource(),p=h.getTileGridForProjection(d.projection).getZForResolution(d.resolution,h.zDirection),f=this.renderedTiles,g=[],v=[],y=!0,b=f.length-1;b>=0;--b){var _=f[b];y=y&&!_.getReplayState(o).dirty;var w=_.executorGroups[Object(q.c)(o)].filter((function(e){return e.hasExecutors(c)}));if(0!==w.length){var x=this.getTileRenderTransform(_,t),C=_.tileCoord[0],S=!1,E=w[0].getClipCoords(x);if(E){for(var k=0,T=g.length;k<T;++k)if(p!==C&&C<v[k]){var O=g[k];Object(m.intersects)([E[0],E[3],E[4],E[7]],[O[0],O[3],O[4],O[7]])&&(S||(s.save(),S=!0),s.beginPath(),s.moveTo(E[0],E[1]),s.lineTo(E[2],E[3]),s.lineTo(E[4],E[5]),s.lineTo(E[6],E[7]),s.moveTo(O[6],O[7]),s.lineTo(O[4],O[5]),s.lineTo(O[2],O[3]),s.lineTo(O[0],O[1]),s.clip())}g.push(E),v.push(C)}for(var $=0,P=w.length;$<P;++$)w[$].execute(s,1,x,u,i,c);
839S&&s.restore()}}return s.globalAlpha=l,this.ready=y,this.container},t.prototype.renderFeature=function(e,t,n,r,i){if(!n)return!1;var o=!1;if(Array.isArray(n))for(var a=0,s=n.length;a<s;++a)o=Object(C.d)(r,e,n[a],t,this.boundHandleStyleImageChange_,void 0,i)||o;else o=Object(C.d)(r,e,n,t,this.boundHandleStyleImageChange_,void 0,i);return o},t.prototype.tileImageNeedsRender_=function(e){var t=this.getLayer();if(t.getRenderMode()===Me)return!1;var n=e.getReplayState(t),r=t.getRevision(),i=e.wantedResolution;return n.renderedTileResolution!==i||n.renderedTileRevision!==r},t.prototype.renderTileImage_=function(e,t){var n=this.getLayer(),r=e.getReplayState(n),i=n.getRevision(),o=e.executorGroups[Object(q.c)(n)];r.renderedTileRevision=i;var a=e.wrappedTileCoord,s=a[0],l=n.getSource(),c=t.pixelRatio,d=t.viewState.projection,u=l.getTileGridForProjection(d),h=u.getResolution(e.tileCoord[0]),p=t.pixelRatio/e.wantedResolution*h,f=u.getResolution(s),m=e.getContext(n);c=Math.round(Math.max(c,p/c));var g=l.getTilePixelSize(s,c,d);m.canvas.width=g[0],m.canvas.height=g[1];var v=c/p;if(1!==v){var y=Object(x.g)(this.tmpTransform_);Object(x.i)(y,v,v),m.setTransform.apply(m,y)}
839var b=u.getTileCoordExtent(a,this.tmpExtent),_=p/f,w=Object(x.g)(this.tmpTransform_);Object(x.i)(w,_,-_),Object(x.l)(w,-b[0],-b[3]);for(var C=0,S=o.length;C<S;++C)o[C].execute(m,v,w,0,!0,Fe[n.getRenderMode()]);r.renderedTileResolution=e.wantedResolution},t}(Le.a),Ue=n(123),ze=(oe=function(e,t){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}oe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ge=function(e){function t(t){var n=this,r=t||{},i=Object(g.a)({},r);delete i.preload,delete i.useInterimTilesOnError,(n=e.call(this,i)||this).on,n.once,n.un,"image"===r.renderMode&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),r.renderMode=void 0);var o=r.renderMode||"hybrid";return Object(R.a)("hybrid"==o||o==Me,28),n.renderMode_=o,n.setPreload(r.preload?r.preload:0),n.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),n.getBackground,n.setBackground,n}return ze(t,e),t.prototype.createRenderer=function(){return new Be(this)},t.prototype.getFeatures=function(t){return e.prototype.getFeatures.call(this,t)},t.prototype.getRenderMode=function(){return this.renderMode_},t.prototype.getPreload=function(){return this.get(Ue.a.PRELOAD)},t.prototype.getUseInterimTilesOnError=function(){return this.get(Ue.a.USE_INTERIM_TILES_ON_ERROR)},t.prototype.setPreload=function(e){this.set(Ue.a.PRELOAD,e)},t.prototype.setUseInterimTilesOnError=function(e){this.set(Ue.a.USE_INTERIM_TILES_ON_ERROR,e)},t}(I.a),Ve=n(131),He=n(141),We=n(130),Ye=n(181),Xe=n(17),Ke=n(156),Ze=(n(211),n(86)),Je=n(175),Qe=n(115),et=(n(98),n(54),{transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]});function tt(e){return(e=Math.round(e))<0?0:e>255?255:e}function nt(e){return e<0?0:e>1?1:e}function rt(e){return"%"===e[e.length-1]?tt(parseFloat(e)/100*255):tt(parseInt(e))}function it(e){return"%"===e[e.length-1]?nt(parseFloat(e)/100):nt(parseFloat(e))}function ot(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{ie={}.parseCSSColor=function(e){var t,n=e.replace(/ /g,"").toLowerCase();if(n in et)return et[n].slice();if("#"===n[0])return 4===n.length?(t=parseInt(n.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===n.length&&(t=parseInt(n.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var r=n.indexOf("("),i=n.indexOf(")");if(-1!==r&&i+1===n.length){var o=n.substr(0,r),a=n.substr(r+1,i-(r+1)).split(","),s=1;switch(o){case"rgba":if(4!==a.length)return null;s=it(a.pop());case"rgb":return 3!==a.length?null:[rt(a[0]),rt(a[1]),rt(a[2]),s];case"hsla":if(4!==a.length)return null;s=it(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,c=it(a[1]),d=it(a[2]),u=d<=.5?d*(c+1):d+c-d*c,h=2*d-u;return[tt(255*ot(h,u,l+1/3)),tt(255*ot(h,u,l)),tt(255*ot(h,u,l-1/3)),s];default:return null}}return null}}catch(e){}var at=function(e,t,n,r){void 0===r&&(r=1),this.r=e,this.g=t,this.b=n,this.a=r};function st(e){return"object"==qe(e)?["literal",e]:e}function lt(e){switch(e.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function ct(e,t){var n,r,i=st((n=e.default,r=t.default,void 0!==n?n:void 0!==r?r:void 0));return void 0===i&&"resolvedImage"===t.type?"":i}function dt(e,t,n){var r=pt(e,t),i=["get",e.property];if("categorical"===r&&"boolean"==typeof n[0][0]){for(var o=["case"],a=0,s=n;a<s.length;a+=1){var l=s[a];o.push(["==",i,l[0]],l[1])}return o.push(ct(e,t)),o}if("categorical"===r){for(var c=["match",i],d=0,u=n;d<u.length;d+=1){var h=u[d];ht(c,h[0],h[1],!1)}return c.push(ct(e,t)),c}if("interval"===r){for(var p=["step",["number",i]],f=0,m=n;f<m.length;f+=1){var g=m[f];ht(p,g[0],g[1],!0)}return ut(p),void 0===e.default?p:["case",["==",["typeof",i],"number"],p,st(e.default)]}
839if("exponential"===r){for(var v=void 0!==e.base?e.base:1,y=[lt(e),1===v?["linear"]:["exponential",v],["number",i]],b=0,_=n;b<_.length;b+=1){var w=_[b];ht(y,w[0],w[1],!1)}return void 0===e.default?y:["case",["==",["typeof",i],"number"],y,st(e.default)]}throw new Error("Unknown property function type "+r)}function ut(e){"step"===e[0]&&3===e.length&&(e.push(0),e.push(e[3]))}function ht(e,t,n,r){e.length>3&&t===e[e.length-2]||(r&&2===e.length||e.push(t),e.push(n))}function pt(e,t){return e.type?e.type:t.expression.interpolated?"exponential":"interval"}function ft(e){for(var t=["concat"],n=/{([^{}]+)}/g,r=0,i=n.exec(e);null!==i;i=n.exec(e)){var o=e.slice(r,n.lastIndex-i[0].length);r=n.lastIndex,o.length>0&&t.push(o),t.push(["get",i[1]])}if(1===t.length)return e;if(r<e.length)t.push(e.slice(r));else if(2===t.length)return["to-string",t[1]];return t}at.parse=function(e){if(e){if(e instanceof at)return e;if("string"==typeof e){var t=ie(e);if(t)return new at(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}}},at.prototype.toString=function(){var e=this.toArray(),t=e[0],n=e[1],r=e[2],i=e[3];return"rgba("+Math.round(t)+","+Math.round(n)+","+Math.round(r)+","+i+")"},at.prototype.toArray=function(){var e=this.r,t=this.g,n=this.b,r=this.a;return 0===r?[0,0,0,0]:[255*e/r,255*t/r,255*n/r,r]},at.prototype.toArray01=function(){var e=this.r,t=this.g,n=this.b,r=this.a;return 0===r?[0,0,0,0]:[e/r,t/r,n/r,r]},at.prototype.toArray01PremultipliedAlpha=function(){return[this.r,this.g,this.b,this.a]},at.black=new at(0,0,0,1),at.white=new at(1,1,1,1),at.transparent=new at(0,0,0,0),at.red=new at(1,0,0,1),at.blue=new at(0,0,1,1);var mt=function(e){function t(t,n){e.call(this,n),this.message=n,this.key=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),gt=function(e,t){void 0===t&&(t=[]),this.parent=e,this.bindings={};for(var n=0,r=t;n<r.length;n+=1){var i=r[n],o=i[0],a=i[1];this.bindings[o]=a}};gt.prototype.concat=function(e){return new gt(this,e)},gt.prototype.get=function(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(e+" not found in scope.")},gt.prototype.has=function(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)};var vt={kind:"null"},yt={kind:"number"},bt={kind:"string"},_t={kind:"boolean"},wt={kind:"color"},xt={kind:"object"},Ct={kind:"value"},St={kind:"collator"},Et={kind:"formatted"},kt={kind:"resolvedImage"};function Tt(e,t){return{kind:"array",itemType:e,N:t}}function Ot(e){if("array"===e.kind){var t=Ot(e.itemType);return"number"==typeof e.N?"array<"+t+", "+e.N+">":"value"===e.itemType.kind?"array":"array<"+t+">"}return e.kind}var $t=[vt,yt,bt,_t,wt,Et,xt,Tt(Ct),kt];function Pt(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!Pt(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(var n=0,r=$t;n<r.length;n+=1)if(!Pt(r[n],t))return null}return"Expected "+Ot(e)+" but found "+Ot(t)+" instead."}function It(e,t){return t.some((function(t){return t.kind===e.kind}))}function Lt(e,t){return t.some((function(t){return"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==qe(e):t===qe(e)}))}var At=function(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};At.prototype.compare=function(e,t){return this.collator.compare(e,t)},At.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Mt=function(e,t,n,r,i){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=n,this.fontStack=r,this.textColor=i},jt=function(e){this.sections=e};jt.fromString=function(e){return new jt([new Mt(e,null,null,null,null)])},jt.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(e){return 0!==e.text.length||e.image&&0!==e.image.name.length}))},jt.factory=function(e){return e instanceof jt?e:jt.fromString(e)},jt.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(e){return e.text})).join("")},jt.prototype.serialize=function(){for(var e=["format"],t=0,n=this.sections;t<n.length;t+=1){var r=n[t];if(r.image)e.push(["image",r.image.name]);else{e.push(r.text);var i={};r.fontStack&&(i["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(i["font-scale"]=r.scale),r.textColor&&(i["text-color"]=["rgba"].concat(r.textColor.toArray())),e.push(i)}}return e};var Rt=function(e){this.name=e.name,this.available=e.available};function Dt(e,t,n,r){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[e,t,n,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function Ft(e){if(null===e)return!0;
vendor: 6,646 bytes, line 839
839if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof at)return!0;if(e instanceof At)return!0;if(e instanceof jt)return!0;if(e instanceof Rt)return!0;if(Array.isArray(e)){for(var t=0,n=e;t<n.length;t+=1)if(!Ft(n[t]))return!1;return!0}if("object"==qe(e)){for(var r in e)if(!Ft(e[r]))return!1;return!0}return!1}function Nt(e){if(null===e)return vt;if("string"==typeof e)return bt;if("boolean"==typeof e)return _t;if("number"==typeof e)return yt;if(e instanceof at)return wt;if(e instanceof At)return St;if(e instanceof jt)return Et;if(e instanceof Rt)return kt;if(Array.isArray(e)){for(var t,n=e.length,r=0,i=e;r<i.length;r+=1){var o=Nt(i[r]);if(t){if(t===o)continue;t=Ct;break}t=o}return Tt(t||Ct,n)}return xt}function Bt(e){var t=qe(e);return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof at||e instanceof jt||e instanceof Rt?e.toString():JSON.stringify(e)}Rt.prototype.toString=function(){return this.name},Rt.fromString=function(e){return e?new Rt({name:e,available:!1}):null},Rt.prototype.serialize=function(){return["image",this.name]};var Ut=function(e,t){this.type=e,this.value=t};Ut.parse=function(e,t){if(2!==e.length)return t.error("'literal' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(!Ft(e[1]))return t.error("invalid value");var n=e[1],r=Nt(n),i=t.expectedType;return"array"!==r.kind||0!==r.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(r=i),new Ut(r,n)},Ut.prototype.evaluate=function(){return this.value},Ut.prototype.eachChild=function(){},Ut.prototype.outputDefined=function(){return!0},Ut.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof at?["rgba"].concat(this.value.toArray()):this.value instanceof jt?this.value.serialize():this.value};var zt=function(e){this.name="ExpressionEvaluationError",this.message=e};zt.prototype.toJSON=function(){return this.message};var Gt={string:bt,number:yt,boolean:_t,object:xt},Vt=function(e,t){this.type=e,this.args=t};Vt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n,r=1,i=e[0];if("array"===i){var o,a;if(e.length>2){var s=e[1];if("string"!=typeof s||!(s in Gt)||"object"===s)return t.error('The item type argument of "array" must be one of string, number, boolean',1);o=Gt[s],r++}else o=Ct;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);a=e[2],r++}n=Tt(o,a)}else n=Gt[i];for(var l=[];r<e.length;r++){var c=t.parse(e[r],r,Ct);if(!c)return null;l.push(c)}return new Vt(n,l)},Vt.prototype.evaluate=function(e){for(var t=0;t<this.args.length;t++){var n=this.args[t].evaluate(e);if(!Pt(this.type,Nt(n)))return n;if(t===this.args.length-1)throw new zt("Expected value to be of type "+Ot(this.type)+", but found "+Ot(Nt(n))+" instead.")}return null},Vt.prototype.eachChild=function(e){this.args.forEach(e)},Vt.prototype.outputDefined=function(){return this.args.every((function(e){return e.outputDefined()}))},Vt.prototype.serialize=function(){var e=this.type,t=[e.kind];if("array"===e.kind){var n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);var r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map((function(e){return e.serialize()})))};var qt=function(e){this.type=Et,this.sections=e};qt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n=e[1];if(!Array.isArray(n)&&"object"==qe(n))return t.error("First argument must be an image or text section.");for(var r=[],i=!1,o=1;o<=e.length-1;++o){var a=e[o];if(i&&"object"==qe(a)&&!Array.isArray(a)){i=!1;var s=null;if(a["font-scale"]&&!(s=t.parse(a["font-scale"],1,yt)))return null;var l=null;if(a["text-font"]&&!(l=t.parse(a["text-font"],1,Tt(bt))))return null;var c=null;if(a["text-color"]&&!(c=t.parse(a["text-color"],1,wt)))return null;var d=r[r.length-1];d.scale=s,d.font=l,d.textColor=c}else{var u=t.parse(e[o],1,Ct);if(!u)return null;var h=u.type.kind;if("string"!==h&&"value"!==h&&"null"!==h&&"resolvedImage"!==h)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,r.push({content:u,scale:null,font:null,textColor:null})}}return new qt(r)},qt.prototype.evaluate=function(e){return new jt(this.sections.map((function(t){var n=t.content.evaluate(e);return Nt(n)===kt?new Mt("",n,null,null,null):new Mt(Bt(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))},qt.prototype.eachChild=function(e){for(var t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor)}},qt.prototype.outputDefined=function(){return!1},qt.prototype.serialize=function(){for(var e=["format"],t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e.push(r.content.serialize());var i={};r.scale&&(i["font-scale"]=r.scale.serialize()),r.font&&(i["text-font"]=r.font.serialize()),r.textColor&&(i["text-color"]=r.textColor.serialize()),e.push(i)}return e};var Ht=function(e){this.type=kt,this.input=e};Ht.parse=function(e,t){if(2!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,bt);return n?new Ht(n):t.error("No image name provided.")},Ht.prototype.evaluate=function(e){var t=this.input.evaluate(e),n=Rt.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n},Ht.prototype.eachChild=function(e){e(this.input)},Ht.prototype.outputDefined=function(){return!1},Ht.prototype.serialize=function(){return["image",this.input.serialize()]};var Wt={"to-boolean":_t,"to-color":wt,"to-number":yt,"to-string":bt},Yt=function(e,t){this.type=e,this.args=t};Yt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");for(var r=Wt[n],i=[],o=1;o<e.length;o++){var a=t.parse(e[o],o,Ct);if(!a)return null;i.push(a)}return new Yt(r,i)},Yt.prototype.evaluate=function(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){for(var t,n,r=0,i=this.args;r<i.length;r+=1){if(n=null,(t=i[r].evaluate(e))instanceof at)return t;if("string"==typeof t){var o=e.parseColor(t);if(o)return o}else if(Array.isArray(t)&&!(n=t.length<3||t.length>4?"Invalid rbga value "+JSON.stringify(t)+": expected an array containing either three or four numeric values.":Dt(t[0],t[1],t[2],t[3]))
839)return new at(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new zt(n||"Could not parse color from value '"+("string"==typeof t?t:String(JSON.stringify(t)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,l=this.args;s<l.length;s+=1){if(null===(a=l[s].evaluate(e)))return 0;var c=Number(a);if(!isNaN(c))return c}throw new zt("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?jt.fromString(Bt(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?Rt.fromString(Bt(this.args[0].evaluate(e))):Bt(this.args[0].evaluate(e))},Yt.prototype.eachChild=function(e){this.args.forEach(e)},Yt.prototype.outputDefined=function(){return this.args.every((function(e){return e.outputDefined()}))},Yt.prototype.serialize=function(){if("formatted"===this.type.kind)return new qt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Ht(this.args[0]).serialize();var e=["to-"+this.type.kind];return this.eachChild((function(t){e.push(t.serialize())})),e};var Xt=["Unknown","Point","LineString","Polygon"],Kt=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null};Kt.prototype.id=function(){return this.feature&&"id"in this.feature&&this.feature.id?this.feature.id:null},Kt.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?Xt[this.feature.type]:this.feature.type:null},Kt.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},Kt.prototype.canonicalID=function(){return this.canonical},Kt.prototype.properties=function(){return this.feature&&this.feature.properties||{}},Kt.prototype.distanceFromCenter=function(){if(this.featureTileCoord&&this.featureDistanceData){var e=this.featureDistanceData.center,t=this.featureDistanceData.scale,n=this.featureTileCoord,r=n.x,i=n.y,o=r*t-e[0],a=i*t-e[1];return this.featureDistanceData.bearing[0]*o+this.featureDistanceData.bearing[1]*a}return 0},Kt.prototype.parseColor=function(e){var t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=at.parse(e)),t};var Zt=function(e,t,n,r){this.name=e,this.type=t,this._evaluate=n,this.args=r};Zt.prototype.evaluate=function(e){return this._evaluate(e,this.args)},Zt.prototype.eachChild=function(e){this.args.forEach(e)},Zt.prototype.outputDefined=function(){return!1},Zt.prototype.serialize=function(){return[this.name].concat(this.args.map((function(e){return e.serialize()})))},Zt.parse=function(e,t){var n,r=e[0],i=Zt.definitions[r];if(!i)return t.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=a.filter((function(t){var n=t[0];return!Array.isArray(n)||n.length===e.length-1})),l=null,c=0,d=s;c<d.length;c+=1){var u=d[c],h=u[0],p=u[1];l=new _n(t.registry,t.path,null,t.scope);for(var f=[],m=!1,g=1;g<e.length;g++){var v=e[g],y=Array.isArray(h)?h[g-1]:h.type,b=l.parse(v,1+f.length,y);if(!b){m=!0;break}f.push(b)}if(!m)if(Array.isArray(h)&&h.length!==f.length)l.error("Expected "+h.length+" arguments, but found "+f.length+" instead.");else{for(var _=0;_<f.length;_++){var w=Array.isArray(h)?h[_]:h.type,x=f[_];l.concat(_+1).checkSubtype(w,x.type)}if(0===l.errors.length)return new Zt(r,o,p,f)}}if(1===s.length)(n=t.errors).push.apply(n,l.errors);else{for(var C=(s.length?s:a).map((function(e){var t;return t=e[0],Array.isArray(t)?"("+t.map(Ot).join(", ")+")":"("+Ot(t.type)+"...)"})).join(" | "),S=[],E=1;E<e.length;E++){var k=t.parse(e[E],1+S.length);if(!k)return null;S.push(Ot(k.type))}t.error("Expected arguments of type "+C+", but found ("+S.join(", ")+") instead.")}return null},Zt.register=function(e,t){for(var n in Zt.definitions=t,t)e[n]=Zt};var Jt=function(e,t,n){this.type=St,this.locale=n,this.caseSensitive=e,this.diacriticSensitive=t};function Qt(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function en(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function tn(e,t){var n,r=(180+e[0])/360,i=(n=e[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n*Math.PI/360)))/360),o=Math.pow(2,t.z);return[Math.round(r*o*8192),Math.round(i*o*8192)]}function nn(e,t,n){return t[1]>e[1]!=n[1]>e[1]&&e[0]<(n[0]-t[0])*(e[1]-t[1])/(n[1]-t[1])+t[0]}function rn(e,t){for(var n,r,i,o,a,s,l,c=!1,d=0,u=t.length;d<u;d++)for(var h=t[d],p=0,f=h.length;p<f-1;p++){if(n=e,r=h[p],i=h[p+1],void 0,void 0,void 0,void 0,o=n[0]-r[0],a=n[1]-r[1],s=n[0]-i[0],o*(l=n[1]-i[1])-s*a==0&&o*s<=0&&a*l<=0)return!1;nn(e,h[p],h[p+1])&&(c=!c)}return c}function on(e,t){for(var n=0;n<t.length;n++)if(rn(e,t[n]))return!0;return!1}function an(e,t,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=t[0]-n[0],s=t[1]-n[1],l=r[0]-n[0],c=r[1]-n[1],d=i*c-l*o,u=a*c-l*s;return d>0&&u<0||d<0&&u>0}function sn(e,t,n){for(var r=0,i=n;r<i.length;r+=1)for(var o=i[r],a=0;a<o.length-1;++a)if(s=e,l=t,c=o[a],d=o[a+1],void 0,void 0,void 0,void 0,p=[l[0]-s[0],l[1]-s[1]],0!=(u=[d[0]-c[0],d[1]-c[1]])[0]*(h=p)[1]-u[1]*h[0]&&an(s,l,c,d)&&an(c,d,s,l))return!0;var s,l,c,d,u,h,p;return!1}function ln(e,t){for(var n=0;n<e.length;++n)if(!rn(e[n],t))return!1;for(var r=0;r<e.length-1;++r)if(sn(e[r],e[r+1],t))return!1;return!0}function cn(e,t){for(var n=0;n<t.length;n++)if(ln(e,t[n]))return!0;return!1}function dn(e,t,n){for(var r=[],i=0;i<e.length;i++){for(var o=[],a=0;a<e[i].length;a++){var s=tn(e[i][a],n);Qt(t,s),o.push(s)}r.push(o)}return r}
839function un(e,t,n){for(var r=[],i=0;i<e.length;i++){var o=dn(e[i],t,n);r.push(o)}return r}function hn(e,t,n,r){if(e[0]<n[0]||e[0]>n[2]){var i=.5*r,o=e[0]-n[0]>i?-r:n[0]-e[0]>i?r:0;0===o&&(o=e[0]-n[2]>i?-r:n[2]-e[0]>i?r:0),e[0]+=o}Qt(t,e)}function pn(e,t,n,r){var i=8192*Math.pow(2,r.z),o=[8192*r.x,8192*r.y],a=[];if(!e)return a;for(var s=0,l=e;s<l.length;s+=1)for(var c=0,d=l[s];c<d.length;c+=1){var u=d[c],h=[u.x+o[0],u.y+o[1]];hn(h,t,n,i),a.push(h)}return a}function fn(e,t,n,r){var i,o=8192*Math.pow(2,r.z),a=[8192*r.x,8192*r.y],s=[];if(!e)return s;for(var l=0,c=e;l<c.length;l+=1){for(var d=[],u=0,h=c[l];u<h.length;u+=1){var p=h[u],f=[p.x+a[0],p.y+a[1]];Qt(t,f),d.push(f)}s.push(d)}if(t[2]-t[0]<=o/2){(i=t)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var m=0,g=s;m<g.length;m+=1)for(var v=0,y=g[m];v<y.length;v+=1)hn(y[v],t,n,o)}return s}Jt.parse=function(e,t){if(2!==e.length)return t.error("Expected one argument.");var n=e[1];if("object"!=qe(n)||Array.isArray(n))return t.error("Collator options argument must be an object.");var r=t.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,_t);if(!r)return null;var i=t.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,_t);if(!i)return null;var o=null;return n.locale&&!(o=t.parse(n.locale,1,bt))?null:new Jt(r,i,o)},Jt.prototype.evaluate=function(e){return new At(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)},Jt.prototype.eachChild=function(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)},Jt.prototype.outputDefined=function(){return!1},Jt.prototype.serialize=function(){var e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]};var mn=function(e,t){this.type=_t,this.geojson=e,this.geometries=t};function gn(e){if(e instanceof Zt){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof mn)return!1;var t=!0;return e.eachChild((function(e){t&&!gn(e)&&(t=!1)})),t}function vn(e){if(e instanceof Zt&&"feature-state"===e.name)return!1;var t=!0;return e.eachChild((function(e){t&&!vn(e)&&(t=!1)})),t}function yn(e,t){if(e instanceof Zt&&t.indexOf(e.name)>=0)return!1;var n=!0;return e.eachChild((function(e){n&&!yn(e,t)&&(n=!1)})),n}mn.parse=function(e,t){if(2!==e.length)return t.error("'within' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(Ft(e[1])){var n=e[1];if("FeatureCollection"===n.type)for(var r=0;r<n.features.length;++r){var i=n.features[r].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new mn(n,n.features[r].geometry)}else if("Feature"===n.type){var o=n.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new mn(n,n.geometry)}else if("Polygon"===n.type||"MultiPolygon"===n.type)return new mn(n,n)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")},mn.prototype.evaluate=function(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if(!i)return!1;if("Polygon"===t.type){var o=dn(t.coordinates,r,i),a=pn(e.geometry(),n,r,i);if(!en(n,r))return!1;for(var s=0,l=a;s<l.length;s+=1)if(!rn(l[s],o))return!1}if("MultiPolygon"===t.type){var c=un(t.coordinates,r,i),d=pn(e.geometry(),n,r,i);if(!en(n,r))return!1;for(var u=0,h=d;u<h.length;u+=1)if(!on(h[u],c))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if(!i)return!1;if("Polygon"===t.type){var o=dn(t.coordinates,r,i),a=fn(e.geometry(),n,r,i);if(!en(n,r))return!1;for(var s=0,l=a;s<l.length;s+=1)if(!ln(l[s],o))return!1}if("MultiPolygon"===t.type){var c=un(t.coordinates,r,i),d=fn(e.geometry(),n,r,i);if(!en(n,r))return!1;for(var u=0,h=d;u<h.length;u+=1)if(!cn(h[u],c))return!1}return!0}(e,this.geometries)}return!1},mn.prototype.eachChild=function(){},mn.prototype.outputDefined=function(){return!0},mn.prototype.serialize=function(){return["within",this.geojson]};var bn=function(e,t){this.type=t.type,this.name=e,this.boundExpression=t};bn.parse=function(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");var n=e[1];return t.scope.has(n)?new bn(n,t.scope.get(n)):t.error('Unknown variable "'+n+'". Make sure "'+n+'" has been bound in an enclosing "let" expression before using it.',1)},bn.prototype.evaluate=function(e){return this.boundExpression.evaluate(e)},bn.prototype.eachChild=function(){},bn.prototype.outputDefined=function(){return!1},bn.prototype.serialize=function(){return["var",this.name]};var _n=function(e,t,n,r,i){void 0===t&&(t=[]),void 0===r&&(r=new gt),void 0===i&&(i=[]),this.registry=e,this.path=t,this.key=t.map((function(e){return"["+e+"]"})).join(""),this.scope=r,this.errors=i,this.expectedType=n};function wn(e,t){for(var n,r,i=e.length-1,o=0,a=i,s=0;o<=a;
vendor: 10,817 bytes, line 839
839)if(n=e[s=Math.floor((o+a)/2)],r=e[s+1],n<=t){if(s===i||t<r)return s;o=s+1}else{if(!(n>t))throw new zt("Input is not a number.");a=s-1}return 0}_n.prototype.parse=function(e,t,n,r,i){return void 0===i&&(i={}),t?this.concat(t,n,r)._parse(e,i):this._parse(e,i)},_n.prototype._parse=function(e,t){function n(e,t,n){return"assert"===n?new Vt(t,[e]):"coerce"===n?new Yt(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var r=e[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+qe(r)+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[r];if(i){var o=i.parse(e,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=n(o,a,t.typeAnnotation||"coerce");else o=n(o,a,t.typeAnnotation||"assert")}if(!(o instanceof Ut)&&"resolvedImage"!==o.type.kind&&function e(t){if(t instanceof bn)return e(t.boundExpression);if(t instanceof Zt&&"error"===t.name)return!1;if(t instanceof Jt)return!1;if(t instanceof mn)return!1;var n=t instanceof Yt||t instanceof Vt,r=!0;return t.eachChild((function(t){r=n?r&&e(t):r&&t instanceof Ut})),!!r&&(gn(t)&&yn(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]))}(o)){var l=new Kt;try{o=new Ut(o.type,o.evaluate(l))}catch(e){return this.error(e.message),null}}return o}return this.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===e?this.error("'undefined' value invalid. Use null instead."):"object"==qe(e)?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+qe(e)+" instead.")},_n.prototype.concat=function(e,t,n){var r="number"==typeof e?this.path.concat(e):this.path,i=n?this.scope.concat(n):this.scope;return new _n(this.registry,r,t||null,i,this.errors)},_n.prototype.error=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=""+this.key+t.map((function(e){return"["+e+"]"})).join("");this.errors.push(new mt(r,e))},_n.prototype.checkSubtype=function(e,t){var n=Pt(e,t);return n&&this.error(n),n};var xn=function(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(var r=0,i=n;r<i.length;r+=1){var o=i[r],a=o[0],s=o[1];this.labels.push(a),this.outputs.push(s)}};xn.parse=function(e,t){if(e.length-1<4)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");var n=t.parse(e[1],1,yt);if(!n)return null;var r=[],i=null;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);for(var o=1;o<e.length;o+=2){var a=1===o?-1/0:e[o],s=e[o+1],l=o,c=o+1;if("number"!=typeof a)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(r.length&&r[r.length-1][0]>=a)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var d=t.parse(s,c,i);if(!d)return null;i=i||d.type,r.push([a,d])}return new xn(i,n,r)},xn.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var i=t.length;return r>=t[i-1]?n[i-1].evaluate(e):n[wn(t,r)].evaluate(e)},xn.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},xn.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))},xn.prototype.serialize=function(){for(var e=["step",this.input.serialize()],t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e};var Cn=Sn;function Sn(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=n,this.p2y=r}function En(e,t,n){return e*(1-n)+t*n}Sn.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},Sn.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},Sn.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},Sn.prototype.solveCurveX=function(e,t){var n,r,i,o,a;for(void 0===t&&(t=1e-6),i=e,a=0;a<8;a++){if(o=this.sampleCurveX(i)-e,Math.abs(o)<t)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if((i=e)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=this.sampleCurveX(i),Math.abs(o-e)<t)return i;e>o?n=i:r=i,i=.5*(r-n)+n}return i},Sn.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var kn=Object.freeze({__proto__:null,number:En,color:function(e,t,n){return new at(En(e.r,t.r,n),En(e.g,t.g,n),En(e.b,t.b,n),En(e.a,t.a,n))},array:function(e,t,n){return e.map((function(e,r){return En(e,t[r],n)}))}}),Tn=6/29*3*(6/29),On=Math.PI/180,$n=180/Math.PI;function Pn(e){return e>.008856451679035631?Math.pow(e,1/3):e/Tn+4/29}function In(e){return e>6/29?e*e*e:Tn*(e-4/29)}function Ln(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function An(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Mn(e){var t=An(e.r),n=An(e.g),r=An(e.b),i=Pn((.4124564*t+.3575761*n+.1804375*r)/.95047),o=Pn((.2126729*t+.7151522*n+.072175*r)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-Pn((.0193339*t+.119192*n+.9503041*r)/1.08883)),alpha:e.a}}function jn(e){var t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=1*In(t),n=.95047*In(n),r=1.08883*In(r),new at(Ln(3.2404542*n-1.5371385*t-.4985314*r),Ln(-.969266*n+1.8760108*t+.041556*r),Ln(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function Rn(e,t,n){var r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}var Dn={forward:Mn,reverse:jn,interpolate:function(e,t,n){return{l:En(e.l,t.l,n),a:En(e.a,t.a,n),b:En(e.b,t.b,n),alpha:En(e.alpha,t.alpha,n)}}},Fn=function(e){var t=Mn(e),n=t.l,r=t.a,i=t.b,o=Math.atan2(i,r)*$n;return{h:o<0?o+360:o,c:Math.sqrt(r*r+i*i),l:n,alpha:e.a}},Nn=function(e){var t=e.h*On,n=e.c;return jn({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},Bn=function(e,t,n){return{h:Rn(e.h,t.h,n),c:En(e.c,t.c,n),l:En(e.l,t.l,n),alpha:En(e.alpha,t.alpha,n)}},Un=function(e,t,n,r,i){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(var o=0,a=i;o<a.length;o+=1){var s=a[o],l=s[0],c=s[1];this.labels.push(l),this.outputs.push(c)}};function zn(e,t,n,r){var i=r-n,o=e-n;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}Un.interpolationFactor=function(e,t,n,r){var i=0;if("exponential"===e.name)i=zn(t,e.base,n,r);else if("linear"===e.name)i=zn(t,1,n,r);else if("cubic-bezier"===e.name){var o=e.controlPoints;i=new Cn(o[0],o[1],o[2],o[3]).solve(zn(t,1,n,r))}return i},Un.parse=function(e,t){var n=e[0],r=e[1],i=e[2],o=e.slice(3);if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){var a=r[1];if("number"!=typeof a)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:a}}else{if("cubic-bezier"!==r[0])return t.error("Unknown interpolation type "+String(r[0]),1,0);var s=r.slice(1);if(4!==s.length||s.some((function(e){return"number"!=typeof e||e<0||e>1})))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:s}}if(e.length-1<4)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(!(i=t.parse(i,2,yt)))return null;var l=[],c=null;"interpolate-hcl"===n||"interpolate-lab"===n?c=wt:t.expectedType&&"value"!==t.expectedType.kind&&(c=t.expectedType);for(var d=0;d<o.length;d+=2){var u=o[d],h=o[d+1],p=d+3,f=d+4;if("number"!=typeof u)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',p);if(l.length&&l[l.length-1][0]>=u)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',p);var m=t.parse(h,f,c);if(!m)return null;c=c||m.type,l.push([u,m])}return"number"===c.kind||"color"===c.kind||"array"===c.kind&&"number"===c.itemType.kind&&"number"==typeof c.N?new Un(c,n,r,i,l):t.error("Type "+Ot(c)+" is not interpolatable.")},Un.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var i=t.length;if(r>=t[i-1])return n[i-1].evaluate(e);var o=wn(t,r),a=t[o],s=t[o+1],l=Un.interpolationFactor(this.interpolation,r,a,s),c=n[o].evaluate(e),d=n[o+1].evaluate(e);return"interpolate"===this.operator?kn[this.type.kind.toLowerCase()](c,d,l):"interpolate-hcl"===this.operator?Nn(Bn(Fn(c),Fn(d),l)):Dn.reverse(Dn.interpolate(Dn.forward(c),Dn.forward(d),l))},Un.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},Un.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))},Un.prototype.serialize=function(){var e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var t=[this.operator,e,this.input.serialize()],n=0;n<this.labels.length;n++)t.push(this.labels[n],this.outputs[n].serialize());return t};var Gn=function(e,t){this.type=e,this.args=t};Gn.parse=function(e,t){if(e.length<2)return t.error("Expectected at least one argument.");var n=null,r=t.expectedType;r&&"value"!==r.kind&&(n=r);for(var i=[],o=0,a=e.slice(1);o<a.length;o+=1){var s=a[o],l=t.parse(s,1+i.length,n,void 0,{typeAnnotation:"omit"});if(!l)return null;n=n||l.type,i.push(l)}var c=r&&i.some((function(e){return Pt(r,e.type)}));return new Gn(c?Ct:n,i)},Gn.prototype.evaluate=function(e){for(var t,n=null,r=0,i=0,o=this.args;i<o.length;i+=1){if(r++,(n=o[i].evaluate(e))&&n instanceof Rt&&!n.available&&(t||(t=n),n=null,r===this.args.length))return t;if(null!==n)break}return n}
839,Gn.prototype.eachChild=function(e){this.args.forEach(e)},Gn.prototype.outputDefined=function(){return this.args.every((function(e){return e.outputDefined()}))},Gn.prototype.serialize=function(){var e=["coalesce"];return this.eachChild((function(t){e.push(t.serialize())})),e};var Vn=function(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t};Vn.prototype.evaluate=function(e){return this.result.evaluate(e)},Vn.prototype.eachChild=function(e){for(var t=0,n=this.bindings;t<n.length;t+=1)e(n[t][1]);e(this.result)},Vn.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found "+(e.length-1)+" instead.");for(var n=[],r=1;r<e.length-1;r+=2){var i=e[r];if("string"!=typeof i)return t.error("Expected string, but found "+qe(i)+" instead.",r);if(/[^a-zA-Z0-9_]/.test(i))return t.error("Variable names must contain only alphanumeric characters or '_'.",r);var o=t.parse(e[r+1],r+1);if(!o)return null;n.push([i,o])}var a=t.parse(e[e.length-1],e.length-1,t.expectedType,n);return a?new Vn(n,a):null},Vn.prototype.outputDefined=function(){return this.result.outputDefined()},Vn.prototype.serialize=function(){for(var e=["let"],t=0,n=this.bindings;t<n.length;t+=1){var r=n[t],i=r[0],o=r[1];e.push(i,o.serialize())}return e.push(this.result.serialize()),e};var qn=function(e,t,n){this.type=e,this.index=t,this.input=n};qn.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,yt),r=t.parse(e[2],2,Tt(t.expectedType||Ct));if(!n||!r)return null;var i=r.type;return new qn(i.itemType,n,r)},qn.prototype.evaluate=function(e){var t=this.index.evaluate(e),n=this.input.evaluate(e);if(t<0)throw new zt("Array index out of bounds: "+t+" < 0.");if(t>=n.length)throw new zt("Array index out of bounds: "+t+" > "+(n.length-1)+".");if(t!==Math.floor(t))throw new zt("Array index must be an integer, but found "+t+" instead.");return n[t]},qn.prototype.eachChild=function(e){e(this.index),e(this.input)},qn.prototype.outputDefined=function(){return!1},qn.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Hn=function(e,t){this.type=_t,this.needle=e,this.haystack=t};Hn.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Ct),r=t.parse(e[2],2,Ct);return n&&r?It(n.type,[_t,bt,yt,vt,Ct])?new Hn(n,r):t.error("Expected first argument to be of type boolean, string, number or null, but found "+Ot(n.type)+" instead"):null},Hn.prototype.evaluate=function(e){var t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(null==n)return!1;if(!Lt(t,["boolean","string","number","null"]))throw new zt("Expected first argument to be of type boolean, string, number or null, but found "+Ot(Nt(t))+" instead.");if(!Lt(n,["string","array"]))throw new zt("Expected second argument to be of type array or string, but found "+Ot(Nt(n))+" instead.");return n.indexOf(t)>=0},Hn.prototype.eachChild=function(e){e(this.needle),e(this.haystack)},Hn.prototype.outputDefined=function(){return!0},Hn.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Wn=function(e,t,n){this.type=yt,this.needle=e,this.haystack=t,this.fromIndex=n};Wn.parse=function(e,t){if(e.length<=2||e.length>=5)return t.error("Expected 3 or 4 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Ct),r=t.parse(e[2],2,Ct);if(!n||!r)return null;if(!It(n.type,[_t,bt,yt,vt,Ct]))return t.error("Expected first argument to be of type boolean, string, number or null, but found "+Ot(n.type)+" instead");if(4===e.length){var i=t.parse(e[3],3,yt);return i?new Wn(n,r,i):null}return new Wn(n,r)},Wn.prototype.evaluate=function(e){var t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!Lt(t,["boolean","string","number","null"]))throw new zt("Expected first argument to be of type boolean, string, number or null, but found "+Ot(Nt(t))+" instead.");if(!Lt(n,["string","array"]))throw new zt("Expected second argument to be of type array or string, but found "+Ot(Nt(n))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(e);return n.indexOf(t,r)}return n.indexOf(t)},Wn.prototype.eachChild=function(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)},Wn.prototype.outputDefined=function(){return!1},Wn.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Yn=function(e,t,n,r,i,o){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o};Yn.parse=function(e,t){if(e.length<5)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if(e.length%2!=1)return t.error("Expected an even number of arguments.");var n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(var i={},o=[],a=2;a<e.length-1;a+=2){var s=e[a],l=e[a+1];Array.isArray(s)||(s=[s]);var c=t.concat(a);if(0===s.length)return c.error("Expected at least one branch label.");for(var d=0,u=s;d<u.length;d+=1){var h=u[d];if("number"!=typeof h&&"string"!=typeof h)return c.error("Branch labels must be numbers or strings.");if("number"==typeof h&&Math.abs(h)>Number.MAX_SAFE_INTEGER)return c.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof h&&Math.floor(h)!==h)return c.error("Numeric branch labels must be integer values.");if(n){if(c.checkSubtype(n,Nt(h)))return null}else n=Nt(h);if(void 0!==i[String(h)])return c.error("Branch labels must be unique.");i[String(h)]=o.length}var p=t.parse(l,a,r);if(!p)return null;r=r||p.type,o.push(p)}var f=t.parse(e[1],1,Ct);if(!f)return null;var m=t.parse(e[e.length-1],e.length-1,r);return m?"value"!==f.type.kind&&t.concat(1).checkSubtype(n,f.type)?null:new Yn(n,r,f,i,o,m):null},Yn.prototype.evaluate=function(e){var t=this.input.evaluate(e);return(Nt(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)},Yn.prototype.eachChild=function(e){e(this.input),this.outputs.forEac
vendor: 16,384 bytes, line 839
839h(e),e(this.otherwise)},Yn.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))&&this.otherwise.outputDefined()},Yn.prototype.serialize=function(){for(var e=this,t=["match",this.input.serialize()],n=[],r={},i=0,o=Object.keys(this.cases).sort();i<o.length;i+=1){var a=o[i];void 0===(u=r[this.cases[a]])?(r[this.cases[a]]=n.length,n.push([this.cases[a],[a]])):n[u][1].push(a)}for(var s=function(t){return"number"===e.inputType.kind?Number(t):t},l=0,c=n;l<c.length;l+=1){var d=c[l],u=d[0],h=d[1];1===h.length?t.push(s(h[0])):t.push(h.map(s)),t.push(this.outputs[outputIndex$1].serialize())}return t.push(this.otherwise.serialize()),t};var Xn=function(e,t,n){this.type=e,this.branches=t,this.otherwise=n};Xn.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found only "+(e.length-1)+".");if(e.length%2!=0)return t.error("Expected an odd number of arguments.");var n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(var r=[],i=1;i<e.length-1;i+=2){var o=t.parse(e[i],i,_t);if(!o)return null;var a=t.parse(e[i+1],i+1,n);if(!a)return null;r.push([o,a]),n=n||a.type}var s=t.parse(e[e.length-1],e.length-1,n);return s?new Xn(n,r,s):null},Xn.prototype.evaluate=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],i=r[0],o=r[1];if(i.evaluate(e))return o.evaluate(e)}return this.otherwise.evaluate(e)},Xn.prototype.eachChild=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],i=r[0],o=r[1];e(i),e(o)}e(this.otherwise)},Xn.prototype.outputDefined=function(){return this.branches.every((function(e){return e[0],e[1].outputDefined()}))&&this.otherwise.outputDefined()},Xn.prototype.serialize=function(){var e=["case"];return this.eachChild((function(t){e.push(t.serialize())})),e};var Kn=function(e,t,n,r){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=r};function Zn(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function Jn(e,t,n,r){return 0===r.compare(t,n)}function Qn(e,t,n){var r="=="!==e&&"!="!==e;return function(){function i(e,t,n){this.type=_t,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}return i.parse=function(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");var n=e[0],o=t.parse(e[1],1,Ct);if(!o)return null;if(!Zn(n,o.type))return t.concat(1).error('"'+n+"\" comparisons are not supported for type '"+Ot(o.type)+"'.");var a=t.parse(e[2],2,Ct);if(!a)return null;if(!Zn(n,a.type))return t.concat(2).error('"'+n+"\" comparisons are not supported for type '"+Ot(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot compare types '"+Ot(o.type)+"' and '"+Ot(a.type)+"'.");r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new Vt(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new Vt(o.type,[a])));var s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(s=t.parse(e[3],3,St)))return null}return new i(o,a,s)},i.prototype.evaluate=function(i){var o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){var s=Nt(o),l=Nt(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new zt('Expected arguments for "'+e+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!r&&this.hasUntypedArgument){var c=Nt(o),d=Nt(a);if("string"!==c.kind||"string"!==d.kind)return t(i,o,a)}return this.collator?n(i,o,a,this.collator.evaluate(i)):t(i,o,a)},i.prototype.eachChild=function(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var t=[e];return this.eachChild((function(e){t.push(e.serialize())})),t},i}()}Kn.parse=function(e,t){if(e.length<=2||e.length>=5)return t.error("Expected 3 or 4 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Ct),r=t.parse(e[2],2,yt);if(!n||!r)return null;if(!It(n.type,[Tt(Ct),bt,Ct]))return t.error("Expected first argument to be of type array or string, but found "+Ot(n.type)+" instead");if(4===e.length){var i=t.parse(e[3],3,yt);return i?new Kn(n.type,n,r,i):null}return new Kn(n.type,n,r)},Kn.prototype.evaluate=function(e){var t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!Lt(t,["string","array"]))throw new zt("Expected first argument to be of type array or string, but found "+Ot(Nt(t))+" instead.");if(this.endIndex){var r=this.endIndex.evaluate(e);return t.slice(n,r)}return t.slice(n)},Kn.prototype.eachChild=function(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)},Kn.prototype.outputDefined=function(){return!1},Kn.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var er=Qn("==",(function(e,t,n){return t===n}),Jn),tr=Qn("!=",(function(e,t,n){return t!==n}),(function(e,t,n,r){return!Jn(0,t,n,r)})),nr=Qn("<",(function(e,t,n){return t<n}),(function(e,t,n,r){return r.compare(t,n)<0})),rr=Qn(">",(function(e,t,n){return t>n}),(function(e,t,n,r){return r.compare(t,n)>0})),ir=Qn("<=",(function(e,t,n){return t<=n}),(function(e,t,n,r){return r.compare(t,n)<=0})),or=Qn(">=",(function(e,t,n){return t>=n}),(function(e,t,n,r){return r.compare(t,n)>=0})),ar=function(e,t,n,r,i){this.type=bt,this.number=e,this.locale=t,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=i};ar.parse=function(e,t){if(3!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,yt);if(!n)return null;var r=e[2];if("object"!=qe(r)||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");var i=null;if(r.locale&&!(i=t.parse(r.locale,1,bt)))return null;var o=null;if(r.currency&&!(o=t.parse(r.currency,1,bt)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=t.parse(r["min-fraction-digits"],1,yt)))return null;var s=null;return r["max-fraction-digits"]&&!(s=t.parse(r["max-fraction-digits"],1,yt))?null:new ar(n,i,o,a,s)},ar.prototype.evaluate=function(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))},ar.prototype.eachChild=function(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)},ar.prototype.outputDefined=function(){return!1},ar.prototype.serialize=function(){var e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]};var sr=function(e){this.type=yt,this.input=e};sr.parse=function(e,t){if(2!==e.length)return t.error("Expected 1 argument, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error("Expected argument of type string or array, but found "+Ot(n.type)+" instead."):new sr(n):null},sr.prototype.evaluate=function(e){var t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new zt("Expected value to be of type string or array, but found "+Ot(Nt(t))+" instead.")},sr.prototype.eachChild=function(e){e(this.input)},sr.prototype.outputDefined=function(){return!1},sr.prototype.serialize=function(){var e=["length"];return this.eachChild((function(t){e.push(t.serialize())})),e};var lr={"==":er,"!=":tr,">":rr,"<":nr,">=":or,"<=":ir,array:Vt,at:qn,boolean:Vt,case:Xn,coalesce:Gn,collator:Jt,format:qt,image:Ht,in:Hn,"index-of":Wn,interpolate:Un,"interpolate-hcl":Un,"interpolate-lab":Un,length:sr,let:Vn,literal:Ut,match:Yn,number:Vt,"number-format":ar,object:Vt,slice:Kn,step:xn,string:Vt,"to-boolean":Yt,"to-color":Yt,"to-number":Yt,"to-string":Yt,var:bn,within:mn};function cr(e,t){var n=t[0],r=t[1],i=t[2],o=t[3];n=n.evaluate(e),r=r.evaluate(e),i=i.evaluate(e);var a=o?o.evaluate(e):1,s=Dt(n,r,i,a);if(s)throw new zt(s);return new at(n/255*a,r/255*a,i/255*a,a)}function dr(e,t){return e in t}function ur(e,t){var n=t[e];return void 0===n?null:n}function hr(e){return{type:e}}function pr(e){return{result:"success",value:e}}function fr(e){return{result:"error",value:e}}function mr(e){return"object"==qe(e)&&null!==e&&!Array.isArray(e)}Zt.register(lr,{error:[{kind:"error"},[bt],function(e,t){var n=t[0];throw new zt(n.evaluate(e))}],typeof:[bt,[Ct],function(e,t){return Ot(Nt(t[0].evaluate(e)))}],"to-rgba":[Tt(yt,4),[wt],function(e,t){return t[0].evaluate(e).toArray()}],rgb:[wt,[yt,yt,yt],cr],rgba:[wt,[yt,yt,yt,yt],cr],has:{type:_t,overloads:[[[bt],function(e,t){return dr(t[0].evaluate(e),e.properties())}],[[bt,xt],function(e,t){var n=t[0],r=t[1];return dr(n.evaluate(e),r.evaluate(e))}]]},get:{type:Ct,overloads:[[[bt],function(e,t){return ur(t[0].evaluate(e),e.properties())}],[[bt,xt],function(e,t){var n=t[0],r=t[1];return ur(n.evaluate(e),r.evaluate(e))}]]},"feature-state":[Ct,[bt],function(e,t){return ur(t[0].evaluate(e),e.featureState||{})}],properties:[xt,[],function(e){return e.properties()}],"geometry-type":[bt,[],function(e){return e.geometryType()}],id:[Ct,[],function(e){return e.id()}],zoom:[yt,[],function(e){return e.globals.zoom}],pitch:[yt,[],function(e){return e.globals.pitch||0}],"distance-from-center":[yt,[],function(e){return e.distanceFromCenter()}],"heatmap-density":[yt,[],function(e){return e.globals.heatmapDensity||0}],"line-progress":[yt,[],function(e){return e.globals.lineProgress||0}],"sky-radial-progress":[yt,[],function(e){return e.globals.skyRadialProgress||0}],accumulated:[Ct,[],function(e){return void 0===e.globals.accumulated?null:e.globals.accumulated}],"+":[yt,hr(yt),function(e,t){for(var n=0,r=0,i=t;r<i.length;r+=1)n+=i[r].evaluate(e);return n}],"*":[yt,hr(yt),function(e,t){for(var n=1,r=0,i=t;r<i.length;r+=1)n*=i[r].evaluate(e);return n}],"-":{type:yt,overloads:[[[yt,yt],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)-r.evaluate(e)}],[[yt],function(e,t){return-t[0].evaluate(e)}]]},"/":[yt,[yt,yt],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)/r.evaluate(e)}],"%":[yt,[yt,yt],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)%r.evaluate(e)}],ln2:[yt,[],function(){return Math.LN2}],pi:[yt,[],function(){return Math.PI}],e:[yt,[],function(){return Math.E}],"^":[yt,[yt,yt],function(e,t){var n=t[0],r=t[1];return Math.pow(n.evaluate(e),r.evaluate(e))}],sqrt:[yt,[yt],function(e,t){var n=t[0];return Math.sqrt(n.evaluate(e))}],log10:[yt,[yt],function(e,t){var n=t[0];return Math.log(n.evaluate(e))/Math.LN10}],ln:[yt,[yt],function(e,t){var n=t[0];return Math.log(n.evaluate(e))}],log2:[yt,[yt],function(e,t){var n=t[0];return Math.log(n.evaluate(e))/Math.LN2}],sin:[yt,[yt],function(e,t){var n=t[0];return Math.sin(n.evaluate(e))}],cos:[yt,[yt],function(e,t){var n=t[0];return Math.cos(n.evaluate(e))}],tan:[yt,[yt],function(e,t){var n=t[0];return Math.tan(n.evaluate(e))}],asin:[yt,[yt],function(e,t){var n=t[0];return Math.asin(n.evaluate(e))}],acos:[yt,[yt],function(e,t){var n=t[0];return Math.acos(n.evaluate(e))}],atan:[yt,[yt],function(e,t){var n=t[0];return Math.atan(n.evaluate(e))}],min:[yt,hr(yt),function(e,t){return Math.min.apply(Math,t.map((function(t){return t.evaluate(e)})))}],max:[yt,hr(yt),function(e,t){return Math.max.apply(Math,t.map((function(t){return t.evaluate(e)})))}],abs:[yt,[yt],function(e,t){var n=t[0];return Math.abs(n.evaluate(e))}],round:[yt,[yt],function(e,t){var n=t[0].evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[yt,[yt],function(e,t){var n=t[0];return Math.floor(n.evaluate(e))}],ceil:[yt,[yt],function(e,t){var n=t[0];return Math.ceil(n.evaluate(e))}],"filter-==":[_t,[bt,Ct],function(e,t){var n=t[0],r=t[1];return e.properties()[n.value]===r.value}],"filter-id-==":[_t,[Ct],function(e,t){var n=t[0];return e.id()===n.value}],"filter-type-==":[_t,[bt],function(e,t){var n=t[0];return e.geometryType()===n.value}],"filter-<":[_t,[bt,Ct],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return qe(i)==qe(o)&&i<o}],"filter-id-<":[_t,[Ct],function(e,t){var n=t[0],r=e.id(),i=n.value;return qe(r)==qe(i)&&r<i}],"filter->":[_t,[bt,Ct],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return qe(i)==qe(o)&&i>o}],"filter-id->":[_t,[Ct],function(e,t){var n=t[0],r=e.id(),i=n.value;return qe(r)==qe(i)&&r>i}],"filter-<=":[_t,[bt,Ct],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return qe(i)==qe(o)&&i<=o}],"filter-id-<=":[_t,[Ct],function(e,t){var n=t[0],r=e.id(),i=n.value;return qe(r)==qe(i)&&r<=i}],"filter->=":[_t,[bt,Ct],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return qe(i)==qe(o)&&i>=o}],"filter-id->=":[_t,[Ct],function(e,t){var n=t[0],r=e.id(),i=n.value;return qe(r)==qe(i)&&r>=i}],"filter-has":[_t,[Ct],function(e,t){return t[0].value in e.properties()}],"filter-has-id":[_t,[],function(e){return null!==e.id()&&void 0!==e.id()}],"filter-type-in":[_t,[Tt(bt)],function(e,t){return t[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[_t,[Tt(Ct)],function(e,t){return t[0].value.indexOf(e.id())>=0}],"filter-in-small":[_t,[bt,Tt(Ct)],function(e,t){var n=t[0];return t[1].value.indexOf(e.properties()[n.value])>=0}],"filter-in-large":[_t,[bt,Tt(Ct)],function(e,t){var n=t[0],r=t[1];return function(e,t,n,r){for(;n<=r;){var i=n+r>>1;if(t[i]===e)return!0;t[i]>e?r=i-1:n=i+1}return!1}(e.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:_t,overloads:[[[_t,_t],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)&&r.evaluate(e)}],[hr(_t),function(e,t){for(var n=0,r=t;n<r.length;n+=1)if(!r[n].evaluate(e))return!1;return!0}]]},any:{type:_t,overloads:[[[_t,_t],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)||r.evaluate(e)}],[hr(_t),function(e,t){for(var n=0,r=t;n<r.length;n+=1)if(r[n].evaluate(e))return!0;return!1}]]},"!":[_t,[_t],function(e,t){return!t[0].evaluate(e)}],"is-supported-script":[_t,[bt],function(e,t){var n=t[0],r=e.globals&&e.globals.isSupportedScript;return!r||r(n.evaluate(e))}],upcase:[bt,[bt],function(e,t){return t[0].evaluate(e).toUpperCase()}],downcase:[bt,[bt],function(e,t){return t[0].evaluate(e).toLowerCase()}],concat:[bt,hr(Ct),function(e,t){return t.map((function(t){return Bt(t.evaluate(e))})).join("")}],"resolved-locale":[bt,[St],function(e,t){return t[0].evaluate(e).resolvedLocale()}]});var gr=function(e,t){this.expression=e,this._warningHistory={},this._evaluator=new Kt,this._defaultValue=t?function(e){return"color"===e.type&&(mr(e.default)||Array.isArray(e.default))?new at(0,0,0,0):"color"===e.type?at.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null};function vr(e,t){var n=new _n(lr,[],t?function(e){var t={color:wt,string:bt,number:yt,enum:bt,boolean:_t,formatted:Et,resolvedImage:kt};return"array"===e.type?Tt(t[e.value]||Ct,e.length):t[e.type]}(t):void 0),r=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?pr(new gr(r,t)):fr(n.errors)}gr.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,i,o,a,s){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=r||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)},gr.prototype.evaluate=function(e,t,n,r,i,o,a,s){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r||n
vendor: 9,556 bytes, line 839
839ull,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null;try{var l=this.expression.evaluate(this._evaluator);if(null==l||"number"==typeof l&&l!=l)return this._defaultValue;if(this._enumValues&&!(l in this._enumValues))throw new zt("Expected value to be one of "+Object.keys(this._enumValues).map((function(e){return JSON.stringify(e)})).join(", ")+", but found "+JSON.stringify(l)+" instead.");return l}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}};var yr=function(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!vn(t.expression)};yr.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)},yr.prototype.evaluate=function(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)};var br=function(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!vn(t.expression),this.interpolationType=r};function _r(e){if(Array.isArray(e))return e.map(_r);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){var t={};for(var n in e)t[n]=_r(e[n]);return t}return function(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}(e)}br.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)},br.prototype.evaluate=function(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)},br.prototype.interpolationFactor=function(e,t,n){return this.interpolationType?Un.interpolationFactor(this.interpolationType,e,t,n):0};var wr={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}
vendor: 4,085 bytes, line 839
839,"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}
vendor: 12,406 bytes, line 839
839,"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}
vendor: 6,925 bytes, line 839
839,"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}
839,"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};function xr(e){if(!Array.isArray(e))return!1;if("pitch"===(t=e[0])||"distance-from-center"===t)return!0;for(var t,n=1;n<e.length;
839n++)if(xr(e[n]))return!0;return!1}var Cr=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function Sr(e,t){return e<t?-1:e>t?1:0}function Er(e){if(!e)return!0;var t,n=e[0];return e.length<=1?"any"!==n:"=="===n?kr(e[1],e[2],"=="):"!="===n?$r(kr(e[1],e[2],"==")):"<"===n||">"===n||"<="===n||">="===n?kr(e[1],e[2],n):"any"===n?(t=e.slice(1),["any"].concat(t.map(Er))):"all"===n?["all"].concat(e.slice(1).map(Er)):"none"===n?["all"].concat(e.slice(1).map(Er).map($r)):"in"===n?Tr(e[1],e.slice(2)):"!in"===n?$r(Tr(e[1],e.slice(2))):"has"===n?Or(e[1]):"!has"===n?$r(Or(e[1])):"within"!==n||e}function kr(e,t,n){switch(e){case"$type":return["filter-type-"+n,t];case"$id":return["filter-id-"+n,t];default:return["filter-"+n,e,t]}}function Tr(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((function(e){return qe(e)!=qe(t[0])}))?["filter-in-large",e,["literal",t.sort(Sr)]]:["filter-in-small",e,["literal",t]]}}function Or(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function $r(e){return["!",e]}var Pr=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Ir(e,t){var n={};for(var r in e)"ref"!==r&&(n[r]=e[r]);return Pr.forEach((function(e){e in t&&(n[e]=t[e])})),n}var Lr={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},Ar=/(italic|oblique)$/i,Mr={},jr=function(e,t,n){var r=Mr[e];if(!r){Array.isArray(e)||(e=[e]);for(var i=400,o="normal",a=[],s=0,l=e.length;s<l;++s){var c=e[s].split(" "),d=c[c.length-1].toLowerCase();for(var u in"normal"==d||"italic"==d||"oblique"==d?(o=d,c.pop(),d=c[c.length-1].toLowerCase()):Ar.test(d)&&(d=d.replace(Ar,""),o=c[c.length-1].replace(d,"")),Lr){var h=c.length>1?c[c.length-2].toLowerCase():"";if(d==u||d==u.replace("-","")||h+"-"+d==u){i=Lr[u],c.pop(),h&&u.startsWith(h)&&c.pop();break}}"number"==typeof d&&(i=d);var p=c.join(" ").replace("Klokantech Noto Sans","Noto Sans");-1!==p.indexOf(" ")&&(p='"'+p+'"'),a.push(p)}r=Mr[e]=[o,i,a]}return r[0]+" "+r[1]+" "+t+"px"+(n?"/"+n:"")+" "+r[2]};function Rr(e){return 0!==e.indexOf("mapbox://")?"":e.slice("mapbox://".length)}function Dr(e,t){var n=Rr(e);if(!n)return decodeURI(new URL(e,location.href).href);if(0!==n.indexOf("styles/"))throw new Error("unexpected style url: "+e);return"https://api.mapbox.com/styles/v1/"+n.slice("styles/".length)+"?&access_token="+t}function Fr(e,t,n,r){var i=new URL(e,r),o=Rr(e);return o?"https://{a-d}.tiles.mapbox.com/v4/"+o+"/{z}/{x}/{y}.vector.pbf?access_token="+t:t?(i.searchParams.set(n,t),decodeURI(i.href)):decodeURI(i.href)}function Nr(e){return e*Math.PI/180}var Br=function(){for(var e=[],t=78271.51696402048;e.length<=24;t/=2)e.push(t);return e}();function Ur(e,t){if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(e,t);var n=document.createElement("canvas");return n.width=e,n.height=t,n}var zr={};function Gr(e,t,n){if(void 0===n&&(n={}),t in zr)return zr[t];var r=n.transformRequest&&n.transformRequest(t,e)||new Request(t);r.headers.get("Accept")||r.headers.set("Accept","application/json");var i=fetch(r).then((function(e){return delete zr[t],e.ok?e.json():Promise.reject(new Error("Error fetching source "+t))})).catch((function(e){return delete zr[t],Promise.reject(new Error("Error fetching source "+t))}));return zr[t]=i,i}function Vr(e,t){if("string"!=typeof e)return Promise.resolve(e);if(!e.trim().startsWith("{"))return Gr("Style",e=Dr(e,t.accessToken),t);try{var n=JSON.parse(e);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}var qr={};var Hr,Wr=Array(256).join("â");function Yr(e,t){if(t>=.05){for(var n="",r=e.split("\n"),i=Wr.slice(0,Math.round(t/.1)),o=0,a=r.length;o<a;++o)o>0&&(n+="\n"),n+=r[o].split("").join(i);return n}return e}function Xr(){return Hr||(Hr=Ur(1,1).getContext("2d")),Hr}function Kr(e,t){return Xr().measureText(e).width+(e.length-1)*t}var Zr={};function Jr(e,t,n,r){if(-1!==e.indexOf("\n")){for(var i=e.split("\n"),o=[],a=0,s=i.length;a<s;++a)o.push(Jr(i[a],t,n,r));return o.join("\n")}var l=n+","+t+","+e+","+r,c=Zr[l];if(!c){var d=e.split(" ");if(d.length>1){var u=Xr();u.font=t;for(var h=u.measureText("M").width*n,p="",f=[],m=0,g=d.length;m<g;++m){var v=d[m],y=p+(p?" ":"")+v;Kr(y,r)<=h?p=y:(p&&f.push(p),p=v)}p&&f.push(p);for(var b=0,_=f.length;b<_&&_>1;++b){var w=f[b];if(Kr(w,r)<.35*h){var x=b>0?Kr(f[b-1],r):1/0,C=b<_-1?Kr(f[b+1],r):1/0;f.splice(b,1),_-=1,x<C?(f[b-1]+=" "+w,b-=1):f[b]=w+" "+f[b]}}for(var S=0,E=f.length-1;S<E;++S){var k=f[S],T=f[S+1];if(Kr(k,r)>.7*h&&Kr(T,r)<.6*h){var O=k.split(" "),$=O.pop();Kr($,r)<.2*h&&(f[S]=O.join(" "),f[S+1]=$+" "+T),E-=1}}c=f.join("\n")}else c=e;c=Yr(c,r),Zr[l]=c}return c}var Qr,ei=/font-family: ?([^;]*);/,ti=/("|')/g;function ni(e){if(!Qr){Qr={};for(var t=document.styleSheets,n=0,r=t.length;n<r;++n){var i=t[n];try{var o=i.rules||i.cssRules;if(o)for(var a=0,s=o.length;a<s;++a){var l=o[a];if(5==l.type){var c=l.cssText.match(ei);Qr[c[1].replace(ti,"")]=!0}}}catch(e){}}}return e in Qr}var ri={};function ii(e){var t=e.toString();if(t in ri)return ri[t];for(var n=[],r=0,i=e.length;r<i;++r){e[r]=e[r].replace("Arial Unicode MS","Arial");var o=e[r],a=jr(o,1);Object(Xe.q)(a);var s=a.split(" ");n.push([s.slice(3).join(" ").replace(/"/g,""),s[1],s[0]])}for(var l=0,c=n.length;l<c;++l){var d=n[l],u=d[0];if(!ni(u)&&100!==Xe.a.get(d[2]+"\n"+d[1]+" \n"+u)){var h="https://fonts.googleapis.com/css?family="+u.replace(/ /g,"+")+":"+d[1]+d[2];if(!document.querySelector('link[href="'+h+'"]')){var p=document.createElement("link");p.href=h,p.rel="stylesheet",document.head.appendChild(p)}}}return ri[t]=e,e}var oi,ai,si={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},li={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},ci={},di={zoom:0};function ui(e,t,n,r,i,o,a){var s=e.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[s]||(o[s]={});var l,c=o[s];if(!c[n]){var d=(e[t]||ci)[n],u=wr[t+"_"+e.type][n];void 0===d&&(d=u.default);var h=(l=d,Array.isArray(l)&&l.length>0&&"string"==typeof l[0]&&l[0]in lr);if(!h&&mr(d)&&(d=function(e,t){var n=e.stops;if(!n)return function(e,t){var n=["get",e.property];if(void 0===e.default)return"string"===t.type?["string",n]:n;if("enum"===t.type)return["match",n,Object.keys(t.values),n,e.default];var r=["color"===t.type?"to-color":t.type,n,st(e.default)];return"array"===t.type&&r.splice(1,0,t.value,t.length||null),r}(e,t);var r=n&&"object"==qe(n[0][0]),i=r||void 0!==e.property,o=r||!i;return n=n.map((function(e){return!i&&t.tokens&&"string"==typeof e[1]?[e[0],ft(e[1])]:[e[0],st(e[1])]})),r?function(e,t,n){for(var r={},i={},o=[],a=0;a<n.length;a++){var s=n[a],l=s[0].zoom;void 0===r[l]&&(r[l]={zoom:l,type:e.type,property:e.property,default:e.default},i[l]=[],o.push(l)),i[l].push([s[0].value,s[1]])}if("exponential"===pt({},t)){for(var c=[lt(e),["linear"],["zoom"]],d=0,u=o;d<u.length;d+=1){var h=u[d];ht(c,h,dt(r[h],t,i[h]),!1)}return c}for(var p=["step",["zoom"]],f=0,m=o;f<m.length;f+=1){var g=m[f];ht(p,g,dt(r[g],t,i[g]),!0)}return ut(p),p}(e,t,n):o?function(e,t,n,r){void 0===r&&(r=["zoom"]);var i,o=pt(e,t),a=!1;if("interval"===o)i=["step",r],a=!0;else{if("exponential"!==o)throw new Error('Unknown zoom function type "'+o+'"');
839var s=void 0!==e.base?e.base:1;i=[lt(e),1===s?["linear"]:["exponential",s],r]}for(var l=0,c=n;l<c.length;l+=1){var d=c[l];ht(i,d[0],d[1],a)}return ut(i),i}(e,t,n):dt(e,t,n)}(d,u),h=!0),h){var p=function(e,t){var n=function(e,t){if("error"===(e=vr(e,t)).result)return e;var n=e.value.expression,r=gn(n);if(!r&&!function(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}(t))return fr([new mt("","data expressions not supported")]);var i=yn(n,["zoom","pitch","distance-from-center"]);if(!i&&!function(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}(t))return fr([new mt("","zoom expressions not supported")]);var o=function e(t){var n=null;if(t instanceof Vn)n=e(t.result);else if(t instanceof Gn)for(var r=0,i=t.args;r<i.length;r+=1){var o=i[r];if(n=e(o))break}else(t instanceof xn||t instanceof Un)&&t.input instanceof Zt&&"zoom"===t.input.name&&(n=t);return n instanceof mt||t.eachChild((function(t){var r=e(t);r instanceof mt?n=r:!n&&r?n=new mt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new mt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),n}(n);if(!o&&!i)return fr([new mt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof mt)return fr([o]);if(o instanceof Un&&!function(e){return!!e.expression&&e.expression.interpolated}(t))return fr([new mt("",'"interpolate" expressions cannot be used with this property')]);if(!o)return pr(new yr(r?"constant":"source",e.value));var a=o instanceof Un?o.interpolation:void 0;return pr(new br(r?"camera":"composite",e.value,o.labels,a))}(e,t);if("error"===n.result)throw new Error(n.value.map((function(e){return e.key+": "+e.message})).join(", "));return n.value}(d,u);c[n]=p.evaluate.bind(p)}else"color"==u.type&&(d=at.parse(d)),c[n]=function(){return d}}return di.zoom=r,c[n](di,i,a)}function hi(e,t,n,r){return ui(e,"layout","icon-allow-overlap",t,n,r)?ui(e,"layout","icon-ignore-placement",t,n,r)?"none":"obstacle":"declutter"}function pi(e,t,n,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),e in i||(i[e]=function(e,t){if(void 0===t&&(t="fill"),null==e)return{filter:function(){return!0},needGeometry:!1,needFeature:!1};(function e(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var n=0,r=t.slice(1);n<r.length;n+=1){var i=r[n];if(!e(i)&&"boolean"!=typeof i)return!1}return!0;default:return!0}})(e)||(e=Er(e));var n=e,r=!0;try{r=function(e){if(!xr(e))return e;var t=_r(e);return function e(t){var n=!1,r=[];if("case"===t[0]){for(var i=1;i<t.length-1;i+=2)n=n||xr(t[i]),r.push(t[i+1]);r.push(t[t.length-1])}else if("match"===t[0]){n=n||xr(t[1]);for(var o=2;o<t.length-1;o+=2)r.push(t[o+1]);r.push(t[t.length-1])}else if("step"===t[0]){n=n||xr(t[1]);for(var a=1;a<t.length-1;a+=2)r.push(t[a+1])}n&&(t.length=0,t.push.apply(t,["any"].concat(r)));for(var s=1;s<t.length;s++)e(t[s])}(t),function e(t){if(!Array.isArray(t))return t;var n=function(e){if(Cr.has(e[0]))for(var t=1;t<e.length;t++)if(xr(e[t]))return!0;return e}(t);return!0===n?n:n.map((function(t){return e(t)}))}(t)}(n)}catch(e){console.warn("Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n"+JSON.stringify(n,null,2)+"\n ")}var i=wr["filter_"+t],o=vr(r,i),a=null;if("error"===o.result)throw new Error(o.value.map((function(e){return e.key+": "+e.message})).join(", "));a=function(e,t,n){return o.value.evaluate(e,t,{},n)};var s=null,l=null;if(r!==n){var c=vr(n,i);if("error"===c.result)throw new Error(c.value.map((function(e){return e.key+": "+e.message})).join(", "));s=function(e,t,n,r,i){return c.value.evaluate(e,t,{},n,void 0,void 0,r,i)},l=!gn(c.value.expression)}return{filter:a=a,dynamicFilter:s||void 0,needGeometry:function e(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var n=1;n<t.length;n++)if(e(t[n]))return!0;return!1}(r),needFeature:!!l}}(t).filter),di.zoom=r,i[e](di,n)}function fi(e,t){if(e){if(0===e.a||0===t)return;var n=e.a;return t=void 0===t?1:t,0===n?"transparent":"rgba("+Math.round(255*e.r/n)+","+Math.round(255*e.g/n)+","+Math.round(255*e.b/n)+","+n*t+")"}return e}var mi=/\{[^{}}]*\}/g;
839function gi(e,t){return e.replace(mi,(function(e){return t[e.slice(1,-1)]||""}))}function vi(e,t,n,r,i,o,s){if(void 0===r&&(r=Br),void 0===i&&(i=void 0),void 0===o&&(o=void 0),void 0===s&&(s=void 0),"string"==typeof t&&(t=JSON.parse(t)),8!=t.version)throw new Error("glStyle version 8 required.");var l,c;if(o)if("undefined"!=typeof Image){var p=new Image;p.crossOrigin="anonymous",p.onload=function(){l=p,c=[p.width,p.height],e.changed(),p.onload=null},p.src=o}else if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){var f=self;f.postMessage({action:"loadImage",src:o}),f.addEventListener("message",(function(e){"imageLoaded"===e.data.action&&e.data.src===o&&(l=e.data.image,c=[l.width,l.height])}))}for(var m,g=function(e){e=e.slice();for(var t=Object.create(null),n=0;n<e.length;n++)t[e[n].id]=e[n];for(var r=0;r<e.length;r++)"ref"in e[r]&&(e[r]=Ir(e[r],t[e[r].ref]));return e}(t.layers),v={},y=[],b={},_={},w={},x={},C=0,S=g.length;C<S;++C){var E=g[C],k=E.id;if("string"==typeof n&&E.source==n||-1!==n.indexOf(k)){var T=E["source-layer"];if(m){if(E.source!==m)throw new Error('Layer "'+k+'" does not use source "'+m)}else{m=E.source;var O=t.sources[m];if(!O)throw new Error('Source "'+m+'" is not defined');var $=O.type;if("vector"!==$&&"geojson"!==$)throw new Error('Source "'+m+'" is not of type "vector" or "geojson", but "'+$+'"')}var P=v[T];P||(P=[],v[T]=P),P.push({layer:E,index:C}),y.push(k)}}var I=new d.a,L=new a.a,A=[],M=function(t,n){var o=t.getProperties(),p=v[o.layer];if(p){var f=r.indexOf(n);-1==f&&(f=function(e,t){for(var n=0,r=t.length;n<r;++n)if(t[n]<e&&n+1<r){var i=t[n]/t[n+1];return n+Math.log(t[n]/e)/Math.log(i)}return r-1}(n,r));for(var m=si[t.getGeometry().getType()],g={properties:o,type:m},y=e.get("mapbox-featurestate")[t.getId()],C=-1,S=0,E=p.length;S<E;++S){var k=p[S],T=k.layer,O=T.id,$=T.layout||ci,P=T.paint||ci;if(!("none"===$.visibility||"minzoom"in T&&f<T.minzoom||"maxzoom"in T&&f>=T.maxzoom)){var M=T.filter;if(!M||pi(O,M,g,f,x)){T;var j=void 0,R=void 0,D=void 0,F=void 0,N=void 0,B=void 0,U=k.index;if(3==m&&("fill"==T.type||"fill-extrusion"==T.type))if(R=ui(T,"paint",T.type+"-opacity",f,g,w,y),T.type+"-pattern"in P){var z=ui(T,"paint",T.type+"-pattern",f,g,w,y);if(z){var G="string"==typeof z?gi(z,o):z.toString();if(l&&i&&i[G]){++C,(B=A[C])&&B.getFill()&&!B.getStroke()&&!B.getText()||(B=new u.c({fill:new a.a}),A[C]=B),D=B.getFill(),B.setZIndex(U);var V=G+"."+R,q=_[V];if(!q){var H=i[G],W=Ur(H.width,H.height),Y=W.getContext("2d");Y.globalAlpha=R,Y.drawImage(l,H.x,H.y,H.width,H.height,0,0,H.width,H.height),q=Y.createPattern(W,"repeat"),_[V]=q}D.setColor(q)}}}else j=fi(ui(T,"paint",T.type+"-color",f,g,w,y),R),T.type+"-outline-color"in P&&(N=fi(ui(T,"paint",T.type+"-outline-color",f,g,w,y),R)),N||(N=j),(j||N)&&(++C,(!(B=A[C])||j&&!B.getFill()||!j&&B.getFill()||N&&!B.getStroke()||!N&&B.getStroke()||B.getText())&&(B=new u.c({fill:j?new a.a:void 0,stroke:N?new d.a:void 0}),A[C]=B),j&&(D=B.getFill()).setColor(j),N&&((F=B.getStroke()).setColor(N),F.setWidth(.5)),B.setZIndex(U));if(1!=m&&"line"==T.type){j=!("line-pattern"in P)&&"line-color"in P?fi(ui(T,"paint","line-color",f,g,w,y),ui(T,"paint","line-opacity",f,g,w,y)):void 0;var X=ui(T,"paint","line-width",f,g,w,y);j&&X>0&&(++C,(B=A[C])&&B.getStroke()&&!B.getFill()&&!B.getText()||(B=new u.c({stroke:new d.a}),A[C]=B),(F=B.getStroke()).setLineCap(ui(T,"layout","line-cap",f,g,w,y)),F.setLineJoin(ui(T,"layout","line-join",f,g,w,y)),F.setMiterLimit(ui(T,"layout","line-miter-limit",f,g,w,y)),F.setColor(j),F.setWidth(X),F.setLineDash(P["line-dasharray"]?ui(T,"paint","line-dasharray",f,g,w,y).map((function(e){return e*X})):null),B.setZIndex(U))}var K=!1,Z=null,J=0,Q=void 0,ee=void 0,te=void 0;if((1==m||2==m)&&"icon-image"in $){var ne=ui(T,"layout","icon-image",f,g,w,y);if(ne){Q="string"==typeof ne?gi(ne,o):ne.toString();var re=void 0;if(l&&i&&i[Q]){var ie=ui(T,"layout","icon-rotation-alignment",f,g,w,y);if(2==m){var oe=t.getGeometry();if(oe.getFlatMidpoint||oe.getFlatMidpoints){var ae=oe.getExtent();if(Math.sqrt(Math.max(Math.pow((ae[2]-ae[0])/n,2),Math.pow((ae[3]-ae[1])/n,2)))>150){var se="MultiLineString"===oe.getType()?oe.getFlatMidpoints():oe.getFlatMidpoint();if(ai||(oi=[NaN,NaN],ai=new Ye.a("Point",oi,[],{},null)),re=ai,oi[0]=se[0],oi[1]=se[1],"line"===ui(T,"layout","symbol-placement",f,g,w,y)&&"map"===ie)for(var le=oe.getStride(),ce=oe.getFlatCoordinates(),de=0,ue=ce.length-le;de<ue;de+=le){var he=ce[de],pe=ce[de+1],fe=ce[de+le],me=ce[de+le+1],ge=Math.min(he,fe),ve=Math.min(pe,me),ye=Math.max(he,fe),be=Math.max(pe,me);if(se[0]>=ge&&se[0]<=ye&&se[1]>=ve&&se[1]<=be){J=Math.atan2(pe-me,fe-he);break}}}}}if(2!==m||re){var _e=ui(T,"layout","icon-size",f,g,w,y),we=void 0!==P["icon-color"]?ui(T,"paint","icon-color",f,g,w,y):null;if(!we||0!==we.a){var xe=Q+"."+_e;if(null!==we&&(xe+="."+we),!(ee=b[xe])){var Ce=i[Q],Se=hi(T,f,g,w);
839ee=new We.a({color:we?[255*we.r,255*we.g,255*we.b,we.a]:void 0,img:l,imgSize:c,size:[Ce.width,Ce.height],offset:[Ce.x,Ce.y],rotateWithView:"map"===ie,scale:_e/Ce.pixelRatio,displacement:"icon-offset"in $?ui(T,"layout","icon-offset",f,g,w,y).map((function(e){return-e*Ce.pixelRatio})):void 0,declutterMode:Se}),b[xe]=ee}}ee&&(++C,(B=A[C])&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new u.c,A[C]=B),B.setGeometry(re),ee.setRotation(J+Nr(ui(T,"layout","icon-rotate",f,g,w,y))),ee.setOpacity(ui(T,"paint","icon-opacity",f,g,w,y)),ee.setAnchor(li[ui(T,"layout","icon-anchor",f,g,w,y)]),B.setImage(ee),Z=B.getText(),B.setText(void 0),B.setZIndex(U),K=!0,te=!1)}else te=!0}}}if(1==m&&"circle"===T.type){++C,(B=A[C])&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new u.c,A[C]=B);var Ee="circle-radius"in P?ui(T,"paint","circle-radius",f,g,w,y):5,ke=fi(ui(T,"paint","circle-stroke-color",f,g,w,y),ui(T,"paint","circle-stroke-opacity",f,g,w,y)),Te=fi(ui(T,"paint","circle-color",f,g,w,y),ui(T,"paint","circle-opacity",f,g,w,y)),Oe=ui(T,"paint","circle-stroke-width",f,g,w,y),$e=Ee+"."+ke+"."+Te+"."+Oe;(ee=b[$e])||(ee=new He.a({radius:Ee,stroke:ke&&Oe>0?new d.a({width:Oe,color:ke}):void 0,fill:Te?new a.a({color:Te}):void 0,declutterMode:"none"}),b[$e]=ee),B.setImage(ee),Z=B.getText(),B.setText(void 0),B.setGeometry(void 0),B.setZIndex(U),K=!0}var Pe=void 0,Ie=void 0,Le=void 0,Ae=void 0,Me=void 0,je=void 0;if("text-field"in $){Ae=Math.round(ui(T,"layout","text-size",f,g,w,y));var Re=ui(T,"layout","text-font",f,g,w,y);Le=ui(T,"layout","text-line-height",f,g,w,y),(Ie=jr(s?s(Re):Re,Ae,Le)).includes("sans-serif")||(Ie+=",sans-serif"),Me=ui(T,"layout","text-letter-spacing",f,g,w,y),je=ui(T,"layout","text-max-width",f,g,w,y);var De=ui(T,"layout","text-field",f,g,w,y);Pe="object"==qe(De)&&De.sections?1===De.sections.length?De.toString():De.sections.reduce((function(e,t,n){var r=t.fontStack?t.fontStack.split(","):Re,i=jr(s?s(r):r,Ae*(t.scale||1),Le),o=t.text;if("\n"===o)return e.push("\n",""),e;if(2!=m){for(var a=0,l=(o=Jr(o,i,je,Me).split("\n")).length;a<l;++a)a>0&&e.push("\n",""),e.push(o[a],i);return e}e.push(Yr(o,Me),i)}),[]):gi(De,o).trim(),R=ui(T,"paint","text-opacity",f,g,w,y)}if(Pe&&R&&!te){K||(++C,(B=A[C])&&B.getText()&&!B.getFill()&&!B.getStroke()||(B=new u.c,A[C]=B),B.setImage(void 0),B.setGeometry(void 0)),B.getText()||B.setText(Z||new h.a({padding:[2,2,2,2]})),Z=B.getText();var Fe=$["text-transform"];"uppercase"==Fe?Pe=Array.isArray(Pe)?Pe.map((function(e,t){return t%2?e:e.toUpperCase()})):Pe.toUpperCase():"lowercase"==Fe&&(Pe=Array.isArray(Pe)?Pe.map((function(e,t){return t%2?e:e.toLowerCase()})):Pe.toLowerCase());var Ne=Array.isArray(Pe)?Pe:2==m?Yr(Pe,Me):Jr(Pe,Ie,je,Me);Z.setText(Ne),Z.setFont(Ie),Z.setRotation(Nr(ui(T,"layout","text-rotate",f,g,w,y)));var Be=ui(T,"layout","text-anchor",f,g,w,y),Ue=K||1==m?"point":ui(T,"layout","symbol-placement",f,g,w,y);Z.setPlacement(Ue),Z.setOverflow("point"===Ue);var ze=ui(T,"paint","text-halo-width",f,g,w,y),Ge=ui(T,"layout","text-offset",f,g,w,y),Ve=ui(T,"paint","text-translate",f,g,w,y),Xe=0,Ke=0;if("point"==Ue){var Ze="center";-1!==Be.indexOf("left")?(Ze="left",Ke=ze):-1!==Be.indexOf("right")&&(Ze="right",Ke=-ze),Z.setTextAlign(Ze);var Je=ui(T,"layout","text-rotation-alignment",f,g,w,y);Z.setRotateWithView("map"==Je)}else Z.setMaxAngle(Nr(ui(T,"layout","text-max-angle",f,g,w,y))*Pe.length/Ne.length),Z.setTextAlign(),Z.setRotateWithView(!1);var Qe="middle";0==Be.indexOf("bottom")?(Qe="bottom",Xe=-ze-.5*(Le-1)*Ae):0==Be.indexOf("top")&&(Qe="top",Xe=ze+.5*(Le-1)*Ae),Z.setTextBaseline(Qe),Z.setOffsetX(Ge[0]*Ae+Ke+Ve[0]),Z.setOffsetY(Ge[1]*Ae+Xe+Ve[1]),L.setColor(fi(ui(T,"paint","text-color",f,g,w,y),R)),Z.setFill(L);var et=fi(ui(T,"paint","text-halo-color",f,g,w,y),R);if(et){I.setColor(et),ze*=2;var tt=.5*Ae;I.setWidth(ze<=tt?ze:tt),Z.setStroke(I)}else Z.setStroke(void 0);var nt=ui(T,"layout","text-padding",f,g,w,y),rt=Z.getPadding();nt!==rt[0]&&(rt[0]=nt,rt[1]=nt,rt[2]=nt,rt[3]=nt),B.setZIndex(U)}}}}return C>-1?(A.length=C+1,A):void 0}};return e.setStyle(M),e.set("mapbox-source",m),e.set("mapbox-layers",y),e.set("mapbox-featurestate",{}),M}function yi(e,t,n,r,i){var o,a,s;return void 0===n&&(n=""),void 0===r&&(r={}),void 0===i&&(i=void 0),"string"==typeof r?(o=r,s={}):(o=r.styleUrl,s=r),i||(i=s.resolutions),o||"string"!=typeof t||t.trim().startsWith("{")||(o=t),o&&(o=o.startsWith("data:")?location.href:Dr(o,s.accessToken),s=function(e,t){return t.accessToken||(t=Object.assign({}
839,t),new URL(e).searchParams.forEach((function(e,n){t.accessToken=e,t.accessTokenParam=n}))),t}(o,s)),new Promise((function(r,l){Vr(t,s).then((function(t){if(8!=t.version)return l(new Error("glStyle version 8 required."));if(!(e instanceof p.a||e instanceof Ge))return l(new Error("Can only apply to VectorLayer or VectorTileLayer"));var c,d,u,h=e instanceof Ge?"vector":"geojson";if(n?a=Array.isArray(n)?t.layers.find((function(e){return e.id===n[0]})).source:n:(a=Object.keys(t.sources).find((function(e){return t.sources[e].type===h})),n=a),!a)return l(new Error("No "+h+" source found in the glStyle."));function f(){if(e instanceof Ge)return function(e,t,n){return new Promise((function(r,i){(function(e,t,n){void 0===n&&(n={});var r=[t,JSON.stringify(e)].toString(),i=qr[r];if(!i||n.transformRequest){var o=e.url;if(o&&!e.tiles){var a=Fr(o,n.accessToken,n.accessTokenParam||"access_token",t||location.href);i=o.startsWith("mapbox://")?Promise.resolve(Object.assign({},e,{url:void 0,tiles:a})):Gr("Source",a,n).then((function(e){for(var t=0,r=e.tiles.length;t<r;++t){var i=e.tiles[t];if(n.transformRequest){var o=n.transformRequest(a,"Source");o&&(a=o.url)}var s=Fr(i,n.accessToken,n.accessTokenParam||"access_token",a);if(n.transformRequest){var l=n.transformRequest(s,"Tiles");l instanceof Request&&(s=decodeURI(l.url))}e.tiles[t]=s}return Promise.resolve(e)}))}else e=Object.assign({},e,{tiles:e.tiles.map((function(e){return Fr(e,n.accessToken,n.accessTokenParam||"access_token",t||location.href)}))}),i=Promise.resolve(Object.assign({},e));qr[r]=i}return i})(e,t,n).then((function(e){var t=new Je.a({tileJSON:e}),n=t.getTileJSON(),i=t.getTileGrid(),o=function(e){var t=e.bounds;if(t){var n=Object(b.fromLonLat)([t[0],t[1]]),r=Object(b.fromLonLat)([t[2],t[3]]);return[n[0],n[1],r[0],r[1]]}}(n),a=n.minzoom||0,s=n.maxzoom||22,l={attributions:t.getAttributions(),format:new $e.a,tileGrid:new Ze.a({origin:i.getOrigin(0),extent:o||i.getExtent(),minZoom:a,resolutions:Br.slice(0,s+1),tileSize:512})};Array.isArray(n.tiles)?l.urls=n.tiles:l.url=n.tiles,e.olSourceOptions&&Object.assign(l,e.olSourceOptions),r(new Ve.a(l))})).catch(i)}))}(t.sources[a],o,s).then((function(t){var n=e.getSource();if(n?t!==n&&(n.setTileUrlFunction(t.getTileUrlFunction()),n.format_||(n.format_=t.format_),n.getAttributions()||n.setAttributions(t.getAttributions()),n.getTileLoadFunction()===Ve.b&&n.setTileLoadFunction(t.getTileLoadFunction()),Object(b.equivalent)(n.getProjection(),t.getProjection())&&(n.tileGrid=t.getTileGrid())):e.setSource(t),!isFinite(e.getMaxResolution())&&!isFinite(e.getMinZoom())){var r=e.getSource().getTileGrid();e.setMaxResolution(r.getResolution(r.getMinZoom()))}}));var n=t.sources[a],r=e.getSource();r&&r.get("mapbox-source")===n||(r=xi(n,o,s));var i=e.getSource();return i?r!==i&&(i.getAttributions()||i.setAttributions(r.getAttributions()),i.format_||(i.format_=r.getFormat()),i.url_=r.getUrl()):e.setSource(r),Promise.resolve()}function m(){u||t.sprite&&!c?u?(e.setStyle(u),f().then(r).catch(l)):l(new Error("Something went wrong trying to apply style.")):(u=vi(e,t,n,i,c,d,ii),e.getStyle()?f().then(r).catch(l):l(new Error("Nothing to show for source ["+a+"]")))}if(t.sprite){var g=new URL(function(e,t,n){var r=Rr(e);if(!r)return decodeURI(new URL(e,n).href);if(0!==r.indexOf("sprites/"))throw new Error("unexpected sprites url: "+e);return"https://api.mapbox.com/styles/v1/"+r.slice("sprites/".length)+"/sprite?access_token="+t}(t.sprite,s.accessToken,o||location.href)),v=.5==(window.devicePixelRatio>=1.5?.5:1)?"@2x":"",y=g.origin+g.pathname+v+".json"+g.search;new Promise((function(e,t){Gr("Sprite",y,s).then(e).catch((function(n){Gr("Sprite",y=g.origin+g.pathname+".json"+g.search,s).then(e).catch(t)}))})).then((function(e){if(void 0===e&&l(new Error("No sprites found.")),c=e,d=g.origin+g.pathname+v+".png"+g.search,s.transformRequest){var t=s.transformRequest(d,"SpriteImage");t instanceof Request&&(d=encodeURI(t.url))}m()})).catch((function(e){l(new Error("Sprites cannot be loaded: "+y+": "+e.message))}))}else m()})).catch(l)}))}var bi={};function _i(e,t){t.layers.some((function(t){if("background"===t.type)return function(e,t){var n={id:t.id,type:t.type},r={};function i(i){var o=t.layout||{},a=t.paint||{};n.paint=a;var s,l,c="function"==typeof e.getSource?e.getSource().getTileGrid().getZForResolution(i):e.getView().getZoom(),d="function"==typeof e.getTargetElement?e.getTargetElement():void 0;if(void 0!==a["background-color"]&&(s=ui(n,"paint","background-color",c,bi,r),d&&(d.style.background=at.parse(s).toString())),void 0!==a["background-opacity"]&&(l=ui(n,"paint","background-opacity",c,bi,r),d&&(d.style.opacity=l)),"none"!=o.visibility)return fi(s,l);d&&(d.style.backgroundColor="",d.style.opacity="")}if("function"==typeof e.getTargetElement)e.getTargetElement()&&i(),e.on(["change:resolution","change:target"],i);
839else{if("function"!=typeof e.setBackground)throw new Error("Unable to apply background.");e.setBackground(i)}}(e,t),!0}))}var wi=new Ke.a;function xi(e,t,n){var r=e.data,i={};if("string"==typeof r){var o=Fr(r,n.accessToken,n.accessTokenParam||"access_token",t||location.href);if(n.transformRequest){var a=n.transformRequest(o,"GeoJSON");a instanceof Request&&(o=encodeURI(a.url))}i.url=o}else i.features=wi.readFeatures(r,{featureProjection:Object(b.getUserProjection)()||"EPSG:3857"});var s=new f.a(Object.assign({attributions:e.attribution,format:wi},i));return s.set("mapbox-source",e),s}var Ci,Si,Ei,ki,Ti=(ki=function(e,t){return(ki=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ki(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Oi=function(e){function t(t){var n=e.call(this,Oe.a.ERROR)||this;return n.error=t,n}return Ti(t,e),t}(Te.a),$i=function(e){function t(t){var n=this,r=!("declutter"in t)||t.declutter,i=new Ve.a({state:"loading",format:new $e.a});n=e.call(this,{source:i,background:t.background,declutter:r,className:t.className,opacity:t.opacity,visible:t.visible,zIndex:t.zIndex,minResolution:t.minResolution,maxResolution:t.maxResolution,minZoom:t.minZoom,maxZoom:t.maxZoom,renderOrder:t.renderOrder,renderBuffer:t.renderBuffer,renderMode:t.renderMode,map:t.map,updateWhileAnimating:t.updateWhileAnimating,updateWhileInteracting:t.updateWhileInteracting,preload:t.preload,useInterimTilesOnError:t.useInterimTilesOnError,properties:t.properties})||this,t.accessToken&&(n.accessToken=t.accessToken);var o=t.styleUrl;return yi(n,o,t.layers||t.source,{accessToken:n.accessToken}).then((function(){i.setState("ready")})).catch((function(e){n.dispatchEvent(new Oi(e)),n.getSource().setState("error")})),void 0===n.getBackground()&&function(e,t,n){void 0===n&&(n={}),"object"==qe(t)?(_i(e,t),Promise.resolve()):Vr(t,n).then((function(t){_i(e,t)}))}(n,t.styleUrl,{accessToken:n.accessToken}),n}return Ti(t,e),t}(Ge),Pi=n(206),Ii=n(203),Li=n(167),Ai=n(21),Mi=n(159),ji=n.n(Mi),Ri=(Ei=function(e,t){return(Ei=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ei(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Di=function(e){function t(t){var n=e.call(this,t)||this;return n.vectorRenderer_=new Ii.a(t),n.layerImageRatio_=t.getImageRatio(),n.coordinateToVectorPixelTransform_=Object(x.c)(),n.renderedPixelToCoordinateTransform_=null,n}return Ri(t,e),t.prototype.disposeInternal=function(){this.vectorRenderer_.dispose(),e.prototype.disposeInternal.call(this)},t.prototype.getFeatures=function(e){if(!this.vectorRenderer_)return new Promise((function(e){return e([])}));var t=Object(x.a)(this.coordinateToVectorPixelTransform_,Object(x.a)(this.renderedPixelToCoordinateTransform_,e.slice()));return this.vectorRenderer_.getFeatures(t)},t.prototype.handleFontsChanged=function(){this.vectorRenderer_.handleFontsChanged()},t.prototype.prepareFrame=function(e){var t=e.pixelRatio,n=e.viewState,r=n.resolution,i=e.viewHints,o=this.vectorRenderer_,a=e.extent;1!==this.layerImageRatio_&&(a=a.slice(0),Object(m.scaleFromCenter)(a,this.layerImageRatio_));var s=Object(m.getWidth)(a)/r,l=Object(m.getHeight)(a)/r;if(!i[A.a.ANIMATING]&&!i[A.a.INTERACTING]&&!Object(m.isEmpty)(a)){o.useContainer(null,null);var c=o.context,d=e.layerStatesArray[e.layerIndex];c.globalAlpha=d.opacity;var u=Object(g.a)({},d,{opacity:1}),h=Object(g.a)({},e,{declutterTree:new ji.a(9),extent:a,size:[s,l],viewState:Object(g.a)({},e.viewState,{rotation:0}),layerStatesArray:[u],layerIndex:0}),p=!0,f=new Li.a(a,r,t,c.canvas,(function(e){o.prepareFrame(h)&&o.replayGroupChanged&&(o.clipping=!1,o.renderFrame(h,null)&&(o.renderDeclutter(h),p=!1),e())}));f.addEventListener(Oe.a.CHANGE,function(){if(f.getState()===Ai.a.LOADED){this.image_=p?null:f;var e=f.getResolution(),r=f.getPixelRatio(),i=e*t/r;this.renderedResolution=i,this.coordinateToVectorPixelTransform_=Object(x.b)(this.coordinateToVectorPixelTransform_,s/2,l/2,1/i,-1/i,0,-n.center[0],-n.center[1])}}.bind(this)),f.load()}return this.image_&&(this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice()),!!this.image_},t.prototype.preRender=function(){},t.prototype.postRender=function(){},t.prototype.renderDeclutter=function(){},t.prototype.forEachFeatureAtCoordinate=function(t,n,r,i,o){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(t,n,r,i,o):e.prototype.forEachFeatureAtCoordinate.call(this,t,n,r,i,o)},t}
839(Pi.a),Fi=(Si=function(e,t){return(Si=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Si(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ni=function(e){function t(t){var n=this,r=t||{},i=Object(g.a)({},r);return delete i.imageRatio,(n=e.call(this,i)||this).imageRatio_=void 0!==r.imageRatio?r.imageRatio:1,n}return Fi(t,e),t.prototype.getImageRatio=function(){return this.imageRatio_},t.prototype.createRenderer=function(){return new Di(this)},t}(I.a),Bi=function(){function e(e,t){this.name=e,this.data=t,this.texture_=null}return e.prototype.getTexture=function(e){if(!this.texture_){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this.data.length/4,1,0,e.RGBA,e.UNSIGNED_BYTE,this.data),this.texture_=t}return this.texture_},e}(),Ui=n(164),zi=n(110),Gi=n(212),Vi=n(92),qi=n(124),Hi=n(162),Wi=(Ci=function(e,t){return(Ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ci(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function Yi(e,t,n){var r=n?e.LINEAR:e.NEAREST;e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,r)}function Xi(e,t,n,r,i,o){var a,s,l=e.getGL();n instanceof Float32Array?(a=l.FLOAT,e.getExtension("OES_texture_float"),s=null!==e.getExtension("OES_texture_float_linear")):(a=l.UNSIGNED_BYTE,s=!0),Yi(l,t,o&&s);var c,d=n.byteLength/r[1],u=1;switch(d%8==0?u=8:d%4==0?u=4:d%2==0&&(u=2),i){case 1:c=l.LUMINANCE;break;case 2:c=l.LUMINANCE_ALPHA;break;case 3:c=l.RGB;break;case 4:c=l.RGBA;break;default:throw new Error("Unsupported number of bands: ".concat(i))}var h=l.getParameter(l.UNPACK_ALIGNMENT);l.pixelStorei(l.UNPACK_ALIGNMENT,u),l.texImage2D(l.TEXTURE_2D,0,c,r[0],r[1],0,c,a,n),l.pixelStorei(l.UNPACK_ALIGNMENT,h)}var Ki,Zi=null,Ji=function(e){function t(t){var n=e.call(this)||this;n.tile,n.textures=[],n.handleTileChange_=n.handleTileChange_.bind(n),n.renderSize_=Object(Re.d)(t.grid.getTileSize(t.tile.tileCoord[0])),n.gutter_=t.gutter||0,n.bandCount=NaN,n.helper_=t.helper;var r=new F(34962,35044);return r.fromArray([0,1,1,1,1,0,0,0]),n.helper_.flushBufferData(r),n.coords=r,n.setTile(t.tile),n}return Wi(t,e),t.prototype.setTile=function(e){if(e!==this.tile)if(this.tile&&this.tile.removeEventListener(Oe.a.CHANGE,this.handleTileChange_),this.tile=e,this.textures.length=0,this.loaded=e.getState()===Ae.a.LOADED,this.loaded)this.uploadTile_();else{if(e instanceof qi.a){var t=e.getImage();t instanceof Image&&!t.crossOrigin&&(t.crossOrigin="anonymous")}e.addEventListener(Oe.a.CHANGE,this.handleTileChange_)}},t.prototype.uploadTile_=function(){var e=this.helper_,t=e.getGL(),n=this.tile;if(n instanceof qi.a||n instanceof Hi.a){var r=t.createTexture();return this.textures.push(r),this.bandCount=4,void function(e,t,n,r){Yi(e,t,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n)}(t,r,n.getImage(),n.interpolate)}var i=n.getSize(),o=[i[0]+2*this.gutter_,i[1]+2*this.gutter_],a=n.getData(),s=a instanceof Float32Array,l=o[0]*o[1],c=s?Float32Array:Uint8Array,d=c.BYTES_PER_ELEMENT,u=a.byteLength/o[1];this.bandCount=Math.floor(u/d/o[0]);var h=Math.ceil(this.bandCount/4);if(1===h)return r=t.createTexture(),this.textures.push(r),void Xi(e,r,a,o,this.bandCount,n.interpolate);for(var p=new Array(h),f=0;f<h;++f){r=t.createTexture(),this.textures.push(r);var m=f<h-1?4:this.bandCount%4;p[f]=new c(l*m)}for(var g=0,v=0,y=o[0]*this.bandCount,b=0;b<o[1];++b){for(var _=0;_<y;++_){var w=a[v+_],x=Math.floor(g/this.bandCount),C=_%this.bandCount;(S=p[f=Math.floor(C/4)])[x*(m=S.length/l)+C%4]=w,++g}v+=u/d}for(f=0;f<h;++f){var S;Xi(e,r=this.textures[f],S=p[f],o,m=S.length/l,n.interpolate)}},t.prototype.handleTileChange_=function(){this.tile.getState()===Ae.a.LOADED&&(this.loaded=!0,this.uploadTile_(),this.dispatchEvent(Oe.a.CHANGE))},t.prototype.disposeInternal=function(){var e=this.helper_.getGL();this.helper_.deleteBuffer(this.coords);for(var t=0;t<this.textures.length;++t)e.deleteTexture(this.textures[t]);this.tile.removeEventListener(Oe.a.CHANGE,this.handleTileChange_)},t.prototype.getPixelData=function(e,t){if(!this.loaded)return null;var n,r=this.renderSize_[0],i=this.renderSize_[1],o=this.gutter_;if(this.tile instanceof Gi.a){var a=this.tile.getSize(),s=a[0],l=a[1],c=s+2*o,d=l+2*o,u=o+Math.floor(s*(e/r)),h=o+Math.floor(l*(t/i)),p=this.tile.getData();if(p instanceof DataView){var f=p.byteLength/(c*d),m=f*(h*c+u),g=p.buffer.slice(m,m+f);return new DataView(g)}var v=this.bandCount*(h*c+u);return p.slice(v,v+this.bandCount)}Zi||((n=document.createElement("canvas")).width=1,n.height=1,Zi=n.getContext("2d")),Zi.clearRect(0,0,1,1);var y,b=this.tile.getImage(),_=b.width-2*o,w=b.height-2*o,x=o+Math.floor(_*(e/r)),C=o+Math.floor(w*(t/i));try{Zi.drawImage(b,x,C,1,1,0,0,1,1),y=Zi.getImageData(0,0,1,1).data}catch(e){return Zi=null,null}return y},t}
839(Vi.a),Qi=n(43),eo=(Ki=function(e,t){return(Ki=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ki(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),to="u_tileTextures",no="u_tileTransform",ro="u_transitionAlpha",io="u_depth",oo="u_texturePixelWidth",ao="u_texturePixelHeight",so="u_textureResolution",lo="u_textureOriginX",co="u_textureOriginY",uo="u_renderExtent",ho="u_resolution",po="a_textureCoord",fo=[{name:po,size:2,type:K.FLOAT}],mo={};function go(e){return 2*(1-1/(e+1))-1}function vo(e,t,n){n in e||(e[n]=[]),e[n].push(t)}function yo(e,t){var n=e.layerStatesArray[e.layerIndex];n.extent&&(t=Object(m.getIntersection)(t,Object(b.fromUserExtent)(n.extent,e.viewState.projection)));var r=n.layer.getRenderSource();if(!r.getWrapX()){var i=r.getTileGridForProjection(e.viewState.projection).getExtent();i&&(t=Object(m.getIntersection)(t,i))}return t}function bo(e,t){return"".concat(e.getKey(),",").concat(Object(Qi.d)(t))}var _o=function(e){function t(t,n){var r=e.call(this,t,{uniforms:n.uniforms})||this;r.renderComplete=!1,r.tileTransform_=Object(x.c)(),r.tempMat4_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],r.tempTileRange_=new zi.b(0,0,0,0),r.tempTileCoord_=Object(Qi.a)(0,0,0),r.tempSize_=[0,0],r.program_,r.vertexShader_=n.vertexShader,r.fragmentShader_=n.fragmentShader,r.indices_=new F(34963,35044),r.indices_.fromArray([0,1,3,1,2,3]);var i=void 0!==n.cacheSize?n.cacheSize:512;return r.tileTextureCache_=new Ui.a(i),r.paletteTextures_=n.paletteTextures||[],r.frameState_=null,r}return eo(t,e),t.prototype.reset=function(t){e.prototype.reset.call(this,{uniforms:t.uniforms}),this.vertexShader_=t.vertexShader,this.fragmentShader_=t.fragmentShader,this.paletteTextures_=t.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))},t.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)},t.prototype.isDrawableTile_=function(e){var t=this.getLayer(),n=e.getState(),r=t.getUseInterimTilesOnError();return n==Ae.a.LOADED||n==Ae.a.EMPTY||n==Ae.a.ERROR&&!r},t.prototype.prepareFrameInternal=function(e){var t=this.getLayer().getRenderSource();return!!t&&!Object(m.isEmpty)(yo(e,e.extent))&&"ready"===t.getState()},t.prototype.enqueueTiles=function(e,t,n,r){var i=e.viewState,o=this.getLayer(),a=o.getRenderSource(),s=a.getTileGridForProjection(i.projection),l=a.getGutterForProjection(i.projection),c=Object(q.c)(a);c in e.wantedTiles||(e.wantedTiles[c]={});for(var d=e.wantedTiles[c],u=this.tileTextureCache_,h=Math.max(n-o.getPreload(),s.getMinZoom(),o.getMinZoom()),p=n;p>=h;--p)for(var f=s.getTileRangeForExtentAndZ(t,p,this.tempTileRange_),m=s.getResolution(p),g=f.minX;g<=f.maxX;++g)for(var v=f.minY;v<=f.maxY;++v){var y=Object(Qi.a)(p,g,v,this.tempTileCoord_),b=bo(a,y),_=void 0,w=void 0;if(u.containsKey(b)&&(w=(_=u.get(b)).tile),!_||_.tile.key!==a.getKey())if(w=a.getTile(p,g,v,e.pixelRatio,i.projection),_)if(this.isDrawableTile_(w))_.setTile(w);else{var x=w.getInterimTile();_.setTile(x)}else _=new Ji({tile:w,grid:s,helper:this.helper,gutter:l}),u.set(b,_);vo(r,_,p);var C=w.getKey();d[C]=!0,w.getState()===Ae.a.IDLE&&(e.tileQueue.isKeyQueued(C)||e.tileQueue.enqueue([w,c,s.getTileCoordCenter(y),m]))}},t.prototype.renderFrame=function(e){this.frameState_=e,this.renderComplete=!0;var t=this.helper.getGL();this.preRender(t,e);var n=e.viewState,r=this.getLayer().getRenderSource(),i=r.getTileGridForProjection(n.projection),o=r.getGutterForProjection(n.projection),a=yo(e,e.extent),s=i.getZForResolution(n.resolution,r.zDirection),l={};if(e.nextExtent){var c=i.getZForResolution(n.nextResolution,r.zDirection),d=yo(e,e.nextExtent);this.enqueueTiles(e,d,c,l)}this.enqueueTiles(e,a,s,l);for(var u={},h=Object(q.c)(this),p=e.time,f=!1,g=l[s],v=0,y=g.length;v<y;++v){var b=(B=(ne=g[v]).tile).tileCoord;if(ne.loaded){if(1===(U=B.getAlpha(h,p))){B.endTransition(h);continue}f=!0,u[z=Object(Qi.d)(b)]=U}if(this.renderComplete=!1,!this.findAltTiles_(i,b,s+1,l))for(var _=i.getMinZoom(),w=s-1;w>=_&&!this.findAltTiles_(i,b,w,l);--w);}this.helper.useProgram(this.program_),this.helper.prepareDraw(e,!f);for(var C=Object.keys(l).map(Number).sort(ue.i),S=n.center[0],E=n.center[1],k=0,T=C.length;k<T;++k){var O=C[k],$=i.getResolution(O),P=Object(Re.d)(i.getTileSize(O),this.tempSize_),I=i.getOrigin(O),L=P[0]+2*o,A=P[1]+2*o,M=L/A,j=(S-I[0])/(P[0]*$),R=(I[1]-E)/(P[1]*$),D=n.resolution/$,F=go(O),N=l[O];for(v=0,y=N.length;v<y;++v)if((ne=N[v]).loaded){b=(B=ne.tile).tileCoord;var B,U,z=Object(Qi.d)(b),G=b[1],V=b[2];Object(x.g)(this.tileTransform_),Object(x.i)(this.tileTransform_,2/(e.size[0]*D/L),-2/(e.size[1]*D/L)),Object(x.h)(this.tileTransform_,n.rotation),Object(x.i)(this.tileTransform_,1,1/M),Object(x.l)(this.tileTransform_,(P[0]*(G-j)-o)/L,(P[1]*(V-R)-o)/A),this.helper.setUniformMatrixValue(no,W(this.tempMat4_,this.tileTransform_)),this.helper.bindBuffer(ne.coords),this.helper.bindBuffer(this.indices_),this.helper.enableAttributes(fo);for(var H=0;H<ne.textures.length;){var Y="TEXTURE"+H,X="".concat(to,"[").concat(H,"]");t.activeTexture(t[Y]),t.bindTexture(t.TEXTURE_2D,ne.textures[H]),t.uniform1i(this.helper.getUniformLocation(X),H),++H}for(var K=0;K<this.paletteTextures_.length;++K){var Z=this.paletteTextures_[K];t.activeTexture(t["TEXTURE"+H]);var J=Z.getTexture(t);t.bindTexture(t.TEXTURE_2D,J),t.uniform1i(this.helper.getUniformLocation(Z.name),H),++H}(U=z in u?u[z]:1)<1&&(e.animate=!0),this.helper.setUniformFloatValue(ro,U),this.helper.setUniformFloatValue(io,F),this.helper.setUniformFloatValue(oo,L),this.helper.setUniformFloatValue(ao,A),this.helper.setUniformFloatValue(so,$),this.helper.setUniformFloatValue(lo,I[0]+G*P[0]*$-o*$),this.helper.setUniformFloatValue(co,I[1]-V*P[1]*$+o*$);var Q=a;o>0&&(Q=i.getTileCoordExtent(b),Object(m.getIntersection)(Q,a,Q)),this.helper.setUniformFloatVec4(uo,Q),this.helper.setUniformFloatValue(ho,n.resolution),this.helper.setUniformFloatValue("u_zoom",n.zoom),this.helper.drawElements(0,this.indices_.getSize())}}this.helper.finalizeDraw(e,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);for(var ee=this.helper.getCanvas(),te=this.tileTextureCache_;te.canExpireCache();){var ne;(ne=te.pop()).dispose()}return e.postRenderFunctions.push((function(e,t){r.expireCache(t.viewState.projection,mo)})),this.postRender(t,e),ee},t.prototype.getData=function(e){if(!this.helper.getGL())return null;var t=this.frameState_;if(!t)return null;var n=this.getLayer(),r=Object(x.a)(t.pixelToCoordinateTransform,e.slice()),i=t.viewState,o=n.getExtent();if(o&&!Object(m.containsCoordinate)(Object(b.fromUserExtent)(o,i.projection),r))return null;var a,s,l,c=n.getSources(Object(m.boundingExtent)([r]),i.resolution);for(a=c.length-1;a>=0;--a)if("ready"===(s=c[a]).getState()){if(l=s.getTileGridForProjection(i.projection),s.getWrapX())break;var d=l.getExtent();if(!d||Object(m.containsCoordinate)(d,r))break}if(a<0)return null;for(var u=this.tileTextureCache_,h=l.getZForResolution(i.resolution);h>
839=l.getMinZoom();--h){var p=l.getTileCoordForCoordAndZ(r,h),f=bo(s,p);if(u.containsKey(f)){var g=u.get(f);if(g.loaded){var v=l.getOrigin(h),y=Object(Re.d)(l.getTileSize(h)),_=l.getResolution(h),w=(r[0]-v[0])/_-p[1]*y[0],C=(v[1]-r[1])/_-p[2]*y[1];return g.getPixelData(w,C)}}}return null},t.prototype.findAltTiles_=function(e,t,n,r){var i=e.getTileRangeForTileCoordAndZ(t,n,this.tempTileRange_);if(!i)return!1;for(var o=!0,a=this.tileTextureCache_,s=this.getLayer().getRenderSource(),l=i.minX;l<=i.maxX;++l)for(var c=i.minY;c<=i.maxY;++c){var d=bo(s,[n,l,c]),u=!1;if(a.containsKey(d)){var h=a.get(d);h.loaded&&(vo(r,h,n),u=!0)}u||(o=!1)}return o},t.prototype.removeHelper=function(){if(this.helper){var t=this.tileTextureCache_;t.forEach((function(e){return e.dispose()})),t.clear()}e.prototype.removeHelper.call(this)},t.prototype.disposeInternal=function(){var t=this.helper;t&&(t.getGL().deleteProgram(this.program_),delete this.program_,t.deleteBuffer(this.indices_)),e.prototype.disposeInternal.call(this),delete this.indices_,delete this.tileTextureCache_,delete this.frameState_},t}(de),wo=n(78),xo={};function Co(e){if("number"==typeof e)return 1;if("boolean"==typeof e)return 8;if("string"==typeof e)return Object(wo.d)(e)?6:2;if(!Array.isArray(e))throw new Error("Unhandled value type: ".concat(JSON.stringify(e)));var t=e;if(t.every((function(e){return"number"==typeof e})))return 3===t.length||4===t.length?20:16;if("string"!=typeof t[0])throw new Error("Expected an expression operator but received: ".concat(JSON.stringify(t)));var n=xo[t[0]];if(void 0===n)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(t)));return n.getReturnType(t.slice(1))}function So(e){var t=e.toString();return-1===t.indexOf(".")?t+".0":t}function Eo(e){if(e.length<2||e.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return"vec".concat(e.length,"(").concat(e.map(So).join(", "),")")}function ko(e,t){return void 0===e.stringLiteralsMap[t]&&(e.stringLiteralsMap[t]=Object.keys(e.stringLiteralsMap).length),e.stringLiteralsMap[t]}function To(e,t,n){if(Array.isArray(t)&&"string"==typeof t[0]){var r=xo[t[0]];if(void 0===r)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(t)));return r.toGlsl(e,t.slice(1),n)}var i,o,a=Co(t);if((1&a)>0)return So(t);if((8&a)>0)return t.toString();if((2&a)>0&&(void 0===n||2==n))return function(e,t){return So(ko(e,t))}(e,t.toString());if((4&a)>0&&(void 0===n||4==n))return i=t,(o=Object(wo.a)(i).slice()).length<4&&o.push(1),Eo(o.map((function(e,t){return t<3?e/255:e})));if((16&a)>0)return Eo(t);throw new Error("Unexpected expression ".concat(t," (expected type ").concat(n,")"))}function Oo(e){if(!(1&Co(e)))throw new Error("A numeric value was expected, got ".concat(JSON.stringify(e)," instead"))}function $o(e){for(var t=0;t<e.length;t++)Oo(e[t])}function Po(e){if(!(2&Co(e)))throw new Error("A string value was expected, got ".concat(JSON.stringify(e)," instead"))}function Io(e){if(!(8&Co(e)))throw new Error("A boolean value was expected, got ".concat(JSON.stringify(e)," instead"))}function Lo(e,t){if(e.length!==t)throw new Error("Exactly ".concat(t," arguments were expected, got ").concat(e.length," instead"))}function Ao(e,t){if(e.length<t)throw new Error("At least ".concat(t," arguments were expected, got ").concat(e.length," instead"))}function Mo(e,t){if(e.length>t)throw new Error("At most ".concat(t," arguments were expected, got ").concat(e.length," instead"))}function jo(e){if(e.length%2!=0)throw new Error("An even amount of arguments was expected, got ".concat(e," instead"))}function Ro(e,t){if(n=t,Object(v.f)(n)%1!=0)throw new Error("Could not infer only one type from the following expression: ".concat(JSON.stringify(e)));var n}function Do(e){return"u_var_"+e}function Fo(e){return{getReturnType:function(e){return 8},toGlsl:function(t,n){Lo(n,2);for(var r=31,i=0;i<n.length;i++)r&=Co(n[i]);if(0===r)throw new Error("All arguments should be of compatible type, got ".concat(JSON.stringify(n)," instead"));return r&=-5,"(".concat(To(t,n[0],r)," ").concat(e," ").concat(To(t,n[1],r),")")}}}function No(e){return{getReturnType:function(e){return 8},toGlsl:function(t,n){Ao(n,2);for(var r=0;r<n.length;
839r++)Io(n[r]);var i="";return i=n.map((function(e){return To(t,e)})).join(" ".concat(e," ")),"(".concat(i,")")}}}xo.get={getReturnType:function(e){return 31},toGlsl:function(e,t){Lo(t,1),Po(t[0]);var n=t[0].toString();return-1===e.attributes.indexOf(n)&&e.attributes.push(n),(e.inFragmentShader?"v_":"a_")+n}},xo.var={getReturnType:function(e){return 31},toGlsl:function(e,t){Lo(t,1),Po(t[0]);var n=t[0].toString();return-1===e.variables.indexOf(n)&&e.variables.push(n),Do(n)}},xo.palette={getReturnType:function(e){return 4},toGlsl:function(e,t){Lo(t,2),Oo(t[0]);var n=To(e,t[0]),r=t[1];if(!Array.isArray(r))throw new Error("The second argument of palette must be an array");for(var i=r.length,o=new Uint8Array(4*i),a=0;a<i;a++){var s=r[a],l=void 0;if("string"==typeof s)l=Object(wo.c)(s);else{if(!Array.isArray(s))throw new Error("The second argument of palette must be an array of strings or colors");var c=s.length;if(4===c)l=s;else{if(3!==c)throw new Error("Expected palette color to have 3 or 4 values, got ".concat(c));l=[s[0],s[1],s[2],1]}}var d=4*a;o[d]=l[0],o[d+1]=l[1],o[d+2]=l[2],o[d+3]=255*l[3]}e.paletteTextures||(e.paletteTextures=[]);var u="".concat("u_paletteTextures","[").concat(e.paletteTextures.length,"]"),h=new Bi(u,o);return e.paletteTextures.push(h),"texture2D(".concat(u,", vec2((").concat(n," + 0.5) / ").concat(i,".0, 0.5))")}},xo.band={getReturnType:function(e){return 1},toGlsl:function(e,t){Ao(t,1),Mo(t,3);var n=t[0];if(!("getBandValue"in e.functions)){for(var r="",i=e.bandCount||1,o=0;o<i;o++){var a=Math.floor(o/4),s=o%4;s===i-1&&1===s&&(s=3);var l="".concat(to,"[").concat(a,"]");r+="\n if (band == ".concat(o+1,".0) {\n return texture2D(").concat(l,", v_textureCoord + vec2(dx, dy))[").concat(s,"];\n }\n ")}e.functions.getBandValue="\n float getBandValue(float band, float xOffset, float yOffset) {\n float dx = xOffset / ".concat(oo,";\n float dy = yOffset / ").concat(ao,";\n ").concat(r,"\n }\n ")}var c=To(e,n),d=To(e,t[1]||0),u=To(e,t[2]||0);return"".concat("getBandValue","(").concat(c,", ").concat(d,", ").concat(u,")")}},xo.time={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,0),"u_time"}},xo.zoom={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,0),"u_zoom"}},xo.resolution={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,0),"u_resolution"}},xo["*"]={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,2),$o(t),"(".concat(To(e,t[0])," * ").concat(To(e,t[1]),")")}},xo["/"]={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,2),$o(t),"(".concat(To(e,t[0])," / ").concat(To(e,t[1]),")")}},xo["+"]={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,2),$o(t),"(".concat(To(e,t[0])," + ").concat(To(e,t[1]),")")}},xo["-"]={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,2),$o(t),"(".concat(To(e,t[0])," - ").concat(To(e,t[1]),")")}},xo.clamp={getReturnType:function(e){return 1},toGlsl:function(e,t){Lo(t,3),$o(t);var n=To(e,t[1]),r=To(e,t[2]);return"clamp(".concat(To(e,t[0]),", ").concat(n,", ").concat(r,")")}},xo["%"]={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,2),$o(t),"mod(".concat(To(e,t[0]),", ").concat(To(e,t[1]),")")}},xo["^"]={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,2),$o(t),"pow(".concat(To(e,t[0]),", ").concat(To(e,t[1]),")")}},xo.abs={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,1),$o(t),"abs(".concat(To(e,t[0]),")")}},xo.floor={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,1),$o(t),"floor(".concat(To(e,t[0]),")")}},xo.round={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,1),$o(t),"floor(".concat(To(e,t[0])," + 0.5)")}},xo.ceil={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,1),$o(t),"ceil(".concat(To(e,t[0]),")")}},xo.sin={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,1),$o(t),"sin(".concat(To(e,t[0]),")")}},xo.cos={getReturnType:function(e){return 1},toGlsl:function(e,t){return Lo(t,1),$o(t),"cos(".concat(To(e,t[0]),")")}},xo.atan={getReturnType:function(e){return 1},toGlsl:function(e,t){return Ao(t,1),Mo(t,2),$o(t),2===t.length?"atan(".concat(To(e,t[0]),", ").concat(To(e,t[1]),")"):"atan(".concat(To(e,t[0]),")")}},xo[">"]={getReturnType:function(e){return 8},toGlsl:function(e,t){return Lo(t,2),$o(t),"(".concat(To(e,t[0])," > ").concat(To(e,t[1]),")")}},xo[">="]={getReturnType:function(e){return 8},toGlsl:function(e,t){return Lo(t,2),$o(t),"(".concat(To(e,t[0])," >= ").concat(To(e,t[1]),")")}},xo["<"]={getReturnType:function(e){return 8},toGlsl:function(e,t){return Lo(t,2),$o(t),"(".concat(To(e,t[0])," < ").concat(To(e,t[1]),")")}},xo["<="]={getReturnType:function(e){return 8},toGlsl:function(e,t){return Lo(t,2),$o(t),"(".concat(To(e,t[0])," <= ").concat(To(e,t[1]),")")}},xo["=="]=Fo("=="),xo["!="]=Fo("!="),xo["!"]={getReturnType:function(e){return 8},toGlsl:function(e,t){return Lo(t,1),Io(t[0]),"(!".concat(To(e,t[0]),")")}},xo.all=No("&&"),xo.any=No("||"),xo.between={getReturnType:function(e){return 8},toGlsl:function(e,t){Lo(t,3),$o(t);var n=To(e,t[1]),r=To(e,t[2]),i=To(e,t[0]);return"(".concat(i," >= ").concat(n," && ").concat(i," <= ").concat(r,")")}},xo.array={getReturnType:function(e){return 16},toGlsl:function(e,t){Ao(t,2),Mo(t,4),$o(t);var n=t.map((function(t){return To(e,t,1)}));return"vec".concat(t.length,"(").concat(n.join(", "),")")}}
839,xo.color={getReturnType:function(e){return 4},toGlsl:function(e,t){Ao(t,3),Mo(t,4),$o(t);var n=t;3===t.length&&n.push(1);var r=t.map((function(t,n){return To(e,t,1)+(n<3?" / 255.0":"")}));return"vec".concat(t.length,"(").concat(r.join(", "),")")}},xo.interpolate={getReturnType:function(e){for(var t=5,n=3;n<e.length;n+=2)t&=Co(e[n]);return t},toGlsl:function(e,t,n){jo(t),Ao(t,6);var r,i=t[0];switch(i[0]){case"linear":r=1;break;case"exponential":r=i[1];break;default:r=null}if(!r)throw new Error('Invalid interpolation type for "interpolate" operator, received: '.concat(JSON.stringify(i)));var o=void 0!==n?n:31,a=xo.interpolate.getReturnType(t)&o;Ro(t,a);for(var s=To(e,t[1]),l=So(r),c="",d=2;d<t.length-2;d+=2){var u=To(e,t[d]),h=c||To(e,t[d+1],a),p=To(e,t[d+2]),f=To(e,t[d+3],a);c="mix(".concat(h,", ").concat(f,", pow(clamp((").concat(s," - ").concat(u,") / (").concat(p," - ").concat(u,"), 0.0, 1.0), ").concat(l,"))")}return c}},xo.match={getReturnType:function(e){for(var t=31,n=2;n<e.length;n+=2)t&=Co(e[n]);return t&Co(e[e.length-1])},toGlsl:function(e,t,n){jo(t),Ao(t,4);var r=void 0!==n?n:31,i=xo.match.getReturnType(t)&r;Ro(t,i);for(var o=To(e,t[0]),a=To(e,t[t.length-1],i),s=null,l=t.length-3;l>=1;l-=2){var c=To(e,t[l]),d=To(e,t[l+1],i);s="(".concat(o," == ").concat(c," ? ").concat(d," : ").concat(s||a,")")}return s}},xo.case={getReturnType:function(e){for(var t=31,n=1;n<e.length;n+=2)t&=Co(e[n]);return t&Co(e[e.length-1])},toGlsl:function(e,t,n){!function(e){if(e.length%2==0)throw new Error("An odd amount of arguments was expected, got ".concat(e," instead"))}(t),Ao(t,3);var r=void 0!==n?n:31,i=xo.case.getReturnType(t)&r;Ro(t,i);for(var o=0;o<t.length-1;o+=2)Io(t[o]);var a=To(e,t[t.length-1],i),s=null;for(o=t.length-3;o>=0;o-=2){var l=To(e,t[o]),c=To(e,t[o+1],i);s="(".concat(l," ? ").concat(c," : ").concat(s||a,")")}return s}};var Bo,Uo,zo=function(){function e(){this.uniforms=[],this.attributes=[],this.varyings=[],this.sizeExpression="vec2(1.0)",this.rotationExpression="0.0",this.offsetExpression="vec2(0.0)",this.colorExpression="vec4(1.0)",this.texCoordExpression="vec4(0.0, 0.0, 1.0, 1.0)",this.discardExpression="false",this.rotateWithView=!1}return e.prototype.addUniform=function(e){return this.uniforms.push(e),this},e.prototype.addAttribute=function(e){return this.attributes.push(e),this},e.prototype.addVarying=function(e,t,n){return this.varyings.push({name:e,type:t,expression:n}),this},e.prototype.setSizeExpression=function(e){return this.sizeExpression=e,this},e.prototype.setRotationExpression=function(e){return this.rotationExpression=e,this},e.prototype.setSymbolOffsetExpression=function(e){return this.offsetExpression=e,this},e.prototype.setColorExpression=function(e){return this.colorExpression=e,this},e.prototype.setTextureCoordinateExpression=function(e){return this.texCoordExpression=e,this},e.prototype.setFragmentDiscardExpression=function(e){return this.discardExpression=e,this},e.prototype.setSymbolRotateWithView=function(e){return this.rotateWithView=e,this},e.prototype.getSizeExpression=function(){return this.sizeExpression},e.prototype.getOffsetExpression=function(){return this.offsetExpression},e.prototype.getColorExpression=function(){return this.colorExpression},e.prototype.getTextureCoordinateExpression=function(){return this.texCoordExpression},e.prototype.getFragmentDiscardExpression=function(){return this.discardExpression},e.prototype.getSymbolVertexShader=function(e){var t=this.rotateWithView?"u_offsetScaleMatrix * u_offsetRotateMatrix":"u_offsetScaleMatrix",n=this.attributes,r=this.varyings;return e&&(n=n.concat("vec4 a_hitColor"),r=r.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n".concat(this.uniforms.map((function(e){return"uniform "+e+";"})).join("\n"),"\nattribute vec2 a_position;\nattribute float a_index;\n").concat(n.map((function(e){return"attribute "+e+";"})).join("\n"),"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n").concat(r.map((function(e){return"varying "+e.type+" "+e.name+";"}
839)).join("\n"),"\nvoid main(void) {\n mat4 offsetMatrix = ").concat(t,";\n vec2 halfSize = ").concat(this.sizeExpression," * 0.5;\n vec2 offset = ").concat(this.offsetExpression,";\n float angle = ").concat(this.rotationExpression,";\n float offsetX;\n float offsetY;\n if (a_index == 0.0) {\n offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);\n offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);\n } else if (a_index == 1.0) {\n offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);\n offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);\n } else if (a_index == 2.0) {\n offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);\n offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);\n } else {\n offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);\n offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);\n }\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n vec4 texCoord = ").concat(this.texCoordExpression,";\n float u = a_index == 0.0 || a_index == 3.0 ? texCoord.s : texCoord.p;\n float v = a_index == 2.0 || a_index == 3.0 ? texCoord.t : texCoord.q;\n v_texCoord = vec2(u, v);\n u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n v = a_index == 2.0 || a_index == 3.0 ? 0.0 : 1.0;\n v_quadCoord = vec2(u, v);\n").concat(r.map((function(e){return" "+e.name+" = "+e.expression+";"})).join("\n"),"\n}")},e.prototype.getSymbolFragmentShader=function(e){var t=e?" if (gl_FragColor.a < 0.1) { discard; } gl_FragColor = v_hitColor;":"",n=this.varyings;return e&&(n=n.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n".concat(this.uniforms.map((function(e){return"uniform "+e+";"})).join("\n"),"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n").concat(n.map((function(e){return"varying "+e.type+" "+e.name+";"})).join("\n"),"\nvoid main(void) {\n if (").concat(this.discardExpression,") { discard; }\n gl_FragColor = ").concat(this.colorExpression,";\n gl_FragColor.rgb *= gl_FragColor.a;\n").concat(t,"\n}")},e}(),Go=(Uo=function(e,t){return(Uo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Uo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Vo=function(e){function t(t){var n=this,r=Object(g.a)({},t);return(n=e.call(this,r)||this).parseResult_=function(e){var t=e.symbol,n=void 0!==t.size?t.size:1,r=t.color||"white",i=t.textureCoord||[0,0,1,1],o=t.offset||[0,0],a=void 0!==t.opacity?t.opacity:1,s=void 0!==t.rotation?t.rotation:0,l={inFragmentShader:!1,variables:[],attributes:[],stringLiteralsMap:{},functions:{}},c=To(l,n,17),d=To(l,o,16),u=To(l,i,16),h=To(l,s,1),p={inFragmentShader:!0,variables:l.variables,attributes:[],stringLiteralsMap:l.stringLiteralsMap,functions:{}},f=To(p,r,4),m=To(p,a,1),g="1.0",v="vec2(".concat(To(p,n,17),").x");switch(t.symbolType){case"square":case"image":break;case"circle":g="(1.0-smoothstep(1.-4./".concat(v,",1.,dot(v_quadCoord-.5,v_quadCoord-.5)*4.))");break;case"triangle":var y="(v_quadCoord*2.-1.)",b="(atan(".concat(y,".x,").concat(y,".y))");g="(1.0-smoothstep(.5-3./".concat(v,",.5,cos(floor(.5+").concat(b,"/2.094395102)*2.094395102-").concat(b,")*length(").concat(y,")))");break;default:throw new Error("Unexpected symbol type: "+t.symbolType)}var _=(new zo).setSizeExpression("vec2(".concat(c,")")).setRotationExpression(h).setSymbolOffsetExpression(d).setTextureCoordinateExpression(u).setSymbolRotateWithView(!!t.rotateWithView).setColorExpression("vec4(".concat(f,".rgb, ").concat(f,".a * ").concat(m," * ").concat(g,")"));if(e.filter){var w=To(p,e.filter,8);_.setFragmentDiscardExpression("!".concat(w))}var x={};
839if(p.variables.forEach((function(t){var n=Do(t);_.addUniform("float ".concat(n)),x[n]=function(){if(!e.variables||void 0===e.variables[t])throw new Error("The following variable is missing from the style: ".concat(t));var n=e.variables[t];return"string"==typeof n&&(n=ko(l,n)),void 0!==n?n:-9999999}})),"image"===t.symbolType&&t.src){var C=new Image;C.crossOrigin=void 0===t.crossOrigin?"anonymous":t.crossOrigin,C.src=t.src,_.addUniform("sampler2D u_texture").setColorExpression(_.getColorExpression()+" * texture2D(u_texture, v_texCoord)"),x.u_texture=C}return p.attributes.forEach((function(e){-1===l.attributes.indexOf(e)&&l.attributes.push(e),_.addVarying("v_".concat(e),"float","a_".concat(e))})),l.attributes.forEach((function(e){_.addAttribute("float a_".concat(e))})),{builder:_,attributes:l.attributes.map((function(e){return{name:e,callback:function(t,n){var r=n[e];return"string"==typeof r&&(r=ko(l,r)),void 0!==r?r:-9999999}}})),uniforms:x}}(t.style),n.styleVariables_=t.style.variables||{},n.hitDetectionDisabled_=!!t.disableHitDetection,n}return Go(t,e),t.prototype.createRenderer=function(){return new ve(this,{vertexShader:this.parseResult_.builder.getSymbolVertexShader(),fragmentShader:this.parseResult_.builder.getSymbolFragmentShader(),hitVertexShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolVertexShader(!0),hitFragmentShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolFragmentShader(!0),uniforms:this.parseResult_.uniforms,attributes:this.parseResult_.attributes})},t.prototype.updateStyleVariables=function(e){Object(g.a)(this.styleVariables_,e),this.changed()},t}(ke.a),qo=n(210),Ho=(Bo=function(e,t){return(Bo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Bo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function Wo(e,t){var n="\n attribute vec2 ".concat(po,";\n uniform mat4 ").concat(no,";\n uniform float ").concat(oo,";\n uniform float ").concat(ao,";\n uniform float ").concat(so,";\n uniform float ").concat(lo,";\n uniform float ").concat(co,";\n uniform float ").concat(io,";\n\n varying vec2 v_textureCoord;\n varying vec2 v_mapCoord;\n\n void main() {\n v_textureCoord = ").concat(po,";\n v_mapCoord = vec2(\n ").concat(lo," + ").concat(so," * ").concat(oo," * v_textureCoord[0],\n ").concat(co," - ").concat(so," * ").concat(ao," * v_textureCoord[1]\n );\n gl_Position = ").concat(no," * vec4(").concat(po,", ").concat(io,", 1.0);\n }\n "),r={inFragmentShader:!0,variables:[],attributes:[],stringLiteralsMap:{},functions:{},bandCount:t},i=[];if(void 0!==e.color){var o=To(r,e.color,4);i.push("color = ".concat(o,";"))}if(void 0!==e.contrast){var a=To(r,e.contrast,1);i.push("color.rgb = clamp((".concat(a," + 1.0) * color.rgb - (").concat(a," / 2.0), vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(void 0!==e.exposure){var s=To(r,e.exposure,1);i.push("color.rgb = clamp((".concat(s," + 1.0) * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(void 0!==e.saturation){var l=To(r,e.saturation,1);i.push("\n float saturation = ".concat(l," + 1.0;\n float sr = (1.0 - saturation) * 0.2126;\n float sg = (1.0 - saturation) * 0.7152;\n float sb = (1.0 - saturation) * 0.0722;\n mat3 saturationMatrix = mat3(\n sr + saturation, sr, sr,\n sg, sg + saturation, sg,\n sb, sb, sb + saturation\n );\n color.rgb = clamp(saturationMatrix * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));\n "))}if(void 0!==e.gamma){var c=To(r,e.gamma,1);i.push("color.rgb = pow(color.rgb, vec3(1.0 / ".concat(c,"));"))}if(void 0!==e.brightness){var d=To(r,e.brightness,1);i.push("color.rgb = clamp(color.rgb + ".concat(d,", vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}var u={},h=r.variables.length;if(h>1&&!e.variables)throw new Error("Missing variables in style (expected ".concat(r.variables,")"));for(var p=function(t){var n=r.variables[t];if(!(n in e.variables))throw new Error("Missing '".concat(n,"' in style variables"));var i=Do(n);u[i]=function(){var t=e.variables[n];return"string"==typeof t&&(t=ko(r,t)),void 0!==t?t:-9999999}},f=0;f<h;++f)p(f);var m=Object.keys(u).map((function(e){return"uniform float ".concat(e,";")})),g=Math.ceil(t/4);m.push("uniform sampler2D ".concat(to,"[").concat(g,"];")),r.paletteTextures&&m.push("uniform sampler2D ".concat("u_paletteTextures","[").concat(r.paletteTextures.length,"];"));var v=Object.keys(r.functions).map((function(e){return r.functions[e]}));return{vertexShader:n,fragmentShader:"\n #ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n #else\n precision mediump float;\n #endif\n\n varying vec2 v_textureCoord;\n varying vec2 v_mapCoord;\n uniform vec4 ".concat(uo,";\n uniform float ").concat(ro,";\n uniform float ").concat(oo,";\n uniform float ").concat(ao,";\n uniform float ").concat(ho,";\n uniform float ").concat("u_zoom",";\n\n ").concat(m.join("\n"),"\n\n ").concat(v.join("\n"),"\n\n void main() {\n if (\n v_mapCoord[0] < ").concat(uo,"[0] ||\n v_mapCoord[1] < ").concat(uo,"[1] ||\n v_mapCoord[0] > ").concat(uo,"[2] ||\n v_mapCoord[1] > ").concat(uo,"[3]\n ) {\n discard;\n }\n\n vec4 color = texture2D(").concat(to,"[0], v_textureCoord);\n\n ").concat(i.join("\n"),"\n\n if (color.a == 0.0) {\n discard;\n }\n\n gl_FragColor = color;\n gl_FragColor.rgb *= gl_FragColor.a;\n gl_FragColor *= ").concat(ro,";\n }"),uniforms:u,paletteTextures:r.paletteTextures}}var Yo=function(e){function t(t){var n=this,r=t?Object(g.a)({},t):{},i=r.style||{};delete r.style;var o=r.cacheSize;return delete r.cacheSize,(n=e.call(this,r)||this).sources_=r.sources,n.renderedSource_=null,n.renderedResolution_=NaN,n.style_=i,n.cacheSize_=o,n.styleVariables_=n.style_.variables||{},n.addChangeListener(N.a.SOURCE,n.handleSourceUpdate_),n}return Ho(t,e),t.prototype.getSources=function(e,t){var n=this.getSource();return this.sources_?"function"==typeof this.sources_?this.sources_(e,t):this.sources_:n?[n]:[]},t.prototype.getRenderSource=function(){return this.renderedSource_||this.get
839Source()},t.prototype.getSourceState=function(){var e=this.getRenderSource();return e?e.getState():"undefined"},t.prototype.handleSourceUpdate_=function(){this.getSource()&&this.setStyle(this.style_)},t.prototype.getSourceBandCount_=function(){var e=Number.MAX_SAFE_INTEGER,t=this.getSources([-e,-e,e,e],e);return t&&t.length&&"bandCount"in t[0]?t[0].bandCount:4},t.prototype.createRenderer=function(){var e=Wo(this.style_,this.getSourceBandCount_());return new _o(this,{vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms,cacheSize:this.cacheSize_,paletteTextures:e.paletteTextures})},t.prototype.renderSources=function(e,t){for(var n,r=this.getRenderer(),i=0,o=t.length;i<o;++i)this.renderedSource_=t[i],r.prepareFrame(e)&&(n=r.renderFrame(e));return n},t.prototype.render=function(e,t){var n=this;this.rendered=!0;for(var r=e.viewState,i=this.getSources(e.extent,r.resolution),o=!0,a=function(e,t){var r=i[e],a=r.getState();if("loading"==a){r.addEventListener("change",(function e(){"ready"==r.getState()&&(r.removeEventListener("change",e),n.changed())}))}o=o&&"ready"==a},s=0,l=i.length;s<l;++s)a(s);var c=this.renderSources(e,i);if(this.getRenderer().renderComplete&&o)return this.renderedResolution_=r.resolution,c;if(this.renderedResolution_>.5*r.resolution){var d=this.getSources(e.extent,this.renderedResolution_).filter((function(e){return!i.includes(e)}));if(d.length>0)return this.renderSources(e,d)}return c},t.prototype.setStyle=function(e){this.styleVariables_=e.variables||{},this.style_=e;var t=Wo(this.style_,this.getSourceBandCount_());this.getRenderer().reset({vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,paletteTextures:t.paletteTextures}),this.changed()},t.prototype.updateStyleVariables=function(e){Object(g.a)(this.styleVariables_,e),this.changed()},t}(qo.a);Yo.prototype.dispose;var Xo=Yo},function(e,t,n){n.d(t,"a",(function(){return m}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(7),l=n(217),c=n(41),d=n(2),u=n(8),h=n.n(u),p=n(143),f=(n(224),n(225),n(226),"http://127.0.0.1:54001/"),m=function(){function e(t,n){if(i()(this,e),Object(c.b)()){if(this.element=n.element,"string"==typeof n.element){var r=document.querySelector(n.element);r?this.element=r:console.error("Invalid selector for element")}this.context=t,this.servers=n.servers||[];var o=this;this.navigating=!1,this.lastNavigatePathRequest=null,this.autoExpand=!0===n.autoExpandNodes,this.checkboxes=!0===n.checkboxes,this.lastSearchResults={},this.listeners={},this.listeners[d.c.DirectorySelected]=[],this.listeners[d.c.SlideSelected]=[],this.listeners[d.c.ServerSelected]=[],this.listeners[d.c.MultiSelectionChanged]=[],this.listeners[d.c.TreeNodeDoubleClicked]=[],this.listeners[d.c.ServerExpanded]=[],this.listeners[d.c.DirectoryExpanded]=[],this.listeners[d.c.SearchFinished]=[],this.listeners[d.c.SearchFailed]=[],this.lastSearchHash=0,this.previewEnabled=!1,"function"==typeof n.rootDirSortCb&&(this.rootDirSortCb=n.rootDirSortCb),"function"==typeof n.filterDirectoryCb?this.filterDirectoryCb=n.filterDirectoryCb:this.filterDirectoryCb=null,"function"==typeof n.filterFileCb?this.filterFileCb=n.filterFileCb:this.filterFileCb=null;for(var a=[],l=0;l<this.servers.length;l++)a.push({title:this.servers[l].name,serverNode:!0,key:this.servers[l].url,serverIndex:l,extraClasses:"server",dirPath:this.servers[l].path?this.servers[l].path:"/",lazy:!0,unselectableStatus:!1,unselectable:!0,selected:!1,checkbox:!1}),this.context.getVersionInfo(this.servers[l].url,b.bind(this,this.servers[l]));var u=null;if(!0===n.search){var f=n.searchClass?n.searchClass:"pma-ui-tree-search-box";u=h()("<input type='text' class='"+f+"' placeholder='"+s.a.translate("Search")+"'/><hr />").appendTo(this.element)}this.fancytree=Object(p.createTree)(this.element,{keyPathSeparator:"?",checkbox:!0===n.checkboxes,extensions:["dnd5"],dnd5:{dragStart:function(e,t){return!(!e.data.dirPath||e.data.serverNode||(e.data.dragging=!0,e.isActive&&e.setActive(!1),t.dataTransfer.setData("text",JSON.stringify({serverUrl:e.data.serverUrl,path:e.data.dirPath,isFolder:e.isFolder()})),0))},dragEnd:function(e,t){e.data.dragging=!1}},selectMode:3,toggleEffect:{options:{direction:"left"},duration:400},wide:{iconWidth:"1em",iconSpacing:"0.5em",levelOfs:"1.5em"},icon:function(e,t){return"_searchResults"===t.node.key?t.node.data.searching?"fa fa-spinner fa-spin":"fa fa-search":!0===t.node.data.serverNode?!0===t.node.data.authenticated?"server success":!1===t.node.data.authenticated?"server error":"server":!0===t.node.data.rootDir?"rootdir":t.node.isFolder()?void 0:"image"},renderNode:"function"==typeof n.renderNode?n.renderNode:null,source:a,lazyLoad:g.bind(this),activate:function(e,t){var n=t.node;"_searchResults"==n.key&&!0===o.autoExpand&&n.setExpanded(!0),setTimeout((function(){n.data&&!0===n.data.dragging?e.preventDefault():!0!==n.data.serverNode?"/"!==n.data.dirPath?n.isFolder()?(!0===o.autoExpand&&n.setExpanded(!0),o.fireEvent(d.c.DirectorySelected,{serverUrl:o.servers[n.data.serverIndex].url,path:n.data.dirPath})):o.servers[n.data.serverIndex]&&o.fireEvent(d.c.SlideSelected,{serverUrl:o.servers[n.data.serverIndex].url,path:n.data.dirPath}):!0===o.autoExpand&&n.setExpanded(!0):o.fireEvent(d.c.ServerSelected,{serverUrl:o.servers[n.data.serverIndex].url})}),300)},select:function(e,t){var n=t.tree.getSelectedNodes(),r=[];if(n&&n.length>0)for(var i=0;i<n.length;i++)null===n[i]||!0===n[i].data.serverNode||!0===n[i].data.rootDir||n[i].isFolder()||r.push({serverUrl:o.servers[n[i].data.serverIndex].url,path:n[i].data.dirPath});o.fireEvent(d.c.MultiSelectionChanged,r)},expand:function(e,t){var n=t.node;setTimeout((function(){!0!==n.data.serverNode?"/"!==n.data.dirPath&&n.isFolder()&&o.fireEvent(d.c.DirectoryExpanded,{serverUrl:o.servers[n.data.serverIndex].url,path:n.data.dirPath}):o.fireEvent(d.c.ServerExpanded,{serverUrl:o.servers[n.data.serverIndex].url})}),300)},dblclick:function(e,t){var n=t.node;o.fireEvent(d.c.TreeNodeDoubleClicked,{serverUrl:o.servers[n.data.serverIndex].url,path:n.data.dirPath,isSlide:!(!0===n.data.serverNode||!0===n.data.rootDir||n.isFolder())})}}),!0===n.preview&&C.call(this,this.fancytree),!0===n.autoDetectPmaStart&&this.addPmaStartServer(),!0===n.search&&h()(this.element).find(".ui-fancytree").addClass("ui-fancytree-search");var m=this,v=null,y=this.fancytree;u&&u.on("input propertychange paste",(function(){var e=h()(this).val();if(e&&e.length>3)clearTimeout(v),v=setTimeout((function(){_.call(m,e)}),500);else{var t=y.getNodeByKey("_searchResults");t&&t.remove()}}))}}return a()(e,[{key:"togglePreview",value:function(e){e&&!this.previewEnabled?C.call(this,h()(this.element)):!e&&this.previewEnabled&&x.call(this,h()(this.element))}},{key:"addServer",value:function(e){if(e){this.servers.push(e);var t={title:this.servers[this.servers.length-1].name,serverNode:!0,key:this.servers[this.servers.length-1].url,serverIndex:this.servers.length-1,extraClasse
839s:"server",dirPath:this.servers[this.servers.length-1].path?this.servers[this.servers.length-1].path:"/",lazy:!0,unselectableStatus:!1,unselectable:!0,selected:!1,checkbox:!1};this.context.getVersionInfo(e.url,b.bind(this,e)),this.fancytree.getRootNode().addChildren(t)}}},{key:"removeServer",value:function(e){var t=this.fancytree.getRootNode().getChildren();t&&t.length&&e>=0&&e<t.length?(t[e].data&&this.servers.splice(t[e].data.serverIndex,1),t[e].remove()):console.error("No children found or index out of range")}},{key:"removePmaStartServer",value:function(){for(var e=this.fancytree.getRootNode().getChildren(),t=0;t<e.length;t++)e[t].key==f&&this.removeServer(e[t].data.serverIndex)}},{key:"addPmaStartServer",value:function(e){for(var t=this,n=this.fancytree.getRootNode().getChildren(),r=0;r<n.length;r++)if(n[r].key==f)return;Object(d.h)({method:d.a.GetVersionInfo,httpMethod:"GET",data:{rnd:Math.random()},serverUrl:f,success:function(){new l.a(t.context,[{serverUrl:f,sessionId:"pma.core.lite"}]),t.addServer({name:s.a.translate("Computer"),url:f}),"function"==typeof e&&e.call(this,!0)},failure:function(){"function"==typeof e&&e.call(this,!1)}})}},{key:"getServers",value:function(){return this.servers}},{key:"getSelectedSlide",value:function(){var e=this.fancytree.getActiveNode();return null===e||!0===e.data.serverNode||!0===e.data.rootDir||e.isFolder()?null:{server:this.servers[e.data.serverIndex].url,path:e.data.dirPath}}},{key:"getSelectedDirectory",value:function(){var e=this.fancytree.getActiveNode();return null===e||!0!==e.data.rootDir&&!e.isFolder()?null:{server:this.servers[e.data.serverIndex].url,path:e.data.dirPath}}},{key:"getMultiSelection",value:function(e){var t=["slides","directories","all"];-1===t.indexOf(e)&&(e=t[0]);var n=this.fancytree.getSelectedNodes(),r=[];if(n&&n.length>0)for(var i=0;i<n.length;i++)if(null!==n[i]&&!0!==n[i].data.serverNode){var o=n[i].data.rootDir||n[i].isFolder();("slides"===e&&!o||"directories"===e&&o||"all"===e)&&r.push({serverUrl:this.servers[n[i].data.serverIndex].url,path:n[i].data.dirPath,isDirectory:o})}return r}},{key:"clearMultiSelection",value:function(){this.fancytree.selectAll(!1)}},{key:"navigateTo",value:function(e){var t=this;if(!t.navigating){t.navigating=!0;var n=this.fancytree,r=w.call(this,e,n);return n.loadKeyPath(r,(function(e,n){"ok"===n&&(e.setActive(),e.scrollIntoView(),t.navigating=!1)})).done((function(){if(t.navigating=!1,t.lastNavigatePathRequest){var e=t.lastNavigatePathRequest;t.lastNavigatePathRequest=null,t.navigateTo(e)}}))}t.lastNavigatePathRequest=e}},{key:"refresh",value:function(e){var t=this.fancytree,n=w.call(this,e,t);return t.loadKeyPath(n,(function(e,t){"ok"===t&&e.resetLazy()}))}},{key:"getSearchResults",value:function(){return this.lastSearchResults}},{key:"clearSearchResults",value:function(){var e=this.fancytree.getNodeByKey("_searchResults");e&&e.remove()}},{key:"search",value:function(e){return this.clearSearchResults(),_.call(this,e)}},{key:"listen",value:function(e,t){Object.prototype.hasOwnProperty.call(this.listeners,e)||console.error(e+" is not a valid event"),this.listeners[e].push(t)}},{key:"fireEvent",value:function(e,t){if(Object.prototype.hasOwnProperty.call(this.listeners,e))for(var n=0,r=this.listeners[e].length;n<r;n++)this.listeners[e][n].call(this,t);else console.error(e+" does not exist")}},{key:"getFilesVisibility",value:function(e){for(var t=this.fancytree.getRootNode().getChildren(),n=0;n<t.length;n++)if(t[n].key==e)for(var r=0;r<this.servers.length;r++)if(this.servers[r].url==t[n].key)return this.servers[r].showFiles}},{key:"setFilesVisibility",value:function(e,t){for(var n=this.fancytree.getRootNode().getChildren(),r=0;r<n.length;r++)if(n[r].key==e){for(var i=0;i<this.servers.length;i++)this.servers[i].url==n[r].key&&(this.servers[i].showFiles=t);n[r].resetLazy()}}},{key:"collapseAll",value:function(){for(var e=this.fancytree.getRootNode().getChildren(),t=0;t<e.length;t++)e[t].resetLazy()}},{key:"signOut",value:function(e){for(var t=this.fancytree.getRootNode().getChildren(),n=0;n<t.length;n++)t[n].key==e&&(t[n].data.authenticated=void 0,t[n].renderTitle(),t[n].resetLazy(),this.context.deAuthenticate(e))}}]),e}();function g(e,t){var n=new h.a.Deferred;t.result=n.promise();
839var r=t.node,i="/"===r.data.dirPath?"":r.data.dirPath,o=this,a="/"===r.data.dirPath;this.context.getDirectories(o.servers[r.data.serverIndex].url,i,(function(e,t){r.data.serverNode&&(r.data.authenticated=!0,r.renderTitle()),o.rootDirSortCb&&""===i&&(t=o.rootDirSortCb(t));for(var l=[],c=0;c<t.length;c++)o.filterDirectoryCb&&!1===o.filterDirectoryCb.call(o,t[c])||l.push({title:t[c].split("/").pop(),lazy:!0,serverIndex:r.data.serverIndex,serverUrl:o.servers[r.data.serverIndex].url,dirPath:t[c],key:t[c],folder:!0,rootDir:a,extraClasses:a?"rootdir":"subdir",checkbox:o.checkboxes});!1!==o.servers[r.data.serverIndex].showFiles&&i&&""!==i?o.context.getSlides({serverUrl:o.servers[r.data.serverIndex].url,path:i,success:function(e,t){for(var i=0;i<t.length;i++)o.filterFileCb&&!1===o.filterFileCb.call(o,t[i])||l.push({title:t[i].split("/").pop(),lazy:!1,serverIndex:r.data.serverIndex,dirPath:t[i],serverUrl:o.servers[r.data.serverIndex].url,key:t[i],folder:!1,extraClasses:"slide"});n.resolve(l)},failure:function(e){n.reject(e.Message?e.Message:s.a.translate("Error loading files"))}}):n.resolve(l)}),(function(e){r.data.serverNode&&(r.data.authenticated=!1,r.renderTitle()),n.reject(e.Message?e.Message:s.a.translate("Error loading directories"))}))}function v(e,t,n,r,i){if(this.lastSearchHash===n){this.lastSearchResults[this.servers[t].name]=i;for(var o=e.addChildren({title:this.servers[t].name,serverNode:!0,key:"_searchServer_"+this.servers[t].url,serverIndex:t,dirPath:this.servers[t].path?this.servers[t].path:"/",lazy:!1,unselectableStatus:!1,unselectable:!0,selected:!1,checkbox:!1,resultCount:i.length}),a=h()(this.element).fancytree("getTree"),l=0;l<i.length;l++)for(var c=i[l].split("/"),u="",p=o,f=0;f<c.length;f++){u+=f>0?"/"+c[f]:c[f];var m=a.getNodeByKey("_searchResult_"+u,p);null==m?p=p.addChildren({title:u.split("/").pop(),lazy:!1,serverIndex:t,dirPath:u,key:"_searchResult_"+u,folder:f<c.length-1,rootDir:0==f,extraClasses:0==f?"rootdir":"subdir",checkbox:this.checkboxes,resultCount:1}):(p=m,m.data.resultCount+=1)}e.data.resultCount+=i.length,e.visit((function(t){t.parent&&(t==e?t.setTitle(s.a.translate('Search results for "{pattern}" ({count})',{pattern:e.data.pattern,count:t.data.resultCount})):(t.isFolder()||t.data.serverNode)&&t==o&&t.setTitle(t.title+" ("+t.data.resultCount+")"))}),!0),e.data.serverDone++,e.data.serverDone>=e.data.serversSearched&&(e.data.searching=!1,e.renderTitle()),e.makeVisible(),e.setExpanded(!0),this.fireEvent(d.c.SearchFinished,this.lastSearchResults)}}function y(e,t,n){this.lastSearchHash===n&&(e.data.serverDone++,e.data.serverDone>=e.data.serversSearched&&(e.data.searching=!1,e.renderTitle()),this.fireEvent(d.c.SearchFailed,this.servers[t]))}function b(e,t){e.version=t}function _(e){this.lastSearchResults={};var t=h()(this.element).fancytree("getTree").getNodeByKey("_searchResults");if(null==t){var n={title:s.a.translate('Search results for "{pattern}"',{pattern:e}),key:"_searchResults",lazy:!1,selected:!1,checkbox:!1,resultCount:0,searching:!0,serverDone:0,serversSearched:0,pattern:e};t=this.fancytree.getRootNode().addChildren(n)}else t.resultCount=0,t.removeChildren(),t.data.searching=!0,t.data.serverDone=0,t.data.serversSearched=0,t.data.pattern=e,t.renderTitle();t.makeVisible(),t.setExpanded(!0),this.lastSearchHash=Math.random();for(var r=0;r<this.servers.length;r++)this.servers[r].version&&"1."!==this.servers[r].version.substring(0,"1.".length)&&(t.data.serversSearched++,this.context.queryFilename(this.servers[r].url,"",e,v.bind(this,t,r,this.lastSearchHash),y.bind(this,t,r,this.lastSearchHash)))}function w(e,t){var n=e.split("/").filter((function(e){return null!=e&&""!=e})),r="";if(n.length>0){for(var i=0;i<this.servers.length;i++)if(this.servers[i].name.toLowerCase()==n[0].toLowerCase()){n[0]=this.servers[i].url,r=this.servers[i].path?this.servers[i].path:"";break}for(r&&(n[1]=r+"/"+n[1]),i=2;i<n.length;i++)n[i]=n[i-1]+"/"+n[i]}return n.join(t.options.keyPathSeparator)}function x(e){this.previewEnabled&&(h()(this.element).off("mouseenter","span.fancytree-title"),h()(this.element).off("mouseleave","span.fancytree-title"),h()(this.element).off("mousemove","span.fancytree-title"),h()("#fancytree-preview").remove(),this.previewEnabled=!1)}function C(e){if(!this.previewEnabled){var t=null,n=this;h()(this.element).on("mouseenter","span.fancytree-title",(function(e){var r=h.a.ui.fancytree.getNode(e);if(null!==r&&!0!==r.data.serverNode&&!0!==r.data.rootDir&&!r.isFolder()&&void 0!==r.data.serverIndex){var i=n.servers[r.data.serverIndex].url;t=setTimeout((function(){n.context.getSession(i,(function(t){var n=Object(d.l)(i,t,r.data.dirPath,0,150,0),o=h()("#fancytree-preview");o.length>0&&o.remove(),(o=h()("<p id='fancytree-preview' class='fancytree-preview'><i class='fa fa-spinner fa-spin'></i><img/></p>").appendTo("body")).css("position","absolute").css("top",e.pageY+-30+"px").css("left",e.pageX+100+"px").fadeIn("fast"),o.find("img").bind("load",(function(){o.find("i").remove()})).attr("src",n)}
839))}),250)}})),h()(this.element).on("mouseleave","span.fancytree-title",(function(){h()("#fancytree-preview").remove(),t&&(clearTimeout(t),t=null)})),h()(this.element).on("mousemove","span.fancytree-title",(function(e){var t=h()("#fancytree-preview");t.length>0&&t.css("top",e.pageY+-30+"px").css("left",e.pageX+100+"px")})),this.previewEnabled=!0}}},function(e,t,n){n.d(t,"a",(function(){return c}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(41),l=n(2),c=function(){function e(t,n){i()(this,e),Object(s.b)()&&(n instanceof Array?(this.serverCredentials=n,this.context=t,this.context.registerAuthenticationProvider(this)):console.error("Expected array of server credentials"))}return a()(e,[{key:"authenticate",value:function(e,t,n){for(var r=0,i=this.serverCredentials.length;r<i;r++)if(this.serverCredentials[r].serverUrl==e)return Object(l.m)(this.serverCredentials[r].serverUrl,this.serverCredentials[r].username,this.serverCredentials[r].password,this.context.getCaller(),t,n),!0;return!1}}]),e}()},function(e,t,n){n.d(t,"a",(function(){return g}));var r=n(25),i=n.n(r),o=n(26),a=n.n(o),s=n(58),l=n.n(s),c=n(41),d=n(157),u=n(2);function h(e,t,n,r){if(this.lastLoadImageRequest&&(this.lastLoadImageRequest.serverUrl!==e||this.lastLoadImageRequest.path!==t||this.lastLoadImageRequest.doneCb!==n)){var i=this.lastLoadImageRequest;this.lastLoadImageRequest=null,this.load(i.serverUrl,i.path,i.doneCb,i.dropped)}}function p(e){e.preventDefault();var t=e.dataTransfer.types;if(t){var n=!1;if(t.indexOf?n=t.indexOf("application/x-fancytree-node")>-1||t.indexOf(u.b)>-1:t.contains&&(n=t.contains("application/x-fancytree-node")||t.contains(u.b)),n)return void(e.dataTransfer.dropEffect="link")}e.dataTransfer.dropEffect="none"}function f(e){e.preventDefault();var t=Object(u.n)(e.dataTransfer);t&&!t.isFolder&&t.path&&t.serverUrl&&0==this.fireEvent(u.c.BeforeDrop,{serverUrl:t.serverUrl,path:t.path,node:t}).filter((function(e){return 0==e})).length&&this.load(t.serverUrl,t.path,null,!0)}function m(){this.element&&(this.element.addEventListener("drop",f.bind(this),!1),this.element.addEventListener("dragover",p.bind(this),!1))}var g=function(){function e(t,n){if(i()(this,e),Object(c.b)()){if(this.loadingImage=!1,this.lastLoadImageRequest=null,this.context=t,this.slideLoaderOptions=n||{},this.listeners={},this.listeners[u.c.SlideInfoError]=[],this.listeners[u.c.BeforeSlideLoad]=[],this.listeners[u.c.SlideLoaded]=[],this.listeners[u.c.BeforeDrop]=[],this.mainViewport=null,this.slideLoaderOptions.element)if(this.slideLoaderOptions.element instanceof HTMLElement)this.element=this.slideLoaderOptions.element;else if("string"==typeof this.slideLoaderOptions.element){var r=document.querySelector(this.slideLoaderOptions.element);if(!r)throw"Invalid selector for element";this.element=r}m.call(this)}}return a()(e,[{key:"setOption",value:function(e,t){this.slideLoaderOptions[e]=t}},{key:"getOption",value:function(e){return this.slideLoaderOptions[e]}},{key:"load",value:function(e,t,n,r){if(!0!==this.loadingImage){if(!0!==r&&(r=!1),this.loadingImage=!0,this.mainViewport&&this.mainViewport.map){for(;this.mainViewport.map.getInteractions().getLength()>0;)this.mainViewport.map.removeInteraction(this.mainViewport.map.getInteractions().item(0));for(;this.mainViewport.map.getLayers().getLength()>0;)this.mainViewport.map.removeLayer(this.mainViewport.map.getLayers().item(0));for(;this.mainViewport.map.getControls().getLength()>0;)this.mainViewport.map.removeControl(this.mainViewport.map.getControls().item(0))}var i={serverUrl:e,path:t,cancel:!1};if(this.fireEvent(u.c.BeforeSlideLoad,i),i.cancel)this.loadingImage=!1;else{var o=this;if(!e||!t)return this.mainViewport&&(this.mainViewport.element.innerHTML="",this.mainViewport=null),this.loadingImage=!1,this.fireEvent(u.c.SlideLoaded,{serverUrl:e,path:t,dropped:r}),"function"==typeof n&&n(),void h.call(o,e,t,n,r);this.context.getSession(e,(function(i){var a=function(e){if(null===e||"object"!=l()(e))return e;var t=e.constructor();for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(o.slideLoaderOptions);a.serverUrls=[e],a.image=t,a.sessionID=i,a.caller=o.context.getCaller(),o.mainViewport=new d.a(a,(function(){o.loadingImage=!1,o.fireEvent(u.c.SlideLoaded,{serverUrl:e,path:t,dropped:r}),"function"==typeof n&&n(),h.call(o,e,t,n,r)}
839),(function(){o.loadingImage=!1,console.error("Error loading slide")}));var s=0;o.mainViewport.listen("tileserror",(function(){0===s?(s++,u.f.set(e,null),o.context.getSession(e,(function(e){s=-1,o.mainViewport.sessionID=e,o.mainViewport.redraw()}),(function(){o.fireEvent(u.c.SlideInfoError,{})}))):-1===s&&(s=0,o.fireEvent(u.c.SlideInfoError,{}))})),o.mainViewport.listen("SlideLoadError",(function(){o.loadingImage=!1,o.fireEvent(u.c.SlideInfoError,{}),h.call(o,e,t,n,r)}))}),(function(){o.loadingImage=!1,o.fireEvent(u.c.SlideInfoError,{}),h.call(o,e,t,n,r)}))}}else this.lastLoadImageRequest={serverUrl:e,path:t,doneCb:n,dropped:!0===r}}},{key:"getLoadedImageInfo",value:function(){return this.mainViewport&&this.mainViewport.map&&this.mainViewport.imageInfo?this.mainViewport.imageInfo:null}},{key:"reloadAnnotations",value:function(e){this.mainViewport&&this.mainViewport.map&&this.mainViewport.imageInfo?this.mainViewport.reloadAnnotations(e):"function"==typeof e&&e.call(this)}},{key:"listen",value:function(e,t){Object.prototype.hasOwnProperty.call(this.listeners,e)||console.error(e+" is not a valid event"),this.listeners[e].push(t)}},{key:"fireEvent",value:function(e,t){if(Object.prototype.hasOwnProperty.call(this.listeners,e)){for(var n=[],r=0,i=this.listeners[e].length;r<i;r++)n.push(this.listeners[e][r].call(this,t));return n}console.error(e+" does not exist")}},{key:"drawCollageAnnotations",value:function(e,t){var n=this,r=this.mainViewport.image;if(r.startsWith("{")){var i=JSON.parse(r),o=i.Sources,a=i.CollectionRows,s=i.CollectionTileMargin,l=i.CollectionLayout;o&&0!=o.length&&this.context.getImagesInfo({serverUrl:e,images:o,success:function(r,i){var o=new He.UI.Components.Annotations({context:n.context,viewport:n.mainViewport,serverUrl:e,path:"",enabled:!0}),c=Math.min.apply(Math,i.map((function(e){return e.MicrometresPerPixelX}))),d=Math.min.apply(Math,i.map((function(e){return e.MicrometresPerPixelY}))),u=Math.round(i.length/a);u=Math.max(1,u);for(var h=0,p=0,f=0,m=0;m<i.length;m++){var g=i[m].MicrometresPerPixelX/c,v=i[m].MicrometresPerPixelY/d,y=Math.round(i[m].Width*g),b=Math.round(i[m].Height*v);o.addAnnotation({LayerID:0,Geometry:"POLYGON ((".concat(h," ").concat(p,", ").concat(h," ").concat(p+b,", ").concat(h+y," ").concat(p+b,",").concat(h+y," ").concat(p,", ").concat(h," ").concat(p,"))"),Notes:t(i[m].Filename)}),0==l?(h+=y+s,f=Math.max(f,b)):(p+=b+s,f=Math.max(f,y)),(m+1)%u==0&&(0==l?(h=0,p+=f+s,f=0):(p=0,h+=f+s,f=0))}}})}}}]),e}()},function(e,t,n){n.d(t,"a",(function(){return bt}));var r=n(142),i=n.n(r),o=n(25),a=n.n(o),s=n(26),l=n.n(s),c=n(243),d=n(156),u=n(193),h=n(238),p=n(241),f=n(240),m=n(42),g=n(239),v=n(166),y=n(55),b=n(65),_=n(67),w=n(141),x=n(130),C=n(44),S=n(129),E=n(176),k=n(22),T=n(63),O=n(37),$=n(18),P=n(41),I=(n(157),n(7)),L=n(3),A=n(2),M=n(8),j=n.n(M),R=n(227),D=n(16),F=n(170),N=n(148),B=n(49);function U(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var r=Object(B.a)(e),i=Object(B.c)(t),o=i.type,a=t.bbox,s=i.coordinates;if(a&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(r,a))return!1;"Polygon"===o&&(s=[s]);for(var l=!1,c=0;c<s.length&&!l;c++)if(z(r,s[c][0],n.ignoreBoundary)){for(var d=!1,u=1;u<s[c].length&&!d;)z(r,s[c][u],!n.ignoreBoundary)&&(d=!0),u++;d||(l=!0)}return l}function z(e,t,n){var r=!1;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&(t=t.slice(0,t.length-1));for(var i=0,o=t.length-1;i<t.length;o=i++){var a=t[i][0],s=t[i][1],l=t[o][0],c=t[o][1];if(e[1]*(a-l)+s*(l-e[0])+c*(e[0]-a)==0&&(a-e[0])*(l-e[0])<=0&&(s-e[1])*(c-e[1])<=0)return!n;s>e[1]!=c>e[1]&&e[0]<(l-a)*(e[1]-s)/(c-s)+a&&(r=!r)}return r}var G=n(36),V=n(87),q=function(e){if(!e)throw new Error("geojson is required");var t=[];return Object(V.flattenEach)(e,(function(e){!function(e,t){var n=[],r=e.geometry;if(null!==r){switch(r.type){case"Polygon":n=Object(B.b)(r);break;case"LineString":n=[Object(B.b)(r)]}n.forEach((function(n){(function(e,t){var n=[];return e.reduce((function(e,r){var i,o,a,s,l,c,d=Object(G.lineString)([e,r],t);return d.bbox=(o=r,a=(i=e)[0],s=i[1],[a<(l=o[0])?a:l,s<(c=o[1])?s:c,a>l?a:l,s>c?s:c]),n.push(d),r})),n}
839)(n,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}}(e,t)})),Object(G.featureCollection)(t)},H=n(259),W=n.n(H);function Y(e,t){var n=Object(B.b)(e),r=Object(B.b)(t);if(2!==n.length)throw new Error("<intersects> line1 must only contain 2 coordinates");if(2!==r.length)throw new Error("<intersects> line2 must only contain 2 coordinates");var i=n[0][0],o=n[0][1],a=n[1][0],s=n[1][1],l=r[0][0],c=r[0][1],d=r[1][0],u=r[1][1],h=(u-c)*(a-i)-(d-l)*(s-o);if(0===h)return null;var p=((d-l)*(o-c)-(u-c)*(i-l))/h,f=((a-i)*(o-c)-(s-o)*(i-l))/h;if(p>=0&&p<=1&&f>=0&&f<=1){var m=i+p*(a-i),g=o+p*(s-o);return Object(G.point)([m,g])}return null}var X=function(e,t){var n={},r=[];if("LineString"===e.type&&(e=Object(G.feature)(e)),"LineString"===t.type&&(t=Object(G.feature)(t)),"Feature"===e.type&&"Feature"===t.type&&null!==e.geometry&&null!==t.geometry&&"LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var i=Y(e,t);return i&&r.push(i),Object(G.featureCollection)(r)}var o=W()();return o.load(q(t)),Object(V.featureEach)(q(e),(function(e){Object(V.featureEach)(o.search(e),(function(t){var i=Y(e,t);if(i){var o=Object(B.b)(i).join(",");n[o]||(n[o]=!0,r.push(i))}}))})),Object(G.featureCollection)(r)},K=function(e,t){void 0===t&&(t={});var n=Object(B.c)(e);switch(t.properties||"Feature"!==e.type||(t.properties=e.properties),n.type){case"Polygon":return function(e,t){return void 0===t&&(t={}),Z(Object(B.c)(e).coordinates,t.properties?t.properties:"Feature"===e.type?e.properties:{})}(n,t);case"MultiPolygon":return function(e,t){void 0===t&&(t={});var n=Object(B.c)(e).coordinates,r=t.properties?t.properties:"Feature"===e.type?e.properties:{},i=[];return n.forEach((function(e){i.push(Z(e,r))})),Object(G.featureCollection)(i)}(n,t);default:throw new Error("invalid poly")}};function Z(e,t){return e.length>1?Object(G.multiLineString)(e,t):Object(G.lineString)(e[0],t)}function J(e,t){for(var n=0;n<e.coordinates.length-1;n++)if(ee(e.coordinates[n],e.coordinates[n+1],t.coordinates))return!0;return!1}function Q(e,t){for(var n=0,r=t.coordinates;n<r.length;n++)if(U(r[n],e))return!0;return X(t,K(e)).features.length>0}function ee(e,t,n){var r=n[0]-e[0],i=n[1]-e[1],o=t[0]-e[0],a=t[1]-e[1];return 0==r*a-i*o&&(Math.abs(o)>=Math.abs(a)?o>0?e[0]<=n[0]&&n[0]<=t[0]:t[0]<=n[0]&&n[0]<=e[0]:a>0?e[1]<=n[1]&&n[1]<=t[1]:t[1]<=n[1]&&n[1]<=e[1])}function te(e,t){var n=!1;return Object(V.flattenEach)(e,(function(e){Object(V.flattenEach)(t,(function(t){if(!0===n)return!0;n=!function(e,t){var n=!0;return Object(V.flattenEach)(e,(function(e){Object(V.flattenEach)(t,(function(t){if(!1===n)return!1;n=function(e,t){switch(e.type){case"Point":switch(t.type){case"Point":return n=e.coordinates,r=t.coordinates,!(n[0]===r[0]&&n[1]===r[1]);case"LineString":return!J(t,e);case"Polygon":return!U(e,t)}break;case"LineString":switch(t.type){case"Point":return!J(e,t);case"LineString":return!function(e,t){return X(e,t).features.length>0}(e,t);case"Polygon":return!Q(t,e)}break;case"Polygon":switch(t.type){case"Point":return!U(t,e);case"LineString":return!Q(e,t);case"Polygon":return!function(e,t){for(var n=0,r=e.coordinates[0];n<r.length;n++)if(U(r[n],t))return!0;for(var i=0,o=t.coordinates[0];i<o.length;i++)if(U(o[i],e))return!0;return X(K(e),K(t)).features.length>0}(t,e)}}var n,r;return!1}(e.geometry,t.geometry)}))})),n}(e.geometry,t.geometry)}))})),n}var ne=n(172);function re(e,t,n,r,i){var o=n[0],a=n[1],s=e[0],l=e[1],c=t[0],d=t[1],u=c-s,h=d-l,p=(n[0]-s)*h-(n[1]-l)*u;if(null!==i){if(Math.abs(p)>i)return!1}else if(0!==p)return!1;return r?"start"===r?Math.abs(u)>=Math.abs(h)?u>0?s<o&&o<=c:c<=o&&o<s:h>0?l<a&&a<=d:d<=a&&a<l:"end"===r?Math.abs(u)>=Math.abs(h)?u>0?s<=o&&o<c:c<o&&o<=s:h>0?l<=a&&a<d:d<a&&a<=l:"both"===r&&(Math.abs(u)>=Math.abs(h)?u>0?s<o&&o<c:c<o&&o<s:h>0?l<a&&a<d:d<a&&a<l):Math.abs(u)>=Math.abs(h)?u>0?s<=o&&o<=c:c<=o&&o<=s:h>0?l<=a&&a<=d:d<=a&&a<=l}var ie=function(e,t,n){void 0===n&&(n={});for(var r=Object(B.a)(e),i=Object(B.b)(t),o=0;o<i.length-1;o++){var a=!1;
839if(n.ignoreEndVertices&&(0===o&&(a="start"),o===i.length-2&&(a="end"),0===o&&o+1===i.length-1&&(a="both")),re(i[o],i[o+1],r,a,void 0===n.epsilon?null:n.epsilon))return!0}return!1};function oe(e,t){var n=Object(B.c)(e),r=Object(B.c)(t),i=n.type,o=r.type,a=n.coordinates,s=r.coordinates;switch(i){case"Point":switch(o){case"Point":return se(a,s);default:throw new Error("feature2 "+o+" geometry not supported")}case"MultiPoint":switch(o){case"Point":return function(e,t){var n,r=!1;for(n=0;n<e.coordinates.length;n++)if(se(e.coordinates[n],t.coordinates)){r=!0;break}return r}(n,r);case"MultiPoint":return function(e,t){for(var n=0,r=t.coordinates;n<r.length;n++){for(var i=r[n],o=!1,a=0,s=e.coordinates;a<s.length;a++){if(se(i,s[a])){o=!0;break}}if(!o)return!1}return!0}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"LineString":switch(o){case"Point":return ie(r,n,{ignoreEndVertices:!0});case"LineString":return function(e,t){for(var n=!1,r=0,i=t.coordinates;r<i.length;r++){var o=i[r];if(ie({type:"Point",coordinates:o},e,{ignoreEndVertices:!0})&&(n=!0),!ie({type:"Point",coordinates:o},e,{ignoreEndVertices:!1}))return!1}return n}(n,r);case"MultiPoint":return function(e,t){for(var n=!1,r=0,i=t.coordinates;r<i.length;r++){var o=i[r];if(ie(o,e,{ignoreEndVertices:!0})&&(n=!0),!ie(o,e))return!1}return!!n}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"Polygon":switch(o){case"Point":return U(r,n,{ignoreBoundary:!0});case"LineString":return function(e,t){var n,r,i=!1,o=0;if(!ae(Object(ne.default)(e),Object(ne.default)(t)))return!1;for(;o<t.coordinates.length-1;o++)if(U({type:"Point",coordinates:(n=t.coordinates[o],r=t.coordinates[o+1],[(n[0]+r[0])/2,(n[1]+r[1])/2])},e,{ignoreBoundary:!0})){i=!0;break}return i}(n,r);case"Polygon":return function(e,t){if("Feature"===e.type&&null===e.geometry)return!1;if("Feature"===t.type&&null===t.geometry)return!1;if(!ae(Object(ne.default)(e),Object(ne.default)(t)))return!1;for(var n=0,r=Object(B.c)(t).coordinates;n<r.length;n++)for(var i=0,o=r[n];i<o.length;i++)if(!U(o[i],e))return!1;return!0}(n,r);case"MultiPoint":return function(e,t){for(var n=0,r=t.coordinates;n<r.length;n++)if(!U(r[n],e,{ignoreBoundary:!0}))return!1;return!0}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}function ae(e,t){return!(e[0]>t[0]||e[2]<t[2]||e[1]>t[1]||e[3]<t[3])}function se(e,t){return e[0]===t[0]&&e[1]===t[1]}var le=n(72),ce=n(71),de=n(29),ue=n(24),he=n(0),pe=function(e){e||(e={});var t=this;this.selection_=new O.a,this.handles_=new O.a,this.overlayLayer_=new ce.a({source:new le.a({features:this.handles_,useSpatialIndex:!1,wrapX:!1}),name:"Transform overlay",displayInLayerSwitcher:!1,style:function(e){return t.style[(e.get("handle")||"default")+(e.get("constraint")||"")+(e.get("option")||"")]}}),m.b.call(this,{handleDownEvent:this.handleDownEvent_,handleDragEvent:this.handleDragEvent_,handleMoveEvent:this.handleMoveEvent_,handleUpEvent:this.handleUpEvent_}),this.features_=e.features,"function"==typeof e.filter&&(this._filter=e.filter),this.layers_=e.layers?e.layers instanceof Array?e.layers:[e.layers]:null,this._handleEvent=e.condition||function(){return!0},this.addFn_=e.addCondition||function(){return!1},this.set("translateFeature",!1!==e.translateFeature),this.set("translate",!1!==e.translate),this.set("translateBBox",!0===e.translateBBox),this.set("stretch",!1!==e.stretch),this.set("scale",!1!==e.scale),this.set("rotate",!1!==e.rotate),this.set("keepAspectRatio",e.keepAspectRatio||function(e){return e.originalEvent.shiftKey}),this.set("modifyCenter",e.modifyCenter||function(e){return e.originalEvent.metaKey||e.originalEvent.ctrlKey}),this.set("noFlip",e.noFlip||!1),this.set("selection",!1!==e.selection),this.set("hitTolerance",e.hitTolerance||0),this.set("enableRotatedTransform",e.enableRotatedTransform||!1),this.on("propertychange",(function(){this.drawSketch_()})),this.setDefaultStyle()};(pe.prototype=Object.create(m.b.prototype)).constructor=pe,pe.prototype.Cursors={default:"auto",select:"pointer",translate:"move",rotate:"move",rotate0:"move",scale:"nesw-resize",scale1:"nwse-resize",scale2:"nesw-resize",scale3:"nwse-resize",scalev:"ew-resize",scaleh1:"ns-resize",scalev2:"ew-resize",scaleh3:"ns-resize"},pe.prototype.setMap=function(e){var t=this.getMap();if(t){var n=t.getTargetElement();t.removeLayer(this.overlayLayer_),this.previousCursor_&&n&&(n.style.cursor=this.previousCursor_),this.previousCursor_=void 0}m.b.prototype.setMap.call(this,e),this.overlayLayer_.setMap(e),null===e&&this.select(null),null!==e&&(this.isTouch=/touch/.test(e.getViewport().className),this.setDefaultStyle())},pe.prototype.setActive=function(e){this.select(null),this.overlayLayer_.setVisible(e),m.b.prototype.setActive.call(this,e)},pe.prototype.setDefaultStyle=function(){var e=new _.a({color:[255,0,0,1],width:1}),t=new _.a({color:[255,0,0,1],width:1,lineDash:[4,4]}),n=new b.a({color:[255,0,0,.01]}),r=new b.a({color:[255,255,255,.8]}),i=new S.a({fill:r,stroke:e,radius:this.isTouch?12:6,points:15});i.getAnchor()[0]=this.isTouch?-10:-5;var o=new S.a({fill:r,stroke:e,radius:this.isTouch?16:8,points:4,angle:Math.PI/4}),a=new S.a({fill:r,stroke:e,radius:this.isTouch?12:6,points:4,angle:Math.PI/4});function s(e,t,n){return[new C.c({image:e,stroke:t,fill:n})]}this.style={default:s(o,t,n),translate:s(o,e,r),rotate:s(i,e,r),rotate0:s(o,e,r),scale:s(o,e,r),scale1:s(o,e,r),scale2:s(o,e,r),scale3:s(o,e,r),scalev:s(a,e,r),scaleh1:s(a,e,r),scalev2:s(a,e,r),scaleh3:s(a,e,r)},this.drawSketch_()},pe.prototype.setStyle=function(e,t){if(t){this.style[e]=t instanceof Array?t:[t];for(var n=0;n<this.style[e].length;n++){var r=this.style[e][n].getImage();r&&("rotate"==e&&(r.getAnchor()[0]=-5),this.isTouch&&r.setScale(1.8));var i=this.style[e][n].getText();i&&("rotate"==e&&i.setOffsetX(this.isTouch?14:7),this.isTouch&&i.setScale(1.8))}this.drawSketch_()}},pe.prototype.getFeatureAtPixel_=function(e){var t=this;
839return this.getMap().forEachFeatureAtPixel(e,(function(e,n){var r=!1;if(!n){if(e===t.bbox_)return!!t.get("translateBBox")&&{feature:e,handle:"translate",constraint:"",option:""};if(t.handles_.forEach((function(t){t===e&&(r=!0)})),r)return{feature:e,handle:e.get("handle"),constraint:e.get("constraint"),option:e.get("option")}}if(!t.get("selection"))return t.selection_.getArray().some((function(t){return e===t}))?{feature:e}:null;if(t._filter)return t._filter(e,n)?{feature:e}:null;if(t.layers_){for(var i=0;i<t.layers_.length;i++)if(t.layers_[i]===n)return{feature:e};return null}return t.features_?(t.features_.forEach((function(t){t===e&&(r=!0)})),r?{feature:e}:null):{feature:e}}),{hitTolerance:this.get("hitTolerance")})||{}},pe.prototype.getGeometryRotateToZero_=function(e,t){var n=e.getGeometry(),r=this.getMap().getView().getRotation();if(0===r||!this.get("enableRotatedTransform"))return t?n.clone():n;var i=n.clone();return i.rotate(-1*r,this.getMap().getView().getCenter()),i},pe.prototype.drawSketch_=function(e){var t,n,r;if(this.overlayLayer_.getSource().clear(),this.selection_.getLength()){var i=this.getMap().getView().getRotation(),o=this.getGeometryRotateToZero_(this.selection_.item(0)).getExtent();if(o=Object(he.buffer)(o,0),this.selection_.forEach(function(e){var t=this.getGeometryRotateToZero_(e).getExtent();Object(he.extend)(o,t)}.bind(this)),!0===e)this.ispt_||(this.overlayLayer_.getSource().addFeature(new ue.a({geometry:new de.a(this.center_),handle:"rotate0"})),r=Object(k.c)(o),this.get("enableRotatedTransform")&&0!==i&&r.rotate(i,this.getMap().getView().getCenter()),n=this.bbox_=new ue.a(r),this.overlayLayer_.getSource().addFeature(n));else{if(this.ispt_){var a=this.getMap().getPixelFromCoordinate([o[0],o[1]]);o=Object(he.boundingExtent)([this.getMap().getCoordinateFromPixel([a[0]-10,a[1]-10]),this.getMap().getCoordinateFromPixel([a[0]+10,a[1]+10])])}r=Object(k.c)(o),this.get("enableRotatedTransform")&&0!==i&&r.rotate(i,this.getMap().getView().getCenter()),n=this.bbox_=new ue.a(r);var s=[],l=r.getCoordinates()[0];if(!this.ispt_){if(s.push(n),!this.iscircle_&&this.get("stretch")&&this.get("scale"))for(t=0;t<l.length-1;t++)n=new ue.a({geometry:new de.a([(l[t][0]+l[t+1][0])/2,(l[t][1]+l[t+1][1])/2]),handle:"scale",constraint:t%2?"h":"v",option:t}),s.push(n);if(this.get("scale"))for(t=0;t<l.length-1;t++)n=new ue.a({geometry:new de.a(l[t]),handle:"scale",option:t}),s.push(n);this.get("translate")&&!this.get("translateFeature")&&(n=new ue.a({geometry:new de.a([(l[0][0]+l[2][0])/2,(l[0][1]+l[2][1])/2]),handle:"translate"}),s.push(n))}!this.iscircle_&&this.get("rotate")&&(n=new ue.a({geometry:new de.a(l[3]),handle:"rotate"}),s.push(n)),this.overlayLayer_.getSource().addFeatures(s)}}},pe.prototype.select=function(e,t){if(!e)return this.selection_.clear(),void this.drawSketch_();if(e.getGeometry&&e.getGeometry()){if(t)this.selection_.push(e);else{var n=this.selection_.getArray().indexOf(e);this.selection_.removeAt(n)}this.ispt_=1===this.selection_.getLength()&&"Point"==this.selection_.item(0).getGeometry().getType(),this.iscircle_=1===this.selection_.getLength()&&"Circle"==this.selection_.item(0).getGeometry().getType(),this.drawSketch_(),this.watchFeatures_(),this.dispatchEvent({type:"select",feature:e,features:this.selection_})}},pe.prototype.setSelection=function(e){this.selection_.clear(),e.forEach(function(e){this.selection_.push(e)}.bind(this)),this.ispt_=1===this.selection_.getLength()&&"Point"==this.selection_.item(0).getGeometry().getType(),this.iscircle_=1===this.selection_.getLength()&&"Circle"==this.selection_.item(0).getGeometry().getType(),this.drawSketch_(),this.watchFeatures_(),this.dispatchEvent({type:"select",features:this.selection_})},pe.prototype.watchFeatures_=function(){this._featureListeners&&this._featureListeners.forEach((function(e){Object(y.b)(e)})),this._featureListeners=[],this.selection_.forEach(function(e){this._featureListeners.push(e.on("change",function(){this.isUpdating_||this.drawSketch_()}.bind(this)))}.bind(this))},pe.prototype.handleDownEvent_=function(e){if(this._handleEvent(e,this.selection_)){var t=this.getFeatureAtPixel_(e.pixel),n=t.feature;if(this.selection_.getLength()&&this.selection_.getArray().indexOf(n)>=0&&(this.ispt_&&this.get("translate")||this.get("translateFeature"))&&(t.handle="translate"),t.handle){this.mode_=t.handle,this.opt_=t.option,this.constraint_=t.constraint;var r=this.getMap().getView().getRotation();
839this.coordinate_=e.coordinate,this.pixel_=e.pixel,this.geoms_=[],this.rotatedGeoms_=[];for(var i,o=Object(he.createEmpty)(),a=Object(he.createEmpty)(),s=0;i=this.selection_.item(s);s++)if(this.geoms_.push(i.getGeometry().clone()),o=Object(he.extend)(o,i.getGeometry().getExtent()),this.get("enableRotatedTransform")&&0!==r){var l=this.getGeometryRotateToZero_(i,!0);this.rotatedGeoms_.push(l),a=Object(he.extend)(a,l.getExtent())}if(this.extent_=Object(k.c)(o).getCoordinates()[0],this.get("enableRotatedTransform")&&0!==r&&(this.rotatedExtent_=Object(k.c)(a).getCoordinates()[0]),"rotate"===this.mode_){this.center_=this.getCenter()||Object(he.getCenter)(o);var c=e.map.getTargetElement();c.style.cursor=this.Cursors.rotate0,this.previousCursor_=c.style.cursor}else this.center_=Object(he.getCenter)(o);return this.angle_=Math.atan2(this.center_[1]-e.coordinate[1],this.center_[0]-e.coordinate[0]),this.dispatchEvent({type:this.mode_+"start",feature:this.selection_.item(0),features:this.selection_,pixel:e.pixel,coordinate:e.coordinate}),!0}if(this.get("selection")){if(n){this.addFn_(e)||this.selection_.clear();var d=this.selection_.getArray().indexOf(n);d<0?this.selection_.push(n):this.selection_.removeAt(d)}else this.selection_.clear();return this.ispt_=1===this.selection_.getLength()&&"Point"==this.selection_.item(0).getGeometry().getType(),this.iscircle_=1===this.selection_.getLength()&&"Circle"==this.selection_.item(0).getGeometry().getType(),this.drawSketch_(),this.watchFeatures_(),this.dispatchEvent({type:"select",feature:n,features:this.selection_,pixel:e.pixel,coordinate:e.coordinate}),!1}}},pe.prototype.getFeatures=function(){return this.selection_},pe.prototype.getCenter=function(){return this.get("center")},pe.prototype.setCenter=function(e){return this.set("center",e)},pe.prototype.handleDragEvent_=function(e){if(this._handleEvent(e,this.features_)){var t,n,r,i=this.getMap().getView().getRotation(),o=[this.coordinate_[0],this.coordinate_[1]],a=[e.coordinate[0],e.coordinate[1]];switch(this.isUpdating_=!0,this.mode_){case"rotate":var s=Math.atan2(this.center_[1]-a[1],this.center_[0]-a[0]);if(!this.ispt)for(t=0;n=this.selection_.item(t);t++)(r=this.geoms_[t].clone()).rotate(s-this.angle_,this.center_),"Circle"==r.getType()&&r.setCenterAndRadius(r.getCenter(),r.getRadius()),n.setGeometry(r);this.drawSketch_(!0),this.dispatchEvent({type:"rotating",feature:this.selection_.item(0),features:this.selection_,angle:s-this.angle_,pixel:e.pixel,coordinate:e.coordinate});break;case"translate":var l=a[0]-o[0],c=a[1]-o[1];for(t=0;n=this.selection_.item(t);t++)n.getGeometry().translate(l,c);this.handles_.forEach((function(e){e.getGeometry().translate(l,c)})),this.coordinate_=e.coordinate,this.dispatchEvent({type:"translating",feature:this.selection_.item(0),features:this.selection_,delta:[l,c],pixel:e.pixel,coordinate:e.coordinate});break;case"scale":var d=this.center_;if(this.get("modifyCenter")(e)){var u=this.extent_;this.get("enableRotatedTransform")&&0!==i&&(u=this.rotatedExtent_),d=u[(Number(this.opt_)+2)%4]}var h=this.coordinate_,p=e.coordinate;if(this.get("enableRotatedTransform")&&0!==i){var f=new de.a(this.coordinate_);f.rotate(-1*i,d),h=f.getCoordinates();var m=new de.a(e.coordinate);m.rotate(-1*i,d),p=m.getCoordinates()}var g=(p[0]-d[0])/(h[0]-d[0]),v=(p[1]-d[1])/(h[1]-d[1]);if(this.get("enableRotatedTransform")&&0!==i){var y=new de.a(d);y.rotate(-1*i,this.getMap().getView().getCenter()),d=y.getCoordinates()}for(this.get("noFlip")&&(g<0&&(g=-g),v<0&&(v=-v)),this.constraint_?"h"==this.constraint_?g=1:v=1:this.get("keepAspectRatio")(e)&&(g=v=Math.min(g,v)),t=0;n=this.selection_.item(t);t++)(r=0!==i&&this.get("enableRotatedTransform")?this.rotatedGeoms_[t].clone():this.geoms_[t].clone()).applyTransform((function(e,t,n){if(n<2)return t;for(var i=0;i<e.length;i+=n)1!=g&&(t[i]=d[0]+(e[i]-d[0])*g),1!=v&&(t[i+1]=d[1]+(e[i+1]-d[1])*v);return"Circle"==r.getType()&&r.setCenterAndRadius(r.getCenter(),r.getRadius()),t})),this.get("enableRotatedTransform")&&0!==i&&r.rotate(i,this.getMap().getView().getCenter()),n.setGeometry(r);this.drawSketch_(),this.dispatchEvent({type:"scaling",feature:this.selection_.item(0),features:this.selection_,scale:[g,v],pixel:e.pixel,coordinate:e.coordinate})}this.isUpdating_=!1}},pe.prototype.handleMoveEvent_=function(e){if(this._handleEvent(e,this.features_)&&!this.mode_){var t=this.getFeatureAtPixel_(e.pixel),n=e.map.getTargetElement();if(t.feature){var r=t.handle?this.Cursors[(t.handle||"default")+(t.constraint||"")+(t.option||"")]:this.Cursors.select;void 0===this.previousCursor_&&(this.previousCursor_=n.style.cursor),n.style.cursor=r}else void 0!==this.previousCursor_&&(n.style.cursor=this.previousCursor_),this.previousCursor_=void 0}},pe.prototype.handleUpEvent_=function(e){return"rotate"===this.mode_&&(e.map.getTargetElement().style.cursor=this.Cursors.default,this.previousCursor_=void 0),this.dispatchEvent({type:this.mode_+"end",feature:this.selection_.item(0),features:this.selection_,oldgeom:this.geoms_[0],oldgeoms:this.geoms_}),this.drawSketch_(),this.mode_=null,!1},pe.prototype.getFeatures=function(){return this.selection_};var fe=pe,me=n(195),ge=function(e){e||(e={}),this.pointer_=null,this.map_=e.map||function(){return!1},this.sel_=e.feature||null,this.feature_=null,this.layer_=e.layer||function(){return!1},this.idToDelete_=null,this.translate_=null,this.isDragging_=!1,m.b.call(this,{handleEvent:this.handleEvent_}),this.set("brushSize",e.brushSize||500),this.set("brushType",e.brushType||ve.CIRCLE),this.set("brushMode",e.brushMode||ye.BRUSH),this.on("propertychange",(function(){}))};(ge.prototype=Object.create(m.b.prototype)).constructor=ge;var ve={CIRCLE:"circle",SQUARE:"square"},ye={BRUSH:"brush",ERASER:"eraser"};ge.prototype.setActive=function(e){m.b.prototype.setActive.call(this,e)},ge.prototype.setBrushSize=function(e){null==e||null==e||e<=0||this.get("brushSize")!=e&&(this.set("brushSize",e),this.setPointer_())},ge.prototype.getBrushSize=function(){return this.get("brushSize")},ge.prototype.setBrushType=function(e){null!=e&&null!=e&&this.get("brushType")!=e&&(this.set("brushType",e),this.setPointer_())},ge.prototype.getBrushType=function(){return this.get("brushType")},ge.prototype.setBrushMode=function(e){null!=e&&null!=e&&this.get("brushMode")!=e&&(this.set("brushMode",e),this.setPointer_())},ge.prototype.getBrushMode=function(){return this.get("brushMode")},ge.prototype.setPointer_=function(){null!=this.format_&&null!=this.format_||(this.format_=new d.a),null!=this.formatOptions_&&null!=this.formatOptions_||(this.formatOptions_={featureProjection:this.map_.getView().getProjection()});var e=null;if(this.get("brushType")==ve.CIRCLE&&(e=Object(k.b)(new E.a([0,0],this.get("brushSize")))),this.get("brushType")==ve.SQUARE){var t=this.get("brushSize");e=new k.a([[[-1*t,t],[t,t],[t,-1*t],[-1*t,-1*t],[-1*t,t]]])}var n=new ue.a({geometry:e});
839n.color="#000",n.fillColor="#00000099",n.penSize=1,null!=this.pointer_&&(this.layer_.getSource().removeFeature(this.pointer_),this.map_.removeInteraction(this.translate_)),this.pointer_=n,this.map_.getViewport().style.cursor="none",this.translate_=new me.a({features:new O.a([this.pointer_])}),this.layer_.getSource().addFeature(this.pointer_),this.map_.addInteraction(this.translate_)},ge.prototype.handleEvent_=function(e){switch(e.type){case"pointerdown":this.handleDownEvent_(e);break;case"pointermove":this.handleMoveEvent_(e);break;case"pointerdrag":this.isDragging_?this.handleDragEvent_(e):this.handleDownEvent_(e);break;case"pointerup":this.handleUpEvent_(e);break;default:return!0}},ge.prototype.handleDownEvent_=function(e){try{var t=this.getFeatureAtPixel_(e.pixel).feature;t?(this.isDragging_=!0,this.feature_=t,this.sel_||(this.sel_=t)):(this.isDragging_=!1,this.feature_=null)}catch(e){this.isDragging_=!1,this.feature_=null}this.get("brushMode")==ye.BRUSH&&this.dispatchEvent("drawingstart"),this.get("brushMode")==ye.ERASER&&this.dispatchEvent("erasingstart")},ge.prototype.handleDragEvent_=function(e){var t=this;e.preventDefault();var n=null;if(null!=(n=this.sel_?this.sel_:this.feature_)&&null!=n){var r=this.format_,i=this.formatOptions_,o=this.pointer_;if(n.metaData)var a=n.metaData.Notes?n.metaData.Notes:"",s=n.metaData.Color?n.metaData.Color:n.color,l=n.metaData.FillColor?n.metaData.FillColor:n.fillColor,c=n.metaData.LineThickness?n.metaData.LineThickness:n.penSize;var d=n.icon||null;if(this.get("brushMode")!=ye.BRUSH||"Polygon"===n.getGeometry().getType()||"MultiPolygon"===n.getGeometry().getType())if(this.get("brushMode")!=ye.ERASER||"Polygon"===n.getGeometry().getType()){var u=r.writeFeatureObject(n,i),h=r.writeFeatureObject(o,i),p=null;if(this.get("brushMode")==ye.BRUSH){try{if(!te(u,h))return}catch(e){console.error("Intersection failed! Geometry is broken. Fixing...")}p=this.unify_(u,h)}if(this.get("brushMode")==ye.ERASER){if(oe(h,u))return this.idToDelete_=u.id,this.feature_=null,void this.dispatchEvent("erasing");try{if(!te(u,h))return}catch(e){console.error("Intersection failed! Geometry is broken. Fixing..."),p=this.unify_(u,h)}if(oe(u,h))return;p=this.differentiate_(u,h)}if(null!=p)if("MultiPolygon"===p.geometry.type)p.geometry.coordinates.forEach((function(e){var n={type:"Polygon",coordinates:e},o=r.readFeature(n,i);o.color=s,o.fillColor=l,o.penSize=c,o.icon=d,o.notes=a||"",o.drawingType=L.a.ClosedFreehand,t.idToDelete_=u.id,t.feature_=o,t.get("brushMode")==ye.BRUSH&&t.dispatchEvent("drawing"),t.get("brushMode")==ye.ERASER&&t.dispatchEvent("erasing")}));else{var f=r.readFeature(p,i);n.drawingType=L.a.ClosedFreehand,n.setGeometry(f.getGeometry()),n.changed(),this.idToDelete_=null,this.feature_=n,this.get("brushMode")==ye.BRUSH&&this.dispatchEvent("drawing"),this.get("brushMode")==ye.ERASER&&this.dispatchEvent("erasing")}}else console.error("Feature contains non-polygon geometry");else console.error("Feature contains non-polygon geometry")}},ge.prototype.handleMoveEvent_=function(e){null==this.map_&&(this.map_=e.map),null==this.pointer_&&this.setPointer_();var t=this.pointer_.getGeometry().getExtent(),n=he.getCenter(t);this.pointer_.getGeometry().translate(e.coordinate[0]-n[0],e.coordinate[1]-n[1])},ge.prototype.handleUpEvent_=function(){this.isDragging_=!1,this.feature_=null,this.get("brushMode")==ye.BRUSH&&this.dispatchEvent("drawingend"),this.get("brushMode")==ye.ERASER&&this.dispatchEvent("erasingend")},ge.prototype.unify_=function(e,t){var n=Object(F.a)(e,t);if("FeatureCollection"===n.type)throw"Feature collection detected";return"MultiPolygon"===n.geometry.type?null:n},ge.prototype.differentiate_=function(e,t){var n=Object(N.a)(e,t);if(!n)return null;if("FeatureCollection"===n.type)throw"Feature collection detected";return n},ge.prototype.getFeatureAtPixel_=function(e){var t=this,n=this.get("brushSize"),r=new k.a([[[-1*n,n],[n,n],[n,-1*n],[-1*n,-1*n],[-1*n,n]]]).getCoordinates(),i=this.map_.getPixelFromCoordinate(r[0][0]),o=(this.map_.getPixelFromCoordinate(r[0][1])[0]-i[0])/2;return this.map_.forEachFeatureAtPixel(e,(function(e,n){return t.layer_===n&&e!==t.pointer_?{feature:e}:null}),{hitTolerance:o})||null},ge.prototype.getFeature=function(){return this.sel_},ge.prototype.getId=function(){return this.idToDelete_},ge.prototype.stopEditing=function(){this.map_&&(this.map_.getViewport().style.cursor="unset",this.map_.removeInteraction(this.translate_),this.map_.removeInteraction(this)),this.layer_&&this.pointer_&&this.layer_.getSource().removeFeature
839(this.pointer_),this.dispatchEvent("brushend"),m.b.prototype.setActive.call(this,!1)};var be=ge,_e=n(88),we=n.n(_e),xe=n(53),Ce=n.n(xe),Se=n(57),Ee=n.n(Se),ke=n(31),Te=n.n(ke),Oe=n(60),$e=n(137),Pe=n.n($e);function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Te()(e);if(t){var i=Te()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ee()(this,n)}}var Le=function(e){Ce()(n,e);var t=Ie(n);function n(e){var r;return a()(this,n),(r=t.call(this)).map=e.map,r.layers=null,r.mask=null,r.border_=null,r.hatchInterval_=null,r.hatchOffset_=0,r.hatchLength=e.hatchLength,r.hatchTimeout=e.hatchTimeout,r.size=null,r.context=null,r.snapshot=null,r.contextWithoutMask=document.createElement("canvas").getContext("2d"),r.bytes=4,r.loading_=!1,r.lock_=!1,r.mapKeys_=null,r.layersKeys_=null,r.mapKeyOnceComplete=null,r.mapKeyOnceRender=null,r.createCanvas(),r.connectToMap(),r.setLayers(e.layers),r.hatchTimeout&&r.hatchTimeout>0&&(r.hatchInterval=setInterval((function(){return r.hatchTick_()}),r.hatchTimeout)),r}return l()(n,[{key:"createCanvas",value:function(){this.context=document.createElement("canvas").getContext("2d"),this.setCanvasSize(),this.clearMask()}},{key:"setCanvasSize",value:function(){var e=this.map.getSize();this.context.canvas.width=e[0],this.context.canvas.height=e[1],this.contextWithoutMask.canvas.width=e[0],this.contextWithoutMask.canvas.height=e[1],this.size={w:e[0],h:e[1]}}},{key:"disposeInternal",value:function(){this.disconnectFromMap(),this.disconnectFromLayers(),this.clearMask(),this.hatchInterval&&clearInterval(this.hatchInterval),this.layers=null,this.contextWithoutMask=null,this.context=null,this.snapshot=null,this.map=null,we()(Te()(n.prototype),"disposeInternal",this).call(this)}},{key:"connectToMap",value:function(){this.mapKeys_=[this.map.getView().on("change:resolution",this.onViewResChanged_.bind(this)),this.map.on("change:size",this.onMapSizeChanged_.bind(this)),this.map.on("moveend",this.onMapMoved_.bind(this)),this.map.on("postrender",this.onPostRender_.bind(this))]}},{key:"disconnectFromMap",value:function(){this.mapKeys_&&(Object(y.b)(this.mapKeys_),this.mapKeys_=null),this.mapKeyOnceComplete&&(Object(y.b)(this.mapKeyOnceComplete),this.mapKeyOnceComplete=null),this.mapKeyOnceRender&&(Object(y.b)(this.mapKeyOnceRender),this.mapKeyOnceRender=null)}},{key:"onViewResChanged_",value:function(){this.createCanvas(),this.setCanvasSize()}},{key:"onMapSizeChanged_",value:function(){var e=this;this.setCanvasSize(),setTimeout((function(){return e.scan()}),50)}},{key:"onMapMoved_",value:function(){this.scan()}},{key:"setLayers",value:function(e){return!!e&&(this.disconnectFromLayers(),this.layers=Array.isArray(e)?e:[e],this.connectToLayers(),this.scan(),!0)}},{key:"connectToLayers",value:function(){var e=this;this.layersKeys_=[],this.layers.forEach((function(t){e.layersKeys_.push(t.on("change",(function(){return e.scan()})),t.on("propertychange",(function(){return e.scan()})))}))}},{key:"disconnectFromLayers",value:function(){this.layersKeys_&&(Object(y.b)(this.layersKeys_),this.layersKeys_=null)}},{key:"isReady",value:function(){return!this.loading_&&null!=this.snapshot}},{key:"scan",value:function(){var e=this;if(!this.loading_&&this.map&&(this.snapshot=null,this.hasVisibleLayers_())){this.dispatchEvent("scanStarted");var t=this.map.getSize();this.size={w:t[0],h:t[1]},this.loading_=!0,this.mapKeyOnceComplete=this.map.once("rendercomplete",(function(){e.lock_||(e.mapKeyOnceRender=e.map.once("postrender",(function(){e.getRenderLayers_().length>0&&(e.snapshot=e.contextWithoutMask.getImageData(0,0,e.size.w,e.size.h).data),e.loading_=!1,e.lock_=!1,e.dispatchEvent("scanFinished")}))),e.lock_=!0,e.map.render()})),this.map.render()}}},{key:"hasVisibleLayers_",value:function(){return null!=this.layers&&this.layers.filter((function(e){return e.getVisible()&&e.getOpacity()>0})).length>0}},{key:"onPostRender_",value:function(){var e=this;this.lock_&&(this.contextWithoutMask.clearRect(0,0,this.size.w,this.size.h),this.getRenderLayers_().forEac
839h((function(t){var n=t.getRenderer().context.canvas;e.contextWithoutMask.drawImage(n,0,0,n.width,n.height,0,0,e.size.w,e.size.h)}))),this.drawBorder()}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.getRenderLayers_();if(0!=t.length){var n=t[t.length-1].getRenderer().context;if(e){var r=this.contextWithoutMask;n.drawImage(r.canvas,0,0,r.canvas.width,r.canvas.height,0,0,n.canvas.width,n.canvas.height)}var i=this.context;n.drawImage(i.canvas,0,0,i.canvas.width,i.canvas.height,0,0,n.canvas.width,n.canvas.height)}}},{key:"getRenderLayers_",value:function(){return null==this.layers?[]:this.layers.filter((function(e){var t=e.getRenderer().context;return t&&e.getVisible()&&e.getOpacity()>0&&t.canvas.width>0&&t.canvas.height>0})).sort((function(e,t){return e.getZIndex()-t.getZIndex()}))}},{key:"hatchTick_",value:function(){return this.hatchOffset_=(this.hatchOffset_+1)%(2*this.hatchLength),this.drawBorder(!1)}},{key:"clearMask",value:function(){this.mask=null,this.border_=null,this.context&&this.context.clearRect(0,0,this.size.w,this.size.h),this.map.render()}},{key:"setMask",value:function(e){this.mask=e,this.map.render()}},{key:"drawBorder",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.mask)return!1;var t,n,r,i,o,a=this.size.w,s=this.size.h,l=this.size.w-1,c=this.size.h-1,d=this.size.w+2,u=this.size.h+2;if(e){var h,p,f,m,g,v,y,b,_,w,x,C=Ae.getMainWorldOffset(this.map),S=this.mask.data,E=this.mask.width,k=this.mask.bounds,T=this.mask.globalOffset,O=new Uint8Array(d*u);for(h=T.x-C.x,p=T.y-C.y,f=h+k.minX,m=p+k.minY,g=h+k.maxX,v=p+k.maxY,g<0||f>l||v<0||m>c||(b=f>-1?f:-1,w=m>-1?m:-1,_=g<l+1?g:l+1,x=v<c+1?v:c+1),o=_-b+1,t=(w+1)*d+(b+1),y=(x-p)*E+(b-h)+1,r=(w-p)*E+(b-h);r<y;r+=E){for(i=0;i<o;i++)1===S[r+i]&&(O[t+i]=1);t+=d}this.border_=Pe.a.getBorderIndices({data:O,width:d,height:u})}this.context.clearRect(0,0,a,s);var $=this.border_;if(!$)return!1;var P,I,L=this.context.createImageData(a,s),A=L.data,M=this.hatchLength,j=2*M,R=this.hatchOffset_;for(o=$.length,n=0;n<o;n++)I=((t=$[n])-(P=t%d))/d,I-=1,(P-=1)<0||P>l||I<0||I>c||(r=4*(I*a+P),(P+I+R)%j<M||(A[r]=255,A[r+1]=255,A[r+2]=255),A[r+3]=255);return this.context.putImageData(L,0,0),this.render(),!0}},{key:"getPixelColor",value:function(e,t){var n=(t*this.size.w+e)*this.bytes;return[this.snapshot[n],this.snapshot[n+1],this.snapshot[n+2],this.snapshot[n+3]]}},{key:"toImageUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image/png";if(!this.isReady()||!this.size)return null;var t=document.createElement("canvas"),n=t.getContext("2d");n.canvas.width=this.size.w,n.canvas.height=this.size.h;for(var r=n.createImageData(this.size.w,this.size.h),i=0;i<this.snapshot.length;i++)r.data[i]=this.snapshot[i];return n.putImageData(r,0,0),t.toDataURL(e)}}]),n}(Oe.a),Ae=function(e){Ce()(n,e);var t=Ie(n);function n(e){var r;return a()(this,n),(r=t.call(this)).layers=e.layers,r.backgroundColor=null==e.backgroundColor?"ffffff":e.backgroundColor,r.hatchLength=null==e.hatchLength?4:e.hatchLength,r.hatchTimeout=null==e.hatchTimeout?300:e.hatchTimeout,r.colorThreshold=null==e.colorThreshold?15:e.colorThreshold,r.blurRadius=null==e.blurRadius?5:e.blurRadius,r.includeBorders=null==e.includeBorders||e.includeBorders,r.currentThreshold_=r.colorThreshold,r.history=0==e.history?null:new Me,r.tileMask_=null,r.isMapConnect_=!1,r.allowDraw_=!1,r.addMode_=!1,r.oldMask_=null,r.downPoint_=null,r.mapKeys_=null,r.allowAdd_=null==e.addMode||e.addMode,r.isDebug_=null!=e.debugMode&&e.debugMode,e.waitClass&&(r.waitClass=e.waitClass),e.drawClass&&(r.drawClass=e.drawClass),e.addClass&&(r.addClass=e.addClass),r}return l()(n,[{key:"handleDragEvent",value:function(e){}},{key:"handleDownEvent",value:function(e){var t=e.originalEvent;if(0!=t.button)return this.allowDraw_=!1,this.oldMask_=null,this.addMode_=!1,!1;if(this.tileMask_&&this.tileMask_.isReady()&&!this.getMap().getView().getAnimating()){var n=this.getMap().getEventPixel(t);return this.downPoint_={x:Math.round(n[0]),y:Math.round(n[1])},this.allowDraw_=!0,this.addMode_=t.shiftKey,this.drawMask_(this.downPoint_.x,this.downPoint_.y),!0}}},{key:"handleUpEvent",value:function(e){return e.originalEvent,this.allowDraw_&&this.tileMask_&&this.history&&this.history.addMask(this.tileMask_.mask),this.currentThreshold_=this.colorThreshold,this.allowDraw_=!1,this.oldMask_=null,this.addMode_=!1,!1}},{key:"onMapKeyDown_",value:function(e){var t=this.getMap();if(t){var n=t.getTargetElement();
83916==e.keyCode&&null!=this.addClass&&this.allowAdd_&&n.classList.add(this.addClass)}}},{key:"onMapKeyUp_",value:function(e){var t=this.getMap();if(t){var n=t.getTargetElement(),r=t.getView();if(16==e.keyCode&&this.allowAdd_&&n.classList.remove(this.addClass),83==e.keyCode&&this.isDebug_){if(!this.tileMask_||!this.tileMask_.isReady()||r.getInteracting()||r.getAnimating())return;this.tileMask_.context.clearRect(0,0,this.tileMask_.size.w,this.tileMask_.size.h),this.tileMask_.render(!0)}if(67==e.keyCode&&this.isDebug_){if(!this.tileMask_||!this.tileMask_.isReady()||r.getInteracting()||r.getAnimating())return;var i=this.getContours();if(null==i)return;var o,a,s,l=i.filter((function(e){return!e.inner})),c=i.filter((function(e){return e.inner})),d=this.tileMask_.context;for(d.clearRect(0,0,this.tileMask_.size.w,this.tileMask_.size.h),d.beginPath(),o=0;o<l.length;o++)for(s=l[o].points,d.moveTo(s[0].x,s[0].y),a=1;a<s.length;a++)d.lineTo(s[a].x,s[a].y);for(d.strokeStyle="green",d.stroke(),d.beginPath(),o=0;o<c.length;o++)for(s=c[o].points,d.moveTo(s[0].x,s[0].y),a=1;a<s.length;a++)d.lineTo(s[a].x,s[a].y);d.strokeStyle="red",d.stroke(),this.tileMask_.render(!0)}if(e.ctrlKey&&this.history){var u=null;89==e.keyCode&&(u=this.history.redo()),90==e.keyCode&&(u=this.history.undo()),u&&this.tileMask_&&this.tileMask_.setMask(u)}}}},{key:"setActive",value:function(e){!this.getActive()&&e&&this.onActivate_(),this.getActive()&&!e&&this.onDeactivate_(),we()(Te()(n.prototype),"setActive",this).call(this,e)}},{key:"stopEditing",value:function(){this.setActive(!1)}},{key:"onActivate_",value:function(){var e=this.getMap();e&&(this.connectToMap(e),this.createMask(e))}},{key:"onDeactivate_",value:function(){this.allowDraw_=!1,this.downPoint_=null,this.oldMask_=null,this.addMode_=!1,this.disconnectFromMap(),this.tileMask_&&this.tileMask_.dispose(),this.tileMask_=null,this.clearHistory_()}},{key:"disposeInternal",value:function(){this.onDeactivate_(),this.history&&this.history.dispose(),this.history=null,this.layers=null,we()(Te()(n.prototype),"disposeInternal",this).call(this)}},{key:"setMap",value:function(e){this.onDeactivate_(),we()(Te()(n.prototype),"setMap",this).call(this,e),this.getActive()&&this.onActivate_()}},{key:"connectToMap",value:function(e){var t=this;this.mapKeys_=[e.getView().on("change:resolution",this.onViewResChanged_.bind(this))],this.keyDownListener=this.onMapKeyDown_.bind(this),this.keyUpListener=this.onMapKeyUp_.bind(this),document.addEventListener("keydown",this.keyDownListener),document.addEventListener("keyup",this.keyUpListener);var n=e.getTargetElement();this.drawClass&&n.classList.add(this.drawClass),this.onMapContextMenuListener_=function(e){t.getActive()&&e.preventDefault()},n.addEventListener("contextmenu",this.onMapContextMenuListener_)}},{key:"disconnectFromMap",value:function(){this.mapKeys_&&(Object(y.b)(this.mapKeys_),this.mapKeys_=null),document.removeEventListener("keydown",this.keyDownListener),document.removeEventListener("keyup",this.keyUpListener);var e=this.getMap();if(e){var t=e.getTargetElement();t.classList.remove(this.drawClass),t.classList.remove(this.waitClass),t.classList.remove(this.addClass),t.removeEventListener("contextmenu",this.onMapContextMenuListener_)}}},{key:"onViewResChanged_",value:function(){this.clearHistory_()}},{key:"clearHistory_",value:function(){this.history&&this.history.clear()}},{key:"createMask",value:function(e){var t=this,n=e.getTargetElement();this.tileMask_=new Le({map:e,layers:this.layers,hatchTimeout:this.hatchTimeout,hatchLength:this.hatchLength,imageWidth:this.imageWidth,imageHeight:this.imageHeight}),this.waitClass&&(this.tileMask_.on("scanStarted",(function(){return n.classList.add(t.waitClass)})),this.tileMask_.on("scanFinished",(function(){return n.classList.remove(t.waitClass)})))}},{key:"concatMask_",value:function(e,t){var n,r,i,o,a,s,l=t.data,c=e.data,d=t.width,u=e.width,h=t.globalOffset.x,p=t.globalOffset.y,f=e.globalOffset.x,m=e.globalOffset.y,g=t.bounds,v=e.bounds,y=Math.min(g.minX+h,v.minX+f),b=Math.min(g.minY+p,v.minY+m),_={minX:0,minY:0,maxX:Math.max(g.maxX+h,v.maxX+f)-y,maxY:M
839ath.max(g.maxY+p,v.maxY+m)-b},w=_.maxX+1,x=_.maxY+1,C=new Uint8Array(w*x);for(s=g.maxX-g.minX+1,n=(p-b+g.minY)*w+(h-y+g.minX),o=g.minY*d+g.minX,a=g.maxY*d+g.minX+1,i=o;i<a;i+=d)C.set(l.subarray(i,i+s),n),n+=w;for(s=v.maxX-v.minX+1,n=(m-b+v.minY)*w+(f-y+v.minX),o=v.minY*u+v.minX,a=v.maxY*u+v.minX+1,i=o;i<a;i+=u){for(r=0;r<s;r++)1===c[i+r]&&(C[n+r]=1);n+=w}return{data:C,width:w,height:x,bounds:_,globalOffset:{x:y,y:b}}}},{key:"drawMask_",value:function(e,t){if(!this.tileMask_||!this.tileMask_.isReady())return!1;var r=this.tileMask_.size,i=this.getMap(),o=i.getSize(),a=o[0],s=o[1];if(r.w!=a||r.h!=s)return this.tileMask_.scan(),!1;var l=this.tileMask_,c=n.getMainWorldOffset(i),d=this.backgroundColor.replace("#","");3===d.length&&(d="".concat(d[0]).concat(d[0]).concat(d[1]).concat(d[1]).concat(d[2]).concat(d[2]));for(var u=parseInt(d.substring(0,2),16),h=parseInt(d.substring(2,4),16),p=parseInt(d.substring(4,6),16),f=this.tileMask_.snapshot,m=0;m<f.length;m+=4)0==f[m+3]&&(f[m+0]=u,f[m+1]=h,f[m+2]=p,f[m+3]=255);var g={data:f,width:r.w,height:r.h,bytes:this.tileMask_.bytes},v=null;if(this.allowAdd_&&this.addMode_&&l.mask){if(!this.oldMask_){var y=l.mask,b=y.bounds;this.oldMask_={data:new Uint8Array(y.data),width:y.width,height:y.height,bounds:{minX:b.minX,maxX:b.maxX,minY:b.minY,maxY:b.maxY},globalOffset:{x:y.globalOffset.x,y:y.globalOffset.y}};var _,w,x,C,S,E,k,T,O,$,P,I,L,A,M=this.oldMask_.globalOffset,j=[{x:M.x,y:M.y}],R=g.width,D=new Uint8Array(R*g.height),F=this.oldMask_.data,N=this.oldMask_.width,B=this.oldMask_.bounds,U=g.width-1,z=g.height-1,G=j.length;for(w=0;w<G;w++)if(P=(E=j[w]).x-c.x,I=E.y-c.y,k=P+B.minX,T=I+B.minY,O=P+B.maxX,$=I+B.maxY,!(O<0||k>U||$<0||T>z))for(S=(O<U?O:U)-(L=k>0?k:0)+1,_=(A=T>0?T:0)*R+L,C=(($<z?$:z)-I)*N+(L-P)+1,x=(A-I)*N+(L-P);x<C;x+=N)D.set(F.subarray(x,x+S),_),_+=R;this.oldMask_.visibleData=D}if(!(v=Pe.a.floodFill(g,e,t,this.currentThreshold_,this.oldMask_.visibleData,this.includeBorders)))return!1;this.blurRadius>0&&(v=Pe.a.gaussBlurOnlyBorder(v,this.blurRadius,this.oldMask_.visibleData)),v.globalOffset=c;var V=c.x+v.width/2-(this.oldMask_.globalOffset.x+this.oldMask_.width/2);Math.abs(V)>c.width/2&&(v.globalOffset.x=V>0?c.x-c.width:c.x+c.width),v=this.concatMask_(v,this.oldMask_)}else v=Pe.a.floodFill(g,e,t,this.currentThreshold_,null,this.includeBorders),this.blurRadius>0&&(v=Pe.a.gaussBlurOnlyBorder(v,this.blurRadius)),v.globalOffset=c;return l.setMask(v),!0}},{key:"setLayers",value:function(e){return!!e&&(this.layers=e,!!this.tileMask_&&this.tileMask_.setLayers(e))}},{key:"getContours",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;if(!this.tileMask_.mask)return null;var r=n.getMainWorldOffset(this.getMap()),i=this.tileMask_.mask,o=i.globalOffset.x-Math.round(r.x),a=i.globalOffset.y-Math.round(r.y),s=Pe.a.traceContours(i);return e>0&&(s=Pe.a.simplifyContours(s,e,t)),s.map((function(e){return e.initialCount=e.initialCount||e.points.length,e.points.forEach((function(e){e.x+=o,e.y+=a})),e}))}},{key:"getMask",value:function(){if(this.tileMask_){var e,t,r=this.tileMask_.mask,i=n.getMainWorldOffset(this.getMap()),o=0,a=r.data,s=r.bounds,l=r.width,c=s.maxX-s.minX+1,d=s.maxY-s.minY+1,u=new Uint8Array(c*d);for(t=s.minY;t<=s.maxY;t++)for(e=s.minX;e<=s.maxX;e++)u[o++]=a[t*l+e];return{data:u,size:{w:c,h:d},offset:{x:r.globalOffset.x+s.minX-Math.round(i.x),y:r.globalOffset.y+s.minY-Math.round(i.y)}}}return null}},{key:"clearMask",value:function(){this.tileMask_&&this.tileMask_.clearMask()}},{key:"getColorSensitivity",value:function(){return this.colorThreshold}},{key:"setColorSensitivity",value:function(e){e<1||e>255||(this.colorThreshold=e,this.currentThreshold_=this.colorThreshold)}},{key:"historyUndo",value:function(){var e;this.history&&((e=this.history.undo())&&this.tileMask_&&this.tileMask_.setMask(e))}},{key:"invertSelection",value:function(){if(this.tileMask_){var e=this.tileMask_.mask;if(!e||!e.data)return;e.data=e.data.map((function(e){return 0===e?1:0})),this.tileMask_.setMask(e)}}}],[{key:"getMainWorldOffset",value:function(e){var t=e.getView().getProjection().getExtent(),n=e.getPixelFromCo
839ordinate([t[0],t[3]]);n={x:Math.round(-n[0]),y:Math.round(-n[1])};var r=e.getPixelFromCoordinate([t[2],t[1]]);r={x:Math.round(-r[0]),y:Math.round(-r[1])};var i=n.x-r.x,o=n.x%i;return{x:o<0?o+i:o,y:n.y,width:i}}}]),n}(m.b),Me=function(e){Ce()(n,e);var t=Ie(n);function n(){var e;return a()(this,n),(e=t.call(this)).masks=[],e.current=-1,e}return l()(n,[{key:"disposeInternal",value:function(){this.masks=null,we()(Te()(n.prototype),"disposeInternal",this).call(this)}},{key:"clear",value:function(){this.masks.length=0,this.current=-1}},{key:"addMask",value:function(e){return!!e&&(this.current++,this.masks.length=this.current,this.masks.push(e),!0)}},{key:"getCurrent",value:function(){return this.current>-1?this.masks[this.current]:null}},{key:"allowUndo",value:function(){return this.current>0}},{key:"allowRedo",value:function(){return this.current<this.masks.length-1}},{key:"undo",value:function(){return this.allowUndo()?(this.current--,this.getCurrent()):null}},{key:"redo",value:function(){return this.allowRedo()?(this.current++,this.getCurrent()):null}}]),n}(Oe.a);function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(e){if(!e.getGeometry)return[];var t=e.getGeometry().getCoordinates();return t?(1===t.length&&t[0]instanceof Array&&(t=t[0]),(t=t.map((function(e){return{x:e[0],y:e[1]}}))).length>1&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&t.pop(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e-6;function n(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}for(var r=[],i=0;i<e.length;i++){for(var o=e[i],a=!1,s=0;s<r.length;s++){var l=r[s];if(n(o,l)<t){a=!0;break}}a||r.push(o)}return r}(t)):[]}function Fe(e){function t(e,t,n,r){function i(e,t,n){return Math.min(t.x,n.x)<=e.x&&e.x<=Math.max(t.x,n.x)&&Math.min(t.y,n.y)<=e.y&&e.y<=Math.max(t.y,n.y)}function o(e,t,n){var r=(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y);return Math.abs(r)<=1e-5?0:r}function a(e,t,n){var r=(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y);return Math.abs(r)<=1e-5?0:r>0?1:2}var s=a(e,t,n),l=a(e,t,r),c=a(n,r,e),d=a(n,r,t);return s!==l&&c!==d?(console.log(o(e,t,n)),console.log(o(e,t,r)),console.log(o(n,r,e)),console.log(o(n,r,t)),!0):!!(0===s&&i(n,e,t)||0===l&&i(r,e,t)||0===c&&i(e,n,r)||0===d&&i(t,n,r))}for(var n=e.length,r=0;r<n;r++)for(var i=e[r],o=e[(r+1)%n],a=r+2;a<n;a++)if((0!==r||a!==n-1)&&t(i,o,e[a],e[(a+1)%n]))return!0;return!1}function Ne(){var e;return"color"===(e=j()('<input type="color" value="!" />')[0]).type&&"!"!==e.value}function Be(e,t){e.getInteractions().forEach((function(e){e instanceof u.a&&e.setActive(t)}))}function Ue(){return null===this.element?"#000000":j()(this.element).find("li.draw a.active").data("color")||"#000000"}function ze(){if(null===this.element)return 1;var e=parseInt(j()(this.element).find("li.draw a.active").data("size"));return(isNaN(e)||e<1)&&(e=1),e}function Ge(e,t,n,r,i,o){var a;n||(n=L.f),e||(e=Ue.call(this)),t||(t=ze.call(this));var s=new b.a({color:n}),l=new _.a({color:e,width:t});return a=r?new x.a({anchor:[.5,.5],anchorXUnits:"fraction",anchorYUnits:"fraction",opacity:1,src:this.viewport.options.annotations.imageBaseUrl+r,scale:isNaN(this.viewport.options.annotations.imageScale)?1:this.viewport.options.annotations.imageScale}):new w.a({fill:s,stroke:l,radius:5}),new C.c({image:a,fill:s,stroke:l,text:this.viewport.getAnnotationTextStyle(i),geometry:o})}function Ve(e,t,n){for(var r=0;r<e.length;r+=n){var i=e[r],o=e[r+1];!0!==this.flip.vertically&&(o=this.extent[3]-o),!0===this.flip.horizontally&&(i=this.extent[2]-i),t[r]=i,t[r+1]=o}}function qe(e){var t=e.getGeometry();return"Point"===t.getType()?new E.a(t.getFirstCoordinate(),this.size[0]/2):t}function He(e){var t=e.getGeometry();if("Point"===t.getType()){var n=Math.abs(this.size[0]/2),r=Math.abs(this.size[1]/2),i=t.getFirstCoordinate();return new k.a([[[i[0]-n,i[1]-r],[i[0]-n,i[1]+r],[i[0]+n,i[1]+r],[i[0]+n,i[1]-r],[i[0]-n,i[1]-r]]])}return t}function We(e,t){return t?t.setCoordinates(e):t=new T.a(e),t}function Ye(e,t){if(this.size){var n=Math.abs(this.size[0]/2),r=Math.abs(this.size[1]/2),i=e;return new k.a([[[i[0]-n,i[1]-r],[i[0]-n,i[1]+r],[i[0]+n,i[1]+r],[i[0]+n,i[1]-r],[i[0]-n,i[1]-r]]])}var o=e[0],a=e[1];if(!o||!a)return null;var s=[[o,[o[0],a[1]],a,[a[0],o[1]],o]];return t?t.setCoordinates(s):t=new k.a(s),t}function Xe(e,t){if(this.size)return new E.a(e,this.size[0]/2);var n=t||new E.a([NaN,NaN]),r=e[0],i=e[0][0]-e[1][0],o=e[0][1]-e[1][1],a=Math.sqrt(i*i+o*o);return n.setCenterAndRadius(r,a),n}function Ke(e,t){var n=e[0],r=e[1];if(!n||!r)return null;for(var i=(n[1]-r[1])/2,o=[n[0],n[1]+i],a=r,s=[(a[0]+o[0])/2,(a[1]+o[1])/2],l=[s[0]-a[0],s[1]-a[1]],c=[],d=2*Math.PI/32,u=0;u<32;u++){var h=u*d,p=[Math.round(s[0]+l[0]*Math.cos(h)),Math.round(s[1]+l[1]*Math.sin(h))];c.push(p)}return c.push(c[0]),t?t.setCoordinates([c]):t=new k.a([c]),t}function Ze(e){return 3===e.length?Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]):Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Je(e,t){var n,r,i=e[1],o=e[0],a=(r=o,3===(n=i).length&&3===r.length?[r[0]-n[0],r[1]-n[1],r[2]-n[2]]:[r[0]-n[0],r[1]-n[1]]),s=Ze(a),l=function(e,t){if(2===e.length&&e.push(0),t||(t=Ze(e)),t>1e-5){var n=1/t;e[0]*=n,e[1]*=n,e[2]*=n}return 3===e.length?[e[0],e[1],e[2]]:[e[0],e[1]]}(a,s),c=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(l,[0,0,1]),d=.15*s,u=.75*s,h=.15*s,p=[i[0]-c[0]*d/2,i[1]-c[1]*d/2],f=[i[0]+c[0]*d/2,i[1]+c[1]*d/2],m=[p[0]+l[0]*u,p[1]+l[1]*u],g=[f[0]+l[0]*u,f[1]+l[1]*u],v=[m[0]-c[0]*h/2,m[1]-c[1]*h/2],y=[g[0]+c[0]*h/2,g[1]+c[1]*h/2],b=[[p,m,v,[o[0],o[1]],y,g,f,p]];return t?t.setCoordinates(b):t=new k.a(b),t}function Qe(e,t,n){if(this.drawingControlsContainer&&this.viewport.element.contains(this.drawingControlsContainer)&&this.viewport.element.removeChild(this.drawingControlsContainer),this.drawingControlsContainer=null,this.endDrawingButton=null,this.removeLastButton=null,this.continueDrawingButton=null,this.cancelDrawingButton=null,this.counterButton=null,null!=this.changeFeatureKe
839y&&y.b(this.changeFeatureKey),e){this.changeFeatureKey=null;var r=this;this.drawingControlsContainer=document.createElement("div"),this.drawingControlsContainer.className="ol-control pma-ui-viewport-annotations-drawing",this.cancelDrawingButton=document.createElement("button"),this.cancelDrawingButton.innerHTML=I.a.translate("Cancel"),j()(this.cancelDrawingButton).click((function(e){e.preventDefault(),Qe.call(r,!1,t),r.finishDrawing(!1,t)})),t===L.a.CompoundFreehand&&r.drawing||this.viewport.element.appendChild(this.drawingControlsContainer),t===L.a.MultiPoint?(this.removeLastButton=document.createElement("button"),this.removeLastButton.innerHTML=I.a.translate("Remove last point"),this.drawingControlsContainer.appendChild(this.removeLastButton),j()(this.removeLastButton).click((function(e){e.preventDefault(),r.draw&&r.draw.removeLastPoint()})),this.endDrawingButton=document.createElement("button"),this.endDrawingButton.innerHTML=I.a.translate("Finish"),j()(this.endDrawingButton).click((function(e){e.preventDefault(),Qe.call(r,!1,L.a.MultiPoint),r.finishDrawing(!0)})),this.drawingControlsContainer.appendChild(this.endDrawingButton),this.counterButton=document.createElement("button"),this.counterButton.innerHTML="0",n&&(n.getGeometry()&&n.getGeometry().getCoordinates()&&(this.counterButton.innerHTML=n.getGeometry().getCoordinates().length),this.changeFeatureKey&&y.b(this.changeFeatureKey),this.changeFeatureKey=n.on("change",(function(){r.counterButton&&(r.counterButton.innerHTML=n.getGeometry().getCoordinates().length-1)}))),this.drawingControlsContainer.insertBefore(this.counterButton,this.removeLastButton)):t===L.a.CompoundFreehand&&(r.drawing||(this.continueDrawingButton=document.createElement("button"),this.continueDrawingButton.innerHTML=I.a.translate("Draw"),this.drawingControlsContainer.appendChild(this.continueDrawingButton),j()(this.continueDrawingButton).click((function(e){e.preventDefault(),r.startDrawing({type:L.a.CompoundFreehand,color:r.lastAnnotationStyle.color,fillColor:r.lastAnnotationStyle.fillColor,lineThickness:r.lastAnnotationStyle.penSize,iconRelativePath:r.lastAnnotationStyle.iconPath,rejectSelfIntersecting:r.lastDrawingOptions.rejectSelfIntersecting}),r.continueDrawingButton&&(r.continueDrawingButton.style.display="none")}))),this.removeLastButton=document.createElement("button"),this.removeLastButton.innerHTML=I.a.translate("Remove last"),j()(this.removeLastButton).click((function(e){if(e.preventDefault(),r.compoundFreehandList.length>0){var t=r.compoundFreehandList.pop();r.deleteAnnotation(t.getId())}})),this.endDrawingButton=document.createElement("button"),this.endDrawingButton.innerHTML=I.a.translate("Finish"),j()(this.endDrawingButton).click((function(e){e.preventDefault(),Qe.call(r,!1,L.a.CompoundFreehand),r.finishDrawing(!0),r.fireEvent(A.c.AnnotationDrawingFinished,{cancelled:!1}),r.compoundFreehandList.length>0&&(r.mergeSelection(r.compoundFreehandList),r.compoundFreehandList=[])})),this.drawingControlsContainer.appendChild(this.endDrawingButton),this.drawingControlsContainer.appendChild(this.removeLastButton)),this.drawingControlsContainer.appendChild(this.cancelDrawingButton)}}function et(e,t,n){if(this.editingControlsContainer&&this.viewport.element.contains(this.editingControlsContainer)&&this.viewport.element.removeChild(this.editingControlsContainer),this.editingControlsContainer=null,this.endEditingButton=null,this.cancelEditingButton=null,this.saveEditingButton=null,this.wandCounterButton=null,this.wandUndoEditingButton=null,this.wandSensitivityIncreaseEditingButton=null,this.wandSensitivityDecreaseEditingButton=null,this.brushSizeIncreaseEditingButton=null,this.brushSizeDecreaseEditingButton=null,this.brushTypeCircleEditingButton=null,this.brushTypeSquareEditingButton=null,e){var r=this;this.editingControlsContainer=document.createElement("div"),this.editingControlsContainer.className="ol-control pma-ui-viewport-annotations-drawing",this.cancelEditingButton=document.createElement("button"),this.cancelEditingButton.innerHTML=I.a.translate("Stop editing"),j()(this.cancelEditingButton).click((function(e){e.preventDefault(),et.call(r,!1,t),r.stopTool()})),this.viewport.element.appendChild(this.editingControlsContainer),t===L.c.Modify&&n&&n.getGeometry()&&"MultiPoint"===n.getGeometry().getType()&&(this.addPointEditingButton=document.createElement("button"),this.addPointEditingButton.innerHTML=I.a.translate("Add point(s)"),j()(this.addPointEditingButton).click((function(e){e.preventDefault(),j()(r.addPointEditingButton).blur(),j()(r.removePointEditingButton).removeClass("active"),j()(r.addPointEditingButton).addClass("active"),j()(r.movePointEditingButton).removeClass("active"),r.edit.condition_=function(e){if("pointerdown"!==e.type||!n)return Object($.l)(e);var t=e.coordinate,r=n.getGeometry().getCoordinates();r.push(t),n.getGeometry().setCoordinates(r),n.metaData.State=n.metaData.State===L.b.Added?L.b.Added:L.b.Modified}})),this.removePointEditingButton=document.createElement("button"),this.removePointEditingButton.innerHTML=I.a.translate("Remove point(s)"),j()(this.removePointEditingButton).click((function(e){e.preventDefault(),j()(r.removePointEditingButton).blur(),j()(r.removePointEditingButton).addClass("active"),j()(r.addPointEditingButton).removeClass("active"),j()(r.movePointEditingButton).removeClass("active"),r.edit.condition_=function(e){if("pointerdown"!==e.type)return Object($.b)(e)&&Object($.n)(e);var t=e.map.getFeaturesAtPixel(e.pixel,{hitTolerance:10});if(!t||!Array.isArray(t)||t.length<=1)return Object($.b)(e)&&Object($.n)(e);var r=t.find((function(e){return"Point"===e.getGeometry().getType()}));if(r){for(var i=n.getGeometry().getCoordinates(),o=r.getGeometry().getCoordinates(),a=-1,s=0;s<i.length;s++)o[0]===i[s][0]&&o[1]===i[s][1]&&(a=s);a>=0&&n.getGeometry().getCoordinates().length>2&&(i.splice(a,1),n.getGeometry().setCoordinates(i),n.metaData.State=n.metaData.State===L.b.Added?L.b.Added:L.b.Modified)}}})),this.movePointEditingButton=document.createElement("button"),this.movePointEditingButton.innerHTML=I.a.translate("Move point(s)"),this.movePointEditingButton.classList.add("active"),j()(this.movePointEditingButton).click((function(e){e.preventDefault(),j()(r.movePointEditingButton).blur(),j()(r.removePointEditingButton).removeClass("active"),j()(r.addPointEditingButton).removeClass("active"),j()(r.movePointEditingButton).addClass("active"),r.edit.condition_=$.l})),this.editingControlsContainer.appendChild(this.addPointEditingButton),this.editingControlsContainer.appendChild(this.removePointEditingButton),this.editingControlsContainer.appendChild(this.movePointEditingButton)),t===L.c.Wand&&(this.wandSensitivityIncreaseE
839ditingButton=document.createElement("button"),this.wandSensitivityIncreaseEditingButton.innerHTML=" + ",this.wandSensitivityIncreaseEditingButton.title=I.a.translate("Increase color sensitivity"),j()(this.wandSensitivityIncreaseEditingButton).click((function(e){e.preventDefault(),r.edit.setColorSensitivity(r.edit.getColorSensitivity()+1),r.wandCounterButton&&(r.wandCounterButton.innerHTML=r.edit.getColorSensitivity())})),this.wandCounterButton=document.createElement("button"),this.wandCounterButton.innerHTML="15",this.wandSensitivityIncreaseEditingButton.title=I.a.translate("Current color sensitivity"),this.wandSensitivityDecreaseEditingButton=document.createElement("button"),this.wandSensitivityDecreaseEditingButton.innerHTML=" - ",this.wandSensitivityDecreaseEditingButton.title=I.a.translate("Decrease color sensitivity"),j()(this.wandSensitivityDecreaseEditingButton).click((function(e){e.preventDefault(),r.edit.setColorSensitivity(r.edit.getColorSensitivity()-1),r.wandCounterButton&&(r.wandCounterButton.innerHTML=r.edit.getColorSensitivity())})),this.wandUndoEditingButton=document.createElement("button"),this.wandUndoEditingButton.innerHTML=I.a.translate("Undo"),this.wandUndoEditingButton.title=I.a.translate("Undo previous change to selection"),j()(this.wandUndoEditingButton).click((function(e){e.preventDefault(),r.edit.historyUndo()})),this.wandInvertSelectionEditingButton=document.createElement("button"),this.wandInvertSelectionEditingButton.innerHTML=I.a.translate("Invert selection"),j()(this.wandInvertSelectionEditingButton).click((function(e){e.preventDefault(),r.edit.invertSelection()})),this.saveEditingButton=document.createElement("button"),this.saveEditingButton.innerHTML=I.a.translate("Create annotation from selection"),j()(this.saveEditingButton).click((function(e){e.preventDefault(),r.saveMagicWandAnnotation()})),this.editingControlsContainer.appendChild(this.wandSensitivityIncreaseEditingButton),this.editingControlsContainer.appendChild(this.wandCounterButton),this.editingControlsContainer.appendChild(this.wandSensitivityDecreaseEditingButton),this.editingControlsContainer.appendChild(this.wandUndoEditingButton),this.editingControlsContainer.appendChild(this.wandInvertSelectionEditingButton),this.editingControlsContainer.appendChild(this.saveEditingButton)),t!==L.c.Brush&&t!==L.c.Eraser||(this.brushSizeDecreaseEditingButton=document.createElement("button"),this.brushSizeDecreaseEditingButton.innerHTML=" - ",this.brushSizeDecreaseEditingButton.title=I.a.translate("Decrease brush tip size"),j()(this.brushSizeDecreaseEditingButton).click((function(e){e.preventDefault();var t=r.edit.getBrushSize();t=(t/=1.5)<=0?1:t,r.edit.setBrushSize(t),r.brushSizeInfoEditingButton.innerHTML=ot.call(r)})),this.editingControlsContainer.appendChild(this.brushSizeDecreaseEditingButton),this.brushSizeInfoEditingButton=document.createElement("button"),this.brushSizeInfoEditingButton.innerHTML=ot.call(this),this.brushSizeInfoEditingButton.disabled=!0,this.brushSizeInfoEditingButton.style="pointer-events: none;",this.brushSizeInfoEditingButton.title=I.a.translate("Brush tip info"),j()(this.brushSizeInfoEditingButton).click((function(e){e.preventDefault()})),this.editingControlsContainer.appendChild(this.brushSizeInfoEditingButton),this.brushSizeIncreaseEditingButton=document.createElement("button"),this.brushSizeIncreaseEditingButton.innerHTML=" + ",this.brushSizeIncreaseEditingButton.title=I.a.translate("Increase brush tip size"),j()(this.brushSizeIncreaseEditingButton).click((function(e){e.preventDefault();var t=r.edit.getBrushSize();t*=1.5,r.edit.setBrushSize(t),r.brushSizeInfoEditingButton.innerHTML=ot.call(r)})),this.editingControlsContainer.appendChild(this.brushSizeIncreaseEditingButton),this.brushTypeCircleEditingButton=document.createElement("button"),this.brushTypeCircleEditingButton.innerHTML=" ○ ",this.brushTypeCircleEditingButton.title=I.a.translate("Change brush tip to circle"),j()(this.brushTypeCircleEditingButton).click((function(e){e.preventDefault(),r.edit.setBrushType("circle"),r.brushSizeInfoEditingButton.innerHTML=ot.call(r)})),this.editingControlsContainer.appendChild(this.brushTypeCircleEditingButton),this.brushTypeSquareEditingButton=document.createElement("button"),this.brushTypeSquareEditingButton.innerHTML=" □ ",this.brushTypeSquareEditingButton.title=I.a.translate("Change brush tip to square"),j()(this.brushTypeSquareEditingButton).click((function(e){e.preventDefault(),r.edit.setBrushType("square"),r.brushSizeInfoEditingButton.innerHTML=ot.call(r)})),this.editingControlsContainer.appendChild(this.brushTypeSquareEditingButton)),this.editingControlsContainer.appendChild(this.cancelEditingButton)}}function tt(){var e=document.createElement("div");e.className="pma-ui-viewport-tooltip pma-ui-viewport-tooltip-measure";var t=new v.a({element:e,offset:[0,-15],positioning:"bottom-center"});return this.viewport.map.addOverlay(t),t.element=e,t}function nt(e){e.type!==L.a.CompoundFreehand&&(this.compoundFreehandList=[]),Qe.call(this,!1,e.type);var t,n,r,i,o,a=e.type,s=!0===e.hideControls,l=$.j,c=$.m;switch(this.stopDrawingOnMouseUp=!1,this.lastAnnotationStyle={color:e.color,fillColor:e.fillColor,penSize:e.lineThickness,iconPath:e.iconRelativePath},this.lastDrawingOptions={drawingType:e.type,rejectSelfIntersecting:e.rejectSelfIntersecting},!0===this.selectionAdded&&(this.selectionAdded=!1,this.hoverInteraction.getFeatures().clear(),this.viewport.map.removeInteraction(this.hoverInteraction),this.selectInteraction.getFeatures().clear(),this.viewport.map.removeInteraction(this.selectInteraction)),a){case L.a.Rectangle:r=Ye.bind(e),e.size?(t=1,a="Point",o=He.bind(e)):(t=2,a="LineString");break;case L.a.Arrow:r=Je,t=2,a="LineString";break;case L.a.Line:t=2,a="LineString";break;case L.a.Icon:a="Point";break;case L.a.MultiPoint:r=We,a="LineString",i=$.i,n=1;break;case L.a.Freehand:case L.a.CompoundFreehand:Be(this.viewport.map,!1),a="LineString",c=$.j,l=$.n,this.stopDrawingOnMouseUp=!0;break;case L.a.ClosedFreehand:Be(this.viewport.map,!1),a="Polygon",c=$.j,l=$.n,this.stopDrawingOnMouseUp=!0;break;case L.a.Ellipse:r=Ke.bind(e),t=2,a="LineString";break;case L.a.Circle:e.size&&(t=1,a="Point",o=qe.bind(e)),r=Xe.bind(e)}var d=Ge.call(this,e.color,e.lineThickness,e.fillColor,e.iconRelativePath,null,o);this.draw=new h.a({source:this.viewport.annotationsLayer.getSource(),type:a,geometryFunction:r,maxPoints:t,minPoints:n,style:d,condition:l,finishCondition:i,freehandCondition:c});var u=!1;if(e.feature&&(u=!0,this.draw.extend(e.feature),this.drawing=!0,e.feature.drawingType=e.type,e.feature.color=e.feature.metaData.Color,e.feature.penSize=e.feature.metaData.LineThickness,e.feature.fillColor=e.feature.metaData.FillColor,Qe.call(this,!0,e.type,e.feature),e.feature=null),this.viewport.map.addInteraction(this.draw),!0===e.enableSnapping?(this.snapInteraction=new p.a({source:this.viewport.annotationsLayer.getSource()}),this.viewport.map.addInteraction(this.snapInteraction)):this.snapInteraction&&(this.viewport.map.removeInteraction(this.snapInteraction),this.snapInteraction=null),!0===this.viewport.getAnnotationLabelsVisible())var f=tt.call(this);var m=this,g=null;this.draw.on("drawstart",(function(t){m.drawing=!0,m.shouldRejectDrawing=!1,Qe.call(m,!s,e.type,t.feature),t.feature.setId(1e4*Math.random()|0);var n=t.coordinate;g=t.feature.on("change",(function(){var e={temporary:t.feature.temporary,feature:t.feature};m.fireEvent(A.c.AnnotationDrawing,e)})),f&&t.feature.getGeometry().on("change",(function(t){var r,i=t.target;switch(e.type){case L.a.Rectangle:case L.a.Ellipse:case L.a.Polygon:case L.a.ClosedFreehand:r=m.viewport.formatArea(m.viewport.calculateArea(i)),n=i.getInteriorPoint().getCoordinates();break;case L.a.Line:case L.a.LineString:case L.a.Freehand:case L.a.Circle:r=m.viewport.formatLength(m.viewport.calculateLength(i)),n=i.getLastCoordinate()}f.element.innerHTML=r,f.setPosition(n)})),t.feature.notes=e.notes,t.feature.drawingType=e.type,t.feature.temporary=!0,t.feature.penSize=e.lineThickness,t.feature.color=e.color,t.feature.fillColor=e.fillColor,t.feature.icon=e.iconRelativePath})),this.draw.on("drawend",(function(t){if(m.drawing=!1,Qe.call(m,t.feature.drawingType===L.a.CompoundFreehand,t.feature.drawingType,t.feature),t.feature.drawingType===L.a.CompoundFreehand&&m.drawingControlsContainer){var n=t.feature.getGeometry().getLastCoordinate(),r=m.viewport.map.getPixelFromCo
839ordinate(n);m.drawingControlsContainer.style.left=r[0]+25+"px",m.drawingControlsContainer.style.top=r[1]-50+"px"}if(!m.getEnabled())return t.preventDefault(),!1;f&&m.viewport.map.removeOverlay(f),m.shouldRejectDrawing?st.call(m):setTimeout((function(){st.call(m)}),100),t.feature.drawingType===L.a.CompoundFreehand&&m.compoundFreehandList.push(t.feature),y.b(g),it.call(m,t.feature,u,e.rejectSelfIntersecting),t.feature.drawingType!==L.a.CompoundFreehand&&m.fireEvent(A.c.AnnotationDrawingFinished,{cancelled:!1})})),this.draw.on("drawabort",(function(e){if(m.drawing=!1,Qe.call(m,!1,e.feature.drawingType),!m.getEnabled())return e.preventDefault(),!1;f&&m.viewport.map.removeOverlay(f),m.shouldRejectDrawing?st.call(m):setTimeout((function(){st.call(m)}),100),y.b(g),m.fireEvent(A.c.AnnotationDrawingFinished,{cancelled:!0})}))}function rt(e){var t={extent:this.viewport.map.getView().getProjection().getExtent(),flip:this.viewport.options.flip},n=e.getGeometry().clone();n.applyTransform(Ve.bind(t));var r;r="Freehand"===e.drawingType||"ClosedFreehand"===e.drawingType?this.format.writeGeometry(n.simplify(2)):"Circle"===e.drawingType?this.format.writeGeometry(Object(k.b)(n)):this.format.writeGeometry(n),e.metaData.Geometry=r}function it(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,i=Ge.call(r,e.color,e.penSize,e.fillColor,e.icon,e);void 0===e.getId()&&e.setId(1e4*Math.random()|0),i.getText().setText(r.viewport.getAnnotationFormattedLabel(e)),e.setStyle(i),e.originalStyle=i,e.temporary=!1,null!==r.element&&(j()(r.element).find("li.draw a").removeClass("active"),j()(r.element).find(".color-picker").hide());var o={temporary:e.temporary,feature:e},a=r.viewport.map.getView().getProjection().getExtent(),s={extent:a,flip:r.viewport.options.flip},l=e.getGeometry().clone();l.applyTransform(Ve.bind(s));var c="";c="Freehand"===e.drawingType||"ClosedFreehand"===e.drawingType?r.format.writeGeometry(l.simplify(2)):"Circle"===e.drawingType?r.format.writeGeometry(Object(k.b)(l)):r.format.writeGeometry(l);var d=2;switch(e.drawingType){case L.a.Arrow:case L.a.Icon:case L.a.Point:case L.a.MultiPoint:d=0;break;case L.a.Line:case L.a.Freehand:case L.a.CompoundFreehand:case L.a.LineString:d=1;break;case L.a.Rectangle:case L.a.Ellipse:case L.a.Polygon:case L.a.ClosedFreehand:case L.a.Circle:d=2}t?e.metaData.State!==L.b.Added&&(e.metaData.UpdatedOn=new Date,e.metaData.UpdatedBy=null,e.metaData.State=L.b.Modified):e.metaData={AnnotationID:null,Context:null,Classification:I.a.translate("Generic"),Color:e.icon?e.icon:e.originalStyle.getStroke().getColor(),Image:r.viewport.imageInfo.Filename,LayerID:1,Notes:e.notes?e.notes:"",UpdateInfo:"",State:L.b.Added,FillColor:e.originalStyle.getFill().getColor(),Dimensions:d,LineThickness:e.penSize,CreatedOn:new Date,CreatedBy:null,UpdatedOn:null,UpdatedBy:null},at.call(r,e),e.metaData.DrawingType=e.drawingType,e.metaData.DrawingType==L.a.MultiPoint&&(e.metaData.PointCount=e.getGeometry().getCoordinates?e.getGeometry().getCoordinates().length:0),e.metaData.Geometry=c,t&&e.metaData.State!==L.b.Added&&(e.metaData.State=L.b.Modified),setTimeout((function(){if(-1===e.metaData.Geometry.indexOf("MULTIPOINT")&&0===e.metaData.Length&&r.viewport.imageInfo.MicrometresPerPixelX>0&&r.viewport.imageInfo.MicrometresPerPixelY>0)r.deleteAnnotation(e.getId());else if(-1!==c.indexOf("MULTIPOINT EMPTY"))r.deleteAnnotation(e.getId());else if(i.getText().setText(r.viewport.getAnnotationFormattedLabel(e)),e.setStyle(i),t)r.viewport.getAnnotationLabelsVisible()&&r.viewport.showAnnotationsLabels(r.viewport.getAnnotationLabelsVisible()),r.fireEvent(A.c.AnnotationModified,o);else if(!r.shouldRejectDrawing&&e){var a=e.drawingType===L.a.Rectangle||e.drawingType===L.a.Freehand||e.drawingType===L.a.ClosedFreehand||e.drawingType===L.a.CompoundFreehand&&"Polygon"===e.getGeometry().getType()||e.drawingType===L.a.Polygon||e.drawingType===L.a.LineString;if(n&&a&&Fe(De(e)))return void r.deleteAnnotation(e.getId());r.fireEvent(A.c.AnnotationAdded,o)}}),10)}function ot(){var e,t,n=!1,r=this.edit.getBrushSize(),i=this.edit.getBrushType();return this.viewport.imageInfo.MicrometresPerPixelX?e=r*this.viewport.imageInfo.MicrometresPerPixelX:(n=!0,e=r),t="circle"===i?Math.PI*Math.pow(e,2):Math.pow(2*e,2)," Area: ".concat(function(e,t){return t?e+" px<sup>2</sup>":e>1e5?Math.round(10*e/1e6)/10+" mm<sup>2</sup>":Math.round(10*e)/10+" μm<sup>2</sup>"}(t,n)," ")}function at(e){var t=e.getGeometry(),n=e.metaData.Dimensions;
839if(n>0){var r=this.viewport.calculateLength(t);if(e.metaData.Length=r,e.metaData.FormattedLength=this.viewport.formatLength(r),n>1){var i=this.viewport.calculateArea(t);e.metaData.Area=i,e.metaData.FormattedArea=this.viewport.formatArea(i)}}}function st(){this.draw&&(Be(this.viewport.map,!0),this.viewport.map.removeInteraction(this.draw),this.draw=null),this.edit&&(Be(this.viewport.map,!0),this.viewport.map.removeInteraction(this.edit),this.edit=null),!0!==this.selectionAdded&&(this.selectionAdded=!0,this.selectInteraction.getFeatures().clear(),this.viewport.map.addInteraction(this.selectInteraction),this.hoverInteraction.getFeatures().clear(),this.viewport.map.addInteraction(this.hoverInteraction))}function lt(){if(this.draw&&null!==this.element){var e=j()(this.element).find("li.draw a.active");1===e.length&&(e.removeClass("active"),e.click())}}function ct(e){if(this.getEnabled())if(this.finishDrawing(!0),e.hasClass("active"))e.removeClass("active");else{var t=e.data("type"),n="";if("Text"!==t||(t="Point",n=prompt(I.a.translate("Enter text")))){var r=this.getSelection();this.startDrawing({type:t,color:e.data("color"),lineThickness:e.data("size"),iconRelativePath:e.data("icon"),feature:r&&r.length>0?r[0]:null,fillColor:L.f,notes:n}),e.addClass("active"),null!==this.jsColorPicker?this.jsColorPicker.fromString(e.data("color")):j()(this.element).find(".color-picker input[type='color']").val(e.data("color")),j()(this.element).find(".color-picker").show()}}}function dt(){if(null!==this.element){var e="<ul class='pma-ui-annotations'>";Ne()?e+="<li class='option color-picker'><input type='color' value='#000000' /></li>":e+="<li class='option color-picker'><input type='button' value=' ' /><input type='hidden' value='#000000' /></li>",e+="<li class='option draw'><a data-type='Freehand' data-size='2' data-color='#008000' style='color: #008000' class='size-2' href='#' title='"+I.a.translate("Freehand size 1")+"'><i class='fa fa-circle' aria-hidden='true'></i></a></li>",e+="<li class='option draw'><a data-type='ClosedFreehand' data-size='2' data-color='#008000' style='color: #008000' class='size-2' href='#' title='"+I.a.translate("Closed Freehand size 1")+"'><i class='fa fa-pencil-square' aria-hidden='true'></i></a></li>",e+="<li class='option draw'><a data-type='CompoundFreehand' data-size='2' data-color='#008080' style='color: #008080' class='size-2' href='#' title='"+I.a.translate("Compound Freehand size 2")+"'><i class='fa fa-chain' aria-hidden='true'></i></a></li>",e+="<li class='option draw'><a data-type='Text' data-size='1' data-color='#000000' style='color: #000000' class='size-2' href='#' title='"+I.a.translate("Text")+"'><i class='fa fa-font' aria-hidden='true'></i></a></li>",e+="<li class='option draw'><a data-type='Arrow' data-size='2' data-color='#000000' style='color: #000000' class='size-2' href='#' title='"+I.a.translate("Arrow")+"'><i class='fa fa-arrow-right' aria-hidden='true'></i></a></li>",e+="<li class='option draw'><a data-type='Line' data-size='1' data-color='#F00F00' style='color: #F00F00' class='size-2' href='#' title='"+I.a.translate("Measure")+"'><i class='fa fa-minus' aria-hidden='true'></i></a></li>",e+="</ul>";var t=this,n=j()(this.element);
839n.html(e),Ne()||(t.jsColorPicker=new R(n.find("li.color-picker input")[0],{valueElement:n.find("li.color-picker input[type=hidden]")[0],hash:!0,closable:!0,closeText:I.a.translate("Close")})),n.find("li.color-picker input").change((function(){var e=j()(this).val();n.find("li.draw a.active").data("color",e),n.find("li.draw a.active").css("color",e),lt.call(t)})),n.find("li.option.delete a").click((function(e){e.preventDefault();var n=t.getSelection();n&&n.length>0&&t.deleteAnnotation(n[0].getId())})),n.find("li.option.save a").click((function(e){e.preventDefault(),t.saveAnnotations()})),n.find("li.draw a").click((function(e){e.preventDefault();var n=j()(this);ct.call(t,n)}))}}var ut={},ht={};function pt(){var e=this,t=Math.sqrt(2),n=5,r=function(e,r,i,o){if(o.originalStyle){var a=o.originalStyle.clone(),s=a.getFill();s||(s=new b.a),s.setColor("rgba(255, 255, 255, 0)"),a.getStroke().setColor(e),a.getStroke().setWidth(a.getStroke().getWidth()+3);var l=a.getImage();if(l instanceof D.a.style.Icon){var c=l.getImage();if(!c)return;var d=function(e,t,n){if(!t[e.src]){var r=document.createElement("canvas"),i=r.getContext("2d");r.width=e.width,r.height=e.height,i.drawImage(e,0,0,e.width,e.height),i.strokeStyle=n,i.lineWidth=10,i.strokeRect(0,0,r.width,r.height),t[e.src]=r}return t[e.src]}(c,r,i);a.setImage(new x.a({img:d,imgSize:[d.width,d.height],scale:l.getScale()}))}else{if(l&&l.getSize){var u=l.getSize(),h=u[0]>u[1]?u[0]:u[1];n=(t*h/2).toFixed(0)}a.setImage(new w.a({fill:new b.a({color:"rgba(255, 255, 255, 0.7)"}),stroke:new _.a({color:e,width:4}),radius:n}))}return a}return new C.c({stroke:new _.a({color:e,width:3}),fill:new b.a({color:"rgba(255, 255, 255, 0.7)"}),image:new S.a({fill:new b.a({color:"rgba(255, 255, 255, 0.7)"}),stroke:new _.a({color:e,width:4}),points:4,radius:5,angle:Math.PI/4})})};this.selectInteraction=new f.a({condition:$.e,layers:[this.viewport.annotationsLayer],style:r.bind(this,"rgba(0, 153, 255, 1)",ut,"dodgerblue")});var i=this.selectInteraction.getFeatures();this.hoverInteraction=new f.a({condition:$.k,layers:[this.viewport.annotationsLayer],filter:function(e){return-1===i.getArray().indexOf(e)},style:r.bind(this,"#ffff00",ht,"yellow")}),this.pointerInteraction=new m.b({handleMoveEvent:function(t){if(!(e.editing||e.drawing||e.draw||e.edit)){var n=e.viewport.map.forEachFeatureAtPixel(t.pixel,(function(){return!0}));e.viewport.map.getTargetElement().style.cursor=n?"pointer":""}}}),this.selectInteraction.on("select",(function(){e.fireEvent(A.c.AnnotationsSelectionChanged,i.getArray())})),this.selectionAdded=!0,this.selectInteraction.getFeatures().clear(),this.viewport.map.addInteraction(this.selectInteraction),this.hoverInteraction.getFeatures().clear(),this.viewport.map.addInteraction(this.hoverInteraction),this.viewport.map.addInteraction(this.pointerInteraction)}function ft(e,t,n){var r,i,o=[];if(e&&e.length)for(r=0;r<e.length;r++)(i=e[r]).metaData.Notes||(i.metaData.Notes=I.a.translate(" ")),i.metaData.Classification||(i.metaData.Classification=I.a.translate("no classification")),null===i.metaData.AnnotationID&&(i.metaData.AnnotationID=0),o.push(i.metaData);var a=t.map((function(e){return e.metaData}
839)),s=[];if(this.deletedAnnotations&&this.deletedAnnotations.length>0)for(r=0;r<this.deletedAnnotations.length;r++)-1!==n&&this.deletedAnnotations[r].metaData.LayerID!==n||null!==this.deletedAnnotations[r].metaData.AnnotationID&&s.push(this.deletedAnnotations[r].metaData);var l=this;this.context.saveAnnotations(this.serverUrl,this.path,o,a,s,(function(n,i){if(e&&e.length){if(null==i||i.length!=e.length)return void console.error("Annotations saved but cannot update annotation ids");for(r=0;r<i.length;r++)e[r].metaData.AnnotationID=i[r],e[r].setId(i[r]),e[r].metaData.State=L.b.Pristine}if(t&&t.length)for(r=0;r<t.length;r++)t[r].metaData.State=L.b.Pristine;l.deletedAnnotations=[],l.fireEvent(A.c.AnnotationsSaved,{success:!0})}),(function(){l.fireEvent(A.c.AnnotationsSaved,{success:!1}),console.error("Saving annotations failed"),console.log(arguments)}))}function mt(e,t){if(e&&0!==e.length){var n=e.pop(),r=this;n.metaData.Notes||(n.metaData.Notes=I.a.translate(" ")),n.metaData.Classification||(n.metaData.Classification=I.a.translate("no classification")),r.context.addAnnotation(r.serverUrl,r.path,n.metaData.Classification,n.metaData.LayerID,n.metaData.Notes,n.metaData.Geometry,n.metaData.Color,(function(i,o){n.metaData.AnnotationID=o,n.setId(o),n.metaData.State=L.b.Pristine,mt.call(r,e,t)}),(function(){r.fireEvent(A.c.AnnotationsSaved,{success:!1}),console.error("Saving annotation (add) failed"),console.log(arguments)}))}else gt.call(this,t)}function gt(e){if(e&&0!==e.length){var t=e.pop(),n=this;n.context.updateAnnotation(n.serverUrl,n.path,t.metaData.LayerID,t.metaData.AnnotationID,t.metaData.Notes,t.metaData.Geometry,t.metaData.Color,(function(){t.metaData.State=L.b.Pristine,gt.call(n,e)}),(function(){n.fireEvent(A.c.AnnotationsSaved,{success:!1}),console.error("Saving annotation (edit) failed"),console.log(arguments)}))}else vt.call(this)}function vt(){if(this.deletedAnnotations&&0!==this.deletedAnnotations.length){var e=this.deletedAnnotations.pop(),t=this;null!==e.metaData.AnnotationID?t.context.deleteAnnotation(t.serverUrl,t.path,e.metaData.LayerID,e.metaData.AnnotationID,(function(){vt.call(t)}),(function(){t.fireEvent(A.c.AnnotationsSaved,{success:!1}),console.error("Saving annotation (delete) failed"),console.log(arguments)})):vt.call(t)}else this.fireEvent(A.c.AnnotationsSaved,{success:!0})}function yt(e){var t=this;null===t.isPMACore2?this.context.getVersionInfo(t.serverUrl,(function(n){n&&"1."===n.substring(0,"1.".length)?t.isPMACore2=!1:t.isPMACore2=!0,"function"==typeof e&&e.call(t,t.isPMACore2)}),(function(){console.error("Cannot reach server")})):"function"==typeof e&&e.call(t,t.isPMACore2)}var bt=function(){function e(t){if(a()(this,e),Object(P.b)()){if(t.element instanceof HTMLElement)this.element=t.element;else if("string"==typeof t.element){var n=document.querySelector(t.element);n?this.element=n:console.error("Invalid selector for element")}else this.element=null;if(this.element&&(this.element.style.pointerEvents="auto"),t.viewport.map)if(t.viewport.annotationsLayer){this.serverUrl=t.serverUrl,this.path=t.path,this.context=t.context,this.viewport=t.viewport,this.drawing=!1,this.selectionAdded=!1,this.stopDrawingOnMouseUp=!1,this.format=new c.a,this.jsColorPicker=null,this.isPMACore2=null,yt.call(this),this.listeners={},this.listeners[A.c.AnnotationAdded]=[],this.listeners[A.c.AnnotationDrawing]=[],this.listeners[A.c.AnnotationDrawingFinished]=[],this.listeners[A.c.AnnotationDeleted]=[],this.listeners[A.c.AnnotationModified]=[],this.listeners[A.c.AnnotationsSaved]=[],this.listeners[A.c.AnnotationsSelectionChanged]=[],this.listeners[A.c.AnnotationEditingStarted]=[],this.listeners[A.c.AnnotationEditingEnded]=[],pt.call(this),dt.call(this);var r=this;this.viewport.map.on("pointerup",(function(){r.drawing&&!0===r.stopDrawingOnMouseUp&&r.finishDrawing(!0)})),this.setEnabled(!0===t.enabled),this.compoundFreehandList=[],this.lastAnnotationStyle=null,this.lastDrawingOptions=null,this.shouldRejectDrawing=!1}else console.error("Annotations must be enabled in the viewport for this to work");else console.error("Invalid viewport instance")}}return l()(e,[{key:"replaceAnnotations",value:function(e){e&&e instanceof Array||(e=[]);for(var t=0;t<e.length;t++)e[t].AnnotationID=null,e[t].Image=this.viewport.image;this.finishDrawing(!0);var n=this.viewport.getAnnotations();this.deletedAnnotations=this.deletedAnnotations||[];for(var r=0;r<n.length;r++)switch(n[r].metaData.State){case L.b.Pristine:case L.b.Modified:this.deletedAnnotations.push(n[r])}var i=this.viewport.annotationsLayer.getSource();i.clear();for(var o=this.viewport.initializeFeatures(e,this.viewport.mainLayer.getSource().getProjection()),a=0;a<o.length;a++)o[a].metaData.State=L.b.Added;i.addFeatures(o),this.viewport.redraw()}},{key:"addAnnotation",value:function(e,t){t||(t=L.b.Added),e.AnnotationID=null,e.Image=this.viewport.image,this.finishDrawing(!0);
839for(var n=this.viewport.annotationsLayer.getSource(),r=this.viewport.initializeFeatures([e],this.viewport.map.getView().getProjection()),i=0;i<r.length;i++)r[i].metaData.State=t;n.addFeatures(r);var o={temporary:!1,feature:r&&r.length?r[0]:null};return this.fireEvent(A.c.AnnotationAdded,o),o.feature}},{key:"getActive",value:function(){return null!==this.element&&j()(this.element).find("li.draw a.active").length>0}},{key:"getEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(e){this.enabled=!0===e,this.selectInteraction.setActive(this.enabled),this.hoverInteraction.setActive(this.enabled),this.pointerInteraction.setActive(this.enabled),this.getEnabled()?null!==this.element&&j()(this.element).find("li.draw a").removeClass("disabled"):(this.finishDrawing(!1),null!==this.element&&(j()(this.element).find("li.draw a").removeClass("active"),j()(this.element).find("li.draw a").addClass("disabled"),j()(this.element).find(".color-picker").hide()))}},{key:"startDrawing",value:function(e){"string"==typeof e&&(e={type:arguments[0],color:arguments[1],lineThickness:arguments[2],iconRelativePath:arguments[3],feature:arguments[4],fillColor:L.f,notes:""}),Object.prototype.hasOwnProperty.call(e,"penWidth")&&(e.lineThickness=e.penWidth,delete e.penWidth),this.getEnabled()&&(this.drawing?console.error("Drawing already in progress. Finish drawing before starting a new one."):this.editing?console.error("Editing already in progress. Finish editing before starting drawing."):(e.fillColor||(e.fillColor=L.f),e.size&&(e.size.length&&2==e.size.length?e.size[0]<=0||e.size[1]<=0?e.size=void 0:this.viewport.imageInfo&&this.viewport.imageInfo.MicrometresPerPixelX&&this.viewport.imageInfo.MicrometresPerPixelY?e.size=[e.size[0]/this.viewport.imageInfo.MicrometresPerPixelX,e.size[1]/this.viewport.imageInfo.MicrometresPerPixelY]:e.size=void 0:e.size=void 0),e.rejectSelfIntersecting=!!e.rejectSelfIntersecting,this.finishDrawing(!1),nt.call(this,e)))}},{key:"finishDrawing",value:function(e,t){this.shouldRejectDrawing=!e;var n=!1===e;if(this.drawing?null!=this.draw&&(n?this.draw.abortDrawing():this.draw.finishDrawing()):n=!1,st.call(this),null!==this.element&&(j()(this.element).find(".color-picker").hide(),j()(this.element).find("li.draw a").removeClass("active")),t==L.a.CompoundFreehand){Qe.call(this,!1,L.a.CompoundFreehand);var r=this.viewport.annotationsLayer.getSource();if(this.compoundFreehandList.length>0)for(;this.compoundFreehandList.length>0;){var i=this.compoundFreehandList.pop();r.removeFeature(i)}this.fireEvent(A.c.AnnotationDrawingFinished,{cancelled:!1===e})}}},{key:"listen",value:function(e,t){if(Object.prototype.hasOwnProperty.call(this.listeners,e))return this.listeners[e].push(t),{type:e,listener:t};console.error(e+" is not a valid event")}},{key:"unlistenByKey",value:function(e){if(e&&e.type&&e.listener)if(Object.prototype.hasOwnProperty.call(this.listeners,e.type)){var t=this.listeners[e.type].indexOf(e.listener);-1!==t&&this.listeners[e.type].splice(t,1)}else console.error(e.type+" is not a valid event");else console.error("No valid key provided")}},{key:"fireEvent",value:function(e,t){if(Object.prototype.hasOwnProperty.call(this.listeners,e))for(var n=0,r=this.listeners[e].length;n<r;n++)this.listeners[e][n].call(this,t);else console.error(e+" does not exist")}},{key:"getSelection",value:function(){return this.selectInteraction.getFeatures().getArray()}},{key:"saveAnnotations",value:function(e){isNaN(parseInt(e))&&(e=-1),e=Math.max(e,-1);for(var t=this.viewport.getAnnotations(),n=[],r=[],i=0;i<t.length;i++)if(t[i].metaData&&t[i].metaData.State&&!(e>-1&&t[i].metaData.LayerID!==e))switch(t[i].metaData.State){case L.b.Added:rt.call(this,t[i]),n.push(t[i]);break;case L.b.Pristine:break;case L.b.Modified:rt.call(this,t[i]),r.push(t[i])}yt.call(this,(function(){this.isPMACore2?ft.call(this,n,r,e):mt.call(this,n,r)}))}},{key:"hasChanges",value:function(){if(this.deletedAnnotations&&this.deletedAnnotations.length>0)return!0;for(var e=this.viewport.getAnnotations(),t=0;t<e.length;t++)switch(e[t].metaData.State){case L.b.Added:return!0;case L.b.Pristine:break;case L.b.Modified:return!0}return!1}},{key:"deleteAnnotation",value:function(e){if(null!==e&&!isNaN(e)){var t=this.viewport.annotationsLayer.getSource().getFeatureById(e);if(t){if(this.clearHighlight(),this.clearSelection(),this.viewport.annotationsLayer.getSource().removeFeature
839(t),t.metaData.State===L.b.NotTracked)return;t.metaData.State=L.b.Deleted,this.deletedAnnotations||(this.deletedAnnotations=[]),this.deletedAnnotations.push(t),this.fireEvent(A.c.AnnotationDeleted,{annotationId:e,feature:t})}}}},{key:"highlightAnnotation",value:function(e){if(null!==e&&!isNaN(e)){var t=this.viewport.annotationsLayer.getSource().getFeatureById(e);if(t){var n=this.hoverInteraction.getFeatures();n.clear(),n.push(t)}}}},{key:"clearHighlight",value:function(){this.hoverInteraction.getFeatures().clear()}},{key:"selectAnnotation",value:function(e){if(null!==e&&!isNaN(e)){var t=this.viewport.annotationsLayer.getSource().getFeatureById(e);if(t){var n=this.selectInteraction.getFeatures();n.clear(),n.push(t)}}}},{key:"clearSelection",value:function(){this.selectInteraction.getFeatures().clear()}},{key:"mergeSelection",value:function(e){if(e||(e=this.getSelection()),e&&!(e.length<1)){for(var t=[],n=0;n<e.length;n++){var r=e[n].getGeometry();r.getFirstCoordinate&&t.push({id:e[n].getId(),geometry:r,first:r.getFirstCoordinate(),last:r.getLastCoordinate(),coordinates:r.getCoordinates(),sqDistanceFirst:0,sqDistanceLast:0,sqDistanceFirstFirst:0,sqDistanceLastFirst:0})}for(n=0;n<t.length;n++)this.deleteAnnotation(t[n].id);var i=t[0].coordinates,o=i[0],a=i[i.length-1];for(t.splice(0,1);t.length>0;){var s=-1,l=-1;for(n=0;n<t.length;n++)t[n].sqDistanceFirst=Math.pow(a[0]-t[n].first[0],2)+Math.pow(a[1]-t[n].first[1],2),t[n].sqDistanceLast=Math.pow(a[0]-t[n].last[0],2)+Math.pow(a[1]-t[n].last[1],2),t[n].sqDistanceFirstFirst=Math.pow(o[0]-t[n].first[0],2)+Math.pow(o[1]-t[n].first[1],2),t[n].sqDistanceLastFirst=Math.pow(o[0]-t[n].last[0],2)+Math.pow(o[1]-t[n].last[1],2),(-1==s||t[n].sqDistanceFirst<s)&&(s=t[n].sqDistanceFirst,l=n),(-1==s||t[n].sqDistanceLast<s)&&(s=t[n].sqDistanceLast,l=n);for(var c=t.splice(l,1)[0],d=c.sqDistanceLast<c.sqDistanceFirst,u=0;u<c.coordinates.length;u++)d?i.push(c.coordinates[c.coordinates.length-1-u]):i.push(c.coordinates[u]);o=i[0],a=i[i.length-1]}i.push(i[0]);var h=new k.a([i]),p=new ue.a({geometry:h});p.color=this.lastAnnotationStyle.color,p.fillColor=this.lastAnnotationStyle.fillColor,p.penSize=this.lastAnnotationStyle.penSize,p.icon=this.lastAnnotationStyle.iconPath;var f=!1;this.lastDrawingOptions&&(p.drawingType=this.lastDrawingOptions.drawingType,!0===this.lastDrawingOptions.rejectSelfIntersecting&&(f=!0)),it.call(this,p,!1,f),this.viewport.annotationsLayer.getSource().addFeatures([p]),this.clearSelection()}}},{key:"booleanUnion",value:function(e){var t=this;if(e)if(e.length<2)console.error("This operation requires at least 2 annotations");else{var n=[],r=[],i=new d.a,o={featureProjection:this.viewport.map.getView().getProjection()},a="";e.forEach((function(e){a+=e.metaData.Notes?e.metaData.Notes+" ":""}));for(var s=e[0].metaData.Color?e[0].metaData.Color:e[0].color,l=e[0].metaData.FillColor?e[0].metaData.FillColor:e[0].fillColor,c=e[0].metaData.LineThickness?e[0].metaData.LineThickness:e[0].penSize,u=e[0].icon,h=0;h<e.length;h++){var p=e[h];if("Polygon"!==p.getGeometry().getType()&&"MultiPolygon"!==p.getGeometry().getType())return void console.error("Selection contains non-polygon geometry");var f=i.writeFeatureObject(p,o);n.push(f),r.push(f)}var m=F.a.apply(void 0,r);if("FeatureCollection"===m.type)throw"Feature collection detected";if("MultiPolygon"===m.geometry.type)m.geometry.coordinates.forEach((function(e){var n={type:"Polygon",coordinates:e},r=i.readFeature(n,o);r.color=s,r.fillColor=l,r.penSize=c,r.icon=u,r.notes=a||"",it.call(t,r,!1),t.viewport.annotationsLayer.getSource().addFeatures([r])}));else{var g=i.readFeature(m,o);g.color=s,g.fillColor=l,g.penSize=c,g.icon=u,g.notes=a||"",it.call(this,g,!1),this.viewport.annotationsLayer.getSource().addFeatures([g])}n.forEach((function(e){t.deleteAnnotation(e.id)}))}else console.error("No annotations provided")}},{key:"booleanDifference",value:function(e,t){var n=this;if(!e||!t)throw console.error("No annotations provided"),"No annotations provided";var r=new d.a,i={featureProjection:this.viewport.map.getView().getProjection()},o="";o+=e.metaData.Notes?e.metaData.Notes+" ":"",o+=t.metaData.Notes?t.metaData.Notes+" ":"";var a,s,l=e.metaData.Color?e.metaData.Color:e.color,c=e.metaData.FillColor?e.metaData.FillColor:e.fillColor,u=e.metaData.LineThickness?e.metaData.LineThickness:e.penSize,h=e.icon,p=[],f=[],m=[];
839if("Polygon"!==e.getGeometry().getType())throw console.error("Annotation contains non-polygon geometry"),"Annotation contains non-polygon geometry";var g=r.writeFeatureObject(e,i);if(a=g.id,p.push(g),"Polygon"!==t.getGeometry().getType())throw console.error("Annotation contains non-polygon geometry"),"Annotation contains non-polygon geometry";var v=r.writeFeatureObject(t,i);s=v.id,f.push(v),p.forEach((function(e){f.forEach((function(t){if(!te(e,t))throw console.error("Non-intersecting geometry"),"Non-intersecting geometry";var n=Object(N.a)(e,t);if(!n)throw console.error("Nullified geometry"),"Nullified geometry";if("FeatureCollection"===n.type)throw"Feature collection detected";m.push(n)}))})),m.length>0&&(m.forEach((function(e){if("MultiPolygon"!==e.geometry.type){var t=r.readFeature(e,i);return t.color=l,t.fillColor=c,t.penSize=u,t.icon=h,t.notes=o||"",it.call(n,t,!1),n.viewport.annotationsLayer.getSource().addFeatures([t]),t}e.geometry.coordinates.forEach((function(e){var t={type:"Polygon",coordinates:e},a=r.readFeature(t,i);a.color=l,a.fillColor=c,a.penSize=u,a.icon=h,a.notes=o||"",it.call(n,a,!1),n.viewport.annotationsLayer.getSource().addFeatures([a])}))})),this.deleteAnnotation(a),this.deleteAnnotation(s))}}
839,{key:"saveTransformedAnnotations",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t?(e.color=e.metaData.Color,e.penSize=e.metaData.LineThickness,e.fillColor=e.metaData.FillColor,it.call(this,e,!0)):it.call(this,e,!1)}},{key:"enterTransformMode",value:function(e){var t=e,n=new fe({layers:[this.viewport.annotationsLayer],enableRotatedTransform:!1,translateFeature:!0,scale:!0,rotate:!0,keepAspectRatio:!1,translate:!0,stretch:!0});this.edit=n,this.edit.options={feature:e},this.viewport.map.addInteraction(n),n.on("select",(function(e){e.feature&&e.feature.metaData.State!==L.b.NotTracked&&(e.feature.metaData.State=e.feature.metaData.State===L.b.Added?L.b.Added:L.b.Modified)})),t&&n.select(t,!0)}},{key:"enterModifyMode",value:function(e){var t=e,n=new g.a({source:this.viewport.annotationsLayer.getSource(),features:t?new O.a([t]):void 0});this.edit=n,this.edit.options={feature:e},t&&t.metaData.State!==L.b.NotTracked&&(t.metaData.State=t.metaData.State===L.b.Added?L.b.Added:L.b.Modified),this.viewport.map.addInteraction(n)}},{key:"enterMagicWandMode",value:function(e){if(e){var t=new Ae({layers:[this.viewport.mainLayer],hatchLength:4,hatchTimeout:300,waitClass:"magic-wand-loading",addClass:"magic-wand-add",backgroundColor:this.viewport.imageInfo.backgroundColor});this.edit=t,this.edit.options=e,this.viewport.map.addInteraction(t)}else console.error("No style options provided.")}},{key:"saveMagicWandAnnotation",value:function(){var e=this,t=this.edit.getContours(.5,100);if(t){var n=t.map((function(t){return t.points.map((function(t){return e.viewport.map.getCoordinateFromPixel([t.x,t.y])}))})),r=new ue.a({geometry:new k.a(n)});r.color=this.edit.options.color,r.fillColor=this.edit.options.fillColor,r.penSize=this.edit.options.lineThickness,r.icon=this.edit.options.icon,r.notes=this.edit.options.notes,r.drawingType=L.a.ClosedFreehand,this.saveTransformedA
839nnotations(r,!1),this.viewport.annotationsLayer.getSource().addFeatures([r])}}},{key:"enterBrushMode",value:function(e,t,n){var r=this;n||(n={brushSize:500,brushType:"circle",drawMode:!1});var i=new be({map:this.viewport.map,feature:t,layer:this.viewport.annotationsLayer,brushSize:n.brushSize,brushType:n.brushType,brushMode:e?"eraser":"brush"});i.once("drawingstart",(function(e){if(n.drawMode&&null===e.target.getFeature()&&null===e.target.sel_){var t=e.target.pointer_.clone();r.viewport.annotationsLayer.getSource().addFeature(t)}})),i.once("brushend",(function(e){var t=e.target.getFeature();null!==t&&(t.metaData?it.call(r,t,!0):(t.color=r.edit.options.color,t.fillColor=r.edit.options.fillColor,t.penSize=r.edit.options.lineThickness,t.icon=r.edit.options.icon,t.notes=r.edit.options.notes,it.call(r,t,!1)))})),this.edit=i,this.edit.options=Re(Re({},n),{},{feature:t}),this.viewport.map.addInteraction(i)}},{key:"enterSubtractMode",value:function(e){var t=this;nt.call(this,{type:L.a.ClosedFreehand,color:"#000",fillColor:"#fff6",lineThickness:1,notes:"",hideControls:!0}),e&&(e.originalStyle.getFill().setColor("rgba(0,0,0,0)"),e.originalStyle.getStroke().setColor("#0098fc"),e.originalStyle.getStroke().setWidth(e.originalStyle.getStroke().getWidth()+3));var n=this;this.draw.once("drawstart",(function(){n.snapInteraction.setActive(!1)})),this.draw.once("drawend",(function(r){setTimeout((function(){try{var i=!1;if(!e){var o=r.feature.getGeometry().getExtent(),a=n.viewport.annotationsLayer.getSource().getFeaturesInExtent(o);if(0===a.filter((function(e){return e.getId()!==r.feature.getId()})).length)throw console.error("No intersecting annotation found!"),"No intersecting annotation found!";for(var s=a.filter((function(e){return e.getId()!==r.feature.getId()})),l=new d.a,c={featureProjection:t.viewport.map.getView().getProjection()},u=l.writeFeatureObject(r.feature,c),h=0;h<s.length;h++){var p=l.writeFeatureObject(s[h],c);if(oe(u,p)){e=s[h],i=!0;break}if(te(u,p)){e=s[h],i=!1;break}}if(!e)throw console.error("No intersecting annotation found!"),"No intersecting annotation found!"}i?(n.deleteAnnotation(e.getId()),n.deleteAnnotation(r.feature.getId())):n.booleanDifference(e,r.feature)}catch(t){n.deleteAnnotation(r.feature.getId()),e&&n.setMetadata(e,e.metaData)}finally{et.call(n,!1,L.c.Subtract),n.edit={options:{feature:e}},n.stopTool(),n.snapInteraction.setActive(!0)}}),100)})),this.edit={options:{feature:e}}}},{key:"enterAdditionMode",value:function(e){var t=this;nt.call(this,{type:L.a.ClosedFreehand,color:"#000",fillColor:"#fff6",lineThickness:1,notes:"",hideControls:!0}),e&&(e.originalStyle.getFill().setColor("rgba(0,0,0,0)"),e.originalStyle.getStroke().setColor("#0098fc"),e.originalStyle.getStroke().setWidth(e.originalStyle.getStroke().getWidth()+3));var n=this;this.draw.once("drawstart",(function(){n.snapInteraction.setActive(!1)})),this.draw.once("drawend",(function(r){setTimeout((function(){try{if(!e){var i=r.feature.getGeometry().getExtent(),o=n.viewport.annotationsLayer.getSource().getFeaturesInExtent(i);if(0===o.filter((function(e){return e.getId()!==r.feature.getId()})).length)throw console.error("No intersecting annotation found!"),"No intersecting annotation found!";for(var a=o.filter((function(e){return e.getId()!==r.feature.getId()})),s=new d.a,l={featureProjection:t.viewport.map.getView().getProjection()},c=s.writeFeatureObject(r.feature,l),u=0;u<a.length;u++)if(te(c,s.writeFeatureObject(a[u],l))){e=a[u];break}if(!e)throw console.error("No intersecting annotation found!"),"No intersecting annotation found!"}n.booleanUnion([e,r.feature])}catch(t){n.deleteAnnotation(r.feature.getId()),e&&n.setMetadata(e,e.metaData)}finally{et.call(n,!1,L.c.Addition),n.edit={options:{feature:e}},n.stopTool(),n.snapInteraction.setActive(!0)}}),100)})),this.edit={options:{feature:e}}}},{key:"startTool",value:function(e){if(this.getEnabled())if(this.drawing)console.error("Drawing already in progress. Finish drawing before starting editing.");else{this.editing&&this.stopTool(),this.editing=!0;var t={feature:e.feature?e.feature:null,edit:this.edit};switch(this.fireEvent(A.c.AnnotationEditingStarted,t),e.feature&&e.feature.metaData&&e.feature.metaData.State===L.b.Pristine&&(e.feature.metaData.State=L.b.Modified),e.type){case L.c.Modify:this.enterModifyMode(e.feature);break;case L.c.Transform:this.enterTransformMode(e.feature);break;case L.c.Wand:if(void 0===e.color||void 0===e.fillColor||void 0===e.lineThickness)return console.error("Required parameters missing!"),this.editing=!1,void et.call(this,!1,null,null);this.enterMagicWandMode({color:e.color,fillColor:e.fillColor,lineThickness:e.lineThickness,iconRelativePath:e.iconRelativePath,notes:e.notes});break;case L.c.Brush:if(e.drawMode&&(void 0===e.color||void 0===e.fillColor||void 0===e.lineThickness))return console.error("Required parameters missing!"),this.editing=!1,void et.call(this,!1,null,null);this.enterBrushMode(!1,e.feature,{brushType:e.brushType,brushSize:e.brushSize,drawMode:e.drawMode||!1,color:e.color,fillColor:e.fillColor,lineThickness:e.lineThickness,iconRelativePath:e.iconRelativePath,notes:e.notes});break;case L.c.Eraser:this.enterBrushMode(!0,e.feature,{brushType:e.brushType,brushSize:e.brushSize});break;case L.c.Subtract:this.enterSubtractMode(e.feature,e);break;case L.c.Addition:this.enterAdditionMode(e.feature,e);break;default:return this.editing=!1,void et.call(this,!1,null,null)}et.call(this,!0,e.type,e.feature)}}},{key:"enterEditMode",value:function(e){return this.startTool(e)}},{key:"stopTool",value:function(){var e;if(this.editing&&(this.clearSelection(),null!=this.edit)){this.edit&&this.edit.options&&this.edit.options.feature&&(e=this.edit.options.feature,this.setMetadata(this.edit.options.feature,this.edit.options.feature.metaData));for(var t=this.viewport.getAnnotations(),n=0;n<t.length;n++)if(t[n].metaData&&t[n].metaData.State)switch(t[n].metaData.State){case L.b.Modified:rt.call(this,t[n]),at.call(this,t[n])}et.call(this,!1,null,null),"function"==typeof this.edit.stopEditing&&this.edit.stopEditing(),this.editing=!1,this.viewport.getAnnotationLabelsVisible()&&this.viewport.showAnnotationsLabels(this.viewport.getAnnotationLabelsVisible())}var r={feature:e||null,edit:this.edit};this.fireEvent(A.c.AnnotationEditingEnded,r),st.call(this)}},{key:"stopEditing",value:function(){return this.stopTool()}},{key:"setMetadata",value:function(e,t){e.metaData=t,e.metaData.State===L.b.Pristine&&(e.metaData.State=L.b.Modified),e.metaData.AnnotationID||(e.metaData.State=L.b.Added),this.updateRenderedAnnotation(e),this.updateStyleText(e,this.viewport.getAnnotationFormattedLabel(e)),e.changed()}},{key:"updateStyleText",value:function(e,t){if(e&&t){var n=e.getStyle();if(n&&n.getText){var r=n.getText();r&&r.setText(t)}var i=e.originalStyle;if(i&&i.getText){var o=i.getText();o&&o.setText(t)}}}},{key:"updateRenderedAnnotation",value:function(e){var t=e.metaData.FillColor?e.metaData.FillColor:L.f,n=e.metaData.Color?e.metaData.Color:"#3399CC",r=e.metaData.LineThickness?e.metaData.LineThickness:2;e.originalStyle.getStroke().setColor(n),e.originalStyle.getStroke().setWidth(r),e.originalStyle.getFill
839().setColor(t),-1!==e.metaData.Geometry.indexOf("POINT")&&(n.startsWith("#")||n.startsWith("rgb"))&&(e.originalStyle.getImage().getStroke().setColor(n),e.originalStyle.getImage().getStroke().setWidth(r),e.originalStyle.getImage().setRadius(5),e.originalStyle.getImage().getFill().setColor(t))}}]),e}()},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(234);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(58).default,i=n(264);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,d=-7,u=n?i-1:0,h=n?-1:1,p=e[t+u];for(u+=h,o=p&(1<<-d)-1,p>>=-d,d+=s;d>0;o=256*o+e[t+u],u+=h,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=r;d>0;a=256*a+e[t+u],u+=h,d-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,d=(1<<c)-1,u=d>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+u>=1?h/l:h*Math.pow(2,1-u))*l>=2&&(a++,l/=2),a+u>=d?(s=0,a=d):a+u>=1?(s=(t*l-1)*Math.pow(2,i),a+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*m}},function(e,t,n){var r,i=n(176),o=n(39),a=n(11),s=n(24),l=n(14),c=n(147),d=n(40),u=n(111),h=n(35),p=n(56),f=n(63),m=n(64),g=n(29),v=n(42),y=n(22),b=n(71),_=n(72),w=n(32),x=n(18),C=(n(0),n(44)),S=n(1),E=n(52),k=n(27),T=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),O="Point",$="LineString",P="Polygon",I="Circle",L="drawstart",A=function(e){function t(t,n){var r=e.call(this,t)||this;return r.feature=n,r}return T(t,e),t}(o.a),M=function(e){function t(t){var n=this,r=t;r.stopDown||(r.stopDown=w.a),(n=e.call(this,r)||this).on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=t.source?t.source:null,n.features_=t.features?t.features:null,n.snapTolerance_=t.snapTolerance?t.snapTolerance:12,n.type_=t.type,n.mode_=function(e){switch(e){case"Point":case"MultiPoint":return O;case"LineString":case"MultiLineString":return $;case"Polygon":case"MultiPolygon":return P;case"Circle":return I;default:throw new Error("Invalid type: "+e)}}(n.type_),n.stopClick_=!!t.stopClick,n.minPoints_=t.minPoints?t.minPoints:n.mode_===P?3:2,n.maxPoints_=n.mode_===I?2:t.maxPoints?t.maxPoints:1/0,n.finishCondition_=t.finishCondition?t.finishCondition:w.b,n.geometryLayout_=t.geometryLayout?t.geometryLayout:l.a.XY;var o,a=t.geometryFunction;if(!a){var s,u=n.mode_;u===I?a=function(e,t,n){var r=t||new i.a([NaN,NaN]),o=Object(S.fromUserCoordinate)(e[0],n),a=Object(k.j)(o,Object(S.fromUserCoordinate)(e[e.length-1],n));r.setCenterAndRadius(o,Math.sqrt(a),this.geometryLayout_);var s=Object(S.getUserProjection)();return s&&r.transform(n,s),r}:(u===O?s=g.a:u===$?s=d.a:u===P&&(s=y.a),a=function(e,t,n){return t?u===P?e[0].length?t.setCoordinates([e[0].concat([e[0][0]])],this.geometryLayout_):t.setCoordinates([],this.geometryLayout_):t.setCoordinates(e,this.geometryLayout_):t=new s(e,this.geometryLayout_),t})}return n.geometryFunction_=a,n.dragVertexDelay_=void 0!==t.dragVertexDelay?t.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,n.overlay_=new b.a({source:new _.a({useSpatialIndex:!1,wrapX:!!t.wrapX&&t.wrapX}),style:t.style?t.style:(o=Object(C.b)(),function(e,t){return o[e.getGeometry().getType()]}),updateWhileInteracting:!0}),n.geometryName_=t.geometryName,n.condition_=t.condition?t.condition:x.j,n.freehandCondition_,t.freehand?n.freehandCondition_=x.d:n.freehandCondition_=t.freehandCondition?t.freehandCondition:x.m,n.addChangeListener(c.a.ACTIVE,n.updateState_),n}return T(t,e),t.prototype.setMap=function(t){e.prototype.setMap.call(this,t),this.updateState_()},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleEvent=function(t){t.originalEvent.type===a.a.CONTEXTMENU&&t.originalEvent.preventDefault(),this.freehand_=this.mode_!==O&&this.freehandCondition_(t);var n=t.type===h.a.POINTERMOVE,r=!0;return!this.freehand_&&this.lastDragTime_&&t.type===h.a.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&t.type===h.a.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t.coordinate),r=!1):this.freehand_&&t.type===h.a.POINTERDOWN?r=!1:n&&this.getPointerCount()<2?(r=t.type===h.a.POINTERMOVE)&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):("mouse"===t.originalEvent.pointerType||t.type===h.a.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t):t.type===h.a.DBLCLICK&&(r=!1),e.prototype.handleEvent.call(this,t)&&r},t.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new u.a(h.a.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)},t.prototype.handleUpEvent=function(e){var t=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e),this.shouldHandle_){var n=!this.finishCoordinate_;n&&this.startDrawing_(e.coordinate),!n&&this.freehand_?this.finishDrawing():this.freehand_||n&&this.mode_!==O||(this.atFinish_(e.pixel)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e.coordinate)),t=!1}else this.freehand_&&this.abortDrawing();return!t&&this.stopClick_&&e.preventDefault(),t},t.prototype.handlePointerMove_=function(e){if(this.pointerType_=e.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,n=e.pixel,r=t[0]-n[0],i=t[1]-n[1],o=r*r+i*i;
839if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(e.coordinate):this.createOrUpdateSketchPoint_(e.coordinate.slice())},t.prototype.atFinish_=function(e){var t=!1;if(this.sketchFeature_){var n=!1,r=[this.finishCoordinate_],i=this.mode_;if(i===O)t=!0;else if(i===I)t=2===this.sketchCoords_.length;else if(i===$)n=this.sketchCoords_.length>this.minPoints_;else if(i===P){var o=this.sketchCoords_;n=o[0].length>this.minPoints_,r=[o[0][0],o[0][o[0].length-2]]}if(n)for(var a=this.getMap(),s=0,l=r.length;s<l;s++){var c=r[s],d=a.getPixelFromCoordinate(c),u=e[0]-d[0],h=e[1]-d[1],p=this.freehand_?1:this.snapTolerance_;if(t=Math.sqrt(u*u+h*h)<=p){this.finishCoordinate_=c;break}}}return t},t.prototype.createOrUpdateSketchPoint_=function(e){this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(e):(this.sketchPoint_=new s.a(new g.a(e)),this.updateSketchFeatures_())},t.prototype.createOrUpdateCustomSketchLine_=function(e){this.sketchLine_||(this.sketchLine_=new s.a);var t=e.getLinearRing(0),n=this.sketchLine_.getGeometry();n?(n.setFlatCoordinates(t.getLayout(),t.getFlatCoordinates()),n.changed()):(n=new d.a(t.getFlatCoordinates(),t.getLayout()),this.sketchLine_.setGeometry(n))},t.prototype.startDrawing_=function(e){for(var t=this.getMap().getView().getProjection(),n=Object(E.b)(this.geometryLayout_);e.length<n;)e.push(0);this.finishCoordinate_=e,this.mode_===O?this.sketchCoords_=e.slice():this.mode_===P?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[e.slice(),e.slice()],this.sketchLineCoords_&&(this.sketchLine_=new s.a(new d.a(this.sketchLineCoords_)));var r=this.geometryFunction_(this.sketchCoords_,void 0,t);this.sketchFeature_=new s.a,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(r),this.updateSketchFeatures_(),this.dispatchEvent(new A(L,this.sketchFeature_))},t.prototype.modifyDrawing_=function(e){for(var t,n,r=this.getMap(),i=this.sketchFeature_.getGeometry(),o=r.getView().getProjection(),a=Object(E.b)(this.geometryLayout_);e.length<a;)e.push(0);this.mode_===O?n=this.sketchCoords_:this.mode_===P?(n=(t=this.sketchCoords_[0])[t.length-1],this.atFinish_(r.getPixelFromCoordinate(e))&&(e=this.finishCoordinate_.slice())):n=(t=this.sketchCoords_)[t.length-1],n[0]=e[0],n[1]=e[1],this.geometryFunction_(this.sketchCoords_,i,o),this.sketchPoint_&&this.sketchPoint_.getGeometry().setCoordinates(e),"Polygon"===i.getType()&&this.mode_!==P?this.createOrUpdateCustomSketchLine_(i):this.sketchLineCoords_&&this.sketchLine_.getGeometry().setCoordinates(this.sketchLineCoords_),this.updateSketchFeatures_()},t.prototype.addToDrawing_=function(e){var t,n,r=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),o=this.mode_;o===$||o===I?(this.finishCoordinate_=e.slice(),(n=this.sketchCoords_).length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(e.slice()),this.geometryFunction_(n,r,i)):o===P&&((n=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(e.slice()),t&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,r,i)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),t&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var e,t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;if(r===$||r===I){if((e=this.sketchCoords_).splice(-2,1),e.length>=2){this.finishCoordinate_=e[e.length-2].slice();var i=this.finishCoordinate_.slice();e[e.length-1]=i,this.createOrUpdateSketchPoint_(i)}this.geometryFunction_(e,t,n),"Polygon"===t.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(r===P){(e=this.sketchCoords_[0]).splice(-2,1);var o=this.sketchLine_.getGeometry();e.length>=2&&(i=e[e.length-2].slice(),e[e.length-1]=i,this.createOrUpdateSketchPoint_(i)),o.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}1===e.length&&this.abortDrawing(),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,n=e.getGeometry(),r=this.getMap().getView().getProjection();this.mode_===$?(t.pop(),this.geometryFunction_(t,n,r)):this.mode_===P&&(t[0].pop(),this.geometryFunction_(t,n,r),t=n.getCoordinates()),"MultiPoint"===this.type_?e.setGeometry(new f.a([t])):"MultiLineString"===this.type_?e.setGeometry(new p.a([t])):"MultiPolygon"===this.type_&&e.setGeometry(new m.a([t])),this.dispatchEvent(new A("drawend",e)),this.features_&&this.features_.pu
839sh(e),this.source_&&this.source_.addFeature(e)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),e},t.prototype.abortDrawing=function(){var e=this.abortDrawing_();e&&this.dispatchEvent(new A("drawabort",e))},t.prototype.appendCoordinates=function(e){var t,n=this.mode_,r=!this.sketchFeature_;if(r&&this.startDrawing_(e[0]),n===$||n===I)t=this.sketchCoords_;else{if(n!==P)return;t=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}r&&t.shift(),t.pop();for(var i=0;i<e.length;i++)this.addToDrawing_(e[i]);var o=e[e.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},t.prototype.extend=function(e){var t=e.getGeometry();this.sketchFeature_=e,this.sketchCoords_=t.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.sketchPoint_=new s.a(new g.a(n)),this.updateSketchFeatures_(),this.dispatchEvent(new A(L,this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)},t.prototype.updateState_=function(){var e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing(),this.overlay_.setMap(t?e:null)},t}(v.b);t.a=M},function(e,t,n){var r,i=n(37),o=n(51),a=n(39),s=n(11),l=n(24),c=n(35),d=n(29),u=n(42),h=n(144),p=n(68),f=n(71),m=n(72),g=n(18),v=n(0),y=n(27),b=n(44),_=n(9),w=n(22),x=n(1),C=n(4),S=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E=[0,0,0,0],k=[],T="modifyend",O=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.features=n,i.mapBrowserEvent=r,i}return S(t,e),t}(a.a),$=function(e){function t(t){var n,r,a=e.call(this,t)||this;if(a.on,a.once,a.un,a.boundHandleFeatureChange_=a.handleFeatureChange_.bind(a),a.condition_=t.condition?t.condition:g.l,a.defaultDeleteCondition_=function(e){return Object(g.b)(e)&&Object(g.n)(e)},a.deleteCondition_=t.deleteCondition?t.deleteCondition:a.defaultDeleteCondition_,a.insertVertexCondition_=t.insertVertexCondition?t.insertVertexCondition:g.d,a.vertexFeature_=null,a.vertexSegments_=null,a.lastPixel_=[0,0],a.ignoreNextSingleClick_=!1,a.featuresBeingModified_=null,a.rBush_=new h.a,a.pixelTolerance_=void 0!==t.pixelTolerance?t.pixelTolerance:10,a.snappedToVertex_=!1,a.changingFeature_=!1,a.dragSegments_=[],a.overlay_=new f.a({source:new m.a({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style?t.style:(n=Object(b.b)(),function(e,t){return n.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0}),a.SEGMENT_WRITERS_={Point:a.writePointGeometry_.bind(a),LineString:a.writeLineStringGeometry_.bind(a),LinearRing:a.writeLineStringGeometry_.bind(a),Polygon:a.writePolygonGeometry_.bind(a),MultiPoint:a.writeMultiPointGeometry_.bind(a),MultiLineString:a.writeMultiLineStringGeometry_.bind(a),MultiPolygon:a.writeMultiPolygonGeometry_.bind(a),Circle:a.writeCircleGeometry_.bind(a),GeometryCollection:a.writeGeometryCollectionGeometry_.bind(a)},a.source_=null,a.hitDetection_=null,t.features?r=t.features:t.source&&(a.source_=t.source,r=new i.a(a.source_.getFeatures()),a.source_.addEventListener(p.a.ADDFEATURE,a.handleSourceAdd_.bind(a)),a.source_.addEventListener(p.a.REMOVEFEATURE,a.handleSourceRemove_.bind(a))),!r)throw new Error("The modify interaction requires features, a source or a layer");return t.hitDetection&&(a.hitDetection_=t.hitDetection),a.features_=r,a.features_.forEach(a.addFeature_.bind(a)),a.features_.addEventListener(o.a.ADD,a.handleFeatureAdd_.bind(a)),a.features_.addEventListener(o.a.REMOVE,a.handleFeatureRemove_.bind(a)),a.lastPointerEvent_=null,a.delta_=[0,0],a.snapToPointer_=void 0===t.snapToPointer?!a.hitDetection_:t.snapToPointer,a}return S(t,e),t.prototype.addFeature_=function(e){var t=e.getGeometry();if(t){var n=this.SEGMENT_WRITERS_[t.getType()];n&&n(e,t)}var r=this.getMap();r&&r.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,r),e.addEventListener(s.a.CHANGE,this.boundHandleFeatureChange_)},t.prototype.willModifyFeatures_=function(e,t){if(!this.featuresBeingModified_){this.featuresBeingModified_=new i.a;for(var n=this.featuresBeingModified_.getArray(),r=0,o=t.length;r<o;++r)for(var a=t[r],s=0,l=a.length;s<l;++s){var c=a[s].feature;c&&-1===n.indexOf(c)&&this.featuresBeingModified_.push(c)}0===this.featuresBeingModified_.getLength()?this.featuresBeingModified_=null:this.dispatchEvent(new O("modifystart",this.featuresBeingModified_,e))}},t.prototype.removeFeature_=function(e){this.removeFeatureSegmentData_(e),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature
839(this.vertexFeature_),this.vertexFeature_=null),e.removeEventListener(s.a.CHANGE,this.boundHandleFeatureChange_)},t.prototype.removeFeatureSegmentData_=function(e){var t=this.rBush_,n=[];t.forEach((function(t){e===t.feature&&n.push(t)}));for(var r=n.length-1;r>=0;--r){for(var i=n[r],o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===i&&this.dragSegments_.splice(o,1);t.remove(i)}},t.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.prototype.setActive.call(this,t)},t.prototype.setMap=function(t){this.overlay_.setMap(t),e.prototype.setMap.call(this,t)},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleSourceAdd_=function(e){e.feature&&this.features_.push(e.feature)},t.prototype.handleSourceRemove_=function(e){e.feature&&this.features_.remove(e.feature)},t.prototype.handleFeatureAdd_=function(e){this.addFeature_(e.element)},t.prototype.handleFeatureChange_=function(e){if(!this.changingFeature_){var t=e.target;this.removeFeature_(t),this.addFeature_(t)}},t.prototype.handleFeatureRemove_=function(e){var t=e.element;this.removeFeature_(t)},t.prototype.writePointGeometry_=function(e,t){var n=t.getCoordinates(),r={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),r)},t.prototype.writeMultiPointGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r){var o=n[r],a={feature:e,geometry:t,depth:[r],index:r,segment:[o,o]};this.rBush_.insert(t.getExtent(),a)}},t.prototype.writeLineStringGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length-1;r<i;++r){var o=n.slice(r,r+2),a={feature:e,geometry:t,index:r,segment:o};this.rBush_.insert(Object(v.boundingExtent)(o),a)}},t.prototype.writeMultiLineStringGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),c={feature:e,geometry:t,depth:[r],index:a,segment:l};this.rBush_.insert(Object(v.boundingExtent)(l),c)}},t.prototype.writePolygonGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),c={feature:e,geometry:t,depth:[r],index:a,segment:l};this.rBush_.insert(Object(v.boundingExtent)(l),c)}},t.prototype.writeMultiPolygonGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length;a<s;++a)for(var l=o[a],c=0,d=l.length-1;c<d;++c){var u=l.slice(c,c+2),h={feature:e,geometry:t,depth:[a,r],index:c,segment:u};this.rBush_.insert(Object(v.boundingExtent)(u),h)}},t.prototype.writeCircleGeometry_=function(e,t){var n=t.getCenter(),r={feature:e,geometry:t,index:0,segment:[n,n]},i={feature:e,geometry:t,index:1,segment:[n,n]},o=[r,i];r.featureSegments=o,i.featureSegments=o,this.rBush_.insert(Object(v.createOrUpdateFromCoordinate)(n),r);var a=t,s=Object(x.getUserProjection)();if(s&&this.getMap()){var l=this.getMap().getView().getProjection();a=a.clone().transform(s,l),a=Object(w.b)(a).transform(l,s)}this.rBush_.insert(a.getExtent(),i)},t.prototype.writeGeometryCollectionGeometry_=function(e,t){for(var n=t.getGeometriesArray(),r=0;r<n.length;++r){var i=n[r];(0,this.SEGMENT_WRITERS_[i.getType()])(e,i)}},t.prototype.createOrUpdateVertexFeature_=function(e,t,n){var r=this.vertexFeature_;return r?r.getGeometry().setCoordinates(e):(r=new l.a(new d.a(e)),this.vertexFeature_=r,this.overlay_.getSource().addFeature(r)),r.set("features",t),r.set("geometries",n),r},t.prototype.handleEvent=function(t){return!t.originalEvent||(this.lastPointerEvent_=t,t.map.getView().getInteracting()||t.type!=c.a.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(t),this.vertexFeature_&&this.deleteCondition_(t)&&(n=!(t.type!=c.a.SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),t.type==c.a.SINGLECLICK&&(this.ignoreNextSingleClick_=!1),e.prototype.handleEvent.call(this,t)&&!n);var n},t.prototype.handleDragEvent=function(e){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(e,this.dragSegments_);for(var t=[e.coordinate[0]+this.delta_[0],e.coordinate[1]+this.delta_[1]],n=[],r=[],i=0,o=this.dragSegments_.length;i<o;++i){var a=this.dragSegments_[i],s=a[0],l=s.feature;-1===n.indexOf(l)&&n.push(l);var c=s.geometry;-1===r.indexOf(c)&&r.push(c);for(var d=s.depth,u=void 0,h=s.segment,p=a[1];t.length<c.getStride();)t.push(h[p][t.length]);switch(c.getType()){case"Point":u=t,h[0]=t,h[1]=t;break;case"MultiPoint":(u=c.getCoordinates())[s.index]=t,h[0]=t,h[1]=t;break;case"LineString":(u=c.getCoordinates())[s.index+p]=t,h[p]=t;break;case"MultiLineString":case"Polygon":(u=c.getCoordinates())[d[0]][s.index+p]=t,h[p]=t;break;case"MultiPolygon":(u=c.getCoordinates())[d[1]][d[0]][s.index+p]=t,h[p]=t;break;case"Circle":if(h[0]=t,h[1]=t,0===s.index)this.changingFeature_=!0,c.setCenter(t),this.changingFeature_=!1;else{this.changingFeature_=!0;var f=e.map.getView().getProjection(),m=Object(y.e)(Object(x.fromUserCoordinate)(c.getCenter(),f),Object(x.fromUserCoordinate)(t,f)),g=Object(x.getUserProjection)();if(g){var v=c.clone().transform(g,f);v.setRadius(m),m=v.transform(f,g).getRadius()}c.setRadius(m),this.changingFeature_=!1}}u&&this.setGeometryCoordinates_(c,u)}this.createOrUpdateVertexFeature_(t,n,r)},t.prototype.handleDownEvent=function(e){if(!this.condition_(e))return!1;var t=e.coordinate;this.handlePointerAtPixel_(e.pixel,e.map,t),this.dragSegments_.length=0,this.featuresBeingModified_=null;var n=this.vertexFeature_;if(n){var r=e.map.getView().getProjection(),i=[],o=n.getGeometry().getCoordinates(),a=Object(v.boundingExtent)([o]),s=this.rBush_.getInExtent(a),l={};s.sort(P);for(var c=0,d=s.length;c<d;++c){var u=s[c],h=u.segment,p=Object(C.c)(u.geometry),f=u.depth;if(f&&(p+="-"+f.join("-")),l[p]||(l[p]=new Array(2)),"Circle"!==u.geometry.getType()||1!==u.index)if(!Object(y.f)(h[0],o)||l[p][0])if(!Object(y.f)(h[1],o)||l[p][1])Object(C.c)(h)in this.vertexSegments_&&!l[p][0]&&!l[p][1]&&this.insertVertexCondition_(e)&&i.push(u);else{if(l[p][0]&&0===l[p][0].index){var m=u.geometry.getCoordinates();switch(u.geometry.getType()){case"LineString":case"MultiLineString":continue;case"MultiPolygon":m=m[f[1]];case"Polygon":if(u.index!==m[f[0]].length-2)continue}}
839this.dragSegments_.push([u,1]),l[p][1]=u}else this.dragSegments_.push([u,0]),l[p][0]=u;else{var g=L(t,u,r);Object(y.f)(g,o)&&!l[p][0]&&(this.dragSegments_.push([u,0]),l[p][0]=u)}}i.length&&this.willModifyFeatures_(e,[i]);for(var b=i.length-1;b>=0;--b)this.insertVertex_(i[b],o)}return!!this.vertexFeature_},t.prototype.handleUpEvent=function(e){for(var t=this.dragSegments_.length-1;t>=0;--t){var n=this.dragSegments_[t][0],r=n.geometry;if("Circle"===r.getType()){var i=r.getCenter(),o=n.featureSegments[0],a=n.featureSegments[1];o.segment[0]=i,o.segment[1]=i,a.segment[0]=i,a.segment[1]=i,this.rBush_.update(Object(v.createOrUpdateFromCoordinate)(i),o);var s=r,l=Object(x.getUserProjection)();if(l){var c=e.map.getView().getProjection();s=s.clone().transform(l,c),s=Object(w.b)(s).transform(c,l)}this.rBush_.update(s.getExtent(),a)}else this.rBush_.update(Object(v.boundingExtent)(n.segment),n)}return this.featuresBeingModified_&&(this.dispatchEvent(new O(T,this.featuresBeingModified_,e)),this.featuresBeingModified_=null),!1},t.prototype.handlePointerMove_=function(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map,e.coordinate)},t.prototype.handlePointerAtPixel_=function(e,t,n){var r,i,o=this,a=n||t.getCoordinateFromPixel(e),s=t.getView().getProjection();if(this.hitDetection_){var l="object"==qe(this.hitDetection_)?function(e){return e===o.hitDetection_}:void 0;t.forEachFeatureAtPixel(e,(function(e,t,n){if("Point"===(n=n||e.getGeometry()).getType()&&Object(_.f)(o.features_.getArray(),e)){i=n;var a=n.getFlatCoordinates().slice(0,2);r=[{feature:e,geometry:n,segment:[a,a]}]}return!0}),{layerFilter:l})}if(!r){var c=Object(x.fromUserExtent)(Object(v.createOrUpdateFromCoordinate)(a,E),s),d=t.getView().getResolution()*this.pixelTolerance_,u=Object(x.toUserExtent)(Object(v.buffer)(c,d,E),s);r=this.rBush_.getInExtent(u)}if(r&&r.length>0){var h=r.sort((function(e,t){return I(a,e,s)-I(a,t,s)}))[0],p=h.segment,f=L(a,h,s),m=t.getPixelFromCoordinate(f),g=Object(y.e)(e,m);if(i||g<=this.pixelTolerance_){var b={};if(b[Object(C.c)(p)]=!0,this.snapToPointer_||(this.delta_[0]=f[0]-a[0],this.delta_[1]=f[1]-a[1]),"Circle"===h.geometry.getType()&&1===h.index)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(f,[h.feature],[h.geometry]);else{var w=t.getPixelFromCoordinate(p[0]),S=t.getPixelFromCoordinate(p[1]),k=Object(y.j)(m,w),T=Object(y.j)(m,S);g=Math.sqrt(Math.min(k,T)),this.snappedToVertex_=g<=this.pixelTolerance_,this.snappedToVertex_&&(f=k>T?p[1]:p[0]),this.createOrUpdateVertexFeature_(f,[h.feature],[h.geometry]);var O={};O[Object(C.c)(h.geometry)]=!0;for(var $=1,P=r.length;$<P;++$){var A=r[$].segment;if(!(Object(y.f)(p[0],A[0])&&Object(y.f)(p[1],A[1])||Object(y.f)(p[0],A[1])&&Object(y.f)(p[1],A[0])))break;var M=Object(C.c)(r[$].geometry);M in O||(O[M]=!0,b[Object(C.c)(A)]=!0)}}return void(this.vertexSegments_=b)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)},t.prototype.insertVertex_=function(e,t){for(var n,r=e.segment,i=e.feature,o=e.geometry,a=e.depth,s=e.index;t.length<o.getStride();)t.push(0);switch(o.getType()){case"MultiLineString":case"Polygon":(n=o.getCoordinates())[a[0]].splice(s+1,0,t);break;case"MultiPolygon":(n=o.getCoordinates())[a[1]][a[0]].splice(s+1,0,t);break;case"LineString":(n=o.getCoordinates()).splice(s+1,0,t);break;default:return}this.setGeometryCoordinates_(o,n);var l=this.rBush_;l.remove(e),this.updateSegmentIndices_(o,s,a,1);var c={segment:[r[0],t],feature:i,geometry:o,depth:a,index:s};l.insert(Object(v.boundingExtent)(c.segment),c),this.dragSegments_.push([c,1]);var d={segment:[t,r[1]],feature:i,geometry:o,depth:a,index:s+1};l.insert(Object(v.boundingExtent)(d.segment),d),this.dragSegments_.push([d,0]),this.ignoreNextSingleClick_=!0},t.prototype.removePoint=function(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=c.a.POINTERDRAG){var e=this.lastPointerEvent_;this.willModifyFeatures_(e,this.dragSegments_);var t=this.removeVertex_();return this.featuresBeingModified_&&this.dispatchEvent(new O(T,this.featuresBeingModified_,e)),this.featuresBeingModified_=null,t}return!1},t.prototype.removeVertex_=function(){var e,t,n,r,i,o,a,s,l,c,d,u=this.dragSegments_,h={},p=!1;for(i=u.length-1;i>=0;--i)c=(n=u[i])[0],d=Object(C.c)(c.feature),c.depth&&(d+="-"+c.depth.join("-")),d in h||(h[d]={}),0===n[1]?(h[d].right=c,h[d].index=c.index):1==n[1]&&(h[d].left=c,h[d].index=c.index+1);
839for(d in h){switch(l=h[d].right,a=h[d].left,(s=(o=h[d].index)-1)<0&&(s=0),e=t=(r=(c=void 0!==a?a:l).geometry).getCoordinates(),p=!1,r.getType()){case"MultiLineString":t[c.depth[0]].length>2&&(t[c.depth[0]].splice(o,1),p=!0);break;case"LineString":t.length>2&&(t.splice(o,1),p=!0);break;case"MultiPolygon":e=e[c.depth[1]];case"Polygon":(e=e[c.depth[0]]).length>4&&(o==e.length-1&&(o=0),e.splice(o,1),p=!0,0===o&&(e.pop(),e.push(e[0]),s=e.length-1))}if(p){this.setGeometryCoordinates_(r,t);var f=[];if(void 0!==a&&(this.rBush_.remove(a),f.push(a.segment[0])),void 0!==l&&(this.rBush_.remove(l),f.push(l.segment[1])),void 0!==a&&void 0!==l){var m={depth:c.depth,feature:c.feature,geometry:c.geometry,index:s,segment:f};this.rBush_.insert(Object(v.boundingExtent)(m.segment),m)}this.updateSegmentIndices_(r,o,c.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),u.length=0}}return p},t.prototype.setGeometryCoordinates_=function(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1},t.prototype.updateSegmentIndices_=function(e,t,n,r){this.rBush_.forEachInExtent(e.getExtent(),(function(i){i.geometry===e&&(void 0===n||void 0===i.depth||Object(_.b)(i.depth,n))&&i.index>t&&(i.index+=r)}))},t}(u.b);function P(e,t){return e.index-t.index}function I(e,t,n){var r=t.geometry;if("Circle"===r.getType()){var i=r;if(1===t.index){var o=Object(x.getUserProjection)();o&&(i=i.clone().transform(o,n));var a=Object(y.j)(i.getCenter(),Object(x.fromUserCoordinate)(e,n)),s=Math.sqrt(a)-i.getRadius();return s*s}}var l=Object(x.fromUserCoordinate)(e,n);return k[0]=Object(x.fromUserCoordinate)(t.segment[0],n),k[1]=Object(x.fromUserCoordinate)(t.segment[1],n),Object(y.k)(l,k)}function L(e,t,n){var r=t.geometry;if("Circle"===r.getType()&&1===t.index){var i=r,o=Object(x.getUserProjection)();return o&&(i=i.clone().transform(o,n)),Object(x.toUserCoordinate)(i.getClosestPoint(Object(x.fromUserCoordinate)(e,n)),n)}var a=Object(x.fromUserCoordinate)(e,n);return k[0]=Object(x.fromUserCoordinate)(t.segment[0],n),k[1]=Object(x.fromUserCoordinate)(t.segment[1],n),Object(x.toUserCoordinate)(Object(y.c)(a,k),n)}t.a=$},function(e,t,n){var r,i=n(37),o=n(51),a=n(39),s=n(76),l=n(71),c=n(32),d=n(5),u=n(44),h=n(9),p=n(4),f=n(18),m=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.selected=n,o.deselected=r,o.mapBrowserEvent=i,o}return m(t,e),t}(a.a),v={},y=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un;var r,o,a=t||{};if(n.boundAddFeature_=n.addFeature_.bind(n),n.boundRemoveFeature_=n.removeFeature_.bind(n),n.condition_=a.condition?a.condition:f.n,n.addCondition_=a.addCondition?a.addCondition:f.i,n.removeCondition_=a.removeCondition?a.removeCondition:f.i,n.toggleCondition_=a.toggleCondition?a.toggleCondition:f.m,n.multi_=!!a.multi&&a.multi,n.filter_=a.filter?a.filter:c.b,n.hitTolerance_=a.hitTolerance?a.hitTolerance:0,n.style_=void 0!==a.style?a.style:(r=Object(u.b)(),Object(h.c)(r.Polygon,r.LineString),Object(h.c)(r.GeometryCollection,r.LineString),function(e){return e.getGeometry()?r[e.getGeometry().getType()]:null}),n.features_=a.features||new i.a,a.layers)if("function"==typeof a.layers)o=a.layers;else{var s=a.layers;o=function(e){return Object(h.f)(s,e)}}else o=c.b;return n.layerFilter_=o,n.featureLayerAssociation_={},n}return m(t,e),t.prototype.addFeatureLayerAssociation_=function(e,t){this.featureLayerAssociation_[Object(p.c)(e)]=t},t.prototype.getFeatures=function(){return this.features_},t.prototype.getHitTolerance=function(){return this.hitTolerance_},t.prototype.getLayer=function(e){return this.featureLayerAssociation_[Object(p.c)(e)]},t.prototype.setHitTolerance=function(e){this.hitTolerance_=e},t.prototype.setMap=function(t){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),e.prototype.setMap.call(this,t),t?(this.features_.addEventListener(o.a.ADD,this.boundAddFeature_),this.features_.addEventListener(o.a.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(o.a.ADD,this.boundAddFeature_),this.features_.removeEventListener(o.a.REMOVE,this.boundRemoveFeature_))},t.prototype.addFeature_=function(e){var t=e.element;if(this.style_&&this.applySelectedStyle_(t),!this.getLayer(t)){var n=this.getMap().getAllLayers().find((function(e){if(e instanceof l.a&&e.getSource()&&e.getSource().hasFeature(t))return e}));n&&this.addFeatureLayerAssociation_(t,n)}},t.prototype.removeFeature_=function(e){var t=e.element;this.style_&&this.restorePreviousStyle_(t)},t.prototype.getStyle=function(){return this.style_},t.prototype.applySelectedStyle_=function(e){var t=Object(p.c)(e);t in v||(v[t]=e.getStyle()),e.setStyle(this.style_)},t.prototype.restorePreviousStyle_=function(e){for(var n=this.getMap().getInteractions().getArray(),r=n.length-1;r>=0;--r){var i=n[r];if(i!==this&&i instanceof t&&i.getStyle()&&-1!==i.getFeatures().getArray().lastIndexOf(e))return void e.setStyle(i.getStyle())}var o=Object(p.c)(e);e.setStyle(v[o]),delete v[o]},t.prototype.removeFeatureLayerAssociation_=function(e){delete this.featureLayerAssociation_[Object(p.c)(e)]},t.prototype.handleEvent=function(e){if(!this.condition_(e))return!0;var t=this.addCondition_(e),n=this.removeCondition_(e),r=this.toggleCondition_(e),i=!t&&!n&&!r,o=e.map,a=this.getFeatures(),s=[],l=[];
839if(i){Object(d.b)(this.featureLayerAssociation_),o.forEachFeatureAtPixel(e.pixel,function(e,t){if(this.filter_(e,t))return this.addFeatureLayerAssociation_(e,t),l.push(e),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var c=a.getLength()-1;c>=0;--c){var u=a.item(c),p=l.indexOf(u);p>-1?l.splice(p,1):(a.remove(u),s.push(u))}0!==l.length&&a.extend(l)}else{o.forEachFeatureAtPixel(e.pixel,function(e,i){if(this.filter_(e,i))return!t&&!r||Object(h.f)(a.getArray(),e)?(n||r)&&Object(h.f)(a.getArray(),e)&&(s.push(e),this.removeFeatureLayerAssociation_(e)):(this.addFeatureLayerAssociation_(e,i),l.push(e)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var f=s.length-1;f>=0;--f)a.remove(s[f]);a.extend(l)}return(l.length>0||s.length>0)&&this.dispatchEvent(new g("select",l,s,e)),!0},t}(s.a);t.a=y},function(e,t,n){var r,i=n(51),o=n(11),a=n(42),s=n(144),l=n(68),c=n(32),d=n(0),u=n(27),h=n(22),p=n(1),f=n(4),m=n(5),g=n(12),v=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function y(e){return e.feature?e.feature:e.element?e.element:void 0}var b=[],_=function(e){function t(t){var n=this,r=t||{},i=r;return i.handleDownEvent||(i.handleDownEvent=c.b),i.stopDown||(i.stopDown=c.a),(n=e.call(this,i)||this).source_=r.source?r.source:null,n.vertex_=void 0===r.vertex||r.vertex,n.edge_=void 0===r.edge||r.edge,n.features_=r.features?r.features:null,n.featuresListenerKeys_=[],n.featureChangeListenerKeys_={},n.indexedFeaturesExtents_={},n.pendingFeatures_={},n.pixelTolerance_=void 0!==r.pixelTolerance?r.pixelTolerance:10,n.rBush_=new s.a,n.GEOMETRY_SEGMENTERS_={Point:n.segmentPointGeometry_.bind(n),LineString:n.segmentLineStringGeometry_.bind(n),LinearRing:n.segmentLineStringGeometry_.bind(n),Polygon:n.segmentPolygonGeometry_.bind(n),MultiPoint:n.segmentMultiPointGeometry_.bind(n),MultiLineString:n.segmentMultiLineStringGeometry_.bind(n),MultiPolygon:n.segmentMultiPolygonGeometry_.bind(n),GeometryCollection:n.segmentGeometryCollectionGeometry_.bind(n),Circle:n.segmentCircleGeometry_.bind(n)},n}return v(t,e),t.prototype.addFeature=function(e,t){var n=void 0===t||t,r=Object(f.c)(e),i=e.getGeometry();if(i){var a=this.GEOMETRY_SEGMENTERS_[i.getType()];if(a){this.indexedFeaturesExtents_[r]=i.getExtent(Object(d.createEmpty)());var s=[];if(a(s,i),1===s.length)this.rBush_.insert(Object(d.boundingExtent)(s[0]),{feature:e,segment:s[0]});else if(s.length>1){var l=s.map((function(e){return Object(d.boundingExtent)(e)})),c=s.map((function(t){return{feature:e,segment:t}}));this.rBush_.load(l,c)}}}n&&(this.featureChangeListenerKeys_[r]=Object(g.listen)(e,o.a.CHANGE,this.handleFeatureChange_,this))},t.prototype.forEachFeatureAdd_=function(e){this.addFeature(e)},t.prototype.forEachFeatureRemove_=function(e){this.removeFeature(e)},t.prototype.getFeatures_=function(){var e;return this.features_?e=this.features_:this.source_&&(e=this.source_.getFeatures()),e},t.prototype.handleEvent=function(t){var n=this.snapTo(t.pixel,t.coordinate,t.map);return n&&(t.coordinate=n.vertex.slice(0,2),t.pixel=n.vertexPixel),e.prototype.handleEvent.call(this,t)},t.prototype.handleFeatureAdd_=function(e){var t=y(e);this.addFeature(t)},t.prototype.handleFeatureRemove_=function(e){var t=y(e);this.removeFeature(t)},t.prototype.handleFeatureChange_=function(e){var t=e.target;if(this.handlingDownUpSequence){var n=Object(f.c)(t);n in this.pendingFeatures_||(this.pendingFeatures_[n]=t)}else this.updateFeature_(t)},t.prototype.handleUpEvent=function(e){var t=Object(m.c)(this.pendingFeatures_);return t.length&&(t.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},t.prototype.removeFeature=function(e,t){var n=void 0===t||t,r=Object(f.c)(e),i=this.indexedFeaturesExtents_[r];if(i){var o=this.rBush_,a=[];o.forEachInExtent(i,(function(t){e===t.feature&&a.push(t)}));for(var s=a.length-1;s>=0;--s)o.remove(a[s])}n&&(Object(g.unlistenByKey)(this.featureChangeListenerKeys_[r]),delete this.featureChangeListenerKeys_[r])},t.prototype.setMap=function(t){var n=this.getMap(),r=this.featuresListenerKeys_,o=this.getFeatures_();n&&(r.forEach(g.unlistenByKey),r.length=0,o.forEach(this.forEachFeatureRemove_.bind(this))),e.prototype.setMap.call(this,t),t&&(this.features_?r.push(Object(g.listen)(this.features_,i.a.ADD,this.handleFeatureAdd_,this),Object(g.listen)(this.features_,i.a.REMOVE,this.handleFeatureRemove_,this)):this.source_&&r.push(Object(g.listen)(this.source_,l.a.ADDFEATURE,this.handleFeatureAdd_,this),Object(g.listen)(this.source_,l.a.REMOVEFEATURE,this.handleFeatureRemove_,this)),o.forEach(this.forEachFeatureAdd_.bind(this)))},t.prototype.snapTo=function(e,t,n){var r=n.getCoordinateFromPixel([e[0]-this.pixelTolerance_,e[1]+this.pixelTolerance_]),i=n.getCoordinateFromPixel([e[0]+this.pixelTolerance_,e[1]-this.pixelTolerance_]),o=Object(d.boundingExtent)([r,i]),a=this.rBush_.getInExtent(o),s=a.length;if(0===s)return null;var l,c=n.getView().getProjection(),h=Object(p.fromUserCoordinate)(t,c),f=1/0,m=this.pixelTolerance_*this.pixelTolerance_,g=function(){if(l){var t=n.getPixelFromCo
839ordinate(l);if(Object(u.j)(e,t)<=m)return{vertex:l,vertexPixel:[Math.round(t[0]),Math.round(t[1])]}}return null};if(this.vertex_){for(var v=0;v<s;++v)"Circle"!==(y=a[v]).feature.getGeometry().getType()&&y.segment.forEach((function(e){var t=Object(p.fromUserCoordinate)(e,c),n=Object(u.j)(h,t);n<f&&(l=e,f=n)}));if(T=g())return T}if(this.edge_){for(v=0;v<s;++v){var y,_=null;if("Circle"===(y=a[v]).feature.getGeometry().getType()){var w=y.feature.getGeometry(),x=Object(p.getUserProjection)();x&&(w=w.clone().transform(x,c)),_=Object(p.toUserCoordinate)(Object(u.b)(h,w),c)}else{var C=y.segment,S=C[0],E=C[1];E&&(b[0]=Object(p.fromUserCoordinate)(S,c),b[1]=Object(p.fromUserCoordinate)(E,c),_=Object(u.c)(h,b))}if(_){var k=Object(u.j)(h,_);k<f&&(l=_,f=k)}}var T;if(T=g())return T}return null},t.prototype.updateFeature_=function(e){this.removeFeature(e,!1),this.addFeature(e,!1)},t.prototype.segmentCircleGeometry_=function(e,t){var n=this.getMap().getView().getProjection(),r=t,i=Object(p.getUserProjection)();i&&(r=r.clone().transform(i,n));var o=Object(h.b)(r);i&&o.transform(n,i);for(var a=o.getCoordinates()[0],s=0,l=a.length-1;s<l;++s)e.push(a.slice(s,s+2))},t.prototype.segmentGeometryCollectionGeometry_=function(e,t){for(var n=t.getGeometriesArray(),r=0;r<n.length;++r){var i=this.GEOMETRY_SEGMENTERS_[n[r].getType()];i&&i(e,n[r])}},t.prototype.segmentLineStringGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length-1;r<i;++r)e.push(n.slice(r,r+2))},t.prototype.segmentMultiLineStringGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length-1;a<s;++a)e.push(o.slice(a,a+2))},t.prototype.segmentMultiPointGeometry_=function(e,t){t.getCoordinates().forEac
839h((function(t){e.push([t])}))},t.prototype.segmentMultiPolygonGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length;a<s;++a)for(var l=o[a],c=0,d=l.length-1;c<d;++c)e.push(l.slice(c,c+2))},t.prototype.segmentPointGeometry_=function(e,t){e.push([t.getCoordinates()])},t.prototype.segmentPolygonGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length-1;a<s;++a)e.push(o.slice(a,a+2))},t}(a.b);t.a=_},function(e,t,n){(function(e){var r,i,o=n(116),a=n(39),s=n(11),l=n(167),c=n(197),d=n(79),u=n(112),h=n(115),p=n(190),f=n(108),m=n(5),g=n(23),v=n(10),y=n(0),b=n(4),_=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=!0;try{new ImageData(10,10)}catch(e){w=!1}function x(e){var t=!0;try{new ImageData(10,10)}catch(e){t=!1}function n(e,n,r){return t?new ImageData(e,n,r):{data:e,width:n,height:r}}return function(t){var r=t.buffers,i=t.meta,o=t.imageOps,a=t.width,s=t.height,l=r.length,c=r[0].byteLength;if(o){for(var d=new Array(l),u=0;u<l;++u)d[u]=n(new Uint8ClampedArray(r[u]),a,s);return e(d,i).data.buffer}var h=new Uint8ClampedArray(c),p=new Array(l),f=new Array(l);for(u=0;u<l;++u)p[u]=new Uint8ClampedArray(r[u]),f[u]=[0,0,0,0];for(var m=0;m<c;m+=4){for(var g=0;g<l;++g){var v=p[g];f[g][0]=v[m],f[g][1]=v[m+1],f[g][2]=v[m+2],f[g][3]=v[m+3]}var y=e(f,i);h[m]=y[0],h[m+1]=y[1],h[m+2]=y[2],h[m+3]=y[3]}return h.buffer}}function C(t,n){var r=Object.keys(t.lib||{}).map((function(e){return"var "+e+" = "+t.lib[e].toString()+";"})).concat(["var __minion__ = ("+x.toString()+")(",t.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),i=new Worker("undefined"==typeof Blob?"data:text/javascript;base64,"+e.from(r.join("\n"),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return i.addEventListener("message",n),i}var S=function(e){function t(t){var n,r=e.call(this)||this;r._imageOps=!!t.imageOps,n=0===t.threads?0:r._imageOps?1:t.threads||1;var i=new Array(n);if(n)for(var o=0;o<n;++o)i[o]=C(t,r._onWorkerMessage.bind(r,o));else i[0]=function(e,t){var n=x(e.operation),r=!1;return{postMessage:function(e){setTimeout((function(){r||t({data:{buffer:n(e),meta:e.meta}})}),0)},terminate:function(){r=!0}}}(t,r._onWorkerMessage.bind(r,0));return r._workers=i,r._queue=[],r._maxQueueLength=t.queue||1/0,r._running=0,r._dataLookup={},r._job=null,r}return _(t,e),t.prototype.process=function(e,t,n){this._enqueue({inputs:e,meta:t,callback:n}),this._dispatch()},t.prototype._enqueue=function(e){for(this._queue.push(e);this._queue.length>this._maxQueueLength;)this._queue.shift().callback(null,null)},t.prototype._dispatch=function(){if(!this._running&&0!==this._queue.length){var e=this._queue.shift();this._job=e;var t=e.inputs[0].width,n=e.inputs[0].height,r=e.inputs.map((function(e){return e.data.buffer})),i=this._workers.length;if(this._running=i,1!==i)for(var o=e.inputs[0].data.length,a=4*Math.ceil(o/4/i),s=0;s<i;++s){for(var l=s*a,c=[],d=0,u=r.length;d<u;++d)c.push(r[d].slice(l,l+a));this._workers[s].postMessage({buffers:c,meta:e.meta,imageOps:this._imageOps,width:t,height:n},c)}else this._workers[0].postMessage({buffers:r,meta:e.meta,imageOps:this._imageOps,width:t,height:n},r)}},t.prototype._onWorkerMessage=function(e,t){this.disposed||(this._dataLookup[e]=t.data,--this._running,0===this._running&&this._resolveJob())},t.prototype._resolveJob=function(){var e,t,n=this._job,r=this._workers.length;if(1===r)e=new Uint8ClampedArray(this._dataLookup[0].buffer),t=this._dataLookup[0].meta;else{var o=n.inputs[0].data.length;
839e=new Uint8ClampedArray(o),t=new Array(r);for(var a=4*Math.ceil(o/4/r),s=0;s<r;++s){var l=this._dataLookup[s].buffer,c=s*a;e.set(new Uint8ClampedArray(l),c),t[s]=this._dataLookup[s].meta}}this._job=null,this._dataLookup={},n.callback(null,function(e,t,n){if(w)return new ImageData(e,t,n);i||(i=document.createElement("canvas").getContext("2d"));var r=i.createImageData(t,n);return r.data.set(e),r}(e,n.inputs[0].width,n.inputs[0].height),t),this._dispatch()},t.prototype.disposeInternal=function(){for(var e=0;e<this._workers.length;++e)this._workers[e].terminate();this._workers.length=0},t}(o.a),E=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.extent=n.extent,i.resolution=n.viewState.resolution/n.pixelRatio,i.data=r,i}return _(t,e),t}(a.a),k=function(e){function t(t){var n=e.call(this,{projection:null})||this;n.on,n.once,n.un,n.processor_=null,n.operationType_=void 0!==t.operationType?t.operationType:"pixel",n.threads_=void 0!==t.threads?t.threads:1,n.layers_=function(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=$(e[r]);return n}(t.sources);for(var r,i=n.changed.bind(n),o=0,a=n.layers_.length;o<a;++o)n.layers_[o].addEventListener(s.a.CHANGE,i);return n.tileQueue_=new p.a((function(){return 1}),n.changed.bind(n)),n.requestedFrameState_,n.renderedImageCanvas_=null,n.renderedRevision_,n.frameState_={animate:!1,coordinateToPixelTransform:Object(v.c)(),declutterTree:null,extent:null,index:0,layerIndex:0,layerStatesArray:(r=n.layers_,r.map((function(e){return e.getLayerState()}))),pixelRatio:1,pixelToCoordinateTransform:Object(v.c)(),postRenderFunctions:[],size:[0,0],tileQueue:n.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Object(b.c)(n),renderTargets:{}},n.setAttributions((function(e){for(var n=[],r=0,i=t.sources.length;r<i;++r){var o=t.sources[r],a=(o instanceof u.a?o:o.getSource()).getAttributions();if("function"==typeof a){var s=a(e);n.push.apply(n,s)}}return 0!==n.length?n:null})),void 0!==t.operation&&n.setOperation(t.operation,t.lib),n}return _(t,e),t.prototype.setOperation=function(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new S({operation:e,imageOps:"image"===this.operationType_,queue:1,lib:t,threads:this.threads_}),this.changed()},t.prototype.updateFrameState_=function(e,t,n){var r=Object(m.a)({},this.frameState_);r.viewState=Object(m.a)({},r.viewState);var i=Object(y.getCenter)(e);r.extent=e.slice(),r.size[0]=Math.round(Object(y.getWidth)(e)/t),r.size[1]=Math.round(Object(y.getHeight)(e)/t),r.time=Date.now();var o=r.viewState;return o.center=i,o.projection=n,o.resolution=t,r},t.prototype.allSourcesReady_=function(){for(var e=!0,t=0,n=this.layers_.length;t<n;++t)if("ready"!==this.layers_[t].getSource().getState()){e=!1;break}return e},t.prototype.getImage=function(e,t,n,r){if(!this.allSourcesReady_())return null;var i=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=i,this.renderedImageCanvas_){var o=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();t===o&&Object(y.equals)(e,a)||(this.renderedImageCanvas_=null)}return this.renderedImageCanvas_&&this.getRevision()===this.renderedRevision_||this.processSources_(),i.tileQueue.loadMoreTiles(16,16),i.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_},t.prototype.processSources_=function(){for(var e=this.requestedFrameState_,t=this.layers_.length,n=new Array(t),r=0;r<t;++r){e.layerIndex=r;var i=O(this.layers_[r],e);if(!i)return;n[r]=i}var o={};this.dispatchEvent(new E("beforeoperations",e,o)),this.processor_.process(n,o,this.onWorkerComplete_.bind(this,e))},t.prototype.onWorkerComplete_=function(e,t,n,r){if(!t&&n){var i=e.extent,o=e.viewState.resolution;if(o===this.requestedFrameState_.viewState.resolution&&Object(y.equals)(i,this.requestedFrameState_.extent)){var a;if(this.renderedImageCanvas_)a=this.renderedImageCanvas_.getImage().getContext("2d");else{var s=Math.round(Object(y.getWidth)(i)/o),c=Math.round(Object(y.getHeight)(i)/o);a=Object(g.a)(s,c),this.renderedImageCanvas_=new l.a(i,o,1,a.canvas)}a.putImageData(n,0,0),this.changed(),this.renderedRevision_=this.getRevision(),this.dispatchEvent(new E("afteroperations",e,r)),e.animate&&requestAnimationFrame(this.changed.bind(this))}}},t.prototype.disposeInternal=function(){this.processor_&&this.processor_.dispose(),e.prototype.disposeInternal.call(this)},t}(d.a);k.prototype.dispose;var T=null;function O(e,t){var n=e.getRenderer();if(!n)throw new Error("Unsupported layer type: "+e);if(!n.prepareFrame(t))return null;var r=t.size[0],i=t.size[1];if(0===r||0===i)return null;var o,a=n.renderFrame(t,null);if(a instanceof HTMLCanvasElement)o=a;else{if(a&&(o=a.firstElementChild),!(o instanceof HTMLCanvasElement))throw new Error("Unsupported rendered element: "+o);if(o.width===r&&o.height===i)return o.getContext("2d").getImageData(0,0,r,i)}if(T){var s=T.canvas;s.width!==r||s.height!==i?T=Object(g.a)(r,i):T.clearRect(0,0,r,i)}else T=Object(g.a)(r,i);return T.drawImage(o,0,0,r,i),T.getImageData(0,0,r,i)}function $(e){var t;return e instanceof u.a?e instanceof f.b?t=new h.a({source:e}):e instanceof d.a&&(t=new c.a({source:e})):t=e,t}t.a=k}).call(this,n(191).Buffer)},function(e,t,n){var r,i=n(24),o=n(70),a=n(14),s=n(40),l=n(56),c=n(63),d=n(64),u=n(29),h=n(22),p=n(168),f=n(33),m=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g={POINT:u.a,LINESTRING:s.a,POLYGON:h.a,MULTIPOINT:c.a,MULTILINESTRING:l.a,MULTIPOLYGON:d.a},v={Point:"POINT",LineString:"LINESTRING",Polygon:"POLYGON",MultiPoint:"MULTIPOINT",MultiLineString:"MULTILINESTRING",MultiPolygon:"MULTIPOLYGON",GeometryCollection:"GEOMETRYCOLLECTION",Circle:"CIRCLE"},y=function(){function e(e){this.wkt=e,this.index_=-1}
839return e.prototype.isAlpha_=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"},e.prototype.isNumeric_=function(e,t){return e>="0"&&e<="9"||"."==e&&!(void 0!==t&&t)},e.prototype.isWhiteSpace_=function(e){return" "==e||"\t"==e||"\r"==e||"\n"==e},e.prototype.nextChar_=function(){return this.wkt.charAt(++this.index_)},e.prototype.nextToken=function(){var e,t=this.nextChar_(),n=this.index_,r=t;if("("==t)e=2;else if(","==t)e=5;else if(")"==t)e=3;else if(this.isNumeric_(t)||"-"==t)e=4,r=this.readNumber_();else if(this.isAlpha_(t))e=1,r=this.readText_();else{if(this.isWhiteSpace_(t))return this.nextToken();if(""!==t)throw new Error("Unexpected character: "+t);e=6}return{position:n,value:r,type:e}},e.prototype.readNumber_=function(){var e,t=this.index_,n=!1,r=!1;do{"."==e?n=!0:"e"!=e&&"E"!=e||(r=!0),e=this.nextChar_()}while(this.isNumeric_(e,n)||!r&&("e"==e||"E"==e)||r&&("-"==e||"+"==e));return parseFloat(this.wkt.substring(t,this.index_--))},e.prototype.readText_=function(){var e,t=this.index_;do{e=this.nextChar_()}while(this.isAlpha_(e));return this.wkt.substring(t,this.index_--).toUpperCase()},e}(),b=function(){function e(e){this.lexer_=e,this.token_={position:0,type:0},this.layout_=a.a.XY}return e.prototype.consume_=function(){this.token_=this.lexer_.nextToken()},e.prototype.isTokenType=function(e){return this.token_.type==e},e.prototype.match=function(e){var t=this.isTokenType(e);return t&&this.consume_(),t},e.prototype.parse=function(){return this.consume_(),this.parseGeometry_()},e.prototype.parseGeometryLayout_=function(){var e=a.a.XY,t=this.token_;if(this.isTokenType(1)){var n=t.value;"Z"===n?e=a.a.XYZ:"M"===n?e=a.a.XYM:"ZM"===n&&(e=a.a.XYZM),e!==a.a.XY&&this.consume_()}return e},e.prototype.parseGeometryCollectionText_=function(){if(this.match(2)){var e=[];do{e.push(this.parseGeometry_())}while(this.match(5));if(this.match(3))return e}throw new Error(this.formatErrorMessage_())},e.prototype.parsePointText_=function(){if(this.match(2)){var e=this.parsePoint_();if(this.match(3))return e}throw new Error(this.formatErrorMessage_())},e.prototype.parseLineStringText_=function(){if(this.match(2)){var e=this.parsePointList_();if(this.match(3))return e}throw new Error(this.formatErrorMessage_())},e.prototype.parsePolygonText_=function(){if(this.match(2)){var e=this.parseLineStringTextList_();if(this.match(3))return e}throw new Error(this.formatErrorMessage_())},e.prototype.parseMultiPointText_=function(){if(this.match(2)){var e;if(e=2==this.token_.type?this.parsePointTextList_():this.parsePointList_(),this.match(3))return e}throw new Error(this.formatErrorMessage_())},e.prototype.parseMultiLineStringText_=function(){if(this.match(2)){var e=this.parseLineStringTextList_();if(this.match(3))return e}throw new Error(this.formatErrorMessage_())},e.prototype.parseMultiPolygonText_=function(){if(this.match(2)){var e=this.parsePolygonTextList_();if(this.match(3))return e}throw new Error(this.formatErrorMessage_())},e.prototype.parsePoint_=function(){for(var e=[],t=this.layout_.length,n=0;n<t;++n){var r=this.token_;if(!this.match(4))break;e.push(r.value)}if(e.length==t)return e;throw new Error(this.formatErrorMessage_())},e.prototype.parsePointList_=function(){for(var e=[this.parsePoint_()];this.match(5);)e.push(this.parsePoint_());return e},e.prototype.parsePointTextList_=function(){for(var e=[this.parsePointText_()];this.match(5);)e.push(this.parsePointText_());return e},e.prototype.parseLineStringTextList_=function(){for(var e=[this.parseLineStringText_()];this.match(5);)e.push(this.parseLineStringText_());return e},e.prototype.parsePolygonTextList_=function(){for(var e=[this.parsePolygonText_()];this.match(5);)e.push(this.parsePolygonText_());return e},e.prototype.isEmptyGeometry_=function(){var e=this.isTokenType(1)&&"EMPTY"==this.token_.value;return e&&this.consume_(),e},e.prototype.formatErrorMessage_=function(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"},e.prototype.parseGeometry_=function(){var e=this.token_;if(this.match(1)){var t=e.value;this.layout_=this.parseGeometryLayout_();var n=this.isEmptyGeometry_();if("GEOMETRYCOLLECTION"==t){if(n)return new o.a([]);var r=this.parseGeometryCollectionText_();return new o.a(r)}var i=g[t];if(!i)throw new Error("Invalid geometry type: "+t);var a=void 0;if(n)a="POINT"==t?[NaN,NaN]:[];else switch(t){case"POINT":a=this.parsePointText_();break;case"LINESTRING":a=this.parseLineStringText_();break;case"POLYGON":a=this.parsePolygonText_();break;case"MULTIPOINT":a=this.parseMultiPointText_();break;case"MULTILINESTRING":a=this.parseMultiLineStringText_();break;case"MULTIPOLYGON":a=this.parseMultiPolygonText_()}return new i(a,this.layout_)}throw new Error(this.formatErrorMessage_())},e}(),_=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.splitCollection_=void 0!==r.splitCollection&&r.splitCollection,n}return m(t,e),t.prototype.parse_=function(e){var t=new y(e);return new b(t).parse()},t.prototype.readFeatureFromText=function(e,t){var n=this.readGeometryFromText(e,t),r=new i.a;return r.setGeometry(n),r},t.prototype.readFeaturesFromText=function(e,t){for(var n,r=this.readGeometryFromText(e,t),o=[],a=0,s=(n=this.splitCollection_&&"GeometryCollection"==r.getType()?r.getGeometriesArray():[r]).length;a<s;++a){var l=new i.a;l.setGeometry(n[a]),o.push(l)}return o},t.prototype.readGeometryFromText=function(e,t){var n=this.parse_(e);return Object(f.c)(n,!1,t)},t.prototype.writeFeatureText=function(e,t){var n=e.getGeometry();return n?this.writeGeometryText(n,t):""},t.prototype.writeFeaturesText=function(e,t){if(1==e.length)return this.writeFeatureText(e[0],t);for(var n=[],r=0,i=e.length;r<i;++r)n.push(e[r].getGeometry());var a=new o.a(n);return this.writeGeometryText(a,t)},t.prototype.writeGeometryText=function(e,t){return E(Object(f.c)(e,!0,t))},t}(p.a);function w(e){var t=e.getCoordinates();return 0===t.length?"":t.join(" ")}function x(e){for(var t=e.getCoordinates(),n=[],r=0,i=t.length;r<i;++r)n.push(t[r].join(" "));return n.join(",")}function C(e){for(var t=[],n=e.getLinearRings(),r=0,i=n.length;r<i;++r)t.push("("+x(n[r])+")");return t.join(",")}var S={Point:w,LineString:x,Polygon:C,MultiPoint:function(e){for(var t=[],n=e.getPoints(),r=0,i=n.length;r<i;++r)t.push("("+w(n[r])+")");return t.join(",")},MultiLineString:function(e){for(var t=[],n=e.getLineStrings(),r=0,i=n.length;r<i;++r)t.push("("+x(n[r])+")");return t.join(",")},MultiPolygon:function(e){for(var t=[],n=e.getPolygons(),r=0,i=n.length;r<i;++r)t.push("("+C(n[r])+")");return t.join(",")},GeometryCollection:function(e){for(var t=[],n=e.getGeometries(),r=0,i=n.length;r<i;++r)t.push(E(n[r]));return t.join(",")}};function E(e){var t=e.getType(),n=(0,S[t])(e),r=v[t];if("function"==typeof e.getFlatCoordinates){var i=function(e){var t=e.getLayout(),n="";return t!==a.a.XYZ&&t!==a.a.XYZM||(n+="Z"),t!==a.a.XYM&&t!==a.a.XYZM||(n+="M"),n}(e);i.length>0&&(r+=" "+i)}return 0===n.length?r+" EMPTY":r+"("+n+")"}t.a=_},function(e,t,n){var r=n(31);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=JSON.parse('{"name":"@pathomation/pma.ui","version":"2.43.3","build":"549","description":"PMA.UI is a Javascript library that provides UI and programmatic components to interact with PMA.core","main":"src/index.js","directories":{"lib":"lib","man":"man"}
839,"dependencies":{"@turf/turf":"^6.5.0","caniuse-lite":"^1.0.30001247","file-saver":"^2.0.2","font-awesome":"^4.7.0","jquery":"^3.5.1","jquery.fancytree":"^2.36.1","nouislider":"^14.6.0","ol":"^6.5.0","ol-magic-wand":"^1.0.5","perfect-scrollbar":"^1.5.0"},"devDependencies":{"@babel/core":"^7.12.13","@babel/plugin-transform-runtime":"^7.13.10","@babel/preset-env":"^7.12.13","@types/nouislider":"^9.0.7","@types/ol":"^6.3.1","babel-loader":"^8.2.2","base64-inline-loader":"^2.0.1","copy-webpack-plugin":"^6.0.2","css-loader":"^3.5.3","docdash":"^1.2.0","eslint":"^8.48.0","eslint-webpack-plugin":"^2.7.0","file-loader":"^6.0.0","font-awesome":"^4.7.0","jsdoc":"^3.6.4","jsdoc-template":"git+https://github.com/braintree/jsdoc-template.git","mini-css-extract-plugin":"^0.9.0","node-svn-ultimate":"^1.2.1","null-loader":"^4.0.0","optimize-css-assets-webpack-plugin":"^5.0.3","perfect-scrollbar":"^1.5.0","rimraf":"^3.0.2","ts-loader":"^7.0.5","typescript":"^3.9.5","webpack":"4.46.0","webpack-cli":"^3.3.11","webpack-dev-server":"^3.11.0"},"scripts":{"test":"echo \\"Error: no test specified\\" && exit 1","dev":"webpack --watch","clean":"rimraf dist/* && rimraf build/*","build":"npm run clean && npx webpack --mode=production && npm run copy && compress.bat","build-wordpress":"npm run clean && npx webpack --mode=production --config webpack.wordpress.config.js","documentation":"jsdoc -c jsdoc\\\\conf.json && copy-bundle.bat","publish-npm":"npm publish --access public","copy":"powershell cp package.json dist/"},"keywords":["digital pathology","pathology","whole slide image","digital slide"],"author":"Pathomation","license":"ISC"}')},function(e,t,n){(function(e){function r(){var t='const e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const t=Object(e);for(let e=1,n=arguments.length;e<n;++e){const n=arguments[e];if(null!=n)for(const e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}return t},n="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"";n.indexOf("firefox");-1!==n.indexOf("safari")&&-1==n.indexOf("chrom")&&(n.indexOf("version/15.4")>=0||n.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==n.indexOf("webkit")&&n.indexOf("edge"),n.indexOf("macintosh"),"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&(self,WorkerGlobalScope),function(){let e=!1;try{const n=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,n),window.removeEventListener("_",null,n)}catch(e){}}(),new Array(6);const t="GENERATE_BUFFERS",o=[],r={vertexPosition:0,indexPosition:0};function i(e,n,t,o,r){e[n+0]=t,e[n+1]=o,e[n+2]=r}function s(e,n,t,s,f,c){const l=3+f,a=e[n+0],u=e[n+1],d=o;d.length=f;for(let t=0;t<d.length;t++)d[t]=e[n+2+t];let g=c?c.vertexPosition:0,x=c?c.indexPosition:0;const h=g/l;return i(t,g,a,u,0),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,1),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,2),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,3),d.length&&t.set(d,g+3),g+=l,s[x++]=h,s[x++]=h+1,s[x++]=h+3,s[x++]=h+1,s[x++]=h+2,s[x++]=h+3,r.vertexPosition=g,r.indexPosition=x,r}const f=self;f.onmessage=n=>{const o=n.data;if(o.type===t){const n=3,t=2,r=o.customAttributesCount,i=t+r,c=new Float32Array(o.renderInstructions),l=c.length/i,a=4*l*(r+n),u=new Uint32Array(6*l),d=new Float32Array(a);let g;for(let e=0;e<c.length;e+=i)g=s(c,e,d,u,r,g);const x=e({vertexBuffer:d.buffer,indexBuffer:u.buffer,renderInstructions:c.buffer},o);f.postMessage(x,[d.buffer,u.buffer,c.buffer])}};';return new Worker("undefined"==typeof Blob?"data:application/javascript;base64,"+e.from(t,"binary").toString("base64"):URL.createObjectURL(new Blob([t],{type:"application/javascript"})))}n.d(t,"a",(function(){return r}))}).call(this,n(191).Buffer)},function(e,t,n){e.exports=i;var r=n(237);function i(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var o="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function a(e){return e.type===i.Bytes?e.readVarint()+e.pos:e.pos+1}function s(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function l(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=e;i--)n.buf[i+r]=n.buf[i]}function c(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function d(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function u(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function h(e,t){for(var n=0;n<e.length;
vendor: 8,695 bytes, line 839
839n++)t.writeDouble(e[n])}function p(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function f(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function m(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function g(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function v(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function y(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function b(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function _(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}i.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,e(i,t,this),this.pos===o&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=y(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=_(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=y(this.buf,this.pos)+4294967296*y(this.buf,this.pos+4);return this.pos+=8,e},readSFixed64:function(){var e=y(this.buf,this.pos)+4294967296*_(this.buf,this.pos+4);return this.pos+=8,e},readFloat:function(){var e=r.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=r.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return s(e,r,t);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return s(e,r,t);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return s(e,r,t);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return s(e,r,t);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return s(e,r,t);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return s(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&o?function(e,t,n){return o.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){for(var r="",i=t;i<n;){var o,a,s,l=e[i],c=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d>n)break;1===d?l<128&&(c=l):2===d?128==(192&(o=e[i+1]))&&(c=(31&l)<<6|63&o)<=127&&(c=null):3===d?(o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&((c=(15&l)<<12|(63&o)<<6|63&a)<=2047||c>=55296&&c<=57343)&&(c=null)):4===d&&(o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,d=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),i+=d}return r}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==i.Bytes)return e.push(this.readVarint(t));var n=a(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==i.Bytes)return e.push(this.readSVarint());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==i.Bytes)return e.push(this.readBoolean());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==i.Bytes)return e.push(this.readFloat());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==i.Bytes)return e.push(this.readDouble());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==i.Bytes)return e.push(this.readFixed32());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==i.Bytes)return e.push(this.readSFixed32());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==i.Bytes)return e.push(this.readFixed64());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==i.Bytes)return e.push(this.readSFixed64());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===i.Varint)for(;this.buf[this.pos++]>127;);else if(t===i.Bytes)this.pos=this.readVarint()+this.pos;else if(t===i.Fixed32)this.pos+=4;else{if(t!==i.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var n=new Uint8Array(t);n.set(this.buf),this.buf=n,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),b(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),b(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),b(this.buf,-1&e,this.pos),b(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),b(this.buf,-1&e,this.pos),b(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var n,r;if(e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos]=127&e}(n,0,t),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var r,i,o=0;o<t.length;o++){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){r>56319||o+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):i=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(e[n++]=239,e[n++]=191,e[n++]=189,i=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&l(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),r.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),r.write(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n<t;n++)this.buf[this.pos++]=e[n]},writeRawMessage:function(e,t){this.pos++;var n=this.pos;e(t,this);var r=this.pos-n;r>=128&&l(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,i.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,c,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,d,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,p,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,u,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,h,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,f,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,m,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,g,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,v,t)},writeBytesField:function(e,t){this.writeTag(e,i.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,i.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,i.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,i.Fixed64),this.writeFixed64
839(t)},writeSFixed64Field:function(e,t){this.writeTag(e,i.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,i.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,i.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,i.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,i.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,i.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}}},function(e,t,n){var r=n(268);function i(e,t,n){for(var i,o=[],a=n&&n.debug||!1,s=!n||"boolean"!=typeof n.nested||n.nested,l=n&&n.startIndex||0;i=r(e,t,{debug:a,startIndex:l});)l=s?i.start+1+t.length:i.end,o.push(i);return a&&console.log("findTagsByName found",o.length,"tags"),o}e.exports=i,e.exports.default=i},function(e,t,n){var r=n(272),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),d=Symbol("noDisposeOnSet"),u=Symbol("lruList"),h=Symbol("cache"),p=Symbol("updateAgeOnGet"),f=function(){return 1},m=function(e,t,n){var r=e[h].get(t);if(r){var i=r.value;if(g(e,i)){if(y(e,r),!e[s])return}else n&&(e[p]&&(r.value.now=Date.now()),e[u].unshiftNode(r));return i.value}},g=function(e,t){if(!t||!t.maxAge&&!e[l])return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},v=function(e){if(e[o]>e[i])for(var t=e[u].tail;e[o]>e[i]&&null!==t;){var n=t.prev;y(e,t),t=n}},y=function(e,t){if(t){var n=t.value;e[c]&&e[c](n.key,n.value),e[o]-=n.length,e[h].delete(n.key),e[u].removeNode(t)}},b=Ie((function e(t,n,r,i,o){Ae(this,e),this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=o||0})),_=function(e,t,n,r){var i=n.value;g(e,i)&&(y(e,n),e[s]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=function(){function e(t){if(Ae(this,e),"number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;var n=t.length||f;if(this[a]="function"!=typeof n?f:n,this[s]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[c]=t.dispose,this[d]=t.noDisposeOnSet||!1,this[p]=t.updateAgeOnGet||!1,this.reset()}return Ie(e,[{key:"max",get:function(){return this[i]},set:function(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,v(this)}},{key:"allowStale",get:function(){return this[s]},set:function(e){this[s]=!!e}},{key:"maxAge",get:function(){return this[l]},set:function(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,v(this)}},{key:"lengthCalculator",get:function(){return this[a]},set:function(e){var t=this;"function"!=typeof e&&(e=f),e!==this[a]&&(this[a]=e,this[o]=0,this[u].forEach((function(e){e.length=t[a](e.value,e.key),t[o]+=e.length}))),v(this)}},{key:"length",get:function(){return this[o]}},{key:"itemCount",get:function(){return this[u].length}},{key:"rforEach",value:function(e,t){t=t||this;for(var n=this[u].tail;null!==n;){var r=n.prev;_(this,e,n,t),n=r}}},{key:"forEach",value:function(e,t){t=t||this;for(var n=this[u].head;null!==n;){var r=n.next;_(this,e,n,t),n=r}}},{key:"keys",value:function(){return this[u].toArray().map((function(e){return e.key}))}},{key:"values",value:function(){return this[u].toArray().map((function(e){return e.value}))}},{key:"reset",value:function(){var e=this;this[c]&&this[u]&&this[u].length&&this[u].forEach((function(t){return e[c](t.key,t.value)})),this[h]=new Map,this[u]=new r,this[o]=0}},{key:"dump",value:function(){var e=this;return this[u].map((function(t){return!g(e,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}})).toArray().filter((function(e){return e}))}},{key:"dumpLru",value:function(){return this[u]}},{key:"set",value:function(e,t,n){if((n=n||this[l])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");var r=n?Date.now():0,s=this[a](t,e);if(this[h].has(e)){if(s>this[i])return y(this,this[h].get(e)),!1;var p=this[h].get(e).value;return this[c]&&(this[d]||this[c](e,p.value)),p.now=r,p.maxAge=n,p.value=t,this[o]+=s-p.length,p.length=s,this.get(e),v(this),!0}var f=new b(e,t,s,r,n);return f.length>this[i]?(this[c]&&this[c](e,t),!1):(this[o]+=f.length,this[u].unshift(f),this[h].set(e,this[u].head),v(this),!0)}},{key:"has",value:function(e){if(!this[h].has(e))return!1;var t=this[h].get(e).value;return!g(this,t)}},{key:"get",value:function(e){return m(this,e,!0)}},{key:"peek",value:function(e){return m(this,e,!1)}},{key:"pop",value:function(){var e=this[u].tail;return e?(y(this,e),e.value):null}},{key:"del",value:function(e){y(this,this[h].get(e))}},{key:"load",value:function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{var o=i-t;o>0&&this.set(r.k,r.v,o)}}}},{key:"prune",value:function(){var e=this;
839this[h].forEach((function(t,n){return m(e,n,!1)}))}}]),e}()},function(e,t,n){(function(e){n.d(t,"a",(function(){return h}));var r=n(251),i=n.n(r),o=n(252),a=n.n(o),s=n(253),l=n.n(s),c=n(127),d=n(45),u=function(e){Me(r,e);var t,n=je(r);function r(e,t){var i;return Ae(this,r),(i=n.call(this)).response=e,i.dataPromise=t,i}return Ie(r,[{key:"status",get:function(){return this.response.statusCode}},{key:"getHeader",value:function(e){return this.response.headers[e]}},{key:"getData",value:(t=Ve($e().mark((function e(){return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.dataPromise;case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(c.b),h=function(t){Me(o,t);var n,r=je(o);function o(e){var t;return Ae(this,o),(t=r.call(this,e)).parsedUrl=l.a.parse(t.url),t.httpApi="http:"===t.parsedUrl.protocol?i.a:a.a,t}return Ie(o,[{key:"constructRequest",value:function(t,n){var r=this;return new Promise((function(i,o){var a=r.httpApi.get(be(be({},r.parsedUrl),{},{headers:t}),(function(t){var n=new Promise((function(n){var r=[];t.on("data",(function(e){r.push(e)})),t.on("end",(function(){var t=e.concat(r).buffer;n(t)})),t.on("error",o)}));i(new u(t,n))}));a.on("error",o),n&&(n.aborted&&a.destroy(new d.a("Request aborted")),n.addEventListener("abort",(function(){return a.destroy(new d.a("Request aborted"))})))}))}},{key:"request",value:(n=Ve($e().mark((function e(){var t,n,r,i=arguments;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.headers,r=t.signal,e.next=3,this.constructRequest(n,r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),o}(c.a)}).call(this,n(191).Buffer)},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){(function(e){n.d(t,"a",(function(){return a}));var r=n(221),i=n.n(r),o=function(t){Me(a,t);var n,r,o=je(a);function a(e){var t;return Ae(this,a),(t=o.call(this)).path=e,t.openRequest=function(e,t,n){return new Promise((function(t,n){i.a.open(e,"r",void 0,(function(e,r){e?n(e):t(r)}))}))}(e),t}return Ie(a,[{key:"fetchSlice",value:(r=Ve($e().mark((function t(n){var r,o,a;return $e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.openRequest;case 2:return r=t.sent,t.next=5,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise((function(e,n){var r;(r=i.a).read.apply(r,t.concat([function(t,r,i){t?n(t):e({bytesRead:r,buffer:i})}]))}))}(r,e.alloc(n.length),0,n.length,n.offset);case 5:return o=t.sent,a=o.buffer,t.abrupt("return",a.buffer);case 8:case"end":return t.stop()}}),t,this)}))),function(e){return r.apply(this,arguments)})},{key:"close",value:(n=Ve($e().mark((function e(){var t;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.openRequest;case 2:return t=e.sent,e.next=5,function(e){return new Promise((function(t,n){i.a.close(e,(function(e){e?n(e):t()}))}))}(t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),a}(n(121).a);function a(e){return new o(e)}}).call(this,n(191).Buffer)},function(e,t,n){var r=n(244),i=n(142);function o(e,t,n,a){return(o="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,o){var a,s=r(e,t);if(s){if((a=Object.getOwnPropertyDescriptor(s,t)).set)return a.set.call(o,n),!0;if(!a.writable)return!1}if(a=Object.getOwnPropertyDescriptor(o,t)){if(!a.writable)return!1;a.value=n,Object.defineProperty(o,t,a)}else i(o,t,n);return!0})(e,t,n,a)}e.exports=function(e,t,n,r,i){if(!o(e,t,n,r||e)&&i)throw new TypeError("failed to set property");return n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r,i;/*! nouislider - 14.7.0 - 4/6/2021 */void 0===(i="function"==typeof(r=function(){function e(e){e.parentElement.removeChild(e)}function t(e){return null!=e}function n(e){e.preventDefault()}function r(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function i(e,t,n){n>0&&(l(e,t),setTimeout((function(){c(e,t)}),n))}function o(e){return Math.max(Math.min(e,100),0)}function a(e){return Array.isArray(e)?e:[e]}function s(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function l(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function c(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function d(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function u(e,t){return 100/(t-e)}function h(e,t,n){return 100*t/(e[n+1]-e[n])}function p(e,t){for(var n=1;e>=t[n];)n+=1;return n}function f(e,t,n){var i;if("number"==typeof t&&(t=[t]),!Array.isArray(t))throw new Error("noUiSlider (14.7.0): 'range' contains invali
839d value.");if(!r(i="min"===e?0:"max"===e?100:parseFloat(e))||!r(t[0]))throw new Error("noUiSlider (14.7.0): 'range' value isn't numeric.");n.xPct.push(i),n.xVal.push(t[0]),i?n.xSteps.push(!isNaN(t[1])&&t[1]):isNaN(t[1])||(n.xSteps[0]=t[1]),n.xHighestCompleteStep.push(0)}function m(e,t,n){if(t)if(n.xVal[e]!==n.xVal[e+1]){n.xSteps[e]=h([n.xVal[e],n.xVal[e+1]],t,0)/u(n.xPct[e],n.xPct[e+1]);var r=(n.xVal[e+1]-n.xVal[e])/n.xNumSteps[e],i=Math.ceil(Number(r.toFixed(3))-1),o=n.xVal[e]+n.xNumSteps[e]*i;n.xHighestCompleteStep[e]=o}else n.xSteps[e]=n.xHighestCompleteStep[e]=n.xVal[e]}function g(e,t,n){var r;this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=t;var i=[];for(r in e)e.hasOwnProperty(r)&&i.push([e[r],r]);for(i.length&&"object"==qe(i[0][0])?i.sort((function(e,t){return e[0][0]-t[0][0]})):i.sort((function(e,t){return e[0]-t[0]})),r=0;r<i.length;r++)f(i[r][1],i[r][0],this);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)m(r,this.xNumSteps[r],this)}g.prototype.getDistance=function(e){var t,n=[];for(t=0;t<this.xNumSteps.length-1;t++){var r=this.xNumSteps[t];if(r&&e/r%1!=0)throw new Error("noUiSlider (14.7.0): 'limit', 'margin' and 'padding' of "+this.xPct[t]+"% range must be divisible by step.");n[t]=h(this.xVal,e,t)}return n},g.prototype.getAbsoluteDistance=function(e,t,n){var r,i=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[i+1];)i++;else e===this.xPct[this.xPct.length-1]&&(i=this.xPct.length-2);n||e!==this.xPct[i+1]||i++;var o=1,a=t[i],s=0,l=0,c=0,d=0;for(r=n?(e-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):(this.xPct[i+1]-e)/(this.xPct[i+1]-this.xPct[i]);a>0;)s=this.xPct[i+1+d]-this.xPct[i+d],t[i+d]*o+100-100*r>100?(l=s*r,o=(a-100*r)/t[i+d],r=1):(l=t[i+d]*s/100*o,o=0),n?(c-=l,this.xPct.length+d>=1&&d--):(c+=l,this.xPct.length-d>=1&&d++),a=t[i+d]*o;return e+c},g.prototype.toStepping=function(e){return function(e,t,n){if(n>=e.slice(-1)[0])return 100;var r=p(n,e),i=e[r-1],o=e[r],a=t[r-1],s=t[r];return a+function(e,t){return h(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([i,o],n)/u(a,s)}(this.xVal,this.xPct,e)},g.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var r=p(n,t),i=e[r-1],o=e[r],a=t[r-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([i,o],(n-a)*u(a,t[r]))}(this.xVal,this.xPct,e)},g.prototype.getStep=function(e){return function(e,t,n,r){if(100===r)return r;var i=p(r,e),o=e[i-1],a=e[i];return n?r-o>(a-o)/2?a:o:t[i-1]?e[i-1]+function(e,t){return Math.round(e/t)*t}(r-e[i-1],t[i-1]):r}(this.xPct,this.xSteps,this.snap,e)},g.prototype.getDefaultStep=function(e,t,n){var r=p(e,this.xPct);return(100===e||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/n},g.prototype.getNearbySteps=function(e){var t=p(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},g.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(s);return Math.max.apply(null,e)},g.prototype.convert=function(e){return this.getStep(this.toStepping(e))};var v={to:function(e){return void 0!==e&&e.toFixed(2)},from:Number},y={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},b=".__tooltips",_=".__aria";function w(e){if(function(e){return"object"==qe(e)&&"function"==typeof e.to&&"function"==typeof e.from}(e))return!0;throw new Error("noUiSlider (14.7.0): 'format' requires 'to' and 'from' methods.")}function x(e,t){if(!r(t))throw new Error("noUiSlider (14.7.0): 'step' is not numeric.");e.singleStep=t}function C(e,t){if(!r(t))throw new Error("noUiSlider (14.7.0): 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function S(e,t){if(!r(t))throw new Error("noUiSlider (14.7.0): 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function E(e,t){if("object"!=qe(t)||Array.isArray(t))throw new Error("noUiSlider (14.7.0): 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider (14.7.0): Missing 'min' or 'max' in 'range'.");if(t.min===t.max)throw new Error("noUiSlider (14.7.0): 'range' 'min' and 'max' cannot be equal.");e.spectrum=new g(t,e.snap,e.singleStep)}function k(e,t){if(t=a(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider (14.7.0): 'start' option is incorrect.");e.handles=t.length,e.start=t}function T(e,t){if(e.snap=t,"boolean"!=typeof t)throw new Error("noUiSlider (14.7.0): 'snap' option must be a boolean.")}function O(e,t){if(e.animate=t,"boolean"!=typeof t)throw new Error("noUiSlider (14.7.0): 'animate' option must be a boolean.")}function $(e,t){if(e.animationDuration=t,"number"!=typeof t)throw new Error("noUiSlider (14.7.0): 'animationDuration' option must be a number.")}function P(e,t){var n,r=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(n=1;n<e.handles;n++)r.push(t);r.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider (14.7.0): 'connect' option doesn't match handle count.");r=t}e.connect=r}function I(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider (14.7.0): 'orientation' option is invali
839d.")}}function L(e,t){if(!r(t))throw new Error("noUiSlider (14.7.0): 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function A(e,t){if(!r(t))throw new Error("noUiSlider (14.7.0): 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider (14.7.0): 'limit' option is only supported on linear sliders with 2 or more handles.")}function M(e,t){var n;if(!r(t)&&!Array.isArray(t))throw new Error("noUiSlider (14.7.0): 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!r(t[0])&&!r(t[1]))throw new Error("noUiSlider (14.7.0): 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],n=0;n<e.spectrum.xNumSteps.length-1;n++)if(e.padding[0][n]<0||e.padding[1][n]<0)throw new Error("noUiSlider (14.7.0): 'padding' option must be a positive number(s).");var i=t[0]+t[1],o=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-o)>1)throw new Error("noUiSlider (14.7.0): 'padding' option must not exceed 100% of the range.")}}function j(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider (14.7.0): 'direction' option was not recognized.")}}function R(e,t){if("string"!=typeof t)throw new Error("noUiSlider (14.7.0): 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,r=t.indexOf("drag")>=0,i=t.indexOf("fixed")>=0,o=t.indexOf("snap")>=0,a=t.indexOf("hover")>=0,s=t.indexOf("unconstrained")>=0;if(i){if(2!==e.handles)throw new Error("noUiSlider (14.7.0): 'fixed' behaviour must be used with 2 handles");L(e,e.start[1]-e.start[0])}if(s&&(e.margin||e.limit))throw new Error("noUiSlider (14.7.0): 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||o,drag:r,fixed:i,snap:o,hover:a,unconstrained:s}}function D(e,t){if(!1!==t)if(!0===t){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(!0)}else{if(e.tooltips=a(t),e.tooltips.length!==e.handles)throw new Error("noUiSlider (14.7.0): must pass a formatter for all handles.");e.tooltips.forEach((function(e){if("boolean"!=typeof e&&("object"!=qe(e)||"function"!=typeof e.to))throw new Error("noUiSlider (14.7.0): 'tooltips' must be passed a formatter or 'false'.")}))}}function F(e,t){e.ariaFormat=t,w(t)}function N(e,t){e.format=t,w(t)}function B(e,t){if(e.keyboardSupport=t,"boolean"!=typeof t)throw new Error("noUiSlider (14.7.0): 'keyboardSupport' option must be a boolean.")}function U(e,t){e.documentElement=t}function z(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider (14.7.0): 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function G(e,t){if("object"!=qe(t))throw new Error("noUiSlider (14.7.0): 'cssClasses' must be an object.");if("string"==typeof e.cssPrefix)for(var n in e.cssClasses={},t)t.hasOwnProperty(n)&&(e.cssClasses[n]=e.cssPrefix+t[n]);else e.cssClasses=t}function V(e){var n={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:v,format:v},r={step:{r:!1,t:x},keyboardPageMultiplier:{r:!1,t:C},keyboardDefaultStep:{r:!1,t:S},start:{r:!0,t:k},connect:{r:!0,t:P},direction:{r:!0,t:j},snap:{r:!1,t:T},animate:{r:!1,t:O},animationDuration:{r:!1,t:$},range:{r:!0,t:E},orientation:{r:!1,t:I},margin:{r:!1,t:L},limit:{r:!1,t:A},padding:{r:!1,t:M},behaviour:{r:!0,t:R},ariaFormat:{r:!1,t:F},format:{r:!1,t:N},tooltips:{r:!1,t:D},keyboardSupport:{r:!0,t:B},documentElement:{r:!1,t:U},cssPrefix:{r:!0,t:z},cssClasses:{r:!0,t:G}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:y,keyboardPageMultiplier:5,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(r).forEach((function(o){if(!t(e[o])&&void 0===i[o]){if(r[o].r)throw new Error("noUiSlider (14.7.0): '"+o+"' is required.");return!0}r[o].t(n,t(e[o])?e[o]:i[o])})),n.pips=e.pips;var o=document.createElement("div"),a=void 0!==o.style.msTransform,s=void 0!==o.style.transform;return n.transformRule=s?"transform":a?"msTransform":"webkitTransform",n.style=[["left","top"],["right","bottom"]][n.dir][n.ort],n}function q(r,s,u){var h,p,f,m,g,v,y,w,x=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}
839:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},C=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),S=r,E=s.spectrum,k=[],T=[],O=[],$=0,P={},I=r.ownerDocument,L=s.documentElement||I.documentElement,A=I.body,M="rtl"===I.dir||1===s.ort?0:100;function j(e,t){var n=I.createElement("div");return t&&l(n,t),e.appendChild(n),n}function R(e,t){var n=j(e,s.cssClasses.origin),r=j(n,s.cssClasses.handle);return j(r,s.cssClasses.touchArea),r.setAttribute("data-handle",t),s.keyboardSupport&&(r.setAttribute("tabindex","0"),r.addEventListener("keydown",(function(e){return function(e,t){if(N()||B(t))return!1;var n=["Left","Right"],r=["Down","Up"],i=["PageDown","PageUp"],o=["Home","End"];s.dir&&!s.ort?n.reverse():s.ort&&!s.dir&&(r.reverse(),i.reverse());var a,l=e.key.replace("Arrow",""),c=l===i[0],d=l===i[1],u=l===r[0]||l===n[0]||c,h=l===r[1]||l===n[1]||d,p=l===o[1];if(!(u||h||l===o[0]||p))return!0;if(e.preventDefault(),h||u){var f=s.keyboardPageMultiplier,m=u?0:1,g=pe(t)[m];if(null===g)return!1;!1===g&&(g=E.getDefaultStep(T[t],u,s.keyboardDefaultStep)),(d||c)&&(g*=f),g=Math.max(g,1e-7),g*=u?-1:1,a=k[t]+g}else a=p?s.spectrum.xVal[s.spectrum.xVal.length-1]:s.spectrum.xVal[0];return le(t,E.toStepping(a),!0,!0),ne("slide",t),ne("update",t),ne("change",t),ne("set",t),!1}(e,t)}))),r.setAttribute("role","slider"),r.setAttribute("aria-orientation",s.ort?"vertical":"horizontal"),0===t?l(r,s.cssClasses.handleLower):t===s.handles-1&&l(r,s.cssClasses.handleUpper),n}function D(e,t){return!!t&&j(e,s.cssClasses.connect)}function F(e,t){return!!s.tooltips[t]&&j(e.firstChild,s.cssClasse
839s.tooltip)}function N(){return S.hasAttribute("disabled")}function B(e){return p[e].hasAttribute("disabled")}function U(){g&&(te("update"+b),g.forEach((function(t){t&&e(t)})),g=null)}function z(){U(),g=p.map(F),ee("update"+b,(function(e,t,n){if(g[t]){var r=e[t];!0!==s.tooltips[t]&&(r=s.tooltips[t].to(n[t])),g[t].innerHTML=r}}))}function G(e,t,n){var r=I.createElement("div"),i=[];i[0]=s.cssClasses.valueNormal,i[1]=s.cssClasses.valueLarge,i[2]=s.cssClasses.valueSub;var o=[];o[0]=s.cssClasses.markerNormal,o[1]=s.cssClasses.markerLarge,o[2]=s.cssClasses.markerSub;var a=[s.cssClasses.valueHorizontal,s.cssClasses.valueVertical],c=[s.cssClasses.markerHorizontal,s.cssClasses.markerVertical];function d(e,t){var n=t===s.cssClasses.value,r=n?i:o;return t+" "+(n?a:c)[s.ort]+" "+r[e]}return l(r,s.cssClasses.pips),l(r,0===s.ort?s.cssClasses.pipsHorizontal:s.cssClasses.pipsVertical),Object.keys(e).forEach((function(i){!function(e,i,o){if(-1!==(o=t?t(i,o):o)){var a=j(r,!1);a.className=d(o,s.cssClasses.marker),a.style[s.style]=e+"%",o>
8390&&((a=j(r,!1)).className=d(o,s.cssClasses.value),a.setAttribute("data-value",i),a.style[s.style]=e+"%",a.innerHTML=n.to(i))}}(i,e[i][0],e[i][1])})),r}function q(){m&&(e(m),m=null)}function H(e){q();var t=e.mode,n=e.density||1,r=e.filter||!1,i=function(e,t,n){if("range"===e||"steps"===e)return E.xVal;if("count"===e){if(t<2)throw new Error("noUiSlider (14.7.0): 'values' (>= 2) required for mode 'count'.");var r=t-1,i=100/r;for(t=[];r--;)t[r]=r*i;t.push(100),e="positions"}return"positions"===e?t.map((function(e){return E.fromStepping(n?E.getStep(e):e)})):"values"===e?n?t.map((function(e){return E.fromStepping(E.getStep(E.toStepping(e)))})):t:void 0}(t,e.values||!1,e.stepped||!1),o=function(e,t,n){function r(e,t){return(e+t).toFixed(7)/1}var i,o={},a=E.xVal[0],s=E.xVal[E.xVal.length-1],l=!1,c=!1,d=0;return i=n.slice().sort((function(e,t){return e-t})),(n=i.filter((function(e){return!this[e]&&(this[e]=!0)}),{}))[0]!==a&&(n.unshift(a),l=!0),n[n.length-1]!==s&&(n.push(s),c=!0),n.forEach((function(i,a){var s,u,h,p,f,m,g,v,y,b,_=i,w=n[a+1],x="steps"===t;if(x&&(s=E.xNumSteps[a]),s||(s=w-_),!1!==_)for(void 0===w&&(w=_),s=Math.max(s,1e-7),u=_;u<=w;u=r(u,s)){for(v=(f=(p=E.toStepping(u))-d)/e,b=f/(y=Math.round(v)),h=1;h<=y;h+=1)o[(m=d+h*b).toFixed(5)]=[E.fromStepping(m),0];g=n.indexOf(u)>-1?1:x?2:0,!a&&l&&u!==w&&(g=0),u===w&&c||(o[p.toFixed(5)]=[u,g]),d=p}})),o}(n,t,i),a=e.format||{to:Math.round};return m=S.appendChild(G(o,r,a))}function W(){var e=h.getBoundingClientRect(),t="offset"+["Width","Height"][s.ort];return 0===s.ort?e.width||h[t]:e.height||h[t]}function Y(e,t,n,r){var i=function(i){return!!(i=function(e,t,n){var r,i,o=0===e.type.indexOf("touch"),a=0===e.type.indexOf("mouse"),s=0===e.type.indexOf("pointer");if(0===e.type.indexOf("MSPointer")&&(s=!0),"mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(o){var l=function(e){return e.target===n||n.contains(e.target)||e.target.shadowRoot&&e.target.shadowRoot.contains(n)};if("touchstart"===e.type){var c=Array.prototype.filter.call(e.touches,l);if(c.length>1)return!1;r=c[0].pageX,i=c[0].pageY}else{var u=Array.prototype.find.call(e.changedTouches,l);if(!u)return!1;r=u.pageX,i=u.pageY}}return t=t||d(I),(a||s)&&(r=e.clientX+t.x,i=e.clientY+t.y),e.pageOffset=t,e.points=[r,i],e.cursor=a||s,e}(i,r.pageOffset,r.target||t))&&!(N()&&!r.doNotReject)&&(o=S,a=s.cssClasses.tap,!((o.classList?o.classList.contains(a):new RegExp("\\b"+a+"\\b").test(o.className))&&!r.doNotReject)&&!(e===x.start&&void 0!==i.buttons&&i.buttons>1)&&(!r.hover||!i.buttons)&&(C||i.preventDefault(),i.calcPoint=i.points[s.ort],void n(i,r)));var o,a},o=[];return e.split(" ").forEach((function(e){t.addEventListener(e,i,!!C&&{passive:!0}),o.push([e,i])})),o}function X(e){var t,n,r,i,a,l,c=100*(e-(t=h,n=s.ort,r=t.getBoundingClientRect(),a=(i=t.ownerDocument).documentElement,l=d(i),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),n?r.top+l.y-a.clientTop:r.left+l.x-a.clientLeft))/W();return c=o(c),s.dir?100-c:c}function K(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&J(e,t)}function Z(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return J(e,t);var n=(s.dir?-1:1)*(e.calcPoint-t.startCalcPoint);oe(n>0,100*n/t.baseSize,t.locations,t.handleNumbers)}function J(e,t){t.handle&&(c(t.handle,s.cssClasses.active),$-=1),t.listeners.forEach((function(e){L.removeEventListener(e[0],e[1])}
vendor: 1,329 bytes, line 839
839)),0===$&&(c(S,s.cssClasses.drag),se(),e.cursor&&(A.style.cursor="",A.removeEventListener("selectstart",n))),t.handleNumbers.forEach((function(e){ne("change",e),ne("set",e),ne("end",e)}))}function Q(e,t){if(t.handleNumbers.some(B))return!1;var r;1===t.handleNumbers.length&&(r=p[t.handleNumbers[0]].children[0],$+=1,l(r,s.cssClasses.active)),e.stopPropagation();var i=[],o=Y(x.move,L,Z,{target:e.target,handle:r,listeners:i,startCalcPoint:e.calcPoint,baseSize:W(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:T.slice()}),a=Y(x.end,L,J,{target:e.target,handle:r,listeners:i,doNotReject:!0,handleNumbers:t.handleNumbers}),c=Y("mouseout",L,K,{target:e.target,handle:r,listeners:i,doNotReject:!0,handleNumbers:t.handleNumbers});i.push.apply(i,o.concat(a,c)),e.cursor&&(A.style.cursor=getComputedStyle(e.target).cursor,p.length>1&&l(S,s.cssClasses.drag),A.addEventListener("selectstart",n,!1)),t.handleNumbers.forEach((function(e){ne("start",e)}))}function ee(e,t){P[e]=P[e]||[],P[e].push(t),"update"===e.split(".")[0]&&p.forEach((function(e,t){ne("update",t)}))}function te(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(P).forEach((function(e){var r=e.split(".")[0],i=e.substring(r.length);t&&t!==r||n&&n!==i||function(e){return e===_||e===b}(i)&&n!==i||delete P[e]}
839))}function ne(e,t,n){Object.keys(P).forEach((function(r){var i=r.split(".")[0];e===i&&P[r].forEach((function(e){e.call(v,k.map(s.format.to),t,k.slice(),n||!1,T.slice(),v)}))}))}function re(e,t,n,r,i,a){var l;return p.length>1&&!s.events.unconstrained&&(r&&t>0&&(l=E.getAbsoluteDistance(e[t-1],s.margin,0),n=Math.max(n,l)),i&&t<p.length-1&&(l=E.getAbsoluteDistance(e[t+1],s.margin,1),n=Math.min(n,l))),p.length>1&&s.limit&&(r&&t>0&&(l=E.getAbsoluteDistance(e[t-1],s.limit,0),n=Math.min(n,l)),i&&t<p.length-1&&(l=E.getAbsoluteDistance(e[t+1],s.limit,1),n=Math.max(n,l))),s.padding&&(0===t&&(l=E.getAbsoluteDistance(0,s.padding[0],0),n=Math.max(n,l)),t===p.length-1&&(l=E.getAbsoluteDistance(100,s.padding[1],1),n=Math.min(n,l))),!((n=o(n=E.getStep(n)))===e[t]&&!a)&&n}function ie(e,t){var n=s.ort;return(n?t:e)+", "+(n?e:t)}function oe(e,t,n,r){var i=n.slice(),o=[!e,e],a=[e,!e];r=r.slice(),e&&r.reverse(),r.length>1?r.forEach((function(e,n){var r=re(i,e,i[e]+t,o[n],a[n],!1);!1===r?t=0:(t=r-i[e],i[e]=r)})):o=a=[!0];var s=!1;r.forEach((function(e,r){s=le(e,n[e]+t,o[r],a[r])||s})),s&&r.forEach((function(e){ne("update",e),ne("slide",e)}))}function ae(e,t){return s.dir?100-e-t:e}function se(){O.forEach((function(e){var t=T[e]>50?-1:1,n=3+(p.length+t*e);p[e].style.zIndex=n}))}function le(e,t,n,r,i){return i||(t=re(T,e,t,n,r,!1)),!1!==t&&(function(e,t){T[e]=t,k[e]=E.fromStepping(t);var n="translate("+ie(10*(ae(t,0)-M)+"%","0")+")";p[e].style[s.transformRule]=n,ce(e),ce(e+1)}(e,t),!0)}function ce(e){if(f[e]){var t=0,n=100;0!==e&&(t=T[e-1]),e!==f.length-1&&(n=T[e]);var r=n-t,i="translate("+ie(ae(t,r)+"%","0")+")",o="scale("+ie(r/100,"1")+")";f[e].style[s.transformRule]=i+" "+o}}function de(e,t){return null===e||!1===e||void 0===e?T[t]:("number"==typeof e&&(e=String(e)),e=s.format.from(e),!1===(e=E.toStepping(e))||isNaN(e)?T[t]:e)}function ue(e,t,n){var r=a(e),o=void 0===T[0];
839t=void 0===t||!!t,s.animate&&!o&&i(S,s.cssClasses.tap,s.animationDuration),O.forEach((function(e){le(e,de(r[e],e),!0,!1,n)}));for(var l=1===O.length?0:1;l<O.length;++l)O.forEach((function(e){le(e,T[e],!0,!0,n)}));se(),O.forEach((function(e){ne("update",e),null!==r[e]&&t&&ne("set",e)}))}function he(){var e=k.map(s.format.to);return 1===e.length?e[0]:e}function pe(e){var t=T[e],n=E.getNearbySteps(t),r=k[e],i=n.thisStep.step,o=null;if(s.snap)return[r-n.stepBefore.startValue||null,n.stepAfter.startValue-r||null];!1!==i&&r+i>n.stepAfter.startValue&&(i=n.stepAfter.startValue-r),o=r>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&r-n.stepBefore.highestStep,100===t?i=null:0===t&&(o=null);var a=E.countStepDecimals();return null!==i&&!1!==i&&(i=Number(i.toFixed(a))),null!==o&&!1!==o&&(o=Number(o.toFixed(a))),[o,i]}return l(y=S,s.cssClasses.target),0===s.dir?l(y,s.cssClasses.ltr):l(y,s.cssClasses.rtl),0===s.ort?l(y,s.cssClasses.horizontal):l(y,s.cssClasses.vertical),l(y,"rtl"===getComputedStyle(y).direction?s.cssClasses.textDirectionRtl:s.cssClasses.textDirectionLtr),h=j(y,s.cssClasse
839s.base),function(e,t){var n=j(t,s.cssClasses.connects);p=[],(f=[]).push(D(n,e[0]));for(var r=0;r<s.handles;r++)p.push(R(t,r)),O[r]=r,f.push(D(n,e[r+1]))}(s.connect,h),(w=s.events).fixed||p.forEach((function(e,t){Y(x.start,e.children[0],Q,{handleNumbers:[t]})})),w.tap&&Y(x.start,h,(function(e){e.stopPropagation();var t=X(e.calcPoint),n=function(e){var t=100,n=!1;return p.forEach((function(r,i){if(!B(i)){var o=T[i],a=Math.abs(o-e);(a<t||a<=t&&e>o||100===a&&100===t)&&(n=i,t=a)}})),n}(t);if(!1===n)return!1;s.events.snap||i(S,s.cssClasses.tap,s.animationDuration),le(n,t,!0,!0),se(),ne("slide",n,!0),ne("update",n,!0),ne("change",n,!0),ne("set",n,!0),s.events.snap&&Q(e,{handleNumbers:[n]})}),{}),w.hover&&Y(x.move,h,(function(e){var t=X(e.calcPoint),n=E.getStep(t),r=E.fromStepping(n);Object.keys(P).forEach((function(e){"hover"===e.split(".")[0]&&P[e].forEach((function(e){e.call(v,r)}))}))}),{hover:!0}),w.drag&&f.forEach((function(e,t){if(!1!==e&&0!==t&&t!==f.length-1){var n=p[t-1],r=p[t],i=[e];l(e,s.cssClasses.draggable),w.fixed&&(i.push(n.children[0]),i.push(r.children[0])),i.forEach((function(e){Y(x.start,e,Q,{handles:[n,r],handleNumbers:[t-1,t]})}))}})),ue(s.start),s.pips&&H(s.pips),s.tooltips&&z(),te("update"+_),ee("update"+_,(function(e,t,n,r,i){O.forEach((function(e){var t=p[e],r=re(T,e,0,!0,!0,!0),o=re(T,e,100,!0,!0,!0),a=i[e],l=s.ariaFormat.to(n[e]);r=E.fromStepping(r).toFixed(1),o=E.fromStepping(o).toFixed(1),a=E.fromStepping(a).toFixed(1),t.children[0].setAttribute("aria-valuemin",r),t.children[0].setAttribute("aria-valuemax",o),t.children[0].setAttribute("aria-valuenow",a),t.children[0].setAttribute("aria-valuetext",l)}))}
839)),v={destroy:function(){for(var e in te(_),te(b),s.cssClasses)s.cssClasses.hasOwnProperty(e)&&c(S,s.cssClasses[e]);for(;S.firstChild;)S.removeChild(S.firstChild);delete S.noUiSlider},steps:function(){return O.map(pe)},on:ee,off:te,get:he,set:ue,setHandle:function(e,t,n,r){if(!((e=Number(e))>=0&&e<O.length))throw new Error("noUiSlider (14.7.0): invalid handle number, got: "+e);le(e,de(t,e),!0,!0,r),ne("update",e),n&&ne("set",e)},reset:function(e){ue(s.start,e)},__moveHandles:function(e,t,n){oe(e,t,T,n)},options:u,updateOptions:function(e,n){var r=he(),i=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];i.forEach((function(t){void 0!==e[t]&&(u[t]=e[t])}));var o=V(u);i.forEach((function(t){void 0!==e[t]&&(s[t]=o[t])})),E=o.spectrum,s.margin=o.margin,s.limit=o.limit,s.padding=o.padding,s.pips?H(s.pips):q(),s.tooltips?z():U(),T=[],ue(t(e.start)?e.start:r,n)},target:S,removePips:q,removeTooltips:U,getTooltips:function(){return g},getOrigins:function(){return p},pips:H}}return{__spectrum:g,version:"14.7.0",cssClasses:y,create:function(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider (14.7.0): create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider (14.7.0): Slider was already initialized.");var n=q(e,V(t),t);return e.noUiSlider=n,n}}})?r.apply(t,[]):r)||(e.exports=i)},function(e,t,n){var r=n(277),i=n(278),o=n(235),a=n(279);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){(function(n){var r,i;void 0===(i="function"==typeof(r=function(){function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");
839t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==("undefined"==typeof window?"undefined":qe(window))&&window.window===window?window:"object"==("undefined"==typeof self?"undefined":qe(self))&&self.self===self?self:"object"==qe(n)&&n.global===n?n:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||("object"!=("undefined"==typeof window?"undefined":qe(window))||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=o.URL||o.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):r(l.href)?t(e,n,a):i(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=qe(t)&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(r(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){i(a)}))}}:function(e,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l||a)&&"undefined"!=typeof FileReader){var d=new FileReader;d.onloadend=function(){var e=d.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},d.readAsDataURL(e)}else{var u=o.URL||o.webkitURL,h=u.createObjectURL(e);i?i.location=h:location.href=h,i=null,setTimeout((function(){u.revokeObjectURL(h)}),4e4)}});o.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,[]):r)||(e.exports=i)}).call(this,n(223))},function(e,t,n){var r=n(287),i=n(36),o=n(87),a=n(172).default,s=o.featureEach,l=(o.coordEach,i.polygon,i.featureCollection);function c(e){var t=new r(e);return t.insert=function(e){if("Feature"!==e.type)throw new Error("invalid feature");return e.bbox=e.bbox?e.bbox:a(e),r.prototype.insert.call(this,e)},t.load=function(e){var t=[];return Array.isArray(e)?e.forEach((function(e){if("Feature"!==e.type)throw new Error("invalid features");e.bbox=e.bbox?e.bbox:a(e),t.push(e)})):s(e,(function(e){if("Feature"!==e.type)throw new Error("invalid features");e.bbox=e.bbox?e.bbox:a(e),t.push(e)})),r.prototype.load.call(this,t)},t.remove=function(e,t){if("Feature"!==e.type)throw new Error("invalid feature");return e.bbox=e.bbox?e.bbox:a(e),r.prototype.remove.call(this,e,t)},t.clear=function(){return r.prototype.clear.call(this)},t.search=function(e){var t=r.prototype.search.call(this,this.toBBox(e));return l(t)},t.collides=function(e){return r.prototype.collides.call(this,this.toBBox(e))},t.all=function(){var e=r.prototype.all.call(this);return l(e)},t.toJSON=function(){return r.prototype.toJSON.call(this)},t.fromJSON=function(e){return r.prototype.fromJSON.call(this,e)},t.toBBox=function(e){var t;if(e.bbox)t=e.bbox;else if(Array.isArray(e)&&4===e.length)t=e;else if(Array.isArray(e)&&6===e.length)t=[e[0],e[1],e[3],e[4]];else if("Feature"===e.type)t=a(e);else{if("FeatureCollection"!==e.type)throw new Error("invalid geojson");t=a(e)}return{minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}},t}e.exports=c,e.exports.default=c},,function(e,t,n){var r=n(234);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(58).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(58).default;function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exp
vendor: 4,671 bytes, line 839
839orts=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),s=new O(r||[]);return a(o,"_invoke",{value:S(e,n,s)}),o}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var f={};function m(){}function g(){}function v(){}var y={};u(y,l,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b($([])));_&&_!==n&&o.call(_,l)&&(y=_);var w=v.prototype=m.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){var n;a(this,"_invoke",{value:function(i,a){function s(){return new t((function(n,s){!function n(i,a,s,l){var c=p(e[i],e,a);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==r(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(u).then((function(e){d.value=e,s(d)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}(i,a,n,s)}))}return n=n?n.then(s,s):s()}})}function S(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=p(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=p(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function $(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return g.prototype=v,a(w,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:g,configurable:!0}),g.displayName=u(v,d,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,d,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(C.prototype),u(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new C(h(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),u(w,d,"Generator"),u(w,l,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=$,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
vendor: 3,665 bytes, line 839
839h(T),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:$(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),d=0,u=s>0?a-4:a;for(n=0;n<u;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[d++]=t>>16&255,l[d++]=t>>8&255,l[d++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[d++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[d++]=t>>8&255,l[d++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(d(e,a,a+16383>s?s:a+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function d(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){var r=n(269),i=n(270),o=n(271);function a(e,t,n){var a=n&&n.debug||!1,s=!(n&&!1===qe(n.nested)),l=n&&n.startIndex||
8390;a&&console.log("[xml-utils] starting findTagByName with",t," and ",n);var c=r(e,"<".concat(t,"[ >/]"),l);if(a&&console.log("[xml-utils] start:",c),-1!==c){var d=e.slice(c+t.length),u=i(d,"^[^<]*[ /]>",0),h=-1!==u&&"/"===d[u-1];if(a&&console.log("[xml-utils] selfClosing:",h),!1===h)if(s)for(var p=0,f=1,m=0;-1!==(u=i(d,"[ /]"+t+">",p));){var g=d.substring(p,u+1);if(f+=o(g,"<"+t),(m+=o(g,"/"+t+">"))>=f)break;p=u}else u=i(d,"[ /]"+t+">",0);var v=c+t.length+u+1;if(a&&console.log("[xml-utils] end:",v),-1!==v){var y=e.slice(c,v);return{inner:h?null:y.slice(y.indexOf(">")+1,y.lastIndexOf("<")),outer:y,start:c,end:v}}}}e.exports=a,e.exports.default=a},function(e,t){function n(e,t,n){var r=new RegExp(t).exec(e.slice(n));return r?n+r.index:-1}e.exports=n,e.exports.default=n},function(e,t){function n(e,t,n){var r=new RegExp(t).exec(e.slice(n));return r?n+r.index+r[0].length-1:-1}e.exports=n,e.exports.default=n},function(e,t){function n(e,t){var n=new RegExp(t,"g"),r=e.match(n);return r?r.length:0}e.exports=n,e.exports.default=n},function(e,t,n){function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}function i(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;
839t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)n.push(o.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,r=this.head;null!==r&&n<e;n++)r=r.next;var o=[];for(n=0;r&&n<t;n++)o.push(r.value),r=this.removeNode(r);for(null===r&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev),n=0;n<(arguments.length<=2?0:arguments.length-2);n++)r=i(this,r,n+2<2||arguments.length<=n+2?void 0:arguments[n+2]);return o},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(273)(r)}catch(e){}},function(e,t,n){e.exports=function(e){e.prototype[Symbol.iterator]=$e().mark((function e(){var t;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.value;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],d=!1,u=-1;function h(){d&&l&&(d=!1,l.length?c=l.concat(c):u=-1,c.length&&p())}function p(){if(!d){var e=s(h);d=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,d=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||d||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to de
vendor: 15,226 bytes, lines 839-862
839structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r,i,o; 840/*! jQuery UI - v1.13.0 - 2021-11-09 841* http://jqueryui.com 842* Includes: widget.js, position.js, jquery-patch.js, keycode.js, scroll-parent.js, unique-id.js 843* Copyright jQuery Foundation and other contributors; Licensed MIT */i=[n(8)],void 0===(o="function"==typeof(r=function(e){e.ui=e.ui||{},e.ui.version="1.13.0"; 844/*! 845 * jQuery UI Widget 1.13.0 846 * http://jqueryui.com 847 * 848 * Copyright jQuery Foundation and other contributors 849 * Released under the MIT license. 850 * http://jquery.org/license 851 */ 852var t,n,r=0,i=Array.prototype.hasOwnProperty,o=Array.prototype.slice;if(e.cleanData=e.cleanData||(t=e.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)(r=e._data(i,"events"))&&r.remove&&e(i).triggerHandler("remove");t(n)}),e.widget=e.widget||function(t,n,r){var i,o,a,s={},l=t.split(".")[0],c=l+"-"+(t=t.split(".")[1]);return r||(r=n,n=e.Widget),Array.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr.pseudos[c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},i=e[l][t],o=e[l][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,i,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),(a=new n).options=e.widget.extend({},a.options),e.each(r,(function(e,t){s[e]="function"==typeof t?function(){function r(){return n.prototype[e].apply(this,arguments)}function i(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,o=this._superApply;return this._super=r,this._superApply=i,e=t.apply(this,arguments),this._super=n,this._superApply=o,e}}():t})),o.prototype=e.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||t},s,{constructor:o,namespace:l,widgetName:t,widgetFullName:c}),i?(e.each(i._childConstructors,(function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var n,r,a=o.call(arguments,1),s=0,l=a.length;s<l;s++)for(n in a[s])r=a[s][n],i.call(a[s],n)&&void 0!==r&&(e.isPlainObject(r)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],r):e.widget.extend({},r):t[n]=r);return t},e.widget.bridge=function(t,n){var r=n.prototype.widgetFullName||t;e.fn[t]=function(i){var a="string"==typeof i,s=o.call(arguments,1),l=this;return a?this.length||"instance"!==i?this.each((function(){var n,o=e.data(this,r);return"instance"===i?(l=o,!1):o?"function"!=typeof o[i]||"_"===i.charAt(0)?e.error("no such method '"+i+"' for "+t+" widget instance"):(n=o[i].apply(o,s))!==o&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+i+"'")})):l=void 0:(s.length&&(i=e.widget.extend.apply(null,[i].concat(s))),this.each((function(){var t=e.data(this,r);t?(t.option(i||{}),t._init&&t._init()):e.data(this,r,new n(i,this))}))),l}},e.Widget=e.Widget||function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=r++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,n){t._removeClass(n,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var r,i,o,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},r=t.split("."),t=r.shift(),r.length){for(i=a[t]=e.widget.extend({},this.options[t]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(t=r.pop(),1===arguments.length)return void 0===i[t]?null:i[t];i[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=n}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,r,i;for(n in t)i=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&i&&i.length&&(r=e(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],r=this;function i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||e(),t.add?(t.element.each((function(t,n){e.map(r.classesElementLookup,(function(e){return e})).some((function(e){return e.is(n)}))||r._on(e(n),{remove:"_untrackClassesElement"})})),a=e(e.uniqueSort(a.get().concat(t.element.get())))):a=e(a.not(t.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&t.classes[i[s]]&&n.push(t.classes[i[s]])}return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,(function(r,i){-1!==e.inArray(t.target,i)&&(n.classesElementLookup[r]=e(i.not(t.target).get()))})),this._off(e(t.target))},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,r){r="boolean"==typeof r?r:n;var i="string"==typeof e||null===e,o={extra:i?t:n,keys:i?e:t,element:i?this.element:e,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(t,n,r){var i,o=this;"boolean"!=typeof t&&(r=n,n=t,t=!1),r?(n=i=e(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),e.each(r,(function(r,a){function s(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||e.guid++);var l=r.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+o.eventNamespace,d=l[2];d?i.on(c,d,s):n.on(c,s)}))},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout((function(){return("string"==typeof e?n[e]:e).apply(n,arguments)}),t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,r){var i,o,a=this.options[t];if(r=r||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);return this.element.trigger(n,r),!("function"==typeof a&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,n){e.Widget.prototype["_"+t]=function(r,i,o){var a;"string"==typeof i&&(i={effect:i});var s=i?!0===i||"number"==typeof i?n:i.effect||n:t;"number"==typeof(i=i||{})?i={duration:i}:!0===i&&(i={}),a=!e.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&e.effects&&e.effects.effect[s]?r[t](i):s!==t&&r[s]?r[s](i.duration,i.easing,o):r.queue((function(n){e(this)[t](),o&&o.call(r[0]),n()}))}})),e.widget,function(){var t,n=Math.max,r=Math.abs,i=/left|center|right/,o=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,l=/%$/,c=e.fn.position;function d(e,t,n){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?n/100:1)]}function u(t,n){return parseInt(e.css(t,n),10)||0}function h(e){return null!=e&&e===e.window}function p(e){var t=e[0];return 9===t.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:h(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}e.position=e.position||{scrollbarWidth:function(){if(void 0!==t)return t;var n,r,i=e("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),o=i.children()[0];return e("body").append(i),n=o.offsetWidth,i.css("overflow","scroll"),n===(r=o.offsetWidth)&&(r=i[0].clientWidth),i.remove(),t=n-r},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),i="scroll"===n||"auto"===n&&t.width<t.element[0].scrollWidth;return{width:"scroll"===r||"auto"===r&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:i?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),r=h(n[0]),i=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:r,isDocument:i,offset:r||i?{left:0,top:0}:e(t).offset(),scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return c.apply(this,arguments);var l,h,f,m,g,v,y="string"==typeof(t=e.extend({},t)).of?e(document).find(t.of):e(t.of),b=e.position.getWithinInfo(t.within),_=e.position.getScrollInfo(b),w=(t.collision||"flip").split(" "),x={};return v=p(y),y[0].preventDefault&&(t.at="left top"),h=v.width,f=v.height,m=v.offset,g=e.extend({},m),e.each(["my","at"],(function(){var e,n,r=(t[this]||"").split(" ");1===r.length&&(r=i.test(r[0])?r.concat(["center"]):o.test(r[0])?["center"].concat(r):["center","center"]),r[0]=i.test(r[0])?r[0]:"center",r[1]=o.test(r[1])?r[1]:"center",e=a.exec(r[0]),n=a.exec(r[1]),x[this]=[e?e[0]:0,n?n[0]:0],t[this]=[s.exec(r[0])[0],s.exec(r[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===t.at[0]?g.left+=h:"center"===t.at[0]&&(g.left+=h/2),"bottom"===t.at[1]?g.top+=f:"center"===t.at[1]&&(g.top+=f/2),l=d(x.at,h,f),g.left+=l[0],g.top+=l[1],this.each((function(){var i,o,a=e(this),s=a.outerWidth(),c=a.outerHeight(),p=u(this,"marginLeft"),v=u(this,"marginTop"),C=s+p+u(this,"marginRight")+_.width,S=c+v+u(this,"marginBottom")+_.height,E=e.extend({},g),k=d(x.my,a.outerWidth(),a.outerHeight());"right"===t.my[0]?E.left-=s:"center"===t.my[0]&&(E.left-=s/2),"bottom"===t.my[1]?E.top-=c:"center"===t.my[1]&&(E.top-=c/2),E.left+=k[0],E.top+=k[1],i={marginLeft:p,marginTop:v},e.each(["left","top"],(function(n,r){e.ui.position[w[n]]&&e.ui.position[w[n]][r](E,{targetWidth:h,targetHeight:f,elemWidth:s,elemHeight:c,collisionPosition:i,collisionWidth:C,collisionHeight:S,offset:[l[0]+k[0],l[1]+k[1]],my:t.my,at:t.at,within:b,elem:a})})),t.using&&(o=function(e){var i=m.left-E.left,o=i+h-s,l=m.top-E.top,d=l+f-c,u={target:{element:y,left:m.left,top:m.top,width:h,height:f},element:{element:a,left:E.left,top:E.top,width:s,height:c},horizontal:o<0?"left":i>0?"right":"center",vertical:d<0?"top":l>0?"bottom":"middle"};h<s&&r(i+o)<h&&(u.horizontal="center"),f<c&&r(l+d)<f&&(u.vertical="middle"),n(r(i),r(o))>n(r(l),r(d))?u.important="horizontal":u.important="vertical",t.using.call(this,e,u)}),a.offset(e.extend(E,{using:o}))}))},e.ui.position={fit:{left:function(e,t){var r,i=t.within,o=i.isWindow?i.scrollLeft:i.offset.left,a=i.width,s=e.left-t.collisionPosition.marginLeft,l=o-s,c=s+t.collisionWidth-a-o;t.collisionWidth>a?l>0&&c<=0?(r=e.left+l+t.collisionWidth-a-o,e.left+=l-r):e.left=c>0&&l<=0?o:l>c?o+a-t.collisionWidth:o:l>0?e.left+=l:c>0?e.left-=c:e.left=n(e.left-s,e.left)},top:function(e,t){var r,i=t.within,o=i.isWindow?i.scrollTop:i.offset.top,a=t.within.height,s=e.top-t.collisionPosition.marginTop,l=o-s,c=s+t.collisionHeight-a-o;t.collisionHeight>a?l>0&&c<=0?(r=e.top+l+t.collisionHeight-a-o,e.top+=l-r):e.top=c>0&&l<=0?o:l>c?o+a-t.collisionHeight:o:l>0?e.top+=l:c>0?e.top-=c:e.top=n(e.top-s,e.top)}},flip:{left:function(e,t){var n,i,o=t.within,a=o.offset.left+o.scrollLeft,s=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=e.left-t.collisionPosition.marginLeft,d=c-l,u=c+t.collisionWidth-s-l,h="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];d<0?((n=e.left+h+p+f+t.collisionWidth-s-a)<0||n<r(d))&&(e.left+=h+p+f):u>0&&((i=e.left-t.collisionPosition.marginLeft+h+p+f-l)>0||r(i)<u)&&(e.left+=h+p+f)},top:function(e,t){var n,i,o=t.within,a=o.offset.top+o.scrollTop,s=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=e.top-t.collisionPosition.marginTop,d=c-l,u=c+t.collisionHeight-s-l,h="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,p="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,f=-2*t.offset[1];d<0?((i=e.top+h+p+f+t.collisionHeight-s-a)<0||i<r(d))&&(e.top+=h+p+f):u>0&&((n=e.top-t.collisionPosition.marginTop+h+p+f-l)>0||r(n)<u)&&(e.top+=h+p+f)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}(),e.ui.position, 853/*! 854 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.0 855 * http://jqueryui.com 856 * 857 * Copyright jQuery Foundation and other contributors 858 * Released under the MIT license. 859 * http://jquery.org/license 860 * 861 */ 862e.expr.pseudos||(e.expr.pseudos=e.expr[":"]),e.uniqueSort||(e.uniqueSort=e.unique),!e.escapeSelector){var a=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,s=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e};e.escapeSelector=function(e){return(e+"").replace(a,s)}}e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter((function(e){return e%2==0}
862))},odd:function(){return this.filter((function(e){return e%2==1}))}}), 863/*! 864 * jQuery UI Keycode 1.13.0 865 * http://jqueryui.com 866 * 867 * Copyright jQuery Foundation and other contributors 868 * Released under the MIT license. 869 * http://jquery.org/license 870 */ 871e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},e.fn.scrollParent=function(t){var n=this.css("position"),r="absolute"===n,i=t?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var t=e(this);return(!r||"static"!==t.css("position"))&&i.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))})).eq(0);return"fixed"!==n&&o.length?o:e(this[0].ownerDocument||document)},e.fn.extend({uniqueId:(n=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++n)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")}))}})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){e.exports=function(){function e(e,r,i,o,a){!function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,c=Math.log(s),d=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*d*(s-d)/s)*(l-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*d/s+u)),Math.min(o,Math.floor(r+(s-l)*d/s+u)),a)}var h=n[r],p=i,f=o;for(t(n,i,r),a(n[o],h)>0&&t(n,i,o);p<f;){for(t(n,p,f),p++,f--;a(n[p],h)<0;)p++;for(;a(n[f],h)>0;)f--}0===a(n[i],h)?t(n,i,f):t(n,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}(e,r,i||0,o||e.length-1,a||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:e>t?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function o(e,t){a(e,0,e.children.length,t,e)}function a(e,t,n,r,i){i||(i=f(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=t;o<n;o++){var a=e.children[o];s(i,e.leaf?r(a):a)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function u(e){return e.maxX-e.minX+(e.maxY-e.minY)}function h(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function p(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function f(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,n,r,i,o){for(var a=[n,r];a.length;)if(!((r=a.pop())-(n=a.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,o),a.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!p(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var o=0;o<t.children.length;o++){var a=t.children[o],s=t.leaf?r(a):a;p(e,s)&&(t.leaf?n.push(a):h(e,s)?this._all(a,n):i.push(a))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!p(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],o=t.leaf?this.toBBox(i):i;if(p(e,o)){if(t.leaf||h(e,o))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=f([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,o,a=this.data,s=this.toBBox(e),l=[],c=[];a||l.length;){if(a||(a=l.pop(),r=l[l.length-1],n=c.pop(),o=!0),a.leaf){var d=i(e,a.children,t);
871if(-1!==d)return a.children.splice(d,1),l.push(a),this._condense(l),this}o||a.leaf||!h(a,s)?r?(n++,a=r.children[n],o=!1):a=null:(l.push(a),c.push(n),n=0,r=a,a=a.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,a=n-t+1,s=this._maxEntries;if(a<=s)return o(i=f(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,r-1))),(i=f([])).leaf=!1,i.height=r;var l=Math.ceil(a/s),c=l*Math.ceil(Math.sqrt(s));m(e,t,n,c,this.compareMinX);for(var d=t;d<=n;d+=c){var u=Math.min(d+c-1,n);m(e,d,u,l,this.compareMinY);for(var h=d;h<=u;h+=l){var p=Math.min(h+l-1,u);i.children.push(this._build(e,h,p,r-1))}}return o(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,o=1/0,a=void 0,s=0;s<t.children.length;s++){var l=t.children[s],c=d(l),u=(h=e,p=l,(Math.max(p.maxX,h.maxX)-Math.min(p.minX,h.minX))*(Math.max(p.maxY,h.maxY)-Math.min(p.minY,h.minY))-c);u<o?(o=u,i=c<i?c:i,a=l):u===o&&c<i&&(i=c,a=l)}t=a||t.children[0]}var h,p;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);for(o.children.push(e),s(o,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s=f(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=f([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,o,s,l,c,u,h=1/0,p=1/0,f=t;f<=n-t;f++){var m=a(e,0,f,this.toBBox),g=a(e,f,n,this.toBBox),v=(i=m,o=g,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),c=Math.min(i.maxX,o.maxX),u=Math.min(i.maxY,o.maxY),Math.max(0,c-s)*Math.max(0,u-l)),y=d(m)+d(g);v<h?(h=v,r=f,p=y<p?y:p):v===h&&y<p&&(p=y,r=f)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:c;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,o=a(e,0,t,i),l=a(e,n-t,n,i),c=u(o)+u(l),d=t;d<n-t;d++){var h=e.children[d];s(o,e.leaf?i(h):h),c+=u(o)}for(var p=n-t-1;p>=t;p--){var f=e.children[p];s(l,e.leaf?i(f):f),c+=u(l)}return c},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},r}()},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){n.r(t),n.d(t,"UI",(function(){return Dn}));var r=n(158),i=n(7),o=n(157),a=n(3),s=n(230),l=n(177),c=n(231),d=n(189),u=n(217),h=n(25),p=n.n(h),f=n(26),m=n.n(f),g=n(41),v=function(){function e(t,n){p()(this,e),Object(g.b)()&&("function"==typeof n?(this.authenticateCb=n,this.context=t,this.context.registerAuthenticationProvider(this)):console.error("Expected authenticate callback function"))}return m()(e,[{key:"authenticate",value:function(e,t,n){return this.authenticateCb(e,t,n)}}]),e}(),y=n(58),b=n.n(y),_=n(2); 872/*! 873 * perfect-scrollbar v1.5.3 874 * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors 875 * Licensed under MIT 876 */function w(e){return getComputedStyle(e)}function x(e,t){for(var n in t){var r=t[n];"number"==typeof r&&(r+="px"),e.style[n]=r}return e}function C(e){var t=document.createElement("div");return t.className=e,t}var S="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function E(e,t){if(!S)throw new Error("No element matching method supported");return S.call(e,t)}function k(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function T(e,t){return Array.prototype.filter.call(e.children,(function(e){return E(e,t)}))}var O=function(e){return"ps__thumb-"+e},P=function(e){return"ps__rail-"+e},I="ps__child--consume",L="ps--focus",A="ps--clicking",M=function(e){return"ps--active-"+e},j=function(e){return"ps--scrolling-"+e},R={x:null,y:null};function D(e,t){var n=e.element.classList,r=j(t);n.contains(r)?clearTimeout(R[t]):n.add(r)}function F(e,t){R[t]=setTimeout((function(){return e.isAlive&&e.element.classList.remove(j(t))}),e.settings.scrollingThreshold)}var N=function(e){this.element=e,this.handlers={}},B={isEmpty:{configurable:!0}};N.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},N.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter((function(r){return!(!t||r===t)||(n.element.removeEventListener(e,r,!1),!1)}))},N.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},B.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every((function(t){return 0===e.handlers[t].length}))},Object.defineProperties(N.prototype,B);var U=function(){this.eventElements=[]};function z(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function G(e,t,n,r,i){var o;if(void 0===r&&(r=!0),void 0===i&&(i=!1),"top"===t)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,r,i){var o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],d=n[5
vendor: 14,211 bytes, line 876
876];void 0===r&&(r=!0),void 0===i&&(i=!1);var u=e.element;e.reach[l]=null,u[s]<1&&(e.reach[l]="start"),u[s]>e[o]-e[a]-1&&(e.reach[l]="end"),t&&(u.dispatchEvent(z("ps-scroll-"+l)),t<0?u.dispatchEvent(z("ps-scroll-"+c)):t>0&&u.dispatchEvent(z("ps-scroll-"+d)),r&&function(e,t){D(e,t),F(e,t)}(e,l)),e.reach[l]&&(t||i)&&u.dispatchEvent(z("ps-"+l+"-reach-"+e.reach[l]))}(e,n,o,r,i)}function V(e){return parseInt(e,10)||0}U.prototype.eventElement=function(e){var t=this.eventElements.filter((function(t){return t.element===e}))[0];return t||(t=new N(e),this.eventElements.push(t)),t},U.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},U.prototype.unbind=function(e,t,n){var r=this.eventElement(e);r.unbind(t,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},U.prototype.unbindAll=function(){this.eventElements.forEach((function(e){return e.unbindAll()})),this.eventElements=[]},U.prototype.once=function(e,t,n){var r=this.eventElement(e);r.bind(t,(function e(i){r.unbind(t,e),n(i)}))};var q={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function H(e){var t=e.element,n=Math.floor(t.scrollTop),r=t.getBoundingClientRect();e.containerWidth=Math.round(r.width),e.containerHeight=Math.round(r.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(T(t,P("x")).forEach((function(e){return k(e)})),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(T(t,P("y")).forEach((function(e){return k(e)})),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=W(e,V(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=V((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=W(e,V(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=V(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),function(e,t){var n={width:t.railXWidth},r=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-r:n.top=t.scrollbarXTop+r,x(t.scrollbarXRail,n);var i={top:r,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?i.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:i.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?i.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:i.left=t.scrollbarYLeft+e.scrollLeft,x(t.scrollbarYRail,i),x(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),x(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(t,e),e.scrollbarXActive?t.classList.add(M("x")):(t.classList.remove(M("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=!0===e.isRtl?e.contentWidth:0),e.scrollbarYActive?t.classList.add(M("y")):(t.classList.remove(M("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function W(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function Y(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],d=t[8],u=e.element,h=null,p=null,f=null;function m(t){t.touches&&t.touches[0]&&(t[i]=t.touches[0].pageY),u[l]=h+f*(t[i]-p),D(e,c),H(e),t.stopPropagation(),t.type.startsWith("touch")&&t.changedTouches.length>1&&t.preventDefault()}function g(){F(e,c),e[d].classList.remove(A),e.event.unbind(e.ownerDocument,"mousemove",m)}function v(t,a){h=u[l],a&&t.touches&&(t[i]=t.touches[0].pageY),p=t[i],f=(e[r]-e[n])/(e[o]-e[s]),a?e.event.bind(e.ownerDocument,"touchmove",m):(e.event.bind(e.ownerDocument,"mousemove",m),e.event.once(e.ownerDocument,"mouseup",g),t.preventDefault()),e[d].classList.add(A),t.stopPropagation()}e.event.bind(e[a],"mousedown",(function(e){v(e)})),e.event.bind(e[a],"touchstart",(function(e){v(e,!0)}))}var X={"click-rail":function(e){e.element,e.event.bind(e.scrollbarY,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarYRail,"mousedown",(function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,H(e),t.stopPropagation()})),e.event.bind(e.scrollbarX,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarXRail,"mousedown",(function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,H(e),t.stopPropagation()}))},"drag-thumb":function(e){Y(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Y(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(e){var t=e.element;e.event.bind(e.ownerDocument,"keydown",(function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(E(t,":hover")||E(e.scrollbarX,":focus")||E(e.scrollbarY,":focus"))){var r,i=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(i){if("IFRAME"===i.tagName)i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if(E(r=i,"input,[contenteditable]")||E(r,"select,[contenteditable]")||E(r,"textarea,[contenteditable]")||E(r,"button,[contenteditable]"))return}var o=0,a=0;switch(n.which){case 37:o=n.metaKey?-e.contentWidth:n.altKey?-e.containerWidth:-30;break;case 38:a=n.metaKey?e.contentHeight:n.altKey?e.containerHeight:30;break;case 39:o=n.metaKey?e.contentWidth:n.altKey?e.containerWidth:30;break;case 40:a=n.metaKey?-e.contentHeight:n.altKey?-e.containerHeight:-30;break;case 32:a=n.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:a=e.containerHeight;break;case 34:a=-e.containerHeight;break;case 36:a=e.contentHeight;break;case 35:a=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==o||e.settings.suppressScrollY&&0!==a||(t.scrollTop-=a,t.scrollLeft+=o,H(e),function(n,r){var i=Math.floor(t.scrollTop);if(0===n){if(!e.scrollbarYActive)return!1;if(0===i&&r>0||i>=e.contentHeight-e.containerHeight&&r<0)return!e.settings.wheelPropagation}var o=t.scrollLeft;if(0===r){if(!e.scrollbarXActive)return!1;if(0===o&&n<0||o>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}(o,a)&&n.preventDefault())}}))},wheel:function(e){var t=e.element;function n(n){var r=function(e){var t=e.deltaX,n=-1*e.deltaY;return void 0!==t&&void 0!==n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(n),i=r[0],o=r[1];if(!function(e,n,r){if(!q.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(e))return!1;for(var i=e;i&&i!==t;){if(i.classList.contains(I))return!0;var o=w(i);if(r&&o.overflowY.match(/(scroll|auto)/)){var a=i.scrollHeight-i.clientHeight;if(a>0&&(i.scrollTop>0&&r<0||i.scrollTop<a&&r>0))return!0}if(n&&o.overflowX.match(/(scroll|auto)/)){var s=i.scrollWidth-i.clientWidth;if(s>0&&(i.scrollLeft>0&&n<0||i.scrollLeft<s&&n>0))return!0}i=i.parentNode}return!1}(n.target,i,o)){var a=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(o?t.scrollTop-=o*e.settings.wheelSpeed:t.scrollTop+=i*e.settings.wheelSpeed,a=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(i?t.scrollLeft+=i*e.settings.wheelSpeed:t.scrollLeft-=o*e.settings.wheelSpeed,a=!0):(t.scrollTop-=o*e.settings.wheelSpeed,t.scrollLeft+=i*e.settings.wheelSpeed),H(e),(a=a||function(n,r){var i=Math.floor(t.scrollTop),o=0===t.scrollTop,a=i+t.offsetHeight===t.scrollHeight,s=0===t.scrollLeft,l=t.scrollLeft+t.offsetWidth===t.scrollWidth;return!(Math.abs(r)>Math.abs(n)?o||a:s||l)||!e.settings.wheelPropagation}(i,o))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?e.event.bind(t,"wheel",n):void 0!==window.onmousewheel&&e.event.bind(t,"mousewheel",n)},touch:function(e){if(q.supportsTouch||q.supportsIePointer){var t=e.element,n={},r=0,i={},o=null;q.supportsTouch?(e.event.bind(t,"touchstart",c),e.event.bind(t,"touchmove",d),e.event.bind(t,"touchend",u)):q.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",c),e.event.bind(t,"pointermove",d),e.event.bind(t,"pointerup",u)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",c),e.event.bind(t,"MSPointerMove",d),e.event.bind(t,"MSPointerUp",u)))}function a(n,r){t.scrollTop-=r,t.scrollLeft-=n,H(e)}function s(e){return e.targetTouches?e.targetTouches[0]:e}function l(e){return!(e.pointerType&&"pen"===e.pointerType&&0===e.buttons||(!e.targetTouches||1!==e.targetTouches.length)&&(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function c(e){if(l(e)){var t=s(e);n.pageX=t.pageX,n.pageY=t.pageY,r=(new Date).getTime(),null!==o&&clearInterval(o)}}function d(o){if(l(o)){var c=s(o),d={pageX:c.pageX,pageY:c.pageY},u=d.pageX-n.pageX,h=d.pageY-n.pageY;if(function(e,n,r){if(!t.contains(e))return!1;for(var i=e;i&&i!==t;){if(i.classList.contains(I))return!0;var o=w(i);if(r&&o.overflowY.match(/(scroll|auto)/)){var a=i.scrollHeight-i.clientHeight;if(a>0&&(i.scrollTop>0&&r<0||i.scrollTop<a&&r>0))return!0}if(n&&o.overflowX.match(/(scroll|auto)/)){var s=i.scrollWidth-i.clientWidth;if(s>0&&(i.scrollLeft>0&&n<0||i.scrollLeft<s&&n>0))return!0}i=i.parentNode}return!1}(o.target,u,h))return;a(u,h),n=d;var p=(new Date).getTime(),f=p-r;f>0&&(i.x=u/f,i.y=h/f,r=p),function(n,r){var i=Math.floor(t.scrollTop),o=t.scrollLeft,a=Math.abs(n),s=Math.abs(r);if(s>a){if(r<0&&i===e.contentHeight-e.containerHeight||r>0&&0===i)return 0===window.scrollY&&r>0&&q.isChrome}else if(a>s&&(n<0&&o===e.contentWidth-e.containerWidth||n>0&&0===o))return!0;return!0}(u,h)&&o.preventDefault()}}function u(){e.settings.swipeEasing&&(clearInterval(o),o=setInterval((function(){e.isInitialized?clearInterval(o):i.x||i.y?Math.abs(i.x)<.01&&Math.abs(i.y)<.01?clearInterval(o):e.element?(a(30*i.x,30*i.y),i.x*=.8,i.y*=.8):clearInterval(o):clearInterval(o)}),10))}}},K=function(e,t){var n=this;if(void 0===t&&(t={}),"string"==typeof e&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var r in this.element=e,e.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},t)this.settings[r]=t[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var i,o,a=function(){return e.classList.add(L)},s=function(){return e.classList.remove(L)};this.isRtl="rtl"===w(e).direction,!0===this.isRtl&&e.classList.add("ps__rtl"),this.isNegativeScroll=(o=e.scrollLeft,e.scrollLeft=-1,i=e.scrollLeft<0,e.scrollLeft=o,i),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new U,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=C(P("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=C(O("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=w(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=V(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=V(l.borderLeftWidth)+V(l.borderRightWidth),x(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=V(l.marginLeft)+V(l.marginRight),x(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=C(P("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=C(O("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c=w(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=V(c.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(e){var t=w(e);return V(t.width)+V(t.paddingLeft)+V(t.paddingRight)+V(t.borderLeftWidth)+V(t.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=V(c.borderTopWidth)+V(c.borderBottomWidth),x(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=V(c.marginTop)+V(c.marginBottom),x(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null}
876,this.isAlive=!0,this.settings.handlers.forEach((function(e){return X[e](n)})),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",(function(e){return n.onScroll(e)})),H(this)};K.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,x(this.scrollbarXRail,{display:"block"}),x(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=V(w(this.scrollbarXRail).marginLeft)+V(w(this.scrollbarXRail).marginRight),this.railYMarginHeight=V(w(this.scrollbarYRail).marginTop)+V(w(this.scrollbarYRail).marginBottom),x(this.scrollbarXRail,{display:"none"}),x(this.scrollbarYRail,{display:"none"}),H(this),G(this,"top",0,!1,!0),G(this,"left",0,!1,!0),x(this.scrollbarXRail,{display:""}),x(this.scrollbarYRail,{display:""}))},K.prototype.onScroll=function(e){this.isAlive&&(H(this),G(this,"top",this.element.scrollTop-this.lastScrollTop),G(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},K.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),k(this.scrollbarX),k(this.scrollbarY),k(this.scrollbarXRail),k(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},K.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(e){return!e.match(/^ps([-_].+|)$/)})).join(" ")};var Z=K,J=(n(281),n(8)),Q=n.n(J);function ee(){var e=Q()(this.element).find(".ps__rail-x"),t=-1/0,n=1/0;e&&e.position()&&(t=e.position().left,n=t+e.width()),0===t&&0===n&&(t=-1/0,n=1/0);var r=this;Q()(this.element).find("li.lazy").each((function(){var e=Q()(this),i=e.position().left,o=i+e.width();i>n||o<t||ne.call(r,e)}))}function te(){var e=Q()(this.element).find(".ps__rail-y"),t=-1/0,n=1/0;e&&e.position()&&(t=e.position().top,n=t+e.height()),t===n&&(t=-1/0,n=1/0);var r=this;Q()(this.element).find("li.lazy").each((function(){var e=Q()(this),i=e.position().top,o=i+e.height();i>n||o<t||ne.call(r,e)}))}function ne(e){var t=this;e.removeClass("lazy");var n=e.find("div[data-img]"),r=n.data("img"),o=n.data("rotation");if(Q()("<img />").bind("load",(function(){if(e.removeClass("loading"),n.css("background-image",'url("'+r+'")'),"vertical"===t.mode?n.css("width","100%"):n.css("width",t.thumbnailWidth+"px"),n.css("height",t.thumbnailHeight+"px"),n.css("margin","0 auto"),o){var i=this.width,a=this.height,s=o/(180/Math.PI),l=i/(i*Math.abs(Math.cos(s))+a*Math.abs(Math.sin(s))),c=a/(i*Math.abs(Math.sin(s))+a*Math.abs(Math.cos(s)));n.css("transform","rotate("+o+"deg) scale("+Math.min(l,c)+")")}})).bind("error",(function(){e.removeClass("loading"),n.addClass("no-image"),n.html(i.a.translate("Failed to load image")),"vertical"===t.mode?n.css("width","100%"):n.css("width",t.thumbnailWidth+"px"),n.css("height",t.thumbnailHeight+"px"),n.css("margin","0 auto"),n.css("padding-top",t.thumbnailHeight/3+"px");var r=e.find("a"),o=r.data("server"),a=r.data("path");t.fireEvent(_.c.SlideInfoError,{serverUrl:o,path:a})})).attr("src",r),this.renderOptions==_.d.All){var a=e.find("a"),s=a.data("server"),l=a.data("path");this.context.getImageInfo.call(this.context,s,l,(function(n,r){if(r.AssociatedImageTypes.indexOf("Barcode")>-1){var i=e.find("img.barcode");0!==i.length&&(i.bind("error",(function(){i.hide()})),i.attr("src",i.data("src")),i.css("width",Math.round(.4*t.thumbnailWidth)+"px"),i.css("display","block"),i.removeClass("hidden"))}}),(function(){}))}}function re(e,t){var n=Q()(e),r=n.parent().hasClass("selected");r&&(n.parent().removeClass("selected"),this.fireEvent(_.c.SlideDeSelected,{serverUrl:n.data("server"),path:n.data("path"),index:n.parent().index(),userInteraction:!0===t})),this.multiSelect||Q()(this.element).find("ul li").removeClass("selected"),r||(n.parent().addClass("selected"),this.fireEvent(_.c.SlideSelected,{serverUrl:n.data("server"),path:n.data("path"),index:n.parent().index(),userInteraction:!0===t}))}function ie(e){var t=" style=' ";this.thumbnailHeight>0&&(t+="height: "+this.thumbnailHeight+"px!important; "),t+="' ",this.element.innerHTML="<ul><li class='empty-message' "+t+"><span>"+e+"</span></li></ul>"}function oe(e,t,n,r,o){var a=this;if(0===n.length)return ie.call(a,i.a.translate("No images found")),void("function"==typeof r&&r()
876);for(var s=this.renderOptions==_.d.Barcode,l=[],c=0;c<n.length;c++){var d={path:n[c],hasBarcode:!0,rotation:0};"object"===b()(n[c])&&Object.prototype.hasOwnProperty.call(n[c],"path")&&(d.path=n[c].path),"object"===b()(n[c])&&Object.prototype.hasOwnProperty.call(n[c],"rotation")&&(d.rotation=n[c].rotation),"object"===b()(n[c])&&Object.prototype.hasOwnProperty.call(n[c],"snapshotParameters")&&(d.snapshotParameters=n[c].snapshotParameters),d.hasBarcode=!0,l.push(d)}s?this.context.getImagesInfo({serverUrl:e,images:l.map((function(e){return e.path})),success:function(t,n){for(var i=0;i<n.length;i++)for(var s=n[i].AssociatedImageTypes.indexOf("Barcode")>-1,c=0;c<l.length;c++)if(l[c].path==n[i].Filename){l[c].hasBarcode=s;break}ae.call(a,e,t,l,r,o)},failure:function(){ae.call(a,e,t,l,r,o)}}):ae.call(a,e,t,l,r,o)}function ae(e,t,n,r,i){var o=this,a=this.renderOptions==_.d.All,s=this.renderOptions==_.d.Barcode,l=Math.floor(o.thumbnailWidth/3),c=Math.floor(o.thumbnailHeight/3),d="margin: "+c+"px "+("horizontal"===o.mode||"grid"===o.mode?l+"px":"auto")+"; width: "+l+"px; height: "+c+"px;",u="",h="",p=o.thumbnailWidth,f=o.thumbnailHeight;"horizontal"===o.mode?(h=" style='width: "+n.length*o.thumbnailWidth+"px; height: "+o.thumbnailHeight+"px; overflow: hidden;' ",u=" style='max-width: "+o.thumbnailWidth+"px;' ",p=0):"vertical"===o.mode?f=0:"grid"===o.mode&&(h=" style='grid-template-columns: repeat(auto-fit, minmax("+(o.thumbnailWidth+32)+"px, 1fr))' ",u=" style='width: auto;height: "+(o.thumbnailHeight+32)+"px;' ",p=0);var m="<ul"+h+">";Q()(o.element).find("ul li.emptyli").remove(),!0===i&&(m="");for(var g=0;g<n.length;g++){var v=n[g].path,y="",b="",w=Object(_.l)(e,t,v,0,p,f);
876if(Object.prototype.hasOwnProperty.call(n[g],"snapshotParameters"))w=Object(_.k)(e,t,v,n[g].snapshotParameters,p,f,"jpg");else if(Object.prototype.hasOwnProperty.call(n[g],"rotation")){var x=parseInt(n[g].rotation);isNaN(x)||0==x||(y="transform:rotate("+x+"deg);",b='data-rotation="'+x+'"')}var C=Object(_.j)(e,t,v,o.barcodeRotation?o.barcodeRotation:0);m+="<li draggable='true' class='lazy loading'><a "+u+" data-server='"+e+"' data-path='"+v+"' href='#'>",o.showFileName&&("function"==typeof o.filenameCallback?m+="<span>"+o.filenameCallback(e,v)+"</span>":m+="<span>"+v.split("/").pop()+"</span>"),m+="<div "+b+" data-img='"+(s?C:w)+"' style=' "+d+y+"'></div>",a&&(m+='<img class="barcode hidden" data-src="'+C+'" />'),m+="</a>","function"==typeof o.additionalHtmlCallback&&(m+=o.additionalHtmlCallback(n[g])),m+="</li>"}if(!0!==i&&(m+="</ul>"),!0===i?Q()(o.element).find("ul").append(m):o.element.innerHTML=m,Q()(o.element).find("ul li:not(.emptyli)").each((function(e,t){t.addEventListener("dragstart",he.bind(this,t),!1)})),"horizontal"===o.mode){var S=Q()(o.element).find("ul"),E=S.outerWidth(!0)-S.width();Q()(o.element).find("ul li").each((function(){E+=Q()(this).outerWidth(!0)+2})),S.css("width",E+"px"),S.css("height",""),S.css("overflow","")}Q()(o.element).find("ul li a").click((function(e){e.preventDefault(),re.call(o,this,!0)})),!0!==i?o.ps=new Z(o.element,{useBothWheelAxes:!0,wheelPropagation:!0,swipePropagation:!0}):o.ps.update(),"horizontal"===o.mode?(Q()(o.element).on("ps-scroll-x",(function(){clearTimeout(o.lazyLoadTimeOut),o.lazyLoadTimeOut=setTimeout(ee.bind(o),500)})),ee.call(o)):(Q()(o.element).on("ps-scroll-y",(function(){clearTimeout(o.lazyLoadTimeOut),o.lazyLoadTimeOut=setTimeout(te.bind(o),500)})),te.call(o)),"function"==typeof r&&r()}function se(e,t,n){this.ps&&this.ps.destroy();var r=this;r.context.getSession(e,(function(i){oe.call(r,e,i,t,n)}))}function le(){if(this.lastLoadedImages.length>0)for(var e=0;e<this.lastLoadedImages.length;e++)oe.call(this,this.lastLoadedImages[e].serverUrl,this.lastLoadedImages[e].sessionId,this.lastLoadedImages[e].images,null)}function ce(e){e.preventDefault();var t=e.dataTransfer.types,n=!1;if(t){if(t.indexOf?n=t.indexOf("application/x-fancytree-node")>-1||t.indexOf(_.b)>-1:t.contains&&(n=t.contains("application/x-fancytree-node")||t.contains(_.b)),n)return void(e.altKey?e.dataTransfer.dropEffect="move":e.dataTransfer.dropEffect="copy");e.dataTransfer.dropEffect="none"}}function de(e){e.preventDefault();var t=this,n=Object(_.n)(e.dataTransfer),r=0==e.altKey;if(n&&n.path&&n.serverUrl&&"gallery"!==n.source){if(!n.isFolder){var i=[{serverUrl:n.serverUrl,path:n.path}];return void t.context.getSession(n.serverUrl,(function(e){t.lastLoadedImages.push({serverUrl:n.serverUrl,sessionId:e,images:i}),oe.call(t,n.serverUrl,e,i,(function(){t.fireEvent(_.c.Dropped,{serverUrl:n.serverUrl,path:n.path,isFolder:!1,append:r&&t.lastLoadedImages.length>1})}),r&&t.lastLoadedImages.length>1)}))}this.context.getSlides({serverUrl:n.serverUrl,path:n.path,success:function(e,i){null!=i&&0!=i.length?(t.lastLoadedImages.push([{serverUrl:n.serverUrl,sessionId:e,images:i}]),oe.call(t,n.serverUrl,e,i,(function(){t.fireEvent(_.c.Dropped,{serverUrl:n.serverUrl,path:n.path,isFolder:!0,append:r&&t.lastLoadedImages.length>1})}),r&&t.lastLoadedImages.length>1)):t.fireEvent(_.c.Dropped,{serverUrl:n.serverUrl,path:n.path,isFolder:!0,append:r&&t.lastLoadedImages.length>1})},failure:function(){console.error("Error loading slides from directory")}})}}function ue(){this.element&&(this.element.addEventListener("drop",de.bind(this),!1),this.element.addEventListener("dragover",ce.bind(this),!1))}function he(e,t){var n=Q()(e).find("a");if(n){var r=JSON.stringify({serverUrl:n.data("server"),path:n.data("path"),isFolder:!1,source:"gallery"});t.dataTransfer.setData("text",r),t.dataTransfer.setData(_.b,r)}}var pe=function(){function e(t,n){if(p()(this,e),Object(g.b)()){if(n.element instanceof HTMLElement)this.element=n.element;else{if("string"!=typeof n.element)return void console.error("Invalid element");var r=document.querySelector(n.element);r?this.element=r:console.error("Invalid selector for element")}isNaN(n.thumbnailHeight)||isNaN(n.thumbnailWidth)||n.thumbnailHeight<=0||n.thumbnailWidth<=0?console.error("thumbnailWidth & thumbnailHeight must be positive integers"):(this.listeners={},this.listeners[_.c.SlideDeSelected]=[],this.listeners[_.c.SlideSelected]=[],this.listeners[_.c.SlideInfoError]=[],this.listeners[_.c.Dropped]=[],this.filenameCallback=n.filenameCallback,this.additionalHtmlCallback=n.additionalHtmlCallback,this.multiSelect=!0===n.multiSelect,this.lazyLoadTimeOut=0,this.show
876FileName=!0===n.showFileName,this.barcodeRotation=n.barcodeRotation,this.context=t,this.thumbnailWidth=n.thumbnailWidth,this.thumbnailHeight=n.thumbnailHeight,this.lastLoadedImages=[],"horizontal"!==n.mode&&"vertical"!==n.mode&&"grid"!==n.mode&&(n.mode="horizontal"),this.renderOptions=n.renderOptions?n.renderOptions:_.d.All,!1===n.showBarcode&&(this.renderOptions=_.d.Thumbnail),this.mode=n.mode,Q()(this.element).addClass("pma-ui-gallery"),"vertical"===this.mode?Q()(this.element).addClass("vertical"):"grid"===this.mode&&Q()(this.element).addClass("grid"),ie.call(this,i.a.translate("No images found")),ue.call(this))}}return m()(e,[{key:"listen",value:function(e,t){Object.prototype.hasOwnProperty.call(this.listeners,e)||console.error(e+" is not a valid event"),this.listeners[e].push(t)}},{key:"fireEvent",value:function(e,t){if(Object.prototype.hasOwnProperty.call(this.listeners,e))for(var n=0,r=this.listeners[e].length;n<r;n++)this.listeners[e][n].call(this,t);else console.error(e+" does not exist")}},{key:"loadDirectory",value:function(e,t,n){this.ps&&this.ps.destroy();var r=this;this.lastLoadedImages=[],ie.call(r,i.a.translate("<i class='fa fa-spinner fa-spin'></i> Loading")),this.context.getSlides({serverUrl:e,path:t,success:function(t,i){r.lastLoadedImages=[{serverUrl:e,sessionId:t,images:i}],oe.call(r,e,t,i,n)},failure:function(n){r.element.innerHTML=n.Message,r.fireEvent(_.c.SlideInfoError,{serverUrl:e,path:t,message:n.Message})}})}},{key:"loadSlides",value:function(e,t){if("string"!=typeof e){this.ps&&this.ps.destroy();var n={},r=[],i=this;if(e&&0!=e.length){for(var o=0;o<e.length;o++)e[o].serverUrl&&(Object.prototype.hasOwnProperty.call(n,e[o].serverUrl)||(n[e[o].serverUrl]=[],r.push(e[o].serverUrl)),n[e[o].serverUrl].push({path:e[o].path,rotation:e[o].rotation}));i.lastLoadedImages=[];var a=0,s=function(e,t,n,r,o,a){n.context.getSession(e,(function(s){i.lastLoadedImages.push({serverUrl:e,sessionId:s,images:t}),oe.call(n,e,s,t,(function(){a&&"function"==typeof r&&r()}),0!=o)}))};for(o=0;o<r.length;o++)s(r[o],n[r[o]],i,t,a,++a>=r.length)}else oe.call(this,"","",[],t)}else se.call(this,arguments[0],arguments[1],arguments[2])}},{key:"selectSlide",value:function(e){if(null!=e){var t=Q()(this.element).find("ul li:nth-child("+(e+1)+") a")[0];re.call(this,t,!1)}else Q()(this.element).find("ul li").removeClass("selected")}},{key:"highlightSlide",value:function(e,t){if(null!=e){var n=Q()(this.element).find("ul li:nth-child("+(e+1)+") a");!0===t?n.parent().addClass("selected"):n.parent().removeClass("selected")}else Q()(this.element).find("ul li").removeClass("selected")}},{key:"getSelectedSlide",value:function(){var e=Q()(this.element).find("ul li.selected a:first-child");return 0===e.length?null:{server:e.data("server"),path:e.data("path"),index:e.parent().index()}}},{key:"getSelectedSlides",value:function(){var e=Q()(this.element).find("ul li.selected a:first-child");if(0===e.length)return null;var t=[];return e.each((function(){t.push({server:Q()(this).data("server"),path:Q()(this).data("path"),index:Q()(this).parent().index()})})),t}},{key:"getSlides",value:function(){var e=Q()(this.element).find("ul li a:first-child");if(0===e.length)return null;var t=[];return e.each((function(){t.push({server:Q()(this).data("server"),path:Q()(this).data("path"),index:Q()(this).parent().index()})})),t}},{key:"setRenderOptions",value:function(e){e&&this.renderOptions!=e&&(this.renderOptions=e,le.call(this))}},{key:"setMode",value:function(e){this.mode!==e&&(this.mode=e,Q()(this.element).removeClass("vertical grid"),"vertical"===this.mode?Q()(this.element).addClass("vertical"):"grid"===this.mode&&Q()(this.element).addClass("grid"),le.call(this))}}]),e}(),fe=(n(282),n(283),n(284),n(285),n(233)),me=n(232);function ge(e,t){for(var n=0;n<e.length;n++)if(e[n]==t)return!0;return!1}var ve=function(){function e(t){p()(this,e),Object(g.b)()&&(this.listeners={},this.listeners[_.c.FormSaved]=[],this.listeners[_.c.FormEditClick]=[],this.context=t)}return m()(e,[{key:"renderReadOnlyField",value:function(t,n,r){var o=(n&&n.FormValue?n.FormValue:"").replace(/"/g,""");0!==o.length&&n&&t.FieldType!=e.FieldType.CheckBox&&t.FormList&&t.FormList.FormListV
876alues&&!n.IsOtherValue&&!n.IsBelowDetectableLimit&&(o=t.FormList.FormListValues[o].Value),n&&n.IsBelowDetectableLimit&&(o=i.a.translate("Below detectable limit"));var a="";switch(t.FieldType){case e.FieldType.Paragraph:a+='<p class="'+r+'">'+o+"</p>";break;case e.FieldType.CheckBox:if(t.FormList&&t.FormList.FormListValues&&n&&!n.IsOtherValue&&0!==o.length&&!n.IsBelowDetectableLimit){var s=o.split("|");a+='<ul class="'+r+'">';for(var l=0;l<s.length;l++)a+="<li>"+t.FormList.FormListValues[s[l]].Value+"</li>";a+="</ul>"}else a+='<div class="'+r+'">'+o+"</div>";break;case e.FieldType.Percentage:a+='<div class="'+r+'">'+o+"%</div>";break;case e.FieldType.HyperLink:a+='<a class="link-field" title="'+t.Tooltip+'" href="'+t.Url+'" '+(!0===t.NewWindow?' target="_blank" ':"")+">"+t.Label+"</a>";break;case e.FieldType.Label:break;default:a+='<div class="'+r+'">'+o+"</div>"}return a}},{key:"getForm",value:function(e,t,n,r,i){var o=this;o.context.getSession(e,(function(a){Object(_.h)({serverUrl:e,method:_.a.GetForm,data:{sessionID:a,id:t},success:function(t){var s=Object(_.o)(t.responseText);s?null!=n&&"object"===b()(n)?Le.call(o,e,a,s,n.path,!0===n.currentUserOnly,n.dataFilter,(function(e){s.FormData=e,"function"==typeof r&&r.call(o,s,e)}),i):"function"==typeof r&&r.call(o,s,null):"function"==typeof i&&i()},failure:i})}),i)}},{key:"getForms",value:function(e,t,n){this.context.getSession(e,(function(r){Object(_.h)({serverUrl:e,method:_.a.GetForms,data:{sessionID:r},success:function(e){var r=Object(_.o)(e.responseText);r&&"function"==typeof t?t(r):"function"==typeof n&&n(r)},failure:n})}),n)}},{key:"displayForm",value:function(e,t,n,r,i,o){var a=this;this.getForm(e,t,r,(function(t,s){a.serverUrl=e,t&&(a.form=t,a.form.enabled=!0,!0===t.ReadOnly&&(r.readOnly=!0)),a.path=r.path,a.originalData=s,Ie.call(a,n,t,r,s,i,o)}),o)}},{key:"renderForm",value:function(e,t,n,r,i,o){t&&(this.form=t,this.form.enabled=!0,!0===t.ReadOnly&&(n.readOnly=!0)),this.path=n.path,this.originalData=r,Ie.call(this,e,t,n,r,i,o)}},{key:"saveForm",value:function(e,t){var n=this;n.setEnabled(!1),$("#"+n.form.ClientID+" button[type='submit']").html(i.a.translate("Saving...")),_e.call(this,(function(t){$("#"+n.form.ClientID+" button[type='submit']").html(i.a.translate("Save")),n.setEnabled(!0),n.fireEvent(_.c.FormSaved,t),"function"==typeof e&&e(t)}),(function(e){$("#"+n.form.ClientID+" button[type='submit']").html(i.a.translate("Save")),n.setEnabled(!0),n.fireEvent(_.c.FormSaved,e),"function"==typeof t&&t(e)}))}},{key:"setEnabled",value:function(e){this.form?(this.form.enabled=!!e,$("#"+this.form.ClientID+" > fieldset").prop("disabled",!this.form.enabled)):console.error("No form")}},{key:"getEnabled",value:function(){if(this.form)return this.form.enabled;console.error("No form")}},{key:"listen",value:function(e,t){Object.prototype.hasOwnProperty.call(this.listeners,e)||console.error(e+" is not a valid event"),this.listeners[e].push(t)}},{key:"fireEvent",value:function(e,t){if(Object.prototype.hasOwnProperty.call(this.listeners,e))for(var n=0,r=this.listeners[e].length;n<r;n++)this.listeners[e][n].call(this,t);else console.error(e+" does not exist")}},{key:"hasChanges",value:function(){return!!this.form&&this.hasChangesProperty}},{key:"reset",value:function(){if(!this.form)return!1;$("#"+this.form.ClientID+" [type='reset']").click()}}]),e}();function ye(e){var t="";return e.each((function(){t.length>0&&(t+="|"),t+=this.value})),t}function be(e){for(var t=[],n=this.form,r=0;r<this.form.FormFields.length;r++){var i,o,a=n.FormFields[r],s=Oe(this.form,r),l=null,c=!1,d=!1;switch(a.FieldType){case ve.FieldType.Text:case ve.FieldType.Paragraph:case ve.FieldType.DateTime:""!==(i=$("#"+s)).val()&&(l=i.val());break;case ve.FieldType.Integer:case ve.FieldType.Double:case ve.FieldType.Percentage:""!==(i=$("#"+s)).val()?l=i.val():!0===a.AllowBelowDetectableLimit&&1===$("#"+s+"_below:checked").length&&(c=!0);break;case ve.FieldType.ListBox:""!==(i=$("#"+s)).val()?l=i.val():a.AllowOther&&""!==$("#"+s+"_other").val()&&(l=$("#"+s+"_other").val(),d=!0);break;case ve.FieldType.CheckBox:o=$("#"+s+"_other").val(),0!==(i=$("input[name='"+s+"']:checked")).length?l=ye(i):!0===a.AllowOther&&""!==o&&(l=o,d=!0);break;case ve.FieldType.RadioButton:o=$("#"+s+"_other").val(),0!==(i=$("input[name='"+s+"']:not([id$='_other_indicator']):checked")).length?l=i.val():!0===a.AllowOther&&""!==o&&(l=o,d=!0)}t.push({FieldId:a.FieldID,FormValue:l,IsBelowDetectableLimit:c,IsOtherValue:d})}return{sessionID:e,pathOrUid:this.path,formId:this.form.FormID,fieldValues:t}}function _e(e,t){if(xe.call(this)){var n=this;n.context.getSession(n.serverUrl,(function(r){var o=be.call(n,r);Object(_.h)({serverUrl:n.serverUrl,method:_.a.SaveFormData,httpMethod:"POST",contentType:"application/json",data:o,success:function(){n.hasChangesProperty=!1,"function"==typeof e&&e({success:!0,message:""})},failure:function(e){var r=i.a.translate("Save failed. Check the form values and try again.");if(e&&e.responseText){var o=JSON.parse(e.responseText);o&&o.Message&&(r=o.Message)}$("#"+n.form.ClientID+"_validation").html(r),"function"==typeof t&&t({success:!1,message:r})}})}),(function(e){"function"==typeof t&&t({success:!1,message:e&&e.Message?e.Message:i.a.translate("Authentication error")})}))}else"function"==typeof t&&t({success:!1,message:i.a.translate("Form validation error")})}function we(){this.form&&($("#"+this.form.ClientID+" [id$='_validation']").html(""),$("#"+this.form.ClientID+" *").removeClass("invalid"))}function xe(){if(!this.form)return!1;we.call(this);var e,t,n=this.form;$("#"+n.ClientID+"_validation").html("");for(var r=0;r<this.form.FormFields.length;r++){var o=n.FormFields[r],a=Oe(this.form,r),s=$("#"+a+"_validation");switch(s.html(""),o.FieldType){case ve.FieldType.Text:case ve.FieldType.Paragraph:case ve.FieldType.DateTime:if(e=$("#"+a),!0===o.Required&&""===e.val())return e.addClass("invalid"),e.focus(),s.html(i.a.translate("Please enter a value")),!1;e.removeClass("invalid");break;case ve.FieldType.Integer:case ve.FieldType.Double:case ve.FieldType.Percentage:if(e=$("#"+a),!0===o.Required&&""===e.val()&&(t=!1,!0===o.AllowBelowDetectableLimit&&1===$("#"+a+"_below:checked").length&&(t=!0),!t))return e.addClass("invalid"),e.focus(),s.html(i.a.translate("Please enter a value")),!1;var l=e.val();if(isNaN(l))return e.addClass("invalid"),e.focus(),s.html(i.a.translate("Please enter a valid value")),!1;if("number"!=typeof l&&(l=parseFloat(l)),"number"==typeof o.LowerBound&&l<o.LowerBound)return e.addClass("invalid"),e.focus(),s.html(i.a.translate("Please enter a value larger than or equal to {LowerBound}",{LowerBound:o.LowerBound})),!1;if("number"==typeof o.UpperBound&&l>o.UpperBound)return e.addClass("invalid"),e.focus(),s.html(i.a.translate("Please enter a value less than or equal to {UpperBound}",{UpperBound:o.UpperBound})),!1;e.removeClass("invalid");break;case ve.FieldType.ListBox:if(e=$("#"+a),!0===o.Required&&""===e.val()&&(t=!1,o.AllowOther&&""!==$("#"+a+"_other").val()&&(t=!0),!t))return e.addClass("invalid"),e.focus(),s.html(i.a.translate("Please select a value")),!1;e.removeClass("invalid");break;case ve.FieldType.CheckBox:case ve.FieldType.RadioButton:if(!0===o.Required&&0===$("input[name='"+a+"']:not([id$='_other_indicator']):checked").length&&(!0!==o.AllowOther||""===$("#"+a+"_other").val()))return $("input[name='"+a+"']").first().focus(),s.html(i.a.translate("Please select a value")),!1;break;case ve.FieldType.Label:case ve.FieldType.HyperLink:break;default:return console.error("Unknown field type "+o.FieldType),!1}}return!0}function Ce(e,t){$("#"+t+"_below").change((function(){this.checked&&$("#"+t).val("")}
876))}function Se(e,t){$("#"+t).change((function(){""!==$(this).val()&&$("#"+t+"_below").prop("checked",!1)}))}function Ee(e,t){$("#"+t+"_other").change((function(){""!==$(this).val()&&($("#"+t).val(""),$("input[name='"+t+"'").prop("checked",!1),$("#"+t+"_other_indicator").prop("checked",!0))}))}function ke(e,t){$("input[name='"+t+"'], #"+t).change((function(){(this.checked||"SELECT"===this.tagName&&""!==this.value)&&$("#"+t+"_other").val("")}))}function Te(){var e=this;$("#"+this.form.ClientID).submit((function(t){t.preventDefault(),e.saveForm()})).change((function(){e.hasChangesProperty=!0})),$("#"+this.form.ClientID+" legend .edit-button").click((function(t){t.preventDefault(),e.fireEvent(_.c.FormEditClick)})),$("#"+this.form.ClientID+" [type='reset']").click((function(t){we.call(e),e.hasChangesProperty=!1,$("#"+e.form.ClientID+" select").val(""),$("#"+e.form.ClientID+" input[type='text']").val(""),$("#"+e.form.ClientID+" input[type='number']").val(""),$("#"+e.form.ClientID+" textarea").val(""),$("#"+e.form.ClientID+" input[type='checkbox'], #"+e.form.ClientID+" input[type='radio']").prop("checked",!1),t.preventDefault()}));for(var t=0;t<this.form.FormFields.length;t++){var n=Oe(this.form,t),r=this.form.FormFields[t];r.AllowBelowDetectableLimit&&(Ce.call(e,r,n),Se.call(e,r,n)),r.AllowOther&&(Ee.call(e,r,n),ke.call(e,r,n))}}function Oe(e,t){return e.ClientID+"_field_"+e.FormFields[t].FieldID}function $e(e){if(this.originalData){for(var t=0;t<this.originalData.length;t++){var n=this.originalData[t];if(n.FieldValues&&n.FieldValues.length)for(var r=0;r<n.FieldValues.length;r++){var i=n.FieldValues[r];if(i.FieldId===e)return i}}return null}}function Pe(e,t,n){var r,o=e.FormFields[t];o.Tooltip=o.Tooltip||"";var a=Oe(e,t),s=$e.call(this,o.FieldID);
876if(s||(s={IsOtherValue:!1,IsBelowDetectableLimit:!1,FormValue:null}),"function"==typeof n.fieldCb&&!1===n.fieldCb(e,o,s))return"";var l="";o.ExtraStyle&&(l+=" "+o.ExtraStyle+" "),o.fieldGroupClass&&(l+=" "+o.fieldGroupClass+" ");var c=s&&s.FormValue?s.FormValue:"",d='<div class="form-group '+(!0===o.Required?"required":"")+" "+l+'" title="'+o.Tooltip+'">';o.FieldType!==ve.FieldType.HyperLink&&(d+='<label for="'+a+'">'+o.Label+"</label>"),d+="<div class='field-container "+(n.fieldContainerClass?n.fieldContainerClass:"")+" "+(o.fieldContainerClass?o.fieldContainerClass:"")+" '>";var u="";!0===o.Required&&(u=' required="required" ');var h="";if(n.inputClass&&(h+=" "+n.inputClass+" "),o.fieldClass&&(h+=" "+o.fieldClass+" "),o.FieldType===ve.FieldType.DateTime&&console.warn("PMA.UI.Components.Forms: No proper date time field support yet."),!0===n.readOnly)d+=this.renderReadOnlyField(o,s,h);else{switch(o.FieldType){case ve.FieldType.Text:d+='<input id="'+a+'" name="'+a+'" value="'+c+'" type="text" placeholder="'+o.Tooltip+'" '+u+' class="'+h+'" />';break;case ve.FieldType.DateTime:d+='<input id="'+a+'" name="'+a+'" value="'+c+'" type="text" placeholder="yyyy-MM-dd HH:mm:ss" '+u+' class="'+h+'" />';break;case ve.FieldType.Paragraph:d+='<textarea id="'+a+'" name="'+a+'" placeholder="'+o.Tooltip+'"'+u+' class="'+h+'">'+c+"</textarea>";break;case ve.FieldType.ListBox:if(d+='<select id="'+a+'" name="'+a+'" class="'+h+'">',o.FormList&&o.FormList.FormListValues){d+='<option value="" '+(0===c.length?'selected="selected"':"")+">"+o.Tooltip+"</option>",r=o.FormList.FormListValues;for(var p=0;p<r.length;p++)d+='<option value="'+r[p].ValueID+'" '+(0!==c.length&&r[p].ValueID==c?'selected="selected"':"")+">"+r[p].Value+"</option>"}d+="</select>";break;case ve.FieldType.CheckBox:d+='<ul class="checkboxlist">';var f=c.split("|");if(o.FormList&&o.FormList.FormListValues){r=o.FormList.FormListValues;for(var m=0;m<r.length;m++)d+="<li>",d+='<input type="checkbox" class="'+h+'" id="'+a+"_"+r[m].ValueID+'" name="'+a+'" value="'+r[m].ValueID+'" '+(ge(f,""+r[m].ValueID)?'checked="checked"':"")+"/>",d+='<label for="'+a+"_"+r[m].ValueID+'">'+r[m].Value+"</label>",d+="</li>"}d+="</ul>";break;case ve.FieldType.RadioButton:if(d+='<ul class="radiobuttonlist">',o.FormList&&o.FormList.FormListValues){r=o.FormList.FormListValues;for(var g=0;g<r.length;g++)d+="<li>",d+='<input type="radio" class="'+h+'" id="'+a+"_"+r[g].ValueID+'" name="'+a+'" value="'+r[g].ValueID+'" '+(""!==c&&r[g].ValueID==c?'checked="checked"':"")+" />",d+='<label for="'+a+"_"+r[g].ValueID+'">'+r[g].Value+"</label>",d+="</li>";!0===o.AllowOther&&(d+="<li>",d+='<input type="radio" class="'+h+'" id="'+a+'_other_indicator" name="'+a+'" '+(s&&s.IsOtherValue?'checked="checked"':"")+' value="other" />',d+='<label for="'+a+'_other_indicator">'+i.a.translate("Other value")+"</label>",d+="</li>")}d+="</ul>";break;case ve.FieldType.Integer:var v=1;o.Interval&&(v=0|o.Interval),d+='<input id="'+a+'" name="'+a+'"'+u+" "+(null!==o.LowerBound?'min="'+o.LowerBound+'"':"")+" "+(null!==o.UpperBound?'max="'+o.UpperBound+'"':"")+' type="number" step="'+v+'" value="'+c+'" placeholder="'+o.Tooltip+'" class="'+h+'"/>';break;case ve.FieldType.Double:d+='<input id="'+a+'" name="'+a+'"'+u+" "+(null!==o.LowerBound?'min="'+o.LowerBound+'"':"")+" "+(null!==o.UpperBound?'max="'+o.UpperBound+'"':"")+' type="number" step="'+(o.Interval?o.Interval:"any")+'" value="'+c+'" placeholder="'+o.Tooltip+'" class="'+h+'" />';break;case ve.FieldType.Percentage:var y=0,b=100;null!==o.LowerBound&&(0|o.LowerBound)>=0&&(y=0|o.LowerBound),null!==o.UpperBound&&(0|o.UpperBound)<=0&&(b=0|o.UpperBound),d+='<input id="'+a+'" name="'+a+'"'+u+' min="'+y+'" max="'+b+'" type="number" step="'+(o.Interval?o.Interval:"any")+'" value="'+c+'" placeholder="'+o.Tooltip+'" class="'+h+'" />';break;case ve.FieldType.Label:break;case ve.FieldType.HyperLink:d+='<a class="link-field" id="'+a+'" title="'+o.Tooltip+'" href="'+o.Url+'" '+(!0===o.NewWindow?' target="_blank" ':"")+">"+o.Label+"</a>"}!0===o.AllowBelowDetectableLimit&&(d+='<div class="below-container">',d+='<input id="'+a+'_below" name="'+a+'_below" type="checkbox" '+(s&&!0===s.IsBelowDetectableLimit?'checked="checked"':"")+' value="below" />',d+='<label for="'+a+'_below">'+i.a.translate("Below detectable limit")+"</label>",d+="<div>"),!0===o.AllowOther&&(d+='<input id="'+a+'_other" class="other '+(n.inputClass?n.inputClass:"")+'" name="'+a+'_other" type="text" value="'+(""!==c&&s&&!0===s.IsOtherValue?c:"")+'" placeholder="'+i.a.translate("Other value")+'" />')}return d+='<span id="'+a+'_validation" class="field-validation '+(n.fieldValidationClass?n.fieldValidationClass:"")+'"></span>',o.additionalHtml&&(d+=o.additionalHtml),d+"</div></div>"}function Ie(e,t,n,r,o,a){this.form.ClientID="frm"+(1e7*Math.random()|0),this.hasChangesProperty=!1;var s="<form class='pma-ui-form "+(n.formClass?n.formClass:"")+"' name='"+t.ClientID+"' id='"+t.ClientID+"' autocomplete='off' novalidate><fieldset>";t.FormName&&(s+="<legend class='form-name'>"+t.FormName+(!0===n.editButton&&!0===n.readOnly?'<span class="edit-button">'+i.a.translate("[Edit]")+"</span>":"")+"</legend>"),t.Instructions&&(s+="<div class='form-instructions'>
876"+t.Instructions+"</div>"),t.FormFields.sort((function(e,t){return e.DisplayOrder-t.DisplayOrder}));for(var l=0;l<t.FormFields.length;l++)s+=Pe.call(this,t,l,n);s+="<div id='"+t.ClientID+"_validation' class='form-validation "+(n.validationClass?n.validationClass:"")+"'></div>",!0!==n.readOnly&&(s+="<div class='input-container "+(n.btnContainerClass?n.btnContainerClass:"")+"'>",s+="<button type='submit' value='"+i.a.translate("Save")+"' class='"+(n.btnSaveClass?n.btnSaveClass:"")+"' >"+i.a.translate("Save")+"</button>",s+="<button type='reset' value='"+i.a.translate("Reset")+"' class='"+(n.btnResetClass?n.btnResetClass:"")+"' >"+i.a.translate("Reset")+"</button>"),s+="</div>",s+="</fieldset></form>",$(e).html(s),Te.call(this),"function"==typeof o&&o.call(this,this.form,null)}function Le(e,t,n,r,i,o,a,s){var l=this;Object(_.h)({serverUrl:e,method:_.a.GetFormData,data:{sessionID:t,pathOrUid:r,formId:n.FormID,currentUserOnly:i},success:function(e){var t=Object(_.o)(e.responseText);if("function"==typeof a){var n=null;if("string"==typeof o){for(var r=0;r<t.length;r++)if(t[r].Login==o){n=[t[r]];break}}else n="function"==typeof o?o.call(l,t):t;a.call(l,n)}},failure:s})}ve.FieldType={Text:0,Paragraph:1,ListBox:2,CheckBox:3,RadioButton:4,Integer:5,Double:6,DateTime:7,Percentage:8,Label:9,HyperLink:10};var Ae=n(143),Me=(n(224),n(225),n(226),"servernode"),je="formnode",Re="fieldnode",De="valuenode",Fe="slidenode";function Ne(e,t){for(var n=[],r=0;r<e.length;r++){for(var i=e[r],o={title:i.FormName,type:je,lazy:!1,serverIndex:t,folder:!0,formId:i.FormID,children:[]},a=0;a<i.FormFields.length;a++){var s=i.FormFields[a];(this.showAllFields||null!=s.FormList)&&o.children.push({title:s.Label,type:Re,fieldId:s.FieldID,formId:i.FormID,formListValues:s.FormList?s.FormList.FormListValues:null,lazy:!0,serverIndex:t,folder:!0})}o.children.length>0&&n.push(o)}return n}function Be(e,t){var n=new Q.a.Deferred;t.result=n.promise();var r=t.node,o=this,a=r.data.serverIndex;r.type==Me?this.context.getFormDefinitions(o.servers[a].url,[],"",(function(e,t){var r=Ne.call(o,t,a);n.resolve(r)}),(function(e){n.reject(e.Message?e.Message:i.a.translate("Error loading forms"))})):r.type==Re?this.context.distinctValues({serverUrl:o.servers[a].url,formId:r.data.formId,fieldId:r.data.fieldId,success:function(e,t){for(var i=[],o=0;o<t.length;o++){var s=t[o];if(r.data.formListValues)for(var l=0;l<r.data.formListValues.length;l++)if(r.data.formListValues[l].ValueID==s){s=r.data.formListValues[l].Value;break}i.push({title:s,type:De,formId:r.data.formId,fieldId:r.data.fieldId,value:t[o],lazy:!0,serverIndex:a,folder:!0})}n.resolve(i)},failure:function(e){n.reject(e.Message?e.Message:i.a.translate("Error loading field"))}}):r.type==De&&this.context.metadata({serverUrl:o.servers[a].url,expressions:[{FormID:r.data.formId,FieldID:r.data.fieldId,Operator:0,Value:r.data.value}],success:function(e,t){for(var i=[],o=0;o<t.length;o++){var s=t[o];i.push({title:s,type:Fe,formId:r.data.formId,fieldId:r.data.fieldId,path:s,lazy:!1,serverIndex:a,folder:!1})}n.resolve(i)},failure:function(e){n.reject(e.Message?e.Message:i.a.translate("Error loading field"))}})}function Ue(e,t){e.version=t}var ze=function(){function e(t,n){if(p()(this,e),Object(g.b)()){if(n.element instanceof HTMLElement)this.element=n.element;else if("string"==typeof n.element){var r=document.querySelector(n.element);r?this.element=r:console.error("Invalid selector for element")}this.context=t,this.servers=n.servers||[];var i=this;this.autoExpand=!0===n.autoExpandNodes,this.lastSearchResults={},this.showAllFields=!0===n.showAllFields,this.listeners={},this.listeners[_.c.ValueExpanded]=[],this.listeners[_.c.SlideSelected]=[],"function"==typeof n.rootDirSortCb&&(this.rootDirSortCb=n.rootDirSortCb);for(var o=[],a=0;a<this.servers.length;a++)o.push({title:this.servers[a].name,type:Me,serverNode:!0,key:this.servers[a].url,serverIndex:a,extraClasses:"server",dirPath:"/",lazy:!0,unselectableStatus:!1,unselectable:!0,selected:!1}),this.context.getVersionInfo(this.servers[a].url,Ue.bind(this,this.servers[a]));Object(Ae.createTree)(this.element,{keyPathSeparator:"?",extensions:[],selectMode:3,toggleEffect:{effect:"drop",o
876ptions:{direction:"left"},duration:400},wide:{iconWidth:"1em",iconSpacing:"0.5em",levelOfs:"1.5em"},icon:function(e,t){switch(t.node.type){case Me:return"server";case je:return"fa fa-table";case Fe:return"image";case Re:return"fa fa-tag";case De:return"fa fa-code";default:return"fa fa-table"}},renderNode:"function"==typeof n.renderNode?n.renderNode:null,source:o,lazyLoad:Be.bind(this),activate:function(e,t){var n=t.node;!0===i.autoExpand&&n.setExpanded(!0),n.type==Fe&&i.fireEvent(_.c.SlideSelected,{serverUrl:i.servers[n.data.serverIndex].url,path:n.data.path})},select:function(e,t){t.tree.getSelectedNodes()},expand:function(e,t){var n=t.node;if(n.type==De){var r=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++)r.push(n.children[o].data.path);i.fireEvent(_.c.ValueExpanded,{serverUrl:i.servers[n.data.serverIndex].url,slides:r})}},dblclick:function(e,t){t.node}})}}return m()(e,[{key:"addServer",value:function(e){if(e){this.servers.push(e);var t={title:this.servers[this.servers.length-1].name,serverNode:!0,key:this.servers[this.servers.length-1].url,serverIndex:this.servers.length-1,extraClasses:"server",dirPath:"/",lazy:!0,unselectableStatus:!1,unselectable:!0,selected:!1};this.context.getVersionInfo(e.url,Ue.bind(this,e)),Q()(this.element).fancytree("getRootNode").addChildren(t)}}},{key:"removeServer",value:function(e){var t=Q()(this.element).fancytree("getRootNode").getChildren();t&&t.length&&e>=0&&e<t.length?t[e].remove():console.error("No children found or index out of range")}},{key:"listen",value:function(e,t){Object.prototype.hasOwnProperty.call(this.listeners,e)||console.error(e+" is not a valid event"),this.listeners[e].push(t)}},{key:"fireEvent",value:function(e,t){if(Object.prototype.hasOwnProperty.call(this.listeners,e))for(var n=0,r=this.listeners[e].length;n<r;n++)this.listeners[e][n].call(this,t);else console.error(e+" does not exist")}}]),e}(),Ge=function(){function e(t,n){if(p()(this,e),Object(g.b)()){if(n||(n={}),this.context=t,this.servers={},this.currentFocus=null,this.searchTimeout=0,n.element instanceof HTMLElement)this.element=n.element;else if("string"==typeof n.element){var r=document.querySelector(n.element);r?this.element=r:console.error("Invalid selector for element")}else this.element=null;this.listeners={},this.listeners[_.c.SearchStarted]=[],this.listeners[_.c.SearchFinished]=[],this.options=n,this.query="",this.position=0,this.element&>.call(this),this.retries={}}}return m()(e,[{key:"listen",value:function(e,t){Object.prototype.hasOwnProperty.call(this.listeners,e)||console.error(e+" is not a valid event"),this.listeners[e].push(t)}},{key:"fireEvent",value:function(e,t){if(Object.prototype.hasOwnProperty.call(this.listeners,e))for(var n=0,r=this.listeners[e].length;n<r;n++)this.listeners[e][n].call(this,t);else console.error(e+" does not exist")}},{key:"search",value:function(e,t){var n=this,r=(new Date).getTime();return n.searchToken=r,Object.prototype.hasOwnProperty.call(n.retries,e)&&n.retries[e]>2?Promise.reject():qe.call(this,e).then((function(){return n.retries[e]=0,Xe.call(n,t)}),(function(){n.retries[e]=(n.retries[e]||0)+1})).then((function(t){return 0===t.expressions.length?it.call(n,e,t):tt.call(n,e,t)})).then((function(t){if(!t||n.searchToken!==r)return null;for(var i={sessionID:n.servers[e].sessionId,expressions:[]},o=0;o<t.expressions.length;o++){var a=t.expressions[o];if(Qe.call(n,a)){var s=nt.call(n,e,a[0].value);if(s){var l=rt.call(n,s,a[1].value);l&&i.expressions.push({FormID:s.FormID,FieldID:l.FieldID,Operator:0,Value:l.FormList?st(l.FormList.FormListValues,a[3].value):a[3].value})}}}if(n.searchToken===r){if(0===i.expressions.length)return{serverUrl:e,query:t,results:[]};var c=JSON.stringify(i);return n.lastSearchTerms==c?{serverUrl:e,query:t,results:n.lastSearchResults.slice()}:(n.lastSearchTerms="",n.lastSearchResults=[],We.call(n,e,t,i,r))}}))}}]),e}(),Ve="literal";function qe(e){var t=this;return t.inputBox&&(t.inputBox.readonly=!0),new Promise((function(n,r){t.context.getVersionInfo(e,(function(i){i&&!i.startsWith("1.")?t.context.getSession(e,(function(i){t.servers[e]=t.servers[e]||{},t.servers[e].sessionId=i,He.call(t,e,(function(){t.inputBox&&(t.inputBox.readonly=!1),n(i)}),r)}),r):r()}),r)}))}function He(e,t,n){if(this.servers[e].forms)t();else{var r=this;this.context.getFormDefinitions(e,[],"",(function(n,i){r.servers[e].forms=i,r.servers[e].forms.push({FormID:-1,FormName:"Slide",FormFields:[{FieldID:0,Label:"Path"},{FieldID:1,Label:"Barcode"}]}),t()}),n)}}function We(e,t,n,r){var i=this;clearTimeout(i.searchTimeout);var o=JSON.stringify(n),a=n.expressions.filter((function(e){return-1===e.FormID&&0===e.FieldID})),s=a.length>0&&a.length===n.expressions.length,l=n;return new Promise((function(n){i.searchTimeout=setTimeout((function(){i.fireEvent(_.c.SearchStarted,{serverUrl:e,queryString:t.getText()}),s?Ye.call(i,e,a).then((function(a){var s=[];a instanceof Array&&(s=a),i.searchToken===r&&(i.lastSearchTerms=o,i.lastSearchResults=s,i.fireEvent(_.c.SearchFinished,s),n({serverUrl:e,query:t,results:s}))})):fetch(e+"query/json/Metadata",{method:"POST",mode:"cors",credentials:"same-origin",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(l)}).then((function(e){return e.ok?e.json():[]})).then((function(a){i.searchToken===r&&(i.lastSearchTerms=o,i.lastSearchResults=a,i.fireEvent(_.c.SearchFinished,a),n({serverUrl:e,query:t,results:a}))}))}),1e3)}))}function Ye(e,t){var n=this;return t&&0!==t.length?new Promise((function(r,i){var o=t.map((function(e){return e.Value})).join("|");n.context.queryFilename(e,"",o,(function(e,t){r(t)}),i)})):Promise.resolve(null)}function Xe(e){if("string"!=typeof e)throw"Query must be a string";this.query=e,this.position=0;for(var t=[];Ke.call(this);){ut.call(this);var n=ft.call(this);
876n&&t.push(n)}for(var r={getText:function(){if(!this.expressions||0===this.expressions.length)return"";for(var e="",t=0;t<this.expressions.length;t++){t>0&&(e+=",");for(var n=this.expressions[t],r=0;r<n.length;r++)e.length>0&&(e+=" "),n[r].quoted&&(e+='"'),e+=n[r].value,n[r].quoted&&(e+='"')}return e},getLastToken:function(){if(!this.expressions||0===this.expressions.length)return null;var e=this.expressions[this.expressions.length-1];return 0===e.length?null:e[e.length-1]},expressions:[],suggestions:[]},i=0;i<t.length;)i<=t.length-4&&t[i+0].type===Ve&&t[i+1].type===Ve&&t[i+2].operator&&t[i+3].type===Ve?(r.expressions.push([t[i+0],t[i+1],t[i+2],t[i+3]]),i+=4):i===t.length-3&&t[i+0].type===Ve&&t[i+1].type===Ve&&t[i+2].operator?(r.expressions.push([t[i+0],t[i+1],t[i+2]]),i+=3):i===t.length-2&&t[i+0].type===Ve&&t[i+1].type===Ve?(r.expressions.push([t[i+0],t[i+1]]),i+=2):t[i].type===Ve?(r.expressions.push([t[i]]),i++):i++;return new Promise((function(e){e(r)}))}function Ke(){return this.position<this.query.length}function Ze(){return Ke.call(this)?this.query[this.position++]:""}function Je(){return Ke.call(this)?this.query[this.position]:""}function Qe(e){return e&&4===e.length&&e[0].type===Ve&&e[1].type===Ve&&e[2].operator&&e[3].type===Ve}function et(e){if(!e||!e.quoted&&dt.call(this,this.query[this.query.length-1]))return!0;if(e.quoted){var t=this.query.trimRight();if(t.length>=2&&'"'===t[t.length-1]&&"\\"===t[t.length-1])return!1;if('"'===t[t.length-1])return!0}return!1}function tt(e,t){var n=t.expressions[t.expressions.length-1];return 1===n.length?et.call(this,n[0])?ot.call(this,e,t,n[0]):it.call(this,e,t):2===n.length?et.call(this,n[1])?at.call(this,t):ot.call(this,e,t,n[0]):3===n.length?et.call(this,n[2])?lt.call(this,e,t,n[0],n[1]):at.call(this,t):et.call(this,n[3])?it.call(this,e,t):lt.call(this,e,t,n[0],n[1])}function nt(e,t){return this.servers[e]&&this.servers[e].forms?this.servers[e].forms.find((function(e){return 0===e.FormName.localeCompare(t,{},{sensitivity:"base"})})):null}function rt(e,t){return e?e.FormFields.find((function(e){return 0===e.Label.localeCompare(t,{},{sensitivity:"base"})})):null}function it(e,t){return t.suggestions=this.servers[e].forms.map((function(e){return e.FormName})),new Promise((function(e){e(t)}))}function ot(e,t,n){var r=nt.call(this,e,n.value);return r&&(t.suggestions=r.FormFields.map((function(e){return e.Label}))),new Promise((function(e){e(t)}))}function at(e){var t=this;return new Promise((function(n){e.suggestions=ct.call(t),n(e)}))}function st(e,t){for(var n=0;n<e.length;n++)if(e[n].Value==t)return e[n].ValueID;return""}function lt(e,t,n,r){var i=nt.call(this,e,n.value);if(!i)return new Promise((function(e){e(t)}));var o=i.FormFields.find((function(e){return 0===e.Label.localeCompare(r.value,{},{sensitivity:"base"})}));return o?o.values?(t.suggestions=o.values,new Promise((function(e){e(t)}))):fetch(e+"query/json/DistinctValues?formID="+i.FormID+"&fieldID="+o.FieldID+"&sessionID="+this.servers[e].sessionId,{method:"GET",mode:"cors",credentials:"same-origin",headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.ok?e.json():[]})).then((function(e){return o.FormList?o.values=function(e,t){var n,r,i=[];for(n=0;n<t.length;n++)for(r=0;r<e.length;r++)if(e[r].ValueID==t[n]){i.push(e[r].Value);break}return i}(o.FormList.FormListValues,e):o.values=e.map((function(e){return e+""})),t.suggestions=o.values,t})):new Promise((function(e){e(t)}))}function ct(){return["="]}function dt(e){return-1!==[" ",","].indexOf(e)}function ut(){for(;dt.call(this,Je.call(this));)Ze.call(this)}function ht(e){return-1!==["=",">","<","~"].indexOf(e)}function pt(e){return!dt.call(this,e)&&!ht.call(this,e)}function ft(){if(!Ke.call(this))return null;var e=[],t=!1;if('"'===Je.call(this))Ze.call(this),t=!0;else if(ht.call(this,Je.call(this)))return mt.call(this);for(;Ke.call(this);){var n=Ze.call(this);if(t){if("\\"===n&&'"'===Je.call(this)){e.push(Ze.call(this));continue}if('"'===n)break}else if(!pt.call(this,n)){this.position--;break}e.push(n)}return 0===e.length?null:{value:e.join(""),type:Ve,operator:!1,quoted:t}}function mt(){for(var e=[];Ke.call(this)&&ht.call(this,Je.call(this));)e.push(Ze.call(this));if(0===e.length)return null;var t=e.join(""),n=Ve;switch(t){case"=":n="equal to";break;case"<>":n="different than";break;case">":n="greater than";break;case">=":n="greater than or equal to";break;case"<":n="less than";break;case"<=":n="less than or equal to";break;case"~=":n="similar to";break;default:throw"Unknown operator"}return{value:t,type:n,operator:!0,quoted:!1}}function gt(){this.element.classList.add("pma-ui-meta-data-search"),this.inputBox=document.createElement("input",{type:"text",autocomplete:"off"}),this.element.appendChild(this.inputBox),this.inputBox.addEventListener("input",vt.bind(this)),this.inputBox.addEventListener("keydown",bt.bind(this)),this.inputBox.addEventListener("focus",vt.bind(this));var e=this;document.addEventListener("click",(function(t){_t.call(e,t.target)})),new l.a({caller:""}).getVersionInfo(this.options.serverUrl,(function(e){null!=e&&e.startsWith("2")||(console.log(e),console.warn("Metadata search only w
876orks with PMA.core version 2.x. Version reported: "+e))}),(function(){console.warn("Cannot reach PMA.core server. Metadata search only works with PMA.core version 2.x.")}))}function vt(){var e=this,t=e.inputBox.value;_t.call(e),e.search(e.options.serverUrl,t).then((function(t){yt.call(e,t.query)}),(function(){}))}function yt(e){var t,n,r;(t=document.createElement("DIV")).setAttribute("class","autocomplete-items");var i=this;this.element.appendChild(t);var o,a=e.suggestions,s=e.getLastToken(),l="";function c(){var t=this.getElementsByTagName("input")[0].value;s&&!et.call(i,s)?(s.value=t,s.quoted=-1!==s.value.indexOf(" "),i.inputBox.value=e.getText()):i.inputBox.value=e.getText()+" "+(-1!==t.indexOf(" ")?'"'+t+'"':t),i.search(i.options.serverUrl,i.inputBox.value),_t.call(i)}for(s&&!et.call(i,s)&&(l=s.value),r=0;r<a.length;r++){if(0===l.length)(n=document.createElement("DIV")).innerHTML=a[r];else{if(-1===(o=a[r].toUpperCase().indexOf(l.toUpperCase())))continue;(n=document.createElement("DIV")).innerHTML=a[r].substr(0,o),n.innerHTML+="<strong>"+a[r].substr(o,l.length)+"</strong>",n.innerHTML+=a[r].substr(o+l.length)}n.innerHTML+="<input type='hidden' value='"+a[r]+"'>",n.addEventListener("click",c),t.appendChild(n)}}function bt(e){var t=this.element.querySelectorAll(".autocomplete-items div");if(0!==t.length){var n=this.element.querySelector(".autocomplete-active"),r=-1;if(n){n.classList.remove("autocomplete-active");for(var i=0;i<t.length;i++)if(t[i]===n){r=i;break}}40==e.keyCode?t[r=++r>=t.length?0:r].classList.add("autocomplete-active"):38==e.keyCode?t[r=--r<0?t.length-1:r].classList.add("autocomplete-active"):13==e.keyCode?(e.preventDefault(),-1!==r&&t[r].click(),_t.call(this)):27==e.keyCode&&_t.call(this)}}function _t(e){for(var t=document.getElementsByClassName("autocomplete-items"),n=0;n<t.length;n++)e!=t[n]&&e!=this.inputBox&&t[n].parentNode.removeChild(t[n])}var wt=n(27),xt=function(){function e(t){if(p()(this,e),t.length){this.slideLoaders=t,this.eventsKeys=[],this.posSync=[],this.overridePosition=!1,this.listeners={},this.listeners[_.c.SyncChanged]=[];for(var n=0;n<this.slideLoaders.length;n++)this.slideLoaders[n].listen(_.c.BeforeSlideLoad,this.disableSync.bind(this))}else console.error("Expected array of PMA.UI.Components.SlideLoader")}return m()(e,[{key:"enableSync",value:function(){this.posSync=[];for(var e=0;e<this.slideLoaders.length;e++){var t=this.slideLoaders[e];if(t.mainViewport&&t.mainViewport.map){this.posSync.push(t.mainViewport.getPosition());var n={index:e,self:this,slideLoaders:this.slideLoaders};this.eventsKeys.push({viewport:t.mainViewport,callback:St.bind(this,n)}),t.mainViewport.listen(a.g.ViewChanged,this.eventsKeys[this.eventsKeys.length-1].callback)}}this.fireEvent(_.c.SyncChanged,!0)}},{key:"disableSync",value:function(){if(this.eventsKeys)for(;this.eventsKeys.length>0;){var e=this.eventsKeys.pop();e.viewport.unlisten(a.g.ViewChanged,e.callback)}this.posSync=[],this.fireEvent(_.c.SyncChanged,!1)}},{key:"getStatus",value:function(){return this.eventsKeys&&this.eventsKeys.length>0}},{key:"listen",value:function(e,t){Object.prototype.hasOwnProperty.call(this.listeners,e)||console.error(e+" is not a valid event"),this.listeners[e].push(t)}},{key:"fireEvent",value:function(e,t){if(Object.prototype.hasOwnProperty.call(this.listeners,e))for(var n=0,r=this.listeners[e].length;n<r;n++)this.listeners[e][n].call(this,t);else console.error(e+" does not exist")}}]),e}(),Ct=!1;function St(e){if(e&&!Ct){for(var t=e.self,n=e.slideLoaders[e.index],r=n.mainViewport.getFlip(),i=0;i<e.slideLoaders.length;i++)if(e.index!=i){var o=e.slideLoaders[i],a=o.mainViewport.getFlip();a.horizontally==r.horizontally&&a.vertically==r.vertically||o.mainViewport.setFlip(r.horizontally,r.vertically)}var s=n.mainViewport.getPosition(),l=t.posSync[e.index];if(isNaN(s.zoom))return;if(l){var c={zoom:s.zoom-l.zoom,rotation:s.rotation-l.rotation,center:[s.center[0]-l.center[0],s.center[1]-l.center[1]]};t.posSync[e.index]=s,l=t.posSync[e.index],Ct=!0;for(var d=0;d<e.slideLoaders.length;d++)if(d!=e.index){var u=t.posSync[d];if(u){if(u.zoom+=c.zoom,u.rotation+=c.rotation,u.rotation!=l.rotation){var h=Object(wt.h)([c.center[0],c.center[1]],u.rotation-l.rotation);u.center[0]+=h[0],u.center[1]+=h[1]}else u.center[0]+=c.center[0],u.center[1]+=c.center[1];e.slideLoaders[d].mainViewport.setPosition(u,!0),e.slideLoaders[d].mainViewport.map.getView().dispatchEvent("change:center")}t.posSync[d]=u}Ct=!1}}}var Et=n(169),kt=n(149),Tt=n(186),Ot=n(183),$t=n(150),Pt=n(185),It=n(184),Lt=n(187),At=n(188),Mt=n(215),jt=n(216),Rt=n(55),Dt=n(24),Ft=n(29),Nt=n(22),Bt=n(44),Ut=n(130),zt=n(104),Gt=n(65),Vt=n(67),qt=n(72),Ht=n(71),Wt=n(101),Yt=n.n(Wt),Xt=n(61),Kt=n.n(Xt),Zt=n(142),Jt=n.n(Zt),Qt=n(28),en=n.n(Qt),tn=["tif","tiff","jpeg","jpg","jp2","png","ndpi","dcm","svs","scn","svslide","lif","zvi","czi","lsm","nd2","mds","zif","sws","qptiff","tmap","jxr","kfb","isyntax","rts","bif","oir","szi","mdsx"],nn=["ndpis","mrxs","afi","vsi"];function rn(e,t){if(e=e||"",""===t)return e;var n=e.split(t);return 1===n.length?e:n.slice(0,-1).join(t)}function on(e){return(e=e||"").startsWith("/")?e.slice(1):e}function an(){return Math.random().toString(36).slice(2).toUpperCase()}function sn(e){e=(e=(e=e.replace(/ {4}|[\t\n\r]/gm,"")).replace(/>\s*/g,">")).replace(/\s*</g,"<");var t=(new DOMParser).parseFromString(e,"text/xml");return Jt()({},t.nodeName,function e(t){var n=t.childNodes;if(0===n.length)return t.nodeValue;if(1===n.length&&n[0].nodeType===Node.TEXT_NODE)return n[0].nodeValue;var r={};
876return n.forEach((function(t){var n=t.nodeName,i=r[n];void 0!==i?Array.isArray(i)?i.push(e(t)):r[n]=[i,e(t)]:r[n]=e(t)})),r}(t))}function ln(e){return new Promise((function(t,n){var r=new FileReader;r.addEventListener("load",(function(e){var n=e.target.result;t(n)})),r.onerror=function(e){n(e)},r.readAsText(e,"UTF-8")}))}function cn(e){var t={section:/^\s*\[\s*([^\]]*)\s*\]\s*$/,param:/^\s*([^=]+?)\s*=\s*(.*?)\s*$/,comment:/^\s*;.*$/},n={},r=e.split(/[\r\n]+/),i=null;return r.forEach((function(e){if(!t.comment.test(e))if(t.param.test(e)){var r=e.match(t.param);i?n[i][r[1]]=r[2]:n[r[1]]=r[2]}else if(t.section.test(e)){var o=e.match(t.section);n[o[1]]={},i=o[1]}else 0==e.length&&i&&(i=null)})),n}function dn(e,t){return un.apply(this,arguments)}function un(){return(un=Kt()(en.a.mark((function e(t,n){var r,i,o,a,s,l,c,d,u,h,p,f,m=arguments;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=m.length>2&&void 0!==m[2]&&m[2],i=[t],o=[],0!==(n=n.filter((function(e){return e}))).length){e.next=6;break}return e.abrupt("return",{status:Mn.SlideStatus.MissingFiles,errors:["No additional files provided"],files:i});case 6:if(a=rn(r?n[0].path?on(n[0].path||n[0].name):n[0].webkitRelativePath||n[0].name:t.path?on(t.path||t.name):t.webkitRelativePath||t.name,"."),s=n.find((function(e){return on(e.path)===a+"/Slidedat.ini"||e.webkitRelativePath===a+"/Slidedat.ini"}))){e.next=10;break}return e.abrupt("return",{status:Mn.SlideStatus.MissingFiles,errors:["Missing folder: ".concat(t.name.split(".").shift())],files:i});case 10:return e.next=12,ln(s);case 12:if(l=e.sent){e.next=15;break}return e.abrupt("return",{status:Mn.SlideStatus.MissingFiles,errors:["Slidedat.ini couldn't be opened"],files:i});case 15:if(c=cn(l)){e.next=18;break}return e.abrupt("return",{status:Mn.SlideStatus.MissingFiles,errors:["Slidedat.ini couldn't be parsed"],files:i});case 18:i.push(s),d=c.HIERARCHICAL.INDEXFILE,(u=n.find((function(e){return on(e.path)===a+"/"+d||e.webkitRelativePath===a+"/"+d})))?i.push(u):o.push(d+" missing"),h=parseInt(c.DATAFILE.FILE_COUNT),p=en.a.mark((function e(){var t,r;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=c.DATAFILE["FILE_"+f],(r=n.find((function(e){return on(e.path)===a+"/"+t||e.webkitRelativePath===a+"/"+t})))?i.push(r):o.push(t+" missing");case 3:case"end":return e.stop()}}),e)})),f=0;case 25:if(!(f<h)){e.next=30;break}return e.delegateYield(p(),"t0",27);case 27:f++,e.next=25;break;case 30:return e.abrupt("return",{status:0===o.length?Mn.SlideStatus.Queued:Mn.SlideStatus.MissingFiles,errors:o,files:i,childFolder:a.split("/").pop()});case 31:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hn(e,t){return pn.apply(this,arguments)}function pn(){return(pn=Kt()(en.a.mark((function e(t,n){var r,i,o,a,s,l,c=arguments;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c.length>2&&void 0!==c[2]&&c[2],i=[t],o=[""],0!==(n=n.filter((function(e){return e}))).length){e.next=6;break}return e.abrupt("return",{status:Mn.SlideStatus.MissingFiles,errors:["No additional files provided"],files:i});case 6:if(a=rn(r?n[0].name:t.name,"."),0!==(s=n.filter((function(e){var t=e.path?e.path:e.webkitRelativePath;return!!t.includes(".ets")&&t.includes(a)}))).length){e.next=10;break}return e.abrupt("return",{status:Mn.SlideStatus.MissingFiles,errors:["Missing folder: ".concat(t.name.split(".").shift())],files:i});case 10:for(l=0;l<s.length;l++)o.push(rn(s[l].path?on(s[l].path):s[l].webkitRelativePath,"/"));return e.abrupt("return",{status:Mn.SlideStatus.Queued,errors:[],files:i.concat(s),childFolder:o});case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fn(e,t){return mn.apply(this,arguments)}function mn(){return(mn=Kt()(en.a.mark((function e(t,n){var r,i,o,a,s,l,c,d,u,h,p=arguments;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=p.length>2&&void 0!==p[2]&&p[2],i=[t],o=[],n=n.filter((function(e){return e})),e.next=6,ln(t);case 6:if(a=e.sent){e.next=9;break}return e.abrupt("return",{status:Mn.SlideStatus.MissingFiles,errors:[t.name+" couldn't be opened"],files:i});case 9:if(s=sn(a)){e.next=12;break}return e.abrupt("return",{status:Mn.SlideStatus.MissingFiles,errors:[t.name+" couldn't be parsed"],files:i});case 12:if(l=s["#document"]&&s["#document"].ImageList&&s["#document"].ImageList.Image?s["#document"].ImageList.Image:null,c=l&&l.length?l.length:0,0!==n.length){e.next=17;break}return o=l.map((function(e){return e.Path})),e.abrupt("return",{status:Mn.SlideStatus.MissingFiles,errors:o,files:i});case 17:d=rn(r?n[0].path?on(n[0].path):n[0].webkitRelativePath:t.path?on(t.path):t.webkitRelativePath,"/"),u=en.a.mark((function e(){var t,r;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l[h].Path,(r=n.find((function(e){return on(e.path)===d+"/"+t||e.webkitRelativePath===d+"/"+t||e.name.toLowerCase()===t.toLowerCase()})))?i.push(r):o.push(t+" missing");case 3:case"end":return e.stop()}}),e)})),h=0;case 20:if(!(h<c)){e.next=25;break}return e.delegateYield(u(),"t0",22);case 22:h++,e.next=20;break;case 25:return e.abrupt("return",{status:0===o.length?Mn.SlideStatus.Queued:Mn.SlideStatus.MissingFiles,errors:o,files:i,childFolder:""});case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gn(e,t){return vn.apply(this,arguments)}function vn(){return(vn=Kt()(en.a.mark((function e(t,n){var r,i,o,a,s,l,c,d,u=arguments;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.length>2&&void 0!==u[2]&&u[2],r=[t],i=[],n=n.filter((function(e){return e})),e.next=6,ln(t);case 6:if(o=e.sent){e.next=9;break}return e.abrupt("return",{status:Mn.SlideStatus.MissingFiles,errors:[t.name+" couldn't be opened"],files:r});
876case 9:if(a=cn(o)){e.next=12;break}return e.abrupt("return",{status:Mn.SlideStatus.MissingFiles,errors:[t.name+" couldn't be parsed"],files:r});case 12:if(s=a["NanoZoomer Digital Pathology Image Set"].NoImages,0!==n.length){e.next=16;break}for(l=0;l<s;l++)i.push(a["NanoZoomer Digital Pathology Image Set"]["Image"+l]);return e.abrupt("return",{status:Mn.SlideStatus.MissingFiles,errors:i,files:r});case 16:c=en.a.mark((function e(){var t,o;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=a["NanoZoomer Digital Pathology Image Set"]["Image"+d],(o=n.find((function(e){return e.name===t})))?r.push(o):i.push(t+" missing");case 3:case"end":return e.stop()}}),e)})),d=0;case 18:if(!(d<s)){e.next=23;break}return e.delegateYield(c(),"t0",20);case 20:d++,e.next=18;break;case 23:return e.abrupt("return",{status:0===i.length?Mn.SlideStatus.Queued:Mn.SlideStatus.MissingFiles,errors:i,files:r,childFolder:""});case 24:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function yn(e,t,n){return bn.apply(this,arguments)}function bn(){return(bn=Kt()(en.a.mark((function e(t,n,r){var i,o=arguments;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=o.length>3&&void 0!==o[3]&&o[3],e.t0=t.toLowerCase(),e.next="mrxs"===e.t0?4:"vsi"===e.t0?7:"afi"===e.t0?10:"ndpis"===e.t0?13:16;break;case 4:return e.next=6,dn(n,r,i);case 6:return e.abrupt("return",e.sent);case 7:return e.next=9,hn(n,r,i);case 9:return e.abrupt("return",e.sent);case 10:return e.next=12,fn(n,r,i);case 12:return e.abrupt("return",e.sent);case 13:return e.next=15,gn(n,r,i);case 15:return e.abrupt("return",e.sent);case 16:return e.abrupt("return",{status:Mn.SlideStatus.NotSupported,errors:["Not supported format"],files:[]});case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _n(e){e.preventDefault();var t=i.a.translate("Uploading is in progess. If you leave now, your uploads will be lost.");return(e||window.event).returnValue=t,t}function wn(){return xn.apply(this,arguments)}function xn(){return(xn=Kt()(en.a.mark((function e(){var t,n;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this,0!==this.lastLoadedImages.length){e.next=3;break}return e.abrupt("return");case 3:this.uploading=!0,this.notifyOnExit&&window.addEventListener("beforeunload",_n);case 5:if((n=this.lastLoadedImages.find((function(e){return e.status===Mn.SlideStatus.Queued})))&&this.uploadingStatus){e.next=8;break}return e.abrupt("break",13);case 8:return e.next=10,this.context.uploadSlide({serverUrl:this.serverUrl,targetPath:n.targetPath,targetChildPath:n.targetChildPath,slide:n,progress:function(e,n){var r=t.lastLoadedImages.findIndex((function(t){return t.id===e.id}));-1!==r&&(t.lastLoadedImages[r].uploadProgress=n,t.lastLoadedImages[r].status=Mn.SlideStatus.Uploading,t.fireEvent(_.c.OnProgress,{type:"uploadProgress",slide:t.lastLoadedImages[r],slides:t.lastLoadedImages}),Cn.call(t))},success:function(e){var n=t.lastLoadedImages.findIndex((function(t){return t.id===e.id}));-1!==n&&(t.lastLoadedImages[n].uploadProgress=100,t.lastLoadedImages[n].status=Mn.SlideStatus.Done,t.fireEvent(_.c.OnProgress,{type:"uploadSuccess",slide:t.lastLoadedImages[n],slides:t.lastLoadedImages}),Cn.call(t))},error:function(e,n){var r=t.lastLoadedImages.findIndex((function(t){return t.id===e.id}));-1!==r&&(t.lastLoadedImages[r].uploadProgress=100,t.lastLoadedImages[r].status=Mn.SlideStatus.Error,t.lastLoadedImages[r].error=n,t.fireEvent(_.c.OnProgress,{type:"uploadError",slide:t.lastLoadedImages[r],slides:t.lastLoadedImages}),Cn.call(t))}});case 10:Cn.call(this);case 11:e.next=5;break;case 13:this.uploading=!1,this.notifyOnExit&&window.removeEventListener("beforeunload",_n);case 15:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function Cn(){var e=this;if(this.statusElement){for(var t=this.statusElement;t.firstChild;)t.removeChild(t.firstChild);if(0!==this.lastLoadedImages.length){var n=document.createElement("div"),r=document.createElement("table"),o=document.createElement("tr"),a=document.createElement("th");a.className="text-center",a.innerText="#",o.appendChild(a),(a=document.createElement("th")).innerText=i.a.translate("Name"),o.appendChild(a),(a=document.createElement("th")).className="text-right",a.innerText=i.a.translate("Size (in bytes)"),o.appendChild(a),(a=document.createElement("th")).innerText=i.a.translate("Target Path"),o.appendChild(a),(a=document.createElement("th")).className="text-center",a.innerText=i.a.translate("Status"),o.appendChild(a),(a=document.createElement("th")).className="text-center",a.innerText=i.a.translate("Progress"),o.appendChild(a),(a=document.createElement("th")).className="text-center",o.appendChild(a),r.appendChild(o),this.lastLoadedImages.forEac
876h((function(t,n){var o=document.createElement("tr"),a=document.createElement("th");a.className="text-center",a.innerText=n+1,o.appendChild(a),(a=document.createElement("td")).innerText=t.name,o.appendChild(a),(a=document.createElement("td")).className="text-right",a.innerText=t.size.toLocaleString("en"),o.appendChild(a),(a=document.createElement("td")).innerText=t.targetPath,o.appendChild(a),(a=document.createElement("td")).className="text-center",a.innerHTML=function(e,t){var n='<span class="image-upload-tooltip" data-tip="'+t+'" tabindex="1"><i style="cursor: pointer;" class="fa fa-question-circle-o" /></span>';switch(e){case Mn.SlideStatus.MissingFiles:return'<span style="color: purple;">'+i.a.translate("Files missing")+" "+n+"</span>";case Mn.SlideStatus.Queued:return'<span style="color: #ffa700;">'+i.a.translate("Queued")+' <i class="fa fa-clock-o"/></span>';case Mn.SlideStatus.Error:return'<span style="color: red;">'+i.a.translate("Error")+" "+n+"</span>";case Mn.SlideStatus.Done:return'<span style="color: green;">'+i.a.translate("Uploaded")+' <i class="fa fa-check-circle-o"/></span>';case Mn.SlideStatus.Uploading:return'<span style="color: blue;">'+i.a.translate("Uploading")+' <i class="fa fa-upload"/></span>';case Mn.SlideStatus.NotSupported:return"<span>"+i.a.translate("Not supported")+" "+n+"</span>"}}(t.status,t.error),o.appendChild(a),(a=document.createElement("td")).className="text-center",a.innerHTML=function(e,t){var n='<div class="meter ';switch(e){case Mn.SlideStatus.MissingFiles:case Mn.SlideStatus.Error:case Mn.SlideStatus.NotSupported:n+="danger",t=100;break;case Mn.SlideStatus.Queued:n+="warning",t=100;break;case Mn.SlideStatus.Done:n+="success",t=100;break;case Mn.SlideStatus.Uploading:n+="info"}return n+'"><span style="width: '+t+'%"></span></div>'}(t.status,t.uploadProgress),o.appendChild(a),(a=document.createElement("td")).className="text-center";var s=document.createElement("button");s.title=i.a.translate("Remove slide from list"),s.innerHTML='<i class="fa fa-trash-o" aria-hidden="true"></i>',s.onclick=function(){e.removeSlide(n)},s.disabled=t.status===Mn.SlideStatus.Uploading,a.appendChild(s),o.appendChild(a),r.appendChild(o)})),n.appendChild(r),t.appendChild(n)}}}function Sn(e){for(var t={},n=0;n<e.length;n++)for(var r=e[n],i=r.path?on(r.path).split("/"):r.webkitRelativePath.split("/"),o=t,a=function(){var e=i[s];
876o.children||(o.children=[]);var t=o.children.find((function(t){return t.name===e}));t||(t={name:e,children:[]},o.children.push(t)),s===i.length-1?(t.file=r,t.path=r.path?on(r.path):r.webkitRelativePath,t.isLeaf=!0,delete t.children):t.isLeaf=!1,o=t},s=0;s<i.length;s++)a();return t.children[0]}function En(e){var t=[];return function e(n){n.isLeaf&&n.path&&t.push(n.file),n.children&&Array.isArray(n.children)&&n.children.forEach((function(t){e(t)}))}(e),t}function kn(e,t){return Tn.apply(this,arguments)}function Tn(){return(Tn=Kt()(en.a.mark((function e(t,n){var r,i,o,a,s,l,c,d,u=this;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(r=-1,t.name){e.next=17;break}if(!t.isLeaf){e.next=15;break}i=[],o=en.a.mark((function e(){var t,o,s,l;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n[a],-1==(r=u.lastLoadedImages.findIndex((function(e){return e.error.toLowerCase().includes(t.name.toLowerCase())&&e.status===Mn.SlideStatus.MissingFiles})))){e.next=10;break}return o=u.lastLoadedImages[r],s=o.name.split(".").pop(),e.next=7,yn(s,o.files[0],Yt()(o.files).concat(t),!0);case 7:l=e.sent,u.lastLoadedImages[r]={id:o.id,name:o.name,files:l.files,status:l.status,error:l.errors.join(", "),targetPath:o.targetPath,relativePath:o.relativePath,targetChildPath:l.childFolder,size:l.files.map((function(e){return e&&e.size?e.size:0})).reduce((function(e,t){return e+t}),0),uploadProgress:0},i.push(n.findIndex((function(e){return e.name.toLowerCase()===t.name.toLowerCase()})));case 10:case"end":return e.stop()}}),e)})),a=0;case 8:if(!(a<n.length)){e.next=13;break}return e.delegateYield(o(),"t0",10);case 10:a++,e.next=8;break;case 13:i.filter((function(e){return-1!==e})).forEach((function(e){n[e]=void 0})),n=n.filter((function(e){return void 0!==e}));case 15:e.next=26;break;case 17:if(s=t.name,-1==(r=this.lastLoadedImages.findIndex((function(e){return s.toLowerCase().includes(e.name.toLowerCase().split(".").shift())&&e.status===Mn.SlideStatus.MissingFiles})))){e.next=26;break}return l=this.lastLoadedImages[r],c=l.name.split(".").pop(),e.next=24,yn(c,l.files[0],Yt()(l.files).concat(En(t)),!0);case 24:d=e.sent,this.lastLoadedImages[r]={id:l.id,name:l.name,files:d.files,status:d.status,error:d.errors.join(", "),targetPath:l.targetPath,relativePath:l.relativePath,targetChildPath:d.childFolder,size:d.files.map((function(e){return e&&e.size?e.size:0})).reduce((function(e,t){return e+t}),0),uploadProgress:0};case 26:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function On(){return $n.apply(this,arguments)}function $n(){return($n=Kt()(en.a.mark((function e(){var t,n,r,i,o,a=this;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.lastLoadedImages.length){e.next=2;break}return e.abrupt("return");case 2:t=this.lastLoadedImages.filter((function(e){return e.status===Mn.SlideStatus.MissingFiles})),n=[],r=0;case 5:if(!(r<t.length)){e.next=16;break}i=en.a.mark((function e(){var i,s,l,c,d,u;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=a.lastLoadedImages[o],!(s=t[r]).error.toLowerCase().includes(i.name.toLowerCase())){e.next=12;break}if(l=s.name.split(".").pop(),-1===(c=a.lastLoadedImages.findIndex((function(e){return e.id===s.id})))){e.next=12;break}return e.next=8,yn(l,s.files[0],(d=Yt()(s.files)).concat.apply(d,Yt()(i.files)),!0);case 8:u=e.sent,a.lastLoadedImages[c]={id:s.id,name:s.name,files:u.files,status:u.status,error:u.errors.join(", "),targetPath:s.targetPath,relativePath:s.relativePath,targetChildPath:u.childFolder,size:u.files.map((function(e){return e&&e.size?e.size:0})).reduce((function(e,t){return e+t}),0),uploadProgress:0},t[r]=a.lastLoadedImages[c],n.push(o);case 12:case"end":return e.stop()}}),e)})),o=0;case 8:if(!(o<this.lastLoadedImages.length)){e.next=13;break}return e.delegateYield(i(),"t0",10);case 10:o++,e.next=8;break;case 13:r++,e.next=5;break;case 16:n.forEach((function(e){a.lastLoadedImages[e]=void 0})),this.lastLoadedImages=this.lastLoadedImages.filter((function(e){return void 0!==e}));case 18:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function Pn(){return In.apply(this,arguments)}function In(){return(In=Kt()(en.a.mark((function e(){var t,n,r,i,o,a,s=this;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.lastLoadedImages.length){e.next=2;break}return e.abrupt("return");case 2:t=this.lastLoadedImages.filter((function(e){return e.status===Mn.SlideStatus.Queued&&e.files.length>1})),n=[],r=0;case 5:if(!(r<t.length)){e.next=17;break}i=t[r],o=en.a.mark((function e(){var t,r;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=i.files[a],-1!==(r=s.lastLoadedImages.findIndex((function(e){return e.name===t.name})))&&n.push(r);case 3:case"end":return e.stop()}}),e)})),a=1;case 9:if(!(a<i.files.length)){e.next=14;break}return e.delegateYield(o(),"t0",11);case 11:a++,e.next=9;break;case 14:r++,e.next=5;break;case 17:n.forEach((function(e){s.lastLoadedImages[e]=void 0})),this.lastLoadedImages=this.lastLoadedImages.filter((function(e){return void 0!==e}));case 19:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function Ln(e,t,n){return An.apply(this,arguments)}function An(){return(An=Kt()(en.a.mark((function e(t,n,r){var i,o;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(i=t.name.split(".").pop(),"image/jpeg"!==t.type){e.next=7;break}return e.abrupt("return",{id:an(),name:t.name,files:[t],status:Mn.SlideStatus.Queued,error:"",targetPath:r,relativePath:t.path?rn(on(t.path),"/")+"/":rn(t.webkitRelativePath,"/")+"/",size:t.size,uploadProgress:0});case 7:if(!tn.includes(i)){e.next=11;break}return e.abrupt("return",{id:an(),name:t.name,files:[t],status:Mn.SlideStatus.Queued,error:"",targetPath:r,relativePath:t.path?rn(on(t.path),"/")+"/":rn(t.webkitRelativePath,"/")+"/",size:t.size,uploadProgress:0});case 11:if(!nn.includes(i)){e.next=16;break}return e.next=14,yn(i,t,n);case 14:return o=e.sent,e.abrupt("return",{id:an(),name:t.name,files:o.files,status:o.status,error:o.errors.join(", "),targetPath:r,relativePath:t.path?rn(on(t.path),"/")+"/":rn(t.webkitRelativePath,"/")+"/",targetChildPath:o.childFolder,size:o.files.map((function(e){return e&&e.size?e.size:0})).reduce((function(e,t){return e+t}),0),uploadProgress:0});case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Mn=function(){function e(t,n){if(p()(this,e),Object(g.b)()){if(n.serverUrl||console.error("No server url defined in options"),n.uploadElement)if(n.uploadElement instanceof HTMLElement)this.uploadElement=n.uploadElement;else{if("string"!=typeof n.uploadElement)return void console.error("Invalid upload element");var r=document.querySelector(n.uploadElement);r?this.uploadElement=r:console.error("Invalid selector for upload element")}if(n.statusElement)if(n.statusElement instanceof HTMLElement)this.statusElement=n.statusElement;else{if("string"!=typeof n.statusElement)return void console.error("Invalid status element");var i=document.querySelector(n.statusElement);i?this.statusElement=i:console.error("Invalid selector for status element")}this.listeners={},this.listeners[_.c.OnProgress]=[],this.serverUrl=n.serverUrl,this.notifyOnExit=!!n.notifyOnExit,this.context=t,this.lastLoadedImages=[],this.uploadingStatus=!1,this.uploading=!1,Q()(this.uploadElement).addClass("pma-ui-image-upload"),Q()(this.statusElement).addClass("pma-ui-image-upload-status")}}var t;return m()(e,[{key:"listen",value:function(e,t){Object.prototype.hasOwnProperty.call(this.listeners,e)||console.error(e+" is not a valid event"),this.listeners[e].push(t)}},{key:"fireEvent",value:function(e,t){if(Object.prototype.hasOwnProperty.call(this.listeners,e))for(var n=0,r=this.listeners[e].length;n<r;n++)this.listeners[e][n].call(this,t);else console.error(e+" does not exist")}},{key:"addFiles",value:(t=Kt()(en.a.mark((function e(t,n){var r,i,o,a;return en.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=n&&0!==n.length){e.next=2;break}return e.abrupt("return");case 2:if(0!==(r=Array.from(t)).length){e.next=5;break}return e.abrupt("return");case 5:if(i=Sn(r),o=[],!(this.lastLoadedImages.length>0)){e.next=10;break}return e.next=10,kn.call(this,i,r);case 10:a=0;case 11:if(!(a<r.length)){e.next=20;break}return e.t0=o,e.next=15,Ln.call(this,r[a],r,n);case 15:e.t1=e.sent,e.t0.push.call(e.t0,e.t1);case 17:a++,e.next=11;break;case 20:return this.lastLoadedImages=this.lastLoadedImages.concat(o.filter((function(e){return e}))),e.next=23,On.call(this);case 23:return e.next=25,Pn.call(this);case 25:this.fireEvent(_.c.OnProgress,{type:"uploadAdded",slide:null,slides:this.lastLoadedImages}),Cn.call(this),!0===this.uploadingStatus&&!1===this.uploading&&wn.call(this);case 28:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"getSlides",value:function(){return this.lastLoadedImages}},{key:"removeSlide",value:function(e){if(!(null==e||e<0||e>=this.lastLoadedImages.length)){var t=this.lastLoadedImages[e];this.lastLoadedImages.splice(e,1),this.fireEvent(_.c.OnProgress,{type:"uploadRemoved",slide:t,slides:this.lastLoadedImages}),Cn.call(this)}}},{key:"setUploadingStatus",value:function(e){this.uploadingStatus=e,this.fireEvent(_.c.OnProgress,{type:e?"uploadingEnabled":"uploadingDisabled",slide:null,slides:this.lastLoadedImages}),e&&!1===this.uploading&&wn.call(this)}},{key:"getUploadingStatus",value:function(){return this.uploadingStatus}}]),e}();function jn(e){var t=String.fromCharCode("2".charCodeAt(0)+128);return e>=1e5?Math.round(10*e/1e6)/10+" mm"+t:Math.round(10*e)/10+" μm"+t}Mn.SlideStatus={MissingFiles:0,Queued:1,Uploading:2,Error:3,Done:4,NotSupported:5},n(227);var Rn=function(){function e(t){if(p()(this,e),t.annotationManager)if(this.annotationManager=t.annotationManager,t.element){if(t.statusElement instanceof HTMLElement)this.element=t.element;else{if("string"!=typeof t.element)return void console.error("Invalid element");var n=document.querySelector(t.element);if(!n)return void console.error("Invalid selector for element");this.element=n}this.zoomOnNavigation=!0===t.zoomOnNavigation,this.focusOnSelection=!0===t.focusOnSelection,this.id=Array.from(Array(20),(function(){return Math.floor(36*Math.random()).toString(36)})).join(""),this.navigationCurrentAnnotation=null,this.navigationAnnotations=[],this.buttonClass=t.buttonClass?t.buttonClass:"",Q()(this.element).append('<div class="pma-ui-ai-image-analysis image-analysis-'.concat(this.id,'">\n <h4 style="width: 100%; text-align: center;">AI Image Analysis Results</h4>\n <hr style="width: 80%;margin: 0 auto; margin-bottom: 8px;">\n <div class="ai-analysis-tree" style="flex: 1; overflow: auto;"></div>\n <div class="ai-analysis-navigation" style="display: flex; padding: 8px; border-top: 1px solid #0001; margin-top: 8px; align-items: center;">\n <button class="navigation-btn navigate-previous-btn ').concat(this.buttonClass,'" style="width: 25%; margin: 0 8px;">Previous</button>\n <div class="navigate-info" style="width: 50%; display: flex; justify-content: center; align-items: center; margin: 0 8px; text-align: center;">No annotation is currently focused</div>\n <button class="navigation-btn navigate-next-btn ').concat(this.buttonClass,'" style="width: 25%; margin: 0 8px;">Next</button></div>\n </div>'));var r=this,o=this.annotationManager.viewport.getAnnotations().filter((function(e){return e.metaData.Context})).map((function(e){return{id:e.metaData.AnnotationID,color:e.metaData.Color,area:e.metaData.Area,points:"MultiPoint"===e.getGeometry().getType()?e.getGeometry().getPoints().length:0,data:JSON.parse(e.metaData.Context)}})),a=function(e){return function(t){return t.reduce((function(t,n){var r=e.map((function(e){return n.data[e]})).join("_");return t[r]=(t[r]||[]).concat(n),t}),{})}}
876,s=a(["AIService","AIAnalysisOn"])(o),l=Object.entries(s).map((function(e){var t=a(["AIClassification"])(e[1]),n=e[1][0];return{title:"<strong>".concat(n.data.AIVendor," on ").concat(new Date(n.data.AIAnalysisOn).toLocaleString("en-GB",{year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),'</strong>\n <div class="pma-ui-ai-analysis-info">\n ').concat(n.data.AIService?"Analysis type: <i>"+n.data.AIAnalysisType+"</i><br />":"","\n ").concat(n.data.AIService?"AI service: <i>"+n.data.AIService+"</i><br />":"","\n ").concat(n.data.AIScenarioType?"AI scenario: <i>"+n.data.AIScenarioType+(n.data.AIScenarioVersion?" (v.".concat(n.data.AIScenarioVersion,")"):"")+"</i>":"","\n </div>"),key:n.data.AIModel+"_"+n.data.AIAnalysisOn,id:Object.entries(t).flatMap((function(e){return e[1].map((function(e){return e.id}))})),type:"analysis",selected:!0,children:Object.entries(t).map((function(e){var t=e[1].map((function(e){return e.area})).reduce((function(e,t){return e+t}),0);return{title:'<strong style="text-transform: capitalize;">'.concat(e[0],"</strong> (").concat(e[1].length,') <span class="color-switcher-wrapper"><button class="color-switcher" data-value="').concat(e[1][0].color,'" style="height: 19px; padding: 0; margin: 0; border: none; border-radius: 25%; margin-left: 4px;"></button></span>\n ').concat(t&&t>0?"<div>Area: <i>"+jn(t)+"</i></div>":""),key:n.data.AIModel+"_"+n.data.AIAnalysisOn+"_"+e[0],id:e[1].map((function(e){return e.id})),type:"classification",selected:!0,children:e[1].map((function(n,r){return{title:'<strong style="text-transform: capitalize;">'.concat(e[0]," ").concat(r+1,"</strong>\n ").concat(n.points>1?"<div>No of points: <i>"+n.points+"</i></div>":"","\n ").concat(n.data.AIIntensity?"<div>Intensity: <i>"+n.data.AIIntensity+"</i></div>":"","\n ").concat(t&&t>0?"<div>Area: <i>"+jn(n.area)+"</i></div>":""),key:n.id,id:[n.id],type:"annotation",selected:!0}}))}}))}}));this.fancytree=Object(Ae.createTree)(".image-analysis-".concat(this.id," .ai-analysis-tree"),{checkbox:!0,selectMode:3,toggleEffect:!1,source:l,select:function(e,t){t.node.data.id.forEach((function(e){r.annotationManager.viewport.showAnnotation(e,t.node.isSelected())}))},icon:function(e,t){return"analysis"===t.node.type||"classification"===t.node.type||"annotation"===t.node.type?"fa fa-lg fa-crosshairs highlighter":""},createNode:function(e,t){var n=Q()(t.node.li).find(".highlighter");n&&(n.off("mouseenter"),n.off("mouseleave"),n.on("mouseenter",(function(e){t.node.data.id.forEach((function(e){var t=r.annotationManager.viewport.annotationsLayer.getSource().getFeatureById(e);t&&r.annotationManager.hoverInteraction.getFeatures().push(t)}))})),n.on("mouseleave",(function(e){r.annotationManager.hoverInteraction.getFeatures().clear()})),"annotation"===t.node.type&&1===t.node.data.id.length&&(n.prop("title","Click to focus"),n.off("click"),n.on("click",(function(e){r.fancytree.findAll((function(e){return"current-node"===e.extraClasses})).forEach((function(e){e.extraClasses="",e.render()})),t.node.extraClasses="current-node",r.navigationCurrentAnnotation=r.annotationManager.viewport.getAnnotations().find((function(e){return e.getId()===t.node.data.id[0]})),r.navigationAnnotations=t.node.parent.data.id;var n=t.node.parent.data.id.findIndex((function(e){return r.navigationCurrentAnnotation.getId()===e}));Q()(".image-analysis-".concat(r.id," .navigate-info")).text(r.navigationCurrentAnnotation.metaData.Classification+" "+(n+1)),r.annotationManager.viewport.focusToAnnotation(t.node.data.id[0],r.zoomOnNavigation,[50,50,50,50])}))));var o=Q()(t.node.li).find(".color-switcher");o&&o.length>0&&new JSColor(o[0],{format:"hexa",value:Q()(o).data("value"),closable:!0,previewSize:19,closeText:i.a.translate("Close"),onChange:function(){r.annotationManager.viewport.getAnnotations().filter((function(e){return t.node.data.id.toString().includes(e.getId().toString())}
876)).forEach((function(e){var t=e.metaData;t.Color=o[0].jscolor.targetElement.dataset.currentColor,r.annotationManager.setMetadata(e,t)})),r.annotationManager.fireEvent(_.c.AnnotationModified,null)}})}}),Q()(".image-analysis-".concat(this.id," .navigate-previous-btn")).on("click",(function(){if(r.navigationCurrentAnnotation&&r.navigationCurrentAnnotation){var e=r.navigationAnnotations.findIndex((function(e){return e===r.navigationCurrentAnnotation.getId()})),t=e-1;for(0===e&&(t=r.navigationAnnotations.length-1),r.navigationCurrentAnnotation=r.annotationManager.viewport.getAnnotations().find((function(e){return e.getId()===r.navigationAnnotations[t]}));r.annotationManager.viewport.hiddenAnnotations&&-1!==r.annotationManager.viewport.hiddenAnnotations.findIndex((function(e){return e.getId()===r.navigationCurrentAnnotation.getId()}));){if(e===t)return void Q()(".image-analysis-".concat(r.id," .navigate-info")).text("No annotation is currently focused");-1==--t&&(t=r.navigationAnnotations.length-1),r.navigationCurrentAnnotation=r.annotationManager.viewport.getAnnotations().find((function(e){return e.getId()===r.navigationAnnotations[t]}))}r.fancytree.findAll((function(e){return"current-node"===e.extraClasses})).forEach((function(e){e.extraClasses="",e.render()}));var n=r.fancytree.findFirst((function(e){return e.key.toString()===r.navigationCurrentAnnotation.getId().toString()}));n&&(n.extraClasses="current-node",n.render(),n.li.scrollIntoView({block:"center",inline:"nearest"}),Q()(".image-analysis-".concat(r.id," .navigate-info")).text(r.navigationCurrentAnnotation.metaData.Classification+" "+(t+1)),r.annotationManager.viewport.focusToAnnotation(r.navigationCurrentAnnotation.getId(),r.zoomOnNavigation,[50,50,50,50]),r.annotationManager.highlightAnnotation(r.navigationCurrentAnnotation.getId()))}})),Q()(".image-analysis-".concat(this.id," .navigate-next-btn")).on("click",(function(){if(r.navigationCurrentAnnotation&&r.navigationCurrentAnnotation){var e=r.navigationAnnotations.findIndex((function(e){return e===r.navigationCurrentAnnotation.getId()})),t=e+1;for(e===r.navigationAnnotations.length-1&&(t=0),r.navigationCurrentAnnotation=r.annotationManager.viewport.getAnnotations().find((function(e){return e.getId()===r.navigationAnnotations[t]}));r.annotationManager.viewport.hiddenAnnotations&&-1!==r.annotationManager.viewport.hiddenAnnotations.findIndex((function(e){return e.getId()===r.navigationCurrentAnnotation.getId()}));){if(e===t)return void Q()(".image-analysis-".concat(r.id," .navigate-info")).text("No annotation is currently focused");++t===r.navigationAnnotations.length&&(t=0),r.navigationCurrentAnnotation=r.annotationManager.viewport.getAnnotations().find((function(e){return e.getId()===r.navigationAnnotations[t]}))}r.fancytree.findAll((function(e){return"current-node"===e.extraClasses})).forEach((function(e){e.extraClasses="",e.render()}));var n=r.fancytree.findFirst((function(e){return e.key.toString()===r.navigationCurrentAnnotation.getId().toString()}));n&&(n.extraClasses="current-node",n.render(),n.li.scrollIntoView({block:"center",inline:"nearest"}),Q()(".image-analysis-".concat(r.id," .navigate-info")).text(r.navigationCurrentAnnotation.metaData.Classification+" "+(t+1)),r.annotationManager.viewport.focusToAnnotation(r.navigationCurrentAnnotation.getId(),r.zoomOnNavigation,[50,50,50,50]),r.annotationManager.highlightAnnotation(r.navigationCurrentAnnotation.getId()))}})),this.annotationManager.listen("annotationsSelectionChanged",(function(){var e=r.annotationManager.getSelection();if(e&&0!==e.length){r.fancytree.findAll((function(e){return"current-node"===e.extraClasses})).forEach((function(e){e.extraClasses="",e.render()}));var t=r.fancytree.findFirst((function(t){return t.key.toString()===e[0].getId().toString()}));if(t){t.extraClasses="current-node",t.render(),t.makeVisible({scrollIntoView:!0}).then((function(){t.li.scrollIntoView({block:"center",inline:"nearest"})})),r.navigationCurrentAnnotation=e[0],r.navigationAnnotations=t.parent.data.id;var n=t.parent.data.id.findIndex((function(e){return r.navigationCurrentAnnotation.getId()===e}));Q()(".image-analysis-".concat(r.id," .navigate-info")).text(r.navigationCurrentAnnotation.metaData.Classification+" "+(n+1)),r.focusOnSelection&&(r.annotationManager.viewport.focusToAnnotation(r.navigationCurrentAnnotation.getId(),r.zoomOnNavigation,[50,50,50,50]),r.annotationManager.highlightAnnotation(r.navigationCurrentAnnotation.getId()))}
876else Q()(".image-analysis-".concat(r.id," .navigate-info")).text("No annotation is currently focused")}}))}else console.error("No element provided!");else console.error("No annotation manager provided!")}return m()(e,[{key:"getZoomOnNavigation",value:function(){return this.zoomOnNavigation}},{key:"setZoomOnNavigation",value:function(e){this.zoomOnNavigation=!0===e}},{key:"getFocusOnSelection",value:function(){return this.focusOnSelection}},{key:"setFocusOnSelection",value:function(e){this.focusOnSelection=!0===e}}]),e}(),Dn={getVersion:r.a,Resources:i.a,View:{Viewport:o.a,Themes:a.j,ButtonLocations:a.d,Events:a.g,ObjectiveResolutions:a.i,getThumbnailUrl:_.l,getBarcodeUrl:_.j,Controls:{RotationControl:Et.a,Overview:kt.a,Filename:Tt.a,PrevZoom:Ot.a,DimensionSelector:$t.a,AssociatedImage:It.a,Snapshot:Pt.a,PathomationAttribution:Lt.a,ColorAdjustment:At.a,LayerSwitch:Mt.a,Magnifier:jt.a}},Types:{Controls:a.e,Annotation:a.a,AnnotationState:a.b,MouseWheelZoomMode:a.h,AnnotationTools:a.c},Components:{Tree:s.a,Context:l.a,Events:_.c,Annotations:fe.a,AnnotationState:a.b,GalleryRenderOptions:_.d,GetSlidesScope:_.e,Gallery:pe,ImageUpload:Mn,AIImageAnalysisResults:Rn,SlideLoader:me.a,Forms:ve,MetadataTree:ze,MetadataSearch:Ge,SyncView:xt,ApiMethods:_.a,getThumbnailUrl:_.l,login:_.m,getBarcodeUrl:_.j,getSnapshotUrl:_.k,parseDragData:_.n,formify:_.i,ajax:_.g,callApiMethod:_.h,DragDropMimeType:_.b},Authentication:{AutoLogin:c.a,PromptLogin:d.a,SessionLogin:u.a,CustomLogin:v},OpenLayers:{Observable:{unByKey:Rt.b},Feature:Dt.a,Geom:{Point:Ft.a,Polygon:Nt.a},Style:{Style:Bt.c,Icon:Ut.a,Text:zt.a,Fill:Gt.a,Stroke:Vt.a},Source:{Vector:qt.a},Layer:{Vector:Ht.a}}}}]);function We(e){return function(e){if(Array.isArray(e))return Ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ye(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Xe=function(t){var n="https://astellas.pathomation.com/core/",r=void 0!==o()("body").attr("data-cmp-data-layer-enabled");o()(".cmp-viewer-container").wrap("<div class='cmp-viewer-container-parent'></div>");var i=new Set,a=function(){o()(".cmp-loading-gif, .cmp-tab1, .cmp-tab2").css("display","none"),void 0!==o()(".cmp-stain-details-error")[0]&&o()(".cmp-stains-container").append(o()(".cmp-stain-details-error")[0].outerHTML),o()(".cmp-stains-container").find(".cmp-stain-details-error").css("display","flex")},s=function(e,r,s,l){return!!s&&(!i.has(s)&&(i.add(s),console.warn("[StainCases] SlideInfoError â attempting session refresh + retry for:",s),o.a.ajax({url:"/bin/globalstainlist/sessionid",type:"GET",cache:!1,success:function(i){i&&i!==t?(console.info("[StainCases] Fresh session obtained, retrying slide load"),t=i,new He.UI.Authentication.SessionLogin(e,[{serverUrl:n,sessionId:t}]),r.load(n,s,(function(){console.info("[StainCases] Retry successful for:",s),"function"==typeof l&&l()}))):(console.warn("[StainCases] Fresh session identical to old â showing error"),a())},error:function(){console.error("[StainCases] Failed to fetch fresh session"),a()}}),!0))},l=function(i){var a=!0,l="cases"===i?".cmp-stains-cases-viewer":".cmp-stains-quiz-viewer";if(o()(".cmp-stains-".concat(i,"-thumbnails"))[0]){var c=o()(".cmp-stains-".concat(i,"-thumbnails"))[0]?o()(".cmp-stains-".concat(i,"-thumbnails")).attr("data-stains-list"):"[]",d=c?JSON.parse(c):[],u=[],h="",p=0,f="",m=[],g=0,v=0,y="",b={stainSlideTitle:"",caseText:"",stainSlideId:""};d.map((function(e){return void 0===e.stainProperties[0]?e.stainProperties.splice(0,0,b):(e.stainProperties[0].stainFileName=e.stainFile.replaceAll("/CLDN/","/HE/").replaceAll("_CLDN","_HE"),e.stainProperties[0].stainFileIndex=0),void 0===e.stainProperties[1]?e.stainProperties.splice(1,0,b):(e.stainProperties[1].stainFileName=e.stainFile.replaceAll("/CLDN/","/NCR/").replaceAll("_CLDN","_NCR"),e.stainProperties[1].stainFileIndex=1),void 0===e.stainProperties[2]?e.stainProperties.splice(2,0,b):(e.stainProperties[2].stainFileName=e.stainFile.replaceAll("CLDN","CLDN"),e.stainProperties[2].stainFileIndex=2),e})),u=d;var _=o()(".cmp-tab1 .cmp-load-more-stains")[0]?Number(o()(".cmp-load-more-stains").attr("data-loadmore")):4;"cases"===i&&(o()(".cmp-tab1 .cmp-load-more-stains").addClass("cmp-load-more-stains-gallery"),g=u.length>=_?_:u.length);var w=o()(".cmp-tab2 .cmp-load-more-stains")[0]?Number(o()(".cmp-load-more-stains").attr("data-loadmore")):4;"quiz"===i&&(o()(".cmp-tab2 .cmp-load-more-stains").addClass("cmp-load-more-stains-quiz"),v=u.length>=w?w:u.length);var x=o()(".cmp-stains-container .filter input");x.each((function(e,t){t.checked=!0})),o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".cmp-stains-container").find(".cmp-loading-gif").css("display","flex");var C=new He.UI.Components.Context({caller:"AstellasWebsite"});new He.UI.Authentication.SessionLogin(C,[{serverUrl:n,sessionId:t}]);var S=function(e,t){o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".staingallerytraining").find(".cmp-stains-case-details").empty();var n,a,s=u[h],l=o()('<div class="cmp-stains-he-slide cmp-stain-slide-button-'.concat(i," ").concat(0===e?"active":""," ").concat(s.stainProperties[0].stainSlideId?"":"disabled",'"\n tabindex="0"\n aria-label="H&E Slide"\n data-stain-prop-index="0"\n data-stain-uid = ').concat(s.stainFile.replaceAll("/CLDN/","/HE/").replaceAll("_CLDN","_HE"),'>
876\n <span></span>\n <span></span>\n <span class="staindetailtitle">').concat(s.stainProperties[0].stainSlideTitle,'</span>\n </div>\n <div class="cmp-stains-ncl-slide cmp-stain-slide-button-').concat(i," ").concat(1===e?"active":""," ").concat(s.stainProperties[1].stainSlideId?"":"disabled",'"\n tabindex="0"\n aria-label="Negative Control"\n data-stain-prop-index="1"\n data-stain-uid = ').concat(s.stainFile.replaceAll("/CLDN/","/NCR/").replaceAll("_CLDN","_NCR"),'>\n <span></span>\n <span></span>\n <span class="staindetailtitle">').concat(s.stainProperties[1].stainSlideTitle,'<span>\n </div>\n <div class="cmp-stains-cldn-slide cmp-stain-slide-button-').concat(i," ").concat(2===e?"active":""," ").concat(s.stainProperties[2].stainSlideId?"":"disabled",'"\n tabindex="0"\n aria-label="CLDN18 Stain"\n data-stain-prop-index="2"\n data-stain-uid = ').concat(s.stainFile.replaceAll("CLDN","CLDN"),'>\n <span></span>\n <span></span>\n <span class="staindetailtitle">').concat(s.stainProperties[2].stainSlideTitle,"</span>\n </div>\n ").concat("cases"===i?'\n <div class="cmp-stains-case-notes cmp-case-notes">\n '.concat(s.stainProperties[e].caseText,"\n </div>\n "):"","\n ").concat("quiz"===i?'<div class="cmp-stains-quiz-notes cmp-case-notes"></div>':"","\n "));if(o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".staingallerytraining").find(".cmp-stains-case-details").append(l),"quiz"===i&&(n=o()("#question-".concat(h)).html(),a=!0,o()(".cmp-stains-quiz-notes").append(n),o()(".cmp-stains-quiz-notes").find(".cmp-quiz-results-container").remove(),o()(".answer-radio-options").each((function(){o()(void 0),o()(document).on("click","",o()(void 0).find("label"),(function(e){var t=o()(e.target);if(t.siblings().removeClass("labelselected"),t.siblings().find("input").removeClass("selected"),t.find("input").addClass("selected"),t.addClass("labelselected"),"INPUT"!==e.target.tagName&&"LABEL"===e.target.tagName)return y="true"===t.find("input").attr("data-correct"),o()(".select-answer-option").css("display","none"),o()(e.target).find("input").trigger("click"),!1})),o()(document).on("keyup","",o()(void 0).find("label"),(function(e){if("INPUT"!==e.target.tagName&&"LABEL"===e.target.tagName&&("Enter"===e.key||" "===e.key))return y="true"===o()(e.target).find("input").attr("data-correct"),o()(".select-answer-option").css("display","none"),o()(e.target).find("input").trigger("click"),!1})),o()(document).on("click",o()(void 0).find("input"),(function(e){(o()(e.target).hasClass("quiz_hoverChecked")||"INPUT"===e.target.tagName)&&(y="true"===o()(e.target).closest("label").find("input").attr("data-correct"),o()(e.target).closest("label").siblings().removeClass("labelselected"),o()(e.target).closest("label").addClass("labelselected"),o()(".select-answer-option").css("display","none"),r&&a&&window.adobeDataLayer.push({event:"quizStart",attributes:{quizName:o()(".cmp-tab2 .cmp-case-name").text()}}),a=!1)}))}))),r){var c=o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".staingallerytraining"),d=c.find(".cmp-case-name").text(),p=c.find(".cmp-stain-slide-button-quiz.active, .cmp-stain-slide-button-cases.active"),f="".concat(d," ").concat(p.attr("aria-label"));setTimeout((function(){window.adobeDataLayer.push({event:"cmp:show",eventInfo:{path:"component.viewer-quiz","dc:title":f,"@type":"global/components/globalcomponents/staingallery",stainQuizImage:t}}),c.find(".cmp-stains-cases-viewer, .cmp-stains-quiz-viewer").on("click",(function(e){e.stopPropagation(),e.preventDefault(),window.adobeDataLayer.push({event:"cmp:click",eventInfo:{path:"component.viewer-quiz","dc:title":f,"@type":"global/components/globalcomponents/staingallery",stainQuizImage:t}})}))}),300)}o()("#stain_quiz_footer_text")&&0===o()(".cmp-viewer-container-parent #stain_quiz_footer_text").length&&o()(".cmp-viewer-container-parent").append(o()("#stain_quiz_footer_text").closest(".text")),o()(".cmp-viewer-container-parent #stain_quiz_footer_text").addClass("show")},E=function(){o()(".cmp-stains-".concat(i,"-thumbnails")).empty();var e=document.createElement("ul");
876u.slice(0,"cases"===i?g:v).forEach((function(n,r){var i=document.createElement("li");i.setAttribute("draggable","true"),i.setAttribute("data-path",n.stainFile),i.setAttribute("tabindex","0"),i.setAttribute("aria-label","CASE ".concat(r+1)),i.setAttribute("style","width: auto;height: 260px;");var o="https://astellas.pathomation.com/core/thumbnail?sessionID=".concat(t,"&pathOrUid=").concat(n.stainFile,"&orientation=0&w=0&h=260"),a=document.createElement("div");a.setAttribute("style","position: relative;\n margin: 0px auto;\n width: 260px;\n height: 260px;\n border-radius: 130px;\n background-color: #f3f3f3;\n background-image: url(".concat(o,")")),a.setAttribute("class","cmp-stains-bg");var s=document.createElement("div");s.setAttribute("class","cmp-stains-overlay-content"),s.innerHTML=n.stainTitle,i.append(a),i.append(s),e.append(i)})),o()(".cmp-stains-".concat(i,"-thumbnails")).append(e),o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".cmp-stains-container").find(".cmp-loading-gif").css("display","none"),a&&o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".staingallerytraining").find(".cmp-load-more-stains").css("display","flex"),0==o()(".cmp-stains-cases-thumbnails").find("ul li").length&&o()(".cmp-stains-cases-thumbnails").addClass("remove-height")};E();var k=new He.UI.Components.SlideLoader(C,{element:l,barcode:!1,filename:!1,digitalZoomLevels:2,loadingBar:!0,highQuality:!0}),T=function(){0===h&&h===u.length-1||o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".staingallerytraining").find(".cmp-stains-prev-btn, .cmp-stains-nxt-btn-quiz").css("display","block"),0===h&&o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".staingallerytraining").find(".cmp-stains-prev-btn").css("display","none"),h===u.length-1&&o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".staingallerytraining").find(".cmp-stains-nxt-btn-quiz").css("display","none")},O=function(){"cases"===i&&(g>=u.length?o()(".cmp-stains-cases-thumbnails").parent().find(".cmp-load-more-stains").css("display","none"):o()(".cmp-stains-cases-thumbnails").parent().find(".cmp-load-more-stains").css("display","flex")),"quiz"===i&&(v>=u.length?o()(".cmp-stains-quiz-thumbnails").parent().find(".cmp-load-more-stains").css("display","none"):o()(".cmp-stains-quiz-thumbnails").parent().find(".cmp-load-more-stains").css("display","flex"))},$=function(){y="",o()(".select-answer-option").css("display","none")};o()(document).on("click",".cmp-stains-".concat(i,"-thumbnails ul li"),(function(e){e.preventDefault(),o()(".cmp-stains-".concat(i,"-thumbnails ul li")).each((function(e,t){t.classList.remove("active-stain")}));var t=e.currentTarget.getAttribute("data-path");e.currentTarget.classList.add("active-stain"),f=t,h=u.findIndex((function(e){return e.stainFile===t}));var r=u.find((function(e){return e.stainFile===t})).stainProperties.find((function(e){return e.stainFileName})),a=r.stainFileName;p=r.stainFileIndex,o()(e.currentTarget).closest(".cmp-stains-container").find(".cmp-stains-back-to-gallery, .cmp-loading-gif , .cmp-stains-nxt-btn-quiz").css("display","block"),o()(e.currentTarget).closest(".cmp-stains-container").find(".staingallerytraining").show(),u.length-1===h?o()(e.currentTarget).closest(".staingallerytraining").find(".cmp-stains-nxt-btn-quiz").hide():o()(e.currentTarget).closest(".staingallerytraining").find(".cmp-stains-nxt-btn-quiz").show(),o()(e.currentTarget).closest(".staingallerytraining").find(".cmp-stains-buttons-container, .cmp-quiz-buttons-container,.explore-title,.cmp-case-name").css("display","block"),o()(".cmp-stains-".concat(i,"-viewer")).css("opacity","0"),k.load(n,a,(function(){o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".cmp-stains-container").find(".cmp-loading-gif").css("display","none"),o()(".cmp-stains-".concat(i,"-viewer")).css("opacity","1"),o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".staingallerytraining").find(".cmp-viewer-container-parent").css({paddingBottom:"0px",opacity:"1",margin:"0 auto"}),o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".cmp-stains-container").find(".cmp-stains-case-details").css("display","unset"),S(p,a)})),k.listen(He.UI.Components.Events.SlideInfoError,(function(e){s(C,k,a,(function(){o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".cmp-stains-container").find(".cmp-loading-gif").css("display","none"),o()(".cmp-stains-".concat(i,"-viewer")).css("opacity","1"),o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".staingallerytraining").find(".cmp-viewer-container-parent").css({paddingBottom:"0px",opacity:"1",margin:"0 auto"}),o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".cmp-stains-container").find(".cmp-stains-case-details").css("display","unset"),S(p,a)}))||(o()(".cmp-loading-gif,.cmp-tab1,.cmp-tab2").css("display","none"),void 0!==o()(".cmp-stain-detail
876s-error")[0]&&o()(".cmp-stains-container").append(o()(".cmp-stain-details-error")[0].outerHTML),o()(".cmp-stains-container").find(".cmp-stain-details-error").css("display","flex"))})),o()(e.currentTarget).closest(".cmp-stains-container").find(".cmp-case-name").removeClass("result-casetext"),k.listen(He.UI.Components.Events.SlideLoaded,(function(e){k.mainViewport.focusToTissueRegion()})),o()(".cmp-stains-".concat(i,"-viewer")).css({display:"flex"}),o()(e.currentTarget).closest(".staingallerytraining").find(".cmp-stains-cases-thumbnails").length>0?(o()(" .filter,\n .cmp-description-1,\n .cmp-description-2 ").css("display","none"),o()(".explore-title").show()):o()(".cmp-tab2-title,\n .cmp-tab2-description").css("display","none"),o()(e.currentTarget).closest(".staingallerytraining").find("[data-stains-list]").css("display","none"),o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".staingallerytraining").find(".cmp-load-more-stains").css("display","none");var l=o()(e.currentTarget).find(".cmp-stains-overlay-content").text();o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".staingallerytraining").find(".cmp-case-name").text(l),o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".staingallerytraining").find(".cmp-stains-container").css("width","1160"),o()("html, body").stop().animate({scrollTop:o()(e.currentTarget).closest(".staingallerytraining").offset().top-(150+o()("header").height())},1e3)})),o()(document).on("click",".cmp-stains-container.cmp-tab2 .cmp-stains-back-to-gallery:visible",(function(e){o()(".cmp-stains-container.cmp-tab2").find("\n .cmp-stains-back-to-gallery,\n\n .cmp-stains-quiz-viewer,\n\n .cmp-stains-nxt-btn-quiz,\n .cmp-stains-buttons-container,\n .cmp-stain-details-error,\n .cmp-quiz-buttons-container,\n .cmp-quiz-results,\n .explore-title,.cmp-case-name\n ").css("display","none"),o()(".cmp-stains-container.cmp-tab2").find(".cmp-stains-buttons-container,.cmp-viewer-container-parent").show(),o()(e.currentTarget).closest(".staingallery").find(".cmp-stains-quiz-thumbnails").length>0&&(o()(".cmp-stains-container.cmp-tab2").find(".cmp-quiz-questioner-container").removeClass("quiz-ans-section"),o()(".cmp-stains-container.cmp-tab2").find(".cmp-quiz-questioner-container .cmp-quiz-results-container [data-stain-id]").removeClass("hide-section"),o()(".cmp-stains-container.cmp-tab2").find(".cmp-quiz-questioner-container .cmp-quiz-results-container").removeClass("hide-section"),o()(".cmp-stains-container.cmp-tab2").find(".cmp-quiz-questioner-container .question,.radio.answer-radio-options,.submit-answer,.select-answer-option ").removeClass("hide-section")),o()(".cmp-stains-container.cmp-tab2").find(".cmp-stains-quiz-thumbnails").css("display","table"),o()(".cmp-stains-quiz-thumbnails").closest(".staingallerytraining").find(".cmp-viewer-container-parent").css({paddingTop:"0",paddingBottom:"0",opacity:"0"}),o()(".cmp-stains-container.cmp-tab2").find("\n .cmp-tab2-title,\n .cmp-tab2-description\n ").css("display","block"),o()(e.currentTarget).closest(".staingallery").find(".cmp-stains-quiz-thumbnails").length>0&&(o()(".cmp-stains-container.cmp-tab2").find(".cmp-case-name").removeClass("result-casetext"),o()(".cmp-stains-quiz-thumbnails").closest(".staingallerytraining").find(".cmp-stains-overlay-content").removeClass("cmp-stains-overlay-content-hover")),o()(".cmp-stains-container.cmp-tab2").find(".cmp-stains-case-details").empty(),o()(".cmp-stains-container.cmp-tab2").find(".cmp-stains-quiz-details").empty(),o()(".cmp-quiz-results").empty(),O(),$(),o()("html, body").stop().animate({scrollTop:o()(e.currentTarget).closest(".cmp-stains-container").offset().top-100},1e3)})),o()(document).on("click",".cmp-stains-container.cmp-tab1 .cmp-stains-back-to-gallery:visible",(function(e){o()(".cmp-stains-container.cmp-tab1").find("\n .cmp-stains-back-to-gallery,\n .cmp-stains-cases-viewer,\n\n\n .cmp-stains-nxt-btn-quiz,\n\n .explore-title,.cmp-case-name,.cmp-load-more-stains-quiz\n ").css("display","none"),o()(e.currentTarget).closest(".staingallery").find(".cmp-stains-buttons-container,.cmp-viewer-container-parent").show(),o()(e.currentTarget).closest(".staingallery").find(".cmp-stains-cases-thumbn
876ails").css("display","table"),o()(e.currentTarget).closest(".staingallery").find(".filter").css("display","flex"),o()(".cmp-stains-container.cmp-tab1").find(".cmp-viewer-container-parent").css({paddingTop:"0",paddingBottom:"0",opacity:"0"}),o()(e.currentTarget).closest(".staingallery").find(".cmp-stains-cases-thumbnails").length>0?o()(".cmp-stains-container.cmp-tab1").find(" .filter,\n .cmp-description-1,\n .cmp-description-2\n\n ").css("display","block"):o()("\n\n .cmp-tab2-title,\n .cmp-tab2-description\n ").css("display","block"),o()(".cmp-stains-container.cmp-tab1").find(".cmp-stains-case-details").empty(),O(),o()(".cmp-load-more-stains.cmp-load-more-stains-quiz").css("display","none"),$(),o()("html, body").stop().animate({scrollTop:o()(e.currentTarget).closest(".cmp-stains-container").offset().top-100},1e3)})),o()(document).on("click",".cmp-stains-prev-btn",(function(){h>0&&(o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".cmp-stains-container").find(".cmp-loading-gif").css("display","block"),o()(".cmp-stains-".concat(i,"-viewer")).css("opacity","0"),o()(e.currentTarget).closest(".staingallery").find(".cmp-stains-buttons-container,.cmp-viewer-container-parent").show(),h-=1,o()(e.currentTarget).closest(".cmp-stains-container").find(".cmp-case-name").removeClass("result-casetext"),f=u[h].stainFile,k.load(n,f,(function(){o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".cmp-stains-container").find(".cmp-loading-gif").css("display","none"),o()(".cmp-stains-".concat(i,"-viewer")).css("opacity","1")})),T())})),o()(document).on("click",".cmp-stains-buttons-container:visible .cmp-stains-nxt-btn-quiz:visible",(function(e){if("cases"==i){if(""!==h&&h<u.length-1){if(o()(".cmp-stains-container.cmp-tab1").find(".cmp-loading-gif, .cmp-stains-back-to-gallery").css("display","block"),o()(".cmp-stains-container.cmp-tab1").find(".cmp-stains-buttons-container,.cmp-viewer-container-parent").show(),o()(".cmp-stains-container.cmp-tab1").find(".cmp-quiz-buttons-container,.explore-title,.cmp-case-name").css("display","block"),o()(".cmp-stains-cases-viewer").css({display:"flex"}),o()(".cmp-stains-container.cmp-tab1").find(".staingallerytraining").show(),o()(".cmp-stains-cases-viewer").css("opacity","0"),o()(e.currentTarget).closest(".cmp-stains-container.cmp-tab1").length>0){h+=1,o()(".cmp-stains-container.cmp-tab1").find(".cmp-case-name").removeClass("result-casetext"),u.length-1===h&&o()(".cmp-stains-container.cmp-tab1").find(".cmp-stains-nxt-btn-quiz").css("display","none"),f=(f=u[h].stainProperties.find((function(e){return e.stainFileName}))).stainFileName;var t=u[h].stainTitle;o()(".cmp-stains-container.cmp-tab1").find(".cmp-case-name").text(t),k.load(n,f,(function(){o()(".cmp-stains-cases-thumbnails").closest(".cmp-stains-container").find(".cmp-loading-gif").css("display","none"),o()(".cmp-stains-cases-viewer").css("opacity","1"),S(0,f)}))}u.length-1===h&&o()(".cmp-stains-cases-thumbnails").closest(".staingallerytraining").find(".cmp-stains-nxt-btn-quiz").css("display","none")}else u.length-1===h&&o()(".cmp-stains-cases-thumbnails").closest(".staingallerytraining").find(".cmp-stains-nxt-btn-quiz").css("display","none");o()("html, body").stop().animate({scrollTop:o()(".cmp-stains-cases-thumbnails").parent().offset().top-100},1e3)}})),o()(document).on("click",".cmp-stains-container.cmp-tab2 .cmp-stains-nxt-btn-quiz:visible",(function(e){if("quiz"==i){if(""!==h&&h<u.length-1){if(o()(".cmp-stains-container.cmp-tab2").find(".cmp-stains-back-to-gallery").css("display","block"),o()(".cmp-stains-container.cmp-tab2").find(".cmp-stains-buttons-container,.cmp-viewer-container-parent").show(),o()(".cmp-stains-container.cmp-tab2").find(".cmp-quiz-buttons-container,.explore-title,.cmp-case-name").css("display","block"),o()(".cmp-stains-quiz-viewer").css({display:"flex"}),o()(".cmp-stains-container.cmp-tab2").find(".staingallerytraining").show(),o()(e.currentTarget).closest(".cmp-stains-container").find(".cmp-stains-quiz-thumbnails").length>0&&(o()(".cmp-stains-container.cmp-tab2").find(".cmp-quiz-questioner-container").removeClass("quiz-ans-section"),o()(".cmp-stains-quiz-notes").find("input[type=radio]").prop("checked",!1),o()(".cmp-stains-quiz-notes").find("input[type=radio]").removeClass("selected"),o()(".cmp-stains-quiz-notes").find("label").removeClass("labelselected"),o()(".cmp-stains-container.cmp-tab2").find(".cmp-quiz-questioner-container .cmp-quiz-results-container [data-stain-id]").removeClass("hide-section"),o()(".cmp-stains-container.cmp-tab2").find(".cmp-quiz-questioner-container .cmp-quiz-results-container").removeClass("hide-section"),o()(".cmp-stains-container.cmp-tab2").find(".cmp-quiz-questioner-container .question,.radio.answer-radio-options,.submit-answer,.select-answer-option ").removeClass("hide-section"),o()(".cmp-quiz-results").empty()),"quiz"==i){h+=1,o()(e.currentTarget).closest(".staingallery").find(".cmp-case-name").removeClass("result-casetext"),u.length-1===h&&o()(".cmp-stains-nxt-btn-quiz").css("display","none"),f=(f=u[h].stainProperties.find((function(e){return e.stainFileName}))).stainFileName;var t=u[h].stainTitle;o()(e.currentTarget).closest(".staingallery").find(".cmp-case-name").text(t),k.load(n,f,(function(){o()(e.currentTarget).closest(".cmp-stains-container.cmp-tab2").length>0&&(o()(".cmp-stains-quiz-thumbnails").closest(".cmp-stains-container").find(".cmp-loading-gif").css("display","none"),o()(".cmp-stains-quiz-viewer").css("opacity","1"),S(0,f))}))}u.length-1===h&&o()(".cmp-stains-quiz-thumbnails").closest(".cmp-stains-container").find(".cmp-stains-nxt-btn-quiz").css("display","none")}else u.length-1===h&&o()(".cmp-stains-quiz-thumbnails").closest(".cmp-stains-container").find(".cmp-stains-nxt-btn-quiz").css("display","none");o()(".cmp-stains-container.cmp-tab2").find(".cmp-quiz-results,\n .correct-ans,\n .incorrect-ans").addClass("visiblity-hidden"),o()("html, body").stop().animate({scrollTop:o()(".cmp-stains-quiz-thumbnails").parent().offset().top-100},1e3)}})),o()(document).on("mouseenter",".cmp-stains-overlay, .cmp-stains-overlay-content",(function(e){o()(e.currentTarget).closest("li").find(".cmp-stains-overlay-content").addClass("cmp-stains-overlay-content-hover "),e.currentTarget.classList.contains("cmp-stains-overlay-content")&&o()(e.currentTarget).closest("li").find(".cmp-stains-overlay").addClass("cmp-stains-overlay-hover")})),o()(document).on("mouseleave",".cmp-stains-overlay",(function(){o()(".cmp-stains-overlay-content").removeClass("cmp-stains-overlay-content-hover")})),o()(document).on("mouseleave",".cmp-stains-overlay-content",(function(){o()(".cmp-stains-overlay").removeClass("cmp-stains-overlay-hover")})),o()(document).on("click",".cmp-stains-container .filter input",(function(e){"cases"===i&&(g=_,"all-cases"===e.currentTarget.value?e.currentTarget.checked?x.each((function(e,t){t.checked=!0})):x.each((function(e,t){t.checked=!1}
876)):x.each((function(e,t){"all-cases"===t.value&&(t.checked=!1)})),m=[],x.each((function(e,t){t.checked&&m.push(t.value)})),m.includes("all-cases")?u=d:(u=[],m.forEach((function(e){var t=d.filter((function(t){return t.stainFilter===e}));u=[].concat(We(u),We(t))}))),u.sort((function(e,t){return parseInt(e.stainTitle.replace("Case ",""),10)-parseInt(t.stainTitle.replace("Case ",""),10)})),m.length===x.length-1&&x.each((function(e,t){t.checked=!0})),E(),O(),m.length,o()(".cmp-no-stains-selected").css("display","none"))})),o()(document).on("click",".cmp-load-more-stains-gallery",(function(){"cases"===i&&(g=g<=u.length?g+_:u.length),a=!1,E(),O()})),o()(document).on("click",".cmp-load-more-stains-quiz",(function(){"quiz"===i&&(v=v<=u.length?v+w:u.length),a=!1,E(),O()})),o()(document).on("click",".cmp-stain-slide-button-".concat(i),(function(e){o()(".cmp-stain-details-error").css("display","none");var t=e.currentTarget;if(!t.className.includes("disabled")){o()(".cmp-stain-slide-button-".concat(i)).removeClass("active"),t.className+=" active",p=Number(t.getAttribute("data-stain-prop-index"));var r=t.getAttribute("data-stain-uid");o()(e.currentTarget).closest(".cmp-stains-container").find(".cmp-case-name").removeClass("result-casetext");var a=o()("<div class='cmp-loading-gif'></div>");o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".cmp-stains-container").find(".cmp-viewer-container").append(a),o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".cmp-stains-container").find(".cmp-loading-gif").css({display:"block"}),o()(".cmp-stains-".concat(i,"-viewer")).css("opacity","0"),k.load(n,r,(function(){o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".cmp-stains-container").find(".cmp-loading-gif").css("display","none"),o()(".cmp-stains-".concat(i,"-viewer")).css("opacity","1"),o()(".cmp-viewer-container").find(".cmp-loading-gif").remove(),S(p,r)})),k.listen(He.UI.Components.Events.SlideInfoError,(function(){s(C,k,r,(function(){o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".cmp-stains-container").find(".cmp-loading-gif").css("display","none"),o()(".cmp-viewer-container").find(".cmp-loading-gif").remove(),o()(".cmp-stains-".concat(i,"-viewer")).css("opacity","1"),S(p,r)}))||(o()(".cmp-stains-".concat(i,"-thumbnails")).closest(".cmp-stains-container").find(".cmp-loading-gif").css("display","none"),o()(".cmp-viewer-container").find(".cmp-loading-gif").remove(),o()(".cmp-stain-details-error").css("display","flex"))})),$()}})),o()(document).on("click",".submit-answer",(function(e){if(""===y&&o()(".select-answer-option").css("display","block"),""!==y&&"quiz"===i){if(void 0!==r){var t=o()(".cmp-stains-container.cmp-tab2"),n=t.find(".cmp-stains-case-details"),a=n.find(".answer-radio-options input:checked").closest("label");window.adobeDataLayer.push({event:"quizResponseSubmit",attributes:{quizQuestion:n.find(".question").text().replace("\n",""),quizResponse:a.attr("aria-label")}}),window.adobeDataLayer.push({event:"quizComplete",attributes:{quizName:t.find(".cmp-case-name").text()}})}o()(".cmp-stains-container.cmp-tab2").find("\n .cmp-stains-back-to-gallery,\n .cmp-stains-quiz-viewer\n ").css("display","none");var s=y?"correct-ans":"incorrect-ans";o()(".cmp-quiz-results").empty(),o()(".cmp-viewer-container-parent #stain_quiz_footer_text").removeClass("show"),o()(e.currentTarget).closest(".cmp-stains-container").find(".cmp-case-name").addClass("result-casetext");o()('.cmp-quiz-results-container div[data-stain-id="'.concat(u[h].stainID,'"] .').concat(s)).html();o()(".cmp-quiz-results").empty(),o()(".cmp-viewer-container-parent #stain_quiz_footer_text").removeClass("show"),o()(".cmp-stains-container.cmp-tab2").find(".cmp-stains-buttons-container,.cmp-viewer-container-parent").hide(),o()(".cmp-stains-container.cmp-tab2").find(".cmp-quiz-questioner-container .question,.radio.answer-radio-options,.submit-answer,.select-answer-option ").addClass("hide-section"),o()(".cmp-stains-container.cmp-tab2").find(".cmp-quiz-questioner-container .cmp-quiz-results-container [data-stain-id]").addClass("hide-section"),o()(".cmp-stains-container.cmp-tab2").find(".cmp-quiz-questioner-container .cmp-quiz-results-container").addClass("hide-section"),o()(".cmp-stains-container.cmp-tab2").find('.cmp-quiz-results-container div[data-stain-id="'.concat(u[h].stainID,'"] .').concat(s)).show().removeClass("visiblity-hidden"),o()(".cmp-stains-container.cmp-tab2").find('.cmp-quiz-results-container div[data-stain-id="'.concat(u[h].stainID,'"] .').concat(s)).removeClass("hide-ans"),o()(".cmp-stains-container.cmp-tab2").find('.cmp-quiz-results-container div[data-stain-id="'.concat(u[h].stainID,'"] .').concat(s)).siblings().addClass("hide-ans"),o()(".cmp-stains-container.cmp-tab2").find('.cmp-quiz-results-container div[data-stain-id="'.concat(u[h].stainID,'"] .').concat(s)).closest("[data-stain-id]").removeClass("hide-section"),o()(".cmp-stains-container.cmp-tab2").find('.cmp-quiz-results-container div[data-stain-id="'.concat(u[h].stainID,'"] .').concat(s)).closest(".cmp-quiz-results-container").removeClass("hide-section"),o()(".cmp-stains-container.cmp-tab2").find('.cmp-quiz-results-container div[data-stain-id="'.concat(u[h].stainID,'"] .').concat(s)).closest(".cmp-quiz-questioner-container").addClass("quiz-ans-section"),T(),$(),o()(".staingallerytraining").find(".cmp-stains-cases-thumbn
876ails").siblings(".cmp-quiz-results").hide(),o()(".cmp-quiz-buttons-container").show(),o()(".cmp-quiz-results").find(".global-link").show(),o()("html, body").stop().animate({scrollTop:o()(".cmp-stains-container.cmp-tab2").offset().top-100},1e3)}}))}return!1};o()(".cmp-stains-cases-thumbnails, .cmp-stains-quiz-thumbnails").css("display","table"),l("cases"),l("quiz")},Ke=function(){document.addEventListener("DOMContentLoaded",(function(){var e;o()(".staingallerytraining").length>0&&(e=null,o()(".staingallerytraining").length>0&&(o()(".staingallerytraining").each((function(){o()(this).find(".cmp-loading-gif").css("display","flex")})),o.a.ajax({url:"/bin/globalstainlist/sessionid",type:"GET",success:function(t){(e=t)&&Xe(e),null===t&&(o()(".cmp-loading-gif,\n .cmp-tab1,\n .cmp-tab2").css("display","none"),void 0!==o()(".cmp-stain-details-error")[0]&&o()(".cmp-stains-container").append(o()(".cmp-stain-details-error")[0].outerHTML),o()(".cmp-stain-details-error").css("display","flex"))},error:function(e,t,n){console.log(n),o()(".cmp-loading-gif,\n .cmp-tab1,\n .cmp-tab2").css("display","none"),void 0!==o()(".cmp-stain-details-error")[0]&&o()(".cmp-stains-container").append(o()(".cmp-stain-details-error")[0].outerHTML),o()(".cmp-stain-details-error").css("display","flex"),o()(".cmp-loading-gif").css("display","none")}})))}))},Ze
vendor: 15,178 bytes, line 876
876={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3
876[23]
vendor: 10,693 bytes, line 876
876|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8}
vendor: 5,206 bytes, line 876
876)","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])
vendor: 21,283 bytes, line 876
876))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{
8764})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}
876(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61
vendor: 11,791 bytes, line 876
876|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-8]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["
876(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4}
876)","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Je(e,t){var n=Array.prototype.slice.call(t);return n.push(Ze),e.apply(this,n)}var Qe={}.constructor;function et(e){return null!=e&&e.constructor===Qe}function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=tt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ot(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function at(e){var t,n,r,i=it(Array.prototype.slice.call(e),4),o=i[0],a=i[1],s=i[2],l=i[3];if("string"!=typeof o)throw new TypeError("A text for parsing must be a string.");if(t=o,a&&"string"!=typeof a){if(!et(a))throw new Error("Invalid second argument: ".concat(a));s?(n=a,r=s):r=a}else l?(n=s,r=l):(n=void 0,r=s),a&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({defaultCountry:a},n));return{text:t,options:n,metadata:r}}var st="0-9ï¼-ï¼Ù -Ù©Û°-Û¹",lt="".concat("-â-ââã¼ï¼").concat("ï¼/").concat("ï¼.").concat("  Ââ
876â ã").concat("()ï¼ï¼ï¼»ï¼½\\[\\]").concat("~ââ¼ï½");function ct(e){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ut(r.key),r)}}function ut(e){var t=function(e,t){if("object"!=ct(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ct(t)?t:t+""}function ht(e,t,n){return t=vt(t),function(e,t){if(t&&("object"==ct(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,mt()?Reflect.construct(t,n||[],vt(e).constructor):t.apply(e,n))}function pt(e){var t="function"==typeof Map?new Map:void 0;return(pt=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ft(e,arguments,vt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),gt(n,e)})(e)}function ft(e,t,n){if(mt())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&>(i,n.prototype),i}function mt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mt=function(){return!!e})()}function gt(e,t){return(gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function vt(e){return(vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yt=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=ht(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&>(e,t)}(t,e),function(e,t,n){return t&&dt(e.prototype,t),n&&dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(pt(Error)),bt=function(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var o=Number(n[i]),a=Number(r[i]);if(o>a)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0};function _t(e){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,St(r.key),r)}}function Ct(e,t,n){return t&&xt(e.prototype,t),n&&xt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function St(e){var t=function(e,t){if("object"!=_t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_t(t)?t:t+""}var Et=/^\d+$/,kt=function(){return Ct((function e(t){wt(this,e),Lt(t),this.metadata=t,jt.call(this,t)}),[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;
vendor: 4,947 bytes, line 876
876if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&Et.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new Tt(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new Tt(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}])}(),Tt=function(){return Ct((function e(t,n){wt(this,e),this.globalMetadataObject=n,this.metadata=t,jt.call(this,n.metadata)}),[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return t.map((function(t){return new Ot(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}}
vendor: 1,359 bytes, line 876
876,{key:"type",value:function(e){if(this.hasTypes()&&It(this.types(),e))return new Pt(It(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?" ext. ":this.metadata[13]||" ext. "}}])}(),Ot=function(){return Ct((function e(t,n){wt(this,e),this._format=t,this.metadata=n}),[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||$t.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),$t=/^\(?\$1\)?$/,Pt=function(){return Ct((function e(t,n){wt(this,e),this.type=t,this.metadata=n}),[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
vendor: 5,110 bytes, line 876
876ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function It(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function Lt(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!et(e)||!et(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(et(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+At(e)+": "+e,"."))}var At=function(e){return _t(e)};function Mt(e,t){if((t=new kt(t)).hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function jt(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===bt(t,"1.2.0")?this.v2=!0:-1===bt(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}var Rt=function(e){return"([".concat(st,"]{1,").concat(e,"})")};function Dt(e){return";ext="+Rt("20")+"|"+("[  \\t,]*(?:e?xt(?:ensi(?:oÌ?|ó))?n?|ï½
?ï½ï½ï½?|доб|anexo)[:\\.ï¼]?[  \\t,-]*"+Rt("20")+"#?")+"|"+("[  \\t,]*(?:[xï½#ï¼~ï½]|int|ï½ï½ï½)[:\\.ï¼]?[  \\t,-]*"+Rt("9")+"#?")+"|"+("[- ]+"+Rt("6")+"#")+"|"+("[  \\t]*(?:,{2}|;)[:\\.ï¼]?[  \\t,-]*"+Rt("15")+"#?")+"|"+("[  \\t]*(?:,)+[:\\.ï¼]?[  \\t,-]*"+Rt("9")+"#?")}var Ft="[+ï¼]{0,1}(?:["+lt+"]*["+st+"]){3,}["+lt+st+"]*",Nt=new RegExp("^[+ï¼]{0,1}(?:["+lt+"]*["+st+"]){1,2}$","i"),Bt=Ft+"(?:"+Dt()+")?",Ut=new RegExp("^[0-9ï¼-ï¼Ù -Ù©Û°-Û¹]{2}$|^"+Bt+"$","i");function zt(e){return e.length>=2&&Ut.test(e)}var Gt=new RegExp("(?:"+Dt()+")$","i");function Vt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return qt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ht={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","ï¼":"0","ï¼":"1","ï¼":"2","ï¼":"3","ï¼":"4","ï¼":"5","ï¼":"6","ï¼":"7","ï¼":"8","ï¼":"9","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9"};function Wt(e){return Ht[e]}function Yt(e){for(var t,n="",r=Vt(e.split(""));!(t=r()).done;){var i=Wt(t.value);i&&(n+=i)}return n}function Xt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Kt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zt(e){for(var t,n="",r=Xt(e.split(""));!(t=r()).done;){n+=Jt(t.value,n)||""}return n}function Jt(e,t,n){return"+"===e?t?void("function"==typeof n&&n("end")):"+":Wt(e)}function Qt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return en(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function en(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tn(e,t,n){return function e(t,n,r,i){n&&(i=new kt(i.metadata)).selectNumberingPlan(n);
876var o=i.type(r),a=o&&o.possibleLengths()||i.possibleLengths();if(!a)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===r){if(!i.type("FIXED_LINE"))return e(t,n,"MOBILE",i);var s=i.type("MOBILE");s&&(a=function(e,t){for(var n,r=e.slice(),i=Qt(t);!(n=i()).done;){var o=n.value;e.indexOf(o)<0&&r.push(o)}return r.sort((function(e,t){return e-t}))}(a,s.possibleLengths()))}else if(r&&!o)return"INVALID_LENGTH";var l=t.length,c=a[0];if(c===l)return"IS_POSSIBLE";if(c>l)return"TOO_SHORT";if(a[a.length-1]<l)return"TOO_LONG";return a.indexOf(l,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,t,void 0,n)}function nn(e,t,n){switch(tn(e,t,n)){case"IS_POSSIBLE":return!0;default:return!1}}function rn(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function on(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return an(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?an(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function an(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var sn=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];
vendor: 7,545 bytes, line 876
876function ln(e,t,n){if(t=t||{},e.country||e.countryCallingCode){(n=new kt(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(rn(r,n.nationalNumberPattern())){if(cn(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":n.type("MOBILE")?cn(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var i,o=on(sn);!(i=o()).done;){var a=i.value;if(cn(r,a,n))return a}}}}function cn(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&rn(e,t.pattern()))}function dn(e,t,n){var r=new kt(n).getCountryCodesForCallingCode(e);return r?r.filter((function(e){return function(e,t,n){var r=new kt(n);if(r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0)return!0;return!1}(t,e,n)})):[]}var un=new RegExp("(["+st+"])");function hn(e,t,n,r){if(t){var i=new kt(r);i.selectNumberingPlan(t,n);var o=new RegExp(i.IDDPrefix());if(0===e.search(o)){var a=(e=e.slice(e.match(o)[0].length)).match(un);if(!(a&&null!=a[1]&&a[1].length>0&&"0"===a[1]))return e}}}function pn(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,o,a,s=r.length-1,l=s>0&&r[s];if(t.nationalPrefixTransformRule()&&l)i=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(o=r[1]);else{var c=r[0];i=e.slice(c.length),l&&(o=r[1])}if(l){var d=e.indexOf(r[1]);e.slice(0,d)===t.numberingPlan.nationalPrefix()&&(a=t.numberingPlan.nationalPrefix())}else a=r[0];return{nationalNumber:i,nationalPrefix:a,carrierCode:o}}}return{nationalNumber:e}}function fn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return mn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gn(e,t){var n=t.countries,r=t.metadata;r=new kt(r);for(var i,o=fn(n);!(i=o()).done;){var a=i.value;if(r.selectNumberingPlan(a),r.leadingDigits()){if(e&&0===e.search(r.leadingDigits()))return a}else if(ln({phone:e,country:a},void 0,r.metadata))return a}}function vn(e,t){var n=t.nationalNumber,r=t.metadata;var i=r.getCountryCodesForCallingCode(e);if(i)return 1===i.length?i[0]:gn(n,{countries:i,metadata:r.metadata})}function yn(e,t,n){var r=pn(e,n),i=r.carrierCode,o=r.nationalNumber;if(o!==e){if(!function(e,t,n){if(rn(e,n.nationalNumberPattern())&&!rn(t,n.nationalNumberPattern()))return!1;return!0}(e,o,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=vn(n.numberingPlan.callingCode(),{nationalNumber:o,metadata:n})),!function(e,t,n){switch(tn(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(o,t,n)))return{nationalNumber:e}}return{nationalNumber:o,carrierCode:i}}function bn(e,t,n,r,i){var o=t||n?Mt(t||n,i):r;if(0===e.indexOf(o)){(i=new kt(i)).selectNumberingPlan(t||n,o);var a=e.slice(o.length),s=yn(a,t,i).nationalNumber,l=yn(e,t,i).nationalNumber;if(!rn(l,i.nationalNumberPattern())&&rn(s,i.nationalNumberPattern())||"TOO_LONG"===tn(l,t,i))return{countryCallingCode:o,number:a}}return{number:e}}function _n(e,t,n,r,i){if(!e)return{};var o;if("+"!==e[0]){var a=hn(e,t||n,r,i);if(!a||a===e){if(t||n||r){var s=bn(e,t,n,r,i),l=s.countryCallingCode,c=s.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:c}}return{number:e}}o=!0,e="+"+a}if("0"===e[1])return{};i=new kt(i);for(var d=2;d-1<=3&&d<=e.length;){var u=e.slice(1,d);if(i.hasCallingCode(u))return i.selectNumberingPlan(u),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(d)};d++}return{}}function wn(e){return e.replace(new RegExp("[".concat(lt,"]+"),"g")," ").trim()}var xn=/(\$\d)/;function Cn(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix,o=(n.carrierCode,n.metadata,e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(xn,t.nationalPrefixFormattingRule()):t.format()));return r?wn(o):o}var Sn=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;var En={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function kn(e,t,n,r){if(n=n?function(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}({},En,n):En,r=new kt(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var i,o=r.countryCallingCode(),a=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return a?On(i=Tn(a,e.carrierCode,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return a?(i=Tn(a,null,"INTERNATIONAL",r,n),On(i="+".concat(o," ").concat(i),e.ext,r,n.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(a);case"RFC3966":return function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}({number:"+".concat(o).concat(a),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=function(e,t,n,r,i){if(Mt(r,i.metadata)===n){var o=Tn(e,t,"NATIONAL",i);return"1"===n?n+" "+o:o}var a=function(e,t,n){var r=new kt(n);return r.selectNumberingPlan(e,t),r.defaultIDDPrefix()?r.defaultIDDPrefix():Sn.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,void 0,i.metadata);if(a)return"".concat(a," ").concat(n," ").concat(Tn(e,null,"INTERNATIONAL",i))}(a,e.carrierCode,o,n.fromCountry,r);if(!s)return;return On(s,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Tn(e,t,n,r,i){var o,a,s=(o=r.formats(),a=e,function(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}(o,(function(e){if(e.leadingDigitsPatterns().length>0){var t=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==a.search(t))return!1}return rn(a,e.pattern())})));return s?Cn(e,s,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!s.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!i||!1!==i.nationalPrefix,carrierCode:t,metadata:r}):e}function On(e,t,n,r){return t?r(e,t,n):e}function $n(e){return($n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 13,270 bytes, line 876
876t%2?Pn(Object(n),!0).forEach((function(t){Ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ln(e,t,n){return(t=Mn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function An(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mn(r.key),r)}}function Mn(e){var t=function(e,t){if("object"!=$n(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=$n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$n(t)?t:t+""}var jn=function(){return function(e,t,n){return t&&An(e.prototype,t),n&&An(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("First argument is required");if("string"!=typeof t)throw new TypeError("First argument must be a string");if("+"===t[0]&&!n)throw new TypeError("`metadata` argument not passed");if(et(n)&&et(n.countries)){r=n;var i=t;if(!Rn.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=_n(i,void 0,void 0,void 0,r);if(t=o.countryCallingCode,!(n=o.number))throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if("string"!=typeof n)throw new TypeError("`nationalNumber` argument must be a string");Lt(r);var a=function(e,t){var n,r,i=new kt(t);!function(e){return/^[A-Z]{2}$/.test(e)}(e)?r=e:(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode());return{country:n,countryCallingCode:r}}(t,r),s=a.country,l=a.countryCallingCode;this.country=s,this.countryCallingCode=l,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}),[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:dn(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new kt(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return nn(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return e=this,t={v2:!0},n=this.getMetadata(),t=t||{},(n=new kt(n)).selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==ln(e,t,n.metadata):rn(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern());var e,t,n}},{key:"isNonGeographic",value:function(){return new kt(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return ln(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return kn(this,e,t?In(In({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])}();var Rn=/^\+\d+$/,Dn=new RegExp("^\\+([0-9ï¼-ï¼Ù -Ù©Û°-Û¹]|[\\-\\.\\(\\)]?)*[0-9ï¼-ï¼Ù -Ù©Û°-Û¹]([0-9ï¼-ï¼Ù -Ù©Û°-Û¹]|[\\-\\.\\(\\)]?)*$","g"),Fn=new RegExp("^([0-9ï¼-ï¼Ù -Ù©Û°-Û¹]+((\\-)*[0-9ï¼-ï¼Ù -Ù©Û°-Û¹])*\\.)*[a-zA-Z]+((\\-)*[0-9ï¼-ï¼Ù -Ù©Û°-Û¹])*\\.?$","g");function Nn(e,t){var n,r=t.extractFormattedPhoneNumber,i=function(e){var t=e.indexOf(";phone-context=");if(t<0)return null;var n=t+";phone-context=".length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}(e);if(!function(e){return null===e||0!==e.length&&(Dn.test(e)||Fn.test(e))}(i))throw new yt("NOT_A_NUMBER");if(null===i)n=r(e)||"";else{n="","+"===i.charAt(0)&&(n+=i);var o,a=e.indexOf("tel:");o=a>=0?a+"tel:".length:0;var s=e.indexOf(";phone-context=");n+=e.substring(o,s)}var l=n.indexOf(";isub=");if(l>0&&(n=n.substring(0,l)),""!==n)return n}var Bn=new RegExp("[+ï¼"+st+"]"),Un=new RegExp("[^"+st+"#]+$");function zn(e,t,n){if(t=t||{},n=new kt(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new yt("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t,n){var r=Nn(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(!e)return;if(e.length>250){if(n)throw new yt("TOO_LONG");return}if(!1===t)return e;var r=e.search(Bn);if(r<0)return;return e.slice(r).replace(Un,"")}(e,n,t)}});if(!r)return{};if(!zt(r))return function(e){return Nt.test(e)}(r)?{error:"TOO_SHORT"}:{};var i=function(e){var t=e.search(Gt);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(Gt),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}(r);if(i.ext)return i;return{number:r}}(e,t.v2,t.extract),i=r.number,o=r.ext,a=r.error;if(!i){if(t.v2){if("TOO_SHORT"===a)throw new yt("TOO_SHORT");throw new yt("NOT_A_NUMBER")}return{}}var s=function(e,t,n,r){var i,o=_n(Zt(e),void 0,t,n,r.metadata),a=o.countryCallingCodeSource,s=o.countryCallingCode,l=o.number;if(s)r.selectNumberingPlan(s);else{if(!l||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(i=t),s=n||Mt(t,r.metadata)}if(!l)return{countryCallingCodeSource:a,countryCallingCode:s};var c=yn(Zt(l),i,r),d=c.nationalNumber,u=c.carrierCode,h=vn(s,{nationalNumber:d,metadata:r});h&&(i=h,"001"===h||r.selectNumberingPlan(i));return{country:i,countryCallingCode:s,countryCallingCodeSource:a,nationalNumber:d,carrierCode:u}}(i,t.defaultCountry,t.defaultCallingCode,n),l=s.country,c=s.nationalNumber,d=s.countryCallingCode,u=s.countryCallingCodeSource,h=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new yt("INVALID_COUNTRY");return{}}if(!c||c.length<2){if(t.v2)throw new yt("TOO_SHORT");return{}}if(c.length>17){if(t.v2)throw new yt("TOO_LONG");return{}}if(t.v2){var p=new jn(d,c,n.metadata);return l&&(p.country=l),h&&(p.carrierCode=h),o&&(p.ext=o),p.__countryCallingCodeSource=u,p}var f=!!(t.extended?n.hasSelectedNumberingPlan():l)&&rn(c,n.nationalNumberPattern());return t.extended?{country:l,countryCallingCode:d,carrierCode:h,valid:f,possible:!!f||!(!0!==t.extended||!n.possibleLengths()||!nn(c,l,n)),phone:c,ext:o}:f?function(e,t,n){var r={country:e,phone:t};n&&(r.ext=n);return r}(l,c,o):{}}function Gn(e){return(Gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(n),!0).forEach((function(t){Hn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Gn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Gn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wn(e){return(Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){Kn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Wn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Wn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zn(e,t,n){t&&t.defaultCountry&&!function(e,t){return t.countries.hasOwnProperty(e)}(t.defaultCountry,n)&&(t=Xn(Xn({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return zn(e,qn(qn({},t),{},{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof yt))throw e}}function Jn(){var e=at(arguments),t=e.text,n=e.options,r=e.metadata;return Zn(t,n,r)}function Qn(){return Je(Jn,arguments)}var er={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6],0,0,0,0,0,0,0,[["6[2-467]\\d{3}",[5]],["4\\d{4}",[5]],0,0,0,0,["(?:0[1-9]|[1589]\\d)\\d{4}",[6]]]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[["[78]\\d{5}",[6]],["690\\d{6}|[356]\\d{5}",[6,9]],["180[02]\\d{4}",[8]],["[19]\\d{5}",[6]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4}
876)","$1 $2 $3",["5"],"0$1"]],"0",0,0,0,0,0,[["[2-4679][2-8]\\d{6}",[8]],["5[02-68]\\d{7}",[9]],["400\\d{6}|800\\d{2,9}"],["900[02]\\d{5}",[9]],0,0,["600[25]\\d{5}",[9]],0,0,["700[05]\\d{5}",[9]]]],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0",0,0,0,0,0,[["(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}"],["7\\d{8}"]]],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268",[["268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}"],["268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,0,["26840[69]\\d{4}"],["26848[01]\\d{4}"]]],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264",[["264(?:292|4(?:6[12]|9[78]))\\d{4}"],["264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]
vendor: 7,049 bytes, line 876
876|44|66|77|88)[2-9]\\d{6}"],0,0,["264724\\d{4}"]]],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0",0,0,0,0,0,[["4505[0-2]\\d{3}|(?:[2358][16-9]\\d[2-9]|4410)\\d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6\\d))\\d{5}",[8]],["6(?:[78][2-9]|9\\d)\\d{6}",[9]],["800\\d{4}",[7]],["900[1-9]\\d\\d",[6]],["700[2-9]\\d{4}",[8]],0,0,0,0,["808[1-9]\\d\\d",[6]]]],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:1[0-25]|47)\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)\\d{5}"],["(?:33|4[1349]|55|77|88|9[13-9])\\d{6}"],["800\\d{5}"],["90[016]\\d{5}"],0,0,0,0,["60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]\\d|9[0-2])\\d{4}"],["80[1-4]\\d{5}"]]],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]],0,0,0,0,0,0,[["2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}"],["9[1-79]\\d{7}"]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1",0,0,[["3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|47[35]|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:657|9(?:54|66))|3(?:48[27]|7(?:55|77)|8(?:65|78)))[2-8]\\d{5}|(?:2(?:284|3(?:02|23)|477|622|920)|3(?:4(?:46|89|92)|541))[2-7]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[25][4-6]|3[3-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|1[2-7]|3[4-6]|5[3-6]|7[2-6]|8[3-68])))\\d{6}|(?:2(?:2(?:62|81)|320|9(?:42|83))|3(?:329|4(?:62|7[16])|5(?:43|64)|7(?:18|5[17])))[2-6]\\d{5}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:257|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|64)|5(?:25|37|4[47]|71)|7(?:35|72)|825))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[035-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[3-5]|8[26])|8(?:2[67]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",[10]],["93(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|47[35]|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:657|9(?:54|66))|3(?:48[27]|7(?:55|77)|8(?:65|78)))[2-8]\\d{5}|9(?:2(?:284|3(?:02|23)|477|622|920)|3(?:4(?:46|89|92)|541))[2-7]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[25][4-6]|3[3-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|1[2-7]|3[4-6]|5[3-6]|7[2-6]|8[3-68]))))\\d{6}|9(?:2(?:2(?:62|81)|320|9(?:42|83))|3(?:329|4(?:62|7[16])|5(?:43|64)|7(?:18|5[17])))[2-6]\\d{5}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:257|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|64)|5(?:25|37|4[47]|71)|7(?:35|72)|825))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[035-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[3-5]|8[26])|8(?:2[67]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}"],["800\\d{7,8}"],["60[04579]\\d{7}",[10]],0,0,["810\\d{7}",[10]]]],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684",[["684
876(?:274|6(?:22|33|44|55|77|88|9[19]))\\d{4}"],["684(?:2(?:48|5[2468]|7[246])|7(?:3[13]|70|82))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0",0,0,0,0,0,[["1(?:11\\d|[2-9]\\d{3,11})|(?:316|463)\\d{3,10}|648[34]\\d{3,9}|(?:51|66|73)2\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-7]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{4,10}"],["6(?:485|(?:5[0-3579]|6[013-9]|[7-9]\\d)\\d)\\d{3,9}",[7,8,9,10,11,12,13]],["800\\d{6,10}",[9,10,11,12,13]],["(?:8[69][2-68]|9(?:0[01]|3[019]))\\d{6,10}",[9,10,11,12,13]],0,0,0,0,["5(?:0[1-9]|17|[79]\\d)\\d{2,10}|7[28]0\\d{6,10}",[5,6,7,8,9,10,11,12,13]],["8(?:10|2[018])\\d{6,10}|828\\d{5}",[8,9,10,11,12,13]]]],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]],0,0,0,0,0,0,[["5(?:2\\d|8[1-9])\\d{4}"],["(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4-8]))\\d{4}"],["800\\d{4}"],["900\\d{4}"],0,0,0,0,["(?:28\\d|501)\\d{4}"]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",[["18[1-8]\\d{3,6}",[6,7,8,9]],["4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",[6,7,8,9,10]],["800\\d{4,6}",[7,8,9]],["[67]00\\d{5,6}",[8,9]],0,0,["20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}"]],"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:2[12]428|3655[02])\\d{4}|(?:2(?:22[0-79]|63[0-28])|3654)\\d{5}|(?:(?:1[28]|46)\\d|2(?:[014-6]2|[23]3))\\d{6}"],["36554\\d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)\\d{7}"],["88\\d{7}"],["900200\\d{3}"]]],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0",0,0,0,0,0,[["(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}",[8]],["6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}"],["8[08]\\d{6}",[8]],["9[0246]\\d{6}",[8]],0,0,["703[235]0\\d{3}|70(?:2[0-5]|3[0146]|[56]0)\\d{4}",[8]],0,0,["8[12]\\d{6}",[8]]]],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246",[["246521[0369]\\d{3}|246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2\\d|3[2-9])|5(?:20|[34]\\d|54|7[1-3])|6(?:2\\d|38)|7[35]7|9(?:1[89]|63))\\d{4}"],["246(?:(?:2(?:[3568]\\d|4[0-57-9])|3(?:5[2-9]|6[0-6])|4(?:46|5\\d)|69[5-7]|8(?:[2-5]\\d|83))\\d|52(?:1[147]|20))\\d{3}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["(?:246976|900[2-9]\\d\\d)\\d{4}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,["246(?:292|367|4(?:1[7-9]|3[01]|4[47-9]|67)|7(?:1[2-9]|2\\d|3[016]|53))\\d{4}"],0,["24631\\d{5}"]]],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0",0,0,0,0,0,[["(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:[23]\\d|[45])\\d\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}"],["(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}",[10]],["80[03]\\d{7}",[10]],0,0,0,0,0,["96(?:0[469]|1[0-47]|3[389]|43|6[69]|7[78])\\d{6}",[10]]]],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0",0,0,0,0,0,[["80[2-8]\\d{5}|(?:1[0-69]|[23][2-8]|4[23]|5\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\d{6}",[8]],["4[5-9]\\d{7}",[9]],["800[1-9]\\d{4}",[8]],["(?:70(?:2[0-57]|3[04-7]|44|6[04-69]|7[0579])|90\\d\\d)\\d{4}",[8]],0,0,["78(?:0[578]|1[014-8]|2[25]|3[15-8]|48|5[05]|60|7[06-8]|9\\d)\\d{4}",[8]],0,0,["7879\\d{4}",[8]]]],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]],0,0,0,0,0,0,[["2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[01
87679])|5(?:[34]\\d|50|6[5-7]))\\d{4}"],["(?:0[1-7]|44|5[0-8]|[67]\\d)\\d{6}"]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[["2\\d{5,7}|(?:43[1-6]|70[1-9])\\d{4,5}|(?:[36]\\d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])\\d{5,6}",[6,7,8]],["(?:43[07-9]|99[69]\\d)\\d{5}|(?:8[7-9]|98)\\d{7}",[8,9]],["(?:00800\\d\\d|800)\\d{5}",[8,12]],["90\\d{6}",[8]],0,0,0,0,0,["700\\d{5}",[8]]]],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]],0,0,0,0,0,0,[["(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|55|7[7-9]|88)|9[69][69])|7(?:[07]\\d\\d|1(?:11|78)))\\d{4}"],["(?:3(?:[0-79]\\d|8[0-57-9])\\d|6(?:3(?:00|33|6[16])|441|6(?:3[03-9]|[69]\\d|7[0-689])))\\d{4}"],["8[02369]\\d{6}"],["(?:87|9[0-8])\\d{6}"],0,0,0,0,0,["84\\d{6}"]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]],0,0,0,0,0,0,[["(?:22|31)\\d{6}"],["(?:29|6[124-9]|7[125-9])\\d{6}"]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]],0,0,0,0,0,0,[["012\\d{7}",[10]],["01(?:2[5-9]|[4-69]\\d)\\d{6}",[10]],0,0,0,0,["81\\d{6}",[8]],0,["857[58]\\d{4}",[8]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441",[["441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}"],["441(?:[2378]\\d|5[0-39]|9[02])\\d{5}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]],0,0,0,0,0,0,[["22[0-7]\\d{4}|(?:2[013-9]|[34]\\d|5[0-25-9])\\d{5}"],["(?:22[89]|[78]\\d\\d)\\d{4}"],0,0,0,0,0,0,["5[34]\\d{5}"]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?",0,0,0,[["(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}",[8]],["[67]\\d{7}",[8]],["8001[07]\\d{4}",[9]],0,0,0,0,0,["50\\d{6}",[8]]]],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]",[["(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)\\d)\\d{3}"],["(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}"]]],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2",0,0,[["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}",[10]],["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}",[10,11]],["800\\d{6,7}",[9,10]],["[59]00\\d{6,7}",[9,10]],0,0,0,0,0,["(?:30[03]\\d{3}|4(?:0(?:0\\d|20)|370|864))\\d{4}|300\\d{5}",[8,10]]]],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242",[["242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-5]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}"],["242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|3[0-4]|[89]9))\\d{4}"],["242300\\d{4}|8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,["242225\\d{4}"]]],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]],0,0,0,0,0,0,[["(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}",[7]],["(?:1[67]|[78]7)\\d{6}",[8]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013]|81)|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[013467]))\\d{4}",[7]],["(?:321|7[1-8]\\d)\\d{5}",[8]],["(?:0800|800\\d)\\d{6}",[10]],["90\\d{5}",[7]],0,0,0,0,["79(?:1(?:[0-2]\\d|3[0-8])|2[0-7]\\d)\\d{3}",[8]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,[["(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}",[9]],["(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}",[9]],["800\\d{3,7}|8(?:0[13]|20\\d)\\d{7}"],["(?:810|902)\\d{7}",[10]],0,0,0,0,["249\\d{6}",[9]]],"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]],0,0,0,0,0,0,[["(?:2(?:[02]\\d|36|[68]0)|[3-58](?:[02]\\d|[68]0)|7(?:[02]\\d|32|[68]0))\\d{4}",[7]],["6[0-35-7]\\d{5}",[7]],["0800\\d{7}",[11]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:12|573)\\d\\d|276)\\d{5}|[1-6]\\d{6}"],["88\\d{5}|(?:8[0-69]|9[016-9])\\d{7}",[7,9]]]],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]],0,0,0,0,0,0,[["2[12]\\d{6}"],["7[02-7]\\d{6}"],0,["8776\\d{4}"]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]],0,0,0,0,0,0,[["222[1-589]\\d{5}"],["026(?:1[0-5]|6[6-9])\\d{4}|0(?:[14-6]\\d\\d|2(?:40|5[5-8]|6[07-9]))\\d{5}"],0,["80[0-2]\\d{6}"]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}",[9]],["(?:6[89]|7[235-9])\\d{7}",[9]],["800\\d{6}",[9]],["90[016]\\d{6}",[9]],["878\\d{6}",[9]],["860\\d{9}",[12]],["5[18]\\d{7}",[9]],["74[0248]\\d{6}",[9]],0,["84[0248]\\d{6}",[9]]]],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]],0,0,0,0,0,0,[["2(?:[15]\\d{3}|7(?:2(?:0[23]|1[2357]|2[245]|3[45]|4[3-5])|3(?:06|1[69]|[2-6]7)))\\d{5}"],["0[157]\\d{8}"]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]],0,0,0,0,0,0,[["(?:2\\d|3[13-7]|4[1-5])\\d{3}"],["[578]\\d{4}"]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]],0,0,0,0,0,0,[["2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:(?:2\\d|50)\\d|3(?:[034679]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-389])|600)|646[59])|(?:600|80[1-9])\\d\\d|9(?:(?:10[0-2]|7[1-9]\\d)\\d|3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",[9]],["2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:(?:2\\d|50)\\d|3(?:[034679]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-389])|600)|646[59])|80[1-8]\\d\\d|9(?:(?:10[0-2]|7[1-9]\\d)\\d|3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",[9]],["(?:123|8)00\\d{6}",[9,11]],0,0,0,0,0,["44\\d{7}",[9]],["600\\d{7,8}",[10,11]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]],0,0,0,0,0,0,[["2(?:22|33)\\d{6}",[9]],["(?:24[23]|6(?:[25-9]\\d|40))\\d{6}",[9]],["88\\d{6,7}"]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4}
876)","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,[["(?:10(?:[02-79]\\d\\d|[18](?:0[1-9]|[1-9]\\d))|2(?:[02-57-9]\\d{3}|1(?:[18](?:0[1-9]|[1-9]\\d)|[2-79]\\d\\d))|(?:41[03]|8078|9(?:78|94))\\d\\d)\\d{5}|(?:10|2[0-57-9])(?:1(?:00|23)\\d\\d|95\\d{3,4})|(?:41[03]|9(?:78|94))(?:100\\d\\d|95\\d{3,4})|8078123|(?:43[35]|754|851)\\d{7,8}|(?:43[35]|754|851)(?:1(?:00\\d|23)\\d|95\\d{3,4})|(?:3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]\\d{7}|1(?:0(?:0\\d\\d(?:\\d{3})?|[1-9]\\d{5})|[13-9]\\d{6}|2(?:[0-24-9]\\d{5}|3\\d(?:\\d{4})?))|9(?:[0-46-9]\\d{6}|5\\d{3}(?:\\d(?:\\d{2})?)?))|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[24-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))(?:[02-8]\\d{6}|1(?:0(?:0\\d\\d(?:\\d{2})?|[1-9]\\d{4})|[13-9]\\d{5}|2(?:[0-24-9]\\d{4}|3\\d(?:\\d{3})?))|9(?:[0-46-9]\\d{5}|5\\d{3,5}))",[7,8,9,10,11]],["1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\\d{8}",[11]],["(?:(?:10|21)8|8)00\\d{7}",[10,12]],["16[08]\\d{5}",[8]],0,0,0,0,0,["10(?:10\\d{4}|96\\d{3,4})|400\\d{7}|950\\d{7,8}|(?:2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}",[7,8,9,10,11]]],"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?",0,0,0,[["601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|(?:46|60(?:[18][1-9]|[24-7][2-9]))\\d{6}",[8,10]],["333301[0-5]\\d{3}|3333(?:00|2[5-9]|[3-9]\\d)\\d{4}|(?:3(?:(?:0[0-5]|1\\d|5[01]|70)\\d|2(?:[0-3]\\d|4[1-9])|3(?:00|3[0-24-9]))|9(?:101|408))\\d{6}",[10]],["1800\\d{7}",[11]],["(?:19(?:0[01]|4[78])|901)\\d{7}",[10,11]]]],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))",0,0,0,[["210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}",[8]],["(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}",[8]],["800\\d{7}",[10]],["90[059]\\d{7}",[10]],0,0,0,0,["(?:210[0-6]|4\\d{3}|5100)\\d{4}",[8]]]],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:3[23]|4[89])\\d{4,6}|(?:31|4[36]|8(?:0[25]|78)\\d)\\d{6}|(?:2[1-4]|4[1257]|7\\d)\\d{5,6}"],["(?:5\\d|6[2-4])\\d{6}",[8]],["800\\d{7}",[10]],0,0,0,0,0,0,["807\\d{7}",[10]]]],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]],0,0,0,0,0,0,[["2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}"],["(?:36|5[1-389]|9\\d)\\d{5}"],["800\\d{4}"],0,0,0,0,0,["(?:3[3-5]|4[356])\\d{5}"]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]",[["9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}"],["953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}"],0,0,0,0,0,["955\\d{5}",[8]],0,["60[0-2]\\d{4}",[7]]]],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]],0,0,0,0,0,0,[["2[2-6]\\d{6}"],["9(?:10|[4-79]\\d)\\d{5}"],["800\\d{5}"],["90[09]\\d{5}"],["700\\d{5}"],0,["(?:50|77)\\d{6}"],0,0,["80[1-9]\\d{5}"]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,[["(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}",[9]],["7(?:060\\d|19(?:[0-5]\\d|6[0-6]))\\d{4}|(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}",[9]],["800\\d{6}",[9]],["9(?:0[05689]|76)\\d{6}",[9]],["70[01]\\d{6}",[9]],["9(?:3\\d{9}|6\\d{7,10})"],["9(?:5\\d|7[2-4])\\d{6}",[9]],0,["9[17]0\\d{6}",[9]],["8[134]\\d{7}",[9]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0",0,0,0,0,0,[["32\\d{9,11}|49[1-6]\\d{10}|322\\d{6}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\d|[4-6][
8760-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\d|[589][0-7]|6[0-8]|7[0-467]))\\d{3,12}",[5,6,7,8,9,10,11,12,13,14,15]],["1(?:(?:5(?:[0-25-9]\\d\\d|3(?:10|33))|7[26-9]\\d\\d)\\d{6}|6[023]\\d{7,8})|17\\d{8}",[10,11]],["800\\d{7,12}",[10,11,12,13,14,15]],["(?:137[7-9]|900(?:[135]|9\\d))\\d{6}",[10,11]],["700\\d{8}",[11]],["1(?:6(?:013|255|399)|7(?:(?:[015]1|[69]3)3|[2-4]55|[78]99))\\d{7,8}|15(?:(?:[03-68]00|113)\\d|2\\d55|7\\d99|9\\d33)\\d{7}",[12,13]],["18(?:1\\d{5,11}|[2-9]\\d{8})",[8,9,10,11,12,13,14]],["16(?:4\\d{1,10}|[89]\\d{1,11})",[4,5,6,7,8,9,10,11,12,13,14]],0,["180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}",[7,8,9,10,11,12,13,14]]]],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]],0,0,0,0,0,0,[["2(?:1[2-5]|7[45])\\d{5}"],["77\\d{6}"]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:[0-59][1-9]|[6-8]\\d)|3(?:[0-3][1-9]|4[13]|5[1-58]|6[1347-9]|7\\d|8[1-8]|9[1-79])|4(?:[0-25][1-9]|[34][2-9]|6[13-579]|7[13579]|8[1-47]|9[127])|5(?:[0-36][1-9]|4[146-9]|5[3-57-9]|7[568]|8[1-358]|9[1-69])|6(?:[0135][1-9]|2[1-68]|4[2-8]|6[1689]|[78]\\d|9[15689])|7(?:[0-69][1-9]|7[3-9]|8[147])|8(?:[16-9][1-9]|2[1-58])|9(?:[1-47-9][1-9]|6\\d))\\d{5}"],["(?:2[6-8]|37|6[78]|96)\\d{6}|(?:2[0-59]|3[0-689]|[457]\\d|6[0-69]|8[126-9]|9[1-47-9])[1-9]\\d{5}"],["80\\d{6}"],["90\\d{6}"]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767",[["767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}"],["767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9",[["8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}"],["8[024]9[2-9]\\d{6}"],["800(?:14|[2-9]\\d)\\d{5}|8[024]9[01]\\d{6}|8(?:33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0",0,0,0,0,0,[["9619\\d{5}|(?:1\\d|2[013-79]|3[0-8]|4[013-689])\\d{6}"],["(?:5(?:4[0-29]|5\\d|6[0-3])|6(?:[569]\\d|7[0-6])|7[7-9]\\d)\\d{6}",[9]],["800\\d{6}",[9]],["80[3-689]1\\d{5}",[9]],0,0,0,0,["98[23]\\d{6}",[9]],["80[12]1\\d{5}",[9]]]],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["[2-7][2-7]\\d{6}",[8]],["964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}",[9]],["1800\\d{7}|1[78]00\\d{6}",[10,11]],0,0,0,0,0,["[2-7]890\\d{4}",[8]]]],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}",[7]],["(?:5\\d{5}|8(?:1(?:0(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[2-6]|1\\d)|[2-79]\\d\\d)\\d)|2(?:0(?:0(?:00|4\\d)|(?:19|[2-7]\\d)\\d)|(?:(?:[124-69]\\d|3[5-9])\\d|7(?:[
8760-79]\\d|8[013-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}",[7,8]],["800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}"],["(?:40\\d\\d|900)\\d{4}",[7,8]],["70[0-2]\\d{5}",[8]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0",0,0,0,0,0,[["13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2\\d|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}",[8,9]],["1[0-25]\\d{8}",[10]],["800\\d{7}",[10]],["900\\d{7}",[10]]]],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}"],["(?:17[1-3]|7\\d\\d)\\d{4}"]]],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]],0,0,0,0,0,0,[["96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}"],["96906(?:09|10)\\d\\d|(?:590(?:10[0-2]|600)|97390\\d)\\d{3}|(?:6\\d|7[1-48])\\d{7}"],["[89]00\\d{6}"],["80[367]\\d{6}"],["70\\d{7}"],0,["51\\d{7}"],0,0,["90[12]\\d{6}"]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0",0,0,0,0,0,[["(?:11(?:[124]\\d\\d|3(?:[0-79]\\d|8[0-7])|5(?:[02-9]\\d|1[0-57-9])|6(?:[02-79]\\d|1[0-57-9]|8[0-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}"],["700[1-9]\\d{5}|(?:7(?:0[1-9]|1[0-8]|2[1-35-79]|3\\d|77|86|99)|9\\d\\d)\\d{6}"]]],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",[["1[3-7][1-8]\\d{3,6}|(?:19[1-8]|[23568][1-8]\\d|9(?:00|[1-8]\\d))\\d{2,6}",[5,6,7,8,9]],["4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",[6,7,8,9,10]],["800\\d{4,6}",[7,8,9]],["[67]00\\d{5,6}",[8,9]],0,0,["20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}"]],"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,[["603\\d{4}|(?:3[0-5]|6[25-7]|8[58])\\d{5}",[7]],["(?:[279]\\d|45|5[01568]|8[034679])\\d{5}",[7]],["0800\\d{7}",[11]]],"00"],FK:["500","00","[2-7]\\d{4}",[5],0,0,0,0,0,0,0,[["[2-47]\\d{4}"],["[56]\\d{4}"]]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]],0,0,0,0,0,0,[["31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-6]\\d)\\d)\\d{3}"],["31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]\\d)\\d)\\d{3}"]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))",0,0,0,[["(?:20|[34]\\d|8[19])\\d{4}"],["(?:[27][1-9]|5\\d|9[16])\\d{4}"],["80[257-9]\\d{3}"],["90(?:[13-5][15-7]|2[125-7]|9\\d)\\d\\d"],0,0,0,0,["(?:6[0-36]|88)\\d{4}"]]],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0",0,0,0,0,0,[["(?:26[013-9]|59[1-35-9])\\d{6}|(?:[13]\\d|2[0-57-9]|4[1-9]|5[0-8])\\d{7}"],["(?:6(?:[0-24-8]\\d|3[0-8]|9[589])|7[3-9]\\d)\\d{6}"],["80[0-5]\\d{6}"],["836(?:0[0-36-9]|[1-9]\\d)\\d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]\\d|8[0-35-9])\\d{6}"],0,0,["80[6-9]\\d{6}"],0,["9\\d{8}"],["8(?:1[01]|2[0156]|4[024]|84)\\d{6}"]]],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1",0,0,[["[01]1\\d{6}",[8]],["(?:(?:0[2-7]|7[467])\\d|6(?:0[0-4]|10|[256]\\d))\\d{5}|[2-7]\\d{6}"]]],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])
876))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473",[["473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-4]|5[59]|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}"],["473(?:4(?:0[2-79]|1[04-9]|2[0-5]|49|5[6-8])|5(?:2[01]|3[3-8])|901)\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0",0,0,0,0,0,[["(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}"],["5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|5(?:0(?:0(?:1[09]|70)|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}|(?:5(?:0(?:0(?:0\\d|1[12]|22|3[0-6]|44|5[05]|77|88|9[09])|(?:[14]\\d|77)\\d|22[02])|1(?:1(?:[03][01]|[124]\\d|5[2-6]|7[0-6])|4\\d\\d)|[23]555|4(?:4\\d\\d|555)|5(?:[0157-9]\\d\\d|200|333|444)|6[89]\\d\\d|7(?:(?:[0147-9]\\d|22)\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}"],["800\\d{6}"],0,0,0,0,0,["70[67]\\d{6}"]]],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0",0,0,0,0,0,[["594(?:[02-49]\\d|1[0-5]|5[6-9]|6[0-3]|80)\\d{4}"],["(?:694(?:[0-249]\\d|3[0-8])|7093[0-3])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:396|76\\d)\\d|476[0-6])\\d{4}"]]],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0",0,0,0,0,0,[["3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}",[9]],["(?:2(?:[0346-9]\\d|5[67])|5(?:[03-7]\\d|9[1-9]))\\d{6}",[9]],["800\\d{5}",[8]]]],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]],0,0,0,0,0,0,[["2190[0-2]\\d{3}|2(?:0(?:[02]\\d|3[01])|16[24-9]|2[2-5]\\d)\\d{4}"],["5251[0-4]\\d{3}|(?:5(?:[146-8]\\d\\d|250)|60(?:1[01]|6\\d))\\d{4}"]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]],0,0,0,0,0,0,[["(?:19|3[1-7]|[68][1-9]|70|9\\d)\\d{4}"],["[245]\\d{5}"],["80\\d{4}"],0,0,0,0,0,["3[89]\\d{4}"]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[["(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8[0-589]\\d\\d)\\d{3}"],["556\\d{4}|(?:[23679]\\d|4[015]|5[0-489]|8[67])\\d{5}"]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]],0,0,0,0,0,0,[["3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}",[8]],["6[0-356]\\d{7}",[9]],0,0,0,0,0,0,["722\\d{6}",[9]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]],0,0,0,0,0,0,[["33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}"],["(?:222|55\\d)\\d{6}"],["80\\d[1-9]\\d{5}"],["90\\d[1-9]\\d{5}
876"]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["2(?:1\\d\\d|2(?:2[1-46-9]|[36][1-8]|4[1-7]|5[1-4]|7[1-5]|[89][1-9])|3(?:1\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\d|[269][1-6]|3[1245]|4[1-7]|5[13-9]|7[14]|8[1-5])|7(?:1\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\d|2[1-5]|[34][1-4]|9[1-57]))\\d{6}",[10]],["68[57-9]\\d{7}|(?:69|94)\\d{8}",[10]],["800\\d{7,9}"],["90[19]\\d{7}",[10]],["70\\d{8}",[10]],0,["5005000\\d{3}",[10]],0,0,["8(?:0[16]|12|[27]5|50)\\d{7}",[10]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[["[267][2-9]\\d{6}",[8]],["(?:[3-5]\\d\\d|80[0-4])\\d{5}",[8]],["18[01]\\d{8}",[11]],["19\\d{9}",[11]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671",[["671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[478])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]],0,0,0,0,0,0,[["443\\d{6}",[9]],["9(?:5\\d|6[569]|77)\\d{6}",[9]],0,0,0,0,0,0,["40\\d{5}",[7]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56]
876)|50[0-6]|77[1-57])\\d{4}"],["(?:51[01]|6\\d\\d|7(?:[0-5]\\d|6[0-69]|70))\\d{4}"],["(?:289|8(?:00|6[28]|88|99))\\d{4}"],["9008\\d{3}"],0,0,0,0,["515\\d{4}"]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,[["(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:4[0-8]|[579]\\d|6[0-5]))|58(?:0[1-9]|1[2-9]))\\d{4}",[8]],["(?:4(?:09[3-6]|44[0-35-9]|6(?:4[0-57-9]|6[0-6])|7(?:4[0-48]|6[0-5]))|5(?:25[3-7]|35[4-8]|73[0-6]|95[0-8])|6(?:26[013-8]|(?:66|78)[0-5])|70(?:7[1-8]|8[0-8])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[014-9]|59[0-467]|899))\\d{4}|(?:4(?:4[0-35-9]|6[0-357-9]|7[0-35])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-59]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",[8]],["800\\d{6}",[9]],["900(?:[0-24-9]\\d{7}|3\\d{1,4})",[5,6,7,8,11]],["8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}",[8]],0,["30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}",[8]],["7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}",[8]]],"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]],0,0,0,0,0,0,[["2(?:2(?:0[0-59]|1[1-9]|[23]\\d|4[02-7]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[578]|2[3-59]|3[13-9]|4[0-68]|5[1-3589])|5(?:0[2357-9]|1[1-356]|4[03-5]|5\\d|6[014-69]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[047]|4[0-378]|[78][0-8]|9[01])|7(?:0[5-79]|6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",[8]],["[37-9]\\d{7}",[8]],["8002\\d{7}",[11]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[["1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}",[8,9]],["9(?:(?:0[1-9]|[12589]\\d)\\d\\d|7(?:[0679]\\d\\d|5(?:[01]\\d|44|55|77|9[5-79])))\\d{4}|98\\d{6}",[8,9]],["80\\d{5,7}"],["6[01459]\\d{6}|6[01]\\d{5}",[7,8]],["7[45]\\d{6}",[8]],0,["62\\d{6,7}|72\\d{6}",[8,9]]]],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]],0,0,0,0,0,0,[["2(?:2\\d|5[1-5]|81|9[149])\\d{5}"],["(?:[34]\\d|5[56])\\d{6}"],["8\\d{7}"],0,0,0,0,0,["9(?:[67][0-4]|8[0-3589]|9\\d)\\d{5}"]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06",0,0,0,0,0,[["(?:1\\d|[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6[23689]|8[2-57-9]|9[2-69])\\d{6}",[8]],["(?:[257]0|3[01])\\d{7}",[9]],["(?:[48]0\\d|680[29])\\d{5}"],["9[01]\\d{6}",[8]],0,0,["38\\d{7}",[9]],0,["21\\d{7}",[9]]]],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0",0,0,0,0,0,[["2[124]\\d{7,8}|619\\d{8}|2(?:1(?:14|500)|2\\d{3})\\d{3}|61\\d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:[25]\\d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]\\d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}",[7,8,9,10,11]],["8[1-35-9]\\d{7,10}",[9,10,11,12]],["00(?:1803\\d{5,11}|7803\\d{7})|(?:177\\d|800)\\d{5,7}",[8,9,10,11,12,13,14,15,16,17]],["809\\d{7}",[10]],0,0,["(?:1500|8071\\d{3})\\d{3}",[7,10]],0,0,["804\\d{7}",[10]]]],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:1\\d|21)\\d{6,7}|(?:2[24-9]|4(?:0[24]|5\\d|7)|5(?:0[45]|1\\d|8)|6(?:1\\d|[237-9])|9(?:1\\d|[35-9]))\\d{5}|(?:23|4(?:[1-469]|8\\d)|5[23679]|6[4-6]|7[14]|9[04])\\d{7}"],["8(?:22|[35-9]\\d)\\d{6}",[9]],["1800\\d{6}",[10]],["15(?:1[2-8]|[2-8]0|9[089])\\d{6}",[10]],["700\\d{6}",[9]],["88210[1-9]\\d{4}|8(?:[35-79]5\\d\\d|8(?:[013-9]\\d\\d|2(?:[01][1-9]|[2-9]\\d)))\\d{5}",[10]],["818\\d{6}",[9]],0,["76\\d{7}",[9]],["18[59]0\\d{6}",[10]]]],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0",0,0,0,0,0,[["153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}
876",[8,11,12]],["55(?:4(?:0[0-2]|[16]0)|57[0-289])\\d{4}|5(?:(?:[0-2][02-9]|[36]\\d|[49][2-9]|8[3-7])\\d|5(?:01|2\\d|3[0-3]|4[3-5]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}",[9]],["1(?:255|80[019]\\d{3})\\d{3}",[7,10]],["1212\\d{4}|1(?:200|9(?:0[0-2]|19))\\d{6}",[8,10]],0,["151\\d{8,9}",[11,12]],["1599\\d{6}",[10]],0,["7(?:38(?:[05]\\d|8[0138])|8(?:33|55|77|81)\\d)\\d{4}|7(?:18|2[23]|3[237]|47|6[258]|7\\d|82|9[2-9])\\d{6}",[9]],["1700\\d{6}",[10]]]],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24",[["1624(?:230|[5-8]\\d\\d)\\d{3}"],["76245[06]\\d{4}|7(?:4576|[59]24\\d|624[0-4689])\\d{5}"],["808162\\d{4}"],["8(?:440[49]06|72299\\d)\\d{3}|(?:8(?:45|70)|90[0167])624\\d{4}"],["70\\d{8}"],0,["3440[49]06\\d{3}|(?:3(?:08162|3\\d{4}|45624|7(?:0624|2299))|55\\d{4})\\d{4}"],0,["56\\d{8}"]]],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0",0,0,0,0,0,[["(?:2717(?:[2-7]\\d|95)|6828[235-7]\\d)\\d{4}|(?:170[24]|280[13468]|4(?:20[24]|72[2-8])|552[1-7])\\d{6}|(?:271[0-689]|682[0-79]|782[0-6])[2-7]\\d{5}|(?:2(?:[02][2-79]|90)|3(?:23|80)|683|79[1-7])\\d{7}|(?:11|33|4[04]|80)[2-7]\\d{7}|(?:342|674|788)(?:[0189][2-7]|[2-7]\\d)\\d{5}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[13]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[014-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[3-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1245]|4[5-8]|5[125689]|6[235-7]|7[157-9]|8[2-46-8])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2
876-689]|6[24578]|7[235689]|8[14-6])|7(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|8[013-7]|9[089])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d[2-7]\\d{5}",[10]],["(?:6(?:1279|828[01489])|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:160[01]|6(?:12|[2-47]1|5[17]|6[13]|80)[0189]|7(?:1(?:2[0189]|9[0-5])|2(?:[14][017-9]|8[0-59])|3(?:2[5-8]|[34][017-9]|9[016-9])|4(?:1[015-9]|[29][89]|39|8[389])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:7(?:31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:0\\d|2[0235-79]|3[05-8]|40|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[235689]\\d|4[0189])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-5])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]|881))[0189]\\d{5}",[10]],["000800\\d{7}|180(?:0\\d{4,9}|3\\d{9})"],["186[12]\\d{9}",[13]],0,0,["140\\d{7}",[10]],0,0,["1860\\d{7}",[11]]]],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]],0,0,0,0,0,0,[["37\\d{5}"],["38\\d{5}"]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}",[8,9]],["7[3-9]\\d{8}",[10]]]],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0",0,0,0,0,0,[["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|(?:12\\d|30[0-2])\\d|2(?:[02689]0\\d|121)|4(?:111|40\\d))\\d{4}",[6,7,10]],["9(?:(?:0[0-5]|[13]\\d|2[0-3])\\d\\d|9(?:[0-46]\\d\\d|5(?:10|5\\d)|8(?:[12]\\d|88)|9(?:[01359]\\d|21|69|77|8[7-9])))\\d{5}",[10]],0,0,0,0,["96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])",[4,5]]]],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["(?:4(?:1[0-24-69]|2[0-7]|[37][0-8]|4[0-24589]|5[0-68]|6\\d|8[0-36-8])|5(?:05|[156]\\d|2[02578]|3[0-579]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|872)\\d{4}",[7]],["(?:38[589]\\d\\d|6(?:1[1-8]|2[0-6]|3[026-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9\\d)|7(?:5[057]|[6-9]\\d)|8(?:2[0-59]|[3-69]\\d|8[238]))\\d{4}"],["80[0-8]\\d{4}",[7]],["90(?:0\\d|1[5-79]|2[015-79]|3[135-79]|4[125-7]|5[25-79]|7[1-37]|8[0-35-7])\\d{3}",[7]],0,["(?:689|8(?:7[18]|80)|95[48])\\d{4}",[7]],["809\\d{4}",[7]],0,["49[0-24-79]\\d{4}",[7]]],"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876",[["8766060\\d{3}|(?:658(?:2(?:[5-8]\\d|9[0-46-9])|[3-9]\\d\\d)|876(?:52[35]|6(?:0[1-3579]|1[0235-9]|[23]\\d|40|5[06]|6[2-589]|7[0-25-9]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468])))\\d{4}"],["(?:6582(?:[0-4]\\d|95)|876(?:2(?:0[1-9]|[13-9]\\d|2[013-9])|[348]\\d\\d|5(?:0[1-9]|[1-9]\\d)|6(?:4[89]|6[
87667])|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0",0,0,0,0,0,[["87(?:000|90[01])\\d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))\\d{4}",[8]],["(?:427|7(?:[78][0-25-9]|9\\d))\\d{6}",[9]],["80\\d{6}",[8]],["9\\d{7}",[8]],["70\\d{7}",[9]],0,["8(?:10|8\\d)\\d{5}",[8]],["74(?:66|77)\\d{5}",[9]],0,["85\\d{6}",[8]]]],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1",0,0,[["(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])\\d|4(?:[2-578]\\d|6[02-8]|9[2-59])|5(?:[2-589]\\d|6[1-9]|7[2-8])|7(?:[25-9]\\d|3[4-9]|4[02-9])|8(?:[2679]\\d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]\\d|[679][1-9]))\\d{6}",[9]],["(?:601[0-4]0|[7-9]0[1-9]\\d\\d)\\d{5}",[10]],["00777(?:[01]|5\\d)\\d\\d|(?:00(?:7778|882[1245])|(?:120|800\\d)\\d\\d)\\d{4}|00(?:37|66|78)\\d{6,13}"],["990\\d{6}",[9]],["60\\d{7}",[9]],0,["570\\d{6}",[9]],["20\\d{8}",[10]],["50[1-9]\\d{7}",[10]]]],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,[["(?:4[245]|5[1-79]|6[01457-9])\\d{5,7}|(?:4[136]|5[08]|62)\\d{7}|(?:[24]0|66)\\d{6,7}",[7,8,9]],["(?:1(?:0[0-8]|1\\d|2[014]|[34]0)|7\\d\\d)\\d{6}",[9]],["800[02-8]\\d{5,6}",[9,10]],["900[02-9]\\d{5}",[9]]]],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}",[9]],["312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|600|7(?:[07]\\d|55)|88[08]|9(?:12|9[05-9]))\\d{6}",[9]],["800\\d{6,7}"]]],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["23(?:4(?:[2-4]|[56]\\d)|[568]\\d\\d)\\d{4}|23[236-9]\\d{5}
876|(?:2[4-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:(?:[237-9]|4[56]|5\\d)\\d{5}|6\\d{5,6})",[8,9]],["(?:(?:1[28]|3[18]|9[67])\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d))\\d{6}|(?:1\\d|9[0-57-9])\\d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48\\d{5}",[8,9]],["1800(?:1\\d|2[019])\\d{4}",[10]],["1900(?:1\\d|2[09])\\d{4}",[10]]]],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0",0,0,0,0,0,[["(?:[24]\\d|3[1-9]|50|65(?:02[12]|12[56]|22[89]|[3-5]00)|7(?:27\\d\\d|3100|5(?:02[12]|12[56]|22[89]|[34](?:00|81)|500))|8[0-5])\\d{3}"],["(?:6200[01]|7(?:310[1-9]|5(?:02[03-9]|12[0-47-9]|22[0-7]|[34](?:0[1-9]|8[02-9])|50[1-9])))\\d{3}|(?:63\\d\\d|7(?:(?:[0146-9]\\d|2[0-689])\\d|3(?:[02-9]\\d|1[1-9])|5(?:[0-2][013-9]|[34][1-79]|5[1-9]|[6-9]\\d)))\\d{4}",[8]],0,0,0,0,0,0,["30(?:0[01]\\d\\d|12(?:11|20))\\d\\d",[8]]]],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]],0,0,0,0,0,0,[["7[4-7]\\d{5}"],["[34]\\d{6}"],0,["8\\d{6}"]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869",[["869(?:2(?:29|36)|302|4(?:6[015-9]|70)|56[5-7])\\d{4}"],["869(?:48[89]|55[6-8]|66\\d|76[02-7])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:195|2)\\d|3[19]|4[159]|5[37]|6[17]|7[39]|85)\\d{6}"],["19[1-3]\\d{7}",[10]]]],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?",0,0,0,[["(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}",[5,6,8,9,10]],["1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[0-46-9]|[16-9]\\d|2[013-9])\\d{6,7}",[9,10]],["00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|[38]0)\\d{7}",[9,11,12,13,14]],["60[2-9]\\d{6}",[9]],["50\\d{8,9}",[10,11]],0,["1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[0168]|88)|8(?:00|33|55|77|99))\\d{4}",[8]],["15\\d{7,8}",[9,10]],["70\\d{8}",[10]]]],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]],0,0,0,0,0,0,[["2(?:[23]\\d\\d|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7]))\\d{4}",[8]],["(?:41\\d\\d|5(?:(?:[05]\\d|1[0-7]|6[56])\\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\\d)\\d|1(?:00|11|6[16])|2[26]2|3[36]3|4[46]4|7(?:0[013-9]|[67]\\d)|8[68]8|9(?:[069]\\d|3[039]))|9(?:(?:[04679]\\d|8[057-9])\\d|1(?:00|1[01]|99)|2(?:00|2\\d)|3(?:00|3[03])|5(?:00|5\\d)))\\d{4}",[8]],["18\\d{5}",[7]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345",[["345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|4[89]|88)|9(?:14|4[035-9]))\\d{4}"],["345(?:32[1-9]|42[0-4]|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|82[56]|9(?:1[679]|2[2-9]|3[06-9]|90))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["(?:345976|900[2-9]\\d\\d)\\d{4}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",[["(?:33622|7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9]|97)|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]|59))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59))))\\d{5}",[10]],["7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)\\d{7}",[10]],["8(?:00|108\\d{3})\\d{7}"],["809\\d{7}",[10]],["808\\d{7}",[10]],0,0,0,["751\\d{7}",[10]]],"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,0,0,0,0,[["(?:2[13]|[35-7][14]|41|8[1468])\\d{6}",[8]],["(?:20(?:[23579]\\d|8[78])|30[24]\\d)\\d{6}|30\\d{7}",[9,10]]]],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0",0,0,0,0,0,[["7(?:62|8[0-6]|9[04-9])\\d{4}|(?:[14-69]\\d|2(?:[14-69]\\d|[78][1-9])|7[2-57]|8[02-9])\\d{5}
876"],["(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[7-9]|9[0-4]))\\d{5}"],0,["9[01]\\d{6}",[8]],0,0,0,0,0,["80\\d{6}",[8]]]],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758",[["758(?:234|4(?:30|5\\d|6[2-9]|8[0-2])|57[0-2]|(?:63|75)8)\\d{4}"],["758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2\\d|3[0-3])|812)\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0",0,0,0,[["(?:2(?:01|1[27]|2[024]|3\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\d{4}",[7]],["(?:6(?:(?:4[5-9]|5\\d)\\d|6(?:[024-68]\\d|1[01]|3[7-9]|70))\\d|7(?:[37-9]\\d|42|56))\\d{4}"],["8002[28]\\d\\d|80(?:05\\d|9)\\d{4}"],["90(?:02[258]|1(?:23|3[14])|66[136])\\d\\d",[7]],0,["697(?:42|56|[78]\\d)\\d{4}",[9]],["870(?:28|87)\\d\\d",[7]]]],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0",0,0,0,0,0,[["(?:12[2-9]|602|8[12]\\d|9(?:1\\d|22|9[245]))\\d{6}|(?:11|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}"],["7(?:[0-25-8]\\d|4[0-4])\\d{6}"],0,0,0,0,["1973\\d{5}"]]],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0",0,0,0,0,0,[["2\\d{7}",[8]],["(?:(?:(?:22|33)0|555|7(?:6[01]|7\\d)|88\\d)\\d|4(?:240|[67]))\\d{5}|[56]\\d{6}",[7,9]],0,["332(?:02|[34]\\d)\\d{4}",[9]]]],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]],0,0,0,0,0,0,[["2\\d{7}"],["[56]\\d{7}"],["800[1256]\\d{4}"]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]",0,0,0,[["(?:3[1478]|4[124-6]|52)\\d{6}"],["6\\d{7}"],["80[02]\\d{5}"],["9(?:0[0239]|10)\\d{5}"],["70[05]\\d{5}"],0,["70[67]\\d{5}"],0,["[89]01\\d{5}"],["808\\d{5}"]]],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)",0,0,0,[["(?:35[013-9]|80[2-9]|90[89])\\d{1,8}|(?:2[2-9]|3[0-46-9]|[457]\\d|8[13-9]|9[2-579])\\d{2,9}"],["6(?:[269][18]|5[1568]|7[189]|81)\\d{6}",[9]],["800\\d{5}",[8]],["90[015]\\d{5}",[8]],0,0,0,0,["20(?:1\\d{5}|[2-689]\\d{1,7})",[4,5,6,7,8,9,10]],["801\\d{5}",[8]]]],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]],0,0,0,0,0,0,[["6\\d{7}"],["2333[0-8]\\d{3}|2(?:[0-24-9]\\d\\d|3(?:0[07]|[14-9]\\d|2[02-9]|3[0-24-9]))\\d{4}"],["80\\d{6}"],["90\\d{6}"],0,0,0,0,0,["81\\d{6}"]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:0[56]|[1-6]\\d|7[124579]|8[124])|3(?:1\\d|2[2356])|4(?:[17]\\d|2[1-357]|5[2-4]|8[124])|5(?:[1347]\\d|2[1-469]|5[13-5]|8[1-4])|6(?:[1-479]\\d|5[2-57]|8[1-5])|7(?:[13]\\d|2[13-79])|8(?:[124]\\d|5[124]|84))\\d{6}"],["9[1-6]\\d{7}"]]],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]",[["5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-9])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0",0,0,0,0,0,[["(?:870|9[2-47-9]\\d)\\d{5}",[8]],["4(?:[469]\\d|5[1-9])\\d{5}|(?:3|[67]\\d)\\d{7}"],["(?:800|90\\d)\\d{5}",[8]]]],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:2[1-9]|3[1-79])\\d|5(?:33|5[257]))\\d{5}"],["562\\d{5}|(?:6\\d|7[16-9])\\d{6}"],["800\\d{5}"],["90[056]\\d{5}"],0,0,["803\\d{5}"],0,["3[08]\\d{6}"],["808\\d{5}
876"]]],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:20[2-8]|3(?:[0-2][2-7]|3[24-7])|4(?:0[2-467]|1[2467])|5(?:0[2467]|1[24-7]|2[2-467]))\\d{5}",[8]],["6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}",[8]],["80(?:[0-2578]|9\\d)\\d{5}"],["9(?:4[1568]|5[178])\\d{5}",[8]],0,0,["77[1-9]\\d{5}",[8]],0,["78[1-49]\\d{5}",[8]]]],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1",0,0,[["2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[356]|8[268]|9[2457])\\d{5}"],["3[2-9]\\d{7}"],0,0,0,0,0,0,["22\\d{7}"]]],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1",0,0,0,0,0,[["(?:247|528|625)\\d{4}"],["(?:(?:23|54)5|329|45[35-8])\\d{4}"],0,0,0,0,0,0,["635\\d{4}"]]],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:2(?:62|77)0|3444)\\d|4[56]440)\\d{3}|(?:34|4[357])700\\d{3}|(?:2(?:[0-3]\\d|5[0-578]|6[01]|82)|3(?:1[3-68]|[23][2-68]|4[23568])|4(?:[23][2-68]|4[3-68]|5[2568]|6[25-8]|7[24-68]|8[4-68]))\\d{5}"],["7(?:3555|(?:474|9[019]7)7)\\d{3}|7(?:[0-25-8]\\d\\d|3(?:[1-478]\\d|6[01])|4(?:2\\d|60|7[01578])|9(?:[2-4]\\d|5[01]|7[015]))\\d{4}"],["800\\d{5}"],["5\\d{7}"],0,0,0,0,0,["8(?:0[1-9]|[1-9]\\d)\\d{5}"]]],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],0,0,0,0,0,0,[["2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-59]))\\d{5}"],["2(?:0(?:01|79)|17\\d)\\d{4}|(?:5[0-3]|[679]\\d|8[2-59])\\d{6}"],["80\\d{6}"]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:(?:12|[28]\\d|3[56]|7[3-6]|9[0-6])\\d|4(?:2[29]|7[0-2]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|22|7[0-2]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[013])|3(?:20\\d|4(?:70|83)|56)|420\\d|5(?:2\\d|470))|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|2472|3(?:20\\d|470)|4(?:2[04]\\d|472)|7(?:3\\d\\d|4[67]0|8(?:[01459]\\d|8))))\\d{4}|5(?:2(?:2\\d{5,6}|47[02]\\d{4})|(?:3472|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[01])|8(?:20\\d|47[02])|9(?:20\\d|470))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:(?:2\\d|51)\\d|4(?:[1-35-9]\\d|4[0-57-9]))|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|(?:[35]2|64)\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}",[6,7,8,9]],["(?:17[01]|9(?:2(?:[0-4]|[56]\\d\\d)|(?:3(?:[0-36]|4\\d)|(?:6\\d|8[89]|9[4-8])\\d|7(?:3|40|[5-9]\\d))\\d|4(?:(?:[0245]\\d|[1379])\\d|88)|5[0-6])\\d)\\d{4}|9[69]1\\d{6}|9(?:[68]\\d|9[089])\\d{5}",[7,8,9,10]],["80080(?:0[1-9]|2\\d)\\d{3}",[10]],0,0,0,0,0,["1333\\d{4}",[8]]]],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0",0,0,0,0,0,[["[12]2[1-3]\\d{5,6}|(?:(?:[12](?:1|27)|5[368])\\d\\d|7(?:0(?:[0-5]\\d|7[078]|80)|128))\\d{4}|[12](?:3[2-8]|4[2-68]|5[1-4689])\\d{6,7}"],["92[0139]\\d{5}|(?:5[05]|6[069]|7[28]|8[0135689]|9[013-9])\\d{6}",[8]],0,0,0,0,0,0,["712[0-79]\\d{4}|7(?:1[013-9]|[5-79]\\d)\\d{5}",[8]]]],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]],0,0,0,0,0,0,[["(?:28[2-9]|8(?:11|[2-57-9]\\d))\\d{5}",[8]],["6800[0-79]\\d{3}|6(?:[235]\\d\\d|6(?:0[0-5]|[1-9]\\d)|8(?:0[1-9]|[14-8]\\d|2[5-9]|[39][0-4]))\\d{4}",[8]],["0800\\d{3}",[7]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670",[["670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:596(?:[03-7]\\d|1[05]|2[7-9]|8[0-39]|9[04-9])|80[6-9]\\d\\d|9(?:477[6-9]|767[4589]))\\d{4}"],["(?:69[67]\\d\\d|7091[0-3])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:397[0-3]|477[0-5]|76(?:6\\d|7[0-367]))\\d{4}"]]],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]],0,0,0,0,0,0,[["(?:25[08]|35\\d|45[1-7])\\d{5}"],["[2-4][0-46-9]\\d{6}"],["800\\d{5}"]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664",[["6644(?:1[0-3]|91)\\d{4}"],["664(?:3(?:49|9[1-6])|49[2-6])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]],0,0,0,0,0,0,[["20(?:3[1-4]|6[059])\\d{4}|2(?:0[19]|[1-357]\\d|60)\\d{5}"],["(?:7(?:210|[79]\\d\\d)|9(?:[29]\\d\\d|69[67]|8(?:1[1-3]|89|97)))\\d{4}"],["800(?:02|[3467]\\d)\\d{3}"],["5(?:0(?:0(?:37|43)|(?:6\\d|70|9[0168])\\d)|[12]\\d0[1-5])\\d{3}"],0,0,["501\\d{5}"],["7117\\d{4}"],["3550\\d{4}"]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,[["(?:2(?:[0346-8]\\d|1[0-8])|4(?:[013568]\\d|2[0-24-8]|71|90)|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}",[7,8]],["5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|(?:5(?:2[5-9]|4[3-689]|[57]\\d|8[0-689]|9[0-8])|7(?:0[0-7
vendor: 9,137 bytes, line 876
876]|3[013]))\\d{5}",[8]],["802\\d{7}|80[0-2]\\d{4}",[7,10]],["30\\d{5}",[7]],0,0,0,["219\\d{4}",[7]],["3(?:20|9\\d)\\d{4}",[7]]],"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,[["(?:3(?:0[0-4]|3[0-59])|6(?:[58][024689]|6[024-68]|7[02468]))\\d{4}",[7]],["(?:46[46]|[79]\\d\\d)\\d{4}",[7]],["800\\d{7}",[10]],["900\\d{7}",[10]],0,0,["4(?:0[01]|50)\\d{4}",[7]]],"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:1[2-9]|2[12]\\d\\d)\\d{5}"],["111\\d{6}|(?:31|77|[89][89])\\d{7}",[9]]]],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:0[01]|2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-36-9]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69]\\d|7[12]|8[1-8]))\\d{7}"],["(?:2(?:2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-36-9]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69]\\d|7[12]|8[1-8]))\\d{7}"],["8(?:00|88)\\d{7}"],["900\\d{7}"],["500\\d{7}"],0,0,0,0,["300\\d{7}"]],"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0",0,0,0,0,0,[["427[01]\\d{4}|(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}",[8,9]],["1(?:1888[689]|4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0-4]\\d|5[0-7]))|(?:[269]\\d|[37][1-9]|4[235-9])\\d|5(?:31|9\\d\\d)|8(?:1[23]|[236]\\d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))\\d{5}",[9,10]],["1[378]00\\d{6}",[10]],["1600\\d{6}",[10]],0,0,0,0,["15(?:4(?:6[0-4]\\d|8(?:0[125]|[17]\\d|21|3[01]|4[01589]|5[014]|6[02]))|6(?:32[0-6]|78\\d))\\d{4}",[10]]]],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}",[8]],["8[2-79]\\d{7}",[9]],["800\\d{6}",[9]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[["64426\\d{3}|6(?:1(?:2[2-7]|3[01378]|4[0-4])|254|32[0237]|4(?:27|41|5[25])|52[236-8]|626|7(?:2[2-4]|30))\\d{4,5}|6(?:1(?:(?:0\\d|2[0189]|3[24-69]|4[5-9])\\d|17|69|7[014])|2(?:17|5[0-36-8]|69|70)|3(?:17|2[14-689]|34|6[289]|7[01]|81)|4(?:17|2[0-2]|4[06]|5[0137]|69|7[01])|5(?:17|2[0459]|69|7[01])|6(?:17|25|38|42|69|7[01])|7(?:17|2[569]|3[13]|6[89]|7[01]))\\d{4}"],["(?:60|8[1245])\\d{7}",[9]],["80\\d{7}",[9]],["8701\\d{5}",[9]],0,0,0,0,["8(?:3\\d\\d|86)\\d{5}"]]],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]],0,0,0,0,0,0,[["(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}"],["(?:[579]\\d|8[0-79])\\d{4}"],["050\\d{3}"],["36\\d{4}"]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]],0,0,0,0,0,0,[["2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}"],["(?:23|7[0467]|[89]\\d)\\d{6}"],["08\\d{6}"],["09\\d{6}"]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1",0,0,[["(?:1(?:06|17|28|39)|3[0-2]\\d)\\d{3}"],["(?:14|3[58])\\d{4}"]]],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0",0,0,0,0,0,[["20(?:[1259]\\d|3[013-9]|4[1-8]|6[024-689]|7[1-79]|8[2-9])\\d{6}",[10]],["(?:702[0-24-9]|819[01])\\d{6}|(?:7(?:0[13-9]|[12]\\d)|8(?:0[1-9]|1[0-8])|9(?:0[1-9]|1[1-6]))\\d{7}",[10]],["800\\d{7,11}"],0,0,0,["700\\d{7,11}"]]],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]],0,0,0,0,0,0,[["2\\d{7}"],["(?:5(?:5[0-7]|[78]\\d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8\\d)\\d)\\d{5}"],["1800\\d{4}"]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:[035]\\d|1[13-578]|6[124-8]|7[24]|8[0-467])|2(?:[0346]\\d|2[2-46-9]|5[125]|9[479])|3(?:[03568]\\d|1[3-8]|2[01]|4[1-8])|4(?:[0356]\\d|1[1-368]|7[58]|8[15-8]|9[23579])|5(?:[0358]\\d|[19][1-9]|2[1-57-9]|4[13-8]|6[126]|7[0-3578])|7\\d\\d)\\d{6}",[9]],["(?:6[1-58]|970\\d)\\d{7}",[9,11]],["800\\d{4,7}",[7,8,9,10]],["90[069]\\d{4,7}",[7,8,9,10]],0,0,["140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|(?:140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)|8[478]\\d{6})\\d",[5,6,9]],["66\\d{7}",[9]],["(?:85|91)\\d{7}",[9]]]],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]",[["(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\d{6}",[8]],["(?:4[015-8]|9\\d)\\d{6}",[8]],["80[01]\\d{5}",[8]],["82[09]\\d{5}",[8]],["880\\d{5}",[8]],["81[23]\\d{5}",[8]],["(?:0[235-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}"],0,["85[0-5]\\d{5}",[8]],["810(?:0[0-6]|[2-8]\\d)\\d{3}",[8]]]],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0",0,0,0,0,0,[["(?:1[0-6]\\d|99[02-6])\\d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]\\d{5}",[8]],["9(?:00|6[0-3]|7[0-24-6]|8[0-24-68])\\d{7}",[10]],["1(?:66001|800\\d\\d)\\d{5}",[11]]]],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]],0,0,0,0,0,0,[["444\\d{4}"],["(?:222|55[3-9]|666|777|8\\d\\d|999)\\d{4}"]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]],0,0,0,0,0,0,[["[47]\\d{3}",[4]],["(?:[56]|888[1-9])\\d{3}"]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,[["240\\d{5}|(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])\\d{6}",[8]],["2(?:[0-27-9]\\d|6)\\d{6,7}|2(?:1\\d|75)\\d{5}",[8,9,10]],["508\\d{6,7}|80\\d{6,8}",[8,9,10]],["(?:1[13-57-9]\\d{5}|50(?:0[08]|30|66|77|88))\\d{3}|90\\d{6,8}",[7,8,9,10]],["70\\d{7}",[9]],0,["8(?:1[16-9]|22|3\\d|4[045]|5[459]|6[235-9]|7[0-3579]|90)\\d{2,7}"]],"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]],0,0,0,0,0,0,[["2[1-6]\\d{6}",[8]],["
876(?:1505|90[1-9]\\d)\\d{4}|(?:7[124-9]|9[1-9])\\d{6}",[8]],["8007\\d{4,5}|(?:500|800[05])\\d{4}"],["900\\d{5}",[8]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["(?:1(?:0\\d|1[0479]|2[37]|3[0137]|4[17]|5[05]|6[058]|7[0167]|8[2358]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[047-9]\\d|1[0-8]|2[0-5]|33|5[0-35]|6[068])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[0156]|7[0-24-9]|8[4-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",[7]],["(?:1[16]1|21[89]|6\\d{3}|8(?:1[01]|7[23]))\\d{4}",[7,8]],["800\\d{4,5}|(?:00800|800\\d)\\d{6}"],["(?:8(?:22|55|60|7[78]|86)|9(?:00|81))\\d{4}",[7]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,[["(?:(?:(?:4[34]|5[14])[0-8]|687)\\d|7(?:173|(?:3[0-8]|55)\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[0569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}",[8]],["9\\d{8}",[9]],["800\\d{5}",[8]],["805\\d{5}",[8]],["80[24]\\d{5}",[8]],0,0,0,0,["801\\d{5}",[8]]],"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],0,0,0,0,0,0,[["4(?:0[4-689]|9[4-68])\\d{5}",[8]],["8[7-9]\\d{6}",[8]],["80[0-5]\\d{6}",[9]],0,0,0,["44\\d{4}",[6]],0,["499\\d{5}",[8]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,[["(?:(?:3[0-2]|4[257]|5[34]|9[78])\\d|64[1-9]|85[02-46-9])\\d{4}",[7]],["(?:7\\d|8[1-48])\\d{6}",[8]],["180\\d{4}",[7]],0,0,0,0,["27[01]\\d{4}",[7]],["2(?:0[0-57]|7[568])\\d{4}",[7]]],"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0",0,0,0,0,0,[["(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])\\d{3}|88(?:22\\d\\d|42))\\d{4}|(?:2|8[2-8]\\d\\d)\\d{5}",[6,8,9,10]],["(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]\\d|4[2-9]|8[135-9]|9[1-9]))\\d{7}",[10]],["1800\\d{7,9}",[11,12,13]]]],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0",0,0,0,0,0,[["(?:(?:21|42)[2-9]|58[126])\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6,7}|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8]))[2-9]\\d{5,6}",[9,10]],["3(?:[0-247]\\d|3[0-79]|55|64)\\d{7}",[10]],["800\\d{5}
876(?:\\d{3})?",[8,11]],["900\\d{5}",[8]],["122\\d{6}",[9]],0,["(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:0[468]|[1-8])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}",[11,12]]]],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["47\\d{7}|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])(?:[02-9]\\d{6}|1(?:[0-8]\\d{5}|9\\d{3}(?:\\d{2})?))",[7,9]],["2131[89]\\d{4}|21(?:1[013-5]|2\\d|3[2-9])\\d{5}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",[9]],["800\\d{6,7}",[9,10]],["70[01346-8]\\d{6}",[9]],0,0,["804\\d{6}",[9]],["64\\d{4,7}",[6,7,8,9]],["39\\d{7}",[9]],["801\\d{6}",[9]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:4[1-35-9]|5[0-47-9]|80[6-9]\\d\\d)\\d{4}"],["(?:4[02-489]|5[02-9]|708(?:4[0-5]|5[0-6]))\\d{4}"],["80[0-5]\\d{6}",[9]],["8[129]\\d{7}",[9]]]],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939",[["(?:787|939)[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["(?:22[2-47-9]|42[45]|82[014-68]|92[3569])\\d{5}",[8]],["5[69]\\d{7}",[9]],["1800\\d{6}",[10]],0,0,0,0,0,0,["1700\\d{6}",[10]]]],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]],0,0,0,0,0,0,[["2(?:[12]\\d|3[1-689]|4[1-59]|[57][1-9]|6[1-35689]|8[1-69]|9[1256])\\d{6}"],["6(?:[06]92(?:30|9\\d)|[35]92(?:[049]\\d|3[034]))\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}"],["80[02]\\d{6}"],["(?:6(?:0[178]|4[68])\\d|76(?:0[1-57]|1[2-47]|2[237]))\\d{5}"],["884[0-4689]\\d{5}"],["600\\d{6}|6[06]92(?:0\\d|3[349]|49)\\d{3}"],["70(?:38[01]|596|(?:7\\d|8[17])\\d)\\d{4}"],["6(?:222\\d|89(?:00|88|99))\\d{4}"],["30\\d{7}"],["80(?:8\\d|9[1579])\\d{5}"]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)\\d{4}"],["(?:(?:46|83)[0-5]|(?:6[2-4689]|78)0)\\d{4}|(?:45|77|88)\\d{5}"]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,[["(?:3[289]|4[246-8]|61|7[1-3]|8[1-36])\\d{5,7}|(?:2(?:[14-68]\\d|2[4-68]|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51|[67]\\d)|4(?:1\\d|3[12]|5[13]|9[1-47])|5(?:[1-4]\\d|5[02-4])|6(?:3[1-3]|44|7[1-8])|7(?:4[0-4]|5\\d|6[1-
876578]|75|8[0-8])|858)\\d{5,6}",[7,8,9]],["9(?:51|6[129]|7[1-6]|8[1-7]|9[1-5])\\d{6}",[9]],["9800\\d{5,7}",[9,10,11]],0,0,0,["[245]0\\d{6,7}|[36-9]0\\d{4,7}",[6,7,8,9]],0,["8700[0-4]\\d{4}",[9]]]],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]],0,0,0,0,0,0,[["4(?:(?:[014]\\d\\d|999)\\d|2022)\\d{3}",[8]],["[35-7]\\d{7}",[8]],["800\\d{4}|(?:0080[01]|800)\\d{6}",[7,9,11]],0,0,0,0,["2[136]\\d{5}",[7]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,[["[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d"],["(?:630|702)0\\d{5}|(?:6(?:00|2\\d)|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}",[9]],["800\\d{6}",[9]],["90[0136]\\d{6}",[9]],0,0,["(?:37\\d|80[578])\\d{6}",[9]],0,0,["801\\d{6}",[9]]],0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0",0,0,0,0,0,[["(?:11[1-9]\\d|(?:2[389]|39)(?:0[2-9]|[2-9]\\d))\\d{3,8}|(?:1[02-9]|2[0-24-7]|3[0-8])[2-9]\\d{4,9}",[7,8,9,10,11,12]],["6(?:[0-689]|7\\d)\\d{6,7}",[8,9,10]],["800\\d{3,9}"],["(?:78\\d|90[0169])\\d{3,7}",[6,7,8,9,10]],0,0,["7[06]\\d{4,10}"]]],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:06|2[23568]\\d)\\d{6}"],["7[237-9]\\d{7}",[9]],["800\\d{6}",[9]],["900\\d{6}",[9]]]],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0",0,0,0,0,0,[["1(?:1\\d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}",[9]],["579[0-8]\\d{5}|5(?:[013-689]\\d|7[0-8])\\d{6}",[9]],["800\\d{7}",[10]],["925\\d{6}",[9]],0,0,0,0,0,["920\\d{6}",[9]]]],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]],0,0,0,0,0,0,[["(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}",[5]],["48\\d{3}|(?:(?:6[89]|7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}"],["1[38]\\d{3}",[5]],0,0,0,0,0,["5[12]\\d{3}",[5]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,[["4[2-46]\\d{5}"],["2[125-8]\\d{5}"],["800[08]\\d{3}"],["85\\d{5}"],0,0,0,0,["971\\d{4}|(?:64|95)\\d{5}"]],"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0",0,0,0,0,0,[["1(?:5\\d|8[35-7])\\d{6}"],["(?:1[0-2]|9[0-3569])\\d{7}"]]],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0",0,0,0,0,0,[["(?:(?:[12][136]|3[356]|4[0246]|6[03]|8\\d)\\d|90[1-9])\\d{4,6}|(?:1(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\d)|2(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])|3(?:0[0-4]|1\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])|4(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\d|6[03-5]|7[013]|8[0-79]|9[01])|6(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])|9(?:1[0-68]|2\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8]))\\d{5,6}",[7,8,9]],["7[02369]\\d{7}",[9]],["20\\d{4,7}",[6,7,8,9]],["649\\d{6}|99[1-59]\\d{4}(?:\\d{3})?|9(?:00|39|44)[1-8]\\d{3,6}",[7,8,9,10]],["75[1-8]\\d{6}",[9]],["(?:25[245]|67[3-68])\\d{9}",[12]],["10[1-8]\\d{6}",[9]],["74[02-9]\\d{6}",[9]],0,["77[0-7]\\d{6}",[9]]]],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[["662[0-24-9]\\d{4}|6(?:[0-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}",[8]],["89(?:8[02-9]|9[0-5])\\d{4}|(?:8(?:0[1-9]|[1-8]\\d|9[0-7])|9[0-8]\\d)\\d{5}",[8]],["(?:18|8)00\\d{7}",[10,11]],["1900\\d{7}",[11]],0,0,["7000\\d{7}",[11]],0,["(?:3[12]\\d|666)\\d{5}",[8]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]",[["2(?:[0-57-9]\\d|6[4-9])\\d\\d"],["[56]\\d{4}",[5]],0,0,0,0,0,0,["262\\d\\d",[5]]]],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,[["(?:[1-357][2-8]|4[24-8])\\d{6}",[8]],["65(?:[178]\\d|5[56]|6[01])\\d{4}|(?:[37][01]|4[0139]|51|6[489])\\d{6}",[8]],["80\\d{4,6}",[6,7,8]],["89[1-3]\\d{2,5}|90\\d{4,6}"],0,0,0,0,["(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-589])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}",[8]]],"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79",[["79\\d{6}",[8]],["(?:4[015-8]|9\\d)\\d{6}",[8]],["80[01]\\d{5}",[8]],["82[09]\\d{5}",[8]],["880\\d{5}
876",[8]],["81[23]\\d{5}",[8]],["(?:0[235-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}"],0,["85[0-5]\\d{5}",[8]],["810(?:0[0-6]|[2-8]\\d)\\d{3}",[8]]]],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d"],["909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}",[9]],["800\\d{6}",[9]],["9(?:00|[78]\\d)\\d{6}",[9]],0,0,["96\\d{7}",[9]],["9090\\d{3}",[7]],["6(?:02|5[0-4]|9[0-6])\\d{6}",[9]],["8[5-9]\\d{7}",[9]]]],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0",0,0,0,0,0,[["22[2-4][2-9]\\d{4}"],["(?:25|3[0-5]|66|7[1-9]|8[08]|9[09])\\d{6}"]]],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1",0,0,[["0549(?:8[0157-9]|9\\d)\\d{4}",[10]],["6[16]\\d{6}",[8]],0,["7[178]\\d{6}",[8]],0,0,0,0,["5[158]\\d{6}",[8]]]],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]],0,0,0,0,0,0,[["3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}"],["7(?:[015-8]\\d|21|90)\\d{6}"],["800\\d{6}"],["88[4689]\\d{6}
876"],0,0,0,0,["(?:3(?:392|9[01]\\d)\\d|93(?:3[13]0|929))\\d{4}"],["81[02468]\\d{6}"]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0",0,0,0,0,0,[["(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\\d{5}|(?:[134]\\d|8[125])\\d{4}",[6,7]],["(?:(?:15|(?:3[59]|4[89]|6\\d|7[679]|8[08])\\d|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}",[7,8,9]]]],SR:["597","00","(?:[2-5]|[6-8]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]],0,0,0,0,0,0,[["(?:2[1-3]|3[0-7]|4\\d|5[2-58])\\d{4}",[6]],["(?:6[08]|7[124-7]|8[1-9])\\d{5}",[7]],["80\\d{5}",[7]],["90\\d{5}",[7]],0,0,0,0,["56\\d{4}",[6]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0",0,0,0,0,0,[["1[89]\\d{7}"],["(?:12|9[1257-9])\\d{7}"]]],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]],0,0,0,0,0,0,[["22\\d{5}"],["900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}"]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,[["2(?:79(?:0[0347-9]|[1-9]\\d)|89(?:0[024589]|[1-9]\\d))\\d{3}|2(?:[1-69]\\d|[78][0-8])\\d{5}",[8]],["[5-7]\\d{7}",[8]],["800\\d{8}|80[01]\\d{4}",[7,11]],["900\\d{4}(?:\\d{4})?",[7,11]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721",[["7215(?:4[2-8]|8[239]|9[056])\\d{4}"],["7215(?:1[02]|2\\d|5[034679]|8[014-8])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0",0,0,0,0,0,[["21\\d{6,7}|(?:1(?:[14]\\d|[2356])|2[235]|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}"],["(?:50|9[1-9])\\d{7}",[9]]]],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]],0,0,0,0,0,0,[["[23][2-5]\\d{6}",[8]],["7[5-9]\\d{6}",[8]],["0800\\d{4}",[8]],["900\\d{6}",[9]],0,0,0,0,["70\\d{6}",[8]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8",[["8\\d{3}"]]],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649",[["649(?:266|712|9(?:4\\d|50))\\d{4}"],["649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,0,0,["649(?:71[01]|966)\\d{4}"]]],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,[["22(?:[37-9]0|5[0-5]|6[89])\\d{4}"],["(?:30|[69]\\d|77|8[5-7])\\d{6}"]],"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]],0,0,0,0,0,0,[["2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}"],["(?:7[0-29]|9[0-36-9])\\d{6}"]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}",[8]],["67(?:1[0-8]|2[4-7])\\d{5}|(?:14|6[1-6]|[89]\\d)\\d{7}",[9]],["(?:001800\\d|1800)\\d{6}",[10,13]],["1900\\d{6}",[10]],0,0,0,0,["6[08]\\d{7}",[9]]]],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4}
876)","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,[["(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}"],["(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:[09]\\d|1[0-27-9]|2[0-27]|3[08]|40|5[05]|66|7[01578]|8[078])\\d{7}"]],"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7],0,0,0,0,0,0,0,[["(?:2[2-4]|[34]\\d)\\d{2,5}"],["7[2-4]\\d{2,5}"]]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]],0,0,0,0,0,0,[["(?:2[1-5]|3[1-9]|4[1-4])\\d{5}",[7]],["7[2-8]\\d{6}",[8]],["80\\d{5}",[7]],["90\\d{5}",[7]],["70\\d{5}",[7]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,[["(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}"],["(?:6\\d|71)\\d{6}"]],"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]],0,0,0,0,0,0,[["81200\\d{3}|(?:3[0-2]|7\\d)\\d{6}"],["3(?:001|[12]40)\\d{4}|(?:(?:[259]\\d|4[0-8])\\d|3(?:1[1-35]|6[0-4]|91))\\d{5}"],["8010\\d{4}"],["88\\d{6}"],0,0,0,0,0,["8[12]10\\d{4}"]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]],0,0,0,0,0,0,[["(?:2\\d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])\\d{3}",[5]],["(?:5(?:4[0-5]|5[4-6])|6(?:[09]\\d|3[02]|8[15-9])|(?:7\\d|8[46-9])\\d|999)\\d{4}",[7]],["0800\\d{3}",[7]],0,0,0,0,0,["55[0-37-9]\\d{4}",[7]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0",0,0,0,0,0,[["(?:2(?:[13][26]|[28][2468]|[45][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}",[10]],["561(?:011|61\\d)\\d{4}|5(?:0[15-7]|1[06]|24|[34]\\d|5[1-59]|9[46])\\d{7}",[10]],["8(?:00\\d{7}(?:\\d{2,3})?|11\\d{7})",[10,12,13]],["(?:8[89]8|900)\\d{7}",[10]],["592(?:21[12]|461)\\d{4}",[10]],0,["444\\d{4}",[7]],["512\\d{7}",[10]],["850\\d{7}",[10]]]],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868",[["868(?:2(?:01|1[5-9]|[23]\\d|4[0-2])|6(?:0[7-9]|1[02-8]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}"],["868(?:(?:2[5-9]|3\\d)\\d|4(?:3[0-6]|[6-9]\\d)|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"],["868619\\d{4}"]]],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]],0,0,0,0,0,0,[["2[02-9]\\d{3}",[5]],["(?:7[01]\\d|90)\\d{4}",[6,7]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["(?:2[2-8]\\d|370|55[01]|7[1-9])\\d{6}|4(?:(?:0(?:0[1-9]|[2-48]\\d)|1[023]\\d)\\d{4,5}|(?:[239]\\d\\d|4(?:0[56]|12|49))\\d{5})|6(?:[01]\\d{7}|4(?:0[56]|12|24|4[09])\\d{4,5})|8(?:(?:2(?:3\\d|4[0-269]|[578]0|66)|36[24-9]|90\\d\\d)\\d{4}|4(?:0[56]|12|24|4[09])\\d{4,5})|(?:2(?:2(?:0\\d\\d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]\\d|1[0-4])|(?:4\\d|5[0-49]|6[0-29]|7[0-5])\\d)\\d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])\\d\\d|4(?:2(?:[089]\\d|7[1-9])|(?:3[0-4]|[78]\\d|9[01])\\d))\\d)\\d{3}",[8,9]],["(?:40001[0-2]|9[0-8]\\d{4})\\d{3}",[9]],["80[0-79]\\d{6}|800\\d{5}",[8,9]],["20(?:[013-9]\\d\\d|2)\\d{4}",[7,9]],["99\\d{7}",[9]],0,["50[0-46-9]\\d{6}
876",[9]],0,["7010(?:[0-2679]\\d|3[0-7]|8[0-5])\\d{5}|70\\d{8}",[10,11]]],0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0",0,0,0,0,0,[["2[2-8]\\d{7}"],["(?:6[1-35-9]|7[13-9])\\d{7}"],["80[08]\\d{6}"],["90\\d{7}"],0,0,0,0,["41\\d{7}"],["8(?:40|6[01])\\d{6}"]]],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,[["(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}",[9]],["790\\d{6}|(?:39|50|6[36-8]|7[1-357]|9[1-9])\\d{7}",[9]],["800[1-8]\\d{5,6}"],["900[239]\\d{5,6}"],0,0,0,0,["89[1-579]\\d{6}",[9]]],"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0",0,0,0,0,0,[["20(?:(?:240|30[67])\\d|6(?:00[0-2]|30[0-4]))\\d{3}|(?:20(?:[017]\\d|2[5-9]|3[1-4]|5[0-4]|6[15-9])|[34]\\d{3})\\d{5}"],["72[48]0\\d{5}|7(?:[014-8]\\d|2[0167]|3[06]|9[0-3589])\\d{6}"],["800[1-3]\\d{5}"],["90[1-3]\\d{6}"]]],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,[["(?:1(?:770|9(?:20|[89]7))|(?:2\\d|4[2-7])\\d\\d)\\d{4}",[8]],["9[1-9]\\d{6}",[8]],["0004\\d{2,9}|(?:405|80[05])\\d{4}",[6,7,8,9,10,11,12,13]],["90[0-8]\\d{4}",[7]],0,0,["21\\d{2,3}",[4,5]]],"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]],0,0,0,0,0,0,[["(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|[69]\\d\\d|7(?:[23]\\d|7[69]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|[168]\\d\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))\\d{5}"],["(?:(?:[25]0|33|8[078]|9[0-57-9])\\d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079])))|7(?:[07]\\d{3}|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}"]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698",[["06698\\d{1,6}",[6,7,8,9,10,11]],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784",[["784(?:266|3(?:6[6-9]|7\\d|8[0-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}"],["784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,0,0,["78451[0-2]\\d{4}"]]],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:12|3[457-9]|[467]\\d|[58][1-9]|9[1-6])|[4-6]00)\\d{7}"],["4(?:1[24-8]|2[246])\\d{7}"],["800\\d{7}"],["90[01]\\d{7}"],0,0,["501\\d{7}"]]],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284",[["284(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}"],["284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|9[69])|5(?:4[0-7]|68|9[69]))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340",[["340(?:2(?:0\\d|10|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0",0,0,0,0,0,[["2(?:0[3-9]|1[0-689]|2[0-25-9]|[38][2-9]|4[2-8]|5[124-9]|6[0-39]|7[0-7]|9[0-4679])\\d{7}",[10]],["(?:5(?:2[238]|59)|89[6-9]|99[013-9])\\d{6}|(?:3\\d|5[1689]|7[06-9]|8[1-8]|9[0-8])\\d{7}",[9]],["1800\\d{4,6}|12(?:0[13]|28)\\d{4}",[8,9,10]],["1900\\d{4,6}",[8,9,10]],0,0,["(?:[17]99|80\\d)\\d{4}|69\\d{5,6}",[7,8]],0,["672\\d{6}",[9]]]],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]],0,0,0,0,0,0,[["(?:38[0-8]|48[4-9])\\d\\d|(?:2[02-9]|3[4-7]|88)\\d{3}",[5]],["(?:[58]\\d|7[013-7])\\d{5}",[7]],["81[18]\\d\\d",[5]],0,0,0,["(?:3[03]|900\\d)\\d{3}"],0,["9(?:0[1-9]|1[01])\\d{4}",[7]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],0,0,0,0,0,0,[["72\\d{4}",[6]],["(?:72|8[23])\\d{4}",[6]],["80[0-5]\\d{6}",[9]],0,0,["[48]0\\d{4}",[6]],0,0,["9[23]\\d{4}",[6]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]],0,0,0,0,0,0,[["6[1-9]\\d{3}|(?:[2-5]|60)\\d{4}",[5,6]],["(?:7[1-35-8]|8(?:[3-7]|9\\d{3}))\\d{5}",[7,10]],["800\\d{3}",[6]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0",0,0,0,0,0,[["38\\d{6,10}|(?:2[89]|39)(?:0\\d{5,6}|[1-9]\\d{5})"],["4[3-9]\\d{6}",[8]],["800\\d{5}",[8]],["900\\d{5}",[8]]]],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["78[0-7]\\d{4}|17\\d{6}|(?:[12][2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-6])\\d{5}",[7,8]],["7[01378]\\d{7}",[9]]]],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:0330|4302)|52087)0\\d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4\\d|5[1346-8])\\d{7}",[9]],["(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])\\d{3}|8[1-4]\\d{3,7}|(?:2[27]|47|54)4950\\d{3}|(?:1(?:049[2-4]|9[12]\\d\\d)|(?:50[0-2]|[67]\\d\\d)\\d\\d|8(?:5\\d{3}|7(?:08[67]|158|28[5-9]|310)))\\d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920\\d{3}|(?:12|[2-5]1)492\\d{4}",[5,6,7,8,9]],["80\\d{7}",[9]],["(?:86[2-9]|9[0-2]\\d)\\d{6}",[9]],0,0,["861\\d{6,7}",[9,10]],0,["87(?:08[0-589]|15[0-79]|28[0-4]|31[1-9])\\d{4}|87(?:[02][0-79]|1[0-46-9]|3[02-9]|[4-9]\\d)\\d{5}",[9]],["860\\d{6}",[9]]]],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0",0,0,0,0,0,[["21[1-8]\\d{6}"],["(?:[59][5-8]|7[5-9])\\d{7}"],["800\\d{6}"],0,0,0,0,0,["63\\d{7}"]]],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:(?:3\\d|9)\\d|[4-8])|2(?:(?:(?
876:0(?:2[014]|5)|(?:2[0157]|31|84|9)\\d\\d|[56](?:[14]\\d\\d|20)|7(?:[089]|2[03]|[35]\\d\\d))\\d|4(?:2\\d\\d|8))\\d|1(?:2|[39]\\d{4}))|3(?:(?:123|(?:29\\d|92)\\d)\\d\\d|7(?:[19]|[56]\\d))|5(?:0|1[2-478]|26|[37]2|4(?:2\\d{3}|83)|5(?:25\\d\\d|[78])|[689]\\d)|6(?:(?:[16-8]21|28|52[013])\\d\\d|[39])|8(?:[1349]28|523)\\d\\d)\\d{3}|(?:4\\d\\d|9[2-9])\\d{4,5}|(?:(?:2(?:(?:(?:0|8[146])\\d|7[1-7])\\d|2(?:[278]\\d|92)|58(?:2\\d|3))|3(?:[26]|9\\d{3})|5(?:4\\d|5)\\d\\d)\\d|6(?:(?:(?:[0-246]|[78]\\d)\\d|37)\\d|5[2-8]))\\d\\d|(?:2(?:[569]\\d|8[2-57-9])|3(?:[013-59]\\d|8[37])|6[89]8)\\d{3}"],["7(?:[1278]\\d|3[1-9])\\d{6}",[9]],["80(?:[01]\\d|20|8[0-8])\\d{3}",[7]],0,0,0,0,0,["86(?:1[12]|22|30|44|55|77|8[368])\\d{6}",[10]]]]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function tr(e){return(tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rr(r.key),r)}}function rr(e){var t=function(e,t){if("object"!=tr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tr(t)?t:t+""}var ir=function(){return function(e,t,n){return t&&nr(e.prototype,t),n&&nr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}),[{key:"reset",value:function(e){var t=e.country,n=e.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(t,n)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberIsModified=!1,this.nationalPrefix=void 0,this.carrierCode=void 0,this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix=void 0}},{key:"update",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];this[r]=e[r]}}},{key:"initCountryAndCallingCode",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:"setCountry",value:function(e){this.country=e,this.onCountryChange(e)}},{key:"setCallingCode",value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:"startInternationalNumber",value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:"appendDigits",value:function(e){this.digits+=e}},{key:"appendNationalSignificantNumberDigits",value:function(e){this.nationalSignificantNumber+=e}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])}();function or(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ar(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ar(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ar(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var sr=new RegExp("x");function lr(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function cr(e,t){return")"===e[t]&&t++,function(e){var t=[],n=0;for(;n<e.length;)"("===e[n]?t.push(n):")"===e[n]&&t.pop(),n++;var r=0,i="";t.push(e.length);for(var o=0,a=t;o<a.length;o++){var s=a[o];i+=e.slice(r,s),r=s+1}return i}(e.slice(0,t))}function dr(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,o=n.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(t.pattern(),")$")).test(e.nationalSignificantNumber))return function(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,o=n.getSeparatorAfterNationalPrefix;e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode;if(i(t)){var a=ur(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:o,metadata:r});if(a)return a}return ur(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:o,metadata:r})}(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:o})}function ur(e,t,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,o=n.getSeparatorAfterNationalPrefix,a=Cn(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:r});if(i||(e.nationalPrefix?a=e.nationalPrefix+o(t)+a:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(a=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+a)),function(e,t){return Yt(e)===t.getNationalDigits()}(a,e))return a}
vendor: 13,000 bytes, line 876
876function hr(e){return(hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fr(r.key),r)}}function fr(e){var t=function(e,t){if("object"!=hr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hr(t)?t:t+""}var mr=function(){return function(e,t,n){return t&&pr(e.prototype,t),n&&pr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"parse",value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),1!==this.context.length)throw new Error("Non-finalized contexts left when pattern parse ended");var t=this.context[0],n=t.branches,r=t.instructions;if(n)return{op:"|",args:n.concat([br(r)])};if(0===r.length)throw new Error("Pattern is required");return 1===r.length?r[0]:r}},{key:"startContext",value:function(e){this.context.push(e)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(e){if(!e)throw new Error("Pattern is required");var t=e.match(yr);if(t){var n=t[1],r=e.slice(0,t.index),i=e.slice(t.index+n.length);switch(n){case"(?:":r&&this.parsePattern(r),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(r&&this.parsePattern(r),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var o=this.getContext().branches;o.push(br(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:o});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(r&&this.parsePattern(r),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(br(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":r&&this.parsePattern(r),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:gr(r)});break;default:throw new Error("Unknown operator: ".concat(n))}i&&this.parsePattern(i)}else{if(vr.test(e))throw new Error("Illegal characters found in a pattern: ".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(""))}}}])}();function gr(e){for(var t=[],n=0;n<e.length;){if("-"===e[n]){if(0===n||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,i=e[n+1].charCodeAt(0)-1,o=r;o<=i;)t.push(String.fromCharCode(o)),o++}else t.push(e[n]);n++}return t}var vr=/[\(\)\[\]\?\:\|]/,yr=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function br(e){return 1===e.length?e[0]:e}function _r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return wr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xr(e){return(xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sr(r.key),r)}}function Sr(e){var t=function(e,t){if("object"!=xr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xr(t)?t:t+""}var Er=function(){return function(e,t,n){return t&&Cr(e.prototype,t),n&&Cr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.matchTree=(new mr).parse(t)}),[{key:"match",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.allowOverflow;if(!e)throw new Error("String is required");var r=kr(e.split(""),this.matchTree,!0);if(r&&r.match&&delete r.matchedChars,!r||!r.overflow||n)return r}}])}();function kr(e,t,n){if("string"==typeof t){var r=e.join("");return 0===t.indexOf(r)?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:0===r.indexOf(t)?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var i=e.slice(),o=0;o<t.length;){var a=kr(i,t[o],n&&o===t.length-1);if(!a)return;if(a.overflow)return a;if(!a.match){if(a.partialMatch)return{partialMatch:!0};throw new Error("Unsupported match result:\n".concat(JSON.stringify(a,null,2)))}if(0===(i=i.slice(a.matchedChars.length)).length)return o===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0};o++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case"|":for(var s,l,c=_r(t.args);!(l=c()).done;){var d=kr(e,l.value,n);if(d){if(d.overflow)return d;if(d.match)return{match:!0,matchedChars:d.matchedChars};if(!d.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify(d,null,2)));s=!0}}return s?{partialMatch:!0}:void 0;case"[]":for(var u,h=_r(t.args);!(u=h()).done;){var p=u.value;if(e[0]===p)return 1===e.length?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[p]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function Tr(e){return(Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Or(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return $r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ir(r.key),r)}}function Ir(e){var t=function(e,t){if("object"!=Tr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Tr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tr(t)?t:t+""}var Lr=lr("9",15),Ar=/[- ]/,Mr=function(){return/\[([^\[\]])*\]/g},jr=function(){return/\d(?=[^,}][^,}])/g},Rr=new RegExp("["+lt+"]*\\$1["+lt+"]*(\\$\\d["+lt+"]*)*$"),Dr=function(){return function(e,t,n){return t&&Pr(e.prototype,t),n&&Pr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){t.state;var n=t.metadata;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=n,this.resetFormat()}),[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(e,t){this.resetFormat(),e?(this.isNANP="1"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(e,t){var n,r,i,o=this;if(n=t.nationalSignificantNumber,r=t.country,i=this.metadata,"IS_POSSIBLE"===tn(n,r,i))for(var a,s=Or(this.matchingFormats);!(a=s()).done;){var l=a.value,c=dr(t,l,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return o.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return o.getSeparatorAfterNationalPrefix(e)}});if(c)return this.resetFormat(),this.chosenFormat=l,this.setNationalNumberTemplate(c.replace(/\d/g,"x"),t),this.populatedNationalNumberTemplate=c,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf("x"),c}return this.formatNationalNumberWithNextDigits(e,t)}},{key:"formatNationalNumberWithNextDigits",value:function(e,t){var n=this.chosenFormat,r=this.chooseFormat(t);if(r)return r===n?this.formatNextNationalNumberDigits(e):this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(e){var t=this,n=e.nationalSignificantNumber,r=e.nationalPrefix,i=e.international,o=n,a=o.length-3;a<0&&(a=0),this.matchingFormats=this.matchingFormats.filter((function(e){return t.formatSuits(e,i,r)&&t.formatMatches(e,o,a)})),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(e,t,n){return!(n&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat())&&!(!t&&!n&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(e,t,n){var r=e.leadingDigitsPatterns().length;if(0===r)return!0;n=Math.min(n,r-1);var i=e.leadingDigitsPatterns()[n];if(t.length<3)try{return void 0!==new Er(i).match(t,{allowOverflow:!0})}catch(e){return console.error(e),!0}return new RegExp("^(".concat(i,")")).test(t)}},{key:"getFormatFormat",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:"chooseFormat",value:function(e){for(var t,n=this,r=function(){var r=t.value;return n.chosenFormat===r?0:Rr.test(n.getFormatFormat(r,e.international))?n.createTemplateForFormat(r,e)?(n.chosenFormat=r,0):(n.matchingFormats=n.matchingFormats.filter((function(e){return e!==r})),1):1},i=Or(this.matchingFormats.slice());!(t=i()).done&&0!==r(););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(e,t){if(!(e.pattern().indexOf("|")>=0)){var n=this.getTemplateForFormat(e,t);return n?(this.setNationalNumberTemplate(n,t),!0):void 0}}},{key:"getSeparatorAfterNationalPrefix",value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&Ar.test(e.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(e,t){var n=e.IDDPrefix,r=e.missingPlus;return n?t&&!1===t.spacing?n:n+" ":r?"":"+"}},{key:"getTemplate",value:function(e){if(this.template){for(var t=-1,n=0,r=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):"";n<r.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf("x",t+1),n++;return cr(this.template,t+1)}}},{key:"setNationalNumberTemplate",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,"x")+lr("x",t.callingCode.length)+" "+e:this.template=e}},{key:"getTemplateForFormat",value:function(e,t){var n=t.nationalSignificantNumber,r=t.international,i=t.nationalPrefix,o=t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,a=e.pattern();
vendor: 5,836 bytes, line 876
876a=a.replace(Mr(),"\\d").replace(jr(),"\\d");var s=Lr.match(a)[0];if(!(n.length>s.length)){var l=new RegExp("^"+a+"$"),c=n.replace(/\d/g,"9");l.test(c)&&(s=c);var d,u=this.getFormatFormat(e,r);if(this.shouldTryNationalPrefixFormattingRule(e,{international:r,nationalPrefix:i})){var h=u.replace(xn,e.nationalPrefixFormattingRule());if(Yt(e.nationalPrefixFormattingRule())===(i||"")+Yt("$1")&&(u=h,d=!0,i))for(var p=i.length;p>0;)u=u.replace(/\d/,"x"),p--}var f=s.replace(new RegExp(a),u).replace(new RegExp("9","g"),"x");return d||(o?f=lr("x",o.length)+" "+f:i&&(f=lr("x",i.length)+this.getSeparatorAfterNationalPrefix(e)+f)),r&&(f=wn(f)),f}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,n){for(var r,i=or(n.split(""));!(r=i()).done;){var o=r.value;if(e.slice(t+1).search(sr)<0)return;t=e.search(sr),e=e.replace(sr,o)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(t)return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],cr(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function(e,t){var n=t.international,r=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var i=e.usesNationalPrefix();if(i&&r||!i&&!n)return!0}}}])}();function Fr(e){return(Fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Br(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Br(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Br(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zr(r.key),r)}}function zr(e){var t=function(e,t){if("object"!=Fr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Fr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fr(t)?t:t+""}var Gr=new RegExp("^"+("["+lt+st+"]+")+"$","i"),Vr="(?:[+ï¼]["+lt+st+"]*|["+lt+st+"]+)",qr=new RegExp("[^"+lt+st+"]+.*$"),Hr=/[^\d\[\]]/,Wr=function(){return function(e,t,n){return t&&Ur(e.prototype,t),n&&Ur(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,i=t.metadata,o=t.onNationalSignificantNumberChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=o}),[{key:"input",value:function(e,t){var n,r=function(e){var t=Nr(function(e){var t=function(e){var t,n=e.search(Vr);if(n<0)return;"+"===(e=e.slice(n))[0]&&(t=!0,e=e.slice("+".length));e=e.replace(qr,""),t&&(e="+"+e);return e}(e)||"";if("+"===t[0])return[t.slice("+".length),!0];return[t]}(e),2),n=t[0],r=t[1];Gr.test(n)||(n="");return[n,r]}(e),i=Nr(r,2),o=i[0],a=i[1],s=Yt(o);return a&&(t.digits||(t.startInternationalNumber(void 0,void 0),s||(n=!0))),s&&this.inputDigits(s,t),{digits:s,justLeadingPlus:n}}},{key:"inputDigits",value:function(e,t){var n=t.digits,r=n.length<3&&n.length+e.length>=3;if(t.appendDigits(e),r&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),(function(e){return t.update(e)}))}},{key:"isWaitingForCountryCallingCode",value:function(e){var t=e.international,n=e.callingCode;return t&&!n}},{key:"extractCountryCallingCode",value:function(e){var t=_n("+"+e.getDigitsWithoutInternationalPrefix(),e.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=t.countryCallingCode,r=t.number;if(n)return e.setCallingCode(n),e.update({nationalSignificantNumber:r}),!0}},{key:"reset",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&Hr.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(e,t){if(this.hasSelectedNumberingPlan){var n=pn(e,this.metadata),r=n.nationalPrefix,i=n.nationalNumber,o=n.carrierCode;if(i!==e)return this.onExtractedNationalNumber(r,o,i,e,t),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(e,t,n){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,n);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var r=pn(e,this.metadata),i=r.nationalPrefix,o=r.
vendor: 4,833 bytes, line 876
876nationalNumber,a=r.carrierCode;if(o!==t)return this.onExtractedNationalNumber(i,a,o,e,n),!0}}},{key:"onExtractedNationalNumber",value:function(e,t,n,r,i){var o,a=!1,s=r.lastIndexOf(n);if(s<0||s!==r.length-n.length)a=!0;else{var l=r.slice(0,s);l&&l!==e&&(o=l)}i({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:n,nationalSignificantNumberIsModified:a,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:o}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,(function(t){return e.update(t)}))||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:"extractIddPrefix",value:function(e){var t=e.international,n=e.IDDPrefix,r=e.digits;e.nationalSignificantNumber;if(!t&&!n){var i=hn(r,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==i&&i!==r?(e.update({IDDPrefix:r.slice(0,r.length-i.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0):void 0}}},{key:"fixMissingPlus",value:function(e){if(!e.international){var t=bn(e.digits,e.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata).countryCallingCode;if(t)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:t}),!0}}},{key:"startInternationalNumber",value:function(e,t){var n=t.country,r=t.callingCode;e.startInternationalNumber(n,r),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),(function(t){return e.update(t)}))}}])}();function Yr(e){return(Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jr(r.key),r)}}function Jr(e){var t=function(e,t){if("object"!=Yr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Yr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yr(t)?t:t+""}var Qr=function(){return function(e,t,n){return t&&Zr(e.prototype,t),n&&Zr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=new kt(n);var r=Xr(this.getCountryAndCallingCode(t),2),i=r[0],o=r[1];this.defaultCountry=i,this.defaultCallingCode=o,this.reset()}),[{key:"getCountryAndCallingCode",value:function(e){var t,n;return e&&(et(e)?(t=e.defaultCountry,n=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,n]}},{key:"input",value:function(e){var t=this.parser.input(e,this.state),n=t.digits;if(t.justLeadingPlus)this.formattedOutput="+";else if(n){var r;if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(r=this.formatter.format(n,this.state)),void 0===r&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var i=this.state.getNationalDigits();i&&(r=this.formatter.format(i,this.state))}
876this.formattedOutput=r?this.getFullNumber(r):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var e=this;return this.state=new ir({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,n){e.metadata.selectNumberingPlan(n,t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new Dr({state:this.state,metadata:this.metadata}),this.parser=new Wr({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){if(this.state.digits)return this._getCountry()}},{key:"_getCountry",value:function(){var e=this.state.country;return e}},{key:"determineTheCountryIfNeeded",value:function(){this.state.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry()}},{key:"getFullNumber",value:function(e){var t=this;if(this.isInternational()){var n=function(e){return t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!e})+e},r=this.state.callingCode;return n(r?e?"".concat(r," ").concat(e):r:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return e}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,r=e.nationalPrefix,i=t,o=n||r;return o&&(i=o+i),i}},{key:"getNonFormattedNumber",value:function(){var e=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(e?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,"x")}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(vn(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var e=this.state,t=e.digits,n=e.callingCode,r=e.country,i=e.nationalSignificantNumber;if(t)return this.isInternational()?n?"+"+n+i:"+"+t:r||n?"+"+(r?this.metadata.countryCallingCode():n)+i:void 0}},{key:"getNumber",value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.carrierCode,r=e.callingCode,i=this._getCountry();if(t&&(i||r)){if(i&&i===this.defaultCountry){var o=new kt(this.metadata.metadata);o.selectNumberingPlan(i);var a=o.numberingPlan.callingCode(),s=this.metadata.getCountryCodesForCallingCode(a);if(s.length>1){var l=gn(t,{countries:s,metadata:this.metadata.metadata});l&&(i=l)}}var c=new jn(i||r,t,this.metadata.metadata);return n&&(c.carrierCode=n),c}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])}();function ei(e){return Qr.call(this,e,er)}function ti(e){return function(e){if(Array.isArray(e))return ni(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ni(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ni(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}ei.prototype=Object.create(Qr.prototype,{}),ei.prototype.constructor=ei;var ri=function(){var e=function(e){e.closest(".cmp-extended-modal__container__body").length>0&&setTimeout((function(){e.closest(".cmp-extended-modal__container").addClass("modal-padding-update")}),10)},t=function(e){e.closest(".cmp-extended-modal__container__body").length>0&&e.closest(".cmp-extended-modal__container").removeClass("modal-padding-update")},n=function(e,t){if(t.length>0){var n=new RegExp("(".concat(t,")"),"gi");return e.replace(n,"<b>$1</b>")}return e},r=function(e){var t=e.find(".dropdown-wrapper");t.length>0&&t[0].scrollHeight>t[0].clientHeight?e.find(".dropdown-wrapper").addClass("is-scrollable"):e.find(".dropdown-wrapper").removeClass("is-scrollable")},i=function(e){e.on("wheel touchmove",(function(e){if("wheel"===e.type){var t=e.originalEvent.deltaY;(t<0&&this.scrollTop<=0||t>0&&this.scrollTop+this.clientHeight>=this.scrollHeight)&&e.preventDefault()}e.stopPropagation()}))},a=function(e){(e.hasClass("dropdown-autoalign")||e.closest(".dropdown-autoalign").length)&&(e.hasClass("dropdown-variant")&&window.matchMedia("(max-width: 1024px)").matches?e.removeClass("drop-up"):window.requestAnimationFrame((function(){var t=e.find(".dropdown"),n=e[0].getBoundingClientRect(),r=t.outerHeight(!0)||t[0].scrollHeight,i=window.innerHeight-n.bottom;e.toggleClass("drop-up",r>0&&i<r&&n.top>=r)})))},s=function(e,t,n){if(window.guideBridge&&window.guideBridge.resolveNode){var r=e.data("elementName"),i=window.guideBridge.resolveNode(window.guideBridge.resolveNode("".concat(r,".somExpression")));
876i&&(i.value=t,n&&(e.closest(".guideFieldNode").hasClass("validation-success")||e.closest(".guideFieldNode").hasClass("validation-failure"))&&i.validate())}},l=function(e){var t=e.closest(".guideFieldNode"),n=e.closest(".guideGridFluidLayout2Container"),r=o()(n.find("p[data-tooltip-name]")).data("tooltipName"),i=o()(n.find("p[data-tooltip-error]")).data("tooltipError"),a=o()(n.find("p[data-tooltip-success]")).data("tooltipSuccess");if(t.hasClass("cmp-tooltip-icon")&&window.guideBridge&&window.guideBridge.resolveNode){var s=window.guideBridge.resolveNode(window.guideBridge.resolveNode("".concat(r,".somExpression")));s&&(s.visible=!1);var l=window.guideBridge.resolveNode(window.guideBridge.resolveNode("".concat(i,".somExpression")));l&&(l.visible=!0),t.removeClass("validation-success"),t.addClass("validation-failure"),t.find(".guide-error-message").hide();var c=window.guideBridge.resolveNode(window.guideBridge.resolveNode("".concat(a,".somExpression")));c&&(c.visible=!1)}},c=function(e){var t=e.closest(".guideFieldNode"),n=e.closest(".guideGridFluidLayout2Container"),r=o()(n.find("p[data-tooltip-name]")).data("tooltipName"),i=o()(n.find("p[data-tooltip-error]")).data("tooltipError"),a=o()(n.find("p[data-tooltip-success]")).data("tooltipSuccess");if(t.hasClass("cmp-tooltip-icon")&&window.guideBridge&&window.guideBridge.resolveNode){var s=window.guideBridge.resolveNode(window.guideBridge.resolveNode("".concat(r,".somExpression")));s&&(s.visible=!1);var l=window.guideBridge.resolveNode(window.guideBridge.resolveNode("".concat(i,".somExpression")));l&&(l.visible=!1),t.find(".guide-error-message").hide();var c=window.guideBridge.resolveNode(window.guideBridge.resolveNode("".concat(a,".somExpression")));c&&(c.visible=!0),t.addClass("validation-success"),t.removeClass("validation-failure")}},d="",u=!1,h=null,p=function(e,t){var n=/iPhone|iPad|iPod/i.test(navigator.userAgent);t&&e.hasClass("dropdown-variant")?(e.removeClass("mobileoverlay"),e.find(".dropdown-wrapper").css("max-height",""),n&&(document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",window.scrollTo(0,d),setTimeout((function(){document.documentElement.style.scrollBehavior=""}),200))):e.hasClass("dropdown-variant")&&(n&&(d=window.scrollY||document.documentElement.scrollTop,document.body.style.position="fixed",document.body.style.top="-".concat(d,"px"),document.body.style.left="0",document.body.style.right="0",document.documentElement.style.scrollBehavior="auto",setTimeout((function(){window.scrollTo(0,0)}),200)),e.addClass("mobileoverlay"),f())},f=function(){var e=o()(".arrow_reverse.mobileoverlay");if(window.visualViewport&&e.length){var t=e.find(".dropdown-wrapper").offset().top,n=window.visualViewport.height-t-20;e.find(".dropdown-wrapper").css("max-height","".concat(n,"px"))}};window.visualViewport&&window.visualViewport.addEventListener("resize",(function(){f()})),o()(window).on("scroll.dropdownScrollLock",(function(){u=!0,clearTimeout(h),h=setTimeout((function(){u=!1}),150)})),o()(document).ready((function(){o()(".cmp-text-multiline textarea").is(":visible")&&(o()("#guideContainerForm .cmp-input-text--field-icon").length>0&&o()("#guideContainerForm .cmp-input-text--field-icon").each((function(){if(o()(".multiline textarea").attr("maxlength")&&o()(".multiline textarea").attr("minlength")){var e=o()(this).find(".cmp-input-text--count p").html();o()(this).find(".cmp-input-text--field-icon .multiline").append('<div class="text-count">'.concat(e,"</div>")),o()(this).find(".inputtedChar").text(0)}})),o()(".multiline textarea").on("input",(function(){var e=o()(this).val().length;o()(this).siblings(".text-count").find(".inputtedChar").text(e),o()(this).parent().addClass("focus")})),window.guideBridge||o()(".custom-text-area").each((function(){var e=o()(this),t=e.find(".cmp-feedback-text"),n=e.find("#guideContainerForm .form-group"),r=e.find(".guideFieldNode.cmp-input-text--field-icon"),i=function(e){t.find(".cmp-color-info").toggle("info"===e),t.find(".cmp-color-error").toggle("error"===e),t.find(".cmp-color-success").toggle("success"===e)};e.find(".cmp-text-multiline textarea").on("blur",(function(){n.removeClass("field-valid field-invalid"),r.removeClass("val
876idation-success validation-failure");var e=o()(this).val().trim(),t="true"===o()(this).attr("aria-required"),a=Number(o()(this).attr("minlength"))||0;e?e.length<a?(n.addClass("field-invalid"),r.addClass("validation-failure"),i("error")):(n.addClass("field-valid"),r.addClass("validation-success"),i("success")):t?(n.addClass("field-invalid"),r.addClass("validation-failure"),i("error")):i("info")}))})),o()(".cmp-text-multiline textarea").on("focus",(function(){o()(this).parent().addClass("focus")})).on("blur",(function(){o()(this).parent().removeClass("focus")}))),o()(".guidesingledropdownlist").length>0&&document.querySelectorAll(".guidesingledropdownlist").forEach((function(e){e.classList.contains("field-invalid")&&document.querySelectorAll(".guideFieldNode.validation-success").forEach((function(e){e.classList.remove("validation-success")}))})),o()(".singleselect-dropdownList").each((function(){var n=o()(this),m=document.createElement("p");m.classList.add("noresultsmsg"),m.innerHTML=n.data("noresults"),o()(n.find(".dropdown-wrapper")[0]).append(m),m.style.display="none";var g=n.find(".dropdown-input");g.on("pointerdown",(function(e){var t=o()(this).closest(".singleselect-dropdownList");"mouse"===e.originalEvent.pointerType||t.hasClass("arrow_reverse")||document.activeElement===this||e.preventDefault()}));var v=!1;g.on("click",(function(i){i.stopPropagation();var c=o()(this).closest(".singleselect-dropdownList"),d=c.hasClass("arrow_reverse"),u=window.matchMedia("(max-width: 1024px)").matches;if(o()(".singleselect-dropdownList").not(c).removeClass("arrow_reverse mobileoverlay"),d&&u&&!v)v=!0;else{if(d)return c.removeClass("arrow_reverse"),p(c,!0),void t(c);c.addClass("arrow_reverse"),p(c),e(c),r(c);var h=Boolean(g.data("selectedValues"));g.val(""),s(g,"",!1),h&&(g.removeData("selectedValues"),l(n)),f(n,i.currentTarget),a(c)}})),o()(document).on("click",(function(e){o()(e.target).closest(n).length||(v=!1)})),g.on("keydown",(function(t){if(27===t.keyCode||"Escape"===t.key){var i=o()(this).closest(".singleselect-dropdownList");return t.stopPropagation(),i.removeClass("arrow_reverse"),!1}if(13==t.keyCode){t.stopPropagation();var c=o()(this).closest(".singleselect-dropdownList"),d=c.hasClass("arrow_reverse");if(o()(".singleselect-dropdownList").not(c).removeClass("arrow_reverse mobileoverlay"),d||c.addClass("arrow_reverse"),p(c),!d&&c.hasClass("arrow_reverse")){e(c),r(c);var u=Boolean(g.data("selectedValues"));g.val(""),s(g,"",!1),u&&(g.removeData("selectedValues"),l(n)),f(n,t.currentTarget),a(c)}}})),o()(this).on("click","li",(function(e){if(!o()(e.target).hasClass("fielddisabled")&&!o()(e.target).parent().hasClass("fielddisabled")){e.preventDefault();var t=o()(this).find(".text").text();o()(this).closest(".singleselect-dropdownList").find(".dropdown-input").val(t),o()(this).closest(".singleselect-dropdownList").removeClass("arrow_reverse");var r=o()(this).closest(".singleselect-dropdownList");if(p(r,!0),o()(this).closest(".dropdown-wrapper").find("li").removeClass("cmp-single-selected"),o()(this).addClass("cmp-single-selected"),g.data("selectedValues",t),s(g,t,!0),c(n),!window.guideBridge){g.attr("value",t),g.val(t),n.closest(".guidefield").removeClass("field-invalid");var i=n.siblings(".enableFeedback");o()(this).closest(".dropdownfieldvalidator").addClass("valid-entry"),o()(this).closest(".dropdownfieldvalidator").removeClass("invalid-entry"),!i.length>0&&o()(this).closest(".singleselect-dropdownList").find(".single-select-required-message").addClass("hide"),d(i)}}})),o()(this).on("keydown","li",(function(e){if(13==e.keyCode&&!o()(e.target).hasClass("fielddisabled")&&!o()(e.target).parent().hasClass("fielddisabled")){e.preventDefault();var t=o()(this).find(".text").text();if(o()(this).closest(".singleselect-dropdownList").find(".dropdown-input").val(t),o()(this).closest(".singleselect-dropdownList").removeClass("arrow_reverse"),o()(this).closest(".dropdown-wrapper").find("li").removeClass("cmp-single-selected"),o()(this).addClass("cmp-single-selected"),g.data("selectedValues",t),s(g,t,!0),c(n),!window.guideBridge){g.attr("value",t),g.val(t),o()(this).closest(".dropdownfieldvalidator").addClass("val
876id-entry"),o()(this).closest(".dropdownfieldvalidator").removeClass("invalid-entry"),n.closest(".guidefield").removeClass("field-invalid");var r=n.siblings(".enableFeedback");!r.length>0&&o()(this).closest(".singleselect-dropdownList").find(".single-select-required-message").addClass("hide"),d(r)}}})),o()(document).on("click",(function(e){o()(e.target).closest(".singleselect-dropdownList").length||o()(".singleselect-dropdownList").each((function(){var e=o()(this),t=e.hasClass("arrow_reverse")&&e.hasClass("dropdown-variant")&&window.matchMedia("(max-width: 1024px)").matches;u&&(e.hasClass("mobileoverlay")||e.closest(".guideFieldNode").hasClass("enable-scroll")||t)||e.removeClass("arrow_reverse")}))})),o()(this).find(".dropdown-close-icon").on("click",(function(e){e.stopPropagation();var n=o()(this).closest(".singleselect-dropdownList");n.removeClass("mobileoverlay arrow_reverse"),window.guideBridge||n.removeClass("mobileoverlay arrow_reverse selected-state"),p(n,!0),n.find(".dropdown").removeClass("showdropdown"),t(n)})),n.closest(".guideFieldNode").hasClass("enable-scroll")&&i(n.find(".dropdown-wrapper")),n.find("input").on("focus",(function(){o()(".multiselect-dropdownList").hasClass("arrow_reverse")&&o()(".multiselect-dropdownList").removeClass("arrow_reverse")})),n.on("focusout",(function(e){if(!this.contains(e.relatedTarget)){var r=n.find("input.dropdown-input");if(""===r.val()||r.val()!==r.data("selectedValues")){var i=n.find(".single-select-required").attr("data-mandatoryfield");setTimeout((function(){if(!n.find("input").hasClass("changed")&&"true"===i&&""===n.find("input").val()){var e=n.siblings(".enableFeedback");n.closest(".guidefield").addClass("field-invalid"),!e.length>0&&n.find(".single-select-required-message").removeClass("hide"),h(e)}y(n,n.find("input.dropdown-input")[0]),t(o()(".singleselect-dropdownList"));var a=n.closest(".guideFieldNode");
876""===r.val()&&(a.hasClass("validation-success")||a.hasClass("validation-failure"))&&l(n)}),100)}}})),n.find("input.dropdown-input").on("blur",(function(){setTimeout((function(){if(""!==g.val())y(n,n.find("input.dropdown-input")[0]);else{var e=n.closest(".guideFieldNode");(e.hasClass("validation-success")||e.hasClass("validation-failure"))&&(s(g,"",!1),l(n))}}),100),n.find(".noresultsmsg")&&n.hasClass("arrow_reverse")&&"none"!=n.find(".noresultsmsg")[0].style.display&&n.removeClass("arrow_reverse")})),n.find(".dropdown-singleselectlist ul li").on("blur",(function(){var e=n.find(".dropdown-singleselectlist").find('li:not([style*="display: none"])'),t=e.length-1;o()(this).closest("li")[0]==e[t]&&n.removeClass("arrow_reverse")}));var y=function(e,t){var n=t.value.toUpperCase(),r=[];e.find(".dropdown-singleselectlist ul li span.text").each((function(t,n){r.push(n.textContent||n.innertext);var i=e.find(".dropdown-singleselectlist ul li")[t];o()(i).find("span.text").html(o()(i).find("span.text").text())})),r.some((function(e){return e=e.toUpperCase(),t=n,null!=e.replace(/[^a-zA-Z0-9 ]/g,"").match(new RegExp("\\b".concat(t.replace(/[^a-zA-Z0-9 ]/g,""),"\\b")));var t}))||(t.value="",s(o()(t),"",!0),l(e)),""!=t.value&&c(e)};n.find("input").on("keyup",(function(e){f(n,e.currentTarget)}))}));var d=function(e){e.find(".singleselectTextMessage").addClass("hide"),e.find(".singleselectSuccessMessage").removeClass("hide"),e.find(".singleselectErrorMessage").addClass("hide")},h=function(e){e.find(".singleselectErrorMessage").removeClass("hide"),e.find(".singleselectTextMessage").addClass("hide"),e.find(".singleselectSuccessMessage").addClass("hide")},f=function(e,t){var r=t.value.toUpperCase();e.find(".dropdown-singleselectlist ul li span.text").each((function(i,a){var s=a.textContent||a.innertext,l=e.find(".dropdown-singleselectlist ul li")[i];if(s.toUpperCase().indexOf(r)>-1?l.style.display="":l.style.display="none",s.toUpperCase().indexOf(r)>-1){for(var c=0;c<e.find(".cmp-title").length;c++)e.find(".cmp-title")[c].style.display="";e.find(".noresultsmsg")[0].style.display="none"}var d=o()(l).find("span.text").text(),u=t.value;n(d,u),o()(l).find("span.text").html(n(d,u))}));for(var i=e.find(".dropdown-singleselectlist ul"),a=0;a<i.length;a++){o()(i[a]).find("li").length===o()(i[a]).find("li[style*='display: none']").length&&(o()(i[a])[0].previousElementSibling.style.display="none")}e.find(".dropdown-singleselectlist li").length===e.find(".dropdown-singleselectlist li[style*='display: none']").length&&(e.find(".noresultsmsg")[0].style.display="")}})),o()(document).ready((function(){o()('input[type="text"], input[type="email"], input[type="tel"]').on("input",(function(){o()(this).closest(".guideFieldWidget").addClass("inputting"),o()(this).closest(".guideField-Widget").addClass("inputting")})),o()('input[type="radio"]').on("keyup",(function(e){(e.shiftKey&&"Tab"===e.key||"Tab"===e.key)&&o()(this).next().show()})),o()('input[type="radio"]').on("focusout",(function(){o()(this).next().hide()}));var e="";o()(document).on("keydown",(function(t){"Tab"===t.key&&(e="keyboard")})),o()(document).on("mousedown",(function(){e="mouse"})),o()('input[type="text"]:not([readonly], input[type="email"]:not([readonly], input[type="tel"]:not([readonly]').on("focus",(function(){o()(".guideFieldWidget").removeClass("selected-state"),o()(".guideField-Widget").removeClass("selected-state"),"mouse"===e&&(o()(this).closest(".guideFieldWidget").addClass("selected-state"),o()(this).closest(".guideField-Widget").addClass("selected-state"))})),o()('.phone-input-container input[type="tel"]:not([readonly]').on("focus",(function(){"keyboard"===e&&o()(this).closest(".phone-input-container").addClass("phone-input-focus")})),o()('.phone-input-container input[type="tel"]:not([readonly]').on("focusout",(function(){o()(this).closest(".phone-input-container").removeClass("phone-input-focus")})),o()(document).on("click",(function(e){o()(e.target).closest(".guideFieldWidget").length||(o()(".guideFieldWidget").removeClass("selected-state inputting"),o()(".guideField-Widget").removeClass("selected-state inputting"))}))})),o()(document).ready((function(){var n;if(o()(".phonenumber-dropdown").length>0){var r=o()('input[name="phonenumberApi"]').val(),i={jsonFilePath:o()('input[name="jsonFilePath"]').val()};o.a.ajax({url:r,type:"GET",data:i,success:function(e){var t=e.sort((function(e,t){return e.countryName.localeCompare(t.countryName)}));n=e;var r="";o.a.each(t,(function(e,t){r+='<div class="countryselectoption" tabindex="0" data-countrycode="'.concat(t.code,'" data-code="').concat(t.countryCode,'" data-countryname="').concat(t.countryName,'">'),r+=' <span class="flag noto-color-emoji-regular">'.concat(t.flag,"</span>"),r+=' <p><span class="country-name">'.concat(t.countryName,"</span>"),r+=' <span class="country-code">('.concat(t.countryCode,")</span> "),r+=" </p>",r+=" </div>"}
876)),o()(".phonenumber-dropdown .phonenumber-dropdown-wrapper").append(r),o()(".cmp-phonenumber-container").each((function(){var e=o()(this);if(o()(this).find("input:disabled").length<1){var t=e.find(".dropdown-container .country-code-value").val();t&&e.find('.countryselectoption[data-countrycode="'.concat(t,'"]')).trigger("click")}}))},error:function(){o()(".phonenumber-dropdown .phonenumber-dropdown-wrapper").append("<p>error</p>")}})}var a=function(e){o()(".cmp-phonenumber-container").on("focusout blur",(function(t){if(!window.guideBridge){if(this.contains(t.relatedTarget))return;setTimeout((function(){!function(e){var t=o()("#".concat(e)),n=t.val(),r=t.closest(".guidephonenumberdropdown");if("true"===r.find(".phonenumber-required").attr("data-mandatoryfield")&&""===n)t.closest(".guidephonenumberdropdown").addClass("field-invalid"),r.find(".enableFeedback").length||r.find(".phonenumber-required-message").removeClass("hide"),r.find(".enableFeedback .phonenumberFeedbackText").addClass("hide"),r.find(".enableFeedback .phonenumberErrorText").removeClass("hide"),r.find(".enableFeedback .phonenumberSuccessText").addClass("hide")}(e)}),10)}}))},d=function(e){var t=o()("#".concat(e)),n=t.val(),r=t.closest(".phone-input-container").find(".country-code-value").val();if(""!==n&&!t.closest(".phoneNumber-dropdownList").attr("data-regex")){var i=Qn(n,r);if(i){var a=function(){return Je(Mt,arguments)}(r,i.getMetadata()),s=new ei(r).input("+".concat(a," ").concat(n));t.val(s.replace("+".concat(a," "),""))}}};o()(".cmp-phone-input").each((function(e){var t=this;o()(this).attr("id","phone-input-".concat(e)),a(o()(this).attr("id")),o()(this).on("blur change",(function(){!function(e){var t=o()("#".concat(e)),n=t.val();if(""===n)return t.closest(".guidephonenumberdropdown").removeClass("field-valid"),void t.closest(".guidephonenumberdropdown").removeClass("field-invalid");t.closest(".guidephonenumberdropdown").find(".guideFieldNode").removeClass("validation-success validation-failure");var r=t.closest(".phoneNumber-dropdownList").attr("data-regex");if(r){if(new RegExp(r).test(n)){if(t.closest(".guidephonenumberdropdown").removeClass("field-invalid").addClass("field-valid"),c(t),!window.guideBridge){var i=t.closest(".guidephonenumberdropdown");!i.find(".enableFeedback").length>0&&i.find(".phonenumber-required-message").addClass("hide"),i.find(".enableFeedback .phonenumberFeedbackText").addClass("hide"),i.find(".enableFeedback .phonenumberErrorText").addClass("hide"),i.find(".enableFeedback .phonenumberSuccessText").removeClass("hide")}}else if(t.closest(".guidephonenumberdropdown").removeClass("field-valid").addClass("field-invalid"),l(t),!window.guideBridge){var a=t.closest(".guidephonenumberdropdown");!a.find(".enableFeedback").length>0&&a.find(".phonenumber-required-message").removeClass("hide"),a.find(".enableFeedback .phonenumberFeedbackText").addClass("hide"),a.find(".enableFeedback .phonenumberErrorText").removeClass("hide"),a.find(".enableFeedback .phonenumberSuccessText").addClass("hide")}}else{var s=Qn(n,t.closest(".phone-input-container").find(".country-code-value").val());if(s&&s.isValid()){if(t.closest(".guidephonenumberdropdown").removeClass("field-invalid").addClass("field-valid"),c(t),t.closest(".guideFieldNode").addClass("validation-success"),!window.guideBridge){var d=t.closest(".guidephonenumberdropdown");!d.find(".enableFeedback").length>0&&d.find(".phonenumber-required-message").addClass("hide"),d.find(".enableFeedback .phonenumberFeedbackText").addClass("hide"),d.find(".enableFeedback .phonenumberErrorText").addClass("hide"),d.find(".enableFeedback .phonenumberSuccessText").removeClass("hide")}}else if(t.closest(".guidephonenumberdropdown").removeClass("field-valid").addClass("field-invalid"),l(t),t.closest(".guideFieldNode").addClass("validation-failure"),!window.guideBridge){var u=t.closest(".guidephonenumberdropdown");!u.find(".enableFeedback").length>0&&u.find(".phonenumber-required-message").removeClass("hide"),u.find(".enableFeedback .phonenumberFeedbackText").addClass("hide"),u.find(".enableFeedback .phonenumberErrorText").removeClass("hide"),u.find(".enableFeedback .phonenumberSuccessText").addClass("hide")}}}(o()(t).attr("id"))})),o()(this).on("keyup",(function(){d(o()(t).attr("id"))})),o()(this).on("keydown",(function(e){if(!e.ctrlKey&&!e.metaKey||65!==e.ke
876yCode&&67!==e.keyCode&&86!==e.keyCode){![8,9,13,16,32,37,39].includes(e.keyCode)&&(e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105)&&e.preventDefault();/[!@#$%^&*(),.?":{}|<>]/g.test(e.key)&&e.preventDefault()}})),o()(this).on("paste",(function(e){var t=(e.originalEvent.clipboardData||window.clipboardData).getData("Text");/^[0-9\s]*$/.test(t)||e.preventDefault()}))})),o()(".cmp-phonenumber-container").each((function(){var r=o()(this);if(o()(this).find("input:disabled").length<1){r.closest(".guidephonenumberdropdown").find(".guideFieldLabel label").on("click",(function(){r.closest(".guidephonenumberdropdown").find(".phoneNumber-dropdownList:not(.guideField-Widget)").trigger("focus")}));var i=function(){var t=r.find(".dropdown-container .country-code-value").val();r.find(".nearest-country-container").length&&r.find(".nearest-country-container").remove();var i="",a=o()('<div class="nearest-country-container"></div>'),s=null;o.a.each(n,(function(e,n){if(n.code===t)return s=n.nearestCountries?n.nearestCountries.sort((function(e,t){return e.countryName.localeCompare(t.countryName)})):null,!1})),o.a.each(s,(function(e,t){i+='<div class="nearest-country countryselectoption" tabindex="0" data-countrycode="'.concat(t.code,'" data-code="').concat(t.countryCode,'" data-countryname="').concat(t.countryName,'">'),i+='<span class="flag noto-color-emoji-regular">'.concat(t.flag,"</span>"),i+='<p><span class="country-name">'.concat(t.countryName,"</span>"),i+=' <span class="country-code">('.concat(t.countryCode,")</span>"),i+="</p>",i+="</div>"})),null!==s&&r.find(".countryselectoption:first").after(a.append(i).append('<div class="separator"><div class="cmp-separator"><hr class="cmp-separator__horizontal-rule"></div></div>')),r.find(".phonenumber-dropdown").show(),r.find(".selected-option").addClass("dropdown-expanded"),r.find(".phone-input-container").addClass("dropdown-selected"),r.find(".phonenumber-dropdown-wrapper").scrollTop(0),e(r)};r.find(".selected-option .arrow").on("click",(function(){i()})),r.find(".selected-option").on("keydown",(function(e){13===e.keyCode&&(e.preventDefault(),i())})),r.find(".selected-option").on("focus",(function(e){e.preventDefault(),i();var t=o()(".cmp-phonenumber-container .phonenumber-dropdown .phonenumber-dropdown-wrapper").children().last();a(t)}));var a=function(e){o()(document).on("focusout",e,(function(){setTimeout((function(){o()(document.activeElement).closest(".guidephonenumberdropdown").length||o()(".phonenumber-dropdown").hide()}),0)}))},l=function(){r.find(".selected-option").removeClass("dropdown-expanded"),r.find(".phonenumber-dropdown").hide(),r.find(".phone-input-container").removeClass("dropdown-selected"),r.find(".phonenumber-dropdown-wrapper").scrollTop(0),t(r)};r.on("keydown",".countryselectoption",(function(e){if(13===e.keyCode){e.stopPropagation();var t=o()(this).find(".flag").html(),n=o()(this).data("code"),i=o()(this).data("countrycode");r.find(".selectedCountry").removeClass("selectedCountry"),r.find(".phonenumber-dropdown").hide(),e.isTrigger||i===r.find(".country-code-value").val()||(r.find(".cmp-phone-input").val(""),s(r.find(".cmp-phone-input"),"",!1),r.find(".cmp-phone-input").focus()),r.find(".country-code-value").val(i),r.find(".selected-option .cflag").html(t),r.find(".dropdown-container .country-code").text(n),r.find(".selected-option").removeClass("dropdown-expanded"),o()(this).addClass("selectedCountry"),r.find(".nearest-country-container").length&&r.find(".nearest-country-container").remove();var a=r.find(".phonenumber-dropdown .phonenumber-dropdown-wrapper div").toArray(),l=r.find(".dropdown-container .country-code-value").val(),c=a.find((function(e){return o()(e).attr("data-countrycode")===l})),d=a.filter((function(e){return o()(e).attr("data-countrycode")!==l}));d.sort((function(e,t){var n=o()(e).attr("data-countryname"),r=o()(t).attr("data-countryname");return n.toUpperCase()===r.toUpperCase()?0:n.toUpperCase()>r.toUpperCase()?1:-1}));var u=[c].concat(ti(d));r.find(".phonenumber-dropdown .phonenumber-dropdown-wrapper").html(u)}})),r.find(".selected-option .arrow-reverse").on("click",(function(){l()})),r.find(".selected-option").on("keydown",(function(e){27===e.ke
876yCode&&l()})),r.on("click",".countryselectoption",(function(e){e.stopPropagation();var t=o()(this).find(".flag").html(),n=o()(this).data("code"),i=o()(this).data("countrycode");r.find(".selectedCountry").removeClass("selectedCountry"),r.find(".phonenumber-dropdown").hide(),e.isTrigger||i===r.find(".country-code-value").val()||(r.find(".cmp-phone-input").val(""),s(r.find(".cmp-phone-input"),"",!1),r.find(".cmp-phone-input").focus()),r.find(".country-code-value").val(i),r.find(".selected-option .cflag").html(t),r.find(".dropdown-container .country-code").text(n),r.find(".selected-option").removeClass("dropdown-expanded"),o()(this).addClass("selectedCountry"),r.find(".nearest-country-container").length&&r.find(".nearest-country-container").remove();var a=r.find(".phonenumber-dropdown .phonenumber-dropdown-wrapper div").toArray(),l=r.find(".dropdown-container .country-code-value").val(),c=a.find((function(e){return o()(e).attr("data-countrycode")===l})),d=a.filter((function(e){return o()(e).attr("data-countrycode")!==l}));d.sort((function(e,t){var n=o()(e).attr("data-countryname"),r=o()(t).attr("data-countryname");return n.toUpperCase()===r.toUpperCase()?0:n.toUpperCase()>r.toUpperCase()?1:-1}));var u=[c].concat(ti(d));r.find(".phonenumber-dropdown .phonenumber-dropdown-wrapper").html(u)})),r.find(".cmp-phone-input").on("input",(function(){r.find(".phone-input-container").addClass("inputting").removeClass("selected-state").removeClass("phone-input-focus")})),r.find(".cmp-phone-input").on("click",(function(){r.find(".phone-input-container").removeClass("inputting").removeClass("phone-input-focus").addClass("selected-state")}))}})),o()(document).on("click",(function(e){o()(".cmp-phonenumber-container").each((function(){var t=o()(this);o()(e.target).closest(t).length||(t.find(".phonenumber-dropdown").hide(),t.find(".selected-option").removeClass("dropdown-expanded"),t.find(".phone-input-container").removeClass("inputting selected-state dropdown-selected"))}))}))})),o()('[data-validate-rule="TelephoneValidRule"]').on("blur change",(function(){var e=o()(this),t=o()("#TelephoneValidRule").val();t&&(t.test(e.val())?e.closest(".form-group").addClass("field-valid").removeClass("field-invalid"):e.closest(".form-group").removeClass("field-valid").addClass("field-invalid"))})),o()('[data-validate-rule="EmailValidRule"]').on("blur change",(function(){var e=o()(this),t=o()("#EmailValidRule").val();t&&(t.test(e.val())?e.closest(".form-group").addClass("field-valid").removeClass("field-invalid"):e.closest(".form-group").removeClass("field-valid").addClass("field-invalid"))})),o()('.cmp-globalregistration__fields--container input[type="text"]:not(.cmp-phone-input)').on("blur change",(function(){var e=o()(this),t=e.closest(".cmp-globalregistration__fields--container"),n=e.attr("aria-required");"true"===n&&""==e.val()&&(e.closest(".form-group").removeClass("field-valid").addClass("field-invalid"),t.find(".enableFeedback").length?t.find(".cmp-globalregistration__error").hide():t.find(".cmp-globalregistration__error").show()),""!=e.val()?e.closest(".form-group").addClass("field-valid").removeClass("field-invalid"):""==e.val()&&"false"===n&&e.closest(".form-group").removeClass("field-valid field-invalid")})),o()('.cmp-globalregistration__fields--container select[type="select"]').on("blur change",(function(){var e=o()(this);""!=e.val()||null!=e.val()?e.closest(".form-group").addClass("field-valid").removeClass("field-invalid"):e.closest(".form-group").removeClass("field-valid").addClass("field-invalid")})),o()(".cmp-globalregistration__fields--container textarea").on("blur change",(function(){var e=o()(this);""!=e.val()?e.closest(".guideFieldNode").addClass("validation-success").removeClass("validation-failure"):e.closest(".guideFieldNode").addClass("validation-failure").removeClass("validation-success")})),o()(document).ready((function(){o()(".guidemultiselectdropdownlist").length>0&&document.querySelectorAll(".guidemultiselectdropdownlist").forEach((function(e){e.classList.contains("field-invalid")&&document.querySelectorAll(".guideFieldNode.validation-success").forEach((function(e){e.classList.remove("validation-success")}))})),o()(".multiselect-dropdownList").each((function(){var n=o()(this),h=document.createElement("p");h.classList.add("noresultsmsg-multi"),h.innerHTML=n.data("noresults"),h.style.display="none",o()(n.find(".dropdown-wrapper")[0]).append(h);var f=n.find(".multidropdown-input"),m=function(){var e=[];
876if(n.find('.dropdown-multiselectlist input[type="checkbox"]:checked').each((function(){var t=o()(this).closest("li").find(".text");t.length&&!o()(this).closest("li").hasClass("cmp-parent-checkbox")&&e.push(t.text().trim())})),f.val(e.join(", ")),f.data("selectedValues",e.join(", ")),s(f,e.join(", "),!0),!window.guideBridge){var t=n.siblings(".enableFeedback");n.find('.dropdown-multiselectlist input[type="checkbox"]:checked').length>0&&(n.closest(".dropdownfieldvalidator").addClass("valid-entry"),g(t))}""!=f.val()&&c(n),n.find(".dropdown-multiselectlist ul li span.text").each((function(){var e=o()(this).text();o()(this).html(e)}))};n.find("li.fielddisabled").each((function(){o()(this).find('input[type="checkbox"]')[0].classList.add("inactive")})),setTimeout((function(){n.find(".dropdown-multiselectlist input:checkbox.inactive").each((function(){var e=o()(this),t=e.closest("li.cmp-parent-checkbox");if(t.length){var n=t.find("ul.sub-wrapper input[type='checkbox']");e.closest("ul").hasClass("sub-wrapper")||e.prop("checked")&&n.prop("checked",!0).trigger("change"),n.length===n.filter(":checked").length?t.find('input[type="checkbox"]').prop("checked",!0):0===n.filter(":checked").length?t.find('input[type="checkbox"]').prop("checked",!1):t.addClass("partial-selected")}})),m()}),3e3),f.on("touchend click",(function(i){i.stopPropagation();var l=o()(this).closest(".multiselect-dropdownList"),c=window.matchMedia("(max-width: 1024px)").matches&&l.hasClass("dropdown-variant");c&&!l.hasClass("arrow_reverse")&&(i.preventDefault(),this.blur()),l.hasClass("arrow_reverse")?(c||l.removeClass("arrow_reverse"),m(),t(l)):(o()(".multiselect-dropdownList").removeClass("arrow_reverse mobileoverlay showdropdown"),l.addClass("arrow_reverse"),o()(".multiselect-dropdownList").find(".dropdown")[0].style.display="",f[0].value="",s(f,"",!1),n.find(".dropdown-multiselectlist .cmp-title").css("display",""),n.find(".noresultsmsg-multi")[0].style.display="none",n.find(".dropdown-multiselectlist ul li .wrapper span").each((function(e){var t=n.find(".dropdown-multiselectlist ul li .wrapper")[e];if(t.style.display="",t.parentElement.style.display="",null!==t.nextElementSibling)for(var r=t.nextElementSibling.children,i=0;i<r.length;i++)r[i].style.display=""})),e(l),setTimeout((function(){r(l)}),10),a(l)),p(l),n.find("li").has("ul").addClass("cmp-parent-checkbox")})),n.find("li").has("ul").addClass("cmp-parent-checkbox"),f.on("click",(function(){o()(".singleselect-dropdownList").hasClass("arrow_reverse")&&o()(".singleselect-dropdownList").removeClass("arrow_reverse")})),f.on("keydown",(function(i){if("Escape"===i.key||27===i.keyCode){var l=o()(this).closest(".multiselect-dropdownList");return i.stopPropagation(),l.removeClass("arrow_reverse"),!1}if(13==i.keyCode){i.stopPropagation();var c=o()(this).closest(".multiselect-dropdownList");c.hasClass("arrow_reverse")?(c.removeClass("arrow_reverse mobileoverlay showdropdown"),m(),t(c)):(o()(".multiselect-dropdownList").removeClass("arrow_reverse mobileoverlay showdropdown"),c.addClass("arrow_reverse"),o()(".multiselect-dropdownList").find(".dropdown")[0].style.display="",f[0].value="",s(f,"",!1),e(c),setTimeout((function(){r(c)}),10),a(c)),p(c),n.find("li").has("ul").addClass("cmp-parent-checkbox")}})),o()(this).find(".dropdown-close-icon").on("click",(function(e){e.stopPropagation();var n=o()(this).closest(".multiselect-dropdownList");n.removeClass("mobileoverlay arrow_reverse"),window.guideBridge||n.removeClass("mobileoverlay arrow_reverse selected-state"),p(n,!0),n.find(".dropdown").removeClass("showdropdown"),t(n),m()})),n.on("keydown",".dropdown-multiselectlist li:not(.fielddisabled)",(function(e){if(13==e.keyCode){e.stopPropagation();var t=o()(this).find('input[type="checkbox"]:not(.inactive)'),n=t.prop("checked");if(t.prop("checked",!n).trigger("change"),o()(this).hasClass("cmp-parent-checkbox"))o()(this).find("ul.sub-wrapper input[type='checkbox']:not(.inactive)").prop("checked",!n).trigger("change");m()}})),n.on("click",".dropdown-multiselectlist li:not(.fielddisabled)",(function(e){if(!o()(e.target).hasClass("fielddisabled")&&!o()(e.target).parent().hasClass("fielddisabled")&&!o()(e.target).hasClass("multi-select-checkbox")){e.stopPropagation();var t=o()(this).find('input[type="checkbox"]:not(.inactive)'),n=t.prop("checked");if(t.prop("checked",!n).trigger("change"),o()(this).hasClass("cmp-parent-checkbox"))o()(this).find("ul.sub-wrapper input[type='checkbox']:not(.inactive)").prop("checked",!n).trigger("change")}})),n.find('.dropdown-multiselectlist input[type="checkbox"]:not(.inactive)').on("click",(function(e){e.stopPropagation()})),n.find(".dropdown-multiselectlist input:checkbox.inactive").on("click",(function(e){return e.preventDefault(),e.stopImmediatePropagation(),!1})),n.find('.dropdown-multiselectlist input[type="checkbox"]:not(.inactive)').on("keyup",(function(e){9===e.which&&(o()(this).closest("li").hasClass("cmp-parent-checkbox")?o()(this).closest("li.cmp-parent-checkbox").find(".wrapper").addClass("wrapper-focus"):o()(this).closest("li:not(.cmp-parent-checkbox)").addClass("li-focus"))})),n.find('.dropdown-multiselectlist input[type="checkbox"]:not(.inactive)').on("blur",(function(){o()(this).closest("li").hasClass("cmp-parent-checkbox")?o()(this).closest("li.cmp-parent-checkbox").find(".wrapper").removeClass("wrapper-focus"):o()(this).closest("li:not(.cmp-parent-checkbox)").removeClass("li-focus");var e=n.find(".dropdown-multiselectlist").find('li:not([style*="display: none"])'),t=e.length-1;o()(this).closest("li")[0]==e[t]&&n.removeClass("arrow_reverse")})),n.find('.dropdown-multiselectlist input[type="checkbox"]:not(.inactive)').on("change",(function(){var e=o()(this),t=e.closest("li.cmp-parent-checkbox:not(.fielddisabled)");if(t.length){var n=t.find("ul.sub-wrapper input[type='checkbox']:not(.inactive)"),r=t.find("ul.sub-wrapper input[type='checkbox']");e.closest("ul").hasClass("sub-wrapper")||(e.prop("checked")?n.prop("checked",!0).trigger("change"):n.prop("checked",!1).trigger("change")),r.length===r.filter(":checked").length?(t.removeClass("partial-selected"),t.find('input[type="checkbox"]:not(.inactive)').prop("checked",!0)):0===r.filter(":checked").length?(t.removeClass("partial-selected"),t.find('input[type="checkbox"]:not(.inactive)').prop("checked",!1)):t.addClass("partial-selected")}})),o()(document).on("click",(function(e){o()(e.target).closest(".multiselect-dropdownList").length||o()(".multiselect-dropdownList").each((function(){var e=o()(this);u&&e.hasClass("arrow_reverse")&&(e.hasClass("mobileoverlay")||e.closest(".guideFieldNode").hasClass("enable-scroll"))||(e.removeClass("arrow_reverse"),m(),t(e))}))})),n.closest(".guideFieldNode").hasClass("enable-scroll")&&i(n.find(".dropdown-wrapper"));var g=function(e){e.find(".multiselectsuccess").removeClass("hide"),e.find(".multiselecterror").addClass("hide"),e.find(".multiselecttext").addClass("hide")},v=function(e){e.find(".multiselectsuccess").addClass("hide"),e.find(".multiselecterror").removeClass("hide"),e.find(".multiselecttext").addClass("hide")};n.find("input").on("change",(function(){if(!window.guideBridge){var e=n.siblings(".enableFeedback");n.find('.dropdown-multiselectlist input[type="checkbox"]:checked').length>
8760?(n.closest(".dropdownfieldvalidator").addClass("valid-entry"),n.closest(".dropdownfieldvalidator").removeClass("invalid-entry"),!e.length>0&&n.find(".multi-select-required").hide(),g(e)):(n.closest(".dropdownfieldvalidator").addClass("invalid-entry"),n.closest(".dropdownfieldvalidator").removeClass("valid-entry"),!e.length>0&&n.find(".multi-select-required").show(),v(e))}})),n.on("keyup",(function(e){if(!window.guideBridge&&e.shiftKey&&"Tab"===e.key&&"Tab"!==e.key){if(this.contains(e.relatedTarget))return;var t=n.find(".multi-select-required").attr("data-mandatoryfield"),r=n.find('.dropdown-multiselectlist input[type="checkbox"]:checked');if(!n.find("input").hasClass("changed")&&"true"===t&&""===n.find("input").val()&&!r.length){var i=n.siblings(".enableFeedback");n.closest(".dropdownfieldvalidator").addClass("invalid-entry"),n.closest(".dropdownfieldvalidator").removeClass("valid-entry"),!i.length>0&&(n.find(".multi-select-required-message").removeClass("hide"),n.closest(".guidefield").addClass("field-invalid")),v(i)}}})),n.find("input").on("blur",(function(e){if(!window.guideBridge){var t=n.find(".multi-select-required").attr("data-mandatoryfield");setTimeout((function(){var e=n.find('.dropdown-multiselectlist input[type="checkbox"]:checked');if(!n.find("input").hasClass("changed")&&"true"===t&&""===n.find("input").val()&&!e.length){var r=n.siblings(".enableFeedback");n.closest(".dropdownfieldvalidator").addClass("invalid-entry"),n.closest(".dropdownfieldvalidator").removeClass("valid-entry"),!r.length>0&&(n.find(".multi-select-required-message").removeClass("hide"),n.closest(".guidefield").addClass("field-invalid")),v(r)}}),150)}})),n.find("input").on("blur change",(function(){(n.closest(".guideFieldNode").hasClass("val
876idation-success")||n.closest(".guideFieldNode").hasClass("validation-failure"))&&(n.find('.dropdown-multiselectlist input[type="checkbox"]:checked').length>0?c(n):l(n))}));n.on("focusout",(function(e){y(n,e.currentTarget)}));var y=function(e,t){if(t.value){var n=t.value.toUpperCase();e.find(".dropdown-multiselectlist ul li span").each((function(r,i){var a,c,d=i.textContent||i.innertext,u=e.find(".dropdown-multiselectlist ul li .wrapper")[r],h=e.siblings(".enableFeedback");if(a=n,c=d.toUpperCase(),null==a.match(new RegExp("\\b".concat(c,"\\b")))){if(t.value="",s(o()(t),"",!0),l(e),e.find(".dropdown")[0].style.display="",u.parentElement.style.display="",null!==u.nextElementSibling){u.style.display="";for(var p=u.nextElementSibling.children,f=0;f<p.length;f++)p[f].style.display=""}else e.find(".dropdown-multiselectlist ul li")[r].style.display="";e.closest(".guidefield").removeClass("field-invalid"),!h.length>0&&e.find(".multi-select-required-message").addClass("hide"),h.find(".multiselecterror").addClass("hide"),h.find(".multiselectsuccess").removeClass("hide"),h.find(".multiselecttext").addClass("hide")}}))}};n.find("input.multidropdown-input").on("blur",(function(e){n.find(".noresultsmsg-multi")&&n.hasClass("arrow_reverse")&&"none"!=n.find(".noresultsmsg-multi")[0].style.display&&(n.removeClass("arrow_reverse"),y(n,e.currentTarget))})),n.find("input.multidropdown-input").on("keyup",(function(e){if("Escape"!==e.key&&27!==e.keyCode){if(f.data("selectedValues")&&(!e.shiftKey||"Tab"!==e.key)&&"Tab"!==e.key){var t=f.val();f.val(t.replace(new RegExp(f.data("selectedValues"),"g"),"")),s(f,t.replace(new RegExp(f.data("selectedValues"),"g"),""),!1)}"Backspace"!=e.key||n.hasClass("arrow_reverse")||(f.val(""),s(f,"",!1)),e.shiftKey&&"Tab"===e.key||"Tab"===e.key||(n.hasClass("arrow_reverse")||n.addClass("arrow_reverse"),d(n,e.currentTarget))}}))}));var d=function(e,t){var r=t.value.toUpperCase();e.find(".dropdown-multiselectlist ul li .sub-wrapper").length?e.find(".dropdown-multiselectlist ul li .wrapper span").each((function(t,n){var i=n.textContent||n.innertext,a=e.find(".dropdown-multiselectlist ul li .wrapper")[t];if(o()(a).next().length>0){var s=o()(a).next().children().length,l=0;o()(a).next().find("li span").each((function(e,t){var n=t.textContent||t.innertext,i=o()(a).next().find("li")[e];n.toUpperCase().indexOf(r)>-1?(i.style.display="",a.style.display="",a.parentElement.style.display=""):(i.style.display="none",l+=1)})),l===s&&(a.style.display="none",a.parentElement.style.display="none")}if(i.toUpperCase().indexOf(r)>-1){if(a.style.display="",a.parentElement.style.display="",null!==a.nextElementSibling)for(var c=a.nextElementSibling.children,d=0;d<c.length;d++)c[d].style.display="";e.find(".dropdown-multiselectlist .cmp-title").css("display",""),e.find(".noresultsmsg-multi")[0].style.display="none"}else i.toUpperCase().indexOf(r)>-1||null!=a.nextElementSibling||(a.style.display="none",a.parentElement.style.display="none")})):e.find(".dropdown-multiselectlist ul li span").each((function(t,n){var i=n.textContent||n.innertext,o=e.find(".dropdown-multiselectlist ul li")[t];i&&(i.toUpperCase().indexOf(r)>-1?o.style.display="":o.style.display="none",e.find(".dropdown-multiselectlist .cmp-title").css("display",""),e.find(".noresultsmsg-multi")[0].style.display="none")})),e.find(".dropdown-multiselectlist li").length===e.find(".dropdown-multiselectlist li[style*='display: none']").length?(e.find(".noresultsmsg-multi")[0].style.display="",e.find(".cmp-title")[0].style.display="none"):e.find(".noresultsmsg-multi")[0].style.display="none",e.find(".dropdown-multiselectlist ul li span.text").each((function(){var e=o()(this).text(),r=t.value;n(e,r),o()(this).html(n(e,r))}))}}));var m=document.querySelectorAll(".cmp-form-options--radio");m.length>0&&m.forEach((function(e){var t=e.querySelectorAll(".cmp-form-options__field--radio"),n=e.nextElementSibling,r=e.querySelector(".cmp-form-options__field--radio:checked:disabled");if(t.forEach((function(e){e.addEventListener("click",(function(t){!e.disabled&&r&&(t.preventDefault(),r.checked=!0)}))})),t.forEach((function(e){e.addEventListener("keyup",(function(t){if(t.shiftKey&&"Tab"===t.key||"Tab"===t.key){var n=document.createElement("span");n.classList.add("radio-focus"),e.after(n)}})),e.addEventListener("focusout",(function(){var e=document.querySelector(".radio-focus");e&&e.remove()}))})),n){var i=n.querySelector(".cmp-form-options-required-message");t.forEach((function(t){t.addEventListener("change",(function(){i.classList.add("hide"),e.classList.remove("field-invalid")}))}
876))}}));var g=document.querySelectorAll(".cmp-form-options--checkbox");g.length>0&&g.forEach((function(e){var t=e.querySelectorAll(".cmp-form-options__field--checkbox"),n=e.nextElementSibling;if(n){var r=n.querySelector(".cmp-form-options-required-message");t.forEach((function(e){e.addEventListener("change",(function(){Array.from(t).some((function(e){return e.checked}))?(r.classList.add("hide"),e.parentElement.classList.remove("field-invalid")):(r.classList.remove("hide"),e.parentElement.classList.add("field-invalid"))}))}))}}))},ii=function(){document.addEventListener("DOMContentLoaded",(function(){ri()}))},oi=function(){o()(document).ready((function(){o()(".carousel-new-container").each((function(){var e=o()(this),t=e.find(".carousel-new");if(t.length){var n=function(e,t){var n=e.find("li.slick-active");t?(n.nextAll().hide(),n.prevAll().hide()):n.removeClass("nextItem"),n.prevAll().length>=3?(n.get(0).scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"}),n.prevAll().hide(),n.prev().removeClass("prevItem").show(),n.prev().prev().addClass("prevItem").show(),n.nextAll().length>=3?(n.nextAll().hide(),n.next().removeClass("nextItem").show(),n.next().next().addClass("nextItem").show()):(e.find("li").removeClass("nextItem"),n.nextAll().show(),n.prev().show(),1==n.nextAll().length&&(n.prev().prev().removeClass("prevItem").show(),n.prev().prev().prev().show()),0==n.nextAll().length&&(n.prev().prev().prev().prev().addClass("prevItem").show(),n.prev().prev().prev().removeClass("prevItem").show(),n.prev().prev().removeClass("prevItem").show()))):t?(n.next().show(),n.next().next().show(),n.next().next().next().show(),n.next().next().next().next().addClass("nextItem").show()):(2==n.prevAll().length&&n.next().next().not(".nextItem").hide(),e.find("li").removeClass("prevItem"),n.prevAll().show())},r=function(e){var t=e.$slider[0].closest(".carousel-block"),n=o()(t).find(".slick-dots"),r=o()(t).find(".slider__counter"),i=o()(t).find(".slick-track");if(n.length&&r.length){var a=n.width(),s=parseFloat(i.css("padding-top").replace("px","")),l=parseFloat(n.css("left").replace("px","")),c=parseInt(a,10)+parseInt(l,10)+parseInt(s,10);r.css("margin-left","".concat(c,"px"))}},i=function(e){var t=e.$slider[0].closest(".carousel-block"),n=o()(t).find(".slick-dots");n.length>0&&(n[0].children.length<5&&window.matchMedia("(max-width: 340px)").matches&&n.css("left","27%"),n[0].children.length<5&&window.matchMedia("(min-width: 341px) and (max-width: 375.9px)").matches&&n.css("left","29%"),n[0].children.length<5&&window.matchMedia("(min-width: 376px) and (max-width: 390.9px)").matches&&n.css("left","28%"),n[0].children.length<5&&window.matchMedia("(min-width: 391px) and (max-width: 440.9px)").matches&&n.css("left","29%"),n[0].children.length<5&&window.matchMedia("(min-width: 441px) and (max-width: 540px)").matches&&n.css("left","34%"))},a=!1,s={},l=function(){var n=e.hasClass("landscape-mode"),r={infinite:!1,slidesToShow:n?1:3,slidesToScroll:n?1:3,dots:!0,arrows:!0,centerMode:n,responsive:[{breakpoint:1025,settings:{slidesToShow:2,slidesToScroll:2,centerMode:!1,centerPadding:"22px"}},{breakpoint:730,settings:{slidesToShow:1,slidesToScroll:1,centerMode:!0}}]};if(a){var i=!1;for(var o in r)if(JSON.stringify(r[o])!==JSON.stringify(s[o])){i=!0;break}i&&(t.slick("unslick"),t.slick(r),s=r)}else t.slick(r),s=r,a=!0},c=function(e){var t=e.slickCurrentSlide()+1,n=e.slideCount,r=e.$slider[0].closest(".carousel-block"),i=o()(r).find(".slider__counter");if(e.$list.parent().parent().hasClass("landscape-mode")||window.matchMedia("(max-width: 729px)").matches){var a=t>0?t:0;i.text("".concat(Math.ceil(a),"/").concat(n))}else if(window.matchMedia("(min-width:730px) and (max-width: 1024px)").matches){var s=t>0?t/2:0;i.text("".concat(Math.ceil(s),"/").concat(Math.ceil(n/2)))}else{var l=t>0?t/3:0;i.text("".concat(Math.ceil(l),"/").concat(Math.ceil(n/3)))}window.matchMedia("(max-width: 1024px)").matches||(1==t?o()(e.$prevArrow).addClass("slick-disabled"):1!==t&&o()(e.$prevArrow).removeClass("slick-disabled"),n-t<e.options.slidesToScroll?o()(e.$nextArrow).addClass("slick-disabled"):n-t>=e.options.slidesToScroll||o()(e.$nextArrow).removeClass("slick-disabled"))};t.on("init afterChange",(function(e,t,a){if(t.$list){var s=t.$list.parent().parent().hasClass("landscape-mode"),l=t.$slider[0].closest(".carousel-block"),d=o()(l).find(".slick-dots");o()(l).find(".cmp-loading-gif").addClass("hide");var u=o()(l).find(".carousel-button-mobile");if(setTimeout((function(){o()(l).find(".slick-prev, .slick-next").attr({tabindex:"0",role:"button"}),o()(l).find(".slick-dots button").each((function(){o()(this).attr({role:"button",tabindex:"0"})}))}),100),(s||window.matchMedia("(max-width: 1024px)").matches&&t.$slides.length>2)&&n(d,"init"===e.type),window.matchMedia("(max-width: 729.9px").matches&&t.$slides.length<2&&u.css("marginTop","0"),i(t),"init"===e.type){o()(".carousel-new").attr("aria-live","polite");var h=o()(l).find(".carousel-new");0===o()(l).find(".slider__counter").length&&h.append('<div class="slider__counter"></div>');var p=o()(l).find(".slider__counter");(!s&&window.matchMedia("(min-width: 1024.1px").matches&&t.$slides.length<4||!s&&window.matchMedia("(min-width: 730.1px").matches&&t.$slides.length<3)&&p.hide(),t.$slides.length<2&&p.hide()}c(t),r(t)}})),l(),o()(window).on("resize",(function(){var e,a,s,d;o()(".carousel-block").each((function(){o()(this).find(".slider__counter").hide()})),(e=function(){l(),t.each((function(){var e=o()(this).slick("getSlick"),t=o()(this).closest(".carousel-block"),a=o()(t).find(".slick-dots"),s=a.find("li.slick-active"),l=o()(t).find(".slider__counter"),d=e.$list.parent().parent().hasClass("landscape-mode"),u=o()(t).find(".carousel-new"),h=o()(t).find(".carousel-button-mobile");0===o()(t).find(".slider__counter").length&&u.append('<div class="slider__counter"></div>'),(d||window.matchMedia("(max-width: 1024px)").matches&&e.$slides.length>2)&&n(a,"1"===s[0].innerText),window.matchMedia("(max-width: 729.9px").matches&&e.$slides.length<2&&h.css("marginTop","0"),i(e),c(e),r(e),l.show();var p=o()(t).find(".slider__counter");(!d&&window.matchMedia("(min-width: 1024.1px").matches&&e.$slides.length<4||!d&&window.matchMedia("(min-width: 730.1px").matches&&e.$slides.length<3)&&p.hide(),e.$slides.length<2&&p.hide()}))},a=250,function(){var t=this,n=arguments,r=function(){d=null,s||e.apply(t,n)},i=s&&!d;clearTimeout(d),d=setTimeout(r,a),i&&e.apply(t,n)})()}))}}))}))},ai=function(){document.addEventListener("DOMContentLoaded",(function(){oi()}))};function si(e){return function(e){if(Array.isArray(e))return di(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ci(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function li(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}
876finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||ci(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ci(e,t){if(e){if("string"==typeof e)return di(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?di(e,t):void 0}}function di(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}o()(document).ready((function(){var e=o()("#uploadModal"),t=o()("#progressArea"),n="",r=function(e,t){var n=new DataTransfer,r=[];if(e.forEach((function(e){n.items.add(e.file),r.push(e.file.name)})),t[0].files=n.files,t.parent().data("componentName")&&window.guideBridge&&window.guideBridge.resolveNode){var i=t.parent().data("componentName"),o=window.guideBridge.resolveNode(window.guideBridge.resolveNode("".concat(i,".somExpression")));o&&(o.fileList=new Array(t),o.fileAttachment.value=r.join("\n"))}},i=function(e){o()(e).find(".chipset").find(".chip").length>0?(o()(e).closest(".guideFileUpload").removeClass("validation-failure").addClass("validation-success"),o()(e).find(".cmp-color-error,.cmp-color-normal").addClass("hide").removeClass("show"),o()(e).find(".cmp-color-success").addClass("show").removeClass("hide"),o()(e).closest(".guideFileUpload").addClass("fileuploaded")):(o()(e).find(".cmp-color-error").addClass("show").removeClass("hide"),o()(e).find(".cmp-color-success,.cmp-color-normal").addClass("hide").removeClass("show"),o()(e).closest(".guideFileUpload").addClass("validation-failure").removeClass("validation-success"),o()(e).closest(".guideFileUpload").removeClass("fileuploaded"))};o()(".file-upload-wrapper").each((function(){var a=o()(this),s=a.find(".drop-area").length?a.find(".drop-area"):a.find(".droparea"),l=a.find(".fileElem").length?a.find(".fileElem"):a.find('input[type="file"]').length?a.find('input[type="file"]'):a.parent().find('input[type="file"]'),c=a.find(".chipset").length?a.find(".chipset"):a.find(".fileTags"),d=c.find(".cmp-container"),u=a.parent(),h=u.find(".cmp-extended-modal").length?u.find(".cmp-extended-modal").first():e,p=h.find("#progressArea").length?h.find("#progressArea"):t.length?t:h.find(".cmp-extended-modal__container__body .responsivegrid .cmp-container").first(),f=h.find("#errormessage").length?h.find("#errormessage"):o()("#errormessage").length?o()("#errormessage"):h.find(".filecountexceed-error").closest(".cmp-container"),m=a.data("filecount"),g=a.data("filesize"),v=a.attr("data-filesizeerror"),y=a.attr("data-fileextensionerror"),b=window.innerWidth,_=l.attr("accept");document.createElement("div").className="dynamicerror-container";var w=f.find(".filemimetype-error").find(".cmp-text p").html()||f.find(".text:eq(1) .cmp-text p").html(),x=f.find(".filemimetype-error").find(".cmp-text p .error-Aftertext").html()||f.find(".text:eq(1) .cmp-text p .error-Aftertext").html(),C=f.find(".filesize-error").find(".cmp-text p .error-Aftertext").html()||f.find(".text:eq(2) .cmp-text p .error-Aftertext").html(),S=f.find(".filesize-error").find(".cmp-text p").html()||f.find(".text:eq(2) .cmp-text p").html(),E=f.find(".filecountexceed-error").find(".cmp-text p").html()||f.find(".text:eq(0) .cmp-text p").html(),k=f.find(".filecountexceed-error").find(".cmp-text p .error-Aftertext").html()||f.find(".text:eq(0) .cmp-text p .error-Aftertext").html();a.find(".chipset").addClass("hide");var T=0;f.addClass("hide");var O=[],$=[],P=[];if(s.length&&s[0])if(l.length){s[0].addEventListener("click",(function(){return l.click()})),s[0].addEventListener("keydown",(function(e){13===e.which&&l.click()})),["dragenter","dragover"].forEach((function(e){s[0].addEventListener(e,(function(e){e.preventDefault(),s[0].classList.add("highlight")}))})),["dragleave","drop"].forEach((function(e){s[0].addEventListener(e,(function(e){e.preventDefault(),s[0].classList.remove("highlight")}))})),s[0].addEventListener("drop",(function(e){var t=e.dataTransfer.files;l[0].files=t,document.getElementById(l.attr("id")).dispatchEvent(new Event("change"))}));var I=function(e){var t=c.find(".chip").length;(m=parseInt(n.data("filecount"),10))<e+t?(f.find(".filecountexceed-error").removeClass("hide"),o()(".addmoreitem-wrapper").find(".done").addClass("disabled"),f.removeClass("hide")):(f.find(".filecountexceed-error").addClass("hide"),h.find(".filecountexceed-dynamic").remove(),o()(".addmoreitem-wrapper").find(".done").removeClass("disabled")),0==e&&0==o()(".progress-container").length&&(o()(".uploaded-nill").removeClass("hide"),o()(".clearall-wrapper").addClass("hide"),o()(".fileupload-footer-link").addClass("clearall-remove"))},L=function(e,t,r,i,a){r.substring(r.lastIndexOf("."));m=parseInt(n.data("filecount"),10);var s=0;if(function(e,t){if(!t||""===t.trim())return!1;var n=(e||"").toLowerCase();return t.split(",").map((function(e){return e.trim().toLowerCase()})).some((function(e){if(e.endsWith("/*")){var t=li(e.split("/"),1)[0];return n.startsWith("".concat(t,"/"))}return e.includes("/")&&n===e}))}(i,_))if(a>=1024*g*1024){d.find(".chip")&&d.find(".chip").length>m&&(f.find(".filecountexceed-error").removeClass("hide"),o()(".addmoreitem-wrapper").find(".done").addClass("disabled"),f.removeClass("hide")),p.find(".progress-container:not(.upload-error)").length+c.find(".chip").length>m&&(f.find(".filecountexceed-error").removeClass("hide"),o()(".addmoreitem-wrapper").find(".done").addClass("disabled"),f.removeClass("hide"));var l=document.getElementById("progress-".concat(e));o()(l.closest(".progress-container")).addClass("filesize upload-error");setInterval((function(){s+=20*Math.random(),l.style.width="80%",o()(l.closest(".progress-container")).find(".progress-bar").show(),o()(l.closest(".progress-container")).find(".uploaddone").removeClass("success-done"),o()(l.closest(".progress-container")).find(".upload").hide(),o()(l.closest(".progress-container")).find(".uploadclose").addClass("error-close"),o()(l.closest(".progress-container")).find(".delete-btn-modal").hide(),p.find(".progress-container:not(.upload-error)").length+c.find(".chip").length>m&&(f.find(".filecountexceed-error").removeClass("hide"),o()(".addmoreitem-wrapper").find(".done").addClass("disabled"))}),300);B(),o()(".addmoreitem-wrapper").find(".done").addClass("disabled"),setTimeout((function(){o()(".addmoreitem-wrapper").find(".done").removeClass("disabled"),o()(l.closest(".progress-container")).find(".progress-bar-right").hide(),U()}),1e3);var u=document.createElement("div");u.className="dynamicerror-container",u.innerHTML='\n <div class="filesizeeerror" >\n <p>
876'.concat(v||C||S||"File size exceeds the limit. Must be less than ".concat(g,"MB"),"</p>\n </div>\n "),o()(l.closest(".progress-container")).append(u)}else{document.getElementById("progress-".concat(e));o()(".addmoreitem-wrapper").find(".done").addClass("disabled");var h=setInterval((function(){if((s+=20*Math.random())>=100){s=100,clearInterval(h);var n=document.getElementById("progress-".concat(e));if(o()(n.closest(".progress-container")).removeClass("upload-error"),n){n.style.width="0%",o()(n.closest(".progress-container")).find(".progress-bar-right").css("width","4%"),o()(n.closest(".progress-container")).find(".progress-left-right-wrapper").css("justify-content","unset"),o()(n.closest(".progress-container")).find(".progress-bar-left").css("width","95%"),o()(n.closest(".progress-container")).find(".progress-bar").css("width",0),o()(n.closest(".progress-container")).find(".uploaddone").addClass("success-done"),o()(n.closest(".progress-container")).find(".upload").hide(),o()(n.closest(".progress-container")).find(".uploadclose").removeClass("error-close"),o()(n.closest(".progress-container")).find(".delete-btn-modal").show(),$.push(t),O.push(t.name),P.push({id:e,file:t}),o()(".addmoreitem-wrapper").find(".done").removeClass("disabled");var r=document.getElementById("container-".concat(e)),i=r.querySelector(".progress-bar-left");j(r,i);var a=p.find(".progress-container:not(.upload-error)").length;T=a,o()(".upload-count").text(T),a+c.find(".chip").length>m&&(f.find(".filecountexceed-error").removeClass("hide"),o()(".addmoreitem-wrapper").find(".done").addClass("disabled"),f.removeClass("hide")),U()}}else{var l=document.getElementById("progress-".concat(e));l&&(l.style.width="".concat(s,"%"),o()(l.closest(".progress-container")).find(".progress-bar-right,.progress-bar,.progress-bar-left").removeAttr("style"),o()(l.closest(".progress-container")).find(".progress-bar").show(),o()(l.closest(".progress-container")).find(".uploaddone").removeClass("success-done"),o()(l.closest(".progress-container")).find(".upload").show(),o()(l.closest(".progress-container")).find(".uploadclose").removeClass("error-close"),o()(".addmoreitem-wrapper").find(".done").addClass("disabled"),o()(l.closest(".progress-container")).find(".delete-btn-modal").show())}}),300)}else{d.find(".chip")&&d.find(".chip").length>m&&(f.find(".filecountexceed-error").removeClass("hide"),o()(".addmoreitem-wrapper").find(".done").addClass("disabled"),f.removeClass("hide")),p.find(".progress-container:not(.upload-error)").length+c.find(".chip").length>m&&(f.find(".filecountexceed-error").removeClass("hide"),o()(".addmoreitem-wrapper").find(".done").addClass("disabled"),f.removeClass("hide"));var b=document.getElementById("progress-".concat(e));o()(b.closest(".progress-container")).addClass("mimetype upload-error");setInterval((function(){s+=20*Math.random(),b.style.width="80%",o()(b.closest(".progress-container")).find(".progress-bar").show(),o()(b.closest(".progress-container")).find(".uploaddone").removeClass("success-done"),o()(b.closest(".progress-container")).find(".upload").hide(),o()(b.closest(".progress-container")).find(".uploadclose").addClass("error-close"),o()(b.closest(".progress-container")).find(".delete-btn-modal").hide(),p.find(".progress-container:not(.upload-error)").length+c.find(".chip").length>m&&(f.find(".filecountexceed-error").removeClass("hide"),o()(".addmoreitem-wrapper").find(".done").addClass("disabled"),f.removeClass("hide"))}),300);B(),o()(".addmoreitem-wrapper").find(".done").addClass("disabled"),setTimeout((function(){o()(".addmoreitem-wrapper").find(".done").removeClass("disabled"),o()(b.closest(".progress-container")).find(".progress-bar-right").hide(),U()}),1e3);var E=document.createElement("div");E.className="dynamicerror-container",E.innerHTML='\n <div class="mimetypeerror" >\n\n <p>'.concat(y||x||w||"File type not supported","</p>\n </div>\n "),o()(b.closest(".progress-container")).append(E)}},A=function(e,t){h.css("display","flex"),h.focus(),n=a,o()(".clearall-wrapper").removeClass("hide"),o()(".uploaded-nill").addClass("hide"),o()(".fileupload-footer-link").removeClass("clearall-remove"),m=parseInt(n.data("filecount"),10);var i=c.find(".chip").length+p.find(".progress-container:not(.upload-error)").length+e.length;if(!isNaN(m)&&m>0&&i>m){var s=h.find(".filecountexceed-error");
876if(s.length&&(s.removeClass("hide"),s.parents().each((function(){if(o()(this).is(h))return!1;o()(this).removeClass("hide")}))),f.length&&(f.find(".filecountexceed-error").removeClass("hide"),f.removeClass("hide")),!(s.length||f.length&&f.find(".filecountexceed-error").length)){var d=o()('<div class="dynamicerror-container filecountexceed-dynamic"><div class="filecountexceed-error"><p>'+(k||E||"File count exceeds the maximum limit of "+m+" file(s).")+"</p></div></div>");p.after(d)}o()(".addmoreitem-wrapper").find(".done").addClass("disabled")}si(e).forEach((function(e){o()(".progress-container").each((function(){if(o()(this).find(".filename .truncatefilename").text()==e.name){o()(this).hasClass("upload-error")||(T=Math.max(0,T-1));var t=o()(this).attr("id"),n=P.findIndex((function(e){return t&&t.includes(e.id)}));-1!==n&&P.splice(n,1),o()(this).remove()}})),O=O.filter((function(t){return t!==e.name})),o()(".chip").each((function(){o()(this).find(".cmp-chip-text .truncatefilename").text()==e.name&&o()(this).remove()})),f.find(".filemimetype-error , .filesize-error ,.filecountexceed-error,.filename-similarerror").addClass("hide");var t,i=Math.random().toString(36).substring(2,9),a=document.createElement("div");a.className="progress-container",a.id="container-".concat(i),a.innerHTML='<div class="progress-left-right-wrapper" tabindex="0">\n <div class="progress-bar-left">\n<div class="upload-done-wrapper">\n <span class="material-symbols-rounded uploaddone">done</span> <span class="material-symbols-rounded upload">upload</span> <span class="material-symbols-rounded uploadclose">error</span>\n </div>\n <div class="filename" data-filename-index="'.concat(i,'">\n <span class="truncatetempfilename"></span><span class="truncatefilename hide">',"".concat(e.name),'</span><span class="filesize hide">',"".concat((t=e.size,t>=1048576?"".concat((t/1048576).toFixed(2),"MB"):"".concat((t/1024).toFixed(2),"KB"))),'</span>\n </div>\n </div>\n <div class="progress-bar-right">\n <div class="progress-bar">\n <div class="progress-bar-inner" id="progress-').concat(i,'"></div>\n </div>\n <span translate="no" aria-hidden="true" tabindex="0" class="material-symbols-rounded notranslate delete-btn-modal">close</span>\n </div>\n </div>'),p.append(a);o()(".truncatefilename").html();var s=document.getElementById("container-".concat(i)),d=s.querySelector(".progress-bar-left");M(s,d),new ResizeObserver((function(){M(s,d)})).observe(s),L(i,e,e.name,e.type,e.size);var u=o()(".cmp-extended-modal__container");u.find(".progress-left-right-wrapper").on("keydown",(function(e){if(13===e.keyCode){var t;e.preventDefault(),console.log(P,"fileUploaded");var n=e.currentTarget.getElementsByClassName("filename")[0].getAttribute("data-filename-index"),r=null===(t=P.filter((function(e){return e.id===n}))[0])||void 0===t?void 0:t.file;if(!r)return void console.log("No file found for this chip");var i=URL.createObjectURL(r);window.open(i,"_blank")}})),o()(".delete-btn-modal").on("keydown",(function(e){if(13===e.keyCode){e.preventDefault(),console.log(e.target);var t=o()(e.target).closest(".progress-container"),n=t.attr("id"),i=t.find(".truncatefilename").text(),a=P.findIndex((function(e){return n.includes(e.id)}
876));-1!==a&&P.splice(a,1),r(P,l),N(n,i),f.find(".filecountexceed-error,.filesize-error,.filemimetype-error").addClass("hide"),o()(".addmoreitem-wrapper").find(".done").removeClass("disabled");var s=p.find(".progress-container:not(.upload-error)").length,d=c.find(".chip").length;o()(".upload-count").text(s),I(s),s+d>m&&(f.find(".filecountexceed-error").removeClass("hide"),o()(".addmoreitem-wrapper").find(".done").addClass("disabled"),f.removeClass("hide"))}})),u.find(".done").on("keydown",(function(e){9===event.keyCode&&(event.shiftKey?console.log("Shift + Tab"):(e.preventDefault(),u.focus())),13===event.keyCode&&setTimeout((function(){n.find(".droparea").focus()}),100)})),U(),o()(window).on("resize",(function(){U(),M(s,d)}))}))},M=function(e,t){var n=o()(e.querySelector(".truncatefilename")).html(),r=o()(e.querySelector(".filesize")).html(),i=t.querySelector(".truncatetempfilename"),a=n.substring(n.lastIndexOf(".")),s=n.substring(0,n.lastIndexOf(".")),l=s.match(/[<>:/\\|?*\x00-\x1F]/),c=l?l.index:s.length,d=s.substring(0,c+1),u=document.createElement("canvas").getContext("2d");u.font=getComputedStyle(t).font;var h="".concat(d+a," ").concat(r),p=d.slice(0,1),f="";if(b>=1024.1){if(u.measureText(h).width<=i.offsetWidth)return void(i.textContent=h);for(var m=1;m<=d.length;m++){var g="".concat(p,"...").concat(d.slice(-1)).concat(a," ").concat(r);if(!(u.measureText(g).width<=i.offsetWidth))break;f=g,p=d.slice(0,m+1)}}else{if(u.measureText(h).width<=.84*t.offsetWidth)return void(i.textContent=h);for(var v=1;v<=d.length;v++){var y="".concat(p,"...").concat(d.slice(-1)).concat(a," ").concat(r);if(!(u.measureText(y).width<=.84*t.offsetWidth))break;f=y,p=d.slice(0,v+1)}}i.textContent=f||h},j=function(e,t){var n=o()(e.querySelector(".truncatefilename")).html(),r=o()(e.querySelector(".filesize")).html(),i=t.querySelector(".truncatetempfilename"),a=n.substring(n.lastIndexOf(".")),s=n.substring(0,n.lastIndexOf(".")),l=s.match(/[<>:/\\|?*\x00-\x1F]/),c=l?l.index:s.length,d=s.substring(0,c+1),u=document.createElement("canvas").getContext("2d");u.font=getComputedStyle(t).font;var h="".concat(d+a," ").concat(r);if(u.measureText(h).width<=t.offsetWidth)i.textContent=h;else{for(var p=d.slice(0,1),f="",m=1;m<=d.length;m++){var g="".concat(p,"...").concat(d.slice(-1)).concat(a," ").concat(r);if(!(u.measureText(g).width<=t.offsetWidth))break;f=g,p=d.slice(0,m+1)}i.textContent=f||h}},R=function(e,t){var n=o()(e.querySelector(".truncatefilename")).html(),r=t.querySelector(".truncatetempfilename"),i=n.substring(n.lastIndexOf(".")),a=n.substring(0,n.lastIndexOf(".")),s=a.match(/[<>:/\\|?*\x00-\x1F]/),l=s?s.index:a.length,c=a.substring(0,l+1),d=document.createElement("canvas").getContext("2d");d.font=getComputedStyle(t).font;var u=c+i;if(d.measureText(u).width<=245)r.textContent=u;else{for(var h="",p=1;p<=c.length;p++){var f=c.slice(0,p)+"..."+c.charAt(c.length-1)+i;if(!(f.length<=36))break;h=f}r.textContent=h||u}},D=function(){a.find(".chipset").addClass("hide"),d.html("");var e=si(new Set(O));o()(".fileuploadchip-withdrafticon").length>0?e.forEach((function(e,t){var n=document.createElement("div");n.className="cmp-container",n.id="chipwrapper-".concat(t);var r=document.createElement("div");r.className="chip",r.id="chip-".concat(t),r.innerHTML='\n\n <div class="cmp-container--chip cmp-chip--with-icon cmp-chip--with-draft-icon" >\n <a href="javascript:void(0)" class="chip-text-link" >\n <span translate="no" aria-hidden="true" data-file-index="'.concat(t,'" class="cmp-chip-text material-symbols-rounded notranslate draft">draft</span>\n <span class="cmp-chip-text" data-file-index="').concat(t,'"><span class="truncatetempfilename"></span><span class="truncatefilename hide">').concat(e,'</span></span>\n <span class="material-symbols-rounded delete-btn close" tabindex="0">close</span>\n </a>\n </div>\n </div>\n\n '),a.find(".chipset").removeClass("hide"),d.append(r);var i=r.querySelector(".chip-text-link");R(r,i)})):e.forEach((function(e,t){var n=document.createElement("div");n.className="cmp-container",n.id="chipwrapper-".concat(t);var r=document.createElement("div");
876r.className="chip",r.id="chip-".concat(t),r.innerHTML='\n\n <div class="cmp-container--chip cmp-chip--with-icon" >\n <a href="javascript:void(0)" class="chip-text-link" >\n <span class="cmp-chip-text" data-file-index="'.concat(t,'"><span class="truncatetempfilename"></span><span class="truncatefilename hide">').concat(e,'</span></span>\n <span class="material-symbols-rounded delete-btn close" tabindex="0">close</span>\n </a>\n </div>\n </div>\n\n '),a.find(".chipset").removeClass("hide"),d.append(r);var i=r.querySelector(".chip-text-link");R(r,i)})),console.log(e,"files array"),i(n),o()(".delete-btn").on("click",(function(e){e.preventDefault(),e.stopImmediatePropagation(),console.log(e.target);var t=o()(e.target).closest(".file-upload-wrapper"),n=o()(e.target).closest(".chip").find(".cmp-chip-text .truncatefilename").text(),r=o()(e.target).closest(".chip").find(".cmp-chip-text").data("file-index");$.splice(r,1),F(n),o()(".progress-container").each((function(){o()(this).find(".truncatefilename").text()==n&&o()(this).remove()})),i(t)})),o()(".delete-btn").on("keydown",(function(e){if("enter"===e.key||13===e.keyCode){e.preventDefault(),e.stopImmediatePropagation(),console.log(e.target);var t=o()(e.target).closest(".file-upload-wrapper"),n=o()(e.target).closest(".chip").find(".cmp-chip-text .truncatefilename").text(),r=o()(e.target).closest(".chip").find(".cmp-chip-text").data("file-index");$.splice(r,1),F(n),o()(".progress-container").each((function(){o()(this).find(".truncatefilename").text()==n&&o()(this).remove()})),i(t)}}))},F=function(e){O=O.filter((function(t){return t!==e}));var t=P.findIndex((function(t){return e.includes(t.file.name)}));-1!==t&&P.splice(t,1),r(P,l),D()},N=function(e,t){O=O.filter((function(e){return e!==t}));var n=document.getElementById("".concat(e));o()(".dynamicerror-container").each((function(){o()(this).find(".errorfilename").text()==t&&o()(this).html("")})),n&&(n.remove(),T-=1);var r=p.find(".progress-container:not(.upload-error)").length;I(r),0==r&&0==o()(".progress-container").length&&(o()(".uploaded-nill").removeClass("hide"),o()(".clearall-wrapper").addClass("hide"),o()(".fileupload-footer-link").addClass("clearall-remove")),U(),o()(window).on("resize",(function(){U()}))};o()(".addmoreitem-wrapper").find(".addmoreitems").on("click",(function(e){e.preventDefault(),e.stopImmediatePropagation(),(l=n.closest(".fileUpload").find("input")).click()})),o()(".addmoreitem-wrapper").find(".done").on("click",(function(e){e.preventDefault(),h.css("display","none"),p.empty(),o()(".dynamicerror-container").html(""),h.find(".filecountexceed-dynamic").remove(),f.find(".filecountexceed-error").addClass("hide"),f.addClass("hide"),o()(".upload-count").text("0"),D(),T=0,r(P,l)})),o()(".clearall-wrapper").find(".clearall").on("click",(function(e){e.preventDefault(),o()(".progress-container").each((function(){var e=o()(this).find(".filename .truncatefilename").text();O=O.filter((function(t){return t!==e}));var t=P.findIndex((function(t){return e.includes(t.file.name)}));-1!==t&&P.splice(t,1),r(P,l)})),p.empty(),o()(".dynamicerror-container").html(""),h.find(".filecountexceed-dynamic").remove(),o()(".addmoreitem-wrapper").find(".addmoreitems").removeClass("mismatcherror"),o()(".addmoreitem-wrapper").find(".done").removeClass("disabled");var t=p.find(".progress-container:not(.upload-error)").length;I(t),o()(".upload-count").text("0"),f.find(".filemimetype-error , .filesize-error ,.filecountexceed-error").addClass("hide"),o()(".uploaded-nill").removeClass("hide"),o()(".clearall-wrapper").addClass("hide"),o()(".fileupload-footer-link").addClass("clearall-remove"),f.addClass("hide"),T=0})),o()(document).on("click",".delete-btn-modal",(function(e){e.preventDefault(),console.log(e.target);var t=o()(e.target).closest(".progress-container").attr("id"),i=o()(e.target).closest(".progress-container").find(".truncatefilename").text();P.splice(P.findIndex((function(e){return t.includes(e.id)}
876)),1),r(P,l),N(t,i),f.find(".filecountexceed-error,.filesize-error,.filemimetype-error").addClass("hide"),o()(".addmoreitem-wrapper").find(".done").removeClass("disabled");var a=p.find(".progress-container:not(.upload-error)").length,s=c.find(".chip").length;o()(".upload-count").text(a),I(a),a+s>(m=parseInt(n.data("filecount"),10))&&(f.find(".filecountexceed-error").removeClass("hide"),o()(".addmoreitem-wrapper").find(".done").addClass("disabled"),f.removeClass("hide"))})),o()(document).on("click",".cmp-chip-text",(function(e){var t=e.currentTarget.getAttribute("data-file-index"),n=$[t];if(n){var r=URL.createObjectURL(n);window.open(r,"_blank")}else console.log("No file found for this chip")})),o()(document).on("keydown",".chip-text-link",(function(e){if("enter"===e.key||13===e.keyCode){var t;if(o()(e.target).hasClass("delete-btn")||o()(e.target).hasClass("close"))return;var n=null===(t=e.currentTarget.querySelector(".cmp-chip-text"))||void 0===t?void 0:t.getAttribute("data-file-index"),r=$[n];if(!r)return void console.log("No file found for this chip");var i=URL.createObjectURL(r);window.open(i,"_blank")}})),l.on("change",(function(e){A(e.target.files,e.target),l.value=""})),o()(document).on("click",".filename",(function(e){var t;console.log(P,"fileUploaded");var n=e.currentTarget.getAttribute("data-filename-index"),r=null===(t=P.filter((function(e){return e.id===n}))[0])||void 0===t?void 0:t.file;if(r){var i=URL.createObjectURL(r);window.open(i,"_blank")}else console.log("No file found for this chip")}));var B=function(){var e=p,t=e.children(".progress-container");t.sort((function(e,t){return o()(t).hasClass("upload-error")-o()(e).hasClass("upload-error")})),e.append(t)};h.find(".cmp-extended-modal__close a").on("keydown",(function(e){"enter"!==e.key&&13!==e.keyCode||(o()(".progress-container").each((function(){var e=o()(this).find(".filename .truncatefilename").text();O=O.filter((function(t){return t!==e}));var t=P.findIndex((function(t){return e.includes(t.file.name)}));-1!==t&&P.splice(t,1),r(P,l)})),p.empty(),o()(".dynamicerror-container").html(""),h.find(".filecountexceed-dynamic").remove(),o()(".upload-count").text("0"),T=0,f.addClass("hide"),0==n.find(".chipset").find(".chip").length&&(n.find(".cmp-color-error").addClass("show").removeClass("hide"),n.find(".cmp-color-success,.cmp-color-normal").addClass("hide").removeClass("show"),n.closest(".guideFileUpload").addClass("validation-failure").removeClass("validation-success"),n.closest(".guideFileUpload").removeClass("fileuploaded"),n.find(".chipset").addClass("hide")),setTimeout((function(){n.find(".droparea").focus()}),100))})),h.find(".cmp-extended-modal__close a").on("click",(function(){o()(".progress-container").each((function(){var e=o()(this).find(".filename .truncatefilename").text();O=O.filter((function(t){return t!==e}));var t=P.findIndex((function(t){return e.includes(t.file.name)}));-1!==t&&P.splice(t,1),r(P,l)})),p.empty(),o()(".dynamicerror-container").html(""),h.find(".filecountexceed-dynamic").remove(),o()(".upload-count").text("0"),T=0,f.addClass("hide"),0==n.find(".chipset").find(".chip").length&&(n.find(".cmp-color-error").addClass("show").removeClass("hide"),n.find(".cmp-color-success,.cmp-color-normal").addClass("hide").removeClass("show"),n.closest(".guideFileUpload").addClass("validation-failure").removeClass("validation-success"),n.closest(".guideFileUpload").removeClass("fileuploaded"),n.find(".chipset").addClass("hide"))}));var U=function(){var e=p.length?p[0]:document.querySelector("#progressArea");if(e){var t=parseInt(h.find(".cmp-extended-modal__container").css("padding-top"),10)||0,n=parseInt(h.find(".cmp-extended-modal__container").css("padding-bottom"),10)||0,r=h.find(".cmp-extended-modal__container__title").outerHeight()||0,i=o()(".fileupload-footer-link").outerHeight(!0)||0,a=t+n+r+r+i+(parseInt(o()(".fileupload-footer-link").css("margin-top"),10)||0),s=e.scrollHeight,l=h.outerHeight()||0;p.css("max-height",l-a);var c=e.clientHeight,d=h.find(".cmp-extended-modal__container__title").outerHeight(!0)||0,u=(h.find(".cmp-extended-modal__container").height()||0)-d-i;s>c?(e.classList.add("progressdivwithscroll"),p.css("max-height",u)):e.classList.remove("progressdivwithscroll")}}}else console.warn("File upload: file input not found for wrapper",a);else console.warn("File upload: drop area not found for wrapper",a)}))}));var ui=function(){document.addEventListener("DOMContentLoaded",(function(){(o()(".cmp-primary-navigation-nav-2-0").length>0||o()(".cmp-indication-bar-nav-2-0").length>0||o()(".cmp-above-brand-nav-2-0").length>0)&&o()(document).ready((function(){o()(".cmp-indication-bar-nav-2-0 .nav.above-brand-nav__rightnav .cmp-nav__menu--icon").each((function(){var e=o()(this);o()('.cmp-secondary-menu-container[data-sec-nav-identifier="'+e.data("sec-nav-icon")+'"]'),window.innerWidth>767.9&&o()(this).on("click",(function(e){o()(this).closest(".cmp-indication-bar-nav-2-0").length>0&&o()(".secondary-menu-nav").addClass("cmp-hide")}))}));var e=window.innerWidth,t=function(e){window.innerWidth;var t=0,n=0,r=0,i=0;o()(e).find(".text").is(":visible")&&(t=o()(e).find(".text").width()+17),o()(e).find(".logo-images").is(":visible")&&(n=o()(e).find(".logo-images").width()+17),o()(e).find(".nav.cmp-button-links").is(":visible")&&(r=o()(e).find(".nav.cmp-button-links").width()+17),o()(e).find(".above-brand-nav__rightnav.cmp-desktop-show").is(":visible")&&(i=o()(e).find(".above-brand-nav__rightnav.cmp-desktop-show").width());var a=t+n+r+i,s=o()(e).find(".primary-nav").width();a>s?(o()(e).addClass("cmp-overflow-state"),r+i>s&&o()(e).removeClass("cmp-overflow-state").addClass("cmp-overflow-state-max-sm")):o()(e).removeClass("cmp-overflow-state").removeClass("cmp-overflow-state-max-sm")};function n(){o()(".secondary-menu-nav").is(":visible")&&(o()(".secondary-menu-nav").addClass("cmp-hide"),o()(".menu, .megamenu").find("a").removeClass("active-link"),o()(".menu, .megamenu").find("a").removeClass("cmp-item-click"),o()("html").css({overflow:"auto",height:"auto"})),o()(".primary-nav__megamenu").is(":visible")&&o()(".primary-nav__megamenu:visible").closest(".cmp-nav-2-0-mega-menu").find(".hamburger-container__close").trigger("click")}o()(".cmp-indication-bar-nav-2-0").length>0&&e>1024.1&&document.querySelectorAll(".cmp-indication-bar-nav-2-0").forEach((function(e,n){t(e)})),o()("[data-sec-nav-icon]").each((function(){var t=o()(this),r=o()('.cmp-secondary-menu-container[data-sec-nav-identifier="'+t.data("sec-nav-icon")+'"]');
876function i(t){r.find(".secondary-menu-nav--body__bottom .separator .cmp-separator__horizontal-rule").outerHeight(!0);var n=r.find(".secondary-menu-nav--body__top-selected"),i=(r.find(".secondary-menu-nav--body__top-header").outerHeight(!0),r.find(".secondary-menu-nav--body__top-selected .cmp-secondary-menu-nav-link ul li"));r.find(".secondary-menu-nav--body__top-selected .secondary-nav.global-link"),n.removeClass("cmp-scroll"),setTimeout((function(){var t,a,s,l=0;i.each((function(){l+=o()(this).outerHeight(!0)})),t=r.find(".secondary-menu-nav--body__bottom").length>0&&r.find(".secondary-menu-nav--body__bottom").outerHeight(!0),s=r.find(".secondary-menu-nav--body__top-header").length>0&&r.find(".secondary-menu-nav--body__top-header").outerHeight(!0),a=r.find(".secondary-menu-nav--body").height()-t-s,e<767.9&&(a-=46),a-=2*parseInt(r.find(".secondary-menu-nav--body__top").css("padding-top").replace("px","")),void 0!==n&&void 0!==n.css("padding-bottom")&&(a-=parseFloat(n.css("padding-bottom").replace("px","")))<l&&(n.addClass("cmp-scroll"),n.css("height",a),n.find(".secondary-nav.global-link").scrollTop(0))}),10)}window.innerWidth>767.9?(t.parent().on("click",(function(e){if(o()(e.target).hasClass("active-link")||o()(e.target).parent().hasClass("active-link"))e.preventDefault(),n(),o()(".menu, .megamenu").find("a").removeClass("active-link"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px");else{if(o()(".menu, .megamenu").find("a").removeClass("active-link"),o()(".menu, .megamenu").find("a").removeClass("cmp-item-click"),n(),o()(".cmp-searchinput").hasClass("search-expand")&&o()("#searchBoxBtn").trigger("click"),e.preventDefault(),o()(".secondary-menu-nav").addClass("cmp-hide"),t.addClass("active-link"),r.find(".secondary-menu-nav").removeClass("cmp-hide"),r.find(".secondary-menu-nav").hasClass("cmp-nav-2-0-compact-menu")||(o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px")),o()(this).closest(".cmp-indication-bar-nav-2-0").length>0){var a=0;o()("header").hasClass("menu-hide")?a=0:o()(".cmp-sticky-header").length>0?(a=0,o()(".cmp-above-brand-nav-2-0").length>0&&(a+=o()(".cmp-above-brand-nav-2-0").height()),window.astellasElements.isScrollable=!1,setTimeout((function(){window.astellasElements.isScrollable=!0}),600)):a=o()(this).closest(".cmp-indication-bar-nav-2-0").offset().top,r.find(".secondary-menu-nav").css("top",a+o()(this).closest(".cmp-indication-bar-nav-2-0").height()),r.find(".secondary-menu-nav").css("height",o()(window).height()-o()(this).closest(".cmp-indication-bar-nav-2-0").height()-a),i()}else if(o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0){var s=0;if(o()("header").hasClass("menu-hide"))s=0,o()(".cmp-indication-bar-nav-2-0").length>0&&o()(".cmp-indication-bar-nav-2-0").hasClass("cmp-indication-bar-sticky")&&(s+=o()(".cmp-indication-bar-nav-2-0").height());else if(o()(".cmp-sticky-header").length>0)s=0,o()(".cmp-above-brand-nav-2-0").length>0&&(s+=o()(".cmp-above-brand-nav-2-0").height()),o()(".cmp-indication-bar-nav-2-0").length>0&&(s+=o()(".cmp-indication-bar-nav-2-0").height()),window.astellasElements.isScrollable=!1,setTimeout((function(){window.astellasElements.isScrollable=!0}),600);else{var l=o()(window).scrollTop();s=o()(this).closest(".cmp-primary-navigation-nav-2-0").offset().top+1,s-=l}r.find(".secondary-menu-nav").css("top",s+o()(this).closest(".cmp-primary-navigation-nav-2-0").height()),r.find(".secondary-menu-nav").css("height",o()(window).height()-o()(this).closest(".cmp-primary-navigation-nav-2-0").height()-s),i()}else if(o()(this).closest(".cmp-above-brand-nav-2-0").length>0){var c=o()(window).scrollTop(),d=0;d=o()(this).closest(".cmp-above-brand-nav-2-0").offset().top,d-=c,r.find(".secondary-menu-nav").css("top",d+o()(this).closest(".cmp-above-brand-nav-2-0").height()),r.find(".secondary-menu-nav").css("height",o()(window).height()-o()(this).closest(".cmp-above-brand-nav-2-0").height()-d),i()}if(r.find(".secondary-menu-nav").hasClass("cmp-nav-2-0-compact-menu")){var u,h,p,f=0,m=0,g=t.closest(".primary-nav-wrapper").width();o()(this).closest(".cmp-above-brand-nav-2-0").length>0?(f=t.closest(".cmp-nav__menu--icon").outerWidth(),m=t.closest(".cmp-nav__menu--icon").offset().left):(f=t.outerWidth(),m=t.offset().left),u=o()(window).width()-m-f,h=o()(window).width()-m-f+"px",p=parseInt(m)+"px",r.find(".secondary-menu-nav").hasClass("cmp-nav-2-0-compact-menu-right")?u+308>g?r.find(".secondary-menu-nav").css("left",p):(r.find(".secondary-menu-nav").css("right",h),r.find(".secondary-menu-nav").css("left","unset")):m+308>g?(r.find(".secondary-menu-nav").css("right",h),r.find(".secondary-menu-nav").css("left","unset")):r.find(".secondary-menu-nav").css("left",p)}}})),t.parent().on("keydown",(function(e){if("Enter"===e.key)if(o()(e.target).hasClass("active-link")||o()(e.target).parent().hasClass("active-link"))e.preventDefault(),n(),o()(".menu, .megamenu").find("a").removeClass("active-link"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px");else{if(o()(".menu, .megamenu").find("a").removeClass("active-link"),o()(".menu, .megamenu").find("a").removeClass("cmp-item-click"),n(),o()(".cmp-searchinput").hasClass("search-expand")&&o()("#searchBoxBtn").trigger("click"),e.preventDefault(),o()(".secondary-menu-nav").addClass("cmp-hide"),t.addClass("active-link"),r.find(".secondary-menu-nav").removeClass("cmp-hide"),r.find(".secondary-menu-nav").hasClass("cmp-nav-2-0-compact-menu")||(o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px")),o()(this).closest(".cmp-indication-bar-nav-2-0").length>0){var a=0;o()("header").hasClass("menu-hide")?a=0:o()(".cmp-sticky-header").length>0?(a=0,o()(".cmp-above-brand-nav-2-0").length>0&&(a+=o()(".cmp-above-brand-nav-2-0").height()),window.astellasElements.isScrollable=!1,setTimeout((function(){window.astellasElements.isScrollable=!0}),600)):a=o()(this).closest(".cmp-indication-bar-nav-2-0").offset().top,r.find(".secondary-menu-nav").css("top",a+o()(this).closest(".cmp-indication-bar-nav-2-0").height()),r.find(".secondary-menu-nav").css("height",o()(window).height()-o()(this).closest(".cmp-indication-bar-nav-2-0").height()-a),i()}else if(o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0){var s=0;if(o()("header").hasClass("menu-hide"))s=0,o()(".cmp-indication-bar-nav-2-0").length>0&&o()(".cmp-indication-bar-nav-2-0").hasClass("cmp-indication-bar-sticky")&&(s+=o()(".cmp-indication-bar-nav-2-0").height());else if(o()(".cmp-sticky-header").length>0)s=0,o()(".cmp-above-brand-nav-2-0").length>0&&(s+=o()(".cmp-above-brand-nav-2-0").height()),o()(".cmp-indication-bar-nav-2-0").length>0&&(s+=o()(".cmp-indication-bar-nav-2-0").height()),window.astellasElements.isScrollable=!1,setTimeout((function(){window.astellasElements.isScrollable=!0}),600);else{var l=o()(window).scrollTop();s=o()(this).closest(".cmp-primary-navigation-nav-2-0").offset().top+1,s-=l}r.find(".secondary-menu-nav").css("top",s+o()(this).closest(".cmp-primary-navigation-nav-2-0").height()),r.find(".secondary-menu-nav").css("height",o()(window).height()-o()(this).closest(".cmp-primary-navigation-nav-2-0").height()-s),i()}else if(o()(this).closest(".cmp-above-brand-nav-2-0").length>0){var c=o()(window).scrollTop(),d=0;d=o()(this).closest(".cmp-above-brand-nav-2-0").offset().top,d-=c,r.find(".secondary-menu-nav").css("top",d+o()(this).closest(".cmp-above-brand-nav-2-0").height()),r.find(".secondary-menu-nav").css("height",o()(window).height()-o()(this).closest(".cmp-above-brand-nav-2-0").height()-d),i()}if(r.find(".secondary-menu-nav").hasClass("cmp-nav-2-0-compact-menu")){var u,h,p,f=0,m=0,g=t.closest(".primary-nav-wrapper").width();o()(this).closest(".cmp-above-brand-nav-2-0").length>0?(f=t.closest(".cmp-nav__menu--icon").outerWidth(),m=t.closest(".cmp-nav__menu--icon").offset().left):(f=t.outerWidth(),m=t.offset().left),u=o()(window).width()-m-f,h=o()(window).width()-m-f+"px",p=parseInt(m)+"px",r.find(".secondary-menu-nav").hasClass("cmp-nav-2-0-compact-menu-right")?u+308>g?r.find(".secondary-menu-nav").css("left",p):(r.find(".secondary-menu-nav").css("right",h),r.find(".secondary-menu-nav").css("left","unset")):m+308>g?(r.find(".secondary-menu-nav").css("right",h),r.find(".secondary-menu-nav").css("left","unset")):r.find(".secondary-menu-nav").css("left",p)}}else e.shiftKey&&9===e.keyCode&&o()(".secondary-menu-nav:not(.cmp-hide)").length>0&&(o()(".secondary-menu-nav").addClass("cmp-hide"),o()("a[data-sec-nav-icon].active-link").removeClass("active-link"))}))):(t.parent().on("click",(function(e){o()(".menu, .megamenu").find("a").removeClass("active-link"),o()(".menu, .megamenu").find("a").removeClass("cmp-item-click"),t.addClass("active-link"),e.preventDefault(),o()(".secondary-menu-nav").addClass("cmp-hide"),r.find(".secondary-menu-nav").removeClass("cmp-hide"),o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px"),i()})),t.parent().on("keydown",(function(e){"Enter"===e.key&&(o()(".menu, .megamenu").find("a").removeClass("active-link"),o()(".menu, .megamenu").find("a").removeClass("cmp-item-click"),t.addClass("active-link"),e.preventDefault(),o()(".secondary-menu-nav").addClass("cmp-hide"),r.find(".secondary-menu-nav").removeClass("cmp-hide"),r.find(".secondary-menu-nav ").focus(),o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px"),i())}))),r.find(".secondary-menu-nav--body__top .secondary-menu-nav--body__top-close .global-link a").on("click",(function(e){e.preventDefault(),r.find(".secondary-menu-nav").addClass("cmp-hide"),t.removeClass("active-link"),t.removeClass("cmp-item-click"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px"),o()("ul.menu .pressed").removeClass("pressed"),window.innerWidth<=767.98&&o()(".cmp-nav-2-0-mega-menu .hamburger-container-close").trigger("click")})),r.find(".secondary-menu-nav--body__top .secondary-menu-nav--body__top-back").find(".global-link a").on("click",(function(e){e.preventDefault(),r.find(".secondary-menu-nav").addClass("cmp-hide"),t.removeClass("active-link"),t.removeClass("cmp-item-click"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px"),o()("ul.menu .pressed").removeClass("pressed")})),r.find(".secondary-menu-nav--body__bottom a").on("click",(function(){r.find(".secondary-menu-nav").addClass("cmp-hide")})),r.find(".secondary-menu-nav .seondarynav-overlaydiv").length>
8760&&r.find(".secondary-menu-nav .seondarynav-overlaydiv").on("click",(function(e){o()("html").css({overflow:"auto",height:"auto"}),o()(".secondary-menu-nav").addClass("cmp-hide"),o()(".menu, .megamenu").find("a").removeClass("active-link"),o()(".menu, .megamenu").find("a").removeClass("cmp-item-click")}))})),o()(".cmp-secondary-menu-container[data-sec-nav-identifier]").find(".secondary-menu-nav--body__top-selected li:first").on("keydown",(function(e){e.shiftKey&&9===e.keyCode&&(e.preventDefault(),o()("a[data-sec-nav-icon].active-link").focus(),o()(".secondary-menu-nav").addClass("cmp-hide"),o()("a[data-sec-nav-icon].active-link").removeClass("active-link"))})),o()(".cmp-secondary-menu-container[data-sec-nav-identifier]").find(".secondary-menu-nav--body__top-selected li:last").on("keydown",(function(e){if(!e.shiftKey&&9===e.keyCode){e.preventDefault();var t=o()("a"),n=o()("a[data-sec-nav-icon].active-link"),r=t.index(n)+1;r>=t.length&&(r=0),o()(".secondary-menu-nav").addClass("cmp-hide"),o()("a[data-sec-nav-icon].active-link").removeClass("active-link"),t.eq(r).focus()}})),o()(window).on("resize",(function(){var e=window.innerWidth;o()(".cmp-indication-bar-nav-2-0").length>0&&e>1024.1?document.querySelectorAll(".cmp-indication-bar-nav-2-0").forEach((function(e,n){o()(e).removeClass("cmp-overflow-state").removeClass("cmp-overflow-state-max-sm"),t(e)})):o()(".cmp-indication-bar-nav-2-0").length>0&&document.querySelectorAll(".cmp-indication-bar-nav-2-0").forEach((function(e,t){o()(e).removeClass("cmp-overflow-state").removeClass("cmp-overflow-state-max-sm")}))})),o()(window).on("scroll",(function(e){n()}))}))}))},hi=function(){var e,t=function(e){var t=e.find(".primary-nav").width();if(e.find(".sublink-parentlink").length>0){e.find(".primary-nav").width();var n=0;e.find(".logo-images").is(":visible")&&(n=e.find(".logo-images").width());var r=0;e.find(".primary-nav__megamenu").is(":visible")&&(r=e.find(".primary-nav__megamenu").width());var i=0;e.find(".primary-nav__rightnav.search").is(":visible")&&(i=e.find(".primary-nav__rightnav.search").width());var o=0;e.find(".above-brand-nav__rightnav.cmp-desktop-show").is(":visible")&&(o=e.find(".above-brand-nav__rightnav.cmp-desktop-show").width()+17);var a=0;e.find(".primary-nav__rightnav").is(":visible")&&(a=e.find(".primary-nav__rightnav").width());var s=n+r+i+o+a,l=window.innerWidth;l<1024.1&&l>=768||l>767.98&&s>t?e.addClass("overflowState"):e.removeClass("overflowState")}},n=function(e){var t=e.find(".primary-nav").width(),n=window.innerWidth;if(n<1024.1){if(e.find(".primary-nav > .primary-nav__megamenu > .navigation > ul.megamenu > li").length>0)e.addClass("overflowState");else if(e.find(".primary-nav > .primary-nav__megamenu > .navigation > ul.megamenu > li").length<1){var r=0;e.find(".logo-images").is(":visible")&&(r=e.find(".logo-images").width());var i=0;e.find(".cmp-right-mega-menu").is(":visible")&&(i=e.find(".cmp-right-mega-menu").width()),r+i>t?e.addClass("overflowState"):e.removeClass("overflowState")}}else if(n>=1024.1){var o=0;e.find(".logo-images").is(":visible")&&(o=e.find(".logo-images").width());var a=0;e.find(".primary-nav > .primary-nav__megamenu > .navigation").is(":visible")&&(a=e.find(".primary-nav > .primary-nav__megamenu > .navigation").width());var s=0;e.find(".cmp-right-mega-menu").is(":visible")&&(s=e.find(".cmp-right-mega-menu").width()),o+a+s>t?e.addClass("overflowState"):e.removeClass("overflowState")}},r=function(){return!!o()(".cmp-primary-navigation-nav-2-0 .primary-nav-wrapper").hasClass("cmp-accessibility-v1")},i=function(){return navigator.maxTouchPoints>0};window.addEventListener("load",(function(){o()(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu").length>0&&(document.querySelectorAll(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu .primary-nav-wrapper").forEach((function(e,n){t(o()(e))})),!r()||i()||o()(".cmp-primary-navigation-nav-2-0 .primary-nav-wrapper.cmp-accessibility-v1").hasClass("overflowState")?o()("ul.sub-megamenu > li.secondlevel-title").css("display","block"):o()("ul.sub-megamenu > li.secondlevel-title").css("display","none"))})),window.addEventListener("resize",(function(){if(o()(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu").length>0)if(o()(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu .overflowState").removeClass("overflowState"),document.querySelectorAll(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu .primary-nav-wrapper").forEach((function(e,n){t(o()(e))})),!r()||i()||o()(".cmp-primary-navigation-nav-2-0 .primary-nav-wrapper.cmp-accessibility-v1").hasClass("overflowState")?o()("ul.sub-megamenu > li.secondlevel-title").css("display","block"):o()("ul.sub-megamenu > li.secondlevel-title").css("display","none"),o()(window).width()<=767.98&&o()(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu .cmp-bottom-menu .megamenu.cmp-right-menu").length>0){var e=o()(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu .cmp-bottom-menu .megamenu.cmp-right-menu");1===e.find("li:visible").length&&e.find("li:visible").addClass("cmp-rem-btm-margin")}else o()(".cmp-rem-btm-margin").removeClass("cmp-rem-btm-margin")})),window.addEventListener("load",(function(){o()(".cmp-above-brand-nav-2-0.cmp-nav-2-0-mega-menu").length>0&&document.querySelectorAll(".cmp-above-brand-nav-2-0.cmp-nav-2-0-mega-menu .primary-nav-wrapper").forEach((function(e,t){n(o()(e))}))})),window.addEventListener("resize",(function(){o()(".cmp-above-brand-nav-2-0.cmp-nav-2-0-mega-menu").length>0&&(o()(".cmp-above-brand-nav-2-0.cmp-nav-2-0-mega-menu .overflowState").removeClass("overflowState"),document.querySelectorAll(".cmp-above-brand-nav-2-0.cmp-nav-2-0-mega-menu .primary-nav-wrapper").forEach((function(e,t){n(o()(e))})),(e=o()(window).width())>=767.98&&!o()(".cmp-top-nav.cmp-above-brand-nav-2-0.cmp-nav-2-0-mega-menu .primary-nav-wrapper").hasClass("overflowState")?(o()(".cmp-top-nav.cmp-above-brand-nav-2-0.cmp-nav-2-0-mega-menu .primary-nav__megamenu").css({height:"",top:"unset"}),o()(".cmp-top-nav.cmp-above-brand-nav-2-0.cmp-nav-2-0-mega-menu .primary-nav__megamenu ul.megamenu").css({height:""}),o()(".cmp-top-nav.cmp-above-brand-nav-2-0.cmp-nav-2-0-mega-menu .primary-nav > .primary-nav__megamenu").css({display:""})):e<=767.98&&o()(".cmp-top-nav.cmp-above-brand-nav-2-0.cmp-nav-2-0-mega-menu .primary-nav-wrapper").hasClass("overflowState")&&o()(".cmp-top-nav.cmp-above-brand-nav-2-0.cmp-nav-2-0-mega-menu .primary-nav > .primary-nav__megamenu").css({display:"none"}))})),document.querySelectorAll(".cmp-above-brand-nav-2-0 .megamenu li.sublink-parentlink").forEach((function(e){var t=e.querySelector("a.megamenu-toggle span:first-child");t&&""===t.textContent.trim()&&e.classList.add("empty-span-padding")})),o()(".primary-nav__megamenu ul.megamenu .sub-megamenu li.sublink.sublink-active-class").closest(".sublink-parentlink").addClass("megamenu--active"),o()(window).on("load",(function(){!r()||i()||o()(".cmp-primary-navigation-nav-2-0 .primary-nav-wrapper.cmp-accessibility-v1").hasClass("overflowState")?o()("ul.sub-megamenu > li.secondlevel-title").css("display","block"):o()("ul.sub-megamenu > li.secondlevel-title").css("display","none"),o()(".ot-floating-button").height(o()(".ot-floating-button").outerHeight()),e=o()(window).width();var t=o()(".cmp-nav-2-0-mega-menu").height(),n=o()(".megamenu-toggle"),a=o()(".submenu-wrapper"),s=o()(".sub-menu
876-toggle"),l=o()(".megamenu-inner-sub-menu"),c=o()(".sub-innermenu-toggle"),d=o()(".forth-level-nav"),u=o()(".sub-lastmenu-toggle"),h=o()(".fifth-level-nav"),p=o()(".megamenu-wrapper"),f=(o()(window).height(),o()(".megamenu-nomenu"));function m(e,t,n){e.each((function(){o()(this).hasClass("megamenu-toggle")&&o()(this).closest(".cmp-above-brand-nav-2-0").length>0?(o()(this).closest("li").on("click",(function(e){o()(e.target).closest("ul.sub-megamenu").length>0&&o()(e.target).closest(".cmp-nav-2-0-compact-menu").length>0||o()(e.target).hasClass("sublink")&&o()(e.target).find("ul").length<1||o()(e.target).closest("li.sublink").length>0&&o()(e.target).closest("li.sublink").find("ul").length<1?e.stopImmediatePropagation():(e.preventDefault(),o()(this).find("a").addClass("clicked"))})),o()(this).closest("li").on("mouseenter click",(function(e){var r=this;if("mouseenter"===e.type&&o()(e.currentTarget).closest(".cmp-above-brand-nav-2-0").length>0)return e.preventDefault(),void o()(e.currentTarget).addClass("hovered");if(!o()(e.target).hasClass("megamenu-wrapper")&&!o()(e.target).hasClass("sub-megamenu"))if(o()(e.target).closest("ul.sub-megamenu").length>0&&o()(e.target).closest(".cmp-nav-2-0-compact-menu").length>0)e.stopImmediatePropagation();else if(o()(e.target).hasClass("sublink")&&o()(e.target).find("ul").length<1||o()(e.target).closest("li.sublink").length>0&&o()(e.target).closest("li.sublink").find("ul").length<1)e.stopImmediatePropagation();else{var i;if(e.preventDefault(),i=o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").length>0?o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").outerHeight():0,(o()(e.target).find(".show-secondary-menu").length>0||o()(e.target).closest("li").find(".show-secondary-menu").length>0)&&(o()(e.target).hasClass("sublink-parentlink")||o()(e.target).closest("li").hasClass("sublink-parentlink"))&&!o()(e.target).hasClass("submenu-wrapper"))return t.addClass("hidden"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),o()(".blurbody").removeClass("blurbody"),o()(".hovered").removeClass("hovered"),o()(".clicked").removeClass("clicked"),o()(".blue-border").removeClass("blue-border"),o()(".submenu-wrapper").find("li").removeClass("hovered"),void o()(".submenu-wrapper").removeClass("show-secondary-menu");o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState")||o()(".hamburger-container__close.hamburger-container__close_show")&&o()(".hamburger-container__close.hamburger-container__close_show").length>0&&o()(".hamburger-container__close.hamburger-container__close_show").trigger("click"),o()(".submenu-wrapper").find("li").removeClass("hovered"),o()(this).addClass("hovered");var a=o()(this).closest(".cmp-nav-2-0-mega-menu").height(),s=o()(window).height()-a;o()(".cmp-searchinput").hasClass("search-expand")&&o()("#searchBoxBtn").trigger("click"),t.removeClass("hidden"),t.parent().removeClass("hidden"),o()(this).closest(".cmp-nav-2-0-compact-menu").length<1&&(o()("html").addClass("no-scroll"),o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px")),o()(e.currentTarget).siblings().find(".megamenu-wrapper").removeClass("blurbody"),o()(e.currentTarget).closest(".primary-nav").find(".megamenu-wrapper").removeClass("blurbody"),o()(e.currentTarget).closest(".primary-nav").find(".cmp-right-mega-menu .megamenu-wrapper").removeClass("blurbody"),o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")||(o()(this).find(n).addClass("blurbody"),o()(this).find(".submenu-wrapper").addClass("show-secondary-menu")),o()(this).closest(".cmp-nav-2-0-compact-menu").length<1&&(o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px"));var l=0;o()(this).find(".submenu-wrapper.show-secondary-menu").find("li").each((function(e,t){l+=o()(r).find(".submenu-wrapper.show-secondary-menu").find("li").eq(e).outerHeight(!0)})),l>o()(this).find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu").outerHeight()?(o()(this).find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu li").css("margin-right","var(--space-3xs)"),o()(this).find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu").scrollTop(0)):o()(this).find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu li").css("margin-right","0");var c=document.documentElement.scrollTop,d=window.innerWidth;if(o()("header").hasClass("menu-hide"))c=0;else if(o()(".cmp-sticky-header.cmp-header--fixed").length>0)c=0,a=0,o()(this).closest(".cmp-above-brand-nav-2-0").length>0?(c=0,a+=o()(".cmp-above-brand-nav-2-0").height()):o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0&&(o()(".cmp-above-brand-nav-2-0").length>0&&(a+=o()(".cmp-above-brand-nav-2-0").height()),o()(".cmp-indication-bar-nav-2-0").length>0&&(a+=o()(".cmp-indication-bar-nav-2-0").height()),a+=o()(".cmp-above-brand-nav-2-0").height());else{var u=o()(this).closest(".cmp-nav-2-0-mega-menu").offset().top;a=(u-=o()(window).scrollTop())+o()(this).closest(".cmp-nav-2-0-mega-menu").height()}o()(this).find(".sub-megamenu").outerHeight(!0)&&(o()(this).find(".sub-megamenu").css({height:""}),o()(this).find(".sub-megamenu").outerHeight(!0)>=s?(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&d>=768?o()(this).find(".sub-megamenu").css({height:o()(window).height()-a-i+c-48}):o()(this).find(".sub-megamenu").css({height:o()(window).height()-a-i+c}),o()(this).find(".sub-megamenu").css("overflow-y","auto"),o()(this).closest(".cmp-nav-2-0-compact-menu").length>0&&o()(this).find(".sub-megamenu").parent().addClass("cmp-scroll-padding")):(o()(this).find(".sub-megamenu").css({height:""}),o()(this).closest(".cmp-nav-2-0-compact-menu").length>0&&o()(this).find(".sub-megamenu").parent().removeClass("cmp-scroll-padding"))),o()(this).find(".megamenu-inner-sub-menu").outerHeight(!0)&&(o()(this).find(".megamenu-inner-sub-menu").css({height:""}),o()(this).find(".megamenu-inner-sub-menu").outerHeight(!0)>=s?(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&d>=768?o()(this).find(".megamenu-inner-sub-menu").css({height:o()(window).height()-a-i+c-48}):o()(this).find(".megamenu-inner-sub-menu").css({height:o()(window).height()-a-i+c}),o()(this).find(".megamenu-inner-sub-menu").css("overflow-y","auto")):o()(this).find(".megamenu-inner-sub-menu").css({height:""})),o()(this).find(".forth-level-nav").outerHeight(!0)&&(o()(this).find(".forth-level-nav").css({height:""}),o()(this).find(".forth-level-nav").outerHeight(!0)>=s?(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&d>=768?o()(this).find(".forth-level-nav").css({height:o()(window).height()-a-i+c-48}):o()(this).find(".forth-level-nav").css({height:o()(window).height()-a-i+c}),o()(this).find(".forth-level-nav").css("overflow-y","auto")):o()(this).find(".forth-level-nav").css({height:""}));var h=o()(".fifth-level-nav");o()(this).find(".fifth-level-nav").outerHeight(!0)&&(h.css({height:""}),o()(this).find(".fifth-level-nav").outerHeight(!0)>=s?(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&d>=768?o()(this).find(".fifth-level-nav").css({height:o()(window).height()-a-i+c-48}):o()(this).find(".fifth-level-nav").css({height:o()(window).height()-a-i+c}),o()(this).find(".fifth-level-nav").css("overflow-y","auto")):o()(this).find(".fifth-level-nav").css({height:""}))}})),o()(this).closest("li").on("keydown",(function(e){var r=this;if("Enter"===e.key&&(o()(this).addClass("clicked"),o()(this).closest("li").addClass("hovered"),!o()(e.target).hasClass("megamenu-wrapper")&&!o()(e.target).hasClass("sub-megamenu")))if(o()(e.target).closest("ul.sub-megamenu").length>0&&o()(e.target).closest(".cmp-nav-2-0-compact-menu").length>0)e.stopImmediatePropagation();else if(o()(e.target).hasClass("sublink")&&o()(e.target).find("ul").length<1||o()(e.target).closest("li.sublink").length>0&&o()(e.target).closest("li.sublink").find("ul").length<1)e.stopImmediatePropagation();else{var i;if(e.preventDefault(),e.stopPropagation(),i=o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").length>0?o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").outerHeight():0,o()(e.currentTarget).find(".show-secondary-menu").length>0||o()(e.currentTarget).closest("li").find(".show-secondary-menu").length>0)return t.addClass("hidden"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),o()(".blurbody").removeClass("blurbody"),o()(".hovered").removeClass("hovered"),o()(".clicked").removeClass("clicked"),o()(".blue-border").removeClass("blue-border"),o()(".submenu-wrapper").find("li").removeClass("hovered"),o()(".submenu-wrapper").removeClass("show-secondary-menu"),void o()(".focus-chevron").attr("aria-expanded","fal
876se");o()(this).siblings("li").removeClass("hovered"),o()(this).closest("li").addClass("hovered");var a=o()(this).closest(".cmp-nav-2-0-mega-menu").height(),s=o()(window).height()-a;o()(".cmp-searchinput").hasClass("search-expand")&&o()("#searchBoxBtn").trigger("click"),t.removeClass("hidden"),t.parent().removeClass("hidden"),o()(this).closest(".cmp-nav-2-0-compact-menu").length<1&&(o()("html").addClass("no-scroll"),o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px")),o()(this).closest("li").siblings().find(n).removeClass("blurbody"),o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")||(o()(this).closest("li").find(n).addClass("blurbody"),o()(this).closest("li").find(".submenu-wrapper").addClass("show-secondary-menu"),o()(this).closest("li").find(".focus-chevron").attr("aria-expanded","true")),o()(this).closest(".cmp-nav-2-0-compact-menu").length<1&&(o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px"));var l=0;o()(this).closest("li").find(".submenu-wrapper.show-secondary-menu").find("li").each((function(e,t){l+=o()(r).closest("li").find(".submenu-wrapper.show-secondary-menu").find("li").eq(e).outerHeight(!0)})),l>o()(this).closest("li").find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu").outerHeight()?(o()(this).closest("li").find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu li").css("margin-right","var(--space-3xs)"),o()(this).closest("li").find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu").scrollTop(0)):o()(this).closest("li").find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu li").css("margin-right","0");var c=window.innerWidth,d=document.documentElement.scrollTop;if(o()("header").hasClass("menu-hide"))d=0;else if(o()(".cmp-sticky-header.cmp-header--fixed").length>0)d=0,a=0,o()(this).closest(".cmp-above-brand-nav-2-0").length>0?(d=0,a+=o()(".cmp-above-brand-nav-2-0").height()):o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0&&(o()(".cmp-above-brand-nav-2-0").length>0&&(a+=o()(".cmp-above-brand-nav-2-0").height()),o()(".cmp-indication-bar-nav-2-0").length>0&&(a+=o()(".cmp-indication-bar-nav-2-0").height()),a+=o()(".cmp-above-brand-nav-2-0").height());else{var u=o()(this).closest(".cmp-nav-2-0-mega-menu").offset().top;a=(u-=o()(window).scrollTop())+o()(this).closest(".cmp-nav-2-0-mega-menu").height()}o()(this).closest("li").find(".sub-megamenu").outerHeight(!0)&&(o()(this).closest("li").find(".sub-megamenu").css({height:""}),o()(this).closest("li").find(".sub-megamenu").outerHeight(!0)>=s?(o()(this).closest("li").closest(".primary-nav-wrapper").hasClass("overflowState")&&c>=768?o()(this).find(".sub-megamenu").css({height:o()(window).height()-a-i+d-48}):(o()(this).closest("li").find(".sub-megamenu").css({height:o()(window).height()-a-i+d}),o()(this).closest(".cmp-nav-2-0-compact-menu").length>0&&o()(this).find(".sub-megamenu").parent().addClass("cmp-scroll-padding")),o()(this).closest("li").find(".sub-megamenu").css("overflow-y","auto")):(o()(this).closest("li").find(".sub-megamenu").css({height:""}),o()(this).closest(".cmp-nav-2-0-compact-menu").length>0&&o()(this).find(".sub-megamenu").parent().removeClass("cmp-scroll-padding"))),o()(this).closest("li").find(".megamenu-inner-sub-menu").outerHeight(!0)&&(o()(this).closest("li").find(".megamenu-inner-sub-menu").css({height:""}),o()(this).closest("li").find(".megamenu-inner-sub-menu").outerHeight(!0)>=s?(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&c>=768?o()(this).closest("li").find(".megamenu-inner-sub-menu").css({height:o()(window).height()-a-i+d-48}):o()(this).closest("li").find(".megamenu-inner-sub-menu").css({height:o()(window).height()-a-i+d}),o()(this).closest("li").find(".megamenu-inner-sub-menu").css("overflow-y","auto")):o()(this).closest("li").find(".megamenu-inner-sub-menu").css({height:""})),o()(this).closest("li").find(".forth-level-nav").outerHeight(!0)&&(o()(this).closest("li").find(".forth-level-nav").css({height:""}),o()(this).closest("li").find(".forth-level-nav").outerHeight(!0)>=s?(o()(this).closest("li").closest(".primary-nav-wrapper").hasClass("overflowState")&&c>=768?o()(this).closest("li").find(".forth-level-nav").css({height:o()(window).height()-a-i+d-48}):o()(this).closest("li").find(".forth-level-nav").css({height:o()(window).height()-a-i+d}),o()(this).closest("li").find(".forth-level-nav").css("overflow-y","auto")):o()(this).closest("li").find(".forth-level-nav").css({height:""})),o()(this).closest("li").find(".fifth-level-nav").outerHeight(!0)&&(o()(this).closest("li").find(".fifth-level-nav").css({height:""}),o()(this).closest("li").find(".fifth-level-nav").outerHeight(!0)>=s?(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&c>=768?o()(this).closest("li").find(".fifth-level-nav").css({height:o()(window).height()-a-i+d-48}):o()(this).closest("li").find(".fifth-level-nav").css({height:o()(window).height()-a-i+d}),o()(this).closest("li").find(".fifth-level-nav").css("overflow-y","auto")):o()(this).closest("li").find(".fifth-level-nav").css({height:""}))}}))):(o()(this).closest("li").on("mouseenter",(function(e){var r=this;e.preventDefault();var i,a=o()(this).closest(".cmp-nav-2-0-mega-menu").height(),s=o()(window).height()-a;i=o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").length>0?o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").outerHeight():0,o()(".submenu-wrapper").find("li").removeClass("hovered"),o()(this).addClass("hovered"),o()(".global-nav.cmp-primary-nav.cmp-primary-navigation-nav-2-0 .cmp-searchinput").hasClass("search-expand")&&o()(".global-nav.cmp-primary-nav.cmp-primary-navigation-nav-2-0 #searchBoxBtn").trigger("click"),t.removeClass("hidden"),t.parent().removeClass("hidden"),o()(this).closest(".cmp-nav-2-0-compact-menu").length<1&&(o()("html").addClass("no-scroll"),o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px")),o()(e.target).siblings().find(".megamenu-wrapper").removeClass("blurbody"),o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")||(o()(this).find(n).addClass("blurbody"),o()(this).find(".submenu-wrapper").addClass("show-secondary-menu"));var l=0;o()(this).find(".submenu-wrapper.show-secondary-menu").find("li").each((function(e,t){l+=o()(r).find(".submenu-wrapper.show-secondary-menu").find("li").eq(e).outerHeight()})),l>o()(this).find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu").outerHeight()?(o()(this).find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu li").css("margin-right","var(--space-3xs)"),o()(this).find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu").scrollTop(0)):o()(this).find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu li").css("margin-right","0");var c=window.innerWidth,d=document.documentElement.scrollTop;if(o()("header").hasClass("menu-hide"))d=0;else if(o()(".cmp-sticky-header.cmp-header--fixed").length>0)d=0,a=0,o()(this).closest(".cmp-above-brand-nav-2-0").length>0?(d=0,a+=o()(".cmp-above-brand-nav-2-0").height()):o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0&&(o()(".cmp-above-brand-nav-2-0").length>0&&(a+=o()(".cmp-above-brand-nav-2-0").height()),o()(".cmp-indication-bar-nav-2-0").length>0&&(a+=o()(".cmp-indication-bar-nav-2-0").height()),a+=o()(".cmp-above-brand-nav-2-0").height());else{var u=o()(this).closest(".cmp-nav-2-0-mega-menu").offset().top;a=(u-=o()(window).scrollTop())+o()(this).closest(".cmp-nav-2-0-mega-menu").height()}if(o()(this).find(".sub-megamenu").outerHeight(!0)&&(o()(this).find(".sub-megamenu").css({height:""}),o()(this).find(".sub-megamenu").outerHeight(!0)>=s?(o()(this).find(".sub-megamenu").css("overflow-y","auto"),o()(this).closest(".cmp-nav-2-0-compact-menu").length>0&&o()(this).find(".sub-megamenu").parent().addClass("cmp-scroll-padding"),o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&c>=768?o()(this).find(".sub-megamenu").css({height:o()(window).height()-a-i+d-48}):o()(this).find(".sub-megamenu").css({height:o()(window).height()-a-i+d})):(o()(this).find(".sub-megamenu").css({height:""}),o()(this).closest(".cmp-nav-2-0-compact-menu").length<1&&o()(this).find(".sub-megamenu").parent().removeClass("cmp-scroll-padding"))),o()(this).find(".megamenu-inner-sub-menu").outerHeight(!0)){o()(this).find(".megamenu-inner-sub-menu").css({height:""}),o()(this).find(".megamenu-inner-sub-menu").outerHeight(!0)>=s?(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&p>=768?o()(this).find(".megamenu-inner-sub-menu").css({height:o()(window).height()-a-i+d-48}):o()(this).find(".megamenu-inner-sub-menu").css({height:o()(window).height()-a-i+d}),o()(this).find(".megamenu-inner-sub-menu").css("overflow-y","auto")):o()(this).find(".megamenu-inner-sub-menu").css({height:""});var p=window.innerWidth;o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&p>=768&&o()(this).find(".megamenu-inner-sub-menu").css("top",a+"px")}if(o()(this).find(".forth-level-nav").outerHeight(!0)){o()(this).find(".forth-level-nav").css({height:""}),o()(this).find(".forth-level-nav").outerHeight(!0)>=s?(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&f>=768?o()(this).find(".forth-level-nav").css({height:o()(window).height()-a-i+d-48}):o()(this).find(".forth-level-nav").css({height:o()(window).height()-a-i+d}),o()(this).find(".forth-level-nav").css("overflow-y","auto")):o()(this).find(".forth-level-nav").css({height:""});var f=window.innerWidth;o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&f>=768&&o()(this).find(".cmp-forth-megamenu-parent-container").css("top",a+"px")}if(o()(this).find(".fifth-level-nav").outerHeight(!0)){h.css({height:""}),o()(this).find(".fifth-level-nav").outerHeight(!0)>=s?(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&m>=768?o()(this).find(".fifth-level-nav").css({height:o()(window).height()-a-i+d-48}):o()(this).find(".fifth-level-nav").css({height:o()(window).height()-a-i+d}),o()(this).find(".fifth-level-nav").css("overflow-y","auto")):o()(this).find(".fifth-level-nav").css({height:""});var m=window.innerWidth;o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&m>=768&&o()(this).find(".fifth-level-nav").css("top",a+"px")}})),o()(this).closest("li").on("keydown",(function(e){var a=this;if("Enter"===e.key)if(o()(e.target).closest("ul.sub-megamenu").length>0&&o()(e.target).closest(".cmp-nav-2-0-compact-menu").length>0)e.stopImmediatePropagation();else if(o()(e.target).hasClass("sublink")&&o()(e.target).find("ul").length<1||o()(e.target).closest("li.sublink").length>0&&o()(e.target).closest("li.sublink").find("ul").length<1||o()(e.target).hasClass("sec-nav-link")&&o()(e.target).parent().hasClass("secondlevel-title"))e.stopImmediatePropagation();else if(!r()||r()&&i()&&0!==e.detail||r()&&!o()(e.target).hasClass("megamenu-toggle")||r()&&o()(".cmp-primary-navigation-nav-2-0 .primary-nav-wrapper.cmp-accessibility-v1").hasClass("overflowState")){e.preventDefault(),e.stopPropagation(),r()?o()("ul.sub-megamenu > li.secondlevel-title").css("display","none"):o()("ul.sub-megamenu > li.secondlevel-title").css("display","block");var s,l=o()(this).closest(".cmp-nav-2-0-mega-menu").height(),c=o()(window).height()-l;s=o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").length>0?o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").outerHeight():0,o()(this).siblings("li").removeClass("hovered"),o()(this).addClass("hovered"),o()(".global-nav.cmp-primary-nav.cmp-primary-navigation-nav-2-0 .cmp-searchinput").hasClass("search-expand")&&o()(".global-nav.cmp-primary-nav.cmp-primary-navigation-nav-2-0 #searchBoxBtn").trigger("click"),t.removeClass("hidden"),t.parent().removeClass("hidden"),o()(this).closest(".cmp-nav-2-0-compact-menu").length<1&&(o()("html").addClass("no-scroll"),o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px")),o()(e.target).siblings().find(".megamenu-wrapper").removeClass("blurbody"),o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")||(o()(this).find(n).addClass("blurbody"),o()(this).find(".submenu-wrapper").addClass("show-secondary-menu"),o()(this).find(".focus-chevron").attr("aria-expanded","true"));var d=0;o()(this).find(".submenu-wrapper.show-secondary-menu").find("li").each((function(e,t){d+=o()(a).find(".submenu-wrapper.show-secondary-menu").find("li").eq(e).outerHeight()})),d>o()(this).find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu").outerHeight()?(o()(this).find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu li").css("margin-right","var(--space-3xs)"),o()(this).find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu").scrollTop(0)):o()(this).find(".submenu-wrapper.show-secondary-menu ul.sub-megamenu li").css("margin-right","0");var u=document.documentElement.scrollTop,p=window.innerWidth;if(o()("header").hasClass("menu-hide"))u=0;else if(o()(".cmp-sticky-header.cmp-header--fixed").length>0)u=0,l=0,o()(this).closest(".cmp-above-brand-nav-2-0").length>0?(u=0,l+=o()(".cmp-above-brand-nav-2-0").height()):o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0&&(o()(".cmp-above-brand-nav-2-0").length>0&&(l+=o()(".cmp-above-brand-nav-2-0").height()),o()(".cmp-indication-bar-nav-2-0").length>0&&(l+=o()(".cmp-indication-bar-nav-2-0").height()),l+=o()(".cmp-above-brand-nav-2-0").height());else{var f=o()(this).closest(".cmp-nav-2-0-mega-menu").offset().top;l=(f-=o()(window).scrollTop())+o()(this).closest(".cmp-nav-2-0-mega-menu").height()}if(o()(this).find(".sub-megamenu").outerHeight(!0)&&(o()(this).find(".sub-megamenu").css({height:""}),o()(this).find(".sub-megamenu").outerHeight(!0)>=c?(o()(this).find(".sub-megamenu").css("overflow-y","auto"),o()(this).closest(".cmp-nav-2-0-compact-menu").length>0&&o()(this).find(".sub-megamenu").parent().addClass("cmp-scroll-padding"),o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&p>=768?o()(this).find(".sub-megamenu").css({height:o()(window).height()-l-s+u-48}):o()(this).find(".sub-megamenu").css({height:o()(window).height()-l-s+u})):(o()(this).find(".sub-megamenu").css({height:""}),o()(this).closest(".cmp-nav-2-0-compact-menu").length>0&&o()(this).find(".sub-megamenu").parent().removeClass("cmp-scroll-padding"))),o()(this).find(".megamenu-inner-sub-menu").outerHeight(!0)){o()(this).find(".megamenu-inner-sub-menu").css({height:""}),o()(this).find(".megamenu-inner-sub-menu").outerHeight(!0)>=c?(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&m>=768?o()(this).find(".megamenu-inner-sub-menu").css({height:o()(window).height()-l-s+u-48}):o()(this).find(".megamenu-inner-sub-menu").css({height:o()(window).height()-l-s+u}),o()(this).find(".megamenu-inner-sub-menu").css("overflow-y","auto")):o()(this).find(".megamenu-inner-sub-menu").css({height:""});var m=window.innerWidth;o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&m>=768&&o()(this).find(".megamenu-inner-sub-menu").css("top",l+"px")}if(o()(this).find(".forth-level-nav").outerHeight(!0)){o()(this).find(".forth-level-nav").css({height:""}),o()(this).find(".forth-level-nav").outerHeight(!0)>=c?(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&g>=768?o()(this).find(".forth-level-nav").css({height:o()(window).height()-l-s+u-48}):o()(this).find(".forth-level-nav").css({height:o()(window).height()-l-s+u}),o()(this).find(".forth-level-nav").css("overflow-y","auto")):o()(this).find(".forth-level-nav").css({height:""});var g=window.innerWidth;o()(this).closest(".primary-nav-wrapper").hasClass("overflo
876wState")&&g>=768&&o()(this).find(".cmp-forth-megamenu-parent-container").css("top",l+"px")}if(o()(this).find(".fifth-level-nav").outerHeight(!0)){h.css({height:""}),o()(this).find(".fifth-level-nav").outerHeight(!0)>=c?(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&v>=768?o()(this).find(".fifth-level-nav").css({height:o()(window).height()-l-s+u-48}):o()(this).find(".fifth-level-nav").css({height:o()(window).height()-l-s+u}),o()(this).find(".fifth-level-nav").css("overflow-y","auto")):o()(this).find(".fifth-level-nav").css({height:""});var v=window.innerWidth;o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&v>=768&&o()(this).find(".fifth-level-nav").css("top",l+"px")}}})))})),t.each((function(){o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0&&(o()(this).hasClass("megamenu-inner-sub-menu")||o()(this).hasClass("forth-level-nav")||o()(this).hasClass("fifth-level-nav")?o()(this).parent().on("mouseleave",(function(e){var t=o()(this.children[0]);t.hasClass("submenu-wrapper")&&0===t.closest(".primary-nav__megamenu").length?0===t.closest("ul.megamenu").length&&(t.closest(".primary-nav-wrapper").hasClass("overflowState")||(t.addClass("hidden"),o()(this).addClass("hidden"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),n.removeClass("blurbody"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px"))):o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")||(o()(this).addClass("hidden"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),n.removeClass("blurbody"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px"))})):o()(this).on("mouseleave",(function(e){o()(this).hasClass("submenu-wrapper")&&0===o()(this).closest(".primary-nav__megamenu").length?0===o()(this).closest("ul.megamenu").length&&(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")||(o()(this).addClass("hidden"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),n.removeClass("blurbody"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px"))):o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")||(o()(this).addClass("hidden"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),n.removeClass("blurbody"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px"))})))})),n.each((function(){o()(this).on("click",(function(e){t.addClass("hidden"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),o()(this).removeClass("blurbody"),o()(".hovered").removeClass("hovered"),o()(".clicked").removeClass("clicked"),o()(".blue-border").removeClass("blue-border"),o()(".submenu-wrapper").find("li").removeClass("hovered"),o()(".submenu-wrapper").removeClass("show-secondary-menu"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px")})),o()(this).on("mouseover",(function(e){o()(this).closest(".cmp-above-brand-nav-2-0").length<1&&(t.addClass("hidden"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),o()(this).removeClass("blurbody"),o()(".hovered").removeClass("hovered"),o()(".clicked").removeClass("clicked"),o()(".blue-border").removeClass("blue-border"),o()(".submenu-wrapper").find("li").removeClass("hovered"),o()(".submenu-wrapper").removeClass("show-secondary-menu"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px"),e.stopPropagation())}))}))}function g(e,t,n,r){t.is(e)||t.has(e).length||n.is(e)||(t.addClass("hidden"),o()("body").removeClass("no-scroll"))}if(e>=767.98){o()(".primary-nav__megamenu ul.megamenu").width();void 0!==o()(".primary-nav__megamenu ul.megamenu").offset()&&o()(".primary-nav__megamenu ul.megamenu").offset().left-17;o()(".primary-nav__megamenu ul.megamenu .sub-megamenu li").width(),o()(".primary-nav__megamenu ul.megamenu .sub-megamenu li .megamenu-inner-sub-menu li").width(),o()(".primary-nav__megamenu ul.megamenu .sub-megamenu li .megamenu-inner-sub-menu li .forth-level-nav li ").width();o()(document).on("click",(function(e){var t=o()(e.target);!o()(".clicked").length>0&&(g(t,a,n),g(t,d,c),g(t,h,u))})),m(n,a,p),m(s,l,p),m(c,d,p),m(u,h,p),f.each((function(){var e=o()(this).attr("data-sec-nav-icon");o()(this).hasClass("megamenu-nomenu")&&void 0===e&&!1===e&&o()(this).closest("li").on("click",(function(e){(o()(e.target).hasClass("sublink-parentlink")||o()(e.target).parent().hasClass("sublink-parentlink"))&&("_blank"===o()(e.target).find("a").attr("target")?window.open(o()(e.target).find("a").attr("href"),"_blank"):window.location.href=o()(e.target).find("a").attr("href"))}))})),o()(".sub-megamenu li a").on("mouseenter",(function(e){o()(e.target).closest("ul.sub-megamenu").length>0&&o()(e.target).closest(".cmp-nav-2-0-compact-menu").length>0||e.preventDefault(),o()(this).closest("li").hasClass("hovered")||o()(".submenu-wrapper").find("li").removeClass("hovered")})),o()(".sub-megamenu").find("a:first").on("keydown",(function(e){e.shiftKey&&9===e.keyCode&&(e.preventDefault(),o()(".blurbody").removeClass("blurbody"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px"),o()("li.sublink-parentlink.hovered.blue-border div a span.material-symbols-rounded").length>0?o()("li.sublink-parentlink.hovered.blue-border > div > a > span.material-symbols-rounded").focus():o()("li.sublink-parentlink.hovered.blue-border > div > a").focus(),o()(".clicked").removeClass("clicked"),r()||(o()(".submenu-wrapper").removeClass("show-secondary-menu"),o()(".focus-chevron").attr("aria-expanded","fal
876se")))})),o()(".megamenu-inner-sub-menu").find("a:first").on("keydown",(function(e){o()(this).closest("ul").hasClass("megamenu-inner-sub-menu")&&e.shiftKey&&9===e.keyCode&&(e.stopImmediatePropagation(),o()(this).closest(".megamenu-inner-sub-menu").addClass("hidden"),o()(".forth-level-nav").addClass("hidden"),o()(".fifth-level-nav").addClass("hidden"),o()(this).closest(".cmp-inner-sub-megamenu-parent-container").addClass("hidden"),o()(".cmp-forth-megamenu-parent-container").addClass("hidden"),o()(".cmp-fifth-megamenu-parent-container").addClass("hidden"))})),o()(".megamenu-inner-sub-menu").find("a:not(:first)").on("keydown",(function(e){o()(this).closest("ul").hasClass("megamenu-inner-sub-menu")&&e.shiftKey&&9===e.keyCode&&(o()(e.target).closest("li").removeClass("hovered"),e.stopImmediatePropagation())})),o()("ul.sub-megamenu").find("a:not(:first)").on("keydown",(function(e){o()(this).closest("ul").hasClass("sub-megamenu")&&e.shiftKey&&9===e.keyCode&&(o()(e.target).closest("li").removeClass("hovered"),e.stopImmediatePropagation())})),o()(".forth-level-nav").find("a:first").on("keydown",(function(e){o()(this).closest("ul").hasClass("forth-level-nav")&&e.shiftKey&&9===e.keyCode&&(e.stopImmediatePropagation(),o()(this).closest(".forth-level-nav").addClass("hidden"),o()(".fifth-level-nav").addClass("hidden"),o()(this).closest(".cmp-forth-megamenu-parent-container").addClass("hidden"),o()(".cmp-fifth-megamenu-parent-container").addClass("hidden"))})),o()(".forth-level-nav").find("a:not(:first)").on("keydown",(function(e){o()(this).closest("ul").hasClass("forth-level-nav")&&e.shiftKey&&9===e.keyCode&&(o()(e.target).closest("li").removeClass("hovered"),e.stopImmediatePropagation())})),o()(".fifth-level-nav").find("a:first").on("keydown",(function(e){e.shiftKey&&9===e.keyCode&&(e.stopImmediatePropagation(),o()(this).closest(".fifth-level-nav").addClass("hidden"),o()(this).closest(".cmp-fifth-megamenu-parent-container").addClass("hidden"))})),o()(".fifth-level-nav").find("a:not(:first)").on("keydown",(function(e){o()(this).closest("ul").hasClass("fifth-level-nav")&&e.shiftKey&&9===e.keyCode&&(o()(e.target).closest("li").removeClass("hovered"),e.stopImmediatePropagation())}));var v=!1;o()("ul.megamenu > li").on("touchstart",(function(e){v=!0,setTimeout((function(){v=!1}),400)})),o()("ul.megamenu > li").on("mouseover click",(function(e){if(o()(e.currentTarget).find("a").attr("data-sec-nav-icon")&&o()(e.currentTarget).find("a").attr("data-sec-nav-icon").length>0){if("mouseover"===e.type&&o()(e.currentTarget).closest(".cmp-above-brand-nav-2-0").length>0){if(!o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState"))return o()(".megamenu").find("li").removeClass("blue-border"),o()(e.currentTarget).addClass("blue-border"),void e.stopImmediatePropagation()}else if(!o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState"))return o()(".megamenu").find("li").removeClass("blue-border"),o()(e.currentTarget).addClass("blue-border"),!o()(e.currentTarget).find(".megamenu-wrapper").length>0&&o()(".megamenu-wrapper").removeClass("blurbody"),void e.stopImmediatePropagation()}else if("mouseover"===e.type&&o()(e.currentTarget).closest(".cmp-above-brand-nav-2-0").length>0){if(!o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState"))return o()(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu .submenu-wrapper").removeClass("show-secondary-menu"),o()(".megamenu").find("li").removeClass("blue-border"),void o()(e.currentTarget).addClass("blue-border")}else if(!o()(e.target).hasClass("megamenu-wrapper"))if(o()(e.currentTarget).find(".show-secondary-menu").length>0||o()(e.target).closest("li").find(".show-secondary-menu").length>0){var t=o()(e.currentTarget).closest(".primary-nav-wrapper"),n=t.offset().left,i=getComputedStyle(t[0]).paddingLeft,a=parseFloat(i)+parseFloat(n),s=t.find(".logo-images"),l=s?s.width():0,c=o()(e.currentTarget).closest(".megamenu"),d=a+l+(c?c.width():0)+30;if(o()("header").hasClass("menu-hide")){var u=0;o()(".cmp-indication-bar-nav-2-0").length>0&&o()(".cmp-indication-bar-nav-2-0").hasClass("cmp-indication-bar-sticky")&&(u+=o()(".cmp-indication-bar-nav-2-0").height()),o()(e.currentTarget).find(".megamenu-wrapper").css({top:u+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height(),"z-index":100001}),o()(e.currentTarget).find(".submenu-wrapper").css({top:u+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height(),"z-index":100001,width:d}),o()(e.currentTarget).closest(".cmp-nav-2-0-compact-menu").length>0&&o()(e.currentTarget).find(".submenu-wrapper").css({top:u+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height()+1})}else if(o()(".cmp-sticky-header.cmp-header--fixed").length>0){var h=0;o()(e.currentTarget).closest(".cmp-above-brand-nav-2-0").length>0?h=0:o()(e.currentTarget).closest(".cmp-primary-navigation-nav-2-0").length>0&&(o()(".cmp-above-brand-nav-2-0").length>0&&(h+=o()(".cmp-above-brand-nav-2-0").height()),o()(".cmp-indication-bar-nav-2-0").length>0&&(h+=o()(".cmp-indication-bar-nav-2-0").height())),o()(e.currentTarget).find(".megamenu-wrapper").css({top:h+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height(),"z-index":100001}),o()(e.currentTarget).find(".submenu-wrapper").css({top:h+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height()+1,"z-index":100001,width:d}),o()(e.currentTarget).closest(".cmp-nav-2-0-compact-menu").length>0&&o()(e.currentTarget).find(".submenu-wrapper").css({top:h+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height()+1})}else{var p=o()(window).scrollTop(),f=o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").offset().top;f-=p,o()(e.currentTarget).find(".megamenu-wrapper").css({top:f+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height(),"z-index":100001}),o()(e.currentTarget).find(".submenu-wrapper").css({top:f+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height()+1,"z-index":100001,width:d}),o()(e.currentTarget).closest(".cmp-nav-2-0-compact-menu").length>0&&o()(e.currentTarget).find(".submenu-wrapper").css({top:f+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height()+1})}if(o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState")&&o()(e.currentTarget).find(".submenu-wrapper").css({width:"auto"}),!o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState")){if(o()(".megamenu").find("li").removeClass("blue-border"),o()(".megamenu").find("li a").removeClass("active-link"),o()("a.active-link").removeClass("active-link"),o()(e.currentTarget).addClass("blue-border"),!o()(e.currentTarget).find(".megamenu-wrapper").length>0&&o()(".megamenu-wrapper").removeClass("blurbody"),o()(e.currentTarget).closest(".cmp-nav-2-0-compact-menu").length<1&&(document.body.classList.add("no-scroll"),o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px")),o()(".secondary-menu-nav").addClass("cmp-hide"),o()(".submenu-wrapper").removeClass("show-secondary-menu"),o()(e.currentTarget).find(".submenu-wrapper").addClass("show-secondary-menu"),!o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState")&&o()(e.currentTarget).closest(".cmp-nav-2-0-compact-menu").length>0){var m=o()(e.target).closest(".primary-nav-wrapper").width(),g=o()(e.target).closest(".sublink-parentlink").outerWidth(),b=o()(e.target).closest(".primary-nav-wrapper .primary-nav ").offset().left,_=b+m,w=o()(e.target).closest(".sublink-parentlink").offset().left,x=w-b,C=(o()(window).width(),o()(window).width()-w-g+"px"),S=_-x;o()(e.currentTarget).closest(".cmp-nav-2-0-compact-menu.cmp-nav-2-0-compact-menu-right").length>0?S+308>_?o()(e.currentTarget).find(".submenu-wrapper.show-secondary-menu")[0].style.setProperty("right","unset","important"):(o()(e.currentTarget).find(".submenu-wrapper.show-secondary-menu")[0].style.setProperty("--my-custom-property",C),o()(e.currentTarget).find(".submenu-wrapper.show-secondary-menu")[0].style.setProperty("right","var(--my-custom-property)","important")):x+308>m?(o()(e.currentTarget).find(".submenu-wrapper.show-secondary-menu")[0].style.setProperty("--my-custom-property",C),o()(e.currentTarget).find(".submenu-wrapper.show-secondary-menu")[0].style.setProperty("right","var(--my-custom-property)","important")):o()(e.currentTarget).find(".submenu-wrapper.show-secondary-menu")[0].style.setProperty("right","unset","important")}var E=0;if(o()("header").hasClass("menu-hide"))o()(".cmp-indication-bar-nav-2-0").length>0&&o()(".cmp-indication-bar-nav-2-0").hasClass("cmp-indication-bar-sticky")&&(E+=o()(".cmp-indication-bar-nav-2-0").height());else if(o()(".cmp-sticky-header.cmp-header--fixed").length>0)E=0,o()(e.currentTarget).closest(".cmp-above-brand-nav-2-0").length>0?E=0:o()(e.currentTarget).closest(".cmp-primary-navigation-nav-2-0").length>0&&(E=0,o()(".cmp-above-brand-nav-2-0").length>0&&(E+=o()(".cmp-above-brand-nav-2-0").height()),o()(".cmp-indication-bar-nav-2-0").length>0&&(E+=o()(".cmp-indication-bar-nav-2-0").height()));else{var k=o()(window).scrollTop();E=o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").offset().top,E-=k}var T=E+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height(),O=(document.documentElement.scrollTop,o()(e.currentTarget).offset().left,t.offset().left),$=getComputedStyle(t[0]).paddingLeft,P=parseFloat($)+parseFloat(O),I=t.find(".logo-images"),L=I?I.width():0,A=o()(e.currentTarget).closest(".megamenu");A&&A.width();o()(e.currentTarget).find(".cmp-sub-megamenu-parent-container").css("left",P+L),o()(e.currentTarget).find(".cmp-inner-sub-megamenu-parent-container").css({left:P+L+308,top:T+1}),o()(e.currentTarget).find(".cmp-forth-megamenu-parent-container").css({left:P+L+308+260,top:T+1}),o()(e.currentTarget).find(".cmp-fifth-megamenu-parent-container").css({left:P+L+308+260+260,top:T+1})}"mouseover"==e.type&&r()&&!v||"click"==e.type&&r()&&!v?(o()("ul.sub-megamenu > li.secondlevel-title").css("display","none"),e.stopImmediatePropagation()):o()("ul.sub-megamenu > li.secondlevel-title").css("display","block")}else o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState")||(o()(".megamenu").find("li").removeClass("blue-border"),o()(e.currentTarget).addClass("blue-border"),o()(".blurbody").removeClass("blurbody"),o()(".submenu-wrapper").removeClass("show-secondary-menu"),"click"===e.type&&y())})),o()("ul.megamenu > li").on("keydown",(function(e){if("Enter"===e.key){if(o()(e.currentTarget).find("a").attr("data-sec-nav-icon")&&o()(e.currentTarget).find("a").attr("data-sec-nav-icon").length>0){if(e.preventDefault(),!o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState"))return o()(".megamenu").find("li").removeClass("blue-border"),o()(e.currentTarget).addClass("blue-border"),!o()(e.currentTarget).find(".megamenu-wrapper").length>0&&o()(".megamenu-wrapper").removeClass("blurbody"),void e.stopImmediatePropagation()}else if(!o()(e.target).hasClass("megamenu-wrapper"))if(!o()(e.target).hasClass("sublink-parentlink")&&!o()(e.target).closest("li").hasClass("sublink-parentlink")||!o()(e.target).hasClass("blue-border")&&!o()(e.target).closest("li").hasClass("blue-border")||!o()(e.target).hasClass("hovered")&&!o()(e.target).closest("li").hasClass("hovered")||o()(e.target).hasClass("clicked")||o()(e.target).closest("li").hasClass("clicked")||!(o()(e.currentTarget).find(".show-secondary-menu").length>0||o()(e.target).closest("li").find(".show-secondary-menu").length>0))if(o()(e.currentTarget).find(".show-secondary-menu").length>0||o()(e.target).closest("li").find(".show-secondary-menu").length>0){e.preventDefault();var t=o()(e.currentTarget).closest(".primary-nav-wrapper"),n=t.offset().left,r=getComputedStyle(t[0]).paddingLeft,i=parseFloat(r)+parseFloat(n),a=t.find(".logo-images"),s=a?a.width():0,l=o()(e.currentTarget).closest(".megamenu"),c=i+s+(l?l.width():0)+30;if(o()("header").hasClass("menu-hide")){var d=0;o()(".cmp-indication-bar-nav-2-0").length>0&&o()(".cmp-indication-bar-nav-2-0").hasClass("cmp-indication-bar-sticky")&&(d+=o()(".cmp-indication-bar-nav-2-0").height()),o()(e.currentTarget).find(".megamenu-wrapper").css({top:d+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height(),"z-index":100001}),o()(e.currentTarget).find(".submenu-wrapper").css({top:d+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height(),"z-index":100001,width:c}),o()(e.currentTarget).closest(".cmp-nav-2-0-compact-menu").length>0&&o()(e.currentTarget).find(".submenu-wrapper").css({top:d+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height()+1})}else if(o()(".cmp-sticky-header.cmp-header--fixed").length>0){var u=0;o()(e.currentTarget).closest(".cmp-above-brand-nav-2-0").length>0?u=0:o()(e.currentTarget).closest(".cmp-primary-navigation-nav-2-0").length>0&&(o()(".cmp-above-brand-nav-2-0").length>0&&(u+=o()(".cmp-above-brand-nav-2-0").height()),o()(".cmp-indication-bar-nav-2-0").length>0&&(u+=o()(".cmp-indication-bar-nav-2-0").height())),o()(e.currentTarget).find(".megamenu-wrapper").css({top:u+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height(),"z-index":100001}),o()(e.currentTarget).find(".submenu-wrapper").css({top:u+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height()+1,"z-index":100001,width:c}),o()(e.currentTarget).closest(".cmp-nav-2-0-compact-menu").length>0&&o()(e.currentTarget).find(".submenu-wrapper").css({top:u+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height()+1})}else{var h=o()(window).scrollTop(),p=o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").offset().top;
876p-=h,o()(e.currentTarget).find(".megamenu-wrapper").css({top:p+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height(),"z-index":100001}),o()(e.currentTarget).find(".submenu-wrapper").css({top:p+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height()+1,"z-index":100001,width:c}),o()(e.currentTarget).closest(".cmp-nav-2-0-compact-menu").length>0&&o()(e.currentTarget).find(".submenu-wrapper").css({top:p+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height()+1})}if(o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState")&&o()(e.currentTarget).find(".submenu-wrapper").css({width:"auto"}),!o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState")){if(o()(".megamenu").find("li").removeClass("blue-border"),o()(".megamenu").find("li a").removeClass("active-link"),o()("a.active-link").removeClass("active-link"),o()(e.currentTarget).addClass("blue-border"),!o()(e.currentTarget).find(".megamenu-wrapper").length>0&&o()(".megamenu-wrapper").removeClass("blurbody"),o()(e.currentTarget).closest(".cmp-nav-2-0-compact-menu").length<1&&(document.body.classList.add("no-scroll"),o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px")),o()(".secondary-menu-nav").addClass("cmp-hide"),o()(".submenu-wrapper").removeClass("show-secondary-menu"),o()(".focus-chevron").attr("aria-expanded","false"),o()(e.currentTarget).find(".submenu-wrapper").addClass("show-secondary-menu"),o()(e.currentTarget).find(".focus-chevron").attr("aria-expanded","true"),!o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState")&&o()(e.currentTarget).closest(".cmp-nav-2-0-compact-menu").length>0){var f=o()(e.target).closest(".primary-nav-wrapper").width(),m=o()(e.target).closest(".sublink-parentlink").outerWidth(),g=o()(e.target).closest(".sublink-parentlink").offset().left,v=o()(window).width()-g-m,b=o()(window).width()-g-m+"px";o()(e.currentTarget).closest(".cmp-nav-2-0-compact-menu.cmp-nav-2-0-compact-menu-right").length>0?v+308>f?o()(e.currentTarget).find(".submenu-wrapper.show-secondary-menu")[0].style.setProperty("right","unset","important"):(o()(e.currentTarget).find(".submenu-wrapper.show-secondary-menu")[0].style.setProperty("--my-custom-property",b),o()(e.currentTarget).find(".submenu-wrapper.show-secondary-menu")[0].style.setProperty("right","var(--my-custom-property)","important")):g+308>f?(o()(e.currentTarget).find(".submenu-wrapper.show-secondary-menu")[0].style.setProperty("--my-custom-property",b),o()(e.currentTarget).find(".submenu-wrapper.show-secondary-menu")[0].style.setProperty("right","var(--my-custom-property)","important")):o()(e.currentTarget).find(".submenu-wrapper.show-secondary-menu")[0].style.setProperty("right","unset","important")}var _=0;if(o()("header").hasClass("menu-hide"))o()(".cmp-indication-bar-nav-2-0").length>0&&o()(".cmp-indication-bar-nav-2-0").hasClass("cmp-indication-bar-sticky")&&(_+=o()(".cmp-indication-bar-nav-2-0").height());else if(o()(".cmp-sticky-header.cmp-header--fixed").length>0)_=0,o()(e.currentTarget).closest(".cmp-above-brand-nav-2-0").length>0?_=0:o()(e.currentTarget).closest(".cmp-primary-navigation-nav-2-0").length>0&&(_=0,o()(".cmp-above-brand-nav-2-0").length>0&&(_+=o()(".cmp-above-brand-nav-2-0").height()),o()(".cmp-indication-bar-nav-2-0").length>0&&(_+=o()(".cmp-indication-bar-nav-2-0").height()));else{var w=o()(window).scrollTop();_=o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").offset().top,_-=w}var x=_+o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu").height(),C=(document.documentElement.scrollTop,o()(e.currentTarget).offset().left,t.offset().left),S=getComputedStyle(t[0]).paddingLeft,E=parseFloat(S)+parseFloat(C),k=t.find(".logo-images"),T=k?k.width():0,O=o()(e.currentTarget).closest(".megamenu");O&&O.width();o()(e.currentTarget).find(".cmp-sub-megamenu-parent-container").css("left",E+T),o()(e.currentTarget).find(".cmp-inner-sub-megamenu-parent-container").css({left:E+T+308,top:x+1}),o()(e.currentTarget).find(".cmp-forth-megamenu-parent-container").css({left:E+T+308+260,top:x+1}),o()(e.currentTarget).find(".cmp-fifth-megamenu-parent-container").css({left:E+T+308+260+260,top:x+1})}}else o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState")||(o()(".megamenu").find("li").removeClass("blue-border"),o()(e.currentTarget).addClass("blue-border"),o()(".blurbody").removeClass("blurbody"),o()(".submenu-wrapper").removeClass("show-secondary-menu"),o()(".focus-chevron").attr("aria-expanded","fal
876se"),"click"===e.type&&y());else o()(e.currentTarget).closest(".primary-nav-wrapper").hasClass("overflowState")||(o()(".megamenu").find("li").removeClass("blue-border"),o()(".blurbody").removeClass("blurbody"),o()(".submenu-wrapper").removeClass("show-secondary-menu"),o()(".focus-chevron").attr("aria-expanded","false"))}else e.shiftKey&&9===e.keyCode&&o()(".submenu-wrapper.show-secondary-menu").length>0&&(o()(e.target).hasClass("sublink-parentlink")||o()(e.target).closest("li").hasClass("sublink-parentlink"))&&(o()(".blurbody").removeClass("blurbody"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px"),o()(".clicked").removeClass("clicked"),o()(".submenu-wrapper").removeClass("show-secondary-menu"),o()(".focus-chevron").attr("aria-expanded","false"),o()(".megamenu").find("li").removeClass("blue-border"))})),o()("ul.megamenu > li.sublink-parentlink").on("focus",(function(e){"Tab"===e.key&&(o()(e.target).hasClass("sublink-parentlink")||o()(e.target).closest("li").hasClass("sublink-parentlink"))&&(o()(".submenu-wrapper").removeClass("show-secondary-menu"),o()(".focus-chevron").attr("aria-expanded","false"),o()(".megamenu").find("li").removeClass("blue-border"),o()(".blurbody").removeClass("blurbody"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px"))})),o()("ul.megamenu > li.sublink-parentlink button.focus-chevron , ul.megamenu > li.sublink-parentlink a .material-symbols-rounded").on("focus",(function(e){o()(".link-focussed").removeClass("link-focussed"),o()(e.currentTarget).addClass("link-focussed")})),o()("ul.megamenu > li.sublink-parentlink button.focus-chevron , ul.megamenu > li.sublink-parentlink a .material-symbols-rounded").on("focusout",(function(e){o()(".link-focussed").removeClass("link-focussed")}))}else o()(".submenu-wrapper,.forth-level-nav,.megamenu-inner-sub-menu,.fifth-level-nav").removeClass("hidden"),o()(".submenu-wrapper,.cmp-forth-megamenu-parent-container,.cmp-inner-sub-megamenu-parent-container,.cmp-fifth-megamenu-parent-container").removeClass("hidden");function y(){(o()(".secondary-menu-nav").is(":visible")&&(o()(".secondary-menu-nav").addClass("cmp-hide"),o()(".menu").find("a").removeClass("active-link"),o()(".megamenu").find("a").removeClass("active-link"),o()(".utility-links-wrapper").find("a").removeClass("active-link"),o()("html").css({overflow:"auto",height:"auto"})),o()(".primary-nav__megamenu").is(":visible"))&&o()(".primary-nav__megamenu:visible").closest(".cmp-nav-2-0-mega-menu").find(".hamburger-container__open.hamburger-container__open-active").trigger("click")}o()(document).on("click",(function(t){e>767.98&&e>767.98&&(o()(t.target).closest("ul").hasClass("megamenu")||o()(t.target).closest("ul").hasClass("sub-megamenu")||o()(t.target).closest("ul").hasClass("megamenu-inner-sub-menu")||o()(t.target).closest("ul").hasClass("forth-level-nav")||o()(t.target).closest("ul").hasClass("fifth-level-nav")||o()(t.target).parent().attr("data-sec-nav-icon")&&o()(t.target).parent().attr("data-sec-nav-icon").length>0||o()(t.target).attr("data-sec-nav-icon")&&o()(t.target).attr("data-sec-nav-icon").length>0||o()(t.target).closest(".secondary-menu-nav--body").length>0||o()(t.target).hasClass("hamburger-container__open")||o()(t.target).parent().hasClass("hamburger-container__open")||o()(t.target).closest(".hamburger-container-back").length>0?o()(t.target).closest("ul").hasClass("megamenu")&&o()(t.target).closest("li.sublink-parentlink").find(".megamenu-wrapper").length<1&&(o()(".megamenu").find("li").removeClass("blue-border"),o()(".primary-nav-wrapper").hasClass("overflowState")||o()(".submenu-wrapper").addClass("hidden"),o()(t.target).closest(".primary-nav-wrapper").hasClass("overflowState")||(o()(".megamenu-wrapper").removeClass("blurbody"),o()(".hovered").removeClass("hovered"),o()(".clicked").removeClass("clicked"),o()(".blue-border").removeClass("blue-border"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),o()(".submenu-wrapper").find("li").removeClass("hovered"),o()(".submenu-wrapper").removeClass("show-secondary-menu"),o()("html").css({overflow:"auto",height:"auto"}))):(o()(".nav-slot").css("display","none"),o()(".submenu-wrapper").removeClass("show-secondary-menu"),o()(t.target).closest("div").hasClass("primary-nav__megamenu")&&!o()(t.target).hasClass("primary-nav__megamenu")||o()(t.target).hasClass("cmp-nav navigation")||o()(t.target).closest("div").hasClass("submenu-wrapper")||(o()(".megamenu").find("li").removeClass("blue-border"),o()(".primary-nav-wrapper").hasClass("overflowState")||o()(".submenu-wrapper").addClass("hidden"),o()(".megamenu-wrapper").removeClass("blurbody"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),o()("html").css({overflow:"auto",height:"auto"}),o()(".secondary-menu-nav").addClass("cmp-hide"),o()(".menu").find("a").removeClass("active-link"),o()(".megamenu").find("a").removeClass("active-link"),o()(".hamburger-container__open.hamburger-container__open-active").trigger("click"))),o()(t.target).hasClass("search-icon")&&o()(".hamburger-container__open.hamburger-container__open-active").trigger("click"))})),o()(document).on("mouseover",(function(t){e>
876767.98&&e>767.98&&(o()(t.target).closest("ul").hasClass("megamenu")||o()(t.target).closest("ul").hasClass("sub-megamenu")||o()(t.target).closest("ul").hasClass("megamenu-inner-sub-menu")||o()(t.target).closest("ul").hasClass("forth-level-nav")||o()(t.target).closest("ul").hasClass("fifth-level-nav")||o()(".megamenu").find("li").removeClass("blue-border"),o()(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu .submenu-wrapper.show-secondary-menu:not(.hidden)").length>0&&(o()(t.target).closest("ul").hasClass("megamenu")||o()(t.target).closest("ul").hasClass("sub-megamenu")||o()(t.target).closest("ul").hasClass("megamenu-inner-sub-menu")||o()(t.target).closest("ul").hasClass("forth-level-nav")||o()(t.target).closest("ul").hasClass("fifth-level-nav")||(o()(".nav-slot").css("display","none"),o()(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu .submenu-wrapper").removeClass("show-secondary-menu"),o()(t.target).closest("div").hasClass("primary-nav__megamenu")&&!o()(t.target).hasClass("primary-nav__megamenu")||o()(t.target).hasClass("cmp-nav navigation")||o()(t.target).closest("div").hasClass("submenu-wrapper")||(o()(".megamenu").find("li").removeClass("blue-border"),o()(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu .primary-nav-wrapper").hasClass("overflowState")||(o()(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu .submenu-wrapper").addClass("hidden"),o()(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu .megamenu-wrapper").removeClass("blurbody"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),o()("html").css({overflow:"auto",height:"auto"}))))))})),o()(document).on("keydown",(function(e){"Escape"===e.key?(o()(".submenu-wrapper.show-secondary-menu").length>0||o()(".secondary-menu-nav:not(.cmp-hide)").length>0)&&(e.preventDefault(),o()(".blurbody").removeClass("blurbody"),o()("html").removeClass("no-scroll"),o()("body").removeClass("no-scroll"),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px"),o()(".secondary-menu-nav:not(.cmp-hide)").length>0?(o()("a[data-sec-nav-icon].active-link").focus(),o()("a[data-sec-nav-icon].active-link").removeClass("active-link")):o()("li.sublink-parentlink.hovered.blue-border > div > a").focus(),o()(".clicked").removeClass("clicked"),o()(".submenu-wrapper").removeClass("show-secondary-menu"),o()(".focus-chevron").attr("aria-expanded","false"),o()(".secondary-menu-nav").addClass("cmp-hide")):!e.shiftKey&&9===e.keyCode&&"Tab"===e.key&&o()(".secondary-menu-nav:not(.cmp-hide)").length>0&&o()(e.target).hasClass("active-link")&&o()("[data-sec-nav-icon].active-link").length>0&&(e.preventDefault(),o()(".secondary-menu-nav:not(.cmp-hide) .secondary-menu-nav--body__top-selected a:first").focus())})),o()(".hamburger-container__open").off("keyup"),o()(".hamburger-container__close").off("keyup"),o()(document).on("click",".cmp-nav-2-0-mega-menu .hamburger-container__open:not(.hamburger-container__open-active)",(function(t){y(),o()(".cmp-searchinput").hasClass("search-expand")&&o()("#searchBoxBtn").trigger("click");var n=o()(this).closest(".cmp-nav-2-0-mega-menu"),r=0;if(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")){if(o()("header").hasClass("menu-hide"))e=o()(window).width(),o()(".cmp-indication-bar-nav-2-0").length>0&&o()(".cmp-indication-bar-nav-2-0").hasClass("cmp-indication-bar-sticky")&&e>1024.1&&(r+=o()(".cmp-indication-bar-nav-2-0").height());else if(o()(".cmp-sticky-header.cmp-header--fixed").length>0)o()(this).closest(".cmp-above-brand-nav-2-0").length>0?r=0:o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0&&(o()(".cmp-above-brand-nav-2-0").length>0&&(r+=o()(".cmp-above-brand-nav-2-0").height()),o()(".cmp-indication-bar-nav-2-0").length>0&&(r+=o()(".cmp-indication-bar-nav-2-0").height()));else{var i=o()(window).scrollTop();r=n.offset().top,r-=i}var a;a=o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").length>0?o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").outerHeight():0;var s=r+n.height()-1;o()(this).closest(".cmp-above-brand-nav-2-0").length>0&&(s+=1),o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0&&(s+=2);var l=s+a;n.find(".primary-nav__megamenu").css({top:s,height:"calc(100vh - "+l+"px)"}),o()(this).closest(".cmp-above-brand-nav-2-0").length<1&&n.find(".hamburger-container-close").css("top",s+20),n.find(".hamburger-container-back").css("top",s+20)}var c=0;if(o()(".cmp-indication-bar-nav-2-0.cmp-nav-2-0-dtc-min-indication-sticky").length>0&&!o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0){var d=c=o()(".cmp-indication-bar-nav-2-0.cmp-nav-2-0-dtc-min-indication-sticky").height()-3;n.find(".primary-nav__megamenu").css({top:c+1,height:"calc(100vh - "+d+"px)"}),n.find(".hamburger-container-close").css({top:c+22}),n.find(".hamburger-container-back").css({top:c+22}),o()(".cmp-sticky-header").length>0&&o()(".cmp-sticky-header.cmp-header--fixed").length<1&&o()(".cmp-sticky-header").addClass("cmp-sticky-header-indication-bar-min")}if(n.find(".primary-nav__megamenu").css("display","block"),n.find(".primary-nav__rightnav").addClass("show--hamburger-back"),e<767.98){n.find("ul.megamenu:not(.cmp-right-menu)").css({"max-height":"unset",height:"auto","margin-right":"0"}),n.find("ul.megamenu:not(.cmp-right-menu)").addClass("cmp-custom-height");var u=n.find("ul.megamenu:not(.cmp-right-menu)").outerHeight(),h=n.find(".cmp-bottom-menu").outerHeight(),p=n.find(".primary-nav__megamenu").outerHeight()-h-48-30;u>p?(n.find("ul.megamenu:not(.cmp-right-menu)").removeClass("cmp-custom-height"),n.find("ul.megamenu:not(.cmp-right-menu)").css({"max-height":p+"px",height:p+"px","overflow-y":"scroll","margin-right":"var(--space-3xs)"}),n.find("ul.megamenu:not(.cmp-right-menu)").find("li:last").css({"margin-bottom":"0"})):(n.find("ul.megamenu:not(.cmp-right-menu)").removeClass("cmp-custom-height"),n.find("ul.megamenu:not(.cmp-right-menu)").css({"max-height":"unset",height:"auto","margin-right":"0"}))}else if(e>767.98&&e<1024.1){n.find("ul.megamenu:not(.cmp-right-menu)").css({"max-height":"unset",height:"auto","margin-right":"0"}),n.find("ul.megamenu:not(.cmp-right-menu)").addClass("cmp-custom-height");var f=n.find("ul.megamenu:not(.cmp-right-menu)").outerHeight(),m=0;n.find(".cmp-bottom-menu:visible").length>0&&(m=n.find(".cmp-bottom-menu:visible").outerHeight());var g=n.find(".primary-nav__megamenu").outerHeight()-m-30;f>g?(n.find("ul.megamenu:not(.cmp-right-menu)").removeClass("cmp-custom-height"),n.find("ul.megamenu:not(.cmp-right-menu)").css({"max-height":g+"px",height:g+"px","overflow-y":"scroll","margin-right":"var(--space-3xs)"}),n.find("ul.megamenu:not(.cmp-right-menu)").find("li:last").css({"margin-bottom":"0"})):(n.find("ul.megamenu:not(.cmp-right-menu)").removeClass("cmp-custom-height"),n.find("ul.megamenu:not(.cmp-right-menu)").css({"max-height":"unset",height:"auto","overflow-y":"unset","margin-right":"0"}))}if(o()(".cmp-container-nav-background").hide(),n.find(".hamburger-container__open").removeClass("hamburger-container__open_hide"),n.find(".hamburger-container__close").removeClass("hamburger-container__close_show"),n.find(".hamburger-container__open").addClass("hamburger-container__open-active"),n.find("ul.megamenu .submenu-wrapper").removeClass("hidden"),o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px"),window.visualVie
876wport&&o()(window).width()<=767.98){var v=window.visualViewport.height;if(o()(".cmp-nav-2-0-mega-menu .primary-nav-wrapper > .primary-nav .primary-nav__megamenu").css("max-height","".concat(v,"px")),c=0,o()(".cmp-indication-bar-nav-2-0.cmp-nav-2-0-dtc-min-indication-sticky").length>0&&!o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0){var b=v-(c=o()(".cmp-indication-bar-nav-2-0.cmp-nav-2-0-dtc-min-indication-sticky").height()-3);n.find(".primary-nav__megamenu").css("max-height","".concat(b,"px"))}}if(o()(window).width()<=767.98&&o()(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu .cmp-bottom-menu .megamenu.cmp-right-menu").length>0){var _=o()(".cmp-primary-navigation-nav-2-0.cmp-nav-2-0-mega-menu .cmp-bottom-menu .megamenu.cmp-right-menu");1===_.find("li:visible").length&&_.find("li:visible").addClass("cmp-rem-btm-margin")}else o()(".cmp-rem-btm-margin").removeClass("cmp-rem-btm-margin")})),o()(document).on("keydown",".cmp-nav-2-0-mega-menu .hamburger-container__open:not(.hamburger-container__open-active)",(function(t){if("Enter"===t.key){y(),o()(".cmp-searchinput").hasClass("search-expand")&&o()("#searchBoxBtn").trigger("click");var n=o()(this).closest(".cmp-nav-2-0-mega-menu"),r=0;if(o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")){if(o()("header").hasClass("menu-hide")){var i=o()(window).width();o()(".cmp-indication-bar-nav-2-0").length>0&&o()(".cmp-indication-bar-nav-2-0").hasClass("cmp-indication-bar-sticky")&&i>1024.1&&(r+=o()(".cmp-indication-bar-nav-2-0").height())}else if(o()(".cmp-sticky-header.cmp-header--fixed").length>0)o()(this).closest(".cmp-above-brand-nav-2-0").length>0?r=0:o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0&&(o()(".cmp-above-brand-nav-2-0").length>0&&(r+=o()(".cmp-above-brand-nav-2-0").height()),o()(".cmp-indication-bar-nav-2-0").length>0&&(r+=o()(".cmp-indication-bar-nav-2-0").height()));else{var a=o()(window).scrollTop();r=n.offset().top,r-=a}var s;s=o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").length>0?o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").outerHeight():0;var l=r+n.height()-1;o()(this).closest(".cmp-above-brand-nav-2-0").length>0&&(l+=1),o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0&&(l+=2);var c=l+s;n.find(".primary-nav__megamenu").css({top:l,height:"calc(100vh - "+c+"px)"}),o()(this).closest(".cmp-above-brand-nav-2-0").length<1&&n.find(".hamburger-container-close").css("top",l+20),n.find(".hamburger-container-back").css("top",l+20)}var d=0;if(o()(".cmp-indication-bar-nav-2-0.cmp-nav-2-0-dtc-min-indication-sticky").length>0&&!o()(this).closest(".primary-nav-wrapper").hasClass("overflowState")&&o()(this).closest(".cmp-primary-navigation-nav-2-0").length>0){var u=d=o()(".cmp-indication-bar-nav-2-0.cmp-nav-2-0-dtc-min-indication-sticky").height()-3;n.find(".primary-nav__megamenu").css({top:d+1,height:"calc(100vh - "+u+"px)"}),n.find(".hamburger-container-close").css({top:d+22}),n.find(".hamburger-container-back").css({top:d+22}),o()(".cmp-sticky-header").length>0&&o()(".cmp-sticky-header.cmp-header--fixed").length<1&&o()(".cmp-sticky-header").addClass("cmp-sticky-header-indication-bar-min")}if(n.find(".primary-nav__megamenu").css("display","block"),n.find(".primary-nav__rightnav").addClass("show--hamburger-back"),e<767.98){n.find("ul.megamenu:not(.cmp-right-menu)").css({"max-height":"unset",height:"auto","margin-right":"0"}),n.find("ul.megamenu:not(.cmp-right-menu)").addClass("cmp-custom-height");var h=n.find("ul.megamenu:not(.cmp-right-menu)").outerHeight(),p=n.find(".cmp-bottom-menu").outerHeight(),f=n.find(".primary-nav__megamenu").outerHeight()-p-48-30;h>f?(n.find("ul.megamenu:not(.cmp-right-menu)").removeClass("cmp-custom-height"),n.find("ul.megamenu:not(.cmp-right-menu)").css({"max-height":f+"px",height:f+"px","overflow-y":"scroll","margin-right":"var(--space-3xs)"}),n.find("ul.megamenu:not(.cmp-right-menu)").find("li:last").css({"margin-bottom":"0"})):(n.find("ul.megamenu:not(.cmp-right-menu)").removeClass("cmp-custom-height"),n.find("ul.megamenu:not(.cmp-right-menu)").css({"max-height":"unset",height:"auto","margin-right":"0"}))}else if(e>767.98&&e<1024.1){n.find("ul.megamenu:not(.cmp-right-menu)").css({"max-height":"unset",height:"auto","margin-right":"0"}),n.find("ul.megamenu:not(.cmp-right-menu)").addClass("cmp-custom-height");var m=n.find("ul.megamenu:not(.cmp-right-menu)").outerHeight(),g=0;n.find(".cmp-bottom-menu:visible").length>0&&(g=n.find(".cmp-bottom-menu:visible").outerHeight());var v=n.find(".primary-nav__megamenu").outerHeight()-g-30;m>v?(n.find("ul.megamenu:not(.cmp-right-menu)").removeClass("cmp-custom-height"),n.find("ul.megamenu:not(.cmp-right-menu)").css({"max-height":v+"px",height:v+"px","overflow-y":"scroll","margin-right":"var(--space-3xs)"}),n.find("ul.megamenu:not(.cmp-right-menu)").find("li:last").css({"margin-bottom":"0"})):(n.find("ul.megamenu:not(.cmp-right-menu)").removeClass("cmp-custom-height"),n.find("ul.megamenu:not(.cmp-right-menu)").css({"max-height":"unset",height:"auto","overflow-y":"unset","margin-right":"0"}))}o()(".cmp-container-nav-background").hide(),n.find(".hamburger-container__open").removeClass("hamburger-container__open_hide"),n.find(".hamburger-container__close").removeClass("hamburger-container__close_show"),console.log("hi"),n.find(".hamburger-container__open").addClass("hamburger-container__open-active"),n.find("ul.megamenu .submenu-wrapper").removeClass("hidden"),o()("html, body").css({overflow:"hidden",height:"auto"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px")}})),o()(document).on("keydown",".cmp-nav-2-0-mega-menu .hamburger-container__open.hamburger-container__open-active",(function(e){e.shiftKey||9!==e.keyCode||"Tab"!==e.key||(e.preventDefault(),o()(this).closest(".primary-nav-wrapper").find(".primary-nav__megamenu > .cmp-nav.navigation > ul.megamenu:visible>li:first-child a").focus())})),o()(document).ready((function(){o()(document).on("click",".submega-level-back",(function(e){o()(".sub-megamenu").removeClass("show--sub-megamenu"),o()(".hamburger-container-back").removeClass("submega-level-back")}))}));var b=o()(".primary-nav-wrapper");function _(){return(e=o()(window).width())<=767.98||b.hasClass("overflowState")}function w(e,t){if(b.hasClass("overflowState")){var n=o()(t.currentTarget).closest(".cmp-nav-2-0-mega-menu"),r=n.offset().top+n.height()+1;e.css({top:r,height:"calc(100vh - ".concat(r,"px)")})}}o()(document).on("click",'.megamenu [class^="sublink"], .cmp-right-sub-menu-icon',(function(e){var t=o()(this);o()(this).hasClass("cmp-right-sub-menu-icon")&&(t=o()(this).closest("li"));var n,r=t.find(".cmp-right-arrow"),i=r.length>0?r.closest("li"):t.closest("li"),a=t.closest(".cmp-nav-2-0-mega-menu").height(),s=o()(window).height()-a;n=o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").length>0?o()(".sticky-isi:not(.hide-sticky) .cmp-isi--container").outerHeight():0;var c=document.documentElement.scrollTop;if(o()("header").hasClass("menu-hide"))c=0;else if(o()(".cmp-sticky-header.cmp-header--fixed").length>0)c=0,a=0,t.closest(".cmp-above-brand-nav-2-0").length>0?(c=0,a+=o()(".cmp-above-brand-nav-2-0").height()):t.closest(".cmp-primary-navigation-nav-2-0").length>0&&(o()(".cmp-above-brand-nav-2-0").length>0&&(a+=o()(".cmp-above-brand-nav-2-0").height()),o()(".cmp-indication-bar-nav-2-0").length>0&&(a+=o()(".cmp-indication-bar-nav-2-0").height()),a+=o()(".cmp-above-brand-nav-2-0").height());else{var d=t.closest(".cmp-nav-2-0-mega-menu").offset().top;a=(d-=o()(window).scrollTop())+t.closest(".cmp-nav-2-0-mega-menu").height()}if(_()){var u=i.children(".submenu-wrapper, .cmp-inner-sub-megamenu-parent-container, .cmp-forth-megamenu-parent-container, .cmp-fifth-megamenu-parent-container").first();if(u.hasClass("submenu-wrapper")&&(l.removeClass("hidden"),u=u.find(".sub-megamenu"),o()(".megamenu-inner-sub-menu, .forth-level-nav, .fifth-level-nav").addClass("hidden"),o()(".cmp-inner-sub-megamenu-parent-container, .cmp-forth-megamenu-parent-container, .cmp-fifth-megamenu-parent-container").addClass("hidden")),u.hasClass("sub-megamenu"))_()||w(u,e),u.addClass("show--sub-megamenu").removeClass("hidden"),o()(".hamburger-container-back").addClass("submega-level-back"),i.closest("ul.megamenu").find(".submenu-wrapper").removeClass("hidden"),o()(".megamenu-inner-sub-menu, .forth-level-nav, .fifth-level-nav").addClass("hidden"),o()(".cmp-inner-sub-megamenu-parent-container, .cmp-forth-megamenu-parent-container, .cmp-fifth-megamenu-parent-container").addClass("hidden"),t.find(".sub-megamenu").outerHeight(!0)&&(t.find(".sub-megamenu").css({height:""}),t.find(".sub-megamenu").outerHeight(!0)>=s?(t.find(".sub-megamenu").css("overflow-y","auto"),t.find(".sub-megamenu").css({height:o()(window).height()-a-n+c})):t.find(".sub-megamenu").css({height:""}));
876else if(u.children().hasClass("megamenu-inner-sub-menu")){if(_()||w(u.children(),e),u.children().addClass("show-inner__sub--menu").removeClass("hidden"),u.removeClass("hidden"),o()(".forth-level-nav, .fifth-level-nav").addClass("hidden"),o()(".cmp-forth-megamenu-parent-container, .cmp-fifth-megamenu-parent-container").addClass("hidden"),o()(".hamburger-container-back").removeClass("submega-level-back").addClass("megainner-level-back"),t.find(".megamenu-inner-sub-menu").outerHeight(!0)){t.find(".megamenu-inner-sub-menu").css({height:""}),t.find(".megamenu-inner-sub-menu").outerHeight(!0)>=s?(t.find(".megamenu-inner-sub-menu").css({height:o()(window).height()-a-n+c}),t.find(".megamenu-inner-sub-menu").css("overflow-y","auto")):t.find(".megamenu-inner-sub-menu").css({height:""});var h=window.innerWidth;t.closest(".primary-nav-wrapper").hasClass("overflowState")&&h>=768&&(t.find(".megamenu-inner-sub-menu").css("top",a+"px"),t.find(".cmp-inner-sub-megamenu-parent-container").css("top",a+"px"))}}else if(u.children().hasClass("forth-level-nav")){if(_()||w(u.children(),e),u.children().addClass("show--forth-level-nav").removeClass("hidden"),u.removeClass("hidden"),o()(".cmp-fifth-megamenu-parent-container").addClass("hidden"),o()(".fifth-level-nav").addClass("hidden"),o()(".hamburger-container-back").removeClass("megainner-level-back").addClass("megaforth-level-back"),o()(".fifth-nav--icon .material-symbols-rounded").removeClass("cmp-right__sub-menu-icon"),t.find(".forth-level-nav").outerHeight(!0)){t.find(".forth-level-nav").css({height:""}),t.find(".forth-level-nav").outerHeight(!0)>=s?(t.find(".forth-level-nav").css({height:o()(window).height()-a-n+c}),t.find(".forth-level-nav").css("overflow-y","auto")):t.find(".forth-level-nav").css({height:""});var p=window.innerWidth;t.closest(".primary-nav-wrapper").hasClass("overflowState")&&p>=768&&(t.find(".forth-level-nav").css("top",a+"px"),t.find(".cmp-forth-megamenu-parent-container").css("top",a+"px"))}}else if(u.children().hasClass("fifth-level-nav")&&(_()||w(u.children(),e),u.children().addClass("show--fifth-level-nav").removeClass("hidden"),u.removeClass("hidden"),o()(".hamburger-container-back").removeClass("megaforth-level-back megainner-level-back").addClass("megafifth-level-back"),i.removeClass("cmp-right__sub-menu-icon"),t.find(".fifth-level-nav").outerHeight(!0))){t.css({height:""}),t.find(".fifth-level-nav").outerHeight(!0)>=s?(t.find(".fifth-level-nav").css({height:o()(window).height()-a-n+c}),t.find(".fifth-level-nav").css("overflow-y","auto")):t.find(".fifth-level-nav").css({height:""});var f=window.innerWidth;t.closest(".primary-nav-wrapper").hasClass("overflowState")&&f>=768&&(t.find(".fifth-level-nav").css("top",a+"px"),t.find(".cmp-fifth-megamenu-parent-container").css("top",a+"px"))}o()(e.currentTarget).closest(".cmp-nav-2-0-compact-menu").length<1&&(o()("html, body").css({overflow:"hidden"}),o()("html").css({"scrollbar-gutter":"stable"}),o()("html").addClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight=window.innerWidth-document.documentElement.clientWidth+"px")),e.stopPropagation()}else e.stopPropagation()})),o()(document).ready((function(){o()(document).on("click",".megainner-level-back",(function(e){o()(".megamenu-inner-sub-menu").removeClass("show-inner__sub--menu").addClass("hidden"),o()(".hamburger-container-back").removeClass("megainner-level-back"),o()(".hamburger-container-back").addClass("submega-level-back"),e.stopPropagation()})),o()(document).on("click",".megaforth-level-back",(function(e){o()(".hamburger-container-back").addClass("megainner-level-back"),o()(".hamburger-container-back").removeClass("submega-level-back"),o()(".forth-level-nav").removeClass("show--forth-level-nav").addClass("hidden"),o()(".hamburger-container-back").removeClass("megaforth-level-back"),e.stopPropagation()})),o()(document).on("click",".megafifth-level-back",(function(e){o()(".hamburger-container-back").removeClass("megafifth-level-back"),o()(".fifth-level-nav").removeClass("show--fifth-level-nav").addClass("hidden"),o()(".hamburger-container-back").removeClass("megainner-level-back"),o()(".hamburger-container-back").addClass("megaforth-level-back"),e.stopPropagation()})),o()(".hamburger-container-back .global-link a, .hamburger-container-close .global-link a").on("click",(function(e){e.preventDefault()}))})),o()("ul.megamenu").find(".megamenu-toggle").on("click",(function(e){(!r()||r()&&i()&&("mouse"===e.pointerType&&!window.matchMedia("(pointer:fine)").matches||"touch"===e.pointerType)||r()&&o()(".cmp-primary-navigation-nav-2-0 .primary-nav-wrapper.cmp-accessibility-v1").hasClass("overflowState"))&&e.preventDefault()}
876)),o()("ul.megamenu").find(".sub-menu-toggle").on("click",(function(e){e.preventDefault()})),o()("ul.megamenu").find(".sub-innermenu-toggle").on("click",(function(e){e.preventDefault()})),o()("ul.megamenu").find(".sub-lastmenu-toggle").on("click",(function(e){e.preventDefault()}))})),o()(".cmp-nav-2-0-mega-menu .hamburger-container-close, .cmp-nav-2-0-mega-menu .hamburger-container__open").on("click",(function(e){if(o()(e.currentTarget).hasClass("hamburger-container-close")||o()(e.currentTarget).hasClass("hamburger-container__open")&&o()(e.currentTarget).hasClass("hamburger-container__open-active")){var t=o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu"),n=window.innerWidth;return(o()(e.currentTarget).closest(".overflowState").length>0||o()(e.currentTarget).closest(".cmp-primary-navigation-nav-2-0").length>0&&n<1024.1)&&t.find(".primary-nav__megamenu").css("display","none"),o()(".cmp-sticky-header-indication-bar-min").removeClass("cmp-sticky-header-indication-bar-min"),t.find(".cmp-container-nav-background").show(),t.find(".primary-nav__rightnav").removeClass("show--hamburger-back"),o()(".hamburger-container-back").removeClass("submega-level-back"),t.find(".hamburger-container-back").removeClass("megafifth-level-back"),t.find(".hamburger-container-back").removeClass("megainner-level-back"),t.find(".hamburger-container-back").removeClass("megaforth-level-back"),t.find(".hamburger-container__open").removeClass("hamburger-container__open-active"),t.find(".sub-megamenu").removeClass("show--sub-megamenu"),t.find(".megamenu-inner-sub-menu").removeClass("show-inner__sub--menu"),t.find(".forth-level-nav").removeClass("show--forth-level-nav"),o()("html").css({overflow:"auto"}),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px"),o()("footer .cmp-experiencefragment").css("display","block"),void e.stopImmediatePropagation()}}));window.visualViewport&&window.visualViewport.addEventListener("resize",(function(){!function(){if(window.visualViewport&&o()(window).width()<=767.98){var e=window.visualViewport.height;o()(".cmp-nav-2-0-mega-menu .primary-nav-wrapper > .primary-nav .primary-nav__megamenu").css("max-height","".concat(e,"px"))}}()})),o()(document).ready((function(){o()(".global-nav.cmp-top-nav.cmp-above-brand-nav-2-0 .logo-images .cmp-ab-logo-img-normal").length>0&&o()(".global-nav.cmp-top-nav.cmp-above-brand-nav-2-0 .logo-images .cmp-image").off("click").on("click",(function(e){"_blank"===o()(e.target).find("a").attr("target")?window.open(o()(e.target).find("a").attr("href"),"_blank"):window.location.href=o()(e.target).find("a").attr("href")}))})),o()(".cmp-nav-2-0-mega-menu .hamburger-container-close, .cmp-nav-2-0-mega-menu .hamburger-container__open").on("keydown",(function(e){if("Enter"===e.key&&(o()(e.currentTarget).hasClass("hamburger-container-close")||o()(e.currentTarget).hasClass("hamburger-container__open")&&o()(e.currentTarget).hasClass("hamburger-container__open-active"))){var t=o()(e.currentTarget).closest(".cmp-nav-2-0-mega-menu"),n=window.innerWidth;return(o()(e.currentTarget).closest(".overflowState").length>0||o()(e.currentTarget).closest(".cmp-primary-navigation-nav-2-0").length>0&&n<1024.1)&&t.find(".primary-nav__megamenu").css("display","none"),o()(".cmp-sticky-header-indication-bar-min").removeClass("cmp-sticky-header-indication-bar-min"),t.find(".cmp-container-nav-background").show(),t.find(".primary-nav__rightnav").removeClass("show--hamburger-back"),o()(".hamburger-container-back").removeClass("submega-level-back"),t.find(".hamburger-container-back").removeClass("megafifth-level-back"),t.find(".hamburger-container-back").removeClass("megainner-level-back"),t.find(".hamburger-container-back").removeClass("megaforth-level-back"),t.find(".hamburger-container__open").removeClass("hamburger-container__open-active"),t.find(".sub-megamenu").removeClass("show--sub-megamenu"),t.find(".megamenu-inner-sub-menu").removeClass("show-inner__sub--menu"),t.find(".forth-level-nav").removeClass("show--forth-level-nav"),o()("html").css({overflow:"auto"}),o()("html, body").css({overflow:"auto",height:"auto"}),o()("html").css({"scrollbar-gutter":"unset"}),o()("html").removeClass("cmp-scroll-bkg-color"),CSS.supports("scrollbar-gutter: stable")||(document.body.style.paddingRight="0px"),o()("footer .cmp-experiencefragment").css("display","block"),void e.stopImmediatePropagation()}}))},pi=function(){document.addEventListener("DOMContentLoaded",(function(){o()(".cmp-nav-2-0-mega-menu").length>0&&hi()}))},fi=function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".selected-styles .cmp-container--chip").forEach((function(e){e.addEventListener("click",(function(){e.classList.toggle("chip--selected")}))})),document.querySelectorAll(".cmp-container--chip .material-symbols-rounded").forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault();var n=e.closest(".chip");"close"==e.innerText&&n&&n.remove()})),e.addEventListener("keydown",(function(t){if("Enter"===t.key){t.preventDefault();var n=e.closest(".chip");"close"==e.innerText&&n&&n.remove()}}))})),document.querySelectorAll(".cmp-container--chip.cmp-chip--non-selectable a").forEach((function(e){return e.setAttribute("tabindex","-1")}))}))},mi=function(){document.addEventListener("DOMContentLoaded",(function(){o()(document).ready((function(){var e=o()(".cmp-anchorlink-alphabets ul"),t=!1;if(e){var n=e.find("li:not(.disabled-link)");n.on("click",(function(){n.hasClass("clicked-alphabet")&&n.removeClass("clicked-alphabet");var e=o()(this);e.hasClass("disabled-link")||e.addClass("clicked-alphabet")}));var r=function(){var t=e.find("li.clicked-alphabet"),n=e,r=n.scrollLeft(),i=n.parent().hasClass("gradient-overlay-after")&&3*parseFloat(n.parent().css("padding-right").replace("px",""))||0,o=n.parent().hasClass("gradient-overlay-before")&&3*parseFloat(n.parent().css("padding-left").replace("px",""))||0,a=n.width()-i-o,s=t.offset().left-n.offset().left-o;s<=0?n.scrollLeft(r+s):s+t.outerWidth(!0)>a&&n.scrollLeft(r+(s+t.outerWidth(!0)-a))};e.find("li a").on("click",(function(e){e.preventDefault();var n=o()(this);if(!o()(this).closest("li").hasClass("disabled-link")){var i=0;if(n.attr("href")&&n.attr("href").startsWith("#")&&o()(n.attr("href")).closest(".accordion").length){var a=o()(n.attr("href")).closest(".accordion");i=a.offset().top-(parseFloat(a.css("margin-top").replace("px",""))||0);var s=a.find(".cmp-accordion__item");1!==s.length||s.find("button.cmp-accordion__button").hasClass("cmp-accordion__button--expanded")||s.find("button.cmp-accordion__button")[0].click()}else n.attr("href")&&n.attr("href").startsWith("#")&&o()(n.attr("href")).length&&(i=o()(n.attr("href")).offset().top-(parseFloat(o()(n.attr("href")).css("margin-top").replace("px",""))||0));t=!0,i&&(o()(window).scrollTop()<150&&window.scrollTo(0,150),setTimeout((function(){var e=o()(".menu-hide .cmp-indication-bar-sticky"),a=0;"fixed"===e.css("position")&&(a=e.outerHeight(!0)||0);var s=o()(".menu-hide .cmp-primary-nav").outerHeight(!0)||0,l=o()(".cmp-alphaanchor-sticky .cmp-anchorlink-alphabets").outerHeight(!0)||0;o()(".cmp-alphaanchor-sticky .cmp-anchorlink-alphabets").hasClass("alphaAnc
876hor-sticky")||(l+=2*parseFloat(n.css("padding-top").replace("px","")));var c=i-(l+s+a);window.scrollTo(0,c),o()(".cmp-sticky-header--fixed").length>0&&setTimeout((function(){var e=o()(".cmp-sticky-header--fixed.cmp-header--fixed").outerHeight(!0)||0;c-=e,window.scrollTo(0,c)}),100);var d=setInterval((function(){(Math.abs(o()(window).scrollTop()-c)<=10||parseInt(o()(window).scrollTop(),10)+parseInt(o()(window).height(),10)>=parseInt(o()(document).height(),10))&&(clearInterval(d),d=0,setTimeout((function(){t=!1,r()}),100))}),200);setTimeout((function(){d&&(clearInterval(d),d=0,t=!1,r())}),6e3)}),200))}}));var i=function(){var e=o()(".cmp-anchorlink-alphabets__content ul.alphabet-menu").width(),t=o()(".cmp-anchorlink-alphabets__content");if(t.length>0&&t.find("ul.alphabet-menu").length>0){var n=o()(".cmp-anchorlink-alphabets__content ul.alphabet-menu li").toArray().reduce((function(e,t){return e+o()(t).outerWidth(!0)}),0);o()(".cmp-anchorlink-alphabets__content ul.alphabet-menu li a").length>0&&n>e?(t.addClass("gradient-overlay-after"),t.find("ul.alphabet-menu").on("scroll",(function(){var e=t.find("ul.alphabet-menu").scrollLeft(),n=t.find("ul.alphabet-menu")[0].scrollWidth,r=t.find("ul.alphabet-menu").innerWidth();0===e?t.removeClass("gradient-overlay-before"):t.addClass("gradient-overlay-before gradient-overlay-after"),e+r>=n-2&&t.removeClass("gradient-overlay-after").addClass("gradient-overlay-before")}))):t.removeClass("gradient-overlay-after gradient-overlay-before")}else t.removeClass("gradient-overlay-after gradient-overlay-before")};i(),o()(window).on("resize",(function(){i()}));var a=function(e,t){e.css({top:"".concat(t,"px")})},s=function(e,t){e.css({height:"".concat(t,"px")})},l=function(){var e=o()(".anchor-links-alphabet");if(e.hasClass("cmp-alphaanchor-sticky")){var n=o()(".cmp-anchorlink-alphabets"),i=n[0].getBoundingClientRect().height;o()(window).scroll((function(l){var c=l.currentTarget.scrollY,d=o()(".cmp-anchorlink-alphabets ul.alphabet-menu li:not(.disabled-link):last a").attr("href"),u=o()(d).length?o()(d):"",h=u?u.offset().top+u.outerHeight(!0):0,p=o()(".menu-hide .cmp-indication-bar-sticky"),f=0;"fixed"===p.css("position")&&(f=p.outerHeight(!0)||0);var m=o()(".menu-hide .cmp-primary-nav").outerHeight(!0)||0,g=o()(".cmp-sticky-header--fixed.cmp-header--fixed").outerHeight(!0)||0,v=e.find(".alphabet-menu li a"),y=e.offset().top-parseFloat(v.css("padding-top").replace("px",""));c+m+f+g>=h?(n.removeClass("alphaAnchor-sticky"),n.removeClass("alphaAnchorborderStyle"),s(e,i),a(n,0)):o()(window).scrollTop()+m+f+g>=y?(n.addClass("alphaAnchor-sticky"),s(e,i),e.hasClass("cmp-anchoralpha-border")&&n.addClass("alphaAnchorborderStyle"),o()(".cmp-sticky-header--fixed.cmp-header--fixed").length>0?a(n,g):o()(".cmp-sticky-header").length>0||o()(".cmp-primary-navigation-nav-2-0-non-sticky").length>0?a(n,0):a(n,m+f)):(n.removeClass("alphaAnchor-sticky"),n.removeClass("alphaAnchorborderStyle"),s(e,i),a(n,0)),t||o()(".cmp-anchorlink-alphabets ul.alphabet-menu a").each((function(){var e=o()(this.hash);e=e.length?e:"";var t=o()("ul.alphabet-menu li.clicked-alphabet"),n=o()(".cmp-anchorlink-alphabets.alphaAnchor-sticky");if(e&&n.length){var i=n.position().top+n.outerHeight(!0),a=e.closest(".accordion"),s=-1*i,l=0;a.length?(s+=a.offset().top-(parseFloat(a.css("margin-top").replace("px",""))||0),l=n.outerHeight(!0)+(parseFloat(a.css("margin-top").replace("px",""))||0)):(s+=e.offset().top,l=n.outerHeight(!0)),c>=s&&c<s+e.outerHeight(!0)+l&&(t.removeClass("clicked-alphabet"),o()(this).closest("li").addClass("clicked-alphabet"),r())}else o()(".cmp-anchorlink-alphabets").hasClass("alphaAnchor-sticky")||t.removeClass("clicked-alphabet")}))}))}};l(),o()(window).on("resize",(function(){l()}))}}))}))},gi=function(){o()(window).on("load resize",(function(){}));o()(window).on("load resize",(function(){document.querySelectorAll(".hero3.cmp-banner-responsive").forEach((function(e,t){var n;(n=o()(e)).find(".teasercontentblock").css("position","relative"),setTimeout((function(){var e;window.innerWidth,e=n.find(".teasercontentblock").outerHeight(!0),n.find(".cmp-hero-mediablock img").length>0&&(window.innerWidth>
8761024?n.find(".cmp-hero-mediablock img").css("height",Math.ceil(e)):n.find(".cmp-hero-mediablock img").css("height",e)),n.find(".teasercontentblock").css("position","absolute")}),1e3)}))})),o()(document).ready((function(){}))},vi=function(){document.addEventListener("DOMContentLoaded",(function(){gi()}))},yi=function(){document.addEventListener("DOMContentLoaded",(function(){o()(".cmp-switch-left-label .switch input, .cmp-switch-right-label .switch input").on("click",(function(){var e=o()(this);setTimeout((function(){var t=e.closest(".switch");e.is(":checked")?(t.find(".cmp-toggle-label--right").show(),t.find(".cmp-toggle-label--left").hide()):(t.find(".cmp-toggle-label--right").hide(),t.find(".cmp-toggle-label--left").show())}),0)})),o()(".cmp-switch-left-label .switch input, .cmp-switch-right-label .switch input").each((function(){o()(this).trigger("click")}))}))};function bi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wi=function(){document.querySelectorAll(".cmp-calendar-appointment").forEach((function(e){var t=e.querySelector(".cmp-calendar-step1"),n=e.querySelector(".cmp-calendar-step2"),r=e.querySelector(".cmp-calendar-step3"),i=t.querySelector("#datepicker"),a=t.querySelector(".dropdown-input"),s=t.querySelector("#calendar-step1--cta a"),l=e.querySelector(".cmp-calendar-notification-time"),c=l.getAttribute("reminderlabel"),d=l.getAttribute("treatmenttitle"),u=l.getAttribute("treatmentdescription"),h=r.querySelector(".global-link a"),p=null==s?void 0:s.closest(".cmp-disabled-primary"),f=document.querySelector(".cmp-simple-loader"),m=e.querySelector(".singleselect-dropdownList"),g=m.querySelectorAll(".dropdown-singleselectlist li"),v=m.querySelector(".dropdown-input"),y=n.querySelector(".cmp-calendar-step2--cta").querySelectorAll("a"),b=y[0],_=y[1],w=r.querySelectorAll(".button-graphic a");!function(){if(g.length){g.forEach((function(e){e.classList.remove("cmp-single-selected")}));var e=g[0];e.classList.add("cmp-single-selected");var t=e.querySelector(".text").textContent;v.dataset.selectedValues=t}}();var x=null;function C(e){return e.toISOString().replace(/[-:]/g,"").split(".")[0]+"Z"}function S(e){var t=[];return e.querySelectorAll(".checkin-number").forEach((function(e){t.push(parseInt(e.textContent.trim()))})),t}document.querySelectorAll("#googleLink, #appleLink, #outlookLink, #yahooLink").forEach((function(e){var t=e.querySelector(".cmp-global-link-primary-secondary ul li:first-child a");e.querySelector(".cmp-global-link-primary-secondary ul li:last-child a");t.addEventListener("click",(function(e){if(e.preventDefault(),x){var t=document.createElement("a");t.href=x,t.download="reminder.ics",document.body.appendChild(t),t.click(),t.remove(),"#"!==o()(e.target).attr("href")&&"#"!==o()(e.target).parent().attr("href")&&setTimeout((function(){var t=o()(e.target).attr("href");t||(t=o()(e.target).parent().attr("href")),window.open(t,"_blank")}),2e3)}o()(".modal").css("display","none"),o()("html,body").css({"overflow-y":"auto",height:"auto"}),o()("body").removeClass("cmp-modal-shown")}))})),o()(i).on("changeDate",(function(){p&&p.classList.contains("cmp-disabled-primary")&&""!==i.value.trim()&&p.classList.remove("cmp-disabled-primary")})),s.addEventListener("click",(function(){var e=o()("#datepicker").datepicker("getUTCDates"),r=null==a?void 0:a.value;if(e&&r){t.classList.add("content-hidden"),f.classList.remove("cmp-loader-hide"),setTimeout((function(){f.classList.add("cmp-loader-hide"),t.classList.add("hide"),n.classList.remove("hide")}),1e3);var i=S(n),s=new Date(e);n.querySelectorAll("li").forEach((function(e,t){var n,a=30*i[t],l=new Date(s);l.setDate(l.getDate()+a);var c=String(l.getDate()).padStart(2,"0"),d=String(l.getMonth()+1).padStart(2,"0"),u=l.getFullYear();n=o()("#datepicker").hasClass("Changein-Dateformat")?"".concat(c,"/").concat(d,"/").concat(u):"".concat(d,"/").concat(c,"/").concat(u);var h=e.querySelector(".checkin-date"),p=e.querySelector(".checkin-time");h&&p&&(h.textContent=n,p.textContent=r)}))}})),_&&_.addEventListener("click",(function(){n.classList.add("hide"),t.classList.remove("hide","content-hidden")})),b&&b.addEventListener("click",(function(){n.classList.add("hide"),r.classList.remove("hide")}
876)),w.forEach((function(e){e.addEventListener("click",(function(t){var r=o()(a.closest(".singleselect-dropdown")).find("li.cmp-single-selected span.text").attr("value"),i=S(n),s=l.value,h=o()("#datepicker").datepicker("getUTCDates"),p=function(e,t,n,r,i,o,a){var s=bi(r.split(":").map(Number),2),l=s[0],c=s[1],d=new Date(n);d.setHours(l,c,0,0);var u="BEGIN:VCALENDAR\nVERSION:2.0\nCALSCALE:GREGORIAN\nMETHOD:PUBLISH\nPRODID:-//Astellas Reminder//EN\n";return i.forEach((function(n){var r=new Date(d);r.setDate(r.getDate()+30*n);var i=new Date(r.getTime()+18e5),s="".concat(r.getTime(),"-").concat(n,"@calendar");u+="BEGIN:VEVENT\nUID:".concat(s,"\nDTSTAMP:").concat(C(new Date),"\nDTSTART:").concat(C(r),"\nDTEND:").concat(C(i),"\nSUMMARY:").concat(e,"\nDESCRIPTION:").concat(t,"\nBEGIN:VALARM\nTRIGGER:").concat(o,"\nACTION:DISPLAY\nDESCRIPTION:").concat(a,"\nEND:VALARM\nEND:VEVENT\n")})),u+="END:VCALENDAR"}(d,u,h,r,i,s,c),f=new Blob([p],{type:"text/calendar"});x=URL.createObjectURL(f);var m=e.getAttribute("data-modal-id");document.querySelector("#".concat(m))}))})),h&&h.addEventListener("click",(function(e){e.preventDefault(),r.classList.add("hide"),n.classList.remove("hide")}))}))},xi=function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelector(".cmp-calendar-appointment")&&(wi(),document.querySelector(".cmp-columncontainer .cmp-simple-loader").classList.add("cmp-loader-hide"))}))};function Ci(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Si(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Si(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Si(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}o.a.noConflict();var Ei=function(){o()(".cmp-podcast").each((function(){var e=this,t=o()(this),n=Ci(t.find("audio"),1)[0],r=0,i=t.find(".cmp-podcast__playlist-item"),a=Array.from(i),s=Ci(t.find("#seek"),1)[0],l=Ci(t.find("#volume"),1)[0],c=0,d=a.map((function(e){return{src:e.dataset.src,poster:e.dataset.poster}})),u=function(e,t,n){window.adobeDataLayer.push({event:e,attributes:{audioName:t||null,audioMilestone:n||null}})};o()(n).on("play",(function(){t.find(".cmp-podcast__button--play a .material-symbols-rounded").text("pause")})),o()(n).on("pause",(function(){t.find(".cmp-podcast__button--play a .material-symbols-rounded").text("play_arrow")})),t.find(".cmp-podcast__button--play a").on("click",(function(e){e.preventDefault(),n.paused?(n.play(),u("audioStart",o()(n.parentElement).find(".cmp-podcast__title").html(),"Audio Start")):(n.pause(),u("audioPaused",o()(n.parentElement).find(".cmp-podcast__title").html(),"Audio Paused"))})),t.find(".cmp-podcast__button--backward").on("click",(function(e){e.preventDefault(),n.currentTime=Math.max(n.currentTime-10,0)})),t.find(".cmp-podcast__button--forward").on("click",(function(e){e.preventDefault(),n.currentTime=Math.min(n.currentTime+10,n.duration)})),t.find(".cmp-podcast__volume a").on("click",(function(e){e.preventDefault(),n.muted=!n.muted,e.currentTarget.querySelector(".material-symbols-rounded").innerHTML=n.muted?"volume_off":"volume_up"})),t.find(".cmp-podcast__speed .dropdown__toggle").on("click",(function(e){e.preventDefault(),e.currentTarget.nextElementSibling.classList.toggle("show")})),t.find(".cmp-podcast__speed .dropdown__menu a").on("click",(function(e){e.preventDefault();var r=parseFloat(e.currentTarget.getAttribute("value")),i=e.currentTarget.dataset.icon;
876n.playbackRate=r,t.find(".cmp-podcast__speed .dropdown__toggle .material-symbols-rounded").text(i),e.currentTarget.parentElement.classList.remove("show")})),null==s||s.addEventListener("input",(function(){n.currentTime=s.value/100*n.duration})),null==l||l.addEventListener("input",(function(){n.volume=l.value}));var h=function(e){var t=Math.floor(e/3600),n=Math.floor(e/60).toString().padStart(2,"0"),r=Math.floor(e%60).toString().padStart(2,"0");return"".concat(t,":").concat(n,":").concat(r)};o()(n).on("timeupdate loadedmetadata",(function(){if(!isNaN(n.duration)){t.find("#current-time").text(h(n.currentTime)),t.find("#duration").text(h(n.duration));var e=n.currentTime/n.duration*100;t.find("#seek").val(e),0===c&&parseFloat(e.toFixed(2))>24?(c+=1,u("audioMilestone25",o()(n.parentElement).find(".cmp-podcast__title").html(),"25% milestone")):1===c&&parseFloat(e.toFixed(2))>49?(c+=1,u("audioMilestone50",o()(n.parentElement).find(".cmp-podcast__title").html(),"50% milestone")):2===c&&parseFloat(e.toFixed(2))>74?(c+=1,u("audioMilestone75",o()(n.parentElement).find(".cmp-podcast__title").html(),"75% milestone")):3===c&&parseFloat(e.toFixed(2))>99&&(c+=1,u("audioComplete",o()(n.parentElement).find(".cmp-podcast__title").html(),"Audio Complete"))}}));var p=function(e){r=e;var i=d[e];n.src=i.src,i.poster&&t.find(".cmp-podcast__poster img").attr("src",i.poster),function(e){t.find(".cmp-podcast__playlist-content .cmp-podcast__episode-title").show(0),t.find(".cmp-podcast__playlist-content .active").hide(0),a.forEach((function(t,n){t.classList.toggle("active-track",n===e)}));var n=t.find(".active-track");t.find(".cmp-podcast__description-content h4").html(n.find(".cmp-podcast__episode-title").text()),t.find(".cmp-podcast__description-content .cmp-podcast__date").html(n.data("date")),t.find(".cmp-podcast__description-content .cmp-podcast__text").html(n.data("desc")),setTimeout((function(){n.find(".cmp-podcast__playlist-content .active").show(0),n.find(".cmp-podcast__playlist-title .cmp-podcast__episode-title").hide(0)}),0)}(e)};a.forEach((function(e,t){e.addEventListener("click",(function(r){r.preventDefault(),o()(r.target).hasClass("material-symbols-rounded")||(c=0,u("audioStart",o()(e).find(".cmp-podcast__episode-title").html(),"Audio Start"),p(t),document.addEventListener("click",(function e(){n.play().catch((function(e){return console.warn("Play failed:",e)})),document.removeEventListener("click",e)})))}))})),a.forEach((function(t){var n=t.querySelector(".cmp-global-link-tertiary a");if(n){var r=n.getAttribute("href");t.children[0].setAttribute("src",t.dataset.src),t.children[0].onloadedmetadata=function(){return function(e){isNaN(e.duration)||o()(e).closest(".cmp-podcast__playlist-item").find(".cmp-podcast__playlist-duration").text(h(e.duration))}(t.children[0])},o()(n).off("click").on("click",(function(t){t.preventDefault(),function(t,n){var r=document.createElement("a");r.href=t,r.download="",r.target="_blank",document.body.appendChild(r),r.click(),r.remove();var i=o()(n).parents(".cmp-podcast__playlist-content").find(".cmp-podcast__episode-title").html(),a=o()(e).closest('[data-section="resource-podcast"]').attr("id");void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&window.adobeDataLayer.push({event:"cmp:click",attributes:{"@type":"astellaspro/components/podcast/download/link","dc:title":i,parentId:a,"xdm:linkTarget":"_self","xdm:linkType":"internal","xdm:linkURL":t}})}(r,t.target)}))}})),p(r)})),o()(".cmp-downloadall .cmp-download-btn a").length>0&&o()(".cmp-downloadall .cmp-download-btn a").on("click",(function(e){e.preventDefault();var t=o()(e.currentTarget).data("cmpFolderpath"),n=o()(e.currentTarget).data("cmpFileName"),r="/bin/global/zipped-file?path=".concat(encodeURIComponent(t),"&filename=").concat(encodeURIComponent(n));window.location=r}))},ki=function(){document.addEventListener("DOMContentLoaded",(function(){o()(".cmp-podcast").length&&Ei()}))},Ti=function(e){var t=e.get(0);t.dataset.footerOffsetTracked||(!function(e){var t=document.querySelector("footer");if(t){var n=0,r=function(){n=0;var r=Math.max(0,window.innerHeight-t.getBoundingClientRect().top);e.style.setProperty("--toaster-footer-offset","".concat(r,"px"))},i=function(){n=n||window.requestAnimationFrame(r)};window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i,{passive:!0}),r()}}(t),t.dataset.footerOffsetTracked="true"),requestAnimationFrame((function(){e.removeClass("toaster-content--hidden").addClass("toaster-content--visible")}))},Oi=function(){o()(".cmp-toaster--section .toaster-content").each((function(e,t){return Ti(o()(t))})),o()(document).on("click",".close-toaster",(function(){var e;(e=o()(this).closest(".toaster-content")).removeClass("toaster-content--visible").addClass("toaster-content--hidden"),setTimeout((function(){return e.hide()}),300)}))},$i=function(){document.addEventListener("DOMContentLoaded",(function(){o()(".cmp-toaster--section").length&&Oi()}))},Pi="data-select-prompt",Ii="data-value",Li="data-active-class",Ai="data-dragging-class",Mi="data-has-value-class",ji={COMPONENT_ROOT:"[".concat("data-cmp-is",'="').concat("likert-scale",'"]'),DOT_WITH_VALUE:".dot[data-value]",DOT_BUTTON:".dot",LABEL_SPAN:"[data-value]"},Ri={ArrowRight:1,ArrowUp:1,ArrowLeft:-1,ArrowDown:-1},Di=function(e,t,n){return Math.min(n,Math.max(t,e))};function Fi(e){if("true"!==e.dataset.likertInitialised){e.dataset.likertInitialised="true";var t=e.querySelector(".track"),n=e.querySelector(".thumb"),r=e.querySelector(".dots"),i=e.querySelector('.arrow[aria-label="Previous"]')||e.querySelectorAll(".arrow")[0],o=e.querySelector('.arrow[aria-label="Next"]')||e.querySelectorAll(".arrow")[1],a=e.querySelector(".select-box"),s=e.querySelector(".labels"),l=r.querySelectorAll(ji.DOT_BUTTON),c=s.querySelectorAll(ji.LABEL_SPAN),d=l.length,u=Math.ceil(d/2),h=e.getAttribute(Pi),p=e.getAttribute(Li)||"active",f=e.getAttribute(Ai)||"dragging",m=e.getAttribute(Mi)||"has-value";e.style.setProperty("--scale-size",d),n.setAttribute("aria-valuemax",d);var g=null,v=!1,y=function(e){return s.querySelector("[".concat(Ii,'="').concat(e,'"]')).textContent.trim()};
876c.forEach((function(e){var t=Number(e.getAttribute(Ii));e.style.setProperty("--ls-ratio",(t-1)/(d-1))})),l.forEach((function(e){return e.setAttribute("tabindex","-1")}));var b=function(){var e=t.getBoundingClientRect(),r=n.offsetWidth;return{trackRect:e,thumbWidth:r,maxThumbOffset:Math.max(0,e.width-r)}},_=function(e){var t=b(),n=t.trackRect,r=t.thumbWidth,i=t.maxThumbOffset;return Di(e-n.left-r/2,0,i)},w=function(e){var t=b().maxThumbOffset,n=0===t?0:e/t;return Math.round(n*(d-1))+1},x=function(e){var t=b().maxThumbOffset;n.style.left="".concat(Di(e,0,t),"px")},C=function(e){return x(function(e){return(e-1)/(d-1)*b().maxThumbOffset}(e))},S=function(e,t){e.forEach((function(e){var n=null!==t&&Number(e.getAttribute(Ii))===t;e.classList.toggle(p,n)}))},E=function(e){i.disabled=1===e,o.disabled=e===d},k=function(){a.classList.toggle(m,null!==g)},T=function(t){g=Di(t,1,d);var r=y(g);n.setAttribute("aria-valuenow",g),n.setAttribute("aria-valuetext",r),a.textContent=r,k(),S(c,g),S(l,g),E(g),e.dispatchEvent(new CustomEvent("likertChange",{bubbles:!0,detail:{value:g,text:r}}))},O=function(e){T(e),C(g)},$=function(e){var t;O((null!==(t=g)&&void 0!==t?t:u)+e)},P=function(){v&&(v=!1,n.classList.remove(f),O(w(parseFloat(n.style.left)||0)),k())};t.addEventListener("pointerdown",(function(e){if(0===e.button){var t=e.target.closest(ji.DOT_WITH_VALUE);O(t?Number(t.getAttribute(Ii)):w(_(e.clientX))),e.preventDefault()}})),n.addEventListener("pointerdown",(function(e){0!==e.button||v||(!function(e,t){n.setPointerCapture(e),v=!0,n.classList.add(f);var r=_(t);x(r),T(w(r))}(e.pointerId,e.clientX),e.preventDefault(),e.stopPropagation())})),n.addEventListener("pointermove",(function(e){if(v){var t=_(e.clientX);x(t),T(w(t))}})),n.addEventListener("pointerup",P),n.addEventListener("pointercancel",P),i.addEventListener("click",(function(){return $(-1)})),o.addEventListener("click",(function(){return $(1)})),n.addEventListener("keydown",(function(e){var t,n=null!==(t=g)&&void 0!==t?t:u,r=e.key;r in Ri?(e.preventDefault(),O(n+Ri[r])):"Home"===r?(e.preventDefault(),O(1)):"End"===r&&(e.preventDefault(),O(d))}));var I=r.querySelector(".dot.active"),L=I?Number(I.getAttribute(Ii)):null;null!==L?(g=L,n.setAttribute("aria-valuenow",L),n.setAttribute("aria-valuetext",y(L)),E(L),C(L)):(a.textContent=h,a.classList.remove(m),n.setAttribute("aria-valuenow",u),n.setAttribute("aria-valuetext",y(u)),S(l,null),S(c,null),i.disabled=!1,o.disabled=!1),e.addEventListener("likertRestore",(function(e){O(e.detail.value)})),window.addEventListener("resize",(function(){null!==g&&C(g)}))}}var Ni=function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(ji.COMPONENT_ROOT).forEach((function(e){"true"!==e.dataset.likertInitialised&&Fi(e)}))}))};function Bi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||zi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ui(e){return function(e){if(Array.isArray(e))return Gi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zi(e,t){if(e){if("string"==typeof e)return Gi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gi(e,t):void 0}}function Gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vi(e){return(Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qi=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";
vendor: 4,274 bytes, line 876
876function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new $(r||[]);return i(a,"_invoke",{value:E(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",p="executing",f="completed",m={};function g(){}function v(){}function y(){}var b={};c(b,a,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(P([])));w&&w!==n&&r.call(w,a)&&(b=w);var x=y.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Vi(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=h;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===f){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var c=u(t,n,r);if("normal"===c.type){if(i=r.done?f:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=f,r.method="throw",r.arg=c.arg)}}}function k(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=u(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function $(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Vi(t)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},C(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new S(d(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(x),c(x,l,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,$.prototype={constructor:$,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
876h(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function Hi(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Wi(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Hi(o,r,i,a,s,"next",e)}function s(e){Hi(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Yi=function(e,t){var n,r,i=o()(".drug-card"),a=e.find("#ditFilterContainer"),s=e.find("#drugcard-container"),l=e.find("#dit-noResultWithMisspelledMsg"),c=e.find("#dit-noResultFoundMsg"),d=e.find(".anchor-links-alphabet"),u=e.find("#ditLoader"),h=e.find(".cmp-ditsearch-box"),p=h.find("form.cmp-ditsearch__form"),f=h.find("#ditsearchInputText"),m=h.find("#ditSearchBoxSuggest"),g=e.find("#totalDitResults"),v=a.find("#ditFilterChips"),y=a.find(".multiselect-dropdownList"),b=Array.from(document.querySelectorAll("#ditTool .is-sticky")),_=p?p.data("searchindexs"):"",w=t.data("cfpath"),x=!1,C=[],S=t.data("batchsize")||10,E=0,k=new Set,T={},O="medicationname",$=null,P=[],I=!1,L=!1,A=!1,M=!1,j=-1,R=function(e,t){return(e%t+t)%t},D=JSON.parse(localStorage.getItem("drugSearchHistory"))||[],F=[],N=[],B=!1,U=null,z=o()(window).width()<=1024.1,G=/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,V=!1;function q(){r=window.scrollY||document.documentElement.scrollTop,G?(document.body.style.position="fixed",document.body.style.top="-".concat(r,"px"),document.body.style.left="0",document.body.style.right="0"):(document.documentElement.style.overflow="hidden",document.documentElement.style.height="100%",document.body.style.overflow="hidden",document.body.style.height="100%"),document.documentElement.style.scrollBehavior="auto"}function H(){"fixed"!==document.body.style.position&&"hidden"!==document.documentElement.style.overflow||(G?(document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",window.scrollTo(0,r)):(document.documentElement.style.overflow="",document.documentElement.style.height="",document.body.style.overflow="",document.body.style.height=""),setTimeout((function(){document.documentElement.style.scrollBehavior=""}),200))}var W=function(){A||(A=!0,L=!0),clearTimeout(n),n=setTimeout(Y,150)},Y=function(){A&&(A=!1,L=!1)},X=function(e){return 0===Object.keys(e).length},K=function(e){var t=e.find(".card-readmore"),n=t.find(".card-readmore--label"),r=n.data("label-up"),i=n.data("label-down"),a=t.find(".
876icon"),s=a.data("icon-up"),l=a.data("icon-down");e.toggleClass("expanded");var c=e.find('[data-key="medicationname"]').html();e.closest(".alphabet-section").attr("data-letter");e.hasClass("expanded")?(n.text(r),a.text(s),void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&window.adobeDataLayer.push({event:"cmp:show",attributes:{"dc:title":"".concat(i," | ").concat(c),"@type":"global/components/globalcomponents/accordion",parentId:"accordion","xdm:linkTarget":"_self","xdm:linkType":"internal","xdm:linkURL":"#"}})):(n.text(i),a.text(l),void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&window.adobeDataLayer.push({event:"cmp:hide",attributes:{"dc:title":"".concat(r," | ").concat(c),"@type":"global/components/globalcomponents/accordion",parentId:"accordion","xdm:linkTarget":"_self","xdm:linkType":"internal","xdm:linkURL":"#"}}))},Z=function(){var e=Wi(qi().mark((function e(t){var n,r,i;return qi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=X(t)?"":";"+o.a.map(t,(function(e,t){return"".concat(t,"=").concat(e)})).join(";")+";",r="".concat("/graphql/execute.json/astellaselement/drugcardlist").concat(n),e.prev=2,e.next=5,fetch(r,{method:"GET",credentials:"same-origin"});case 5:return i=e.sent,e.next=8,i.json();case 8:return e.abrupt("return",e.sent);case 11:return e.prev=11,e.t0=e.catch(2),be("hide"),je(c),e.abrupt("return",console.error("GraphQL fetch failed:",e.t0));case 16:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}(),J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/<br\s*\/?>/gi," ").replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim()},Q=function(e,n){var r,i=t.find(".card").clone(),a=e.drugcardImage,s=a.markdown?a.markdown.replaceAll("\n",""):"";""!==s&&i.find(".card-image").html('<img src="'.concat(s,'" />')),i.find("[data-key]").each((function(){var t=o()(this).data("key"),n=e[t]&&"object"===Vi(e[t])&&"html"in e[t]?e[t].html:e[t];n?o()(this).html(n).removeClass("hide"):o()(this).html(n).addClass("hide")}));var l,c=null==e||null===(r=e.tooltipDescription)||void 0===r?void 0:r.html;if(c){var d=function(e){if(!e)return null;var t=document.createElement("div");t.innerHTML=e.trim();var n=t.querySelector('[data-bs-toggle="popover"]');if(n){var r=n.cloneNode(!0);return r.classList.add("material-symbols-rounded","cmp-info","cmp-tooltip-icon"),r}var i=(t.textContent||t.innerText||"").trim();if(!i)return null;var o=document.createElement("span");return o.className="material-symbols-rounded cmp-info cmp-tooltip-icon",o.textContent="info",o.setAttribute("data-bs-toggle","popover"),o.setAttribute("data-bs-placement","top"),o.setAttribute("data-close-icon","close"),o.setAttribute("data-border-radius","cmp-border-radius-3xs"),o.setAttribute("data-bs-custom-class","cmp-info-100"),o.setAttribute("tabindex","0"),o.setAttribute("data-bs-content",i),o}(c),u=i.find('[data-key="medicationname"]')[0]||i.find('[data-key="drugName"]')[0];u&&d&&u.appendChild(d)}return n&&K(i),i.find(".card-tags").html(De(e)),l=i,o()(l).find(".card-readmore").on("click",(function(e){e.preventDefault();var t=o()(this).parents(".card");K(t)})),i},ee=function(e){var t;return e.data&&e.data.drugcardCfList?null===(t=e.data.drugcardCfList)||void 0===t?void 0:t.items:[]},te=function(e){return e.normalize("NFD")!==e},ne=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.find('.singleselect-dropdownList[data-fieldname="sortBy"]'),i=n||r.find(".dropdown-input").val();return t.length>0?r.closest(".astellas-singleselect-dropdown").removeClass("hidden"):r.closest(".astellas-singleselect-dropdown").addClass("hidden"),Ui(t).sort((function(e,t){var n=e[O],r=t[O],o=n[0],a=r[0],s=te(o),l=te(a);if(s&&!l)return"Z to A"===i?-1:1;if(!s&&l)return"Z to A"===i?1:-1;var c=n.toLowerCase(),d=r.toLowerCase();return c<d?"Z to A"===i?1:-1:c>d?"Z to A"===i?-1:1:0}))},re=d.find(".alphabet-menu a").map((function(){return{label:o()(this).find("span").text().trim(),href:o()(this).attr("href")||""}})).get(),ie=y.length?y.find("[tagvariation]").map((function(){return{tagvariation:o()(this).attr("tagvariation"),tagKey:o()(this).attr("value")}})).get():[],oe=function(e){var t="id".concat(e),n=re.filter((function(t){return t.label===e}));n.length>0&&(t="".concat(n[0].href.replace("#","")));var r=o()("<h3>
876").addClass("alphabet-section-title bottom-space-s").attr("id",t).text(e),i=o()("<div>").addClass("alphabet-section").attr("data-letter",e);return s.append(r,i),T[e]=i,k.add(e),!1},ae=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.length>0?t:C,i=0;if(E>=r.length)u.addClass("hidden");else{for(;E<r.length&&i<S;){var o,a=r[E],s=a[O][0].toUpperCase();!k.has(s)&&d.length>0&&oe(s);var l=Q(a,1===r.length);T[s].append(l),null!==(o=window.globalPopover)&&void 0!==o&&o.init&&window.globalPopover.init(l[0]),E++,i++}u.addClass("hidden"),x=!1;var c=window.innerHeight+window.scrollY>=document.body.offsetHeight-window.innerHeight;c&&E<r.length&&n<4&&(console.info("Preloading batch, index: ".concat(E)),setTimeout((function(){e(t,n+1)}),50));var h=function(){for(;E<r.length&&document.body.scrollHeight<=1.5*window.innerHeight;)e(t)};h()}},se=function(){var e=i.find("#load-trigger");e.length&&($&&$.disconnect(),($=new IntersectionObserver((function(e){var t=e[0],n=s.find(".card").length>0,r=P.length>0?E<P.length:E<C.length;t.isIntersecting&&r&&n&&!x&&(x=!0,u.removeClass("hidden"),console.info("Infinite Scroll â Next batch at:",E),requestAnimationFrame((function(){return ae(P)})))}),{root:null,threshold:0,rootMargin:"1200px 0px"})).observe(e[0]))},le=function(e){var t=d.find(".nav-letter");U!==e&&(U=e,t.closest("li").removeClass("clicked-alphabet"),t.each((function(){o()(this).attr("href")==="#".concat(e)&&(o()(this).closest("li").addClass("clicked-alphabet"),ce(o()(this).closest("li")))})))};function ce(e){var t=d.find(".alphabet-menu");if(z||t.length&&e.length){var n=t.outerWidth(),r=t.scrollLeft()+e.position().left-n/2+e.outerWidth()/2;t.animate({scrollLeft:r},400)}}var de,ue=function(e){var t=d.find("ul"),n=t.find(e),r=t,i=r.parent().hasClass("gradient-overlay-after")&&3*parseFloat(r.parent().css("padding-right").replace("px",""))||0,o=r.parent().hasClass("gradient-overlay-before")&&3*parseFloat(r.parent().css("padding-left").replace("px",""))||0,a=r.width()-i-o,s=n.offset().left-r.offset().left-o;(s<=0||s+n.outerWidth(!0)>a)&&ce(e)},he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return d.length>0&&(d.addClass("alphabet-drugcards"),d.find("li").removeClass("clicked-alphabet"),d.find("li").off("click"),d.find("li a").off("
876click"),re.forEach((function(t){var n=t.label,r=t.href,i=d.find('a[href="'.concat(t.href,'"]'));i.addClass("nav-letter"),e.includes(n)?(i.prop("disabled",!1).attr("role","link").attr("aria-disabled","false").removeAttr("tabindex").removeClass("disabled").attr("title",n),e[0]===n&&(i.closest("li").addClass("clicked-alphabet"),ce(i)),1===e.length&&z&&ce(i),i.closest("li").on("click",(function(e){if(e.preventDefault(),A)return!1;d.find("li").removeClass("clicked-alphabet"),o()(this).addClass("clicked-alphabet"),ue(i),me(n,r)}))):(i.prop("disabled",!0).attr("role","link").attr("aria-disabled","true").attr("tabindex","-1").addClass("disabled").attr("title","No results under "+n),i.closest("li").off("click"))})),d.find("a").length===d.find("a.disabled").length?d.addClass("hidden"):d.removeClass("hidden")),!1},pe=function(){return function(){var e=document.querySelectorAll("*"),t=[];return e.forEach((function(e){var n=window.getComputedStyle(e);"sticky"!==n.position&&"fixed"!==n.position||t.push(e)})),t}().filter((function(e){if(!function(e){var t=window.getComputedStyle(e),n=e.getBoundingClientRect();return"none"!==t.display&&"hidden"!==t.visibility&&"0"!==t.opacity&&n.width>0&&n.height>0}(e))return!1;var t=e.getBoundingClientRect(),n=window.getComputedStyle(e),r=parseInt(n.top||"0",10);return t.top<=r}))},fe=function(){var e=pe(),t=0;return e.forEach((function(e){t+=e.offsetHeight})),t},me=function(e,t){if(!k.has(e))for(var n=P.length>0?E<P.length:E<C.length,r=P.length>0?P:C;n&&!k.has(e);)ae(r);var i=o()(t);i.length&&(b.length>0?(W(),ge(i)):window.scrollTo({top:i.offset().top-Qe(),behavior:"smooth"}))},ge=function(e){if(0===b.length)return!1;ve(e,[".cmp-primary-nav",".dit-search.is-sticky",".anchor-links-alphabet.is-sticky:not(.hidden)"]),0===o()(".is-sticky.sticking").length&&setTimeout((function(){ve(e,[".cmp-primary-nav",".dit-search.is-sticky",".anchor-links-alphabet.is-sticky:not(.hidden)"])}),250)},ve=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30,i=0,o=function(e){return"fixed"===window.getComputedStyle(e).position||e.classList.contains("sticking")&&e.classList.contains("is-sticky")},a=function a(){var s=0,l=!0,c=0,d=document.querySelector(".cmp-sticky-header");if(t.forEach((function(e){var t=document.querySelector(e);if(t&&t.classList.contains("cmp-primary-nav")&&d&&(t=d).classList.contains("cmp-header--fixed")&&(t=document.querySelector(".cmp-sticky-header.cmp-header--fixed")),t){if(!t||!t.classList.contains("cmp-primary-nav")&&!t.classList.contains("cmp-sticky-header")||0!==Qe()){var n=t.offsetHeight+parseInt(window.getComputedStyle(t).marginBottom);n>0?s+=n:l=!1,o(t)||(c=22)}}else l=!1})),l||i>=n){var u=e.offset().top-(s+c)+10;window.scrollTo({top:u,behavior:"smooth"})}else i++,setTimeout(a,r)};a()},ye=function(e){he(Ui(new Set(e.map((function(e){return e[O][0].toUpperCase()})))),!0),ae(),se()},be=function(e){return a.length&&("show"===e?a.removeClass("hidden"):a.addClass("hidden")),!1},_e=function(){var e=Wi(qi().mark((function e(){return qi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!x){e.next=2;break}return e.abrupt("return");case 2:x=!0,u.removeClass("hidden");try{Z({sort:O,cfpath:w}).then((function(e){if(void 0===e||e&&(e.errors||ee(e).length<1))return be("hide"),void je(c);be("show"),C=ne(ee(Ue(e))),ye(C),Me(),Ye(),Re()}))}catch(e){console.error("Error loading cards:",e),V=!0,be("hide"),je(c)}finally{x=!1,u.addClass("hidden")}case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),we=function(e){var t={};return e.forEach((function(e){var n=e[O][0].toUpperCase();t[n]||(t[n]=[]),t[n].push(e)})),t},xe=function(){var e=f.val().trim();u.removeClass("hidden"),F.length>0?be("show"):be("hide"),ot(),e.length>0?o.a.ajax({url:"/bin/sitewide/ditspellchecker?spellcheckerSearchTerm=".concat(e,"&searchPath=").concat(w),type:"GET",dataType:"json",async:!0,contentType:"application/json; charset=utf-8",success:function(t){u.addClass("hidden"),t.length>0?(je(l,e,t),s.find(".searchkey").each((function(){o()(this).on("click",(function(e){e.preventDefault();var t=o()(this).text().trim();f.val(t),ke()}))}))):je(c)},error:function(e){console.error(e,"error"),u.addClass("hidden"),je(c)}}):(u.addClass("hidden"),je(c))},Ce=function(e,t){if(!t)return e;var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(n,"gi");return e.replace(r,(function(e){return'<span class="cmp-weight-styles semi-bold">'.concat(e,"</span>")}))},Se=function(){m.find(".cmp-suggested-ditsearch").removeClass("visible"),m.find(".cmp-recent-ditresults").removeClass("visible"),m.removeClass("suggestion-box-expanded"),m.find("#recent-ditresults-list ul").empty(),m.find("#ditSuggested-search ul").empty(),o()(document).off("keydown"),j=-1,m.find(".focus-on").removeClass("focus-on"),f.blur()},Ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=f.val().trim();h.find(".clear-search");u.removeClass("hidden"),f.trigger("blur"),I=!0,z&&(f.parents(".cmp-ditsearchinput").removeClass("dit-search-expand"),H()),Pe(),t.length>0?(Ae("disable",!1),Ve(X(e)?{medicationname:t,dittags:[],interactiontags:[],filtertag:[]}:e)):Ae("disable",!0)},ke=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ee(e);var t=X(e)?f.val().trim():e.medicationname,n=P.length,r=F.filter((function(e){return"interactiontags"===e.key})).map((function(e){return e.label})).join(" | "),i=F.filter((function(e){return"dittags"===e.key})).map((function(e){return e.label})).join(" | ");window.adobeDataLayer.push({event:"DrugInteractionSearch",attributes:{searchKeyword:t||null,searchResultNumber:n,FilterTypeOfMedicine:i||null,FilterInteractionLevel:r||null}}),setTimeout((function(){Se()}),300)},Te=function(){var e={};return F.forEach((function(t){e[t.key]||(e[t.key]=[]),e[t.key].push(t.value)})),e},Oe=function(){var e=f.val().trim(),t=[];if(""!==_){var n=_.split(",");t=C.filter((function(t){var r=!e||n.some((function(n){return J(t[n]).toLowerCase().includes(e.toLowerCase())})),i=Object.entries(Te()).every((function(e){var n=Bi(e,2),r=n[0],i=n[1];return(Array.isArray(t[r])?t[r]:[]).some((function(e){return i.includes(e)}))}));return r&&i}))}else t=C.filter((function(t){return Object.values(t).some((function(t){return J(t).toLowerCase().includes(e.toLowerCase())}))}));return t},$e=function(){s.empty(),E=0,k.clear(),T={}},Pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";P=ne(Oe(),e);var t=f.val().trim();g.length>0&&(g.find(".results-count").html(P.length),P.length>0&&(t.length>0||F.length>0)?g.addClass("visible"):g.removeClass("visible")),$e();var n=we(P);he(Object.keys(n)),P.length>0?(V=!1,u.addClass("hidden"),be("show"),ae(P),$&&$.disconnect(),se()):(V=!0,xe())},Ie=function(e,t){var n=e.find("li a");n.each((function(){o()(this).parents("li").removeClass("focus-on")})),e.data("selectedIndex",t),o()(n[t]).parents("li").addClass("focus-on");var r=o()(n[t]).data(O);f.val(r),f.focus()},Le=function(){Se(),Ae("disable",!0),f.val().length>0&&Ae("disable",!1),f.parents(".cmp-ditsearchinput").hasClass("dit-search-expand")&&z&&(f.focus(),f.addClass("cmp-selected-state"))},Ae=function(e,t){var n=h.find(".clear-search");0!==n.length&&(t?(n.addClass("cmp-disabled-secondary").removeClass("enabled"),n.parents(".closebutton").addClass("cmp-disabled-link"),n.attr("tabindex","-1")):(n.removeClass("cmp-disabled-secondary").addClass("enabled"),n.removeAttr("tabindex"),n.parents(".closebutton").removeClass("cmp-disabled-link")))},Me=function(){if(h){var t=h.find(".material-symbols-rounded.search-icon");
876Ae("disable",!0),f.on("keydown",(function(e){"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),ke(),o()(this).blur()),o()(e.target).removeClass("cmp-selected-state").removeClass("cmp-inputting-state").removeClass("cmp-keyboard-focus")})),f.keypress((function(e){"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),ke())})),t.on("click",(function(e){e.preventDefault(),ke()})),t.on("keydown",(function(e){"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),ke())})),t.on("mousedown",(function(e){M=!0})),f.on("mousedown",(function(e){M=!0})),f.on("mouseup",(function(e){M=!0,o()(e.target).addClass("cmp-selected-state").removeClass("cmp-inputting-state").removeClass("cmp-keyboard-focus")})),f.on("blur",(function(e){o()(e.target).removeClass("cmp-keyboard-focus")})),f.on("keyup paste",(function(e){if("Escape"!==e.key&&27!==e.keyCode){var t=o()(this).val().trim();t.length>0?(Ae("disable",!1),h.find(".cmp-suggested-ditsearch").length>0&&ze(e,t)):(Ae("disable",!0),Ge()),(e.shiftKey&&"Tab"===e.key||"Tab"===e.key)&&o()(e.target).addClass("cmp-keyboard-focus")}})),h.find(".clear-search")&&h.find(".clear-search").on("click",(function(e){e.preventDefault(),f.val(""),Ae("disable",!0),Se(),I&&(Ee(),I=!1),f.trigger("focus")})),f.on("focus",(function(e){e.preventDefault(),M?o()(e.target).removeClass("cmp-keyboard-focus"):o()(e.target).addClass("cmp-keyboard-focus");var t=o()(this).val().trim();t&&t.length>0||(o()(document).off("keydown"),j=-1,h.find(".cmp-ditsearchbox-suggest .focus-on").removeClass("focus-on"),Ge()),z&&0===f.closest(".dit-search-expand").length&&(q(),o()(e.currentTarget).parents(".cmp-ditsearchinput").addClass("dit-search-expand"))})),f.on("focusout",(function(e){o()(e.target).removeClass("cmp-selected-state cmp-inputting-state cmp-keyboard-focus")})),h.find("#ditSearchBoxBtn .close-search").on("click",(function(e){e.preventDefault(),f.parents(".cmp-ditsearchinput").removeClass("dit-search-expand"),H(),Se()})),document.addEventListener("mousedown",(function(e){o()(e.target).closest(".global-link.cmp-disabled-link").length>0&&o()(e.target).closest(".cmp-search__form").length>0&&(e.stopPropagation(),e.preventDefault())})),document.addEventListener("click",(function(e){0===o()(e.target).parents(".cmp-ditsearch__form").length&&Le()})),m.on("focusout",(function(){setTimeout((function(){o()(document.activeElement).closest(".cmp-ditsearchbox-suggest").length||z||Le()}),0)})),document.addEventListener("keydown",(function(t){if(("Escape"===t.key||27===t.keyCode)&&!z){m.length>0&&m.trigger("focusout"),y.length>0&&setTimeout((function(){y.removeClass("arrow_reverse"),y.find(".multidropdown-input").blur()}),200);var n=e.find('.singleselect-dropdownList[data-fieldname="sortBy"]');n.length>0&&setTimeout((function(){n.removeClass("arrow_reverse"),n.find(".dropdown-input").blur()}),200)}}))}return!1},je=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e.length){var r=e.clone(),i={__KEYWORD__:t,__SPELL__:n.map((function(e){return'<span class="searchkey">'.concat(e,"</span>")})).join(", ")};r.find("*").each((function(){var e=o()(this);e.contents().each((function(){if(this.nodeType===Node.TEXT_NODE){var t=this.nodeValue;if(t.includes("__KEYWORD__")&&(this.nodeValue=t.replaceAll("__KEYWORD__",i.__KEYWORD__)),t.includes("__SPELL__")){var n=e.html().replaceAll("__SPELL__",i.__SPELL__);e.html(n)}}}))})),$e(),s.html('<div class="nosearch-result">'+r.html()+"</div>")}return!1},Re=function(){var t=e.find('.singleselect-dropdownList[data-fieldname="sortBy"]');t.length>0&&(t.find(".dropdown-input").attr("readonly",!0),setTimeout((function(){t.find(".dropdown-input").off("focus focusout keydown click"),t.off("focusout"),t.find(".dropdown-singleselectlist ul li").off("blur"),t.find(".dropdown-input").on("click",(function(){var e=t.find(".cmp-single-selected .text")?t.find(".cmp-single-selected .text").text():"";t.hasClass("arrow_reverse")?(t.removeClass("arrow_reverse"),t.find(".dropdown-input").val(e)):(t.addClass("arrow_reverse"),t.find(".dropdown-input").val(""));var n=o()('[data-fieldname="sortBy"]').find("input")[0].getAttribute("placeholder");void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&window.adobeDataLayer.push({event:"cmp:click",attributes:{"dc:title":n,"@type":"global/components/globalcomponents/navigation/global-link/v1/global-link/link",parentId:"internal","xdm:linkTarget":"_self","xdm:linkType":"internal","xdm:linkURL":"#"}})}
876)),t.find(".dropdown-input").on("mousedown",(function(){M=!0,o()(this).addClass("mouse-focus")})),t.find(".dropdown-input").on("keydown",(function(e){if(M=!1,o()(this).removeClass("mouse-focus"),"Enter"===e.key||13===e.keyCode){e.preventDefault();var n=t.find(".cmp-single-selected .text")?t.find(".cmp-single-selected .text").text():"";t.hasClass("arrow_reverse")?(t.removeClass("arrow_reverse"),t.find(".dropdown-input").val(n)):(t.addClass("arrow_reverse"),t.find(".dropdown-input").val(""))}})),t.find(".dropdown-input").on("focus",(function(){M?o()(this).addClass("mouse-focus"):(o()(this).removeClass("mouse-focus"),o()(this).trigger("click"))})),t.find(".dropdown ul li").on("click",(function(){var e=o()(this).find(".text").text(),n=o()('[data-fieldname="sortBy"]').find("input")[0].getAttribute("placeholder");void 0!==o()("body").attr("data-cmp-data-layer-enabled")&&window.adobeDataLayer.push({event:"cmp:click",attributes:{"dc:title":"".concat(n," | ").concat(e),"@type":"global/components/globalcomponents/navigation/global-link/v1/global-link/link",parentId:"internal","xdm:linkTarget":"_self","xdm:linkType":"internal","xdm:linkURL":"#"}}),t.find(".dropdown-input").val(e),Pe(e),t.removeClass("arrow_reverse")})),t.find(".dropdown ul li").on("keydown",(function(e){if("Enter"===e.key||13===e.keyCode){e.preventDefault(),t.find(".dropdown ul li").removeClass("cmp-single-selected");var n=o()(this).find(".text").text();t.find(".dropdown-input").val(n),""===n&&void 0===n||(t.closest(".dropdownfieldvalidator").addClass("valid-entry"),o()(this).addClass("cmp-single-selected")),Pe(n),t.removeClass("arrow_reverse")}})),t.on("focusout",".dropdown-input, .dropdown-singleselectlist",(function(e){setTimeout((function(){t.has(document.activeElement).length||t.removeClass("arrow_reverse")}),0)}))}),400))},De=function(e){var t=Ue(e),n=t.dittags,r=t.interactiontags,i=t.filtertag,o=t.dittagsPlain,a=t.interactiontagsPlain,s=t.filtertagPlain,l="";return n&&n.forEach((function(e,t){l+='<div class="tag-drug tag-item cmp-weight-styles semi-bold" data-tag="'.concat(e,'">').concat(o[t],"</div>")})),r&&r.forEach((function(e,t){var n=ie.length>0?ie.filter((function(t){return t.tagKey===e})):[];l+='<div class="tag-item tag-interaction cmp-weight-styles regular '.concat(n.length>0?n[0].tagvariation:"",'" data-tag="').concat(e,'">\n <i class="tag-interaction--icon material-symbols-rounded">brightness_1</i>\n <span>').concat(a[t],"</span>\n </div>")})),i&&i.forEach((function(e,t){l+='<div class="tag-item tag-filters cmp-weight-styles regular" data-tag="'.concat(e,'">').concat(s[t],"</div>")})),l},Fe=function(e,t){for(var n="",r=0;r<e.length;r++){var i=J(e[r][O]);n+='<li>\n <a \n href="#"\n class="search-suggest-key"\n data-medicationname="'.concat(i,"\"\n data-dittags='").concat(JSON.stringify(e[r].dittags),"'\n data-interactiontags='").concat(JSON.stringify(e[r].interactiontags),"'\n data-filtertag='").concat(JSON.stringify(e[r].filtertag?e[r].filtertag:[]),'\'\n >\n <span class="material-symbols-rounded notranslate arrow-icon" translate="no" aria-hidden="true">search</span>\n <div class="search-suggestion-content">\n <div class="card-title">\n ').concat(Ce(i,t),'\n </div>\n <div class="card-tags">\n ').concat(De(e[r]),"\n </div>\n </div>\n </a>\n </li>")}return n},Ne=function(){h.find(".search-suggest-key").each((function(){o()(this).closest("li").on("click",(function(e){e.preventDefault();var t=o()(this).find(".search-suggest-key"),n=t.data();f.val(J(t.data(O))),ke(n)})),o()(this).on("keydown",(function(e){"Escape"!==e.key&&27!==e.keyCode||(e.preventDefault(),Se())}))}))},Be=function(e){return!!e.length&&e[0].scrollHeight>e[0].clientHeight},Ue=function e(t){if(t&&"object"===Vi(t))for(var n in t)"dittags"!==n&&"interactiontags"!==n&&"filtertag"!==n||!t[n]?e(t[n]):t[n+"Plain"]=t[n].map((function(e){return"string"==typeof e&&e.includes(":")?e.split(":").pop().trim():e}));return t},ze=function(e,t){if("Enter"!=e.key&&"ArrowDown"!=e.key&&"ArrowUp"!=e.key&&t.length>0){var n=C.filter((function(e){return J(e[O]).toLowerCase().includes(t.toLowerCase())}));if(""!==_){var r=o.a.merge(_.split(","),["dittagsPlain","interactiontagsPlain","filtertagPlain"]);n=C.filter((function(e){return!t||r.some((function(n){return String(e[n]||"").toLowerCase().startsWith(t.toLowerCase())}))}))}if(n.length>0){var i=m.find(".cmp-suggested-ditsearch");m.addClass("suggestion-box-expanded"),m.find(".cmp-recent-ditresults").removeClass("visible"),i.find("#ditSearchBoxSuggestResult").empty(),i.addClass("visible"),i.find("#ditSearchBoxSuggestResult").html(Fe((s=n).length>6?s.slice(0,6):s,t)),Be(i)?i.addClass("is-scrollable"):i.removeClass("is-scrollable"),Ne(),a=m.find(".cmp-suggested-ditsearch #ditSearchBoxSuggestResult"),o()(document).off("keydown").on("keydown",(function(e){if(a.parents(".suggestion-box-expanded")&&!z){var t=a.find("a");switch(e.which){case 38:Ie(a,R(j-=1,t.length));break;case 40:Ie(a,R(j+=1,t.length))}}}))}else Ge()}else 0===t.length&&Ge();var a,s},Ge=function(){var e=m.find(".cmp-suggested-ditsearch");if(D.length>0&&qe()&&h.find(".recent-ditresults").length>0){var t=h.find(".cmp-recent-ditresults");h.find(".cmp-ditsearchbox-suggest").addClass("suggestion-box-expanded"),t.addClass("visible"),t.find("ul").html(Fe(D)),e.removeClass("visible"),Be(t)?t.addClass("is-scrollable"):t.removeClass("is-scrollable"),Ne()}else h.find(".cmp-ditsearchbox-suggest").removeClass("suggestion-box-expanded"),h.find(".cmp-suggested-ditsearch").removeClass("visible"),e.find("#ditSearchBoxSuggestResult").empty()},Ve=function(e){(D=D.filter((function(t){return t[O]!==e[O]}))).unshift(e),D.length>6&&(D=D.slice(0,6)),localStorage.setItem("drugSearchHistory",JSON.stringify(D))},qe=function(){var e,t=function(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return""}("OptanonConsent");if(""!=t){var n=t&&t.split("groups");
876if(n&&n[1]&&n[1].indexOf("C0001")>=0){var r=n[1].split("&");return(r&&r[0].split(",")).forEach((function(t){if(t.indexOf("C0001")>-1){var n=t.replace("=","");e=n.substring("C0001".length+1)}})),"1"===e}return!1}return!0},He=function(e){var t=e.closest(".wrapper").find(".group-label"),n={key:e.closest("[data-fieldname]").data("fieldname"),label:t.text().trim(),value:t.attr("value"),_this:e};return e.is(":checked")?F.push(n):(F=F.filter((function(e){return e.value!==n.value})),v.find('.chip-active[data-value="'.concat(n.value,'"]')).remove(),F.length<1&&(v.removeClass("selected-filters"),v.find(".chip.chip-active").remove())),!1},We=function(){v.length>0&&(F.length>0?(v.addClass("selected-filters"),e.find(".clear-chip-filters").addClass("visible"),F.forEach((function(e){var t=v.find(".chip:not(.chip-active)").clone(),n=e.key,r=e.label,i=e.value;v.find('.chip.chip-active[data-value="'.concat(i,'"]')).length>0||(t.find(".cmp-container--chip").removeAttr("id"),t.find(".cmp-container--chip a").removeAttr("id").removeAttr("data-cmp-data-layer"),t.find(".cmp-chip-text").html(r),t.find(".material-symbols-rounded:last").addClass("remove-chip-filter"),t.attr("data-key",n).attr("data-label",r).attr("data-value",i).addClass("chip-active"),v.find(".chip:not(.chip-active)").closest(".cmp-container").append(t))}))):(v.removeClass("selected-filters"),e.find(".clear-chip-filters").removeClass("visible"),v.find(".chip.chip-active").remove()))},Ye=function(){if(y){var e=a.find(".dit-show-filters-mobile"),t=a.find(".dit-filters-close-mobile"),n=a.find(".cmp-global-link-primary-secondary");y.find(".multidropdown-input").each((function(){o()(this).attr("readonly",!0),o()(this).attr("data-placeholder",o()(this).attr("placeholder"))})),y.find(".multidropdown-input").on("mousedown",(function(){M=!0,o()(this).addClass("mouse-focus")})),y.find(".multidropdown-input").on("focus",(function(){M?o()(this).addClass("mouse-focus"):(o()(this).removeClass("mouse-focus"),o()(this).trigger("click"))})),setTimeout((function(){y.find(".multidropdown-input").off("click").on("click",(function(){if(o()(this).val(""),o()(this).closest(".multiselect-dropdownList").hasClass("arrow_reverse")){var e=o()(this).attr("data-placeholder"),t=o()(this).closest(".multiselect-dropdownList").data("fieldname"),n=Te();!X(n)&&n.hasOwnProperty(t)&&o()(this).val("".concat(e," (").concat(n[t].length,")")),o()(this).closest(".multiselect-dropdownList").removeClass("arrow_reverse"),o()(this).attr("readonly",!0)}else o()(this).closest(".multiselect-dropdownList").addClass("arrow_reverse"),o()(this).trigger("keyup"),o()(this).attr("readonly",!1);var r=o()(this).closest(".multiselect-dropdownList").find(".dropdown-wrapper");Be(r)?r.addClass("is-scrollable"):r.removeClass("is-scrollable");var i=o()(this).closest(".multiselect-dropdownList");y.not(i).removeClass("arrow_reverse")})),y.off("focusout").on("focusout",(function(e){!o()(e.target).closest(".multiselect-dropdownList")&&o()(this).hasClass("arrow_reverse")&&(o()(this).removeClass("arrow_reverse"),M=!1)})),o()(document).on("click",(function(e){a.find(".multiselect-dropdownList").each((function(){var e=o()(this).find(".multidropdown-input"),t=e.attr("data-placeholder");e.val("");var n=o()(this).find('.dropdown-wrapper input[type="checkbox"]:checked').length;n>0&&0===e.closest(".arrow_reverse").length?(e.val("".concat(t," (").concat(n,")")),o()(this).closest(".dropdownfieldvalidator").addClass("valid-entry").removeClass("invalid-entry")):(e.attr("placeholder",t),e.val(""))}))}))}),300);var r=[];if(y.find('input[type="checkbox"]').on("change",(function(e){if(o()(this).closest(".filters-overlay-mobile").length){var t={value:o()(this).closest(".wrapper").find(".group-label").attr("value")};r.some((function(e){return e.closest(".wrapper").find(".group-label").attr("value")===t.value}))?r=r.filter((function(e){return e.closest(".wrapper").find(".group-label").attr("value")!==t.value})):r.push(o()(this)),r.length>0||F.length>0?n.removeClass("cmp-disabled-primary-secondary"):n.addClass("cmp-disabled-primary-secondary")}else{He(o()(this)),We(),Pe();var i,a=F.filter((function(e){return"interactiontags"===e.key})),s=F.filter((function(e){return"dittags"===e.key})),l=a.map((function(e){return e.label})).join(" | "),c=s.map((function(e){return e.label})).join(" | "),d=f.val().trim(),u=P.length;i=a.length>0&&0==s.length?"Interaction Level":0==a.length&&s.length>0?"Type of medication":"Interaction Level | Type of medication",window.adobeDataLayer.push({event:"DrugInteractionSearchFilter",attributes:{FilterTypeOfMedicine:c||null,FilterInteractionLevel:l||null,searchKeyword:d||null,searchResultNumber:u,categoryfiltered:i}})}})),e.length&&e.on("click",(function(e){e.preventDefault(),q(),o()(this).closest(".cmp-container").addClass("filters-overlay-mobile"),r.length>0||F.length>0?n.removeClass("cmp-disabled-primary-secondary"):n.addClass("cmp-disabled-primary-secondary")})),t.length&&t.on("click",(function(e){e.preventDefault(),r.forEach((function(e){e.prop("checked",!1)})),F.forEach((function(e){e._this.prop("checked",!0)})),r=[],o()(this).closest(".cmp-container").removeClass("filters-overlay-mobile"),H()})),n.length){var i=n.find(".apply-ditfilters-mobile"),s=n.find(".clear-all-ditfilters-mobile");i.on("click",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.preventDefault(),r.forEach((function(e){He(e)})),r=[],We(),Pe();var n,i=F.filter((function(e){return"interactiontags"===e.key})),a=F.filter((function(e){return"dittags"===e.key})),s=i.map((function(e){return e.label})),l=s.join(" | "),c=a.map((function(e){return e.label})),d=c.join(" | "),u=X(t)?f.val().trim():t.medicationname,h=P.length;n=i.length>0&&0==a.length?"Interaction Level":0==i.length&&a.length>0?"Type of medication":"Interaction Level | Type of medication",window.adobeDataLayer.push({event:"DrugInteractionSearchFilter",attributes:{FilterTypeOfMedicine:d||null,FilterInteractionLevel:l||null,searchKeyword:u||null,searchResultNumber:h,categoryfiltered:n}}),o()(this).closest(".cmp-container").removeClass("filters-overlay-mobile"),H()}
876)),s.on("click",(function(e){e.preventDefault(),r=[],Je(),n.addClass("cmp-disabled-primary-secondary")}))}v.length>0&&(Ze(),Xe())}},Xe=function(){v.on("click",".chip.chip-active .remove-chip-filter",(function(e){e.preventDefault(),Ke(o()(this))})),v.on("keydown",".chip.chip-active .remove-chip-filter",(function(e){"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),Ke(o()(this)))}))},Ke=function(e){var t=e.parents(".chip").data("value"),n=y.find('.group-label[value="'.concat(t,'"]')).closest(".wrapper").find('input[type="checkbox"]');n.trigger("click");var r=n.closest(".multiselect-dropdownList").find(".multidropdown-input"),i=r.attr("placeholder"),o=n.closest(".multiselect-dropdownList").data("fieldname"),a=Te();!X(a)&&a.hasOwnProperty(o)?r.val("".concat(i," (").concat(a[o].length,")")):r.val("")},Ze=function(){e.find(".global-link .clear-chip-filters").on("click",(function(e){e.preventDefault(),Je(),o()(this).removeClass("visible"),o()(this).blur()}))},Je=function(){F=[],y.trigger("change"),y.find('input[type="checkbox"]').prop("checked",!1),y.closest(".dropdownfieldvalidator").removeClass("valid-entry"),We(),Pe(),y.trigger("focusout")},Qe=function(){var e=document.querySelector(".menu-hide .cmp-primary-nav, .cmp-sticky-header.cmp-header--fixed");if(!e)return 0;var t=getComputedStyle(e);return"fixed"===t.position||"sticky"===t.position?e.offsetHeight-1:0},et=function(t,n){var r=e.find("."+n);return 0===r.length&&((r=document.createElement("div")).className=n,o()(r).insertAfter(t)),o()(r)},tt=function(){var t=e.find(".dit-search.is-sticky"),n=e.find(".anchor-links-alphabet.is-sticky:not(.hidden)"),r=null==t?void 0:t.hasClass("sticking"),i=null==n?void 0:n.hasClass("sticking"),a=et(t,"herosearch-placeholder"),s=et(n,"alphabet-placeholder"),l=parseFloat(o()(".cmp-ditsearch__field").css("padding-top").replace("px",""));a.height(r?"".concat(t.outerHeight(!0),"px"):"0px"),s.height(i?"".concat(n.outerHeight(!0)-2*l,"px"):"0px")},nt=function(t,n){var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o&&o.length){var a=o.css("background-image"),s=o.css("background-color"),l=a&&"none"!==a,c=s&&"rgba(0, 0, 0, 0)"!==s&&"transparent"!==s;if(l||c)return o.css("background")}}return null}(e.find("#searchHeroDit .cmp-container:first"),e.find("#searchHeroDit .container:first"));switch(n){case"add":r&&(t.style.background=r);break;case"remove":default:t.style.background=""}},rt=e.find("#searchHeroDit>div:first").outerHeight()||0,it=function(){N.forEach((function(t,n){for(var r=t.el,i=t.docTop,a=t.height,s=e[0],l=window.scrollY||document.documentElement.scrollTop,c=s.getBoundingClientRect(),d=c.left,u=c.width,h=Qe(),p=0,f=s.offsetTop+s.offsetHeight-a,m=0,g=0;g<n;g++)m+=N[g].height;if(r.classList.contains("anchor-links-alphabet")&&(p=parseFloat(o()(".cmp-ditsearch__field").css("padding-top").replace("px",""))+1,h+=m-1),l+p>=i-h-m&&h+l<=f){if(function(e){e.classList.contains("sticking-enter")||e.classList.contains("sticking")||(e.classList.add("sticking-enter"),e.offsetWidth,e.classList.add("sticking-enter-active"),setTimeout((function(){e.classList.remove("sticking-enter"),e.classList.remove("sticking-enter-active")}),100))}(r),r.classList.add("sticking"),r.style.top="".concat(h,"px"),r.style.left="".concat(d,"px"),r.style.width="".concat(u,"px"),r.style.position="fixed",r.classList.contains("dit-search")){var v=e.find("#searchHeroDit>div:first");v.offset()&&l>=v.offset().top+rt-a-h-2?nt(r,"add"):nt(r,"remove")}}else r.classList.remove("sticking"),r.style.position="",r.style.top="",r.style.left="",r.style.width="",r.classList.contains("dit-search")&&nt(r,"remove")}))},ot=function(){b.length>0&&(b.forEach((function(e){e.classList.remove("sticking"),e.style.position="",e.style.top="",e.style.left="",e.style.width="",e.style.background=""})),setTimeout((function(){tt()}),100))},at=function(){b.length>0&&(ot(),function(){N.length=0;var t=Qe(),n=e[0].offsetTop;e[0].offsetHeight;b.forEach((function(e){var r=e.getBoundingClientRect().top+window.scrollY,i=e.offsetHeight;N.push({el:e,docTop:r,height:i,topLimit:n+e.offsetTop-t})}))}(),it(),tt(),function(){if(0!==b.length&&!L)for(var e=document.querySelectorAll(".alphabet-section-title"),t=window.scrollY+fe()+22,n=e.length-1;n>=0;n--){var r=e[n],i=r.getBoundingClientRect();if(t>=window.scrollY+i.top)return void le(r.id)}}())};_e(),(de=o()(".cmp-floating-button"))&&(de.find('a[href="#top"]').off("
876click"),de.find('a[href="#top"]').on("click",(function(){W(),document.body.scrollTop=document.documentElement.scrollTop=0,setTimeout((function(){var e=we(P.length?P:C);he(Object.keys(e))}),100)})));var st=o()(window).width();o()(window).on("scroll",(function(){if(f.closest(".dit-search-expand").length>0||e.find(".filters-overlay-mobile").length>0||V)return ot(),!1;b.length>0&&!B&&(requestAnimationFrame((function(){at(),A&&(clearTimeout(n),n=setTimeout(Y,150)),B=!1})),B=!0)})),o()(window).on("resize",(function(){z=o()(window).width()<=1024.1,o()(window).width()!=st&&(st=o()(window).width(),at(),H())})),o()(window).on("keydown",(function(e){(e.shiftKey&&"Tab"===e.key||"Tab"===e.key)&&(M=!1)}))},Xi=function(){var e=o()("#ditTool");document.addEventListener("DOMContentLoaded",(function(){var t=o()("#drugcard-template");if(t.length>0){if(t.hasClass("cmp-drugcards-edit"))return;Yi(e,t)}}))},Ki=function(){document.addEventListener("DOMContentLoaded",(function(){o()(document).ready((function(){o()(".doccheckbtn a").on("click",(function(e){e.stopPropagation()}))}))}))},Zi=function(){var e,t=null===(e=document.querySelector(".cmp-astellas-reciteme"))||void 0===e?void 0:e.dataset,n=(null==t?void 0:t.serviceUrl)||"//api.reciteme.com/asset/js?key=",r=(null==t?void 0:t.serviceKey)||"53d2c1dcca2811c07a4d4752c90d8d2c29f64ecc",i={Controls:{Core:{zoomThreshold:Number(null==t?void 0:t.zoomThreshold)||100,maxFontSizePercentage:Number(null==t?void 0:t.maxFontSizePercentage)||140,minFontSizePercentage:Number(null==t?void 0:t.minFontSizePercentage)||30}},Language:{Translate:{enabled:null==t||!t.translateEnabled||"true"===t.translateEnabled}}},o=!(null==t||!t.autoLoad)&&"true"===t.autoLoad,a=(null==t?void 0:t.enableFragment)||"#reciteEnable",s=[],l=!1;function c(e){e+="=";for(var t=document.cookie.split(";"),n=0;n<t.length;n++){for(var r=t[n];" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(e))return r.substring(e.length,r.length)}return null}function d(e){for(var t=n+r,o=0;o<s.length;o++)if(s[o]==t)return;s.push(t),function(e,t){var n=document.createElement("script");n.type="text/javascript",n.readyState?n.onreadystatechange=function(){"loaded"!=n.readyState&&"complete"!=n.readyState||(n.onreadystatechange=null,null!=t&&t())}:null!=t&&(n.onload=function(){t()}),n.src=e,document.getElementsByTagName("head")[0].appendChild(n)}(n+r,(function(){p(),"function"==typeof e&&e(),Recite.load(i),Recite.Event.subscribe("Recite:load",(function(){Recite.enable()}))}))}window.location.hash===a&&(l=!0),"true"==c("Recite.Persist")&&d(),(o&&"false"!=c("Recite.Persist")||l)&&(document.addEventListener?document.addEventListener("DOMContentLoaded",(function(e){d()})):d());var u=(null==t?void 0:t.enableReciteMe)||"reciteme-entrypoint";u&&(document.querySelectorAll(".".concat(u))||document.querySelectorAll("#".concat(u))).forEach((function(e){var t="A"===e.tagName?e:e.querySelector("a");t&&t.addEventListener("click",(function(e){e.preventDefault(),d()}))}));var h=[];function p(){document.querySelectorAll(".material-symbols-rounded").forEach((function(e){var t=window.getComputedStyle(e).fontFamily.replace(/['"]+/g,"");e.style="font-family: '".concat(t,"' !important;")})),null!=t&&t.ignoreStylesBackground&&document.querySelectorAll(null==t?void 0:t.ignoreStylesBackground).forEach((function(e){e.classList.add("recite-ignore-styles-background")})),null!=t&&t.ignoreStylesColor&&document.querySelectorAll(null==t?void 0:t.ignoreStylesColor).forEach((function(e){e.classList.add("recite-ignore-styles-color")})),null!=t&&t.ignoreStylesForeground&&document.querySelectorAll(null==t?void 0:t.ignoreStylesForeground).forEach((function(e){e.classList.add("recite-ignore-styles-foreground")})),null!=t&&t.skipElement&&document.querySelectorAll(null==t?void 0:t.skipElement).forEach((function(e){e.setAttribute("data-recite-skip",!0)})),null!=t&&t.skipTranslateText&&document.querySelectorAll(null==t?void 0:t.skipTranslateText).forEach((function(e){e.setAttribute("data-recite-translate-skip",!0)})),Recite.Event.subscribe("Controls:loaded",(function(){var e;h.length&&(e=h,Recite.Util.each(e,(function(e,t){Recite.Util.each(Recite.Sizzle(".recite-sprite-button-".concat(t)),(function(e,t){t.remove()}))}))),"true"===(null==t?void 0:t.reciteMeLogo)&&(document.querySelector("#recite-logo-header").style.display="none")}))}"true"===(null==t?void 0:t.ttsButton)&&h.push("tts"),"true"===(null==t?void 0:t.focusAudioButton)&&h.push("focusaudio"),"true"===(null==t?void 0:t.backButton)&&h.push("back"),"true"===(null==t?void 0:t.playButton)&&h.push("play"),"true"===(null==t?void 0:t.forwardButton)&&h.push("forward"),"true"===(null==t?void 0:t.focusTextButton)&&h.push("focus-text"),"true"===(null==t?void 0:t.fontMinusButton)&&h.push("font-minus"),"true"===(null==t?void 0:t.fontFamilyButton)&&h.push("font"),"true"===(null==t?void 0:t.fontPlusButton)&&h.push("font-plus"),"true"===(null==t?void 0:t.themesButton)&&h.push("themes"),"true"===(null==t?void 0:t.rulerButton)&&h.push("ruler"),"true"===(null==t?void 0:t.screenMaskButton)&&h.push("screenmask"),"true"===(null==t?void 0:t.pointerSizeButton)&&h.push("pointer-size"),"true"===(null==t?void 0:t.dictionaryButton)&&h.push("dictionary"),"true"===(null==t?void 0:t.translateButton)&&h.push("translate"),"true"===(null==t?void 0:t.textModeButton)&&h.push("textmode"),"true"===(null==t?void 0:t.pageOptionsButton)&&h.push("page-options"),"true"===(null==t?void 0:t.pageStructureButton)&&h.push("page-structure"),"true"===(null==t?void 0:t.mp3DownloadButton)&&h.push("mp3"),"true"===(null==t?void 0:t.magnifierButton)&&h.push("magnifier"),"true"===(null==t?void 0:t.settingsButton)&&h.push("settings"),"true"===(null==t?void 0:t.resetButton)&&h.push("reset"),"true"===(null==t?void 0:t.userGuideButton)&&h.push("userguide")},Ji=function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".cmp-astellas-reciteme").length&&Zi()}))};function Qi(e){return(Qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function to(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
876t%2?eo(Object(n),!0).forEach((function(t){no(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function no(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Qi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Qi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Qi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ro=function(){var e=document.querySelector(".cmp-progressbar");if(e){var t=function(){f>m&&(f=m),f<0&&(f=0);var e=f/m*100;i&&(i.style.width="".concat(e,"%"));var t=document.querySelector(".cmp-progressbar__label--currentStep"),n=document.querySelector(".cmp-progressbar__label--nextStep");if(t&&(t.textContent=f),n&&(n.textContent=m),s&&(s.textContent=f),l&&(l.textContent=m),d&&(d.textContent="".concat(e,"%")),c.setAttribute("aria-valuenow",e),g)for(var r=g.children,o=0;o<r.length;o++)r[o].classList.toggle("filled",o<f)},n=function(){u&&Array.from(h.querySelectorAll(".text")).forEach((function(e,t){e.classList.remove("completed","current"),t+1<f?e.classList.add("completed"):t+1===f&&e.classList.add("current")}))},r=function(e,t){if(u){var n=function(e){if(!e)return null;if(e.dataset&&e.dataset.cmpDataLayer){var t=JSON.parse(e.dataset.cmpDataLayer),n=Object.keys(t)[0];return{id:n,data:t[n]}}return e.id||null}(t);adobeDataLayer.push({event:e,attributes:to({parentId:"dropdown"},n.data)})}},i=document.querySelector(".cmp-progressbar__fill"),o=document.querySelector(".cmp-progressbar__label--currentStep"),a=document.querySelector(".cmp-progressbar__label--nextStep"),s=document.querySelector(".section-current"),l=document.querySelector(".section-total");!o&&s&&(o=s),!a&&l&&(a=l);var c=document.querySelector(".cmp-progressbar__bar--wrapper"),d=document.querySelector(".cmp-progressbar__percentage"),u=document.querySelector(".cmp-progressbar__status-icon span.material-symbols-rounded"),h=document.querySelector(".progress-bar-items"),p=document.querySelector(".progresscontainer"),f=o?Number(o.textContent):null,m=a?Number(a.textContent):null,g=e.querySelector(".cmp-progressbar__segments");if(g&&m>0){g.innerHTML="";for(var v=0;v<m;v++){var y=document.createElement("div");y.className="cmp-progressbar__segment",g.appendChild(y)}}n(),t(),window.progressBarNext=function(){if(f<m)f++,t(),n();else if(f==m){if(u)Array.from(h.querySelectorAll(".text")).forEach((function(e,t){t+1===f&&e.classList.add("completed")}))}},window.progressBarPrevious=function(){f>1&&(f--,t(),n())},u&&(n(),u.addEventListener("click",(function(){p.classList.toggle("show"),u.classList.toggle("active")}))),u&&u.addEventListener("click",(function(e){var t=document.querySelector(".cmp-progressbar__status-icon");e.stopPropagation(),e.preventDefault(),u.classList.contains("active")?r("cmp:show",t.querySelector("a")):r("cmp:hide",t.querySelector("a"))}))}},io=function(){document.addEventListener("DOMContentLoaded",(function(){ro()}))},oo=function(){document.addEventListener("DOMContentLoaded",(function(){var e;e=o()(".skipToMain a").attr("href"),o()(".skipToMain a").on("click",(function(t){var n;"#mainContent"!=e&&(t.preventDefault(),(n=o()("header").next().has(".breadcrumb").length>0?o()("header").next().find(".breadcrumb").closest(".section-container").next():o()("header").next()).attr("tabindex","-1"),n.css("outline","0"),n.trigger("focus"),window.scrollTo(0,0))})),o()(".skipToMain a").on("keydown",(function(t){var n;"#mainContent"!=e&&"Enter"===t.key&&(t.preventDefault(),(n=o()("header").next().has(".breadcrumb").length>0?o()("header").next().find(".breadcrumb").closest(".section-container").next():o()("header").next()).attr("tabindex","-1"),n.css("outline","0"),n.trigger("focus"),window.scrollTo(0,0))}))}))};xi(),ne(),yi(),ae(),s(),l(),c(),d(),h(),p(),f(),m(),y(),b(),_(),w(),x(),C(),S(),E(),k(),I(),L(),M(),j(),H(),se(),ee(),ie(),he(),Ke(),ii(),ai(),fi(),ui(),pi(),mi(),ki(),vi(),Xi(),io(),oo(),$i(),Ki(),Ji(),Ni()}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.