jupytergis-core 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. jupytergis_core/__init__.py +4 -1
  2. jupytergis_core/_version.py +1 -1
  3. jupytergis_core/handler.py +13 -8
  4. jupytergis_core/jgis_ydoc.py +0 -1
  5. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/package.json +4 -5
  6. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/05cd6f9ef7cee99b045d.png +0 -0
  7. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/1f152a2e838d5bc9734a.png +0 -0
  8. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/25add056a64c313112c1.png +0 -0
  9. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/2fd48688b8db6630a98b.png +0 -0
  10. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/342e1e3d19b03b1fe609.png +0 -0
  11. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/36.b2f6adaa2d1def5c163f.js +1 -0
  12. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/378afa99d57ed2ae3412.png +0 -0
  13. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/49aaa70fdbd358566081.png +0 -0
  14. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/552.9f37fbb73d9f60b6c3f3.js +1 -0
  15. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/57.5de96a80fc76b40d5c98.js +8 -0
  16. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/65a5e66f99e9379dfc35.png +0 -0
  17. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/6d8404aa058fc40542b5.png +0 -0
  18. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/777.b41e81dd6b0af001baab.js +2 -0
  19. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/81ffc09a91df6d865b2a.png +0 -0
  20. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/880b33982acf113f7814.png +0 -0
  21. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/91d7eac484745f2cc5be.png +0 -0
  22. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/936.169e398d63d619903349.js +1 -0
  23. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/987b25b09e2ab3aa14c7.png +0 -0
  24. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/991.31397828c39e542d58cd.js +1 -0
  25. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/9d23b9ebf800c009f835.png +0 -0
  26. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/a3d0ada3998dc5eedfd3.png +0 -0
  27. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/b55cd9c1ba258194a75b.png +0 -0
  28. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/c5f242778732b5dc2895.png +0 -0
  29. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/c6533f8919fbd9204588.png +0 -0
  30. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/e48a0a08bd9700f029ef.png +0 -0
  31. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/edf2f8b4d83dca6ed541.png +0 -0
  32. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/f96120c463d07664c2e3.png +0 -0
  33. jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/remoteEntry.2c0a4f1ad6ed25d278ab.js +1 -0
  34. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/third-party-licenses.json +40 -4
  35. {jupytergis_core-0.1.1.dist-info → jupytergis_core-0.1.3.dist-info}/METADATA +1 -1
  36. jupytergis_core-0.1.3.dist-info/RECORD +79 -0
  37. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/037a7a10572d84466a61.png +0 -0
  38. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/1a50c2bb32a2f2725468.png +0 -0
  39. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/2bd6cc5cc336dc14664e.png +0 -0
  40. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/31780c7e8d2544c4aef1.png +0 -0
  41. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/32ef1da9016680ad72ad.png +0 -0
  42. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/34d618e9103c659742b2.png +0 -0
  43. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/36.96b959ec0acca06df9e7.js +0 -1
  44. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/3e2abeb6f399328c6ca3.png +0 -0
  45. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/4d79d4897dde805afe9a.png +0 -0
  46. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/527.4e529cf1d6711d0091d4.js +0 -8
  47. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/552.91f202f2e2714d760f63.js +0 -1
  48. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/5c2774ff9757d8ca7266.png +0 -0
  49. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/609.d2f38c4cae8c4b9d76a8.js +0 -2
  50. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/609.d2f38c4cae8c4b9d76a8.js.LICENSE.txt +0 -1
  51. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/777.bc71fb7e5821a0d2d778.js +0 -2
  52. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/801d7167d999982b47a6.png +0 -0
  53. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/91eea6f15a4d37354193.png +0 -0
  54. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/991.56c7d43ea8c85659e849.js +0 -1
  55. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/99cba4f26941e905077c.png +0 -0
  56. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/a1aec2703ff3dd7cad5c.png +0 -0
  57. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/a35b106d2ed63c9415d8.png +0 -0
  58. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/a9e04491802b61881be7.png +0 -0
  59. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/c8b81779c65fdb3c3fa5.png +0 -0
  60. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/c9d6b533d9149f46ebb0.png +0 -0
  61. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/dbd44be87657cc8485b9.png +0 -0
  62. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/dc7cea97d06a8a3d2814.png +0 -0
  63. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/f583a55ec54e8fe27ec6.png +0 -0
  64. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/fd9328315a97a67c95ab.png +0 -0
  65. jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/remoteEntry.f3adbeb4239acca483c6.js +0 -1
  66. jupytergis_core-0.1.1.dist-info/RECORD +0 -80
  67. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/etc/jupyter/jupyter_server_config.d/jupytergis_core.json +0 -0
  68. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/034e72037478aea1bd04.png +0 -0
  69. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/062a9554f6b4caac9713.png +0 -0
  70. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/064f37cecb8130ad66e8.png +0 -0
  71. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/08da2741746ddab81d04.png +0 -0
  72. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/154.0d16fbe1d1182d138b2c.js +0 -0
  73. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/197.34d9096e78e2f4b7138c.js +0 -0
  74. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/1d440270da19a2f22fee.png +0 -0
  75. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/226.280aa14a2e4c0654c374.js +0 -0
  76. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/27.aea9e291ba3dd16790fb.js +0 -0
  77. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/27.aea9e291ba3dd16790fb.js.LICENSE.txt +0 -0
  78. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/2b3d42a470b5ce14859a.png +0 -0
  79. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/32c7a73662cceb5bb1d7.png +0 -0
  80. /jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/gdal3WebAssembly.wasm → /jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/350eec4ce9ae4bc10bca.wasm +0 -0
  81. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/363ca7c5f78deb6fd033.png +0 -0
  82. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/366.33cb40029b4f4da3d3ad.js +0 -0
  83. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/3d48be10ffea86eb15de.png +0 -0
  84. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/407.fa2f7a0dc4d3371a5e2c.js +0 -0
  85. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/432.19e693d578a221132366.js +0 -0
  86. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/460.a2074380632031c05e8d.js +0 -0
  87. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/472.08add5249d72d563ba32.js +0 -0
  88. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/4ed4ae4121d38d85100b.png +0 -0
  89. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/509.0d58394cd3a34bdbd0b9.js +0 -0
  90. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/542.3038c6cef679f15b8d9a.js +0 -0
  91. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/555.7d0c1d2ee9e49a619cb9.js +0 -0
  92. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/557.fe291f5575a15c36d24c.js +0 -0
  93. /jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/527.4e529cf1d6711d0091d4.js.LICENSE.txt → /jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/57.5de96a80fc76b40d5c98.js.LICENSE.txt +0 -0
  94. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/618.86523276f857e0a3362e.js +0 -0
  95. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/733.9bce9fdd113869d413d0.js +0 -0
  96. /jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/777.bc71fb7e5821a0d2d778.js.LICENSE.txt → /jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/777.b41e81dd6b0af001baab.js.LICENSE.txt +0 -0
  97. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/803.959deb5eafbb3ab489c6.js +0 -0
  98. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/9ed013096549f2bf7c22.png +0 -0
  99. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/aa0d1282df07ef3c385f.png +0 -0
  100. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/ae2589dc6f6090080a25.png +0 -0
  101. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/bf9c5537f242b3244cfd.png +0 -0
  102. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/d0917c2edc1eee1562a2.png +0 -0
  103. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/d7eb57ad53f788b1fa92.png +0 -0
  104. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/d83457b1b925c1718f6d.png +0 -0
  105. /jupytergis_core-0.1.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/gdal3WebAssembly.data → /jupytergis_core-0.1.3.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/e473e1e9f20af114bbb4.data +0 -0
  106. {jupytergis_core-0.1.1.data → jupytergis_core-0.1.3.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/style.js +0 -0
  107. {jupytergis_core-0.1.1.dist-info → jupytergis_core-0.1.3.dist-info}/WHEEL +0 -0
  108. {jupytergis_core-0.1.1.dist-info → jupytergis_core-0.1.3.dist-info}/entry_points.txt +0 -0
  109. {jupytergis_core-0.1.1.dist-info → jupytergis_core-0.1.3.dist-info}/licenses/LICENSE +0 -0
@@ -1,8 +0,0 @@
1
- /*! For license information please see 527.4e529cf1d6711d0091d4.js.LICENSE.txt */
2
- (self.webpackChunk_jupytergis_jupytergis_core=self.webpackChunk_jupytergis_jupytergis_core||[]).push([[527],{72858:(e,t,r)=>{"use strict";r.d(t,{q:()=>ae});var n=r(93345),i=r.n(n);const o=function(e,t=console.error){let r,n;return class extends i().Component{constructor(){super(...arguments),this.displayName="AsyncComponent",this.state={__async_component:null}}componentDidMount(){null==r?(null==n&&(n=e().then((e=>r=e))),n.then((()=>this.componentWasCached())).catch(t)):this.componentWasCached()}componentWasCached(){this.setState({__async_component:r})}render(){const e=this.state.__async_component;return null==e?i().createElement("div",{className:"jp-Spinner"},i().createElement("div",{className:"jp-SpinnerContent"})):i().createElement(e,Object.assign({},this.props),this.props.children)}}}((async()=>{const{withTheme:e}=await Promise.resolve().then(r.bind(r,72192));return e((await r.e(366).then(r.bind(r,38366))).default)}));var s=r(12200),a=r(44993),l=r(81473),c=r(2678),u=r(64053),h=r(29452),d=r.n(h);let f={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const p=/[&<>"']/,m=new RegExp(p.source,"g"),g=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,y=new RegExp(g.source,"g"),v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_=e=>v[e];function b(e,t){if(t){if(p.test(e))return e.replace(m,_)}else if(g.test(e))return e.replace(y,_);return e}const w=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function E(e){return e.replace(w,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const x=/(^|[^\[])\^/g;function S(e,t){e="string"==typeof e?e:e.source,t=t||"";const r={replace:(t,n)=>(n=(n=n.source||n).replace(x,"$1"),e=e.replace(t,n),r),getRegex:()=>new RegExp(e,t)};return r}const A=/[^\w:]/g,T=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(e,t,r){if(e){let e;try{e=decodeURIComponent(E(r)).replace(A,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!T.test(r)&&(r=function(e,t){C[" "+e]||(O.test(e)?C[" "+e]=e+"/":C[" "+e]=F(e,"/",!0));const r=-1===(e=C[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(R,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(D,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}const C={},O=/^[^:]+:\/*[^/]*$/,R=/^([^:]+:)[\s\S]*$/,D=/^([^:]+:\/*[^/]*)[\s\S]*$/,I={exec:function(){}};function k(e,t){const r=e.replace(/\|/g,((e,t,r)=>{let n=!1,i=t;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"})).split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function F(e,t,r){const n=e.length;if(0===n)return"";let i=0;for(;i<n;){const o=e.charAt(n-i-1);if(o!==t||r){if(o===t||!r)break;i++}else i++}return e.slice(0,n-i)}function j(e,t){if(t<1)return"";let r="";for(;t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function L(e,t,r,n){const i=t.href,o=t.title?b(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;const e={type:"link",raw:r,href:i,title:o,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,e}return{type:"image",raw:r,href:i,title:o,text:b(s)}}class M{constructor(e){this.options=e||f}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:F(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],r=function(e,t){const r=e.match(/^(\s+)(?:```)/);if(null===r)return t;const n=r[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[r]=t;return r.length>=n.length?e.slice(n.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=F(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;const n=this.lexer.blockTokens(e);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:n,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,i,o,s,a,l,c,u,h,d,f,p=t[1].trim();const m=p.length>1,g={type:"list",raw:"",ordered:m,start:m?+p.slice(0,-1):"",loose:!1,items:[]};p=m?`\\d{1,9}\\${p.slice(-1)}`:`\\${p}`,this.options.pedantic&&(p=m?p:"[*+-]");const y=new RegExp(`^( {0,3}${p})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,t=y.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),u=e.split("\n",1)[0],this.options.pedantic?(o=2,d=c.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,d=c.slice(o),o+=t[1].length),a=!1,!c&&/^ *$/.test(u)&&(r+=u+"\n",e=e.substring(u.length+1),f=!0),!f){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),i=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),s=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(h=e.split("\n",1)[0],u=h,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!i.test(u))&&!s.test(u)&&!t.test(u)&&!n.test(e);){if(u.search(/[^ ]/)>=o||!u.trim())d+="\n"+u.slice(o);else{if(a)break;if(c.search(/[^ ]/)>=4)break;if(i.test(c))break;if(s.test(c))break;if(n.test(c))break;d+="\n"+u}a||u.trim()||(a=!0),r+=h+"\n",e=e.substring(h.length+1),c=u.slice(o)}}g.loose||(l?g.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(d),n&&(i="[ ] "!==n[0],d=d.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:r,task:!!n,checked:i,loose:!1,text:d}),g.raw+=r}g.items[g.items.length-1].raw=r.trimRight(),g.items[g.items.length-1].text=d.trimRight(),g.raw=g.raw.trimRight();const v=g.items.length;for(s=0;s<v;s++)if(this.lexer.state.top=!1,g.items[s].tokens=this.lexer.blockTokens(g.items[s].text,[]),!g.loose){const e=g.items[s].tokens.filter((e=>"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));g.loose=t}if(g.loose)for(s=0;s<v;s++)g.items[s].loose=!0;return g}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const r=this.options.sanitizer?this.options.sanitizer(t[0]):b(t[0]);e.type="paragraph",e.text=r,e.tokens=this.lexer.inline(r)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),r=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:k(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let r,n,i,o,s=e.align.length;for(r=0;r<s;r++)/^ *-+: *$/.test(e.align[r])?e.align[r]="right":/^ *:-+: *$/.test(e.align[r])?e.align[r]="center":/^ *:-+ *$/.test(e.align[r])?e.align[r]="left":e.align[r]=null;for(s=e.rows.length,r=0;r<s;r++)e.rows[r]=k(e.rows[r],e.header.length).map((e=>({text:e})));for(s=e.header.length,n=0;n<s;n++)e.header[n].tokens=this.lexer.inline(e.header[n].text);for(s=e.rows.length,n=0;n<s;n++)for(o=e.rows[n],i=0;i<o.length;i++)o[i].tokens=this.lexer.inline(o[i].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:b(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):b(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=F(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const r=e.length;let n=0,i=0;for(;i<r;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return-1}(t[2],"()");if(e>-1){const r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(r=this.options.pedantic&&!/>$/.test(e)?r.slice(1):r.slice(1,-1)),L(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:n?n.replace(this.rules.inline._escapes,"$1"):n},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=(r[2]||r[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return L(r,e,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n)return;if(n[3]&&r.match(/[\p{L}\p{N}]/u))return;const i=n[1]||n[2]||"";if(!i||i&&(""===r||this.rules.inline.punctuation.exec(r))){const r=n[0].length-1;let i,o,s=r,a=0;const l="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=l.exec(t));){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i)continue;if(o=i.length,n[3]||n[4]){s+=o;continue}if((n[5]||n[6])&&r%3&&!((r+o)%3)){a+=o;continue}if(s-=o,s>0)continue;o=Math.min(o,o+s+a);const t=e.slice(0,r+n.index+(n[0].length-i.length)+o);if(Math.min(r,o)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const l=t.slice(2,-2);return{type:"strong",raw:t,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const r=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return r&&n&&(e=e.substring(1,e.length-1)),e=b(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let e,n;return"@"===r[2]?(e=b(this.options.mangle?t(r[1]):r[1]),n="mailto:"+e):(e=b(r[1]),n=e),{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=b(this.options.mangle?t(r[0]):r[0]),n="mailto:"+e;else{let t;do{t=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(t!==r[0]);e=b(r[0]),n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):b(r[0]):r[0]:b(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:e}}}}const N={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:I,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};N.def=S(N.def).replace("label",N._label).replace("title",N._title).getRegex(),N.bullet=/(?:[*+-]|\d{1,9}[.)])/,N.listItemStart=S(/^( *)(bull) */).replace("bull",N.bullet).getRegex(),N.list=S(N.list).replace(/bull/g,N.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+N.def.source+")").getRegex(),N._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",N._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,N.html=S(N.html,"i").replace("comment",N._comment).replace("tag",N._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),N.paragraph=S(N._paragraph).replace("hr",N.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",N._tag).getRegex(),N.blockquote=S(N.blockquote).replace("paragraph",N.paragraph).getRegex(),N.normal={...N},N.gfm={...N.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},N.gfm.table=S(N.gfm.table).replace("hr",N.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",N._tag).getRegex(),N.gfm.paragraph=S(N._paragraph).replace("hr",N.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",N.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",N._tag).getRegex(),N.pedantic={...N.normal,html:S("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",N._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:I,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:S(N.normal._paragraph).replace("hr",N.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",N.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const $={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:I,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:I,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function G(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function z(e){let t,r,n="";const i=e.length;for(t=0;t<i;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}$._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",$.punctuation=S($.punctuation).replace(/punctuation/g,$._punctuation).getRegex(),$.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,$.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,$._comment=S(N._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),$.emStrong.lDelim=S($.emStrong.lDelim).replace(/punct/g,$._punctuation).getRegex(),$.emStrong.rDelimAst=S($.emStrong.rDelimAst,"g").replace(/punct/g,$._punctuation).getRegex(),$.emStrong.rDelimUnd=S($.emStrong.rDelimUnd,"g").replace(/punct/g,$._punctuation).getRegex(),$._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,$._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,$._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,$.autolink=S($.autolink).replace("scheme",$._scheme).replace("email",$._email).getRegex(),$._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,$.tag=S($.tag).replace("comment",$._comment).replace("attribute",$._attribute).getRegex(),$._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,$._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,$.link=S($.link).replace("label",$._label).replace("href",$._href).replace("title",$._title).getRegex(),$.reflink=S($.reflink).replace("label",$._label).replace("ref",N._label).getRegex(),$.nolink=S($.nolink).replace("ref",N._label).getRegex(),$.reflinkSearch=S($.reflinkSearch,"g").replace("reflink",$.reflink).replace("nolink",$.nolink).getRegex(),$.normal={...$},$.pedantic={...$.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:S(/^!?\[(label)\]\((.*?)\)/).replace("label",$._label).getRegex(),reflink:S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$._label).getRegex()},$.gfm={...$.normal,escape:S($.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},$.gfm.url=S($.gfm.url,"i").replace("email",$.gfm._extended_email).getRegex(),$.breaks={...$.gfm,br:S($.br).replace("{2,}","*").getRegex(),text:S($.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class U{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||f,this.options.tokenizer=this.options.tokenizer||new M,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:N.normal,inline:$.normal};this.options.pedantic?(t.block=N.pedantic,t.inline=$.pedantic):this.options.gfm&&(t.block=N.gfm,this.options.breaks?t.inline=$.breaks:t.inline=$.gfm),this.tokenizer.rules=t}static get rules(){return{block:N,inline:$}}static lex(e,t){return new U(t).lex(e)}static lexInline(e,t){return new U(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let r,n,i,o;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,r)=>t+" ".repeat(r.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i)))n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),o=i.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,i,o,s,a,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+j("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+j("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index+o[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(s||(a=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,a))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,z))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,z))){if(i=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i,G))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(a=r.raw.slice(-1)),s=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(r.raw.length),t.push(r);return t}}class B{constructor(e){this.options=e||f}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,n);null!=t&&t!==e&&(r=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+b(n)+'">'+(r?e:b(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:b(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,r,n){return this.options.headerIds?`<h${t} id="${this.options.headerPrefix+n.slug(r)}">${e}</h${t}>\n`:`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,r){const n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){if(null===(e=P(this.options.sanitize,this.options.baseUrl,e)))return r;let n='<a href="'+e+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>",n}image(e,t,r){if(null===(e=P(this.options.sanitize,this.options.baseUrl,e)))return r;let n=`<img src="${e}" alt="${r}"`;return t&&(n+=` title="${t}"`),n+=this.options.xhtml?"/>":">",n}text(e){return e}}class V{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class K{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{n++,r=e+"-"+n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}class q{constructor(e){this.options=e||f,this.options.renderer=this.options.renderer||new B,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new V,this.slugger=new K}static parse(e,t){return new q(t).parse(e)}static parseInline(e,t){return new q(t).parseInline(e)}parse(e,t=!0){let r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v,_,b,w="";const x=e.length;for(r=0;r<x;r++)if(h=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[h.type]&&(b=this.options.extensions.renderers[h.type].call({parser:this},h),!1!==b||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)))w+=b||"";else switch(h.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(h.tokens),h.depth,E(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(c="",l="",o=h.header.length,n=0;n<o;n++)l+=this.renderer.tablecell(this.parseInline(h.header[n].tokens),{header:!0,align:h.align[n]});for(c+=this.renderer.tablerow(l),u="",o=h.rows.length,n=0;n<o;n++){for(a=h.rows[n],l="",s=a.length,i=0;i<s;i++)l+=this.renderer.tablecell(this.parseInline(a[i].tokens),{header:!1,align:h.align[i]});u+=this.renderer.tablerow(l)}w+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(h.tokens),w+=this.renderer.blockquote(u);continue;case"list":for(d=h.ordered,f=h.start,p=h.loose,o=h.items.length,u="",n=0;n<o;n++)g=h.items[n],y=g.checked,v=g.task,m="",g.task&&(_=this.renderer.checkbox(y),p?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=_+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=_+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:_}):m+=_),m+=this.parse(g.tokens,p),u+=this.renderer.listitem(m,v,y);w+=this.renderer.list(u,d,f);continue;case"html":w+=this.renderer.html(h.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(u=h.tokens?this.parseInline(h.tokens):h.text;r+1<x&&"text"===e[r+1].type;)h=e[++r],u+="\n"+(h.tokens?this.parseInline(h.tokens):h.text);w+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let r,n,i,o="";const s=e.length;for(r=0;r<s;r++)if(n=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]&&(i=this.options.extensions.renderers[n.type].call({parser:this},n),!1!==i||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)))o+=i||"";else switch(n.type){case"escape":case"text":o+=t.text(n.text);break;case"html":o+=t.html(n.text);break;case"link":o+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":o+=t.image(n.href,n.title,n.text);break;case"strong":o+=t.strong(this.parseInline(n.tokens,t));break;case"em":o+=t.em(this.parseInline(n.tokens,t));break;case"codespan":o+=t.codespan(n.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(n.tokens,t));break;default:{const e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return o}}class W{constructor(e){this.options=e||f}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(e){return e}postprocess(e){return e}}function H(e,t){return(r,n,i)=>{"function"==typeof n&&(i=n,n=null);const o={...n},s=function(e,t,r){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+b(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):r?void r(null,e):e}if(t)return Promise.reject(n);if(!r)throw n;r(n)}}((n={...Y.defaults,...o}).silent,n.async,i);if(null==r)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(n),n.hooks&&(n.hooks.options=n),i){const o=n.highlight;let a;try{n.hooks&&(r=n.hooks.preprocess(r)),a=e(r,n)}catch(e){return s(e)}const l=function(e){let r;if(!e)try{n.walkTokens&&Y.walkTokens(a,n.walkTokens),r=t(a,n),n.hooks&&(r=n.hooks.postprocess(r))}catch(t){e=t}return n.highlight=o,e?s(e):i(null,r)};if(!o||o.length<3)return l();if(delete n.highlight,!a.length)return l();let c=0;return Y.walkTokens(a,(function(e){"code"===e.type&&(c++,setTimeout((()=>{o(e.text,e.lang,(function(t,r){if(t)return l(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),c--,0===c&&l()}))}),0))})),void(0===c&&l())}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then((t=>e(t,n))).then((e=>n.walkTokens?Promise.all(Y.walkTokens(e,n.walkTokens)).then((()=>e)):e)).then((e=>t(e,n))).then((e=>n.hooks?n.hooks.postprocess(e):e)).catch(s);try{n.hooks&&(r=n.hooks.preprocess(r));const i=e(r,n);n.walkTokens&&Y.walkTokens(i,n.walkTokens);let o=t(i,n);return n.hooks&&(o=n.hooks.postprocess(o)),o}catch(e){return s(e)}}}function Y(e,t,r){return H(U.lex,q.parse)(e,t,r)}Y.options=Y.setOptions=function(e){var t;return Y.defaults={...Y.defaults,...e},t=Y.defaults,f=t,Y},Y.getDefaults=function(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},Y.defaults=f,Y.use=function(...e){const t=Y.defaults.extensions||{renderers:{},childTokens:{}};e.forEach((e=>{const r={...e};if(r.async=Y.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),r.extensions=t),e.renderer){const t=Y.defaults.renderer||new B;for(const r in e.renderer){const n=t[r];t[r]=(...i)=>{let o=e.renderer[r].apply(t,i);return!1===o&&(o=n.apply(t,i)),o}}r.renderer=t}if(e.tokenizer){const t=Y.defaults.tokenizer||new M;for(const r in e.tokenizer){const n=t[r];t[r]=(...i)=>{let o=e.tokenizer[r].apply(t,i);return!1===o&&(o=n.apply(t,i)),o}}r.tokenizer=t}if(e.hooks){const t=Y.defaults.hooks||new W;for(const r in e.hooks){const n=t[r];W.passThroughHooks.has(r)?t[r]=i=>{if(Y.defaults.async)return Promise.resolve(e.hooks[r].call(t,i)).then((e=>n.call(t,e)));const o=e.hooks[r].call(t,i);return n.call(t,o)}:t[r]=(...i)=>{let o=e.hooks[r].apply(t,i);return!1===o&&(o=n.apply(t,i)),o}}r.hooks=t}if(e.walkTokens){const t=Y.defaults.walkTokens;r.walkTokens=function(r){let n=[];return n.push(e.walkTokens.call(this,r)),t&&(n=n.concat(t.call(this,r))),n}}Y.setOptions(r)}))},Y.walkTokens=function(e,t){let r=[];for(const n of e)switch(r=r.concat(t.call(Y,n)),n.type){case"table":for(const e of n.header)r=r.concat(Y.walkTokens(e.tokens,t));for(const e of n.rows)for(const n of e)r=r.concat(Y.walkTokens(n.tokens,t));break;case"list":r=r.concat(Y.walkTokens(n.items,t));break;default:Y.defaults.extensions&&Y.defaults.extensions.childTokens&&Y.defaults.extensions.childTokens[n.type]?Y.defaults.extensions.childTokens[n.type].forEach((function(e){r=r.concat(Y.walkTokens(n[e],t))})):n.tokens&&(r=r.concat(Y.walkTokens(n.tokens,t)))}return r},Y.parseInline=H(U.lexInline,q.parseInline),Y.Parser=q,Y.parser=q.parse,Y.Renderer=B,Y.TextRenderer=V,Y.Lexer=U,Y.lexer=U.lex,Y.Tokenizer=M,Y.Slugger=K,Y.Hooks=W,Y.parse=Y,Y.options,Y.setOptions,Y.use,Y.walkTokens,Y.parseInline,q.parse,U.lex;const X=/(\$\$?|\\(?:begin|end)\{[a-z]*\*?\}|\\[{}$]|[{}]|(?:\n\s*)+|@@\d+@@|\\\\(?:\(|\)|\[|\]))/i;function Z(e,t,r,n,i){let o=i.slice(e,t+1).join("").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");for(navigator&&"Microsoft Internet Explorer"===navigator.appName&&(o=o.replace(/(%[^\n]*)\n/g,"$1<br/>\n"));t>e;)i[t]="",t--;return i[e]="@@"+n.length+"@@",r&&(o=r(o)),n.push(o),i}var J;async function Q(e){const{host:t,source:r}=e,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["host","source"]);if(!r)return void(t.textContent="");const i=function(e){const t=[];let r,n=null,i=null,o=null,s=0;e.includes("`")||e.includes("~~~")?(e=e.replace(/~/g,"~T").replace(/^(?<fence>`{3,}|(~T){3,})[^`\n]*\n([\s\S]*?)^\k<fence>`*$/gm,(e=>e.replace(/\$/g,"~D"))).replace(/(^|[^\\])(`+)([^\n]*?[^`\n])\2(?!`)/gm,(e=>e.replace(/\$/g,"~D"))),r=e=>e.replace(/~([TD])/g,((e,t)=>"T"===t?"~":"$"))):r=e=>e;let a=e.replace(/\r\n?/g,"\n").split(X);for(let e=1,l=a.length;e<l;e+=2){const l=a[e];"@"===l.charAt(0)?(a[e]="@@"+t.length+"@@",t.push(l)):null!==n?l===i?s?o=e:(a=Z(n,e,r,t,a),n=null,i=null,o=null):l.match(/\n.*\n/)?(null!==o&&(e=o,a=Z(n,e,r,t,a)),n=null,i=null,o=null,s=0):"{"===l?s++:"}"===l&&s&&s--:"$"===l||"$$"===l?(n=e,i=l,s=0):"\\\\("===l||"\\\\["===l?(n=e,i="("===l.slice(-1)?"\\\\)":"\\\\]",s=0):"begin"===l.substr(1,5)&&(n=e,i="\\end"+l.substr(6),s=0)}return null!==n&&null!==o&&(a=Z(n,o,r,t,a),n=null,i=null,o=null),{text:r(a.join("")),math:t}}(r);let o=await Q.renderMarked(i.text);var s,a;s=o,a=i.math,o=s.replace(/@@(\d+)@@/g,((e,t)=>{let r=a[t];return"\\\\("===r.substr(0,3)&&"\\\\)"===r.substr(r.length-3)?r="\\("+r.substring(3,r.length-3)+"\\)":"\\\\["===r.substr(0,3)&&"\\\\]"===r.substr(r.length-3)&&(r="\\["+r.substring(3,r.length-3)+"\\]"),r})),await function(e){let{host:t,source:r,trusted:n,sanitizer:i,resolver:o,linkHandler:s,shouldTypeset:a,latexTypesetter:l,translator:u}=e;u=u||c.nullTranslator;const h=null==u?void 0:u.load("jupyterlab");let d,f=r;if(!r)return t.textContent="",Promise.resolve(void 0);if(n||(f=`${r}`,r=i.sanitize(r)),t.innerHTML=r,t.getElementsByTagName("script").length>0)if(n)J.evalInnerHTMLScriptTags(t);else{const e=document.createElement("div"),r=document.createElement("pre");r.textContent=h.__("This HTML output contains inline scripts. Are you sure that you want to run arbitrary Javascript within your JupyterLab session?");const n=document.createElement("button");n.textContent=h.__("Run"),n.onclick=e=>{t.innerHTML=f,J.evalInnerHTMLScriptTags(t),t.firstChild&&t.removeChild(t.firstChild)},e.appendChild(r),e.appendChild(n),t.insertBefore(e,t.firstChild)}return J.handleDefaults(t,o),d=o?J.handleUrls(t,o,s):Promise.resolve(void 0),d.then((()=>{a&&l&&l.typeset(t)}))}(Object.assign({host:t,source:o},n)),J.headerAnchors(t)}!function(e){e.renderMarked=function(e){return J.initializeMarked(),new Promise(((t,r)=>{Y(e,((e,n)=>{e?r(e):t(n)}))}))}}(Q||(Q={})),function(e){async function t(e,t,r){const n=e.getAttribute(t)||"",i=r.isLocal?r.isLocal(n):l.URLExt.isLocal(n);if(n&&i)try{const i=await r.resolveUrl(n);let o=await r.getDownloadUrl(i);"data:"!==l.URLExt.parse(o).protocol&&(o+=(/\?/.test(o)?"&":"?")+(new Date).getTime()),e.setAttribute(t,o)}catch(r){throw e.setAttribute(t,""),r}}function r(e,t,r){let n=e.getAttribute("href")||"";const i=t.isLocal?t.isLocal(n):l.URLExt.isLocal(n);if(!n||!i)return Promise.resolve(void 0);const o=e.hash;if(o){if(o===n)return e.target="_self",Promise.resolve(void 0);n=n.replace(o,"")}return t.resolveUrl(n).then((n=>{const i=decodeURIComponent(n);return r&&r.handleLink(e,i,o),t.getDownloadUrl(n)})).then((t=>{e.href=t+o})).catch((t=>{e.href=""}))}e.evalInnerHTMLScriptTags=function(e){const t=(0,u.toArray)(e.getElementsByTagName("script"));for(const e of t){if(!e.parentNode)continue;const t=document.createElement("script"),r=e.attributes;for(let e=0,n=r.length;e<n;++e){const{name:n,value:i}=r[e];t.setAttribute(n,i)}t.textContent=e.textContent,e.parentNode.replaceChild(t,e)}},e.handleDefaults=function(e,t){const r=e.getElementsByTagName("a");for(let e=0;e<r.length;e++){const n=r[e];if(!(n instanceof HTMLAnchorElement))continue;const i=n.href,o=t&&t.isLocal?t.isLocal(i):l.URLExt.isLocal(i);n.target||(n.target=o?"_self":"_blank"),o||(n.rel="noopener")}const n=e.getElementsByTagName("img");for(let e=0;e<n.length;e++)n[e].alt||(n[e].alt="Image")},e.handleUrls=function(e,n,i){const o=[],s=e.querySelectorAll("*[src]");for(let e=0;e<s.length;e++)o.push(t(s[e],"src",n));const a=e.getElementsByTagName("a");for(let e=0;e<a.length;e++)o.push(r(a[e],n,i));const l=e.getElementsByTagName("link");for(let e=0;e<l.length;e++)o.push(t(l[e],"href",n));return Promise.all(o).then((()=>{}))},e.headerAnchors=function(e){var t;const r=["h1","h2","h3","h4","h5","h6"];for(const n of r){const r=e.getElementsByTagName(n);for(let e=0;e<r.length;e++){const n=r[e];n.id=(null!==(t=n.textContent)&&void 0!==t?t:"").replace(/ /g,"-");const i=document.createElement("a");i.target="_self",i.textContent="¶",i.href="#"+n.id,i.classList.add("jp-InternalAnchorLink"),n.appendChild(i)}}};let n=!1;e.initializeMarked=function(){n||(n=!0,Y.setOptions({gfm:!0,sanitize:!1,langPrefix:`cm-s-${a.CodeMirrorEditor.defaultConfig.theme} language-`,highlight:(e,t,r)=>{const n=(e,t)=>(r&&r(e,t),t);return t?(a.Mode.ensure(t).then((r=>{const i=document.createElement("div");if(!r)return console.error(`No CodeMirror mode: ${t}`),n(null,e);try{return a.Mode.run(e,r.mime,i),n(null,i.innerHTML)}catch(r){return console.error(`Failed to highlight ${t} code`,r),n(r,e)}})).catch((r=>(console.error(`No CodeMirror mode: ${t}`),console.error(`Require CodeMirror mode error: ${r}`),n(null,e)))),e):n(null,e)}}))};const i=["ansi-black","ansi-red","ansi-green","ansi-yellow","ansi-blue","ansi-magenta","ansi-cyan","ansi-white","ansi-black-intense","ansi-red-intense","ansi-green-intense","ansi-yellow-intense","ansi-blue-intense","ansi-magenta-intense","ansi-cyan-intense","ansi-white-intense"];function o(e,t,r,n,o,s,a){if(e){const l=[],c=[];n&&"number"==typeof t&&0<=t&&t<8&&(t+=8),s&&([t,r]=[r,t]),"number"==typeof t?l.push(i[t]+"-fg"):t.length?c.push(`color: rgb(${t})`):s&&l.push("ansi-default-inverse-fg"),"number"==typeof r?l.push(i[r]+"-bg"):r.length?c.push(`background-color: rgb(${r})`):s&&l.push("ansi-default-inverse-bg"),n&&l.push("ansi-bold"),o&&l.push("ansi-underline"),l.length||c.length?(a.push("<span"),l.length&&a.push(` class="${l.join(" ")}"`),c.length&&a.push(` style="${c.join("; ")}"`),a.push(">"),a.push(e),a.push("</span>")):a.push(e)}}function s(e){let t,r,n;const i=e.shift();if(2===i&&e.length>=3){if(t=e.shift(),r=e.shift(),n=e.shift(),[t,r,n].some((e=>e<0||255<e)))throw new RangeError("Invalid range for RGB colors")}else{if(!(5===i&&e.length>=1))throw new RangeError("Invalid extended color specification");{const i=e.shift();if(i<0)throw new RangeError("Color index must be >= 0");if(i<16)return i;if(i<232)t=Math.floor((i-16)/36),t=t>0?55+40*t:0,r=Math.floor((i-16)%36/6),r=r>0?55+40*r:0,n=(i-16)%6,n=n>0?55+40*n:0;else{if(!(i<256))throw new RangeError("Color index must be < 256");t=r=n=10*(i-232)+8}}}return[t,r,n]}e.ansiSpan=function(e){const t=/\x1b\[(.*?)([@-~])/g;let r,n=[],i=[],a=!1,l=!1,c=!1;const u=[],h=[];let f=0;for(e=d()(e),e+="";r=t.exec(e);){if("m"===r[2]){const e=r[1].split(";");for(let t=0;t<e.length;t++){const r=e[t];if(""===r)h.push(0);else{if(-1===r.search(/^\d+$/)){h.length=0;break}h.push(parseInt(r,10))}}}for(o(e.substring(f,r.index),n,i,a,l,c,u),f=t.lastIndex;h.length;){const e=h.shift();switch(e){case 0:n=i=[],a=!1,l=!1,c=!1;break;case 1:case 5:a=!0;break;case 4:l=!0;break;case 7:c=!0;break;case 21:case 22:a=!1;break;case 24:l=!1;break;case 27:c=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:n=e-30;break;case 38:try{n=s(h)}catch(e){h.length=0}break;case 39:n=[];break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:i=e-40;break;case 48:try{i=s(h)}catch(e){h.length=0}break;case 49:i=[];break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:n=e-90+8;break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:i=e-100+8}}}return u.join("")}}(J||(J={}));var ee=r(74602);class te extends s.VDomModel{constructor(e,t,r){super(),this._errors=[],this._errorsObserved=!1,this._rendered=new ee.Signal(this),this._liveMarkdown=!1,this.schema=e,t&&(this.props=t,t.formData&&(this._formData=t.formData)),r&&(this._markdown=r.markdown||null,this._liveMarkdown=null!=r.liveMarkdown?r.liveMarkdown:this._liveMarkdown)}get errors(){return this._errors}set errors(e){this._errors=e,this.stateChanged.emit(void 0)}get formData(){return this._formData}set formData(e){this._formData=e,this.stateChanged.emit(void 0)}get schema(){return this._schema}set schema(e){this._schema=e,this.stateChanged.emit(void 0)}set uiSchema(e){this._props.uiSchema=e,this.stateChanged.emit(void 0)}get uiSchema(){return this._props.uiSchema}get props(){return this._props}set props(e){this._props=e,this.stateChanged.emit(void 0)}get errorsObserved(){return this._errorsObserved}set errorsObserved(e){e!==this._errorsObserved&&(this._errorsObserved=e,this.stateChanged.emit(void 0))}get rendered(){return this._rendered}emitRenderered(){this._rendered.emit(void 0)}get markdown(){return this._markdown}get liveMarkdown(){return this._liveMarkdown}set liveMarkdown(e){this._liveMarkdown=e,this.stateChanged.emit(void 0)}}const re=["jp-RenderedMarkdown","jp-RenderedHTMLCommon"],ne=["legend",".field-description",".control-label",".help-block",".field-radio-group .radio > label > span > span",".field-boolean .checkbox > label > span"],ie=ne.join(", "),oe=ne.map((e=>`${e}:not(.jp-RenderedMarkdown)`)).join(", "),se="jp-SchemaForm-markdown";class ae extends s.VDomRenderer{constructor(e,t={},r){super(new te(e,t,r)),this._renderMarkdown=async()=>{const e=Array.from(this.node.querySelectorAll(this.model.liveMarkdown?oe:ie));if(!e.length&&!this._initialRender)return this._initialRenderDelay=2*this._initialRenderDelay,void setTimeout(this._renderMarkdown,this._initialRenderDelay);this._initialRender=!0,await Promise.all(e.map(this._renderOneMarkdown))},this._renderOneMarkdown=async e=>{if(e.querySelector(`.${se}`))return;const t=this.model.markdown;if(null==t)return;const{textContent:r,dataset:n}=e,{rawMarkdown:i}=n,o=i||r;if(null==o||!o.trim())return;r&&(n.rawMarkdown=r),e.classList.add(...re),await Q({host:e,source:i||r||"",trusted:!0,sanitizer:t.sanitizer,latexTypesetter:t.latexTypesetter,resolver:t.resolver,linkHandler:t.linkHandler,shouldTypeset:!0});const s=document.createElement("span");s.className=se,e.appendChild(s)},this._postRender=()=>{this.model.errorsObserved=!!this.node.querySelector(".errors"),this.model.emitRenderered()},this._initialRender=!1,this._initialRenderDelay=10,this._idPrefix=`id-jp-schemaform-${le.nextId()}`,this.model.markdown&&this.model.rendered.connect(this._renderMarkdown)}render(){if(!this.model)return null;const{schema:e,props:t,formData:r}=this.model,n=`jp-SchemaForm ${t.className||""}`.trim(),s=Object.assign(Object.assign({},t),{idPrefix:this._idPrefix,schema:e,formData:r,className:n,validate:(e,t)=>t,onChange:(e,r)=>{this.onChange(e,r),t.onChange&&t.onChange(e,r)}});return setTimeout(this._postRender,100),i().createElement(o,Object.assign({},s))}onChange(e,t){const{formData:r,errors:n}=e;null!=r&&(this.model.errors=n,this.model.formData=r),this.model.stateChanged.emit(void 0)}getValue(){return{formData:this.model.formData,errors:this.model.errors}}}var le;!function(e){let t=0;e.nextId=function(){return t++}}(le||(le={})),r(72192)},72192:(e,t,r)=>{"use strict";r.d(t,{A:()=>Pn,W:()=>n,withTheme:()=>Tn});var n={};r.r(n),r.d(n,{ADDITIONAL_PROPERTY_FLAG:()=>_r,allowAdditionalItems:()=>zr,asNumber:()=>kr,canExpand:()=>wr,dataURItoBlob:()=>un,deepEquals:()=>en,findSchemaDefinition:()=>Br,getDefaultFormState:()=>Pr,getDefaultRegistry:()=>Er,getDisplayLabel:()=>Rr,getMatchingOption:()=>dn,getSchemaType:()=>xr,getUiOptions:()=>Or,getWidget:()=>Sr,guessType:()=>Vr,hasWidget:()=>Ar,isConstant:()=>jr,isFilesArray:()=>$r,isFixedItems:()=>Gr,isMultiSelect:()=>Nr,isObject:()=>Dr,isSelect:()=>Mr,localToUTC:()=>ln,mergeDefaultsWithFormData:()=>Cr,mergeObjects:()=>Ir,mergeSchemas:()=>Jr,optionsList:()=>Ur,orderProperties:()=>Fr,pad:()=>cn,parseDateString:()=>on,rangeSpec:()=>hn,resolveSchema:()=>qr,retrieveSchema:()=>Hr,schemaRequiresTrueValue:()=>fn,shouldRender:()=>tn,stubExistingAdditionalProperties:()=>Kr,toConstant:()=>Lr,toDateString:()=>sn,toIdSchema:()=>rn,toPathSchema:()=>nn,utcToLocal:()=>an});var i=r(93345),o=r.n(i),s=r(74874),a=r.n(s),l=r(46123),c=r.n(l),u=r(3514),h=r.n(u),d=r(524),f=r(587),p=r.n(f),m=r(8125),g=r.n(m),y=r(55620),v=r.n(y),_=r(45838);function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}function w(e){var t=e.type,r=void 0===t?"default":t,n=e.icon,i=e.className,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["type","icon","className"]);return o().createElement("button",b({type:"button",className:"btn btn-".concat(r," ").concat(i)},s),o().createElement("i",{className:"glyphicon glyphicon-".concat(n)}))}function E(e){var t=e.className,r=e.onClick,n=e.disabled;return o().createElement("div",{className:"row"},o().createElement("p",{className:"col-xs-3 col-xs-offset-9 text-right ".concat(t)},o().createElement(w,{type:"info",icon:"plus",className:"btn-add col-xs-12","aria-label":"Add",tabIndex:"0",onClick:r,disabled:n})))}var x=r(92654),S=r.n(x),A=r(39067),T=r.n(A),P=T().shape({ArrayFieldTemplate:T().elementType,FieldTemplate:T().elementType,ObjectFieldTemplate:T().elementType,definitions:T().object.isRequired,rootSchema:T().object,fields:T().objectOf(T().elementType).isRequired,formContext:T().object.isRequired,widgets:T().objectOf(T().oneOfType([T().func,T().object])).isRequired});T().bool,T().bool,T().object,T().any,T().object,T().func,T().func.isRequired,T().func,T().arrayOf(T().string),T().bool,P.isRequired,T().bool,T().object.isRequired,T().shape({"ui:options":T().shape({addable:T().bool,orderable:T().bool,removable:T().bool})});let C=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function O(e){return O="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},O(e)}function R(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){M(e,t,r[t])}))}return e}function I(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t){return L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},L(e,t)}function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(e){var t=e.TitleField,r=e.idSchema,n=e.title,i=e.required;if(!n)return null;var s="".concat(r.$id,"__title");return o().createElement(t,{id:s,title:n,required:i})}function $(e){var t=e.DescriptionField,r=e.idSchema,n=e.description;if(!n)return null;var i="".concat(r.$id,"__description");return o().createElement(t,{id:i,description:n})}function G(e){var t={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return o().createElement("div",{key:e.key,className:e.className},o().createElement("div",{className:e.hasToolbar?"col-xs-9":"col-xs-12"},e.children),e.hasToolbar&&o().createElement("div",{className:"col-xs-3 array-item-toolbox"},o().createElement("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"}},(e.hasMoveUp||e.hasMoveDown)&&o().createElement(w,{icon:"arrow-up","aria-label":"Move up",className:"array-item-move-up",tabIndex:"-1",style:t,disabled:e.disabled||e.readonly||!e.hasMoveUp,onClick:e.onReorderClick(e.index,e.index-1)}),(e.hasMoveUp||e.hasMoveDown)&&o().createElement(w,{icon:"arrow-down",className:"array-item-move-down","aria-label":"Move down",tabIndex:"-1",style:t,disabled:e.disabled||e.readonly||!e.hasMoveDown,onClick:e.onReorderClick(e.index,e.index+1)}),e.hasRemove&&o().createElement(w,{type:"danger",icon:"remove","aria-label":"Remove",className:"array-item-remove",tabIndex:"-1",style:t,disabled:e.disabled||e.readonly,onClick:e.onDropIndexClick(e.index)}))))}function z(e){return o().createElement("fieldset",{className:e.className,id:e.idSchema.$id},o().createElement(N,{key:"array-field-title-".concat(e.idSchema.$id),TitleField:e.TitleField,idSchema:e.idSchema,title:e.uiSchema["ui:title"]||e.title,required:e.required}),(e.uiSchema["ui:description"]||e.schema.description)&&o().createElement("div",{className:"field-description",key:"field-description-".concat(e.idSchema.$id)},e.uiSchema["ui:description"]||e.schema.description),o().createElement("div",{className:"row array-item-list",key:"array-item-list-".concat(e.idSchema.$id)},e.items&&e.items.map(G)),e.canAdd&&o().createElement(E,{className:"array-item-add",onClick:e.onAddClick,disabled:e.disabled||e.readonly}))}function U(e){return o().createElement("fieldset",{className:e.className,id:e.idSchema.$id},o().createElement(N,{key:"array-field-title-".concat(e.idSchema.$id),TitleField:e.TitleField,idSchema:e.idSchema,title:e.uiSchema["ui:title"]||e.title,required:e.required}),(e.uiSchema["ui:description"]||e.schema.description)&&o().createElement($,{key:"array-field-description-".concat(e.idSchema.$id),DescriptionField:e.DescriptionField,idSchema:e.idSchema,description:e.uiSchema["ui:description"]||e.schema.description}),o().createElement("div",{className:"row array-item-list",key:"array-item-list-".concat(e.idSchema.$id)},e.items&&e.items.map((function(e){return G(e)}))),e.canAdd&&o().createElement(E,{className:"array-item-add",onClick:e.onAddClick,disabled:e.disabled||e.readonly}))}function B(){return C()}function V(e){return Array.isArray(e)?e.map((function(e){return{key:B(),item:e}})):[]}function K(e){return e.map((function(e){return e.item}))}var q=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==O(t)&&"function"!=typeof t?j(e):t}(this,F(t).call(this,e)),M(j(r),"_getNewFormDataRow",(function(){var e=r.props,t=e.schema,n=e.registry,i=(void 0===n?Er():n).rootSchema,o=t.items;return Gr(t)&&zr(t)&&(o=t.additionalItems),Pr(o,void 0,i)})),M(j(r),"onAddClick",(function(e){e&&e.preventDefault();var t=r.props.onChange,n={key:B(),item:r._getNewFormDataRow()},i=[].concat(I(r.state.keyedFormData),[n]);r.setState({keyedFormData:i,updatedKeyedFormData:!0},(function(){return t(K(i))}))})),M(j(r),"onAddIndexClick",(function(e){return function(t){t&&t.preventDefault();var n=r.props.onChange,i={key:B(),item:r._getNewFormDataRow()},o=I(r.state.keyedFormData);o.splice(e,0,i),r.setState({keyedFormData:o,updatedKeyedFormData:!0},(function(){return n(K(o))}))}})),M(j(r),"onDropIndexClick",(function(e){return function(t){t&&t.preventDefault();var n,i=r.props.onChange,o=r.state.keyedFormData;if(r.props.errorSchema){n={};var s=r.props.errorSchema;for(var a in s)(a=parseInt(a))<e?n[a]=s[a]:a>e&&(n[a-1]=s[a])}var l=o.filter((function(t,r){return r!==e}));r.setState({keyedFormData:l,updatedKeyedFormData:!0},(function(){return i(K(l),n)}))}})),M(j(r),"onReorderClick",(function(e,t){return function(n){n&&(n.preventDefault(),n.target.blur());var i,o=r.props.onChange;if(r.props.errorSchema){i={};var s=r.props.errorSchema;for(var a in s)a==e?i[t]=s[e]:a==t?i[e]=s[t]:i[a]=s[a]}var l,c=r.state.keyedFormData,u=((l=c.slice()).splice(e,1),l.splice(t,0,c[e]),l);r.setState({keyedFormData:u},(function(){return o(K(u),i)}))}})),M(j(r),"onChangeForIndex",(function(e){return function(t,n){var i=r.props,o=i.formData;(0,i.onChange)(o.map((function(r,n){return e===n?void 0===t?null:t:r})),n&&r.props.errorSchema&&D({},r.props.errorSchema,M({},e,n)))}})),M(j(r),"onSelectChange",(function(e){r.props.onChange(e)}));var n=V(e.formData);return r.state={keyedFormData:n,updatedKeyedFormData:!1},r}var r,n,i;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}}),t&&L(e,t)}(t,e),r=t,n=[{key:"isItemRequired",value:function(e){return Array.isArray(e.type)?!S()(e.type,"null"):"null"!==e.type}},{key:"canAddItem",value:function(e){var t=this.props,r=t.schema,n=Or(t.uiSchema).addable;return!1!==n&&(n=void 0===r.maxItems||e.length<r.maxItems),n}},{key:"render",value:function(){var e=this.props,t=e.schema,r=e.uiSchema,n=e.idSchema,i=e.registry,s=void 0===i?Er():i,a=s.rootSchema;if(!t.hasOwnProperty("items")){var l=s.fields.UnsupportedField;return o().createElement(l,{schema:t,idSchema:n,reason:"Missing items definition"})}return Gr(t)?this.renderFixedArray():$r(t,r,a)?this.renderFiles():Nr(t,a)?this.renderMultiSelect():this.renderNormalArray()}},{key:"renderNormalArray",value:function(){var e=this,t=this.props,r=t.schema,n=t.uiSchema,i=t.errorSchema,s=t.idSchema,a=t.name,l=t.required,c=t.disabled,u=t.readonly,h=t.autofocus,d=t.registry,f=void 0===d?Er():d,p=t.onBlur,m=t.onFocus,g=t.idPrefix,y=t.rawErrors,v=void 0===r.title?a:r.title,_=f.ArrayFieldTemplate,b=f.rootSchema,w=f.fields,E=f.formContext,x=w.TitleField,S=w.DescriptionField,A=Hr(r.items,b),T=K(this.state.keyedFormData),P={canAdd:this.canAddItem(T),items:this.state.keyedFormData.map((function(t,o){var a=t.key,l=t.item,c=Hr(r.items,b,l),u=i?i[o]:void 0,d=rn(c,s.$id+"_"+o,b,l,g);return e.renderArrayFieldItem({key:a,index:o,canMoveUp:o>0,canMoveDown:o<T.length-1,itemSchema:c,itemIdSchema:d,itemErrorSchema:u,itemData:l,itemUiSchema:n.items,autofocus:h&&0===o,onBlur:p,onFocus:m})})),className:"field field-array field-array-of-".concat(A.type),DescriptionField:S,disabled:c,idSchema:s,uiSchema:n,onAddClick:this.onAddClick,readonly:u,required:l,schema:r,title:v,TitleField:x,formContext:E,formData:T,rawErrors:y,registry:f},C=n["ui:ArrayFieldTemplate"]||_||U;return o().createElement(C,P)}},{key:"renderMultiSelect",value:function(){var e=this.props,t=e.schema,r=e.idSchema,n=e.uiSchema,i=e.formData,s=e.disabled,a=e.readonly,l=e.required,c=e.placeholder,u=e.autofocus,h=e.onBlur,d=e.onFocus,f=e.registry,p=void 0===f?Er():f,m=e.rawErrors,g=e.name,y=this.props.formData,v=p.widgets,_=p.rootSchema,b=p.formContext,w=Hr(t.items,_,i),E=t.title||g,x=Ur(w),S=D({},Or(n),{enumOptions:x}),A=S.widget,T=void 0===A?"select":A,P=R(S,["widget"]),C=Sr(t,T,v);return o().createElement(C,{id:r&&r.$id,multiple:!0,onChange:this.onSelectChange,onBlur:h,onFocus:d,options:P,schema:t,registry:p,value:y,disabled:s,readonly:a,required:l,label:E,placeholder:c,formContext:b,autofocus:u,rawErrors:m})}},{key:"renderFiles",value:function(){var e=this.props,t=e.schema,r=e.uiSchema,n=e.idSchema,i=e.name,s=e.disabled,a=e.readonly,l=e.autofocus,c=e.onBlur,u=e.onFocus,h=e.registry,d=void 0===h?Er():h,f=e.rawErrors,p=t.title||i,m=this.props.formData,g=d.widgets,y=d.formContext,v=Or(r),_=v.widget,b=void 0===_?"files":_,w=R(v,["widget"]),E=Sr(t,b,g);return o().createElement(E,{options:w,id:n&&n.$id,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:u,schema:t,title:p,value:m,disabled:s,readonly:a,formContext:y,autofocus:l,rawErrors:f})}},{key:"renderFixedArray",value:function(){var e=this,t=this.props,r=t.schema,n=t.uiSchema,i=t.formData,s=t.errorSchema,a=t.idPrefix,l=t.idSchema,c=t.name,u=t.required,h=t.disabled,d=t.readonly,f=t.autofocus,p=t.registry,m=void 0===p?Er():p,g=t.onBlur,y=t.onFocus,v=t.rawErrors,_=r.title||c,b=this.props.formData,w=m.ArrayFieldTemplate,E=m.rootSchema,x=m.fields,S=m.formContext,A=x.TitleField,T=r.items.map((function(e,t){return Hr(e,E,i[t])})),P=zr(r)?Hr(r.additionalItems,E,i):null;(!b||b.length<T.length)&&(b=(b=b||[]).concat(new Array(T.length-b.length)));var C={canAdd:this.canAddItem(b)&&P,className:"field field-array field-array-fixed-items",disabled:h,idSchema:l,formData:i,items:this.state.keyedFormData.map((function(t,i){var o=t.key,c=t.item,u=i>=T.length,h=u?Hr(r.additionalItems,E,c):T[i],d=rn(h,l.$id+"_"+i,E,c,a),p=u?n.additionalItems||{}:Array.isArray(n.items)?n.items[i]:n.items||{},m=s?s[i]:void 0;return e.renderArrayFieldItem({key:o,index:i,canRemove:u,canMoveUp:i>=T.length+1,canMoveDown:u&&i<b.length-1,itemSchema:h,itemData:c,itemUiSchema:p,itemIdSchema:d,itemErrorSchema:m,autofocus:f&&0===i,onBlur:g,onFocus:y})})),onAddClick:this.onAddClick,readonly:d,required:u,schema:r,uiSchema:n,title:_,TitleField:A,formContext:S,rawErrors:v},O=n["ui:ArrayFieldTemplate"]||w||z;return o().createElement(O,C)}},{key:"renderArrayFieldItem",value:function(e){var t=e.key,r=e.index,n=e.canRemove,i=void 0===n||n,s=e.canMoveUp,a=void 0===s||s,l=e.canMoveDown,c=void 0===l||l,u=e.itemSchema,h=e.itemData,d=e.itemUiSchema,f=e.itemIdSchema,p=e.itemErrorSchema,m=e.autofocus,g=e.onBlur,y=e.onFocus,v=e.rawErrors,_=this.props,b=_.disabled,w=_.readonly,E=_.uiSchema,x=_.registry,S=(void 0===x?Er():x).fields.SchemaField,A=D({orderable:!0,removable:!0},E["ui:options"]),T=A.orderable,P={moveUp:T&&a,moveDown:T&&c,remove:A.removable&&i};return P.toolbar=Object.keys(P).some((function(e){return P[e]})),{children:o().createElement(S,{index:r,schema:u,uiSchema:d,formData:h,errorSchema:p,idSchema:f,required:this.isItemRequired(u),onChange:this.onChangeForIndex(r),onBlur:g,onFocus:y,registry:this.props.registry,disabled:this.props.disabled,readonly:this.props.readonly,autofocus:m,rawErrors:v}),className:"array-item",disabled:b,hasToolbar:P.toolbar,hasMoveUp:P.moveUp,hasMoveDown:P.moveDown,hasRemove:P.remove,index:r,key:t,onAddIndexClick:this.onAddIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:w}}},{key:"itemTitle",get:function(){var e=this.props.schema;return e.items.title||e.items.description||"Item"}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){if(t.updatedKeyedFormData)return{updatedKeyedFormData:!1};var r=e.formData||[],n=t.keyedFormData||[];return{keyedFormData:r.length===n.length?n.map((function(e,t){return{key:e.key,item:r[t]}})):V(r)}}}],n&&k(r.prototype,n),i&&k(r,i),t}(i.Component);M(q,"defaultProps",{uiSchema:{},formData:[],idSchema:{},required:!1,disabled:!1,readonly:!1,autofocus:!1});const W=q;function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Y(e,t,r[t])}))}return e}function Y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X(e){var t,r=e.schema,n=e.name,i=e.uiSchema,s=e.idSchema,a=e.formData,l=e.registry,c=void 0===l?Er():l,u=e.required,h=e.disabled,d=e.readonly,f=e.autofocus,p=e.onChange,m=e.onFocus,g=e.onBlur,y=e.rawErrors,v=r.title,_=c.widgets,b=c.formContext,w=c.fields,E=Or(i),x=E.widget,S=void 0===x?"checkbox":x,A=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(E,["widget"]),T=Sr(r,S,_);return t=Array.isArray(r.oneOf)?Ur({oneOf:r.oneOf.map((function(e){return H({},e,{title:e.title||(!0===e.const?"Yes":"No")})}))}):Ur({enum:r.enum||[!0,!1],enumNames:r.enumNames||(r.enum&&!1===r.enum[0]?["No","Yes"]:["Yes","No"])}),o().createElement(T,{options:H({},A,{enumOptions:t}),schema:r,uiSchema:i,id:s&&s.$id,onChange:p,onFocus:m,onBlur:g,label:void 0===v?n:v,value:a,required:u,disabled:h,readonly:d,registry:c,formContext:b,autofocus:f,rawErrors:y,DescriptionField:w.DescriptionField})}X.defaultProps={uiSchema:{},disabled:!1,readonly:!1,autofocus:!1};const Z=X;function J(e){return J="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},J(e)}function Q(){return Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Q.apply(this,arguments)}function ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}function re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ne(e,t){return ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ne(e,t)}var ie=function(e){function t(e){var r,n,i,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==J(t)&&"function"!=typeof t?re(e):t}(this,te(t).call(this,e)),o=function(e){var t=parseInt(e,10),n=r.props,i=n.formData,o=n.onChange,s=n.options,a=n.registry.rootSchema,l=Hr(s[t],a,i),c=void 0;if("object"===Vr(i)&&("object"===l.type||l.properties)){c=Object.assign({},i);var u=s.slice();u.splice(t,1);var h=!0,d=!1,f=void 0;try{for(var p,m=u[Symbol.iterator]();!(h=(p=m.next()).done);h=!0){var g=p.value;if(g.properties)for(var y in g.properties)c.hasOwnProperty(y)&&delete c[y]}}catch(e){d=!0,f=e}finally{try{h||null==m.return||m.return()}finally{if(d)throw f}}}o(Pr(s[t],c,a)),r.setState({selectedOption:parseInt(e,10)})},(i="onOptionChange")in(n=re(r))?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o;var s=r.props,a=s.formData,l=s.options;return r.state={selectedOption:r.getMatchingOption(a,l)},r}var r,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}}),t&&ne(e,t)}(t,e),r=t,n=[{key:"componentDidUpdate",value:function(e,t){if(!en(this.props.formData,e.formData)&&this.props.idSchema.$id===e.idSchema.$id){var r=this.getMatchingOption(this.props.formData,this.props.options);if(!t||r===this.state.selectedOption)return;this.setState({selectedOption:r})}}},{key:"getMatchingOption",value:function(e,t){var r=dn(e,t,this.props.registry.rootSchema);return 0!==r?r:this&&this.state?this.state.selectedOption:0}},{key:"render",value:function(){var e,t=this.props,r=t.baseType,n=t.disabled,i=t.errorSchema,s=t.formData,a=t.idPrefix,l=t.idSchema,c=t.onBlur,u=t.onChange,h=t.onFocus,d=t.options,f=t.registry,p=t.uiSchema,m=t.schema,g=f.fields.SchemaField,y=f.widgets,v=this.state.selectedOption,_=Or(p),b=_.widget,w=void 0===b?"select":b,E=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(_,["widget"]),x=Sr({type:"number"},w,y),S=d[v]||null;S&&(e=S.type?S:Object.assign({},S,{type:r}));var A=d.map((function(e,t){return{label:e.title||"Option ".concat(t+1),value:t}}));return o().createElement("div",{className:"panel panel-default panel-body"},o().createElement("div",{className:"form-group"},o().createElement(x,Q({id:"".concat(l.$id).concat(m.oneOf?"__oneof_select":"__anyof_select"),schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:c,onFocus:h,value:v,options:{enumOptions:A}},E))),null!==S&&o().createElement(g,{schema:e,uiSchema:p,errorSchema:i,idSchema:l,idPrefix:a,formData:s,onChange:u,onBlur:c,onFocus:h,registry:f,disabled:n}))}}],n&&ee(r.prototype,n),t}(i.Component);ie.defaultProps={disabled:!1,errorSchema:{},idSchema:{},uiSchema:{}};const oe=ie;function se(e){return se="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},se(e)}function ae(){return ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ae.apply(this,arguments)}function le(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(e)}function ue(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function he(e,t){return he=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},he(e,t)}var de=/\.([0-9]*0)*$/,fe=/[0.]0*$/,pe=function(e){function t(e){var r,n,i,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==se(t)&&"function"!=typeof t?ue(e):t}(this,ce(t).call(this,e)),o=function(e){r.setState({lastValue:e}),"."==="".concat(e).charAt(0)&&(e="0".concat(e));var t="string"==typeof e&&e.match(de)?kr(e.replace(fe,"")):kr(e);r.props.onChange(t)},(i="handleChange")in(n=ue(r))?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,r.state={lastValue:e.value},r}var r,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}}),t&&he(e,t)}(t,e),r=t,n=[{key:"render",value:function(){var e=this.props.registry.fields.StringField,t=this.props,r=t.formData,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,["formData"]),i=this.state.lastValue,s=r;if("string"==typeof i&&"number"==typeof s){var a=new RegExp("".concat(s).replace(".","\\.")+"\\.?0*$");i.match(a)&&(s=i)}return o().createElement(e,ae({},n,{formData:s,onChange:this.handleChange}))}}],n&&le(r.prototype,n),t}(o().Component);pe.defaultProps={uiSchema:{}};const me=pe;function ge(e){return ge="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},ge(e)}function ye(){return ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ye.apply(this,arguments)}function ve(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){xe(e,t,r[t])}))}return e}function _e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},be(e)}function we(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ee(e,t){return Ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ee(e,t)}function xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Se(e){var t=e.TitleField,r=e.DescriptionField;return o().createElement("fieldset",{id:e.idSchema.$id},(e.uiSchema["ui:title"]||e.title)&&o().createElement(t,{id:"".concat(e.idSchema.$id,"__title"),title:e.title||e.uiSchema["ui:title"],required:e.required,formContext:e.formContext}),e.description&&o().createElement(r,{id:"".concat(e.idSchema.$id,"__description"),description:e.description,formContext:e.formContext}),e.properties.map((function(e){return e.content})),wr(e.schema,e.uiSchema,e.formData)&&o().createElement(E,{className:"object-property-expand",onClick:e.onAddClick(e.schema),disabled:e.disabled||e.readonly}))}var Ae=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=function(e,t){return!t||"object"!==ge(t)&&"function"!=typeof t?we(e):t}(this,(e=be(t)).call.apply(e,[this].concat(i))),xe(we(r),"state",{wasPropertyKeyModified:!1,additionalProperties:{}}),xe(we(r),"onPropertyChange",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){void 0===n&&t&&(n="");var o=ve({},r.props.formData,xe({},e,n));r.props.onChange(o,i&&r.props.errorSchema&&ve({},r.props.errorSchema,xe({},e,i)))}})),xe(we(r),"onDropPropertyClick",(function(e){return function(t){t.preventDefault();var n=r.props,i=n.onChange,o=ve({},n.formData);delete o[e],i(o)}})),xe(we(r),"getAvailableKey",(function(e,t){for(var r=0,n=e;t.hasOwnProperty(n);)n="".concat(e,"-").concat(++r);return n})),xe(we(r),"onKeyChange",(function(e){return function(t,n){if(e!==t){t=r.getAvailableKey(t,r.props.formData);var i=ve({},r.props.formData),o=xe({},e,t),s=Object.keys(i).map((function(e){return xe({},o[e]||e,i[e])})),a=Object.assign.apply(Object,[{}].concat(function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(l=s)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()));r.setState({wasPropertyKeyModified:!0}),r.props.onChange(a,n&&r.props.errorSchema&&ve({},r.props.errorSchema,xe({},t,n)))}var l}})),xe(we(r),"handleAddClick",(function(e){return function(){var t=e.additionalProperties.type,n=ve({},r.props.formData);if(e.additionalProperties.hasOwnProperty("$ref")){var i=r.props.registry,o=void 0===i?Er():i;t=Hr({$ref:e.additionalProperties.$ref},o.rootSchema,r.props.formData).type}n[r.getAvailableKey("newKey",n)]=r.getDefaultValue(t),r.props.onChange(n)}})),r}var r,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}}),t&&Ee(e,t)}(t,e),r=t,n=[{key:"isRequired",value:function(e){var t=this.props.schema;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)}},{key:"getDefaultValue",value:function(e){switch(e){case"string":default:return"New Value";case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{}}}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.uiSchema,i=r.formData,s=r.errorSchema,a=r.idSchema,l=r.name,c=r.required,u=r.disabled,h=r.readonly,d=r.idPrefix,f=r.onBlur,p=r.onFocus,m=r.registry,g=void 0===m?Er():m,y=g.rootSchema,v=g.fields,_=g.formContext,b=v.SchemaField,w=v.TitleField,E=v.DescriptionField,x=Hr(this.props.schema,y,i),S=void 0===x.title?l:x.title,A=n["ui:description"]||x.description;try{e=Fr(Object.keys(x.properties||{}),n["ui:order"])}catch(e){return o().createElement("div",null,o().createElement("p",{className:"config-error",style:{color:"red"}},"Invalid ",l||"root"," object field configuration:",o().createElement("em",null,e.message),"."),o().createElement("pre",null,JSON.stringify(x)))}var T=n["ui:ObjectFieldTemplate"]||g.ObjectFieldTemplate||Se,P={title:n["ui:title"]||S,description:A,TitleField:w,DescriptionField:E,properties:e.map((function(e){var r=x.properties[e].hasOwnProperty(_r),l=r?n.additionalProperties:n[e],m=l&&"hidden"===l["ui:widget"];return{content:o().createElement(b,{key:e,name:e,required:t.isRequired(e),schema:x.properties[e],uiSchema:l,errorSchema:s[e],idSchema:a[e],idPrefix:d,formData:(i||{})[e],wasPropertyKeyModified:t.state.wasPropertyKeyModified,onKeyChange:t.onKeyChange(e),onChange:t.onPropertyChange(e,r),onBlur:f,onFocus:p,registry:g,disabled:u,readonly:h,onDropPropertyClick:t.onDropPropertyClick}),name:e,readonly:h,disabled:u,required:c,hidden:m}})),readonly:h,disabled:u,required:c,idSchema:a,uiSchema:n,schema:x,formData:i,formContext:_,registry:g};return o().createElement(T,ye({},P,{onAddClick:this.handleAddClick}))}}],n&&_e(r.prototype,n),t}(i.Component);xe(Ae,"defaultProps",{uiSchema:{},formData:{},errorSchema:{},idSchema:{},required:!1,disabled:!1,readonly:!1});const Te=Ae;function Pe(e){return Pe="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},Pe(e)}function Ce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}function Re(e,t){return Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Re(e,t)}function De(){return De=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},De.apply(this,arguments)}function Ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ke(e,t,r[t])}))}return e}function ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fe="*",je={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Le(e){var t=e.label,r=e.required,n=e.id;return t?o().createElement("label",{className:"control-label",htmlFor:n},t,r&&o().createElement("span",{className:"required"},Fe)):null}function Me(e){var t=e.id,r=e.label,n=e.onChange;return o().createElement("input",{className:"form-control",type:"text",id:t,onBlur:function(e){return n(e.target.value)},defaultValue:r})}function Ne(e){var t=e.id,r=e.help;return r?"string"==typeof r?o().createElement("p",{id:t,className:"help-block"},r):o().createElement("div",{id:t,className:"help-block"},r):null}function $e(e){var t=e.errors,r=void 0===t?[]:t;return 0===r.length?null:o().createElement("div",null,o().createElement("ul",{className:"error-detail bs-callout bs-callout-info"},r.filter((function(e){return!!e})).map((function(e,t){return o().createElement("li",{className:"text-danger",key:t},e)}))))}function Ge(e){var t=e.id,r=e.label,n=e.children,i=e.errors,s=e.help,a=e.description,l=e.hidden,c=e.required,u=e.displayLabel;return l?o().createElement("div",{className:"hidden"},n):o().createElement(ze,e,u&&o().createElement(Le,{label:r,required:c,id:t}),u&&a?a:null,n,i,s)}function ze(e){var t=e.id,r=e.classNames,n=e.disabled,i=e.label,s=e.onKeyChange,a=e.onDropPropertyClick,l=e.readonly,c=e.required,u=e.schema,h="".concat(i," Key");return u.hasOwnProperty(_r)?o().createElement("div",{className:r},o().createElement("div",{className:"row"},o().createElement("div",{className:"col-xs-5 form-additional"},o().createElement("div",{className:"form-group"},o().createElement(Le,{label:h,required:c,id:"".concat(t,"-key")}),o().createElement(Me,{label:i,required:c,id:"".concat(t,"-key"),onChange:s}))),o().createElement("div",{className:"form-additional form-group col-xs-5"},e.children),o().createElement("div",{className:"col-xs-2"},o().createElement(w,{type:"danger",icon:"remove",className:"array-item-remove btn-block",tabIndex:"-1",style:{border:"0"},disabled:n||l,onClick:a(i)})))):o().createElement("div",{className:r},e.children)}function Ue(e){var t=e.uiSchema,r=e.formData,n=e.errorSchema,i=e.idPrefix,s=e.name,a=e.onChange,l=e.onKeyChange,c=e.onDropPropertyClick,u=e.required,h=e.registry,d=void 0===h?Er():h,f=e.wasPropertyKeyModified,p=void 0!==f&&f,m=d.rootSchema,g=d.fields,y=d.formContext,v=t["ui:FieldTemplate"]||d.FieldTemplate||Ge,_=e.idSchema,b=Hr(e.schema,m,r),w=function(e,t,r,n){var i=t["ui:field"];if("function"==typeof i)return i;if("string"==typeof i&&i in n)return n[i];var s=je[xr(e)];return s||!e.anyOf&&!e.oneOf?s in n?n[s]:function(){var t=n.UnsupportedField;return o().createElement(t,{schema:e,idSchema:r,reason:"Unknown field type ".concat(e.type)})}:function(){return null}}(b,t,_=Ir(rn(b,null,m,r,i),_),g),E=g.DescriptionField,x=Boolean(e.disabled||t["ui:disabled"]),S=Boolean(e.readonly||t["ui:readonly"]||e.schema.readOnly||b.readOnly),A=Boolean(e.autofocus||t["ui:autofocus"]);if(0===Object.keys(b).length)return null;var T,P=Rr(b,t,m),C=n.__errors,O=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(n,["__errors"]),R=o().createElement(w,De({},e,{idSchema:_,schema:b,uiSchema:Ie({},t,{classNames:void 0}),disabled:x,readonly:S,autofocus:A,errorSchema:O,formContext:y,rawErrors:C})),D=_.$id;T=p?s:t["ui:title"]||e.schema.title||b.title||s;var I=t["ui:description"]||e.schema.description||b.description,k=C,F=t["ui:help"],j="hidden"===t["ui:widget"],L=["form-group","field","field-".concat(b.type),k&&k.length>0?"field-error has-error has-danger":"",t.classNames].join(" ").trim(),M={description:o().createElement(E,{id:D+"__description",description:I,formContext:y}),rawDescription:I,help:o().createElement(Ne,{id:D+"__help",help:F}),rawHelp:"string"==typeof F?F:void 0,errors:o().createElement($e,{errors:k}),rawErrors:k,id:D,label:T,hidden:j,onChange:a,onKeyChange:l,onDropPropertyClick:c,required:u,disabled:x,readonly:S,displayLabel:P,classNames:L,formContext:y,formData:r,fields:g,schema:b,uiSchema:t,registry:d},N=d.fields.AnyOfField,$=d.fields.OneOfField;return o().createElement(v,M,o().createElement(o().Fragment,null,R,b.anyOf&&!Mr(b)&&o().createElement(N,{disabled:x,errorSchema:n,formData:r,idPrefix:i,idSchema:_,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:b.anyOf.map((function(e){return Hr(e,m,r)})),baseType:b.type,registry:d,schema:b,uiSchema:t}),b.oneOf&&!Mr(b)&&o().createElement($,{disabled:x,errorSchema:n,formData:r,idPrefix:i,idSchema:_,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:b.oneOf.map((function(e){return Hr(e,m,r)})),baseType:b.type,registry:d,schema:b,uiSchema:t})))}Ge.defaultProps={hidden:!1,readonly:!1,required:!1,displayLabel:!0};var Be=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Pe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Oe(t).apply(this,arguments))}var r,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}}),t&&Re(e,t)}(t,e),r=t,(n=[{key:"shouldComponentUpdate",value:function(e,t){return!en(this.props,e)}},{key:"render",value:function(){return Ue(this.props)}}])&&Ce(r.prototype,n),t}(o().Component);Be.defaultProps={uiSchema:{},errorSchema:{},idSchema:{},disabled:!1,readonly:!1,autofocus:!1};const Ve=Be;function Ke(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qe(e,t,r[t])}))}return e}function qe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function We(e){var t=e.schema,r=e.name,n=e.uiSchema,i=e.idSchema,s=e.formData,a=e.required,l=e.disabled,c=e.readonly,u=e.autofocus,h=e.onChange,d=e.onBlur,f=e.onFocus,p=e.registry,m=void 0===p?Er():p,g=e.rawErrors,y=t.title,v=t.format,_=m.widgets,b=m.formContext,w=Mr(t)&&Ur(t),E=w?"select":"text";v&&Ar(t,v,_)&&(E=v);var x=Or(n),S=x.widget,A=void 0===S?E:S,T=x.placeholder,P=void 0===T?"":T,C=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(x,["widget","placeholder"]),O=Sr(t,A,_);return o().createElement(O,{options:Ke({},C,{enumOptions:w}),schema:t,uiSchema:n,id:i&&i.$id,label:void 0===y?r:y,value:s,onChange:h,onBlur:d,onFocus:f,required:a,disabled:l,readonly:c,formContext:b,autofocus:u,registry:m,placeholder:P,rawErrors:g})}function He(e){return He="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},He(e)}function Ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}function Ze(e,t){return Ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ze(e,t)}We.defaultProps={uiSchema:{},disabled:!1,readonly:!1,autofocus:!1};const Je={AnyOfField:oe,ArrayField:W,BooleanField:Z,DescriptionField:function(e){var t=e.id,r=e.description;return r?"string"==typeof r?o().createElement("p",{id:t,className:"field-description"},r):o().createElement("div",{id:t,className:"field-description"},r):null},NumberField:me,ObjectField:Te,OneOfField:oe,SchemaField:Ve,StringField:We,TitleField:function(e){var t=e.id,r=e.title,n=e.required;return o().createElement("legend",{id:t},r,n&&o().createElement("span",{className:"required"},"*"))},NullField:function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==He(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Xe(t).apply(this,arguments))}var r,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}}),t&&Ze(e,t)}(t,e),r=t,(n=[{key:"componentDidMount",value:function(){void 0===this.props.formData&&this.props.onChange(null)}},{key:"render",value:function(){return null}}])&&Ye(r.prototype,n),t}(i.Component),UnsupportedField:function(e){var t=e.schema,r=e.idSchema,n=e.reason;return o().createElement("div",{className:"unsupported-field"},o().createElement("p",null,"Unsupported field schema",r&&r.$id&&o().createElement("span",null," for"," field ",o().createElement("code",null,r.$id)),n&&o().createElement("em",null,": ",n),"."),t&&o().createElement("pre",null,JSON.stringify(t,null,2)))}};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},Qe(e)}function et(){return et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},et.apply(this,arguments)}function tt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function rt(e){return rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rt(e)}function nt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function it(e,t){return it=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},it(e,t)}function ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function st(e,t){for(var r=[],n=e;n<=t;n++)r.push({value:n,label:cn(n,2)});return r}function at(e){var t=e.type,r=e.range,n=e.value,i=e.select,s=e.rootId,a=e.disabled,l=e.readonly,c=e.autofocus,u=e.registry,h=e.onBlur,d=s+"_"+t,f=u.widgets.SelectWidget;return o().createElement(f,{schema:{type:"integer"},id:d,className:"form-control",options:{enumOptions:st(r[0],r[1])},placeholder:t,value:n,disabled:a,readonly:l,autofocus:c,onChange:function(e){return i(t,e)},onBlur:h})}var lt=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==Qe(t)&&"function"!=typeof t?nt(e):t}(this,rt(t).call(this,e)),ot(nt(r),"onChange",(function(e,t){r.setState(ot({},e,void 0===t?-1:t),(function(){var e;e=r.state,Object.keys(e).every((function(t){return-1!==e[t]}))&&r.props.onChange(sn(r.state,r.props.time))}))})),ot(nt(r),"setNow",(function(e){e.preventDefault();var t=r.props,n=t.time,i=t.disabled,o=t.readonly,s=t.onChange;if(!i&&!o){var a=on((new Date).toJSON(),n);r.setState(a,(function(){return s(sn(r.state,n))}))}})),ot(nt(r),"clear",(function(e){e.preventDefault();var t=r.props,n=t.time,i=t.disabled,o=t.readonly,s=t.onChange;i||o||r.setState(on("",n),(function(){return s(void 0)}))})),r.state=on(e.value,e.time),r}var r,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}}),t&&it(e,t)}(t,e),r=t,n=[{key:"componentDidUpdate",value:function(e,t){e.value&&e.value!==on(this.props.value,this.props.time)&&this.setState(on(this.props.value,this.props.time))}},{key:"shouldComponentUpdate",value:function(e,t){return tn(this,e,t)}},{key:"render",value:function(){var e=this,t=this.props,r=t.id,n=t.disabled,i=t.readonly,s=t.autofocus,a=t.registry,l=t.onBlur,c=t.options;return o().createElement("ul",{className:"list-inline"},this.dateElementProps.map((function(t,c){return o().createElement("li",{key:c},o().createElement(at,et({rootId:r,select:e.onChange},t,{disabled:n,readonly:i,registry:a,onBlur:l,autofocus:s&&0===c})))})),("undefined"===c.hideNowButton||!c.hideNowButton)&&o().createElement("li",null,o().createElement("a",{href:"#",className:"btn btn-info btn-now",onClick:this.setNow},"Now")),("undefined"===c.hideClearButton||!c.hideClearButton)&&o().createElement("li",null,o().createElement("a",{href:"#",className:"btn btn-warning btn-clear",onClick:this.clear},"Clear")))}},{key:"dateElementProps",get:function(){var e=this.props,t=e.time,r=e.options,n=this.state,i=n.year,o=n.month,s=n.day,a=n.hour,l=n.minute,c=n.second,u=[{type:"year",range:r.yearsRange,value:i},{type:"month",range:[1,12],value:o},{type:"day",range:[1,31],value:s}];return t&&u.push({type:"hour",range:[0,23],value:a},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:c}),u}}],n&&tt(r.prototype,n),t}(i.Component);ot(lt,"defaultProps",{time:!1,disabled:!1,readonly:!1,autofocus:!1,options:{yearsRange:[1900,(new Date).getFullYear()+2]}});const ct=lt;function ut(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ht(){return ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ht.apply(this,arguments)}function dt(e){var t=e.registry.widgets.AltDateWidget;return o().createElement(t,ht({time:!0},e))}dt.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ut(e,t,r[t])}))}return e}({},ct.defaultProps,{time:!0});const ft=dt;function pt(){return pt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pt.apply(this,arguments)}function mt(e){if(!e.id)throw console.log("No id for",e),new Error("no id for props ".concat(JSON.stringify(e)));var t,r=e.value,n=e.readonly,i=e.disabled,s=e.autofocus,a=e.onBlur,l=e.onFocus,c=e.options,u=e.schema,h=(e.uiSchema,e.formContext,e.registry,e.rawErrors,function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["value","readonly","disabled","autofocus","onBlur","onFocus","options","schema","uiSchema","formContext","registry","rawErrors"]));return c.inputType?h.type=c.inputType:h.type||("number"===u.type?(h.type="number",h.step="any"):"integer"===u.type?(h.type="number",h.step="1"):h.type="text"),c.autocomplete&&(h.autoComplete=c.autocomplete),u.multipleOf&&(h.step=u.multipleOf),void 0!==u.minimum&&(h.min=u.minimum),void 0!==u.maximum&&(h.max=u.maximum),[o().createElement("input",pt({key:h.id,className:"form-control",readOnly:n,disabled:i,autoFocus:s,value:null==r?"":r},h,{list:u.examples?"examples_".concat(h.id):null,onChange:function(t){var r=t.target.value;return e.onChange(""===r?c.emptyValue:r)},onBlur:a&&function(e){return a(h.id,e.target.value)},onFocus:l&&function(e){return l(h.id,e.target.value)}})),u.examples?o().createElement("datalist",{key:"datalist_".concat(h.id),id:"examples_".concat(h.id)},(t=new Set(u.examples.concat(u.default?[u.default]:[])),function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(t)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()).map((function(e){return o().createElement("option",{key:e,value:e})}))):null]}mt.defaultProps={required:!1,disabled:!1,readonly:!1,autofocus:!1};const gt=mt;function yt(e){var t=e.schema,r=e.id,n=e.value,i=e.disabled,s=e.readonly,a=e.label,l=e.autofocus,c=e.onBlur,u=e.onFocus,h=e.onChange,d=e.DescriptionField,f=fn(t);return o().createElement("div",{className:"checkbox ".concat(i||s?"disabled":"")},t.description&&o().createElement(d,{description:t.description}),o().createElement("label",null,o().createElement("input",{type:"checkbox",id:r,checked:void 0!==n&&n,required:f,disabled:i||s,autoFocus:l,onChange:function(e){return h(e.target.checked)},onBlur:c&&function(e){return c(r,e.target.checked)},onFocus:u&&function(e){return u(r,e.target.checked)}}),o().createElement("span",null,a)))}yt.defaultProps={autofocus:!1};const vt=yt;function _t(e){var t=e.id,r=e.disabled,n=e.options,i=e.value,s=e.autofocus,a=e.readonly,l=e.onChange,c=n.enumOptions,u=n.enumDisabled,h=n.inline;return o().createElement("div",{className:"checkboxes",id:t},c.map((function(e,n){var d=-1!==i.indexOf(e.value),f=u&&-1!=u.indexOf(e.value),p=r||f||a?"disabled":"",m=o().createElement("span",null,o().createElement("input",{type:"checkbox",id:"".concat(t,"_").concat(n),checked:d,disabled:r||f||a,autoFocus:s&&0===n,onChange:function(t){var r=c.map((function(e){return e.value}));t.target.checked?l(function(e,t,r){var n=r.indexOf(e);return t.slice(0,n).concat(e,t.slice(n)).sort((function(e,t){return r.indexOf(e)>r.indexOf(t)}))}(e.value,i,r)):l(function(e,t){return t.filter((function(t){return t!==e}))}(e.value,i))}}),o().createElement("span",null,e.label));return h?o().createElement("label",{key:n,className:"checkbox-inline ".concat(p)},m):o().createElement("div",{key:n,className:"checkbox ".concat(p)},o().createElement("label",null,m))})))}_t.defaultProps={autofocus:!1,options:{inline:!1}};const bt=_t;function wt(){return wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wt.apply(this,arguments)}function Et(){return Et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Et.apply(this,arguments)}function xt(){return xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xt.apply(this,arguments)}function St(){return St=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},St.apply(this,arguments)}function At(e){return At="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},At(e)}function Tt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Pt(e){return Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pt(e)}function Ct(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ot(e,t){return Ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ot(e,t)}function Rt(e,t){return e.replace(";base64",";name=".concat(encodeURIComponent(t),";base64"))}function Dt(e){var t=e.name,r=e.size,n=e.type;return new Promise((function(i,o){var s=new window.FileReader;s.onerror=o,s.onload=function(e){i({dataURL:Rt(e.target.result,t),name:t,size:r,type:n})},s.readAsDataURL(e)}))}function It(e){var t=e.filesInfo;return 0===t.length?null:o().createElement("ul",{className:"file-info"},t.map((function(e,t){var r=e.name,n=e.size,i=e.type;return o().createElement("li",{key:t},o().createElement("strong",null,r)," (",i,", ",n," bytes)")})))}var kt=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==At(t)&&"function"!=typeof t?Ct(e):t}(this,Pt(t).call(this,e)),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Ct(r),"onChange",(function(e){var t,n=r.props,i=n.multiple,o=n.onChange;(t=e.target.files,Promise.all([].map.call(t,Dt))).then((function(e){var t={values:e.map((function(e){return e.dataURL})),filesInfo:e};r.setState(t,(function(){o(i?t.values:t.values[0])}))}))}));var n,i=e.value,o=Array.isArray(i)?i:[i];return r.state={values:o,filesInfo:(n=o,n.filter((function(e){return void 0!==e})).map((function(e){var t=un(e),r=t.blob;return{name:t.name,size:r.size,type:r.type}})))},r}var r,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}}),t&&Ot(e,t)}(t,e),r=t,(n=[{key:"shouldComponentUpdate",value:function(e,t){return tn(this,e,t)}},{key:"render",value:function(){var e=this,t=this.props,r=t.multiple,n=t.id,i=t.readonly,s=t.disabled,a=t.autofocus,l=t.options,c=this.state.filesInfo;return o().createElement("div",null,o().createElement("p",null,o().createElement("input",{ref:function(t){return e.inputRef=t},id:n,type:"file",disabled:i||s,onChange:this.onChange,defaultValue:"",autoFocus:a,multiple:r,accept:l.accept})),o().createElement(It,{filesInfo:c}))}}])&&Tt(r.prototype,n),t}(i.Component);kt.defaultProps={autofocus:!1};const Ft=kt;function jt(){return jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jt.apply(this,arguments)}function Lt(e){var t=e.options,r=e.value,n=e.required,i=e.disabled,s=e.readonly,a=e.autofocus,l=e.onBlur,c=e.onFocus,u=e.onChange,h=e.id,d=Math.random().toString(),f=t.enumOptions,p=t.enumDisabled,m=t.inline;return o().createElement("div",{className:"field-radio-group",id:h},f.map((function(e,t){var f=e.value===r,g=p&&-1!=p.indexOf(e.value),y=i||g||s?"disabled":"",v=o().createElement("span",null,o().createElement("input",{type:"radio",checked:f,name:d,required:n,value:e.value,disabled:i||g||s,autoFocus:a&&0===t,onChange:function(t){return u(e.value)},onBlur:l&&function(e){return l(h,e.target.value)},onFocus:c&&function(e){return c(h,e.target.value)}}),o().createElement("span",null,e.label));return m?o().createElement("label",{key:t,className:"radio-inline ".concat(y)},v):o().createElement("div",{key:t,className:"radio ".concat(y)},o().createElement("label",null,v))})))}Lt.defaultProps={autofocus:!1};const Mt=Lt;function Nt(){return Nt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nt.apply(this,arguments)}var $t=new Set(["number","integer"]);function Gt(e,t){var r=e.type,n=e.items;if(""!==t){if("array"===r&&n&&$t.has(n.type))return t.map(kr);if("boolean"===r)return"true"===t;if("number"===r)return kr(t);if(e.enum){if(e.enum.every((function(e){return"number"===Vr(e)})))return kr(t);if(e.enum.every((function(e){return"boolean"===Vr(e)})))return"true"===t}return t}}function zt(e,t){return t?[].slice.call(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value})):e.target.value}function Ut(e){var t=e.schema,r=e.id,n=e.options,i=e.value,s=e.required,a=e.disabled,l=e.readonly,c=e.multiple,u=e.autofocus,h=e.onChange,d=e.onBlur,f=e.onFocus,p=e.placeholder,m=n.enumOptions,g=n.enumDisabled,y=c?[]:"";return o().createElement("select",{id:r,multiple:c,className:"form-control",value:void 0===i?y:i,required:s,disabled:a||l,autoFocus:u,onBlur:d&&function(e){var n=zt(e,c);d(r,Gt(t,n))},onFocus:f&&function(e){var n=zt(e,c);f(r,Gt(t,n))},onChange:function(e){var r=zt(e,c);h(Gt(t,r))}},!c&&void 0===t.default&&o().createElement("option",{value:""},p),m.map((function(e,t){var r=e.value,n=e.label,i=g&&-1!=g.indexOf(r);return o().createElement("option",{key:t,value:r,disabled:i},n)})))}Ut.defaultProps={autofocus:!1};const Bt=Ut;function Vt(e){var t=e.id,r=e.options,n=e.placeholder,i=e.value,s=e.required,a=e.disabled,l=e.readonly,c=e.autofocus,u=e.onChange,h=e.onBlur,d=e.onFocus;return o().createElement("textarea",{id:t,className:"form-control",value:i||"",placeholder:n,required:s,disabled:a,readOnly:l,autoFocus:c,rows:r.rows,onBlur:h&&function(e){return h(t,e.target.value)},onFocus:d&&function(e){return d(t,e.target.value)},onChange:function(e){var t=e.target.value;return u(""===t?r.emptyValue:t)}})}Vt.defaultProps={autofocus:!1,options:{}};function Kt(){return Kt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kt.apply(this,arguments)}function qt(){return qt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qt.apply(this,arguments)}const Wt={BaseInput:gt,PasswordWidget:function(e){var t=e.registry.widgets.BaseInput;return o().createElement(t,jt({type:"password"},e))},RadioWidget:Mt,UpDownWidget:function(e){var t=e.registry.widgets.BaseInput;return o().createElement(t,qt({type:"number"},e,hn(e.schema)))},RangeWidget:function(e){var t=e.schema,r=e.value,n=e.registry.widgets.BaseInput;return o().createElement("div",{className:"field-range-wrapper"},o().createElement(n,Nt({type:"range"},e,hn(t))),o().createElement("span",{className:"range-view"},r))},SelectWidget:Bt,TextWidget:function(e){var t=e.registry.widgets.BaseInput;return o().createElement(t,e)},DateWidget:function(e){var t=e.onChange,r=e.registry.widgets.BaseInput;return o().createElement(r,Et({type:"date"},e,{onChange:function(e){return t(e||void 0)}}))},DateTimeWidget:function(e){var t=e.value,r=e.onChange,n=e.registry.widgets.BaseInput;return o().createElement(n,xt({type:"datetime-local"},e,{value:an(t),onChange:function(e){return r(ln(e))}}))},AltDateWidget:ct,AltDateTimeWidget:ft,EmailWidget:function(e){var t=e.registry.widgets.BaseInput;return o().createElement(t,St({type:"email"},e))},URLWidget:function(e){var t=e.registry.widgets.BaseInput;return o().createElement(t,Kt({type:"url"},e))},TextareaWidget:Vt,HiddenWidget:function(e){var t=e.id,r=e.value;return o().createElement("input",{type:"hidden",id:t,value:void 0===r?"":r})},ColorWidget:function(e){var t=e.disabled,r=e.readonly,n=e.registry.widgets.BaseInput;return o().createElement(n,wt({type:"color"},e,{disabled:t||r}))},FileWidget:Ft,CheckboxWidget:vt,CheckboxesWidget:bt};var Ht=r(42613),Yt=r.n(Ht),Xt=r(88115),Zt=r.n(Xt);function Jt(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Qt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){er(e,t,r[t])}))}return e}function er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tr=or(),rr=null,nr=null,ir="__rjsf_rootSchema";function or(){var e=new(Zt())({errorDataPath:"property",allErrors:!0,multipleOfPrecision:8,schemaId:"auto",unknownFormats:"ignore"});return e.addFormat("data-url",/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/),e.addFormat("color",/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/),e}function sr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"root",r=[];return"__errors"in e&&(r=r.concat(e.__errors.map((function(e){return{stack:"".concat(t,": ").concat(e)}})))),Object.keys(e).reduce((function(t,r){return"__errors"!==r&&(t=t.concat(sr(e[r],r))),t}),r)}function ar(e){var t={__errors:[],addError:function(e){this.__errors.push(e)}};return Dr(e)?Object.keys(e).reduce((function(t,r){return Qt({},t,er({},r,ar(e[r])))}),t):Array.isArray(e)?e.reduce((function(e,t,r){return Qt({},e,er({},r,ar(t)))}),t):t}function lr(e){return Object.keys(e).reduce((function(t,r){return"addError"===r?t:Qt({},t,er({},r,"__errors"===r?e[r]:lr(e[r])))}),{})}function cr(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};e=Pr(t,e,t,!0);var s=!en(nr,i),a=!en(rr,o);(s||a)&&(tr=or()),i&&s&&Array.isArray(i)&&(tr.addMetaSchema(i),nr=i),o&&a&&Dr(o)&&(Object.keys(o).forEach((function(e){tr.addFormat(e,o[e])})),rr=o);var l=null;try{tr.validate(t,e)}catch(e){l=e}var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null===e?[]:e.map((function(e){var t=e.dataPath,r=e.keyword,n=e.message,i=e.params,o=e.schemaPath,s="".concat(t);return{name:r,property:s,message:n,params:i,stack:"".concat(s," ").concat(n).trim(),schemaPath:o}}))}(tr.errors);tr.errors=null;var u=l&&l.message&&"string"==typeof l.message&&l.message.includes("no schema with key or ref ");u&&(c=[].concat(Jt(c),[{stack:l.message}])),"function"==typeof n&&(c=n(c));var h=function(e){return e.length?e.reduce((function(e,t){var r=t.property,n=t.message,i=Yt()(r),o=e;i.length>0&&""===i[0]&&i.splice(0,1);var s=!0,a=!1,l=void 0;try{for(var c,u=i.slice(0)[Symbol.iterator]();!(s=(c=u.next()).done);s=!0){var h=c.value;h in o||(o[h]={}),o=o[h]}}catch(e){a=!0,l=e}finally{try{s||null==u.return||u.return()}finally{if(a)throw l}}return Array.isArray(o.__errors)?o.__errors=o.__errors.concat(n):n&&(o.__errors=[n]),e}),{}):{}}(c);if(u&&(h=Qt({},h,{$schema:{__errors:[l.message]}})),"function"!=typeof r)return{errors:c,errorSchema:h};var d=Ir(h,lr(r(e,ar(e))),!0);return{errors:sr(d),errorSchema:d}}function ur(e){var t=e;if(e.constructor===Object)for(var r in t=Qt({},e)){var n=t[r];"$ref"===r&&"string"==typeof n&&n.startsWith("#")?t[r]=ir+n:t[r]=ur(n)}else if(Array.isArray(e)){t=Jt(e);for(var i=0;i<t.length;i++)t[i]=ur(t[i])}return t}function hr(e,t,r){try{return tr.addSchema(r,ir).validate(ur(e),t)}catch(e){return!1}finally{tr.removeSchema(ir)}}function dr(e){var t=function(e){if("object"!==pr(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==pr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===pr(t)?t:String(t)}function fr(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function pr(e){return pr="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},pr(e)}function mr(){return mr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mr.apply(this,arguments)}function gr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){yr(e,t,r[t])}))}return e}function yr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vr(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var _r="__additional_property",br={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function wr(e,t,r){if(!e.additionalProperties)return!1;var n=Or(t).expandable;return!1===n?n:void 0===e.maxProperties||Object.keys(r).length<e.maxProperties}function Er(){return{fields:Je,widgets:Wt,definitions:{},rootSchema:{},formContext:{}}}function xr(e){var t=e.type;return!t&&e.const?Vr(e.const):!t&&e.enum?"string":t||!e.properties&&!e.additionalProperties?t instanceof Array&&2===t.length&&t.includes("null")?t.find((function(e){return"null"!==e})):t:"object"}function Sr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=xr(e);if("function"==typeof t||d.isForwardRef(o().createElement(t))||d.isMemo(t))return function(e){if(!e.MergedWidget){var t=e.defaultProps&&e.defaultProps.options||{};e.MergedWidget=function(r){var n=r.options,i=void 0===n?{}:n,s=vr(r,["options"]);return o().createElement(e,mr({options:gr({},t,i)},s))}}return e.MergedWidget}(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: ".concat(pr(t)));if(r.hasOwnProperty(t))return Sr(e,r[t],r);if(!br.hasOwnProperty(n))throw new Error('No widget for type "'.concat(n,'"'));if(br[n].hasOwnProperty(t))return Sr(e,r[br[n][t]],r);throw new Error('No widget "'.concat(t,'" for type "').concat(n,'"'))}function Ar(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return Sr(e,t,r),!0}catch(e){if(e.message&&(e.message.startsWith("No widget")||e.message.startsWith("Unsupported widget")))return!1;throw e}}function Tr(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=Dr(e)?e:{},s=Dr(n)?n:{},a=t;if(Dr(a)&&Dr(o.default))a=Ir(a,o.default);else if("default"in o)a=o.default;else{if("$ref"in o)return Tr(Br(o.$ref,r),a,r,s,i);if("dependencies"in o)return Tr(Yr(o,r,s),a,r,s,i);Gr(o)?a=o.items.map((function(e,n){return Tr(e,Array.isArray(t)?t[n]:void 0,r,s,i)})):"oneOf"in o?o=o.oneOf[dn(void 0,o.oneOf,r)]:"anyOf"in o&&(o=o.anyOf[dn(void 0,o.anyOf,r)])}switch(void 0===a&&(a=o.default),xr(o)){case"object":return Object.keys(o.properties||{}).reduce((function(e,t){var n=Tr(o.properties[t],(a||{})[t],r,(s||{})[t],i);return(i||void 0!==n)&&(e[t]=n),e}),{});case"array":if(Array.isArray(a)&&(a=a.map((function(e,t){return Tr(o.items[t]||o.additionalItems||{},e,r)}))),Array.isArray(n)&&(a=n.map((function(e,t){return Tr(o.items,(a||{})[t],r,e)}))),o.minItems){if(Nr(o,r))return a||[];var l=a?a.length:0;if(o.minItems>l){var c=a||[],u=Array.isArray(o.items)?o.additionalItems:o.items,h=g()(new Array(o.minItems-l),Tr(u,u.defaults,r));return c.concat(h)}}}return a}function Pr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Dr(e))throw new Error("Invalid schema: "+e);var i=Tr(Hr(e,r,t),e.default,r,t,n);return void 0===t?i:Dr(t)||Array.isArray(t)?Cr(i,t):0===t||!1===t||""===t?t:t||i}function Cr(e,t){if(Array.isArray(t))return Array.isArray(e)||(e=[]),t.map((function(t,r){return e[r]?Cr(e[r],t):t}));if(Dr(t)){var r=Object.assign({},e);return Object.keys(t).reduce((function(r,n){return r[n]=Cr(e?e[n]:{},t[n]),r}),r)}return t}function Or(e){return Object.keys(e).filter((function(e){return 0===e.indexOf("ui:")})).reduce((function(t,r){var n=e[r];return"ui:widget"===r&&Dr(n)?(console.warn("Setting options via ui:widget object is deprecated, use ui:options instead"),gr({},t,n.options||{},{widget:n.component})):"ui:options"===r&&Dr(n)?gr({},t,n):gr({},t,yr({},r.substring(3),n))}),{})}function Rr(e,t,r){var n=Or(t).label,i=void 0===n||n,o=xr(e);return"array"===o&&(i=Nr(e,r)||$r(e,t,r)),"object"===o&&(i=!1),"boolean"!==o||t["ui:widget"]||(i=!1),t["ui:field"]&&(i=!1),i}function Dr(e){return!("undefined"!=typeof File&&e instanceof File||"object"!==pr(e)||null===e||Array.isArray(e))}function Ir(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Object.assign({},e);return Object.keys(t).reduce((function(n,i){var o=e?e[i]:{},s=t[i];return e&&e.hasOwnProperty(i)&&Dr(s)?n[i]=Ir(o,s,r):r&&Array.isArray(o)&&Array.isArray(s)?n[i]=o.concat(s):n[i]=s,n}),n)}function kr(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;var t=Number(e),r="number"==typeof t&&!Number.isNaN(t);return/\.\d*0$/.test(e)?e:r?t:e}}function Fr(e,t){if(!Array.isArray(t))return e;var r,n=function(e){return e.reduce((function(e,t){return e[t]=!0,e}),{})},i=n(e),o=t.filter((function(e){return"*"===e||i[e]})),s=n(o),a=e.filter((function(e){return!s[e]})),l=o.indexOf("*");if(-1===l){if(a.length)throw new Error("uiSchema order list does not contain ".concat((r=a).length>1?"properties '".concat(r.join("', '"),"'"):"property '".concat(r[0],"'")));return o}if(l!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var c=fr(o);return c.splice.apply(c,[l,1].concat(fr(a))),c}function jr(e){return Array.isArray(e.enum)&&1===e.enum.length||e.hasOwnProperty("const")}function Lr(e){if(Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(e.hasOwnProperty("const"))return e.const;throw new Error("schema cannot be inferred as a constant")}function Mr(e){var t=Hr(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),r=t.oneOf||t.anyOf;return!!Array.isArray(t.enum)||!!Array.isArray(r)&&r.every((function(e){return jr(e)}))}function Nr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(!e.uniqueItems||!e.items)&&Mr(e.items,t)}function $r(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("files"===t["ui:widget"])return!0;if(e.items){var n=Hr(e.items,r);return"string"===n.type&&"data-url"===n.format}return!1}function Gr(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return Dr(e)}))}function zr(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),Dr(e.additionalItems)}function Ur(e){return e.enum?e.enum.map((function(t,r){return{label:e.enumNames&&e.enumNames[r]||String(t),value:t}})):(e.oneOf||e.anyOf).map((function(e,t){var r=Lr(e);return{schema:e,label:e.title||String(r),value:r}}))}function Br(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e;if(!e.startsWith("#"))throw new Error("Could not find a definition for ".concat(r,"."));e=decodeURIComponent(e.substring(1));var n=_.get(t,e);if(void 0===n)throw new Error("Could not find a definition for ".concat(r,"."));return n.hasOwnProperty("$ref")?Br(n.$ref,t):n}var Vr=function(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"===pr(e)?"object":"string":"number"};function Kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=gr({},e,{properties:gr({},e.properties)}),r=Dr(r)?r:{},Object.keys(r).forEach((function(n){var i;e.properties.hasOwnProperty(n)||(i=e.additionalProperties.hasOwnProperty("$ref")?Hr({$ref:e.additionalProperties.$ref},t,r):e.additionalProperties.hasOwnProperty("type")?gr({},e.additionalProperties):{type:Vr(r[n])},e.properties[n]=i,e.properties[n][_r]=!0)})),e}function qr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.hasOwnProperty("$ref")?Wr(e,t,r):e.hasOwnProperty("dependencies")?Hr(Yr(e,t,r),t,r):e.hasOwnProperty("allOf")?gr({},e,{allOf:e.allOf.map((function(e){return Hr(e,t,r)}))}):e}function Wr(e,t,r){var n=Br(e.$ref,t);return e.$ref,Hr(gr({},n,vr(e,["$ref"])),t,r)}function Hr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Dr(e))return{};var n=qr(e,t,r);if("allOf"in e)try{n=p()(gr({},n,{allOf:n.allOf}))}catch(e){console.warn("could not merge subschemas in allOf:\n"+e);var i=n;return i.allOf,vr(i,["allOf"])}return n.hasOwnProperty("additionalProperties")&&!1!==n.additionalProperties?Kr(n,t,r):n}function Yr(e,t,r){var n=e.dependencies,i=void 0===n?{}:n,o=vr(e,["dependencies"]);return"oneOf"in o?o=o.oneOf[dn(r,o.oneOf,t)]:"anyOf"in o&&(o=o.anyOf[dn(r,o.anyOf,t)]),Xr(i,o,t,r)}function Xr(e,t,r,n){for(var i in e)if(void 0!==n[i]&&(!t.properties||i in t.properties)){var o=e[i],s=vr(e,[i].map(dr));return Array.isArray(o)?(a=t,t=(l=o)?gr({},a,{required:Array.isArray(a.required)?Array.from(new Set([].concat(fr(a.required),fr(l)))):l}):a):Dr(o)&&(t=Zr(t,r,n,i,o)),Xr(s,t,r,n)}var a,l;return t}function Zr(e,t,r,n,i){var o=Hr(i,t,r),s=o.oneOf;if(e=Jr(e,vr(o,["oneOf"])),void 0===s)return e;if(!Array.isArray(s))throw new Error("invalid: it is some ".concat(pr(s)," instead of an array"));var a=s.map((function(e){return e.hasOwnProperty("$ref")?Wr(e,t,r):e}));return function(e,t,r,n,i){var o=i.filter((function(e){if(!e.properties)return!1;var t=e.properties[n];if(t){var i={type:"object",properties:yr({},n,t)};return 0===cr(r,i).errors.length}}));if(1!==o.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),e;var s=o[0],a=s.properties;return Jr(e,Hr(gr({},s,{properties:(a[n],vr(a,[n].map(dr)))}),t,r))}(e,t,r,n,a)}function Jr(e,t){var r=Object.assign({},e);return Object.keys(t).reduce((function(r,n){var i=e?e[n]:{},o=t[n];return e&&e.hasOwnProperty(n)&&Dr(o)?r[n]=Jr(i,o):e&&t&&("object"===xr(e)||"object"===xr(t))&&"required"===n&&Array.isArray(i)&&Array.isArray(o)?r[n]=v()(i,o):r[n]=o,r}),r)}function Qr(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function en(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!==pr(e)||"object"!==pr(t))return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(Qr(e)||Qr(t)){if(!Qr(e)||!Qr(t))return!1;var i=Array.prototype.slice;return en(i.call(e),i.call(t),r,n)}if(e.constructor!==t.constructor)return!1;var o=Object.keys(e),s=Object.keys(t);if(0===o.length&&0===s.length)return!0;if(o.length!==s.length)return!1;for(var a,l=r.length;l--;)if(r[l]===e)return n[l]===t;r.push(e),n.push(t),o.sort(),s.sort();for(var c=o.length-1;c>=0;c--)if(o[c]!==s[c])return!1;for(var u=o.length-1;u>=0;u--)if(!en(e[a=o[u]],t[a],r,n))return!1;return r.pop(),n.pop(),!0}function tn(e,t,r){var n=e.props,i=e.state;return!en(n,t)||!en(i,r)}function rn(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"root",o={$id:t||i};if("$ref"in e||"dependencies"in e||"allOf"in e)return rn(Hr(e,r,n),t,r,n,i);if("items"in e&&!e.items.$ref)return rn(e.items,t,r,n,i);if("object"!==e.type)return o;for(var s in e.properties||{}){var a=e.properties[s],l=o.$id+"_"+s;o[s]=rn(Dr(a)?a:{},l,r,(n||{})[s],i)}return o}function nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={$name:t.replace(/^\./,"")};if("$ref"in e||"dependencies"in e||"allOf"in e)return nn(Hr(e,r,n),t,r,n);if(e.hasOwnProperty("additionalProperties")&&(i.__rjsf_additionalProperties=!0),e.hasOwnProperty("items")&&Array.isArray(n))n.forEach((function(n,o){i[o]=nn(e.items,"".concat(t,".").concat(o),r,n)}));else if(e.hasOwnProperty("properties"))for(var o in e.properties)i[o]=nn(e.properties[o],"".concat(t,".").concat(o),r,(n||{})[o]);return i}function on(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};var r=new Date(e);if(Number.isNaN(r.getTime()))throw new Error("Unable to parse date "+e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:t?r.getUTCHours():0,minute:t?r.getUTCMinutes():0,second:t?r.getUTCSeconds():0}}function sn(e){var t=e.year,r=e.month,n=e.day,i=e.hour,o=void 0===i?0:i,s=e.minute,a=void 0===s?0:s,l=e.second,c=void 0===l?0:l,u=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],h=Date.UTC(t,r-1,n,o,a,c),d=new Date(h).toJSON();return u?d:d.slice(0,10)}function an(e){if(!e)return"";var t=new Date(e),r=cn(t.getFullYear(),4),n=cn(t.getMonth()+1,2),i=cn(t.getDate(),2),o=cn(t.getHours(),2),s=cn(t.getMinutes(),2),a=cn(t.getSeconds(),2),l=cn(t.getMilliseconds(),3);return"".concat(r,"-").concat(n,"-").concat(i,"T").concat(o,":").concat(s,":").concat(a,".").concat(l)}function ln(e){if(e)return new Date(e).toJSON()}function cn(e,t){for(var r=String(e);r.length<t;)r="0"+r;return r}function un(e){var t,r=e.split(","),n=r[0].split(";"),i=n[0].replace("data:",""),o=n.filter((function(e){return"name"===e.split("=")[0]}));t=1!==o.length?"unknown":o[0].split("=")[1];for(var s=atob(r[1]),a=[],l=0;l<s.length;l++)a.push(s.charCodeAt(l));return{blob:new window.Blob([new Uint8Array(a)],{type:i}),name:t}}function hn(e){var t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||0===e.minimum)&&(t.min=e.minimum),(e.maximum||0===e.maximum)&&(t.max=e.maximum),t}function dn(e,t,r){for(var n=0;n<t.length;n++){var i=t[n];if(i.properties){var o={anyOf:Object.keys(i.properties).map((function(e){return{required:[e]}}))},s=void 0;if(i.anyOf){var a=mr({},i);a.allOf?a.allOf=a.allOf.slice():a.allOf=[],a.allOf.push(o),s=a}else s=Object.assign({},i,o);if(delete s.required,hr(s,e,r))return n}else if(hr(i,e,r))return n}return 0}function fn(e){return!!e.const||!(!e.enum||1!==e.enum.length||!0!==e.enum[0])||(e.anyOf&&1===e.anyOf.length?fn(e.anyOf[0]):e.oneOf&&1===e.oneOf.length?fn(e.oneOf[0]):!!e.allOf&&e.allOf.some(fn))}function pn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bn(e,t,r[t])}))}return e}function mn(e){return mn="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},mn(e)}function gn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function yn(e){return yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yn(e)}function vn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _n(e,t){return _n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_n(e,t)}function bn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wn=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==mn(t)&&"function"!=typeof t?vn(e):t}(this,yn(t).call(this,e)),bn(vn(r),"getUsedFormData",(function(e,t){if(0===t.length&&"object"!==mn(e))return e;var r=a()(e,t);return Array.isArray(e)?Object.keys(r).map((function(e){return r[e]})):r})),bn(vn(r),"getFieldNames",(function(e,t){return function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""];return Object.keys(r).forEach((function(o){if("object"===mn(r[o])){var s=i.map((function(e){return"".concat(e,".").concat(o)}));r[o].__rjsf_additionalProperties&&""!==r[o].$name?n.push(r[o].$name):e(r[o],n,s)}else"$name"===o&&""!==r[o]&&i.forEach((function(e){e=e.replace(/^\./,"");var r=c()(t,e);("object"!==mn(r)||h()(r))&&n.push(e)}))})),n}(e)})),bn(vn(r),"onChange",(function(e,t){(Dr(e)||Array.isArray(e))&&(e=r.getStateFromProps(r.props,e).formData);var n=!r.props.noValidate&&r.props.liveValidate,i={formData:e},o=e;if(!0===r.props.omitExtraData&&!0===r.props.liveOmit){var s=nn(Hr(r.state.schema,r.state.schema,e),"",r.state.schema,e),a=r.getFieldNames(s,e);i={formData:o=r.getUsedFormData(e,a)}}if(n){var l=r.validate(o),c=l.errors,u=l.errorSchema,h=c,d=u;r.props.extraErrors&&(c=sr(u=Ir(u,r.props.extraErrors,!0))),i={formData:o,errors:c,errorSchema:u,schemaValidationErrors:h,schemaValidationErrorSchema:d}}else if(!r.props.noValidate&&t){var f=r.props.extraErrors?Ir(t,r.props.extraErrors,!0):t;i={formData:o,errorSchema:f,errors:sr(f)}}r.setState(i,(function(){return r.props.onChange&&r.props.onChange(r.state)}))})),bn(vn(r),"onBlur",(function(){var e;r.props.onBlur&&(e=r.props).onBlur.apply(e,arguments)})),bn(vn(r),"onFocus",(function(){var e;r.props.onFocus&&(e=r.props).onFocus.apply(e,arguments)})),bn(vn(r),"onSubmit",(function(e){if(e.preventDefault(),e.target===e.currentTarget){e.persist();var t,n,i=r.state.formData;if(!0===r.props.omitExtraData){var o=nn(Hr(r.state.schema,r.state.schema,i),"",r.state.schema,i),s=r.getFieldNames(o,i);i=r.getUsedFormData(i,s)}if(!r.props.noValidate){var a=r.validate(i),l=a.errors,c=a.errorSchema,u=l,h=c;if(Object.keys(l).length>0)return r.props.extraErrors&&(c=Ir(c,r.props.extraErrors,!0),l=sr(c)),void r.setState({errors:l,errorSchema:c,schemaValidationErrors:u,schemaValidationErrorSchema:h},(function(){r.props.onError?r.props.onError(l):console.error("Form validation failed",l)}))}r.props.extraErrors?n=sr(t=r.props.extraErrors):(t={},n=[]),r.setState({formData:i,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(function(){r.props.onSubmit&&r.props.onSubmit(pn({},r.state,{formData:i,status:"submitted"}),e)}))}})),r.state=r.getStateFromProps(e,e.formData),r.props.onChange&&!en(r.state.formData,r.props.formData)&&r.props.onChange(r.state),r.formElement=null,r}var r,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}}),t&&_n(e,t)}(t,e),r=t,n=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.getStateFromProps(e,e.formData);en(t.formData,e.formData)||en(t.formData,this.state.formData)||!this.props.onChange||this.props.onChange(t),this.setState(t)}},{key:"getStateFromProps",value:function(e,t){var r,n,i,o,s=this.state||{},a="schema"in e?e.schema:this.props.schema,l="uiSchema"in e?e.uiSchema:this.props.uiSchema,c=void 0!==t,u="liveValidate"in e?e.liveValidate:this.props.liveValidate,h=c&&!e.noValidate&&u,d=a,f=Pr(a,t,d),p=Hr(a,d,f),m=e.customFormats,g=e.additionalMetaSchemas;if(h){var y=this.validate(f,a,g,m);i=r=y.errors,o=n=y.errorSchema}else{var v=e.noValidate?{errors:[],errorSchema:{}}:e.liveValidate?{errors:s.errors||[],errorSchema:s.errorSchema||{}}:{errors:s.schemaValidationErrors||[],errorSchema:s.schemaValidationErrorSchema||{}};r=v.errors,n=v.errorSchema,i=s.schemaValidationErrors,o=s.schemaValidationErrorSchema}e.extraErrors&&(r=sr(n=Ir(n,e.extraErrors,!0)));var _={schema:a,uiSchema:l,idSchema:rn(p,l["ui:rootFieldId"],d,f,e.idPrefix),formData:f,edit:c,errors:r,errorSchema:n,additionalMetaSchemas:g};return i&&(_.schemaValidationErrors=i,_.schemaValidationErrorSchema=o),_}},{key:"shouldComponentUpdate",value:function(e,t){return tn(this,e,t)}},{key:"validate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.schema,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.additionalMetaSchemas,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.customFormats,i=this.props,o=i.validate,s=i.transformErrors;return cr(e,Hr(t,this.getRegistry().rootSchema,e),o,s,r,n)}},{key:"renderErrors",value:function(){var e=this.state,t=e.errors,r=e.errorSchema,n=e.schema,i=e.uiSchema,s=this.props,a=s.ErrorList,l=s.showErrorList,c=s.formContext;return t.length&&0!=l?o().createElement(a,{errors:t,errorSchema:r,schema:n,uiSchema:i,formContext:c}):null}},{key:"getRegistry",value:function(){var e=Er(),t=e.fields,r=e.widgets;return{fields:pn({},t,this.props.fields),widgets:pn({},r,this.props.widgets),ArrayFieldTemplate:this.props.ArrayFieldTemplate,ObjectFieldTemplate:this.props.ObjectFieldTemplate,FieldTemplate:this.props.FieldTemplate,definitions:this.props.schema.definitions||{},rootSchema:this.props.schema,formContext:this.props.formContext||{}}}},{key:"submit",value:function(){this.formElement&&this.formElement.dispatchEvent(new CustomEvent("submit",{cancelable:!0}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,n=t.id,i=t.idPrefix,s=t.className,a=t.tagName,l=t.name,c=t.method,u=t.target,h=t.action,d=t.autocomplete,f=t.autoComplete,p=t.enctype,m=t.acceptcharset,g=t.noHtml5Validate,y=t.disabled,v=t.readonly,_=t.formContext,b=this.state,w=b.schema,E=b.uiSchema,x=b.formData,S=b.errorSchema,A=b.idSchema,T=this.getRegistry(),P=T.fields.SchemaField,C=a||"form";d&&console.warn("Using autocomplete property of Form is deprecated, use autoComplete instead.");var O=f||d;return o().createElement(C,{className:s||"rjsf",id:n,name:l,method:c,target:u,action:h,autoComplete:O,encType:p,acceptCharset:m,noValidate:g,onSubmit:this.onSubmit,ref:function(t){e.formElement=t}},this.renderErrors(),o().createElement(P,{schema:w,uiSchema:E,errorSchema:S,idSchema:A,idPrefix:i,formContext:_,formData:x,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:T,disabled:y,readonly:v}),r||o().createElement("div",null,o().createElement("button",{type:"submit",className:"btn btn-info"},"Submit")))}}],n&&gn(r.prototype,n),t}(i.Component);function En(){return En=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},En.apply(this,arguments)}function xn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Sn(e,t,r[t])}))}return e}function Sn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function An(e){return(0,i.forwardRef)((function(t,r){var n=t.fields,i=t.widgets,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,["fields","widgets"]);return n=xn({},e.fields,n),i=xn({},e.widgets,i),o().createElement(Pn,En({},e,s,{fields:n,widgets:i,ref:r}))}))}bn(wn,"defaultProps",{uiSchema:{},noValidate:!1,liveValidate:!1,disabled:!1,readonly:!1,noHtml5Validate:!1,ErrorList:function(e){var t=e.errors;return o().createElement("div",{className:"panel panel-danger errors"},o().createElement("div",{className:"panel-heading"},o().createElement("h3",{className:"panel-title"},"Errors")),o().createElement("ul",{className:"list-group"},t.map((function(e,t){return o().createElement("li",{key:t,className:"list-group-item text-danger"},e.stack)}))))},omitExtraData:!1}),An.propTypes={widgets:T().object,fields:T().object};const Tn=An,Pn=wn},88115:(e,t,r)=>{"use strict";var n=r(57306),i=r(24630),o=r(62742),s=r(99289),a=r(56075),l=r(17438),c=r(77749),u=r(28246),h=r(96644);e.exports=y,y.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var i=r(t);return!0!==r.$async&&(this.errors=r.errors),i},y.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},y.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var o=0;o<e.length;o++)this.addSchema(e[o],void 0,r,n);return this}var s=this._getId(e);if(void 0!==s&&"string"!=typeof s)throw new Error("schema id must be string");return x(this,t=i.normalizeId(t||s)),this._schemas[t]=this._addSchema(e,r,n,!0),this},y.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},y.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(p)?p:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var i="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(i);this.logger.error(i)}return n},y.prototype.getSchema=function(e){var t=v(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=i.schema.call(e,{schema:{}},t);if(r){var o=r.schema,a=r.root,l=r.baseId,c=n.call(e,o,a,void 0,l);return e._fragments[t]=new s({ref:t,fragment:!0,schema:o,root:a,baseId:l,validate:c}),c}}(this,e)}},y.prototype.removeSchema=function(e){if(e instanceof RegExp)return _(this,this._schemas,e),_(this,this._refs,e),this;switch(typeof e){case"undefined":return _(this,this._schemas),_(this,this._refs),this._cache.clear(),this;case"string":var t=v(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var o=this._getId(e);o&&(o=i.normalizeId(o),delete this._schemas[o],delete this._refs[o])}return this},y.prototype.addFormat=function(e,t){return"string"==typeof t&&(t=new RegExp(t)),this._formats[e]=t,this},y.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,i="",o=0;o<e.length;o++){var s=e[o];s&&(i+=n+s.dataPath+" "+s.message+r)}return i.slice(0,-r.length)},y.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var o=this._opts.serialize,a=o?o(e):e,l=this._cache.get(a);if(l)return l;n=n||!1!==this._opts.addUsedSchema;var c=i.normalizeId(this._getId(e));c&&n&&x(this,c);var u,h=!1!==this._opts.validateSchema&&!t;h&&!(u=c&&c==i.normalizeId(e.$schema))&&this.validateSchema(e,!0);var d=i.ids.call(this,e),f=new s({id:c,schema:e,localRefs:d,cacheKey:a,meta:r});return"#"!=c[0]&&n&&(this._refs[c]=f),this._cache.put(a,f),h&&u&&this.validateSchema(e,!0),f},y.prototype._compile=function(e,t){if(e.compiling)return e.validate=o,o.schema=e.schema,o.errors=null,o.root=t||o,!0===e.schema.$async&&(o.$async=!0),o;var r,i;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{i=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=i,e.refs=i.refs,e.refVal=i.refVal,e.root=i.root,i;function o(){var t=e.validate,r=t.apply(this,arguments);return o.errors=t.errors,r}},y.prototype.compileAsync=r(44622);var d=r(22755);y.prototype.addKeyword=d.add,y.prototype.getKeyword=d.get,y.prototype.removeKeyword=d.remove,y.prototype.validateKeyword=d.validate;var f=r(70343);y.ValidationError=f.Validation,y.MissingRefError=f.MissingRef,y.$dataMetaSchema=u;var p="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],g=["/properties"];function y(e){if(!(this instanceof y))return new y(e);e=this._opts=h.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:S,warn:S,error:S};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=l(e.format),this._cache=e.cache||new o,this._loadingSchemas={},this._compilations=[],this.RULES=c(),this._getId=function(e){switch(e.schemaId){case"auto":return E;case"id":return b;default:return w}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=a),this._metaOpts=function(e){for(var t=h.copy(e._opts),r=0;r<m.length;r++)delete t[m[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;if(e._opts.$data&&(t=r(32604),e.addMetaSchema(t,t.$id,!0)),!1!==e._opts.meta){var n=r(42710);e._opts.$data&&(n=u(n,g)),e.addMetaSchema(n,p,!0),e._refs["http://json-schema.org/schema"]=p}}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(t)if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function v(e,t){return t=i.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function _(e,t,r){for(var n in t){var i=t[n];i.meta||r&&!r.test(n)||(e._cache.del(i.cacheKey),delete t[n])}}function b(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function w(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function E(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function x(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function S(){}},62742:e=>{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},44622:(e,t,r)=>{"use strict";var n=r(70343).MissingRef;e.exports=function e(t,r,i){var o=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(i=r,r=void 0);var s=a(t).then((function(){var e=o._addSchema(t,void 0,r);return e.validate||l(e)}));return i&&s.then((function(e){i(null,e)}),i),s;function a(t){var r=t.$schema;return r&&!o.getSchema(r)?e.call(o,{$ref:r},!0):Promise.resolve()}function l(e){try{return o._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(c(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var i=o._loadingSchemas[n];return i||(i=o._loadingSchemas[n]=o._opts.loadSchema(n)).then(s,s),i.then((function(e){if(!c(n))return a(e).then((function(){c(n)||o.addSchema(e,n,void 0,r)}))})).then((function(){return l(e)}));function s(){delete o._loadingSchemas[n]}function c(e){return o._refs[e]||o._schemas[e]}}(t);throw t}}}},70343:(e,t,r)=>{"use strict";var n=r(24630);function i(e,t,r){this.message=r||i.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function o(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:o((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:o(i)},i.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},17438:(e,t,r)=>{"use strict";var n=r(96644),i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,a=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,u=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,h=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,d=/^(?:\/(?:[^~/]|~0|~1)*)*$/,f=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,p=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function g(e){var t=e.match(i);if(!t)return!1;var r=+t[1],n=+t[2],s=+t[3];return n>=1&&n<=12&&s>=1&&s<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:o[n])}function y(e,t){var r=e.match(s);if(!r)return!1;var n=r[1],i=r[2],o=r[3],a=r[5];return(n<=23&&i<=59&&o<=59||23==n&&59==i&&60==o)&&(!t||a)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:u,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:h,"json-pointer":d,"json-pointer-uri-fragment":f,"relative-json-pointer":p},m.full={date:g,time:y,"date-time":function(e){var t=e.split(v);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return _.test(e)&&l.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":c,url:u,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:h,"json-pointer":d,"json-pointer-uri-fragment":f,"relative-json-pointer":p};var v=/t|\s/i,_=/\/|:/,b=/[^\\]\\Z/;function w(e){if(b.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},57306:(e,t,r)=>{"use strict";var n=r(24630),i=r(96644),o=r(70343),s=r(56075),a=r(19905),l=i.ucs2length,c=r(38792),u=o.Validation;function h(e,t,r){var n=f.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function d(e,t,r){var n=f.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function f(e,t,r){for(var n=0;n<this._compilations.length;n++){var i=this._compilations[n];if(i.schema==e&&i.root==t&&i.baseId==r)return n}return-1}function p(e,t){return"var pattern"+e+" = new RegExp("+i.toQuotedString(t[e])+");"}function m(e){return"var default"+e+" = defaults["+e+"];"}function g(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function y(e){return"var customRule"+e+" = customRules["+e+"];"}function v(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}e.exports=function e(t,r,f,_){var b=this,w=this._opts,E=[void 0],x={},S=[],A={},T=[],P={},C=[];r=r||{schema:t,refVal:E,refs:x};var O=h.call(this,t,r,_),R=this._compilations[O.index];if(O.compiling)return R.callValidate=function e(){var t=R.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var D=this._formats,I=this.RULES;try{var k=j(t,r,f,_);R.validate=k;var F=R.callValidate;return F&&(F.schema=k.schema,F.errors=null,F.refs=k.refs,F.refVal=k.refVal,F.root=k.root,F.$async=k.$async,w.sourceCode&&(F.source=k.source)),k}finally{d.call(this,t,r,_)}function j(t,s,h,d){var f=!s||s&&s.schema==t;if(s.schema!=r.schema)return e.call(b,t,s,h,d);var _,A=!0===t.$async,P=a({isTop:!0,schema:t,isRoot:f,baseId:d,root:s,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:o.MissingRef,RULES:I,validate:a,util:i,resolve:n,resolveRef:L,usePattern:$,useDefault:G,useCustomRule:z,opts:w,formats:D,logger:b.logger,self:b});P=v(E,g)+v(S,p)+v(T,m)+v(C,y)+P,w.processCode&&(P=w.processCode(P,t));try{_=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",P)(b,I,D,r,E,T,C,c,l,u),E[0]=_}catch(e){throw b.logger.error("Error compiling schema, function code:",P),e}return _.schema=t,_.errors=null,_.refs=x,_.refVal=E,_.root=f?_:s,A&&(_.$async=!0),!0===w.sourceCode&&(_.source={code:P,patterns:S,defaults:T}),_}function L(t,i,o){i=n.url(t,i);var s,a,l=x[i];if(void 0!==l)return N(s=E[l],a="refVal["+l+"]");if(!o&&r.refs){var c=r.refs[i];if(void 0!==c)return N(s=r.refVal[c],a=M(i,s))}a=M(i);var u=n.call(b,j,r,i);if(void 0===u){var h=f&&f[i];h&&(u=n.inlineRef(h,w.inlineRefs)?h:e.call(b,h,r,f,t))}if(void 0!==u)return function(e,t){var r=x[e];E[r]=t}(i,u),N(u,a);!function(e){delete x[e]}(i)}function M(e,t){var r=E.length;return E[r]=t,x[e]=r,"refVal"+r}function N(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function $(e){var t=A[e];return void 0===t&&(t=A[e]=S.length,S[t]=e),"pattern"+t}function G(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return i.toQuotedString(e);case"object":if(null===e)return"null";var t=s(e),r=P[t];return void 0===r&&(r=P[t]=T.length,T[r]=e),"default"+r}}function z(e,t,r,n){if(!1!==b._opts.validateSchema){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var o=e.definition.validateSchema;if(o&&!o(t)){var s="keyword schema is invalid: "+b.errorsText(o.errors);if("log"!=b._opts.validateSchema)throw new Error(s);b.logger.error(s)}}var a,l=e.definition.compile,c=e.definition.inline,u=e.definition.macro;if(l)a=l.call(b,t,r,n);else if(u)a=u.call(b,t,r,n),!1!==w.validateSchema&&b.validateSchema(a,!0);else if(c)a=c.call(b,n,e.keyword,t,r);else if(!(a=e.definition.validate))return;if(void 0===a)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var h=C.length;return C[h]=a,{code:"customRule"+h,validate:a}}}},24630:(e,t,r)=>{"use strict";var n=r(2862),i=r(38792),o=r(96644),s=r(99289),a=r(86850);function l(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return l.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof s)return p(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var i,o,a,u=c.call(this,t,r);return u&&(i=u.schema,t=u.root,a=u.baseId),i instanceof s?o=i.validate||e.call(this,i.schema,t,void 0,a):void 0!==i&&(o=p(i,this._opts.inlineRefs)?i:e.call(this,i,t,void 0,a)),o}function c(e,t){var r=n.parse(t),i=v(r),o=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||i!==o){var a=b(i),l=this._refs[a];if("string"==typeof l)return u.call(this,e,l,r);if(l instanceof s)l.validate||this._compile(l),e=l;else{if(!((l=this._schemas[a])instanceof s))return;if(l.validate||this._compile(l),a==b(t))return{schema:l,root:e,baseId:o};e=l}if(!e.schema)return;o=y(this._getId(e.schema))}return d.call(this,r,o,e.schema,e)}function u(e,t,r){var n=c.call(this,e,t);if(n){var i=n.schema,o=n.baseId;e=n.root;var s=this._getId(i);return s&&(o=w(o,s)),d.call(this,r,o,i,e)}}e.exports=l,l.normalizeId=b,l.fullPath=y,l.url=w,l.ids=function(e){var t=b(this._getId(e)),r={"":t},s={"":y(t,!1)},l={},c=this;return a(e,{allKeys:!0},(function(e,t,a,u,h,d,f){if(""!==t){var p=c._getId(e),m=r[u],g=s[u]+"/"+h;if(void 0!==f&&(g+="/"+("number"==typeof f?f:o.escapeFragment(f))),"string"==typeof p){p=m=b(m?n.resolve(m,p):p);var y=c._refs[p];if("string"==typeof y&&(y=c._refs[y]),y&&y.schema){if(!i(e,y.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=b(g))if("#"==p[0]){if(l[p]&&!i(e,l[p]))throw new Error('id "'+p+'" resolves to more than one schema');l[p]=e}else c._refs[p]=g}r[t]=m,s[t]=g}})),l},l.inlineRef=p,l.schema=c;var h=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function d(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var i=e.fragment.split("/"),s=1;s<i.length;s++){var a=i[s];if(a){if(void 0===(r=r[a=o.unescapeFragment(a)]))break;var l;if(!h[a]&&((l=this._getId(r))&&(t=w(t,l)),r.$ref)){var u=w(t,r.$ref),d=c.call(this,n,u);d&&(r=d.schema,n=d.root,t=d.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var f=o.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function p(e,t){return!1!==t&&(void 0===t||!0===t?m(e):t?g(e)<=t:void 0)}function m(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!m(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!m(t))return!1}return!0}function g(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=g(t)),r==1/0)return 1/0}else for(var i in e){if("$ref"==i)return 1/0;if(f[i])r++;else if("object"==typeof(t=e[i])&&(r+=g(t)+1),r==1/0)return 1/0}return r}function y(e,t){return!1!==t&&(e=b(e)),v(n.parse(e))}function v(e){return n.serialize(e).split("#")[0]+"#"}var _=/#\/?$/;function b(e){return e?e.replace(_,""):""}function w(e,t){return t=b(t),n.resolve(e,t)}},77749:(e,t,r)=>{"use strict";var n=r(13131),i=r(96644).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=i(t),e.types=i(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var i;if("object"==typeof r){var o=Object.keys(r)[0];i=r[o],r=o,i.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:i}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=i(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},99289:(e,t,r)=>{"use strict";var n=r(96644);e.exports=function(e){n.copy(e,this)}},78205:e=>{"use strict";e.exports=function(e){for(var t,r=0,n=e.length,i=0;i<n;)r++,(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<n&&56320==(64512&(t=e.charCodeAt(i)))&&i++;return r}},96644:(e,t,r)=>{"use strict";function n(e,t,r,n){var i=n?" !== ":" === ",o=n?" || ":" && ",s=n?"!":"",a=n?"":"!";switch(e){case"null":return t+i+"null";case"array":return s+"Array.isArray("+t+")";case"object":return"("+s+t+o+"typeof "+t+i+'"object"'+o+a+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+a+"("+t+" % 1)"+o+t+i+t+(r?o+s+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(r?o+s+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var i="",s=o(e);for(var a in s.array&&s.object&&(i=s.null?"(":"(!"+t+" || ",i+="typeof "+t+' !== "object")',delete s.null,delete s.array,delete s.object),s.number&&delete s.integer,s)i+=(i?" && ":"")+n(a,t,r,!0);return i},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var o=t[n];(i[o]||"array"===e&&"array"===o)&&(r[r.length]=o)}if(r.length)return r}else{if(i[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:o,getProperty:l,escapeQuotes:c,equal:r(38792),ucs2length:r(78205),varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"!=typeof e)for(var r in e)if(!t[r])return r},toQuotedString:u,getPathExpr:function(e,t,r,n){return f(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){return f(e,u(r?"/"+p(t):l(t)))},getData:function(e,t,r){var n,i,o,s;if(""===e)return"rootData";if("/"==e[0]){if(!h.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,o="rootData"}else{if(!(s=e.match(d)))throw new Error("Invalid JSON-pointer: "+e);if(n=+s[1],"#"==(i=s[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(o="data"+(t-n||""),!i)return o}for(var a=o,c=i.split("/"),u=0;u<c.length;u++){var f=c[u];f&&(a+=" && "+(o+=l(m(f))))}return a},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(p(e))},escapeJsonPointer:p};var i=o(["string","number","integer","boolean","null"]);function o(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var s=/^[a-z$_][a-z$_0-9]*$/i,a=/'|\\/g;function l(e){return"number"==typeof e?"["+e+"]":s.test(e)?"."+e:"['"+c(e)+"']"}function c(e){return e.replace(a,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function u(e){return"'"+c(e)+"'"}var h=/^\/(?:[^~]|~0|~1)*$/,d=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function f(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function p(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},28246:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));var i,o=r[n].split("/"),s=e;for(i=1;i<o.length;i++)s=s[o[i]];for(i=0;i<t.length;i++){var a=t[i],l=s[a];l&&(s[a]={anyOf:[l,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},27569:(e,t,r)=>{"use strict";var n=r(42710);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},88363:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),d=e.opts.$data&&a&&a.$data;d?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a;var f="maximum"==t,p=f?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[p],g=e.opts.$data&&m&&m.$data,y=f?"<":">",v=f?">":"<",_=void 0;if(!d&&"number"!=typeof a&&void 0!==a)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(p+" must be number or boolean");if(g){var b,w=e.util.getData(m.$data,s,e.dataPathArr),E="exclusive"+o,x="exclType"+o,S="exclIsNumber"+o,A="' + "+(P="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+w+"; ",i+=" var "+E+"; var "+x+" = typeof "+(w="schemaExcl"+o)+"; if ("+x+" != 'boolean' && "+x+" != 'undefined' && "+x+" != 'number') { ",_=p,(b=b||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(_||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+p+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var T=i;i=b.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+T+"]); ":i+=" validate.errors = ["+T+"]; return false; ":i+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+x+" == 'number' ? ( ("+E+" = "+n+" === undefined || "+w+" "+y+"= "+n+") ? "+h+" "+v+"= "+w+" : "+h+" "+v+" "+n+" ) : ( ("+E+" = "+w+" === true) ? "+h+" "+v+"= "+n+" : "+h+" "+v+" "+n+" ) || "+h+" !== "+h+") { var op"+o+" = "+E+" ? '"+y+"' : '"+y+"='; ",void 0===a&&(_=p,c=e.errSchemaPath+"/"+p,n=w,d=g)}else if(A=y,(S="number"==typeof m)&&d){var P="'"+A+"'";i+=" if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+h+" "+v+"= "+m+" : "+h+" "+v+" "+n+" ) || "+h+" !== "+h+") { "}else S&&void 0===a?(E=!0,_=p,c=e.errSchemaPath+"/"+p,n=m,v+="="):(S&&(n=Math[f?"min":"max"](m,a)),m===(!S||n)?(E=!0,_=p,c=e.errSchemaPath+"/"+p,v+="="):(E=!1,A+="=")),P="'"+A+"'",i+=" if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+h+" "+v+" "+n+" || "+h+" !== "+h+") { ";return _=_||t,(b=b||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(_||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+P+", limit: "+n+", exclusive: "+E+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+A+" ",i+=d?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+l:""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",T=i,i=b.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+T+"]); ":i+=" validate.errors = ["+T+"]; return false; ":i+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { "),i}},81463:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),d=e.opts.$data&&a&&a.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a,!d&&"number"!=typeof a)throw new Error(t+" must be number");i+="if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+h+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var f=t,p=p||[];p.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(f||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=d?"' + "+n+" + '":""+a,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+l:""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var m=i;return i=p.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}},51103:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),d=e.opts.$data&&a&&a.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a,!d&&"number"!=typeof a)throw new Error(t+" must be number");var f="maxLength"==t?">":"<";i+="if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?i+=" "+h+".length ":i+=" ucs2length("+h+") ",i+=" "+f+" "+n+") { ";var p=t,m=m||[];m.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(p||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=d?"' + "+n+" + '":""+a,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+l:""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}},31106:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),d=e.opts.$data&&a&&a.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a,!d&&"number"!=typeof a)throw new Error(t+" must be number");i+="if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" Object.keys("+h+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var f=t,p=p||[];p.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(f||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=d?"' + "+n+" + '":""+a,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+l:""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var m=i;return i=p.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}},62753:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),s=e.errSchemaPath+"/"+t,a=!e.opts.allErrors,l=e.util.copy(e),c="";l.level++;var u="valid"+l.level,h=l.baseId,d=!0,f=i;if(f)for(var p,m=-1,g=f.length-1;m<g;)p=f[m+=1],(e.opts.strictKeywords?"object"==typeof p&&Object.keys(p).length>0||!1===p:e.util.schemaHasRules(p,e.RULES.all))&&(d=!1,l.schema=p,l.schemaPath=o+"["+m+"]",l.errSchemaPath=s+"/"+m,n+=" "+e.validate(l)+" ",l.baseId=h,a&&(n+=" if ("+u+") { ",c+="}"));return a&&(n+=d?" if (true) { ":" "+c.slice(0,-1)+" "),n}},42024:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,d="errs__"+i,f=e.util.copy(e),p="";f.level++;var m="valid"+f.level,g=s.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var y=f.baseId;n+=" var "+d+" = errors; var "+h+" = false; ";var v=e.compositeRule;e.compositeRule=f.compositeRule=!0;var _=s;if(_)for(var b,w=-1,E=_.length-1;w<E;)b=_[w+=1],f.schema=b,f.schemaPath=a+"["+w+"]",f.errSchemaPath=l+"/"+w,n+=" "+e.validate(f)+" ",f.baseId=y,n+=" "+h+" = "+h+" || "+m+"; if (!"+h+") { ",p+="}";e.compositeRule=f.compositeRule=v,n+=" "+p+" if (!"+h+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else c&&(n+=" if (true) { ");return n}},29094:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.schema[t],o=e.errSchemaPath+"/"+t,s=(e.opts.allErrors,e.util.toQuotedString(i));return!0===e.opts.$comment?n+=" console.log("+s+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+s+", "+e.util.toQuotedString(o)+", validate.root.schema);"),n}},76816:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,d=e.opts.$data&&s&&s.$data;d&&(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; "),d||(n+=" var schema"+i+" = validate.schema"+a+";"),n+="var "+h+" = equal("+u+", schema"+i+"); if (!"+h+") { ";var f=f||[];f.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var p=n;return n=f.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+p+"]); ":n+=" validate.errors = ["+p+"]; return false; ":n+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},74010:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,d="errs__"+i,f=e.util.copy(e);f.level++;var p="valid"+f.level,m="i"+i,g=f.dataLevel=e.dataLevel+1,y="data"+g,v=e.baseId,_=e.opts.strictKeywords?"object"==typeof s&&Object.keys(s).length>0||!1===s:e.util.schemaHasRules(s,e.RULES.all);if(n+="var "+d+" = errors;var "+h+";",_){var b=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=s,f.schemaPath=a,f.errSchemaPath=l,n+=" var "+p+" = false; for (var "+m+" = 0; "+m+" < "+u+".length; "+m+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var w=u+"["+m+"]";f.dataPathArr[g]=m;var E=e.validate(f);f.baseId=v,e.util.varOccurences(E,y)<2?n+=" "+e.util.varReplace(E,y,w)+" ":n+=" var "+y+" = "+w+"; "+E+" ",n+=" if ("+p+") break; } ",e.compositeRule=f.compositeRule=b,n+=" if (!"+p+") {"}else n+=" if ("+u+".length == 0) {";var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var S=n;return n=x.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",_&&(n+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},36088:e=>{"use strict";e.exports=function(e,t,r){var n,i,o=" ",s=e.level,a=e.dataLevel,l=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,d="data"+(a||""),f="valid"+s,p="errs__"+s,m=e.opts.$data&&l&&l.$data;m?(o+=" var schema"+s+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",i="schema"+s):i=l;var g,y,v,_,b,w=this,E="definition"+s,x=w.definition,S="";if(m&&x.$data){b="keywordValidate"+s;var A=x.validateSchema;o+=" var "+E+" = RULES.custom['"+t+"'].definition; var "+b+" = "+E+".validate;"}else{if(!(_=e.useCustomRule(w,l,e.schema,e)))return;i="validate.schema"+c,b=_.code,g=x.compile,y=x.inline,v=x.macro}var T=b+".errors",P="i"+s,C="ruleErr"+s,O=x.async;if(O&&!e.async)throw new Error("async keyword in sync schema");if(y||v||(o+=T+" = null;"),o+="var "+p+" = errors;var "+f+";",m&&x.$data&&(S+="}",o+=" if ("+i+" === undefined) { "+f+" = true; } else { ",A&&(S+="}",o+=" "+f+" = "+E+".validateSchema("+i+"); if ("+f+") { ")),y)x.statements?o+=" "+_.validate+" ":o+=" "+f+" = "+_.validate+"; ";else if(v){var R=e.util.copy(e);S="",R.level++;var D="valid"+R.level;R.schema=_.validate,R.schemaPath="";var I=e.compositeRule;e.compositeRule=R.compositeRule=!0;var k=e.validate(R).replace(/validate\.schema/g,b);e.compositeRule=R.compositeRule=I,o+=" "+k}else{(M=M||[]).push(o),o="",o+=" "+b+".call( ",e.opts.passContext?o+="this":o+="self",g||!1===x.schema?o+=" , "+d+" ":o+=" , "+i+" , "+d+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var F=a?"data"+(a-1||""):"parentData",j=a?e.dataPathArr[a]:"parentDataProperty",L=o+=" , "+F+" , "+j+" , rootData ) ";o=M.pop(),!1===x.errors?(o+=" "+f+" = ",O&&(o+="await "),o+=L+"; "):o+=O?" var "+(T="customErrors"+s)+" = null; try { "+f+" = await "+L+"; } catch (e) { "+f+" = false; if (e instanceof ValidationError) "+T+" = e.errors; else throw e; } ":" "+T+" = null; "+f+" = "+L+"; "}if(x.modifying&&(o+=" if ("+F+") "+d+" = "+F+"["+j+"];"),o+=""+S,x.valid)h&&(o+=" if (true) { ");else{var M;o+=" if ( ",void 0===x.valid?(o+=" !",o+=v?""+D:""+f):o+=" "+!x.valid+" ",o+=") { ",n=w.keyword,(M=M||[]).push(o),o="",(M=M||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var N=o;o=M.pop(),!e.compositeRule&&h?e.async?o+=" throw new ValidationError(["+N+"]); ":o+=" validate.errors = ["+N+"]; return false; ":o+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var $=o;o=M.pop(),y?x.errors?"full"!=x.errors&&(o+=" for (var "+P+"="+p+"; "+P+"<errors; "+P+"++) { var "+C+" = vErrors["+P+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(o+=" "+C+".schema = "+i+"; "+C+".data = "+d+"; "),o+=" } "):!1===x.errors?o+=" "+$+" ":(o+=" if ("+p+" == errors) { "+$+" } else { for (var "+P+"="+p+"; "+P+"<errors; "+P+"++) { var "+C+" = vErrors["+P+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(o+=" "+C+".schema = "+i+"; "+C+".data = "+d+"; "),o+=" } } "):v?(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===x.errors?o+=" "+$+" ":(o+=" if (Array.isArray("+T+")) { if (vErrors === null) vErrors = "+T+"; else vErrors = vErrors.concat("+T+"); errors = vErrors.length; for (var "+P+"="+p+"; "+P+"<errors; "+P+"++) { var "+C+" = vErrors["+P+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; "+C+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(o+=" "+C+".schema = "+i+"; "+C+".data = "+d+"; "),o+=" } } else { "+$+" } "),o+=" } ",h&&(o+=" else { ")}return o}},97478:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,d=e.util.copy(e),f="";d.level++;var p="valid"+d.level,m={},g={},y=e.opts.ownProperties;for(w in s)if("__proto__"!=w){var v=s[w],_=Array.isArray(v)?g:m;_[w]=v}n+="var "+h+" = errors;";var b=e.errorPath;for(var w in n+="var missing"+i+";",g)if((_=g[w]).length){if(n+=" if ( "+u+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(w)+"') "),c){n+=" && ( ";var E=_;if(E)for(var x=-1,S=E.length-1;x<S;)R=E[x+=1],x&&(n+=" || "),n+=" ( ( "+(F=u+(k=e.util.getProperty(R)))+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(R)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?R:k)+") ) ";n+=")) { ";var A="missing"+i,T="' + "+A+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(b,A,!0):b+" + "+A);var P=P||[];P.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+T+"', depsCount: "+_.length+", deps: '"+e.util.escapeQuotes(1==_.length?_[0]:_.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==_.length?n+="property "+e.util.escapeQuotes(_[0]):n+="properties "+e.util.escapeQuotes(_.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var C=n;n=P.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+C+"]); ":n+=" validate.errors = ["+C+"]; return false; ":n+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var O=_;if(O)for(var R,D=-1,I=O.length-1;D<I;){R=O[D+=1];var k=e.util.getProperty(R),F=(T=e.util.escapeQuotes(R),u+k);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(b,R,e.opts.jsonPointers)),n+=" if ( "+F+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(R)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+T+"', depsCount: "+_.length+", deps: '"+e.util.escapeQuotes(1==_.length?_[0]:_.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==_.length?n+="property "+e.util.escapeQuotes(_[0]):n+="properties "+e.util.escapeQuotes(_.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",c&&(f+="}",n+=" else { ")}e.errorPath=b;var j=d.baseId;for(var w in m)v=m[w],(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+p+" = true; if ( "+u+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(w)+"') "),n+=") { ",d.schema=v,d.schemaPath=a+e.util.getProperty(w),d.errSchemaPath=l+"/"+e.util.escapeFragment(w),n+=" "+e.validate(d)+" ",d.baseId=j,n+=" } ",c&&(n+=" if ("+p+") { ",f+="}"));return c&&(n+=" "+f+" if ("+h+" == errors) {"),n}},92982:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,d=e.opts.$data&&s&&s.$data;d&&(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ");var f="i"+i,p="schema"+i;d||(n+=" var "+p+" = validate.schema"+a+";"),n+="var "+h+";",d&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=h+" = false;for (var "+f+"=0; "+f+"<"+p+".length; "+f+"++) if (equal("+u+", "+p+"["+f+"])) { "+h+" = true; break; }",d&&(n+=" } "),n+=" if (!"+h+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},27152:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||"");if(!1===e.opts.format)return c&&(n+=" if (true) { "),n;var h,d=e.opts.$data&&s&&s.$data;d?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",h="schema"+i):h=s;var f=e.opts.unknownFormats,p=Array.isArray(f);if(d)n+=" var "+(m="format"+i)+" = formats["+h+"]; var "+(g="isObject"+i)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+i)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+i+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",d&&(n+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "),n+=" (","ignore"!=f&&(n+=" ("+h+" && !"+m+" ",p&&(n+=" && self._opts.unknownFormats.indexOf("+h+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+m+"("+u+") : "+m+"("+u+")) ":n+=" "+m+"("+u+") ",n+=" : "+m+".test("+u+"))))) {";else{var m;if(!(m=e.formats[s])){if("ignore"==f)return e.logger.warn('unknown format "'+s+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(p&&f.indexOf(s)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+s+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var v=!0===m.async;m=m.validate}if(y!=r)return c&&(n+=" if (true) { "),n;if(v){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(_="formats"+e.util.getProperty(s)+".validate")+"("+u+"))) { "}else{n+=" if (! ";var _="formats"+e.util.getProperty(s);g&&(_+=".validate"),n+="function"==typeof m?" "+_+"("+u+") ":" "+_+".test("+u+") ",n+=") { "}}var b=b||[];b.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ",n+=d?""+h:""+e.util.toQuotedString(s),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=d?"' + "+h+" + '":""+e.util.escapeQuotes(s),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=d?"validate.schema"+a:""+e.util.toQuotedString(s),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var w=n;return n=b.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}},72788:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,d="errs__"+i,f=e.util.copy(e);f.level++;var p="valid"+f.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),_=f.baseId;if(y||v){var b;f.createErrors=!1,f.schema=s,f.schemaPath=a,f.errSchemaPath=l,n+=" var "+d+" = errors; var "+h+" = true; ";var w=e.compositeRule;e.compositeRule=f.compositeRule=!0,n+=" "+e.validate(f)+" ",f.baseId=_,f.createErrors=!0,n+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.compositeRule=f.compositeRule=w,y?(n+=" if ("+p+") { ",f.schema=e.schema.then,f.schemaPath=e.schemaPath+".then",f.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(f)+" ",f.baseId=_,n+=" "+h+" = "+p+"; ",y&&v?n+=" var "+(b="ifClause"+i)+" = 'then'; ":b="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+p+") { ",v&&(f.schema=e.schema.else,f.schemaPath=e.schemaPath+".else",f.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(f)+" ",f.baseId=_,n+=" "+h+" = "+p+"; ",y&&v?n+=" var "+(b="ifClause"+i)+" = 'else'; ":b="'else'",n+=" } "),n+=" if (!"+h+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+b+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+b+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}},13131:(e,t,r)=>{"use strict";e.exports={$ref:r(91502),allOf:r(62753),anyOf:r(42024),$comment:r(29094),const:r(76816),contains:r(74010),dependencies:r(97478),enum:r(92982),format:r(27152),if:r(72788),items:r(66819),maximum:r(88363),minimum:r(88363),maxItems:r(81463),minItems:r(81463),maxLength:r(51103),minLength:r(51103),maxProperties:r(31106),minProperties:r(31106),multipleOf:r(46558),not:r(52658),oneOf:r(7774),pattern:r(34333),properties:r(42558),propertyNames:r(4728),required:r(20458),uniqueItems:r(87466),validate:r(19905)}},66819:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,d="errs__"+i,f=e.util.copy(e),p="";f.level++;var m="valid"+f.level,g="i"+i,y=f.dataLevel=e.dataLevel+1,v="data"+y,_=e.baseId;if(n+="var "+d+" = errors;var "+h+";",Array.isArray(s)){var b=e.schema.additionalItems;if(!1===b){n+=" "+h+" = "+u+".length <= "+s.length+"; ";var w=l;l=e.errSchemaPath+"/additionalItems",n+=" if (!"+h+") { ";var E=E||[];E.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+s.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+s.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var x=n;n=E.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+x+"]); ":n+=" validate.errors = ["+x+"]; return false; ":n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",l=w,c&&(p+="}",n+=" else { ")}var S=s;if(S)for(var A,T=-1,P=S.length-1;T<P;)if(A=S[T+=1],e.opts.strictKeywords?"object"==typeof A&&Object.keys(A).length>0||!1===A:e.util.schemaHasRules(A,e.RULES.all)){n+=" "+m+" = true; if ("+u+".length > "+T+") { ";var C=u+"["+T+"]";f.schema=A,f.schemaPath=a+"["+T+"]",f.errSchemaPath=l+"/"+T,f.errorPath=e.util.getPathExpr(e.errorPath,T,e.opts.jsonPointers,!0),f.dataPathArr[y]=T;var O=e.validate(f);f.baseId=_,e.util.varOccurences(O,v)<2?n+=" "+e.util.varReplace(O,v,C)+" ":n+=" var "+v+" = "+C+"; "+O+" ",n+=" } ",c&&(n+=" if ("+m+") { ",p+="}")}"object"==typeof b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))&&(f.schema=b,f.schemaPath=e.schemaPath+".additionalItems",f.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+u+".length > "+s.length+") { for (var "+g+" = "+s.length+"; "+g+" < "+u+".length; "+g+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0),C=u+"["+g+"]",f.dataPathArr[y]=g,O=e.validate(f),f.baseId=_,e.util.varOccurences(O,v)<2?n+=" "+e.util.varReplace(O,v,C)+" ":n+=" var "+v+" = "+C+"; "+O+" ",c&&(n+=" if (!"+m+") break; "),n+=" } } ",c&&(n+=" if ("+m+") { ",p+="}"))}else(e.opts.strictKeywords?"object"==typeof s&&Object.keys(s).length>0||!1===s:e.util.schemaHasRules(s,e.RULES.all))&&(f.schema=s,f.schemaPath=a,f.errSchemaPath=l,n+=" for (var "+g+" = 0; "+g+" < "+u+".length; "+g+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0),C=u+"["+g+"]",f.dataPathArr[y]=g,O=e.validate(f),f.baseId=_,e.util.varOccurences(O,v)<2?n+=" "+e.util.varReplace(O,v,C)+" ":n+=" var "+v+" = "+C+"; "+O+" ",c&&(n+=" if (!"+m+") break; "),n+=" }");return c&&(n+=" "+p+" if ("+d+" == errors) {"),n}},46558:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),d=e.opts.$data&&a&&a.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a,!d&&"number"!=typeof a)throw new Error(t+" must be number");i+="var division"+o+";if (",d&&(i+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),i+=" (division"+o+" = "+h+" / "+n+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+o+" !== parseInt(division"+o+") ",i+=" ) ",d&&(i+=" ) "),i+=" ) { ";var f=f||[];f.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be multiple of ",i+=d?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+l:""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var p=i;return i=f.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+p+"]); ":i+=" validate.errors = ["+p+"]; return false; ":i+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}},52658:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,d=e.util.copy(e);d.level++;var f="valid"+d.level;if(e.opts.strictKeywords?"object"==typeof s&&Object.keys(s).length>0||!1===s:e.util.schemaHasRules(s,e.RULES.all)){d.schema=s,d.schemaPath=a,d.errSchemaPath=l,n+=" var "+h+" = errors; ";var p,m=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.createErrors=!1,d.opts.allErrors&&(p=d.opts.allErrors,d.opts.allErrors=!1),n+=" "+e.validate(d)+" ",d.createErrors=!0,p&&(d.opts.allErrors=p),e.compositeRule=d.compositeRule=m,n+=" if ("+f+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}},7774:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,d="errs__"+i,f=e.util.copy(e),p="";f.level++;var m="valid"+f.level,g=f.baseId,y="prevValid"+i,v="passingSchemas"+i;n+="var "+d+" = errors , "+y+" = false , "+h+" = false , "+v+" = null; ";var _=e.compositeRule;e.compositeRule=f.compositeRule=!0;var b=s;if(b)for(var w,E=-1,x=b.length-1;E<x;)w=b[E+=1],(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))?(f.schema=w,f.schemaPath=a+"["+E+"]",f.errSchemaPath=l+"/"+E,n+=" "+e.validate(f)+" ",f.baseId=g):n+=" var "+m+" = true; ",E&&(n+=" if ("+m+" && "+y+") { "+h+" = false; "+v+" = ["+v+", "+E+"]; } else { ",p+="}"),n+=" if ("+m+") { "+h+" = "+y+" = true; "+v+" = "+E+"; }";return e.compositeRule=f.compositeRule=_,n+=p+"if (!"+h+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},34333:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),d=e.opts.$data&&a&&a.$data;d?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a,i+="if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),i+=" !"+(d?"(new RegExp("+n+"))":e.usePattern(a))+".test("+h+") ) { ";var f=f||[];f.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern: ",i+=d?""+n:""+e.util.toQuotedString(a),i+=" } ",!1!==e.opts.messages&&(i+=" , message: 'should match pattern \"",i+=d?"' + "+n+" + '":""+e.util.escapeQuotes(a),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+l:""+e.util.toQuotedString(a),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var p=i;return i=f.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+p+"]); ":i+=" validate.errors = ["+p+"]; return false; ":i+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}},42558:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,d=e.util.copy(e),f="";d.level++;var p="valid"+d.level,m="key"+i,g="idx"+i,y=d.dataLevel=e.dataLevel+1,v="data"+y,_="dataProperties"+i,b=Object.keys(s||{}).filter(k),w=e.schema.patternProperties||{},E=Object.keys(w).filter(k),x=e.schema.additionalProperties,S=b.length||E.length,A=!1===x,T="object"==typeof x&&Object.keys(x).length,P=e.opts.removeAdditional,C=A||T||P,O=e.opts.ownProperties,R=e.baseId,D=e.schema.required;if(D&&(!e.opts.$data||!D.$data)&&D.length<e.opts.loopRequired)var I=e.util.toHash(D);function k(e){return"__proto__"!==e}if(n+="var "+h+" = errors;var "+p+" = true;",O&&(n+=" var "+_+" = undefined;"),C){if(n+=O?" "+_+" = "+_+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+_+".length; "+g+"++) { var "+m+" = "+_+"["+g+"]; ":" for (var "+m+" in "+u+") { ",S){if(n+=" var isAdditional"+i+" = !(false ",b.length)if(b.length>8)n+=" || validate.schema"+a+".hasOwnProperty("+m+") ";else{var F=b;if(F)for(var j=-1,L=F.length-1;j<L;)Y=F[j+=1],n+=" || "+m+" == "+e.util.toQuotedString(Y)+" "}if(E.length){var M=E;if(M)for(var N=-1,$=M.length-1;N<$;)oe=M[N+=1],n+=" || "+e.usePattern(oe)+".test("+m+") "}n+=" ); if (isAdditional"+i+") { "}if("all"==P)n+=" delete "+u+"["+m+"]; ";else{var G=e.errorPath,z="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),A)if(P)n+=" delete "+u+"["+m+"]; ";else{n+=" "+p+" = false; ";var U=l;l=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { additionalProperty: '"+z+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var B=n;n=re.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+B+"]); ":n+=" validate.errors = ["+B+"]; return false; ":n+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=U,c&&(n+=" break; ")}else if(T)if("failing"==P){n+=" var "+h+" = errors; ";var V=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=x,d.schemaPath=e.schemaPath+".additionalProperties",d.errSchemaPath=e.errSchemaPath+"/additionalProperties",d.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var K=u+"["+m+"]";d.dataPathArr[y]=m;var q=e.validate(d);d.baseId=R,e.util.varOccurences(q,v)<2?n+=" "+e.util.varReplace(q,v,K)+" ":n+=" var "+v+" = "+K+"; "+q+" ",n+=" if (!"+p+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+m+"]; } ",e.compositeRule=d.compositeRule=V}else d.schema=x,d.schemaPath=e.schemaPath+".additionalProperties",d.errSchemaPath=e.errSchemaPath+"/additionalProperties",d.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers),K=u+"["+m+"]",d.dataPathArr[y]=m,q=e.validate(d),d.baseId=R,e.util.varOccurences(q,v)<2?n+=" "+e.util.varReplace(q,v,K)+" ":n+=" var "+v+" = "+K+"; "+q+" ",c&&(n+=" if (!"+p+") break; ");e.errorPath=G}S&&(n+=" } "),n+=" } ",c&&(n+=" if ("+p+") { ",f+="}")}var W=e.opts.useDefaults&&!e.compositeRule;if(b.length){var H=b;if(H)for(var Y,X=-1,Z=H.length-1;X<Z;){var J=s[Y=H[X+=1]];if(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0||!1===J:e.util.schemaHasRules(J,e.RULES.all)){var Q=e.util.getProperty(Y),ee=(K=u+Q,W&&void 0!==J.default);if(d.schema=J,d.schemaPath=a+Q,d.errSchemaPath=l+"/"+e.util.escapeFragment(Y),d.errorPath=e.util.getPath(e.errorPath,Y,e.opts.jsonPointers),d.dataPathArr[y]=e.util.toQuotedString(Y),q=e.validate(d),d.baseId=R,e.util.varOccurences(q,v)<2){q=e.util.varReplace(q,v,K);var te=K}else te=v,n+=" var "+v+" = "+K+"; ";if(ee)n+=" "+q+" ";else{if(I&&I[Y]){n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(Y)+"') "),n+=") { "+p+" = false; ",G=e.errorPath,U=l;var re,ne=e.util.escapeQuotes(Y);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(G,Y,e.opts.jsonPointers)),l=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",B=n,n=re.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+B+"]); ":n+=" validate.errors = ["+B+"]; return false; ":n+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=U,e.errorPath=G,n+=" } else { "}else c?(n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(Y)+"') "),n+=") { "+p+" = true; } else { "):(n+=" if ("+te+" !== undefined ",O&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(Y)+"') "),n+=" ) { ");n+=" "+q+" } "}}c&&(n+=" if ("+p+") { ",f+="}")}}if(E.length){var ie=E;if(ie)for(var oe,se=-1,ae=ie.length-1;se<ae;)J=w[oe=ie[se+=1]],(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0||!1===J:e.util.schemaHasRules(J,e.RULES.all))&&(d.schema=J,d.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),d.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=O?" "+_+" = "+_+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+_+".length; "+g+"++) { var "+m+" = "+_+"["+g+"]; ":" for (var "+m+" in "+u+") { ",n+=" if ("+e.usePattern(oe)+".test("+m+")) { ",d.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers),K=u+"["+m+"]",d.dataPathArr[y]=m,q=e.validate(d),d.baseId=R,e.util.varOccurences(q,v)<2?n+=" "+e.util.varReplace(q,v,K)+" ":n+=" var "+v+" = "+K+"; "+q+" ",c&&(n+=" if (!"+p+") break; "),n+=" } ",c&&(n+=" else "+p+" = true; "),n+=" } ",c&&(n+=" if ("+p+") { ",f+="}"))}return c&&(n+=" "+f+" if ("+h+" == errors) {"),n}},4728:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,d=e.util.copy(e);d.level++;var f="valid"+d.level;if(n+="var "+h+" = errors;",e.opts.strictKeywords?"object"==typeof s&&Object.keys(s).length>0||!1===s:e.util.schemaHasRules(s,e.RULES.all)){d.schema=s,d.schemaPath=a,d.errSchemaPath=l;var p="key"+i,m="idx"+i,g="i"+i,y="' + "+p+" + '",v="data"+(d.dataLevel=e.dataLevel+1),_="dataProperties"+i,b=e.opts.ownProperties,w=e.baseId;b&&(n+=" var "+_+" = undefined; "),n+=b?" "+_+" = "+_+" || Object.keys("+u+"); for (var "+m+"=0; "+m+"<"+_+".length; "+m+"++) { var "+p+" = "+_+"["+m+"]; ":" for (var "+p+" in "+u+") { ",n+=" var startErrs"+i+" = errors; ";var E=p,x=e.compositeRule;e.compositeRule=d.compositeRule=!0;var S=e.validate(d);d.baseId=w,e.util.varOccurences(S,v)<2?n+=" "+e.util.varReplace(S,v,E)+" ":n+=" var "+v+" = "+E+"; "+S+" ",e.compositeRule=d.compositeRule=x,n+=" if (!"+f+") { for (var "+g+"=startErrs"+i+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+p+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { propertyName: '"+y+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+y+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),c&&(n+=" break; "),n+=" } }"}return c&&(n+=" if ("+h+" == errors) {"),n}},91502:e=>{"use strict";e.exports=function(e,t,r){var n,i,o=" ",s=e.level,a=e.dataLevel,l=e.schema[t],c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),d="valid"+s;if("#"==l||"#/"==l)e.isRoot?(n=e.async,i="validate"):(n=!0===e.root.schema.$async,i="root.refVal[0]");else{var f=e.resolveRef(e.baseId,l,e.isRoot);if(void 0===f){var p=e.MissingRefError.message(e.baseId,l);if("fail"==e.opts.missingRefs){e.logger.error(p),(v=v||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ";var m=o;o=v.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,l,p);e.logger.warn(p),u&&(o+=" if (true) { ")}}else if(f.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=f.schema,g.schemaPath="",g.errSchemaPath=l,o+=" "+e.validate(g).replace(/validate\.schema/g,f.code)+" ",u&&(o+=" if ("+y+") { ")}else n=!0===f.$async||e.async&&!1!==f.$async,i=f.code}if(i){var v;(v=v||[]).push(o),o="",e.opts.passContext?o+=" "+i+".call(this, ":o+=" "+i+"( ",o+=" "+h+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var _=o+=" , "+(a?"data"+(a-1||""):"parentData")+" , "+(a?e.dataPathArr[a]:"parentDataProperty")+", rootData) ";if(o=v.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(o+=" var "+d+"; "),o+=" try { await "+_+"; ",u&&(o+=" "+d+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(o+=" "+d+" = false; "),o+=" } ",u&&(o+=" if ("+d+") { ")}else o+=" if (!"+_+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",u&&(o+=" else { ")}return o}},20458:e=>{"use strict";e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,d=e.opts.$data&&s&&s.$data;d&&(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ");var f="schema"+i;if(!d)if(s.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var p=[],m=s;if(m)for(var g,y=-1,v=m.length-1;y<v;){g=m[y+=1];var _=e.schema.properties[g];_&&(e.opts.strictKeywords?"object"==typeof _&&Object.keys(_).length>0||!1===_:e.util.schemaHasRules(_,e.RULES.all))||(p[p.length]=g)}}else p=s;if(d||p.length){var b=e.errorPath,w=d||p.length>=e.opts.loopRequired,E=e.opts.ownProperties;if(c)if(n+=" var missing"+i+"; ",w){d||(n+=" var "+f+" = validate.schema"+a+"; ");var x="' + "+(O="schema"+i+"["+(P="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(b,O,e.opts.jsonPointers)),n+=" var "+h+" = true; ",d&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=" for (var "+P+" = 0; "+P+" < "+f+".length; "+P+"++) { "+h+" = "+u+"["+f+"["+P+"]] !== undefined ",E&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", "+f+"["+P+"]) "),n+="; if (!"+h+") break; } ",d&&(n+=" } "),n+=" if (!"+h+") { ",(A=A||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+x+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+x+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var S=n;n=A.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var A,T=p;if(T)for(var P=-1,C=T.length-1;P<C;)D=T[P+=1],P&&(n+=" || "),n+=" ( ( "+(j=u+(F=e.util.getProperty(D)))+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(D)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?D:F)+") ) ";n+=") { ",x="' + "+(O="missing"+i)+" + '",e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(b,O,!0):b+" + "+O),(A=A||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+x+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+x+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",S=n,n=A.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(w){var O;d||(n+=" var "+f+" = validate.schema"+a+"; "),x="' + "+(O="schema"+i+"["+(P="i"+i)+"]")+" + '",e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(b,O,e.opts.jsonPointers)),d&&(n+=" if ("+f+" && !Array.isArray("+f+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+x+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+x+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+f+" !== undefined) { "),n+=" for (var "+P+" = 0; "+P+" < "+f+".length; "+P+"++) { if ("+u+"["+f+"["+P+"]] === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+f+"["+P+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+x+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+x+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",d&&(n+=" } ")}else{var R=p;if(R)for(var D,I=-1,k=R.length-1;I<k;){D=R[I+=1];var F=e.util.getProperty(D),j=(x=e.util.escapeQuotes(D),u+F);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(b,D,e.opts.jsonPointers)),n+=" if ( "+j+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(D)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+x+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+x+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=b}else c&&(n+=" if (true) {");return n}},87466:e=>{"use strict";e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),d="valid"+o,f=e.opts.$data&&a&&a.$data;if(f?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a,(a||f)&&!1!==e.opts.uniqueItems){f&&(i+=" var "+d+"; if ("+n+" === false || "+n+" === undefined) "+d+" = true; else if (typeof "+n+" != 'boolean') "+d+" = false; else { "),i+=" var i = "+h+".length , "+d+" = true , j; if (i > 1) { ";var p=e.schema.items&&e.schema.items.type,m=Array.isArray(p);if(!p||"object"==p||"array"==p||m&&(p.indexOf("object")>=0||p.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+h+"[i], "+h+"[j])) { "+d+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+h+"[i]; ";var g="checkDataType"+(m?"s":"");i+=" if ("+e.util[g](p,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",f&&(i+=" } "),i+=" if (!"+d+") { ";var y=y||[];y.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+l:""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var v=i;i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i}},19905:e=>{"use strict";e.exports=function(e,t,r){var n="",i=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),s=e.self._getId(e.schema);if(e.opts.strictKeywords){var a=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(a){var l="unknown keyword: "+a;if("log"!==e.opts.strictKeywords)throw new Error(l);e.logger.warn(l)}}if(e.isTop&&(n+=" var validate = ",i&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",s&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+s+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){t="false schema";var c=e.level,u=e.dataLevel,h=e.schema[t],d=e.schemaPath+e.util.getProperty(t),f=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,m="data"+(u||""),g="valid"+c;if(!1===e.schema){e.isTop?p=!0:n+=" var "+g+" = false; ",(K=K||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var y=n;n=K.pop(),!e.compositeRule&&p?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=i?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var v=e.isTop;if(c=e.level=0,u=e.dataLevel=0,m="data",e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var _="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(_);e.logger.warn(_)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{if(c=e.level,m="data"+((u=e.dataLevel)||""),s&&(e.baseId=e.resolve.url(e.baseId,s)),i&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+c+" = errors;"}g="valid"+c,p=!e.opts.allErrors;var b="",w="",E=e.schema.type,x=Array.isArray(E);if(E&&e.opts.nullable&&!0===e.schema.nullable&&(x?-1==E.indexOf("null")&&(E=E.concat("null")):"null"!=E&&(E=[E,"null"],x=!0)),x&&1==E.length&&(E=E[0],x=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),E){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,E);var A=e.RULES.types[E];if(S||x||!0===A||A&&!Z(A)){d=e.schemaPath+".type",f=e.errSchemaPath+"/type",d=e.schemaPath+".type",f=e.errSchemaPath+"/type";var T=x?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[T](E,m,e.opts.strictNumbers,!0)+") { ",S){var P="dataType"+c,C="coerced"+c;n+=" var "+P+" = typeof "+m+"; var "+C+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+P+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+P+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+C+" = "+m+"; } "),n+=" if ("+C+" !== undefined) ; ";var O=S;if(O)for(var R,D=-1,I=O.length-1;D<I;)"string"==(R=O[D+=1])?n+=" else if ("+P+" == 'number' || "+P+" == 'boolean') "+C+" = '' + "+m+"; else if ("+m+" === null) "+C+" = ''; ":"number"==R||"integer"==R?(n+=" else if ("+P+" == 'boolean' || "+m+" === null || ("+P+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==R&&(n+=" && !("+m+" % 1)"),n+=")) "+C+" = +"+m+"; "):"boolean"==R?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+C+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+C+" = true; ":"null"==R?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+C+" = null; ":"array"==e.opts.coerceTypes&&"array"==R&&(n+=" else if ("+P+" == 'string' || "+P+" == 'number' || "+P+" == 'boolean' || "+m+" == null) "+C+" = ["+m+"]; ");n+=" else { ",(K=K||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=x?""+E.join(","):""+E,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=x?""+E.join(","):""+E,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ",y=n,n=K.pop(),!e.compositeRule&&p?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+C+" !== undefined) { ";var k=u?"data"+(u-1||""):"parentData";n+=" "+m+" = "+C+"; ",u||(n+="if ("+k+" !== undefined)"),n+=" "+k+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+C+"; } "}else(K=K||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=x?""+E.join(","):""+E,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=x?""+E.join(","):""+E,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ",y=n,n=K.pop(),!e.compositeRule&&p?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";n+=" } "}}if(e.schema.$ref&&!o)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",p&&(n+=" } if (errors === ",n+=v?"0":"errs_"+c,n+=") { ",w+="}");else{var F=e.RULES;if(F)for(var j=-1,L=F.length-1;j<L;)if(Z(A=F[j+=1])){if(A.type&&(n+=" if ("+e.util.checkDataType(A.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==A.type&&e.schema.properties){h=e.schema.properties;var M=Object.keys(h);if(M)for(var N,$=-1,G=M.length-1;$<G;)if(void 0!==(B=h[N=M[$+=1]]).default){var z=m+e.util.getProperty(N);if(e.compositeRule){if(e.opts.strictDefaults){if(_="default is ignored for: "+z,"log"!==e.opts.strictDefaults)throw new Error(_);e.logger.warn(_)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(B.default)+" ":n+=" "+JSON.stringify(B.default)+" ",n+="; "}}else if("array"==A.type&&Array.isArray(e.schema.items)){var U=e.schema.items;if(U){D=-1;for(var B,V=U.length-1;D<V;)if(void 0!==(B=U[D+=1]).default)if(z=m+"["+D+"]",e.compositeRule){if(e.opts.strictDefaults){if(_="default is ignored for: "+z,"log"!==e.opts.strictDefaults)throw new Error(_);e.logger.warn(_)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(B.default)+" ":n+=" "+JSON.stringify(B.default)+" ",n+="; "}}var K,q=A.rules;if(q)for(var W,H=-1,Y=q.length-1;H<Y;)if(J(W=q[H+=1])){var X=W.code(e,W.keyword,A.type);X&&(n+=" "+X+" ",p&&(b+="}"))}if(p&&(n+=" "+b+" ",b=""),A.type&&(n+=" } ",E&&E===A.type&&!S))n+=" else { ",d=e.schemaPath+".type",f=e.errSchemaPath+"/type",(K=K||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=x?""+E.join(","):""+E,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=x?""+E.join(","):""+E,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ",y=n,n=K.pop(),!e.compositeRule&&p?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ";p&&(n+=" if (errors === ",n+=v?"0":"errs_"+c,n+=") { ",w+="}")}}function Z(e){for(var t=e.rules,r=0;r<t.length;r++)if(J(t[r]))return!0}function J(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return p&&(n+=" "+w+" "),v?(i?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+g+" = errors === errs_"+c+";",n}},22755:(e,t,r)=>{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,i=r(36088),o=r(27569);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var o=t.type;if(Array.isArray(o))for(var s=0;s<o.length;s++)l(e,o[s],t);else l(e,o,t);var a=t.metaSchema;a&&(t.$data&&this._opts.$data&&(a={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(a,!0))}function l(e,t,n){for(var o,s=0;s<r.length;s++){var a=r[s];if(a.type==t){o=a;break}}o||(o={type:t,rules:[]},r.push(o));var l={keyword:e,definition:n,custom:!0,code:i,implements:n.implements};o.rules.push(l),r.custom[e]=l}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,i=0;i<n.length;i++)if(n[i].keyword==e){n.splice(i,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(o,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}}},86850:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,i,o,s,a,l,c,u,h){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in n(o,s,a,l,c,u,h),o){var f=o[d];if(Array.isArray(f)){if(d in t.arrayKeywords)for(var p=0;p<f.length;p++)r(e,n,i,f[p],s+"/"+d+"/"+p,a,s,d,o,p)}else if(d in t.propsKeywords){if(f&&"object"==typeof f)for(var m in f)r(e,n,i,f[m],s+"/"+d+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),a,s,d,o,m)}else(d in t.keywords||e.allKeys&&!(d in t.skipKeywords))&&r(e,n,i,f,s+"/"+d,a,s,d,o)}i(o,s,a,l,c,u,h)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},68326:(e,t,r)=>{"use strict";r.d(t,{QLR:()=>i,e68:()=>s,yLS:()=>n,z1G:()=>o});const n={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},i={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},o={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"]},s={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]}},90560:(e,t,r)=>{"use strict";r.d(t,{g:()=>Cr});const n=()=>{};let i={},o={},s=null,a={mark:n,measure:n};try{"undefined"!=typeof window&&(i=window),"undefined"!=typeof document&&(o=document),"undefined"!=typeof MutationObserver&&(s=MutationObserver),"undefined"!=typeof performance&&(a=performance)}catch(e){}const{userAgent:l=""}=i.navigator||{},c=i,u=o,h=s,d=a,f=(c.document,!!u.documentElement&&!!u.head&&"function"==typeof u.addEventListener&&"function"==typeof u.createElement),p=~l.indexOf("MSIE")||~l.indexOf("Trident/");var m="classic",g="duotone",y="sharp",v="sharp-duotone",_=[m,g,y,v],b={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},w=[1,2,3,4,5,6,7,8,9,10],E=w.concat([11,12,13,14,15,16,17,18,19,20]),x={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},S=[...Object.keys({classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",x.GROUP,x.SWAP_OPACITY,x.PRIMARY,x.SECONDARY].concat(w.map((e=>"".concat(e,"x")))).concat(E.map((e=>"w-".concat(e))));const A="___FONT_AWESOME___",T=16,P="fa",C="svg-inline--fa",O="data-fa-i2svg",R="data-fa-pseudo-element",D="data-fa-pseudo-element-pending",I="data-prefix",k="data-icon",F="fontawesome-i2svg",j="async",L=["HTML","HEAD","STYLE","SCRIPT"],M=(()=>{try{return!0}catch(e){return!1}})(),N=[m,y,v];function $(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[m]})}const G={...b};G[m]={...b[m],fak:"kit","fa-kit":"kit",fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};const z=$(G),U={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}};U[m]={...U[m],kit:"fak","kit-duotone":"fakd"};const B=$(U),V={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}};V[m]={...V[m],fak:"fa-kit"};const K=$(V),q={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}};q[m]={...q[m],"fa-kit":"fak"};const W=$(q),H=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,Y="fa-layers-text",X=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Z=($({classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}}),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),J=x,Q=new Set;Object.keys(B[m]).map(Q.add.bind(Q)),Object.keys(B[y]).map(Q.add.bind(Q)),Object.keys(B[v]).map(Q.add.bind(Q));const ee=["kit",...S],te=c.FontAwesomeConfig||{};u&&"function"==typeof u.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((e=>{let[t,r]=e;const n=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=u.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=n&&(te[r]=n)}));const re={styleDefault:"solid",familyDefault:"classic",cssPrefix:P,replacementClass:C,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};te.familyPrefix&&(te.cssPrefix=te.familyPrefix);const ne={...re,...te};ne.autoReplaceSvg||(ne.observeMutations=!1);const ie={};Object.keys(re).forEach((e=>{Object.defineProperty(ie,e,{enumerable:!0,set:function(t){ne[e]=t,oe.forEach((e=>e(ie)))},get:function(){return ne[e]}})})),Object.defineProperty(ie,"familyPrefix",{enumerable:!0,set:function(e){ne.cssPrefix=e,oe.forEach((e=>e(ie)))},get:function(){return ne.cssPrefix}}),c.FontAwesomeConfig=ie;const oe=[],se=T,ae={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},le="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ce(){let e=12,t="";for(;e-- >0;)t+=le[62*Math.random()|0];return t}function ue(e){const t=[];for(let r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function he(e){return e.classList?ue(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function de(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function fe(e){return Object.keys(e||{}).reduce(((t,r)=>t+"".concat(r,": ").concat(e[r].trim(),";")),"")}function pe(e){return e.size!==ae.size||e.x!==ae.x||e.y!==ae.y||e.rotate!==ae.rotate||e.flipX||e.flipY}var me=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function ge(){const e=P,t=C,r=ie.cssPrefix,n=ie.replacementClass;let i=me;if(r!==e||n!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(r,"-")).replace(s,"--".concat(r,"-")).replace(a,".".concat(n))}return i}let ye=!1;function ve(){ie.autoAddCss&&!ye&&(function(e){if(!e||!f)return;const t=u.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const r=u.head.childNodes;let n=null;for(let e=r.length-1;e>-1;e--){const t=r[e],i=(t.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(n=t)}u.head.insertBefore(t,n)}(ge()),ye=!0)}var _e={mixout:()=>({dom:{css:ge,insertCss:ve}}),hooks:()=>({beforeDOMElementCreation(){ve()},beforeI2svg(){ve()}})};const be=c||{};be[A]||(be[A]={}),be[A].styles||(be[A].styles={}),be[A].hooks||(be[A].hooks={}),be[A].shims||(be[A].shims=[]);var we=be[A];const Ee=[],xe=function(){u.removeEventListener("DOMContentLoaded",xe),Se=1,Ee.map((e=>e()))};let Se=!1;function Ae(e){const{tag:t,attributes:r={},children:n=[]}=e;return"string"==typeof e?de(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,r)=>t+"".concat(r,'="').concat(de(e[r]),'" ')),"").trim()}(r),">").concat(n.map(Ae).join(""),"</").concat(t,">")}function Te(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}f&&(Se=(u.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(u.readyState),Se||u.addEventListener("DOMContentLoaded",xe));var Pe=function(e,t,r,n){var i,o,s,a=Object.keys(e),l=a.length,c=void 0!==n?function(e,t){return function(r,n,i,o){return e.call(t,r,n,i,o)}}(t,n):t;for(void 0===r?(i=1,s=e[a[0]]):(i=0,s=r);i<l;i++)s=c(s,e[o=a[i]],o,e);return s};function Ce(e){const t=function(e){const t=[];let r=0;const n=e.length;for(;r<n;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Oe(e){return Object.keys(e).reduce(((t,r)=>{const n=e[r];return n.icon?t[n.iconName]=n.icon:t[r]=n,t}),{})}function Re(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:n=!1}=r,i=Oe(t);"function"!=typeof we.hooks.addPack||n?we.styles[e]={...we.styles[e]||{},...i}:we.hooks.addPack(e,Oe(t)),"fas"===e&&Re("fa",t)}const{styles:De,shims:Ie}=we,ke={[m]:Object.values(K[m]),[y]:Object.values(K[y]),[v]:Object.values(K[v])};let Fe=null,je={},Le={},Me={},Ne={},$e={};const Ge={[m]:Object.keys(z[m]),[y]:Object.keys(z[y]),[v]:Object.keys(z[v])};const ze=()=>{const e=e=>Pe(De,((t,r,n)=>(t[n]=Pe(r,e,{}),t)),{});je=e(((e,t,r)=>(t[3]&&(e[t[3]]=r),t[2]&&t[2].filter((e=>"number"==typeof e)).forEach((t=>{e[t.toString(16)]=r})),e))),Le=e(((e,t,r)=>(e[r]=r,t[2]&&t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=r})),e))),$e=e(((e,t,r)=>{const n=t[2];return e[r]=r,n.forEach((t=>{e[t]=r})),e}));const t="far"in De||ie.autoFetchSvg,r=Pe(Ie,((e,r)=>{const n=r[0];let i=r[1];const o=r[2];return"far"!==i||t||(i="fas"),"string"==typeof n&&(e.names[n]={prefix:i,iconName:o}),"number"==typeof n&&(e.unicodes[n.toString(16)]={prefix:i,iconName:o}),e}),{names:{},unicodes:{}});Me=r.names,Ne=r.unicodes,Fe=He(ie.styleDefault,{family:ie.familyDefault})};var Ue;function Be(e,t){return(je[e]||{})[t]}function Ve(e,t){return($e[e]||{})[t]}function Ke(e){return Me[e]||{prefix:null,iconName:null}}function qe(){return Fe}Ue=e=>{Fe=He(e.styleDefault,{family:ie.familyDefault})},oe.push(Ue),ze();const We=()=>({prefix:null,iconName:null,rest:[]});function He(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:r=m}=t,n=z[r][e],i=B[r][e]||B[r][n],o=e in we.styles?e:null;return i||o||null}const Ye={[m]:Object.keys(K[m]),[y]:Object.keys(K[y]),[v]:Object.keys(K[v])};function Xe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:r=!1}=t,n={[m]:"".concat(ie.cssPrefix,"-").concat(m),[y]:"".concat(ie.cssPrefix,"-").concat(y),[v]:"".concat(ie.cssPrefix,"-").concat(v)};let i=null,o=m;const s=_.filter((e=>e!==g));s.forEach((t=>{(e.includes(n[t])||e.some((e=>Ye[t].includes(e))))&&(o=t)}));const a=e.reduce(((e,t)=>{const a=function(e,t){const r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n!==e||""===i||(o=i,~ee.indexOf(o))?null:i;var o}(ie.cssPrefix,t);if(De[t]?(t=ke[o].includes(t)?W[o][t]:t,i=t,e.prefix=t):Ge[o].indexOf(t)>-1?(i=t,e.prefix=He(t,{family:o})):a?e.iconName=a:t===ie.replacementClass||s.some((e=>t===n[e]))||e.rest.push(t),!r&&e.prefix&&e.iconName){const t="fa"===i?Ke(e.iconName):{},r=Ve(e.prefix,e.iconName);t.prefix&&(i=null),e.iconName=t.iconName||r||e.iconName,e.prefix=t.prefix||e.prefix,"far"!==e.prefix||De.far||!De.fas||ie.autoFetchSvg||(e.prefix="fas")}return e}),We());return(e.includes("fa-brands")||e.includes("fab"))&&(a.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(a.prefix="fad"),a.prefix||o!==y||!De.fass&&!ie.autoFetchSvg||(a.prefix="fass",a.iconName=Ve(a.prefix,a.iconName)||a.iconName),a.prefix||o!==v||!De.fasds&&!ie.autoFetchSvg||(a.prefix="fasds",a.iconName=Ve(a.prefix,a.iconName)||a.iconName),"fa"!==a.prefix&&"fa"!==i||(a.prefix=qe()||"fas"),a}let Ze=[],Je={};const Qe={},et=Object.keys(Qe);function tt(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return(Je[e]||[]).forEach((e=>{t=e.apply(null,[t,...n])})),t}function rt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(Je[e]||[]).forEach((e=>{e.apply(null,r)}))}function nt(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Qe[e]?Qe[e].apply(null,t):void 0}function it(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const r=e.prefix||qe();if(t)return t=Ve(r,t)||t,Te(ot.definitions,r,t)||Te(we.styles,r,t)}const ot=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(this._pullDefinitions,{});Object.keys(n).forEach((e=>{this.definitions[e]={...this.definitions[e]||{},...n[e]},Re(e,n[e]);const t=K[m][e];t&&Re(t,n[e]),ze()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const r=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(r).map((t=>{const{prefix:n,iconName:i,icon:o}=r[t],s=o[2];e[n]||(e[n]={}),s.length>0&&s.forEach((t=>{"string"==typeof t&&(e[n][t]=o)})),e[n][i]=o})),e}},st={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f?(rt("beforeI2svg",e),nt("pseudoElements2svg",e),nt("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var r;!1===ie.autoReplaceSvg&&(ie.autoReplaceSvg=!0),ie.observeMutations=!0,r=()=>{ct({autoReplaceSvgRoot:t}),rt("watch",e)},f&&(Se?setTimeout(r,0):Ee.push(r))}},at={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ve(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],r=He(e[0]);return{prefix:r,iconName:Ve(r,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(ie.cssPrefix,"-"))>-1||e.match(H))){const t=Xe(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||qe(),iconName:Ve(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=qe();return{prefix:t,iconName:Ve(t,e)||e}}}},lt={noAuto:()=>{ie.autoReplaceSvg=!1,ie.observeMutations=!1,rt("noAuto")},config:ie,dom:st,parse:at,library:ot,findIconDefinition:it,toHtml:Ae},ct=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=u}=e;(Object.keys(we.styles).length>0||ie.autoFetchSvg)&&f&&ie.autoReplaceSvg&&lt.dom.i2svg({node:t})};function ut(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>Ae(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!f)return;const t=u.createElement("div");return t.innerHTML=e.html,t.children}}),e}function ht(e){const{icons:{main:t,mask:r},prefix:n,iconName:i,transform:o,symbol:s,title:a,maskId:l,titleId:c,extra:u,watchable:h=!1}=e,{width:d,height:f}=r.found?r:t,p="fak"===n,m=[ie.replacementClass,i?"".concat(ie.cssPrefix,"-").concat(i):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let g={children:[],attributes:{...u.attributes,"data-prefix":n,"data-icon":i,class:m,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(f)}};const y=p&&!~u.classes.indexOf("fa-fw")?{width:"".concat(d/f*16*.0625,"em")}:{};h&&(g.attributes[O]=""),a&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(c||ce())},children:[a]}),delete g.attributes.title);const v={...g,prefix:n,iconName:i,main:t,mask:r,maskId:l,transform:o,symbol:s,styles:{...y,...u.styles}},{children:_,attributes:b}=r.found&&t.found?nt("generateAbstractMask",v)||{children:[],attributes:{}}:nt("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=_,v.attributes=b,s?function(e){let{prefix:t,iconName:r,children:n,attributes:i,symbol:o}=e;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...i,id:!0===o?"".concat(t,"-").concat(ie.cssPrefix,"-").concat(r):o},children:n}]}]}(v):function(e){let{children:t,main:r,mask:n,attributes:i,styles:o,transform:s}=e;if(pe(s)&&r.found&&!n.found){const{width:e,height:t}=r,n={x:e/t/2,y:.5};i.style=fe({...o,"transform-origin":"".concat(n.x+s.x/16,"em ").concat(n.y+s.y/16,"em")})}return[{tag:"svg",attributes:i,children:t}]}(v)}function dt(e){const{content:t,width:r,height:n,transform:i,title:o,extra:s,watchable:a=!1}=e,l={...s.attributes,...o?{title:o}:{},class:s.classes.join(" ")};a&&(l[O]="");const c={...s.styles};pe(i)&&(c.transform=function(e){let{transform:t,width:r=T,height:n=T,startCentered:i=!1}=e,o="";return o+=i&&p?"translate(".concat(t.x/se-r/2,"em, ").concat(t.y/se-n/2,"em) "):i?"translate(calc(-50% + ".concat(t.x/se,"em), calc(-50% + ").concat(t.y/se,"em)) "):"translate(".concat(t.x/se,"em, ").concat(t.y/se,"em) "),o+="scale(".concat(t.size/se*(t.flipX?-1:1),", ").concat(t.size/se*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}({transform:i,startCentered:!0,width:r,height:n}),c["-webkit-transform"]=c.transform);const u=fe(c);u.length>0&&(l.style=u);const h=[];return h.push({tag:"span",attributes:l,children:[t]}),o&&h.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),h}const{styles:ft}=we;function pt(e){const t=e[0],r=e[1],[n]=e.slice(4);let i=null;return i=Array.isArray(n)?{tag:"g",attributes:{class:"".concat(ie.cssPrefix,"-").concat(J.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ie.cssPrefix,"-").concat(J.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(ie.cssPrefix,"-").concat(J.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}},{found:!0,width:t,height:r,icon:i}}const mt={found:!1,width:512,height:512};function gt(e,t){let r=t;return"fa"===t&&null!==ie.styleDefault&&(t=qe()),new Promise(((n,i)=>{if("fa"===r){const r=Ke(e)||{};e=r.iconName||e,t=r.prefix||t}if(e&&t&&ft[t]&&ft[t][e])return n(pt(ft[t][e]));!function(e,t){M||ie.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),n({...mt,icon:ie.showMissingIcons&&e&&nt("missingIconAbstract")||{}})}))}const yt=()=>{},vt=ie.measurePerformance&&d&&d.mark&&d.measure?d:{mark:yt,measure:yt},_t='FA "6.6.0"',bt=e=>{vt.mark("".concat(_t," ").concat(e," ends")),vt.measure("".concat(_t," ").concat(e),"".concat(_t," ").concat(e," begins"),"".concat(_t," ").concat(e," ends"))};var wt={begin:e=>(vt.mark("".concat(_t," ").concat(e," begins")),()=>bt(e)),end:bt};const Et=()=>{};function xt(e){return"string"==typeof(e.getAttribute?e.getAttribute(O):null)}function St(e){return u.createElementNS("http://www.w3.org/2000/svg",e)}function At(e){return u.createElement(e)}function Tt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:r=("svg"===e.tag?St:At)}=t;if("string"==typeof e)return u.createTextNode(e);const n=r(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){n.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){n.appendChild(Tt(e,{ceFn:r}))})),n}const Pt={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(Tt(e),t)})),null===t.getAttribute(O)&&ie.keepOriginalSource){let e=u.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],r=e[1];if(~he(t).indexOf(ie.replacementClass))return Pt.replace(e);const n=new RegExp("".concat(ie.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){const e=r[0].attributes.class.split(" ").reduce(((e,t)=>(t===ie.replacementClass||t.match(n)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});r[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const i=r.map((e=>Ae(e))).join("\n");t.setAttribute(O,""),t.innerHTML=i}};function Ct(e){e()}function Ot(e,t){const r="function"==typeof t?t:Et;if(0===e.length)r();else{let t=Ct;ie.mutateApproach===j&&(t=c.requestAnimationFrame||Ct),t((()=>{const t=!0===ie.autoReplaceSvg?Pt.replace:Pt[ie.autoReplaceSvg]||Pt.replace,n=wt.begin("mutate");e.map(t),n(),r()}))}}let Rt=!1;function Dt(){Rt=!0}function It(){Rt=!1}let kt=null;function Ft(e){if(!h)return;if(!ie.observeMutations)return;const{treeCallback:t=Et,nodeCallback:r=Et,pseudoElementsCallback:n=Et,observeMutationsRoot:i=u}=e;kt=new h((e=>{if(Rt)return;const i=qe();ue(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!xt(e.addedNodes[0])&&(ie.searchPseudoElements&&n(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&ie.searchPseudoElements&&n(e.target.parentNode),"attributes"===e.type&&xt(e.target)&&~Z.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(I):null,r=e.getAttribute?e.getAttribute(k):null;return t&&r}(e.target)){const{prefix:t,iconName:r}=Xe(he(e.target));e.target.setAttribute(I,t||i),r&&e.target.setAttribute(k,r)}else(o=e.target)&&o.classList&&o.classList.contains&&o.classList.contains(ie.replacementClass)&&r(e.target);var o}))})),f&&kt.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function jt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:r,prefix:n,rest:i}=function(e){const t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=void 0!==e.innerText?e.innerText.trim():"";let i=Xe(he(e));return i.prefix||(i.prefix=qe()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=(o=i.prefix,s=e.innerText,(Le[o]||{})[s]||Be(i.prefix,Ce(e.innerText)))),!i.iconName&&ie.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i;var o,s}(e),o=function(e){const t=ue(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return ie.autoA11y&&(r?t["aria-labelledby"]="".concat(ie.replacementClass,"-title-").concat(n||ce()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),s=tt("parseNodeAttributes",{},e);let a=t.styleParser?function(e){const t=e.getAttribute("style");let r=[];return t&&(r=t.split(";").reduce(((e,t)=>{const r=t.split(":"),n=r[0],i=r.slice(1);return n&&i.length>0&&(e[n]=i.join(":").trim()),e}),{})),r}(e):[];return{iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:n,transform:ae,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:a,attributes:o},...s}}const{styles:Lt}=we;function Mt(e){const t="nest"===ie.autoReplaceSvg?jt(e,{styleParser:!1}):jt(e);return~t.extra.classes.indexOf(Y)?nt("generateLayersText",e,t):nt("generateSvgReplacementMutation",e,t)}let Nt=new Set;function $t(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!f)return Promise.resolve();const r=u.documentElement.classList,n=e=>r.add("".concat(F,"-").concat(e)),i=e=>r.remove("".concat(F,"-").concat(e)),o=ie.autoFetchSvg?Nt:N.map((e=>"fa-".concat(e))).concat(Object.keys(Lt));o.includes("fa")||o.push("fa");const s=[".".concat(Y,":not([").concat(O,"])")].concat(o.map((e=>".".concat(e,":not([").concat(O,"])")))).join(", ");if(0===s.length)return Promise.resolve();let a=[];try{a=ue(e.querySelectorAll(s))}catch(e){}if(!(a.length>0))return Promise.resolve();n("pending"),i("complete");const l=wt.begin("onTree"),c=a.reduce(((e,t)=>{try{const r=Mt(t);r&&e.push(r)}catch(e){M||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,r)=>{Promise.all(c).then((r=>{Ot(r,(()=>{n("active"),n("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),r(e)}))}))}function Gt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Mt(e).then((e=>{e&&Ot([e],t)}))}N.map((e=>{Nt.add("fa-".concat(e))})),Object.keys(z[m]).map(Nt.add.bind(Nt)),Object.keys(z[y]).map(Nt.add.bind(Nt)),Object.keys(z[v]).map(Nt.add.bind(Nt)),Nt=[...Nt];const zt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:r=ae,symbol:n=!1,mask:i=null,maskId:o=null,title:s=null,titleId:a=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:h,iconName:d,icon:f}=e;return ut({type:"icon",...e},(()=>(rt("beforeDOMElementCreation",{iconDefinition:e,params:t}),ie.autoA11y&&(s?c["aria-labelledby"]="".concat(ie.replacementClass,"-title-").concat(a||ce()):(c["aria-hidden"]="true",c.focusable="false")),ht({icons:{main:pt(f),mask:i?pt(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:h,iconName:d,transform:{...ae,...r},symbol:n,title:s,maskId:o,titleId:a,extra:{attributes:c,styles:u,classes:l}}))))};var Ut={mixout(){return{icon:(e=zt,function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(t||{}).icon?t:it(t||{});let{mask:i}=r;return i&&(i=(i||{}).icon?i:it(i||{})),e(n,{...r,mask:i})})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=$t,e.nodeCallback=Gt,e)}),provides(e){e.i2svg=function(e){const{node:t=u,callback:r=()=>{}}=e;return $t(t,r)},e.generateSvgReplacementMutation=function(e,t){const{iconName:r,title:n,titleId:i,prefix:o,transform:s,symbol:a,mask:l,maskId:c,extra:u}=t;return new Promise(((t,h)=>{Promise.all([gt(r,o),l.iconName?gt(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[h,d]=l;t([e,ht({icons:{main:h,mask:d},prefix:o,iconName:r,transform:s,symbol:a,maskId:c,title:n,titleId:i,extra:u,watchable:!0})])})).catch(h)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:r,main:n,transform:i,styles:o}=e;const s=fe(o);let a;return s.length>0&&(r.style=s),pe(i)&&(a=nt("generateAbstractTransformGrouping",{main:n,transform:i,containerWidth:n.width,iconWidth:n.width})),t.push(a||n.icon),{children:t,attributes:r}}}},Bt={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:r=[]}=t;return ut({type:"layer"},(()=>{rt("beforeDOMElementCreation",{assembler:e,params:t});let n=[];return e((e=>{Array.isArray(e)?e.map((e=>{n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(ie.cssPrefix,"-layers"),...r].join(" ")},children:n}]}))}})},Vt={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:r=null,classes:n=[],attributes:i={},styles:o={}}=t;return ut({type:"counter",content:e},(()=>(rt("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:r,extra:n}=e,i={...n.attributes,...r?{title:r}:{},class:n.classes.join(" ")},o=fe(n.styles);o.length>0&&(i.style=o);const s=[];return s.push({tag:"span",attributes:i,children:[t]}),r&&s.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),s}({content:e.toString(),title:r,extra:{attributes:i,styles:o,classes:["".concat(ie.cssPrefix,"-layers-counter"),...n]}}))))}})},Kt={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:r=ae,title:n=null,classes:i=[],attributes:o={},styles:s={}}=t;return ut({type:"text",content:e},(()=>(rt("beforeDOMElementCreation",{content:e,params:t}),dt({content:e,transform:{...ae,...r},title:n,extra:{attributes:o,styles:s,classes:["".concat(ie.cssPrefix,"-layers-text"),...i]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:r,transform:n,extra:i}=t;let o=null,s=null;if(p){const t=parseInt(getComputedStyle(e).fontSize,10),r=e.getBoundingClientRect();o=r.width/t,s=r.height/t}return ie.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,dt({content:e.innerHTML,width:o,height:s,transform:n,title:r,extra:i,watchable:!0})])}}};const qt=new RegExp('"',"ug"),Wt=[1105920,1112319],Ht={FontAwesome:{normal:"fas",400:"fas"},"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"},"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"},"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Yt=Object.keys(Ht).reduce(((e,t)=>(e[t.toLowerCase()]=Ht[t],e)),{}),Xt=Object.keys(Yt).reduce(((e,t)=>{const r=Yt[t];return e[t]=r[900]||[...Object.entries(r)][0][1],e}),{});function Zt(e,t){const r="".concat(D).concat(t.replace(":","-"));return new Promise(((n,i)=>{if(null!==e.getAttribute(r))return n();const o=ue(e.children).filter((e=>e.getAttribute(R)===t))[0],s=c.getComputedStyle(e,t),a=s.getPropertyValue("font-family"),l=a.match(X),h=s.getPropertyValue("font-weight"),d=s.getPropertyValue("content");if(o&&!l)return e.removeChild(o),n();if(l&&"none"!==d&&""!==d){const c=s.getPropertyValue("content");let d=function(e,t){const r=e.replace(/^['"]|['"]$/g,"").toLowerCase(),n=parseInt(t),i=isNaN(n)?"normal":n;return(Yt[r]||{})[i]||Xt[r]}(a,h);const{value:f,isSecondary:p}=function(e){const t=e.replace(qt,""),r=function(e){const t=e.length;let r,n=e.charCodeAt(0);return n>=55296&&n<=56319&&t>1&&(r=e.charCodeAt(1),r>=56320&&r<=57343)?1024*(n-55296)+r-56320+65536:n}(t),n=r>=Wt[0]&&r<=Wt[1],i=2===t.length&&t[0]===t[1];return{value:Ce(i?t[0]:t),isSecondary:n||i}}(c),m=l[0].startsWith("FontAwesome");let g=Be(d,f),y=g;if(m){const e=function(e){const t=Ne[e],r=Be("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}(f);e.iconName&&e.prefix&&(g=e.iconName,d=e.prefix)}if(!g||p||o&&o.getAttribute(I)===d&&o.getAttribute(k)===y)n();else{e.setAttribute(r,y),o&&e.removeChild(o);const s={iconName:null,title:null,titleId:null,prefix:null,transform:ae,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:a}=s;a.attributes[R]=t,gt(g,d).then((i=>{const o=ht({...s,icons:{main:i,mask:We()},prefix:d,iconName:y,extra:a,watchable:!0}),l=u.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=o.map((e=>Ae(e))).join("\n"),e.removeAttribute(r),n()})).catch(i)}}else n()}))}function Jt(e){return Promise.all([Zt(e,"::before"),Zt(e,"::after")])}function Qt(e){return!(e.parentNode===document.head||~L.indexOf(e.tagName.toUpperCase())||e.getAttribute(R)||e.parentNode&&"svg"===e.parentNode.tagName)}function er(e){if(f)return new Promise(((t,r)=>{const n=ue(e.querySelectorAll("*")).filter(Qt).map(Jt),i=wt.begin("searchPseudoElements");Dt(),Promise.all(n).then((()=>{i(),It(),t()})).catch((()=>{i(),It(),r()}))}))}var tr={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=er,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=u}=e;ie.searchPseudoElements&&er(t)}}};let rr=!1;var nr={mixout:()=>({dom:{unwatch(){Dt(),rr=!0}}}),hooks:()=>({bootstrap(){Ft(tt("mutationObserverCallbacks",{}))},noAuto(){kt&&kt.disconnect()},watch(e){const{observeMutationsRoot:t}=e;rr?It():Ft(tt("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const ir=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const r=t.toLowerCase().split("-"),n=r[0];let i=r.slice(1).join("-");if(n&&"h"===i)return e.flipX=!0,e;if(n&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(n){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});var or={mixout:()=>({parse:{transform:e=>ir(e)}}),hooks:()=>({parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-transform");return r&&(e.transform=ir(r)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:r,containerWidth:n,iconWidth:i}=e;const o={transform:"translate(".concat(n/2," 256)")},s="translate(".concat(32*r.x,", ").concat(32*r.y,") "),a="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),l="rotate(".concat(r.rotate," 0 0)"),c={transform:"".concat(s," ").concat(a," ").concat(l)},u={transform:"translate(".concat(i/2*-1," -256)")};return{tag:"g",attributes:{...o},children:[{tag:"g",attributes:{...c},children:[{tag:t.icon.tag,children:t.icon.children,attributes:{...t.icon.attributes,...u}}]}]}}}};const sr={x:0,y:0,width:"100%",height:"100%"};function ar(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var lr={hooks:()=>({parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-mask"),n=r?Xe(r.split(" ").map((e=>e.trim()))):We();return n.prefix||(n.prefix=qe()),e.mask=n,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:r,main:n,mask:i,maskId:o,transform:s}=e;const{width:a,icon:l}=n,{width:c,icon:u}=i,h=function(e){let{transform:t,containerWidth:r,iconWidth:n}=e;const i={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(s," ").concat(a)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:a}),d={tag:"rect",attributes:{...sr,fill:"white"}},f=l.children?{children:l.children.map(ar)}:{},p={tag:"g",attributes:{...h.inner},children:[ar({tag:l.tag,attributes:{...l.attributes,...h.path},...f})]},m={tag:"g",attributes:{...h.outer},children:[p]},g="mask-".concat(o||ce()),y="clip-".concat(o||ce()),v={tag:"mask",attributes:{...sr,id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[d,m]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(b=u,"g"===b.tag?b.children:[b])},v]};var b;return t.push(_,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")"),...sr}}),{children:t,attributes:r}}}},cr={provides(e){let t=!1;c.matchMedia&&(t=c.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],r={fill:"currentColor"},n={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:{...r,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const i={...n,attributeName:"opacity"},o={tag:"circle",attributes:{...r,cx:"256",cy:"364",r:"28"},children:[]};return t||o.children.push({tag:"animate",attributes:{...n,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...i,values:"1;0;1;1;0;1;"}}),e.push(o),e.push({tag:"path",attributes:{...r,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...i,values:"1;0;0;0;0;1;"}}]}),t||e.push({tag:"path",attributes:{...r,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...i,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){let{mixoutsTo:r}=t;Ze=e,Je={},Object.keys(Qe).forEach((e=>{-1===et.indexOf(e)&&delete Qe[e]})),Ze.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"==typeof t[e]&&(r[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach((n=>{r[e]||(r[e]={}),r[e][n]=t[e][n]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{Je[e]||(Je[e]=[]),Je[e].push(t[e])}))}e.provides&&e.provides(Qe)}))}([_e,Ut,Bt,Vt,Kt,tr,nr,or,lr,cr,{hooks:()=>({parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-symbol"),n=null!==r&&(""===r||r);return e.symbol=n,e}})}],{mixoutsTo:lt});const ur=lt.parse,hr=lt.icon;var dr=r(39067),fr=r.n(dr),pr=r(93345),mr=r.n(pr);function gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gr(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vr(e){return vr="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},vr(e)}function _r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function br(e){return function(e){if(Array.isArray(e))return wr(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){if("string"==typeof e)return wr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wr(e,t):void 0}}(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 wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Er(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var xr=["style"],Sr=!1;try{Sr=!0}catch(e){}function Ar(e){return e&&"object"===vr(e)&&e.prefix&&e.iconName&&e.icon?e:ur.icon?ur.icon(e):null===e?null:e&&"object"===vr(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Tr(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?_r({},e,t):{}}var Pr={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Cr=mr().forwardRef((function(e,t){var r=yr(yr({},Pr),e),n=r.icon,i=r.mask,o=r.symbol,s=r.className,a=r.title,l=r.titleId,c=r.maskId,u=Ar(n),h=Tr("classes",[].concat(br(function(e){var t,r=e.beat,n=e.fade,i=e.beatFade,o=e.bounce,s=e.shake,a=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,h=e.pulse,d=e.fixedWidth,f=e.inverse,p=e.border,m=e.listItem,g=e.flip,y=e.size,v=e.rotation,_=e.pull,b=(_r(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":s,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":h,"fa-fw":d,"fa-inverse":f,"fa-border":p,"fa-li":m,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(y),null!=y),_r(t,"fa-rotate-".concat(v),null!=v&&0!==v),_r(t,"fa-pull-".concat(_),null!=_),_r(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(b).map((function(e){return b[e]?e:null})).filter((function(e){return e}))}(r)),br((s||"").split(" ")))),d=Tr("transform","string"==typeof r.transform?ur.transform(r.transform):r.transform),f=Tr("mask",Ar(i)),p=hr(u,yr(yr(yr(yr({},h),d),f),{},{symbol:o,title:a,titleId:l,maskId:c}));if(!p)return function(){var e;!Sr&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var m=p.abstract,g={ref:t};return Object.keys(r).forEach((function(e){Pr.hasOwnProperty(e)||(g[e]=r[e])})),Or(m[0],g)}));Cr.displayName="FontAwesomeIcon",Cr.propTypes={beat:fr().bool,border:fr().bool,beatFade:fr().bool,bounce:fr().bool,className:fr().string,fade:fr().bool,flash:fr().bool,mask:fr().oneOfType([fr().object,fr().array,fr().string]),maskId:fr().string,fixedWidth:fr().bool,inverse:fr().bool,flip:fr().oneOf([!0,!1,"horizontal","vertical","both"]),icon:fr().oneOfType([fr().object,fr().array,fr().string]),listItem:fr().bool,pull:fr().oneOf(["right","left"]),pulse:fr().bool,rotation:fr().oneOf([0,90,180,270]),shake:fr().bool,size:fr().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:fr().bool,spinPulse:fr().bool,spinReverse:fr().bool,symbol:fr().oneOfType([fr().bool,fr().string]),title:fr().string,titleId:fr().string,transform:fr().oneOfType([fr().string,fr().object]),swapOpacity:fr().bool};var Or=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof r)return r;var i=(r.children||[]).map((function(r){return e(t,r)})),o=Object.keys(r.attributes||{}).reduce((function(e,t){var n=r.attributes[t];switch(t){case"class":e.attrs.className=n,delete r.attributes.class;break;case"style":e.attrs.style=n.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var r,n=t.indexOf(":"),i=Er(t.slice(0,n)),o=t.slice(n+1).trim();return i.startsWith("webkit")?e[(r=i,r.charAt(0).toUpperCase()+r.slice(1))]=o:e[i]=o,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=n:e.attrs[Er(t)]=n}return e}),{attrs:{}}),s=n.style,a=void 0===s?{}:s,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(n,xr);return o.attrs.style=yr(yr({},o.attrs.style),a),t.apply(void 0,[r.tag,yr(yr({},o.attrs),l)].concat(br(i)))}.bind(null,mr().createElement)},80313:(e,t,r)=>{"use strict";function n(e,t){this.x=e,this.y=t}r.d(t,{cW:()=>c}),n.prototype={clone(){return new n(this.x,this.y)},add(e){return this.clone()._add(e)},sub(e){return this.clone()._sub(e)},multByPoint(e){return this.clone()._multByPoint(e)},divByPoint(e){return this.clone()._divByPoint(e)},mult(e){return this.clone()._mult(e)},div(e){return this.clone()._div(e)},rotate(e){return this.clone()._rotate(e)},rotateAround(e,t){return this.clone()._rotateAround(e,t)},matMult(e){return this.clone()._matMult(e)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(e){return this.x===e.x&&this.y===e.y},dist(e){return Math.sqrt(this.distSqr(e))},distSqr(e){const t=e.x-this.x,r=e.y-this.y;return t*t+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith(e){return this.angleWithSep(e.x,e.y)},angleWithSep(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult(e){const t=e[0]*this.x+e[1]*this.y,r=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=r,this},_add(e){return this.x+=e.x,this.y+=e.y,this},_sub(e){return this.x-=e.x,this.y-=e.y,this},_mult(e){return this.x*=e,this.y*=e,this},_div(e){return this.x/=e,this.y/=e,this},_multByPoint(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint(e){return this.x/=e.x,this.y/=e.y,this},_unit(){return this._div(this.mag()),this},_perp(){const e=this.y;return this.y=this.x,this.x=-e,this},_rotate(e){const t=Math.cos(e),r=Math.sin(e),n=t*this.x-r*this.y,i=r*this.x+t*this.y;return this.x=n,this.y=i,this},_rotateAround(e,t){const r=Math.cos(e),n=Math.sin(e),i=t.x+r*(this.x-t.x)-n*(this.y-t.y),o=t.y+n*(this.x-t.x)+r*(this.y-t.y);return this.x=i,this.y=o,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:n},n.convert=function(e){if(e instanceof n)return e;if(Array.isArray(e))return new n(+e[0],+e[1]);if(void 0!==e.x&&void 0!==e.y)return new n(+e.x,+e.y);throw new Error("Expected [x, y] or {x, y} point format")};class i{constructor(e,t,r,n,i){this.properties={},this.extent=r,this.type=0,this.id=void 0,this._pbf=e,this._geometry=-1,this._keys=n,this._values=i,e.readFields(o,this,t)}loadGeometry(){const e=this._pbf;e.pos=this._geometry;const t=e.readVarint()+e.pos,r=[];let i,o=1,s=0,a=0,l=0;for(;e.pos<t;){if(s<=0){const t=e.readVarint();o=7&t,s=t>>3}if(s--,1===o||2===o)a+=e.readSVarint(),l+=e.readSVarint(),1===o&&(i&&r.push(i),i=[]),i&&i.push(new n(a,l));else{if(7!==o)throw new Error(`unknown command ${o}`);i&&i.push(i[0].clone())}}return i&&r.push(i),r}bbox(){const e=this._pbf;e.pos=this._geometry;const t=e.readVarint()+e.pos;let r=1,n=0,i=0,o=0,s=1/0,a=-1/0,l=1/0,c=-1/0;for(;e.pos<t;){if(n<=0){const t=e.readVarint();r=7&t,n=t>>3}if(n--,1===r||2===r)i+=e.readSVarint(),o+=e.readSVarint(),i<s&&(s=i),i>a&&(a=i),o<l&&(l=o),o>c&&(c=o);else if(7!==r)throw new Error(`unknown command ${r}`)}return[s,l,a,c]}toGeoJSON(e,t,r){const n=this.extent*Math.pow(2,r),i=this.extent*e,o=this.extent*t,a=this.loadGeometry();function l(e){return[360*(e.x+i)/n-180,360/Math.PI*Math.atan(Math.exp((1-2*(e.y+o)/n)*Math.PI))-90]}function c(e){return e.map(l)}let u;if(1===this.type){const e=[];for(const t of a)e.push(t[0]);const t=c(e);u=1===e.length?{type:"Point",coordinates:t[0]}:{type:"MultiPoint",coordinates:t}}else if(2===this.type){const e=a.map(c);u=1===e.length?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}}else{if(3!==this.type)throw new Error("unknown feature type");{const e=function(e){const t=e.length;if(t<=1)return[e];const r=[];let n,i;for(let o=0;o<t;o++){const t=s(e[o]);0!==t&&(void 0===i&&(i=t<0),i===t<0?(n&&r.push(n),n=[e[o]]):n&&n.push(e[o]))}return n&&r.push(n),r}(a),t=[];for(const r of e)t.push(r.map(c));u=1===t.length?{type:"Polygon",coordinates:t[0]}:{type:"MultiPolygon",coordinates:t}}}const h={type:"Feature",geometry:u,properties:this.properties};return null!=this.id&&(h.id=this.id),h}}function o(e,t,r){1===e?t.id=r.readVarint():2===e?function(e,t){const r=e.readVarint()+e.pos;for(;e.pos<r;){const r=t._keys[e.readVarint()],n=t._values[e.readVarint()];t.properties[r]=n}}(r,t):3===e?t.type=r.readVarint():4===e&&(t._geometry=r.pos)}function s(e){let t=0;for(let r,n,i=0,o=e.length,s=o-1;i<o;s=i++)r=e[i],n=e[s],t+=(n.x-r.x)*(r.y+n.y);return t}i.types=["Unknown","Point","LineString","Polygon"];class a{constructor(e,t){this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(l,this,t),this.length=this._features.length}feature(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];const t=this._pbf.readVarint()+this._pbf.pos;return new i(this._pbf,t,this.extent,this._keys,this._values)}}function l(e,t,r){15===e?t.version=r.readVarint():1===e?t.name=r.readString():5===e?t.extent=r.readVarint():2===e?t._features.push(r.pos):3===e?t._keys.push(r.readString()):4===e&&t._values.push(function(e){let t=null;const r=e.readVarint()+e.pos;for(;e.pos<r;){const r=e.readVarint()>>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(r))}class c{constructor(e,t){this.layers=e.readFields(u,{},t)}}function u(e,t,r){if(3===e){const e=new a(r,r.readVarint()+r.pos);e.length&&(t[e.name]=e)}}},49004:(e,t,r)=>{"use strict";var n=r(10646),i=r(50709),o=r(43225),s=Math.pow(2,31)-1;function a(e,t){var r,n=1;if(0===e)return t;if(0===t)return e;for(;e%2==0&&t%2==0;)e/=2,t/=2,n*=2;for(;e%2==0;)e/=2;for(;t;){for(;t%2==0;)t/=2;e>t&&(r=t,t=e,e=r),t-=e}return n*e}function l(e,t){var r,n=0;if(0===e)return t;if(0===t)return e;for(;!(1&e||1&t);)e>>>=1,t>>>=1,n++;for(;!(1&e);)e>>>=1;for(;t;){for(;!(1&t);)t>>>=1;e>t&&(r=t,t=e,e=r),t-=e}return e<<n}e.exports=function(){var e,t,r,c,u,h,d,f=arguments.length;for(e=new Array(f),d=0;d<f;d++)e[d]=arguments[d];if(i(e)){if(2===f)return(u=e[0])<0&&(u=-u),(h=e[1])<0&&(h=-h),u<=s&&h<=s?l(u,h):a(u,h);r=e}else{if(!n(e[0]))throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(f>1){if(r=e[0],t=e[1],!o(t))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((c=r.length)<2)return null;if(t){for(u=new Array(c),d=0;d<c;d++)u[d]=t(r[d],d);r=u}if(f<3&&!i(r))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(d=0;d<c;d++)(u=r[d])<0&&(r[d]=-u);for(u=r[0],d=1;d<c;d++)u=(h=r[d])<=s&&u<=s?l(u,h):a(u,h);return u}},23050:(e,t,r)=>{"use strict";var n=r(49004),i=r(10646),o=r(50709),s=r(43225);e.exports=function(){var e,t,r,a,l,c,u,h=arguments.length;for(e=new Array(h),u=0;u<h;u++)e[u]=arguments[u];if(o(e)){if(2===h)return(l=e[0])<0&&(l=-l),(c=e[1])<0&&(c=-c),0===l||0===c?0:l/n(l,c)*c;r=e}else{if(!i(e[0]))throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(h>1){if(r=e[0],t=e[1],!s(t))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((a=r.length)<2)return null;if(t){for(l=new Array(a),u=0;u<a;u++)l[u]=t(r[u],u);r=l}if(h<3&&!o(r))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(u=0;u<a;u++)(l=r[u])<0&&(r[u]=-l);for(l=r[0],u=1;u<a;u++){if(c=r[u],0===l||0===c)return 0;l=l/n(l,c)*c}return l}},51372:(e,t,r)=>{"use strict";var n=r(52371);e.exports=n},28610:(e,t,r)=>{"use strict";r(83336);var n=r(83190);e.exports=n("Array","fill")},92654:(e,t,r)=>{"use strict";r(59076);var n=r(83190);e.exports=n("Array","includes")},8125:(e,t,r)=>{"use strict";var n=r(51372);e.exports=n},55023:(e,t,r)=>{"use strict";var n=r(92490),i=r(57664),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},780:e=>{"use strict";e.exports=function(){}},59760:(e,t,r)=>{"use strict";var n=r(69421),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},86344:(e,t,r)=>{"use strict";var n=r(62434),i=r(88385),o=r(86719);e.exports=function(e){for(var t=n(this),r=o(t),s=arguments.length,a=i(s>1?arguments[1]:void 0,r),l=s>2?arguments[2]:void 0,c=void 0===l?r:i(l,r);c>a;)t[a++]=e;return t}},54372:(e,t,r)=>{"use strict";var n=r(97262),i=r(88385),o=r(86719),s=function(e){return function(t,r,s){var a=n(t),l=o(a);if(0===l)return!e&&-1;var c,u=i(s,l);if(e&&r!=r){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},92399:(e,t,r)=>{"use strict";var n=r(1299),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},35706:(e,t,r)=>{"use strict";var n=r(86039),i=r(1004),o=r(58729);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},58729:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},45604:(e,t,r)=>{"use strict";var n=r(92543),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},86039:(e,t,r)=>{"use strict";var n=r(48908);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},33392:(e,t,r)=>{"use strict";var n=r(92543),i=r(69421),o=n.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},83190:(e,t,r)=>{"use strict";var n=r(97390);e.exports=n},39866:(e,t,r)=>{"use strict";var n=r(92543).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},63870:(e,t,r)=>{"use strict";var n,i,o=r(92543),s=r(39866),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},62547:(e,t,r)=>{"use strict";var n=r(92543),i=r(72312),o=r(66473),s=r(92490),a=r(25494).f,l=r(30599),c=r(13646),u=r(11351),h=r(35706),d=r(71228);r(47936);var f=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return i(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,i,p,m,g,y,v,_,b,w=e.target,E=e.global,x=e.stat,S=e.proto,A=E?n:x?n[w]:n[w]&&n[w].prototype,T=E?c:c[w]||h(c,w,{})[w],P=T.prototype;for(m in t)i=!(r=l(E?m:w+(x?".":"#")+m,e.forced))&&A&&d(A,m),y=T[m],i&&(v=e.dontCallGetSet?(b=a(A,m))&&b.value:A[m]),g=i&&v?v:t[m],(r||S||typeof y!=typeof g)&&(_=e.bind&&i?u(g,n):e.wrap&&i?f(g):S&&s(g)?o(g):g,(e.sham||g&&g.sham||y&&y.sham)&&h(_,"sham",!0),h(T,m,_),S&&(d(c,p=w+"Prototype")||h(c,p,{}),h(c[p],m,g),e.real&&P&&(r||!P[m])&&h(P,m,g)))}},48908:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},72312:(e,t,r)=>{"use strict";var n=r(7649),i=Function.prototype,o=i.apply,s=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},11351:(e,t,r)=>{"use strict";var n=r(66473),i=r(55023),o=r(7649),s=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},7649:(e,t,r)=>{"use strict";var n=r(48908);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},83306:(e,t,r)=>{"use strict";var n=r(7649),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},66473:(e,t,r)=>{"use strict";var n=r(92399),i=r(1299);e.exports=function(e){if("Function"===n(e))return i(e)}},1299:(e,t,r)=>{"use strict";var n=r(7649),i=Function.prototype,o=i.call,s=n&&i.bind.bind(o,o);e.exports=n?s:function(e){return function(){return o.apply(e,arguments)}}},97390:(e,t,r)=>{"use strict";var n=r(13646),i=r(92543),o=r(92490),s=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?s(n[e])||s(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},85879:(e,t,r)=>{"use strict";var n=r(55023),i=r(47251);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},92543:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},71228:(e,t,r)=>{"use strict";var n=r(1299),i=r(62434),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},69936:(e,t,r)=>{"use strict";var n=r(86039),i=r(48908),o=r(33392);e.exports=!n&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},96882:(e,t,r)=>{"use strict";var n=r(1299),i=r(48908),o=r(92399),s=Object,a=n("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?a(e,""):s(e)}:s},92490:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},30599:(e,t,r)=>{"use strict";var n=r(48908),i=r(92490),o=/#|\.prototype\./,s=function(e,t){var r=l[a(e)];return r===u||r!==c&&(i(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},47251:e=>{"use strict";e.exports=function(e){return null==e}},69421:(e,t,r)=>{"use strict";var n=r(92490);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},73712:e=>{"use strict";e.exports=!0},48730:(e,t,r)=>{"use strict";var n=r(97390),i=r(92490),o=r(31352),s=r(4711),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,a(e))}},86719:(e,t,r)=>{"use strict";var n=r(26257);e.exports=function(e){return n(e.length)}},14040:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},1004:(e,t,r)=>{"use strict";var n=r(86039),i=r(69936),o=r(42501),s=r(59760),a=r(9798),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";t.f=n?o?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var n=u(e,t);n&&n[f]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:h in r?r[h]:n[h],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(s(e),t=a(t),s(r),i)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},25494:(e,t,r)=>{"use strict";var n=r(86039),i=r(83306),o=r(34990),s=r(58729),a=r(97262),l=r(9798),c=r(71228),u=r(69936),h=Object.getOwnPropertyDescriptor;t.f=n?h:function(e,t){if(e=a(e),t=l(t),u)try{return h(e,t)}catch(e){}if(c(e,t))return s(!i(o.f,e,t),e[t])}},31352:(e,t,r)=>{"use strict";var n=r(1299);e.exports=n({}.isPrototypeOf)},34990:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},59973:(e,t,r)=>{"use strict";var n=r(83306),i=r(92490),o=r(69421),s=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&i(r=e.toString)&&!o(a=n(r,e)))return a;if(i(r=e.valueOf)&&!o(a=n(r,e)))return a;if("string"!==t&&i(r=e.toString)&&!o(a=n(r,e)))return a;throw new s("Can't convert object to primitive value")}},13646:e=>{"use strict";e.exports={}},65471:(e,t,r)=>{"use strict";var n=r(47251),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},47936:(e,t,r)=>{"use strict";var n=r(73712),i=r(92543),o=r(45604),s="__core-js_shared__",a=e.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.38.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},37272:(e,t,r)=>{"use strict";var n=r(47936);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},93958:(e,t,r)=>{"use strict";var n=r(63870),i=r(48908),o=r(92543).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},88385:(e,t,r)=>{"use strict";var n=r(92202),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},97262:(e,t,r)=>{"use strict";var n=r(96882),i=r(65471);e.exports=function(e){return n(i(e))}},92202:(e,t,r)=>{"use strict";var n=r(14040);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},26257:(e,t,r)=>{"use strict";var n=r(92202),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},62434:(e,t,r)=>{"use strict";var n=r(65471),i=Object;e.exports=function(e){return i(n(e))}},57836:(e,t,r)=>{"use strict";var n=r(83306),i=r(69421),o=r(48730),s=r(85879),a=r(59973),l=r(29800),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,l=s(e,u);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!i(r)||o(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},9798:(e,t,r)=>{"use strict";var n=r(57836),i=r(48730);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},57664:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},8995:(e,t,r)=>{"use strict";var n=r(1299),i=0,o=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},4711:(e,t,r)=>{"use strict";var n=r(93958);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},42501:(e,t,r)=>{"use strict";var n=r(86039),i=r(48908);e.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},29800:(e,t,r)=>{"use strict";var n=r(92543),i=r(37272),o=r(71228),s=r(8995),a=r(93958),l=r(4711),c=n.Symbol,u=i("wks"),h=l?c.for||c:c&&c.withoutSetter||s;e.exports=function(e){return o(u,e)||(u[e]=a&&o(c,e)?c[e]:h("Symbol."+e)),u[e]}},83336:(e,t,r)=>{"use strict";var n=r(62547),i=r(86344),o=r(780);n({target:"Array",proto:!0},{fill:i}),o("fill")},59076:(e,t,r)=>{"use strict";var n=r(62547),i=r(54372).includes,o=r(48908),s=r(780);n({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},52371:(e,t,r)=>{"use strict";var n=r(28610);e.exports=n},8996:(e,t,r)=>{"use strict";function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function i(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function o(){}r.d(t,{Qh:()=>S});var s=.7,a=1/s,l="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,d=new RegExp(`^rgb\\(${l},${l},${l}\\)$`),f=new RegExp(`^rgb\\(${u},${u},${u}\\)$`),p=new RegExp(`^rgba\\(${l},${l},${l},${c}\\)$`),m=new RegExp(`^rgba\\(${u},${u},${u},${c}\\)$`),g=new RegExp(`^hsl\\(${c},${u},${u}\\)$`),y=new RegExp(`^hsla\\(${c},${u},${u},${c}\\)$`),v={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function w(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=h.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?E(t):3===r?new A(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?x(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?x(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new A(t[1],t[2],t[3],1):(t=f.exec(e))?new A(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?x(t[1],t[2],t[3],t[4]):(t=m.exec(e))?x(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=g.exec(e))?D(t[1],t[2]/100,t[3]/100,1):(t=y.exec(e))?D(t[1],t[2]/100,t[3]/100,t[4]):v.hasOwnProperty(e)?E(v[e]):"transparent"===e?new A(NaN,NaN,NaN,0):null}function E(e){return new A(e>>16&255,e>>8&255,255&e,1)}function x(e,t,r,n){return n<=0&&(e=t=r=NaN),new A(e,t,r,n)}function S(e,t,r,n){return 1===arguments.length?((i=e)instanceof o||(i=w(i)),i?new A((i=i.rgb()).r,i.g,i.b,i.opacity):new A):new A(e,t,r,null==n?1:n);var i}function A(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function T(){return`#${R(this.r)}${R(this.g)}${R(this.b)}`}function P(){const e=C(this.opacity);return`${1===e?"rgb(":"rgba("}${O(this.r)}, ${O(this.g)}, ${O(this.b)}${1===e?")":`, ${e})`}`}function C(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function O(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function R(e){return((e=O(e))<16?"0":"")+e.toString(16)}function D(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new k(e,t,r,n)}function I(e){if(e instanceof k)return new k(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=w(e)),!e)return new k;if(e instanceof k)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),s=Math.max(t,r,n),a=NaN,l=s-i,c=(s+i)/2;return l?(a=t===s?(r-n)/l+6*(r<n):r===s?(n-t)/l+2:(t-r)/l+4,l/=c<.5?s+i:2-s-i,a*=60):l=c>0&&c<1?0:a,new k(a,l,c,e.opacity)}function k(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function F(e){return(e=(e||0)%360)<0?e+360:e}function j(e){return Math.max(0,Math.min(1,e||0))}function L(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}n(o,w,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_,formatHex:_,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return I(this).formatHsl()},formatRgb:b,toString:b}),n(A,S,i(o,{brighter(e){return e=null==e?a:Math.pow(a,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?s:Math.pow(s,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new A(O(this.r),O(this.g),O(this.b),C(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:T,formatHex:T,formatHex8:function(){return`#${R(this.r)}${R(this.g)}${R(this.b)}${R(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:P,toString:P})),n(k,(function(e,t,r,n){return 1===arguments.length?I(e):new k(e,t,r,null==n?1:n)}),i(o,{brighter(e){return e=null==e?a:Math.pow(a,e),new k(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?s:Math.pow(s,e),new k(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new A(L(e>=240?e-240:e+120,i,n),L(e,i,n),L(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new k(F(this.h),j(this.s),j(this.l),C(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=C(this.opacity);return`${1===e?"hsl(":"hsla("}${F(this.h)}, ${100*j(this.s)}%, ${100*j(this.l)}%${1===e?")":`, ${e})`}`}}))},56075:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,s;if(Array.isArray(t)){for(s="[",r=0;r<t.length;r++)r&&(s+=","),s+=e(t[r])||"null";return s+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var a=o.push(t)-1,l=Object.keys(t).sort(i&&i(t));for(s="",r=0;r<l.length;r++){var c=l[r],u=e(t[c]);u&&(s&&(s+=","),s+=JSON.stringify(c)+":"+u)}return o.splice(a,1),"{"+s+"}"}}(e)}},79639:(e,t,r)=>{"use strict";const{normalizeIPv6:n,normalizeIPv4:i,removeDotSegments:o,recomposeAuthority:s,normalizeComponentEncoding:a}=r(89970),l=r(36855);function c(e,t,r,n){const i={};return n||(e=f(u(e,r),r),t=f(u(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=o(t.path||""),i.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=o(t.path||""),i.query=t.query):(t.path?("/"===t.path.charAt(0)?i.path=o(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path:i.path="/"+t.path,i.path=o(i.path)),i.query=t.query):(i.path=e.path,void 0!==t.query?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function u(e,t){const r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],a=l[(n.scheme||r.scheme||"").toLowerCase()];a&&a.serialize&&a.serialize(r,n),void 0!==r.path&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),void 0!==r.scheme&&(r.path=r.path.split("%3A").join(":")))),"suffix"!==n.reference&&r.scheme&&(i.push(r.scheme),i.push(":"));const c=s(r,n);if(void 0!==c&&("suffix"!==n.reference&&i.push("//"),i.push(c),r.path&&"/"!==r.path.charAt(0)&&i.push("/")),void 0!==r.path){let e=r.path;n.absolutePath||a&&a.absolutePath||(e=o(e)),void 0===c&&(e=e.replace(/^\/\//u,"/%2F")),i.push(e)}return void 0!==r.query&&(i.push("?"),i.push(r.query)),void 0!==r.fragment&&(i.push("#"),i.push(r.fragment)),i.join("")}const h=Array.from({length:127},((e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)))),d=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function f(e,t){const r=Object.assign({},t),o={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},s=-1!==e.indexOf("%");let a=!1;"suffix"===r.reference&&(e=(r.scheme?r.scheme+":":"")+"//"+e);const c=e.match(d);if(c){if(o.scheme=c[1],o.userinfo=c[3],o.host=c[4],o.port=parseInt(c[5],10),o.path=c[6]||"",o.query=c[7],o.fragment=c[8],isNaN(o.port)&&(o.port=c[5]),o.host){const e=i(o.host);if(!1===e.isIPV4){const t=n(e.host,{isIPV4:!1});o.host=t.host.toLowerCase(),a=t.isIPV6}else o.host=e.host,a=!0}void 0!==o.scheme||void 0!==o.userinfo||void 0!==o.host||void 0!==o.port||o.path||void 0!==o.query?void 0===o.scheme?o.reference="relative":void 0===o.fragment?o.reference="absolute":o.reference="uri":o.reference="same-document",r.reference&&"suffix"!==r.reference&&r.reference!==o.reference&&(o.error=o.error||"URI is not a "+r.reference+" reference.");const e=l[(r.scheme||o.scheme||"").toLowerCase()];if(!(r.unicodeSupport||e&&e.unicodeSupport)&&o.host&&(r.domainHost||e&&e.domainHost)&&!1===a&&function(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||h[t])return!0;return!1}(o.host))try{o.host=URL.domainToASCII(o.host.toLowerCase())}catch(e){o.error=o.error||"Host's domain name can not be converted to ASCII: "+e}(!e||e&&!e.skipNormalize)&&(s&&void 0!==o.scheme&&(o.scheme=unescape(o.scheme)),s&&void 0!==o.userinfo&&(o.userinfo=unescape(o.userinfo)),s&&void 0!==o.host&&(o.host=unescape(o.host)),void 0!==o.path&&o.path.length&&(o.path=escape(unescape(o.path))),void 0!==o.fragment&&o.fragment.length&&(o.fragment=encodeURI(decodeURIComponent(o.fragment)))),e&&e.parse&&e.parse(o,r)}else o.error=o.error||"URI can not be parsed.";return o}const p={SCHEMES:l,normalize:function(e,t){return"string"==typeof e?e=u(f(e,t),t):"object"==typeof e&&(e=f(u(e,t),t)),e},resolve:function(e,t,r){const n=Object.assign({scheme:"null"},r);return u(c(f(e,n),f(t,n),n,!0),{...n,skipEscape:!0})},resolveComponents:c,equal:function(e,t,r){return"string"==typeof e?(e=unescape(e),e=u(a(f(e,r),!0),{...r,skipEscape:!0})):"object"==typeof e&&(e=u(a(e,!0),{...r,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=u(a(f(t,r),!0),{...r,skipEscape:!0})):"object"==typeof t&&(t=u(a(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:u,parse:f};e.exports=p,e.exports.default=p,e.exports.fastUri=p},36855:e=>{"use strict";const t=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,r=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function n(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}function i(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function o(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const s={scheme:"http",domainHost:!0,parse:i,serialize:o},a={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=n(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(n(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,r]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}},l={http:s,https:{scheme:"https",domainHost:s.domainHost,parse:i,serialize:o},ws:a,wss:{scheme:"wss",domainHost:a.domainHost,parse:a.parse,serialize:a.serialize},urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match(r);if(n){const r=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const i=`${r}:${t.nid||e.nid}`,o=l[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){const r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=l[i];o&&(e=o.serialize(e,t));const s=e,a=e.nss;return s.path=`${n||t.nid}:${a}`,t.skipEscape=!0,s},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,r){const n=e;return n.uuid=n.nss,n.nss=void 0,r.tolerant||n.uuid&&t.test(n.uuid)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};e.exports=l},94962:e=>{"use strict";e.exports={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}}},89970:(e,t,r)=>{"use strict";const{HEX:n}=r(94962);function i(e){if(l(e,".")<3)return{host:e,isIPV4:!1};const t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[r]=t;return r?{host:a(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function o(e,t=!1){let r="",i=!0;for(const t of e){if(void 0===n[t])return;"0"!==t&&!0===i&&(i=!1),i||(r+=t)}return t&&0===r.length&&(r="0"),r}function s(e,t={}){if(l(e,":")<2)return{host:e,isIPV6:!1};const r=function(e){let t=0;const r={error:!1,address:"",zone:""},n=[],i=[];let s=!1,a=!1,l=!1;function c(){if(i.length){if(!1===s){const e=o(i);if(void 0===e)return r.error=!0,!1;n.push(e)}i.length=0}return!0}for(let o=0;o<e.length;o++){const u=e[o];if("["!==u&&"]"!==u)if(":"!==u)if("%"===u){if(!c())break;s=!0}else i.push(u);else{if(!0===a&&(l=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}o-1>=0&&":"===e[o-1]&&(a=!0)}}return i.length&&(s?r.zone=i.join(""):l?n.push(i.join("")):n.push(o(i))),r.address=n.join(""),r}(e);if(r.error)return{host:e,isIPV6:!1};{let e=r.address,t=r.address;return r.zone&&(e+="%"+r.zone,t+="%25"+r.zone),{host:e,escapedHost:t,isIPV6:!0}}}function a(e,t){let r="",n=!0;const i=e.length;for(let o=0;o<i;o++){const s=e[o];"0"===s&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=s,n=!1):(n=s===t,r+=s)}return r}function l(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}const c=/^\.\.?\//u,u=/^\/\.(?:\/|$)/u,h=/^\/\.\.(?:\/|$)/u,d=/^\/?(?:.|\n)*?(?=\/|$)/u;e.exports={recomposeAuthority:function(e,t){const r=[];if(void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host){let t=unescape(e.host);const n=i(t);if(n.isIPV4)t=n.host;else{const r=s(n.host,{isIPV4:!1});t=!0===r.isIPV6?`[${r.escapedHost}]`:e.host}r.push(t)}return"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0},normalizeComponentEncoding:function(e,t){const r=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=r(e.scheme)),void 0!==e.userinfo&&(e.userinfo=r(e.userinfo)),void 0!==e.host&&(e.host=r(e.host)),void 0!==e.path&&(e.path=r(e.path)),void 0!==e.query&&(e.query=r(e.query)),void 0!==e.fragment&&(e.fragment=r(e.fragment)),e},removeDotSegments:function(e){const t=[];for(;e.length;)if(e.match(c))e=e.replace(c,"");else if(e.match(u))e=e.replace(u,"/");else if(e.match(h))e=e.replace(h,"/"),t.pop();else if("."===e||".."===e)e="";else{const r=e.match(d);if(!r)throw new Error("Unexpected dot segment condition");{const n=r[0];e=e.slice(n.length),t.push(n)}}return t.join("")},normalizeIPv4:i,normalizeIPv6:s,stringArrayToHexStripped:o}},66519:function(e,t,r){var n=r(39907);e.exports=function(){"use strict";function e(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)),n}function t(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach((function(e){var r,i;r=t,i=n[e],(e=u(e))in r?Object.defineProperty(r,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[e]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(e){return(i="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){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||l(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 a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(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 l(e,t){var r;if(e)return"string"==typeof e?c(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e){return e=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=typeof(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),"symbol"==typeof e?e:String(e)}function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function d(e){var t,r;return e.__esModule?e:("function"==typeof(t=e.default)?(r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)}).prototype=t.prototype:r={},Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r)}var f,p=d(Object.freeze({__proto__:null,default:{}})),m="[object process]"===Object.prototype.toString.call(void 0!==n?n:0),g={exports:{}},y=d(Object.freeze({__proto__:null,default:{}})),v=d(Object.freeze({__proto__:null,default:{}})),_=g;f=(f="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",_.exports=function(){var e,t,r,o,s,a,l,c,u,h,d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},m=d;function g(){function e(e,t){if(!e)throw t+(new Error).stack}function t(e,t,r){this.start=e,this.end=t,this.audio=r}m.FS_createPath("/","usr",!0,!0),m.FS_createPath("/usr","share",!0,!0),m.FS_createPath("/usr/share","gdal",!0,!0),m.FS_createPath("/usr/share","proj",!0,!0),t.prototype={requests:{},open:function(e,t){this.name=t,this.requests[t]=this,m.addRunDependency("fp ".concat(this.name))},send:function(){},onload:function(){var e=this.byteArray.subarray(this.start,this.end);this.finish(e)},finish:function(e){m.FS_createDataFile(this.name,null,e,!0,!0,!0),m.removeRunDependency("fp ".concat(this.name)),this.requests[this.name]=null}};for(var n=r.files,i=0;i<n.length;++i)new t(n[i].start,n[i].end,n[i].audio||0).open("GET",n[i].filename);function o(n){e(n,"Loading data file failed."),e(n.constructor.name===ArrayBuffer.name,"bad input to processPackageData"),n=new Uint8Array(n);for(var i=(t.prototype.byteArray=n,r.files),o=0;o<i.length;++o)t.prototype.requests[i[o].filename].onload();m.removeRunDependency("datafile_/home/bugra/Documents/MiniProject/gdal3.js/build/package/gdal3WebAssembly.data")}m.addRunDependency("datafile_/home/bugra/Documents/MiniProject/gdal3.js/build/package/gdal3WebAssembly.data"),m.preloadResults||(m.preloadResults={}),m.preloadResults["/home/bugra/Documents/MiniProject/gdal3.js/build/package/gdal3WebAssembly.data"]={fromCache:!1},h?(o(h),h=null):u=o}m.ready=new Promise((function(r,n){e=r,t=n})),m.expectedDataFileDownloads||(m.expectedDataFileDownloads=0),m.expectedDataFileDownloads++,m.ENVIRONMENT_IS_PTHREAD||m.$ww||(r={files:[{filename:"/usr/share/gdal/GDALLogoBW.svg",start:0,end:13022},{filename:"/usr/share/gdal/GDALLogoColor.svg",start:13022,end:25327},{filename:"/usr/share/gdal/GDALLogoGS.svg",start:25327,end:37632},{filename:"/usr/share/gdal/LICENSE.TXT",start:37632,end:59473},{filename:"/usr/share/gdal/bag_template.xml",start:59473,end:68493},{filename:"/usr/share/gdal/cubewerx_extra.wkt",start:68493,end:80470},{filename:"/usr/share/gdal/default.rsc",start:80470,end:544102},{filename:"/usr/share/gdal/ecw_cs.wkt",start:544102,end:908134},{filename:"/usr/share/gdal/eedaconf.json",start:908134,end:908545},{filename:"/usr/share/gdal/epsg.wkt",start:908545,end:908572},{filename:"/usr/share/gdal/esri_StatePlane_extra.wkt",start:908572,end:1241118},{filename:"/usr/share/gdal/gdalicon.png",start:1241118,end:1243139},{filename:"/usr/share/gdal/gdalinfo_output.schema.json",start:1243139,end:1251130},{filename:"/usr/share/gdal/gdalmdiminfo_output.schema.json",start:1251130,end:1257673},{filename:"/usr/share/gdal/gdalvrt.xsd",start:1257673,end:1291600},{filename:"/usr/share/gdal/gfs.xsd",start:1291600,end:1308069},{filename:"/usr/share/gdal/gml_registry.xml",start:1308069,end:1314712},{filename:"/usr/share/gdal/gml_registry.xsd",start:1314712,end:1321174},{filename:"/usr/share/gdal/gmlasconf.xml",start:1321174,end:1328606},{filename:"/usr/share/gdal/gmlasconf.xsd",start:1328606,end:1377260},{filename:"/usr/share/gdal/grib2_center.csv",start:1377260,end:1381431},{filename:"/usr/share/gdal/grib2_process.csv",start:1381431,end:1386357},{filename:"/usr/share/gdal/grib2_subcenter.csv",start:1386357,end:1388685},{filename:"/usr/share/gdal/grib2_table_4_2_0_0.csv",start:1388685,end:1399048},{filename:"/usr/share/gdal/grib2_table_4_2_0_1.csv",start:1399048,end:1415553},{filename:"/usr/share/gdal/grib2_table_4_2_0_13.csv",start:1415553,end:1425149},{filename:"/usr/share/gdal/grib2_table_4_2_0_14.csv",start:1425149,end:1434700},{filename:"/usr/share/gdal/grib2_table_4_2_0_15.csv",start:1434700,end:1444546},{filename:"/usr/share/gdal/grib2_table_4_2_0_16.csv",start:1444546,end:1454217},{filename:"/usr/share/gdal/grib2_table_4_2_0_17.csv",start:1454217,end:1455140},{filename:"/usr/share/gdal/grib2_table_4_2_0_18.csv",start:1455140,end:1465364},{filename:"/usr/share/gdal/grib2_table_4_2_0_19.csv",start:1465364,end:1477238},{filename:"/usr/share/gdal/grib2_table_4_2_0_190.csv",start:1477238,end:1486745},{filename:"/usr/share/gdal/grib2_table_4_2_0_191.csv",start:1486745,end:1496365},{filename:"/usr/share/gdal/grib2_table_4_2_0_2.csv",start:1496365,end:1507257},{filename:"/usr/share/gdal/grib2_table_4_2_0_20.csv",start:1507257,end:1519548},{filename:"/usr/share/gdal/grib2_table_4_2_0_21.csv",start:1519548,end:1529810},{filename:"/usr/share/gdal/grib2_table_4_2_0_3.csv",start:1529810,end:1540368},{filename:"/usr/share/gdal/grib2_table_4_2_0_4.csv",start:1540368,end:1550679},{filename:"/usr/share/gdal/grib2_table_4_2_0_5.csv",start:1550679,end:1560505},{filename:"/usr/share/gdal/grib2_table_4_2_0_6.csv",start:1560505,end:1572147},{filename:"/usr/share/gdal/grib2_table_4_2_0_7.csv",start:1572147,end:1582639},{filename:"/usr/share/gdal/grib2_table_4_2_10_0.csv",start:1582639,end:1594461},{filename:"/usr/share/gdal/grib2_table_4_2_10_1.csv",start:1594461,end:1604086},{filename:"/usr/share/gdal/grib2_table_4_2_10_191.csv",start:1604086,end:1613720},{filename:"/usr/share/gdal/grib2_table_4_2_10_2.csv",start:1613720,end:1623832},{filename:"/usr/share/gdal/grib2_table_4_2_10_3.csv",start:1623832,end:1633821},{filename:"/usr/share/gdal/grib2_table_4_2_10_4.csv",start:1633821,end:1644637},{filename:"/usr/share/gdal/grib2_table_4_2_1_0.csv",start:1644637,end:1654779},{filename:"/usr/share/gdal/grib2_table_4_2_1_1.csv",start:1654779,end:1664434},{filename:"/usr/share/gdal/grib2_table_4_2_1_2.csv",start:1664434,end:1674232},{filename:"/usr/share/gdal/grib2_table_4_2_20_0.csv",start:1674232,end:1683875},{filename:"/usr/share/gdal/grib2_table_4_2_20_1.csv",start:1683875,end:1693726},{filename:"/usr/share/gdal/grib2_table_4_2_20_2.csv",start:1693726,end:1703232},{filename:"/usr/share/gdal/grib2_table_4_2_2_0.csv",start:1703232,end:1715898},{filename:"/usr/share/gdal/grib2_table_4_2_2_3.csv",start:1715898,end:1726532},{filename:"/usr/share/gdal/grib2_table_4_2_2_4.csv",start:1726532,end:1737760},{filename:"/usr/share/gdal/grib2_table_4_2_2_5.csv",start:1737760,end:1747273},{filename:"/usr/share/gdal/grib2_table_4_2_2_6.csv",start:1747273,end:1756872},{filename:"/usr/share/gdal/grib2_table_4_2_3_0.csv",start:1756872,end:1767823},{filename:"/usr/share/gdal/grib2_table_4_2_3_1.csv",start:1767823,end:1778486},{filename:"/usr/share/gdal/grib2_table_4_2_3_2.csv",start:1778486,end:1782319},{filename:"/usr/share/gdal/grib2_table_4_2_3_3.csv",start:1782319,end:1783103},{filename:"/usr/share/gdal/grib2_table_4_2_3_4.csv",start:1783103,end:1784154},{filename:"/usr/share/gdal/grib2_table_4_2_3_5.csv",start:1784154,end:1785074},{filename:"/usr/share/gdal/grib2_table_4_2_3_6.csv",start:1785074,end:1785893},{filename:"/usr/share/gdal/grib2_table_4_2_4_0.csv",start:1785893,end:1795446},{filename:"/usr/share/gdal/grib2_table_4_2_4_1.csv",start:1795446,end:1805132},{filename:"/usr/share/gdal/grib2_table_4_2_4_10.csv",start:1805132,end:1814833},{filename:"/usr/share/gdal/grib2_table_4_2_4_2.csv",start:1814833,end:1824493},{filename:"/usr/share/gdal/grib2_table_4_2_4_3.csv",start:1824493,end:1834215},{filename:"/usr/share/gdal/grib2_table_4_2_4_4.csv",start:1834215,end:1843905},{filename:"/usr/share/gdal/grib2_table_4_2_4_5.csv",start:1843905,end:1853400},{filename:"/usr/share/gdal/grib2_table_4_2_4_6.csv",start:1853400,end:1863033},{filename:"/usr/share/gdal/grib2_table_4_2_4_7.csv",start:1863033,end:1872589},{filename:"/usr/share/gdal/grib2_table_4_2_4_8.csv",start:1872589,end:1882275},{filename:"/usr/share/gdal/grib2_table_4_2_4_9.csv",start:1882275,end:1891811},{filename:"/usr/share/gdal/grib2_table_4_2_local_Canada.csv",start:1891811,end:1892144},{filename:"/usr/share/gdal/grib2_table_4_2_local_HPC.csv",start:1892144,end:1892231},{filename:"/usr/share/gdal/grib2_table_4_2_local_MRMS.csv",start:1892231,end:1907818},{filename:"/usr/share/gdal/grib2_table_4_2_local_NCEP.csv",start:1907818,end:1935795},{filename:"/usr/share/gdal/grib2_table_4_2_local_NDFD.csv",start:1935795,end:1938454},{filename:"/usr/share/gdal/grib2_table_4_2_local_index.csv",start:1938454,end:1938705},{filename:"/usr/share/gdal/grib2_table_4_5.csv",start:1938705,end:1948718},{filename:"/usr/share/gdal/grib2_table_versions.csv",start:1948718,end:1948756},{filename:"/usr/share/gdal/gt_datum.csv",start:1948756,end:1964560},{filename:"/usr/share/gdal/gt_ellips.csv",start:1964560,end:1966279},{filename:"/usr/share/gdal/header.dxf",start:1966279,end:1972851},{filename:"/usr/share/gdal/inspire_cp_BasicPropertyUnit.gfs",start:1972851,end:1974591},{filename:"/usr/share/gdal/inspire_cp_CadastralBoundary.gfs",start:1974591,end:1976241},{filename:"/usr/share/gdal/inspire_cp_CadastralParcel.gfs",start:1976241,end:1978691},{filename:"/usr/share/gdal/inspire_cp_CadastralZoning.gfs",start:1978691,end:1983503},{filename:"/usr/share/gdal/jpfgdgml_AdmArea.gfs",start:1983503,end:1985143},{filename:"/usr/share/gdal/jpfgdgml_AdmBdry.gfs",start:1985143,end:1986525},{filename:"/usr/share/gdal/jpfgdgml_AdmPt.gfs",start:1986525,end:1988158},{filename:"/usr/share/gdal/jpfgdgml_BldA.gfs",start:1988158,end:1989659},{filename:"/usr/share/gdal/jpfgdgml_BldL.gfs",start:1989659,end:1991162},{filename:"/usr/share/gdal/jpfgdgml_Cntr.gfs",start:1991162,end:1992663},{filename:"/usr/share/gdal/jpfgdgml_CommBdry.gfs",start:1992663,end:1994047},{filename:"/usr/share/gdal/jpfgdgml_CommPt.gfs",start:1994047,end:1995682},{filename:"/usr/share/gdal/jpfgdgml_Cstline.gfs",start:1995682,end:1997191},{filename:"/usr/share/gdal/jpfgdgml_ElevPt.gfs",start:1997191,end:1998691},{filename:"/usr/share/gdal/jpfgdgml_GCP.gfs",start:1998691,end:2001214},{filename:"/usr/share/gdal/jpfgdgml_LeveeEdge.gfs",start:2001214,end:2002600},{filename:"/usr/share/gdal/jpfgdgml_RailCL.gfs",start:2002600,end:2004107},{filename:"/usr/share/gdal/jpfgdgml_RdASL.gfs",start:2004107,end:2005358},{filename:"/usr/share/gdal/jpfgdgml_RdArea.gfs",start:2005358,end:2006873},{filename:"/usr/share/gdal/jpfgdgml_RdCompt.gfs",start:2006873,end:2008519},{filename:"/usr/share/gdal/jpfgdgml_RdEdg.gfs",start:2008519,end:2010161},{filename:"/usr/share/gdal/jpfgdgml_RdMgtBdry.gfs",start:2010161,end:2011547},{filename:"/usr/share/gdal/jpfgdgml_RdSgmtA.gfs",start:2011547,end:2013191},{filename:"/usr/share/gdal/jpfgdgml_RvrMgtBdry.gfs",start:2013191,end:2014579},{filename:"/usr/share/gdal/jpfgdgml_SBAPt.gfs",start:2014579,end:2015954},{filename:"/usr/share/gdal/jpfgdgml_SBArea.gfs",start:2015954,end:2017461},{filename:"/usr/share/gdal/jpfgdgml_SBBdry.gfs",start:2017461,end:2018714},{filename:"/usr/share/gdal/jpfgdgml_WA.gfs",start:2018714,end:2020211},{filename:"/usr/share/gdal/jpfgdgml_WL.gfs",start:2020211,end:2021710},{filename:"/usr/share/gdal/jpfgdgml_WStrA.gfs",start:2021710,end:2023213},{filename:"/usr/share/gdal/jpfgdgml_WStrL.gfs",start:2023213,end:2024718},{filename:"/usr/share/gdal/netcdf_config.xsd",start:2024718,end:2032209},{filename:"/usr/share/gdal/nitf_spec.xml",start:2032209,end:2219654},{filename:"/usr/share/gdal/nitf_spec.xsd",start:2219654,end:2228162},{filename:"/usr/share/gdal/ogrinfo_output.schema.json",start:2228162,end:2239289},{filename:"/usr/share/gdal/ogrvrt.xsd",start:2239289,end:2265210},{filename:"/usr/share/gdal/osmconf.ini",start:2265210,end:2270610},{filename:"/usr/share/gdal/ozi_datum.csv",start:2270610,end:2279092},{filename:"/usr/share/gdal/ozi_ellips.csv",start:2279092,end:2280441},{filename:"/usr/share/gdal/pci_datum.txt",start:2280441,end:2315535},{filename:"/usr/share/gdal/pci_ellips.txt",start:2315535,end:2319050},{filename:"/usr/share/gdal/pdfcomposition.xsd",start:2319050,end:2353384},{filename:"/usr/share/gdal/pds4_template.xml",start:2353384,end:2356817},{filename:"/usr/share/gdal/plscenesconf.json",start:2356817,end:2398189},{filename:"/usr/share/gdal/ruian_vf_ob_v1.gfs",start:2398189,end:2444924},{filename:"/usr/share/gdal/ruian_vf_st_uvoh_v1.gfs",start:2444924,end:2447520},{filename:"/usr/share/gdal/ruian_vf_st_v1.gfs",start:2447520,end:2493420},{filename:"/usr/share/gdal/ruian_vf_v1.gfs",start:2493420,end:2560672},{filename:"/usr/share/gdal/s57agencies.csv",start:2560672,end:2573976},{filename:"/usr/share/gdal/s57attributes.csv",start:2573976,end:2593977},{filename:"/usr/share/gdal/s57expectedinput.csv",start:2593977,end:2614862},{filename:"/usr/share/gdal/s57objectclasses.csv",start:2614862,end:2668287},{filename:"/usr/share/gdal/seed_2d.dgn",start:2668287,end:2677503},{filename:"/usr/share/gdal/seed_3d.dgn",start:2677503,end:2679551},{filename:"/usr/share/gdal/stateplane.csv",start:2679551,end:2689911},{filename:"/usr/share/gdal/template_tiles.mapml",start:2689911,end:2691858},{filename:"/usr/share/gdal/tms_LINZAntarticaMapTileGrid.json",start:2691858,end:2695973},{filename:"/usr/share/gdal/tms_MapML_APSTILE.json",start:2695973,end:2702246},{filename:"/usr/share/gdal/tms_MapML_CBMTILE.json",start:2702246,end:2710038},{filename:"/usr/share/gdal/tms_NZTM2000.json",start:2710038,end:2715303},{filename:"/usr/share/gdal/trailer.dxf",start:2715303,end:2717578},{filename:"/usr/share/gdal/vdv452.xml",start:2717578,end:2743394},{filename:"/usr/share/gdal/vdv452.xsd",start:2743394,end:2746248},{filename:"/usr/share/gdal/vicar.json",start:2746248,end:2749858},{filename:"/usr/share/proj/CH",start:2749858,end:2750955},{filename:"/usr/share/proj/GL27",start:2750955,end:2751683},{filename:"/usr/share/proj/ITRF2000",start:2751683,end:2753782},{filename:"/usr/share/proj/ITRF2008",start:2753782,end:2759464},{filename:"/usr/share/proj/ITRF2014",start:2759464,end:2762953},{filename:"/usr/share/proj/deformation_model.schema.json",start:2762953,end:2780624},{filename:"/usr/share/proj/nad.lst",start:2780624,end:2787009},{filename:"/usr/share/proj/nad27",start:2787009,end:2806544},{filename:"/usr/share/proj/nad83",start:2806544,end:2823137},{filename:"/usr/share/proj/other.extra",start:2823137,end:2827052},{filename:"/usr/share/proj/proj.db",start:2827052,end:11539244},{filename:"/usr/share/proj/proj.ini",start:11539244,end:11541351},{filename:"/usr/share/proj/projjson.schema.json",start:11541351,end:11579663},{filename:"/usr/share/proj/triangulation.schema.json",start:11579663,end:11588066},{filename:"/usr/share/proj/world",start:11588066,end:11595145}],remote_package_size:11595145},"object"===("undefined"==typeof window?"undefined":i(window))?window.encodeURIComponent(window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/"):void 0===n&&"undefined"!=typeof location&&encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/"),S="gdal3WebAssembly.data","function"!=typeof m.locateFilePackage||m.locateFile||(m.locateFile=m.locateFilePackage,z("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)")),S=m.locateFile?m.locateFile(S,""):S,R=r.remote_package_size,u=null,(h=m.getPreloadedPackage?m.getPreloadedPackage(S,R):null)||(o=S,s=R,a=function(e){u?(u(e),u=null):h=e},l=function(e){console.error("package error:",e)},"object"===(void 0===n?"undefined":i(n))&&"object"===i(n.versions)&&"string"==typeof n.versions.node?p.readFile(o,(function(e,t){e?l(e):a(t.buffer)})):((c=new XMLHttpRequest).open("GET",o,!0),c.responseType="arraybuffer",c.onprogress=function(e){var t=o,r=s;if(e.total&&(r=e.total),e.loaded){c.addedTotal?m.dataFileDownloads[t].loaded=e.loaded:(c.addedTotal=!0,m.dataFileDownloads||(m.dataFileDownloads={}),m.dataFileDownloads[t]={loaded:e.loaded,total:r});var n,i=0,a=0,l=0;for(n in m.dataFileDownloads){var u=m.dataFileDownloads[n];i+=u.total,a+=u.loaded,l++}i=Math.ceil(i*m.expectedDataFileDownloads/l),m.setStatus&&m.setStatus("Downloading data... (".concat(a,"/").concat(i,")"))}else m.dataFileDownloads||m.setStatus&&m.setStatus("Downloading data...")},c.onerror=function(e){throw new Error("NetworkError for: "+o)},c.onload=function(e){if(!(200==c.status||304==c.status||206==c.status||0==c.status&&c.response))throw new Error(c.statusText+" : "+c.responseURL);var t=c.response;a(t)},c.send(null))),m.calledRun?g():(m.preRun||(m.preRun=[]),m.preRun.push(g)));var _,b,w,E,x,S=Object.assign({},m),A="./this.program",T=function(e,t){throw t},P="object"==("undefined"==typeof window?"undefined":i(window)),C="function"==typeof importScripts,O="object"==(void 0===n?"undefined":i(n))&&"object"==i(n.versions)&&"string"==typeof n.versions.node,R="";O?(_=p,b=y,R=C?b.dirname(R)+"/":"//",w=function(e,t){return e=ne(e)?new URL(e):b.normalize(e),_.readFileSync(e,t?void 0:"utf8")},E=function(e){return(e=w(e,!0)).buffer?e:new Uint8Array(e)},x=function(e,t,r){var n=!(3<arguments.length&&void 0!==arguments[3])||arguments[3];e=ne(e)?new URL(e):b.normalize(e),_.readFile(e,n?void 0:"utf8",(function(e,i){e?r(e):t(n?i.buffer:i)}))},!m.thisProgram&&1<n.argv.length&&(A=n.argv[1].replace(/\\/g,"/")),n.argv.slice(2),T=function(e,t){throw n.exitCode=e,t},m.inspect=function(){return"[Emscripten Module object]"}):(P||C)&&(C?R=self.location.href:"undefined"!=typeof document&&document.currentScript&&(R=document.currentScript.src),R=0!==(R=f||R).indexOf("blob:")?R.substr(0,R.replace(/[?#].*/,"").lastIndexOf("/")+1):"",w=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},C&&(E=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),x=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var D,I,k,F,j,L,M,N,$,G=m.print||console.log.bind(console),z=m.printErr||console.error.bind(console),U=(Object.assign(m,S),m.arguments&&m.arguments,m.thisProgram&&(A=m.thisProgram),m.quit&&(T=m.quit),m.wasmBinary&&(D=m.wasmBinary),"object"!=("undefined"==typeof WebAssembly?"undefined":i(WebAssembly))&&J("no native wasm support detected"),!1);function B(e,t){e||J(t)}function V(){var e=I.buffer;m.HEAP8=k=new Int8Array(e),m.HEAP16=j=new Int16Array(e),m.HEAPU8=F=new Uint8Array(e),m.HEAPU16=new Uint16Array(e),m.HEAP32=L=new Int32Array(e),m.HEAPU32=M=new Uint32Array(e),m.HEAPF32=N=new Float32Array(e),m.HEAPF64=$=new Float64Array(e)}var K=[],q=[],W=[],H=0,Y=null;function X(e){var t;H++,null!=(t=m.monitorRunDependencies)&&t.call(m,H)}function Z(e){var t;H--,null!=(t=m.monitorRunDependencies)&&t.call(m,H),0==H&&Y&&(t=Y,Y=null,t())}function J(e){null!=(r=m.onAbort)&&r.call(m,e),z(e="Aborted("+e+")"),U=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw t(r),r}var Q,ee,te,re=function(e){return e.startsWith("data:application/octet-stream;base64,")},ne=function(e){return e.startsWith("file://")};function ie(e){if(e==Q&&D)return new Uint8Array(D);if(E)return E(e);throw"both async and sync fetching of the wasm failed"}function oe(e,t,r){return function(e){if(!D&&(P||C)){if("function"==typeof fetch&&!ne(e))return fetch(e,{credentials:"same-origin"}).then((function(t){if(t.ok)return t.arrayBuffer();throw"failed to load wasm binary file at '"+e+"'"})).catch((function(){return ie(e)}));if(x)return new Promise((function(t,r){x(e,(function(e){return t(new Uint8Array(e))}),r)}))}return Promise.resolve().then((function(){return ie(e)}))}(e).then((function(e){return WebAssembly.instantiate(e,t)})).then((function(e){return e})).then(r,(function(e){z("failed to asynchronously prepare wasm: ".concat(e)),J(e)}))}function se(e){this.name="ExitStatus",this.message="Program terminated with exit(".concat(e,")"),this.status=e}function ae(e){for(;0<e.length;)e.shift()(m)}re(Q="gdal3WebAssembly.wasm")||(Xe=Q,Q=m.locateFile?m.locateFile(Xe,R):R+Xe);var le=m.noExitRuntime||!0;function ce(e,t,r){for(var n=t+r,i=t;e[i]&&!(n<=i);)++i;if(16<i-t&&e.buffer&&fe)return fe.decode(e.subarray(t,i));for(var o="";t<i;){var s,a,l=e[t++];128&l?(a=63&e[t++],192==(224&l)?o+=String.fromCharCode((31&l)<<6|a):(s=63&e[t++],(l=224==(240&l)?(15&l)<<12|a<<6|s:(7&l)<<18|a<<12|s<<6|63&e[t++])<65536?o+=String.fromCharCode(l):(a=l-65536,o+=String.fromCharCode(55296|a>>10,56320|1023&a)))):o+=String.fromCharCode(l)}return o}function ue(e,t){return e?ce(F,e,t):""}function he(e){var t=pe[e];return t||(e>=pe.length&&(pe.length=e+1),pe[e]=t=de.get(e)),t}var de,fe="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,pe=[],me=[],ge=0,ye=0;function ve(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){M[this.ptr+4>>2]=e},this.get_type=function(){return M[this.ptr+4>>2]},this.set_destructor=function(e){M[this.ptr+8>>2]=e},this.get_destructor=function(){return M[this.ptr+8>>2]},this.set_caught=function(e){k[this.ptr+12|0]=e=e?1:0},this.get_caught=function(){return 0!=k[this.ptr+12|0]},this.set_rethrown=function(e){k[this.ptr+13|0]=e=e?1:0},this.get_rethrown=function(){return 0!=k[this.ptr+13|0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){M[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return M[this.ptr+16>>2]},this.get_exception_ptr=function(){var e;return Pt(this.get_type())?M[this.excPtr>>2]:0!==(e=this.get_adjusted_ptr())?e:this.excPtr}}function _e(e){var t=ye;if(!t)return bt(0),0;var r=new ve(t),n=(r.set_adjusted_ptr(t),r.get_type());if(n){for(var i in e){if(0===(i=e[i])||i===n)break;var o=r.ptr+16;if(Tt(i,n,o))return bt(i),t}bt(n)}else bt(0);return t}var be={isAbs:function(e){return"/"===e.charAt(0)},splitPath:function(e){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1)},normalizeArray:function(e,t){for(var r=0,n=e.length-1;0<=n;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:function(e){var t=be.isAbs(e),r="/"===e.substr(-1);return(e=(e=be.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||t?e:".")&&r&&(e+="/"),(t?"/":"")+e},dirname:function(e){var t=(e=be.splitPath(e))[0];return e=e[1],t||e?t+(e=e&&e.substr(0,e.length-1)):"."},basename:function(e){var t;return"/"===e?"/":-1===(t=(e=(e=be.normalize(e)).replace(/\/$/,"")).lastIndexOf("/"))?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments);return be.normalize(e.join("/"))},join2:function(e,t){return be.normalize(e+"/"+t)}},we=function(e){return(we=function(){if("object"==("undefined"==typeof crypto?"undefined":i(crypto))&&"function"==typeof crypto.getRandomValues)return function(e){return crypto.getRandomValues(e)};if(O)try{var e,t=v;return t.randomFillSync?function(e){return t.randomFillSync(e)}:(e=t.randomBytes,function(t){return t.set(e(t.byteLength)),t})}catch(e){}J("initRandomDevice")}())(e)},Ee={resolve:function(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var n=0<=r?arguments[r]:je.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t=be.isAbs(n)}return(t?"/":"")+(e=be.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||"."},relative:function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;0<=r&&""===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=Ee.resolve(e).substr(1),t=Ee.resolve(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),o=Math.min(n.length,i.length),s=o,a=0;a<o;a++)if(n[a]!==i[a]){s=a;break}var l=[];for(a=s;a<n.length;a++)l.push("..");return(l=l.concat(i.slice(s))).join("/")}},xe=[],Se=function(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:55296<=n&&n<=57343?(t+=4,++r):t+=3}return t},Ae=function(e,t,r,n){if(!(0<n))return 0;for(var i=r,o=r+n-1,s=0;s<e.length;++s){var a=e.charCodeAt(s);if((a=55296<=a&&a<=57343?65536+((1023&a)<<10)|1023&e.charCodeAt(++s):a)<=127){if(o<=r)break;t[r++]=a}else{if(a<=2047){if(o<=r+1)break;t[r++]=192|a>>6}else{if(a<=65535){if(o<=r+2)break;t[r++]=224|a>>12}else{if(o<=r+3)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63}t[r++]=128|a>>6&63}t[r++]=128|63&a}}return t[r]=0,r-i};function Te(e,t,r){return r=0<r?r:Se(e)+1,r=new Array(r),e=Ae(e,r,0,r.length),t&&(r.length=e),r}function Pe(e){r=e,t=65536,e=Math.ceil(r/t)*t;var t,r=vt(65536,e);return r?(t=r,r=e,F.fill(0,t,t+r),t):0}function Ce(e,t){var r=0;return e&&(r|=365),t&&(r|=146),r}var Oe={ttys:[],init:function(){},shutdown:function(){},register:function(e,t){Oe.ttys[e]={input:[],output:[],ops:t},je.registerDevice(e,Oe.stream_ops)},stream_ops:{open:function(e){var t=Oe.ttys[e.node.rdev];if(!t)throw new je.ErrnoError(43);e.tty=t,e.seekable=!1},close:function(e){e.tty.ops.fsync(e.tty)},fsync:function(e){e.tty.ops.fsync(e.tty)},read:function(e,t,r,n,i){if(!e.tty||!e.tty.ops.get_char)throw new je.ErrnoError(60);for(var o,s=0,a=0;a<n;a++){try{o=e.tty.ops.get_char(e.tty)}catch(e){throw new je.ErrnoError(29)}if(void 0===o&&0===s)throw new je.ErrnoError(6);if(null==o)break;s++,t[r+a]=o}return s&&(e.node.timestamp=Date.now()),s},write:function(e,t,r,n,i){if(!e.tty||!e.tty.ops.put_char)throw new je.ErrnoError(60);try{for(var o=0;o<n;o++)e.tty.ops.put_char(e.tty,t[r+o])}catch(e){throw new je.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),o}},default_tty_ops:{get_char:function(e){if(!xe.length){var t=null;if(O){var r=Buffer.alloc(256),i=0,o=n.stdin.fd;try{i=_.readSync(o,r)}catch(e){if(!e.toString().includes("EOF"))throw e;i=0}t=0<i?r.slice(0,i).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n");if(!t)return null;xe=Te(t,!0)}return xe.shift()},put_char:function(e,t){null===t||10===t?(G(ce(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync:function(e){e.output&&0<e.output.length&&(G(ce(e.output,0)),e.output=[])},ioctl_tcgets:function(e){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ioctl_tcsets:function(e,t,r){return 0},ioctl_tiocgwinsz:function(e){return[24,80]}},default_tty1_ops:{put_char:function(e,t){null===t||10===t?(z(ce(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync:function(e){e.output&&0<e.output.length&&(z(ce(e.output,0)),e.output=[])}}},Re={ops_table:null,mount:function(e){return Re.createNode(null,"/",16895,0)},createNode:function(e,t,r,n){if(je.isBlkdev(r)||je.isFIFO(r))throw new je.ErrnoError(63);return Re.ops_table||(Re.ops_table={dir:{node:{getattr:Re.node_ops.getattr,setattr:Re.node_ops.setattr,lookup:Re.node_ops.lookup,mknod:Re.node_ops.mknod,rename:Re.node_ops.rename,unlink:Re.node_ops.unlink,rmdir:Re.node_ops.rmdir,readdir:Re.node_ops.readdir,symlink:Re.node_ops.symlink},stream:{llseek:Re.stream_ops.llseek}},file:{node:{getattr:Re.node_ops.getattr,setattr:Re.node_ops.setattr},stream:{llseek:Re.stream_ops.llseek,read:Re.stream_ops.read,write:Re.stream_ops.write,allocate:Re.stream_ops.allocate,mmap:Re.stream_ops.mmap,msync:Re.stream_ops.msync}},link:{node:{getattr:Re.node_ops.getattr,setattr:Re.node_ops.setattr,readlink:Re.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Re.node_ops.getattr,setattr:Re.node_ops.setattr},stream:je.chrdev_stream_ops}}),r=je.createNode(e,t,r,n),je.isDir(r.mode)?(r.node_ops=Re.ops_table.dir.node,r.stream_ops=Re.ops_table.dir.stream,r.contents={}):je.isFile(r.mode)?(r.node_ops=Re.ops_table.file.node,r.stream_ops=Re.ops_table.file.stream,r.usedBytes=0,r.contents=null):je.isLink(r.mode)?(r.node_ops=Re.ops_table.link.node,r.stream_ops=Re.ops_table.link.stream):je.isChrdev(r.mode)&&(r.node_ops=Re.ops_table.chrdev.node,r.stream_ops=Re.ops_table.chrdev.stream),r.timestamp=Date.now(),e&&(e.contents[t]=r,e.timestamp=r.timestamp),r},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage:function(e,t){var r=e.contents?e.contents.length:0;t<=r||(t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256)),r=e.contents,e.contents=new Uint8Array(t),0<e.usedBytes&&e.contents.set(r.subarray(0,e.usedBytes),0))},resizeFileStorage:function(e,t){var r;e.usedBytes!=t&&(0==t?(e.contents=null,e.usedBytes=0):(r=e.contents,e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t))},node_ops:{getattr:function(e){var t={};return t.dev=je.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,je.isDir(e.mode)?t.size=4096:je.isFile(e.mode)?t.size=e.usedBytes:je.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&Re.resizeFileStorage(e,t.size)},lookup:function(e,t){throw je.genericErrors[44]},mknod:function(e,t,r,n){return Re.createNode(e,t,r,n)},rename:function(e,t,r){if(je.isDir(e.mode)){var n;try{n=je.lookupNode(t,r)}catch(e){}if(n)for(var i in n.contents)throw new je.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink:function(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir:function(e,t){for(var r in je.lookupNode(e,t).contents)throw new je.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir:function(e){for(var t=[".",".."],r=0,n=Object.keys(e.contents);r<n.length;r++){var i=n[r];t.push(i)}return t},symlink:function(e,t,r){return(e=Re.createNode(e,t,41471,0)).link=r,e},readlink:function(e){if(je.isLink(e.mode))return e.link;throw new je.ErrnoError(28)}},stream_ops:{read:function(e,t,r,n,i){var o=e.node.contents;if(i>=e.node.usedBytes)return 0;var s=Math.min(e.node.usedBytes-i,n);if(8<s&&o.subarray)t.set(o.subarray(i,i+s),r);else for(var a=0;a<s;a++)t[r+a]=o[i+a];return s},write:function(e,t,r,n,i,o){if(t.buffer===k.buffer&&(o=!1),!n)return 0;var s=e.node;if(s.timestamp=Date.now(),t.subarray&&(!s.contents||s.contents.subarray)){if(o)return s.contents=t.subarray(r,r+n),s.usedBytes=n;if(0===s.usedBytes&&0===i)return s.contents=t.slice(r,r+n),s.usedBytes=n;if(i+n<=s.usedBytes)return s.contents.set(t.subarray(r,r+n),i),n}if(Re.expandFileStorage(s,i+n),s.contents.subarray&&t.subarray)s.contents.set(t.subarray(r,r+n),i);else for(var a=0;a<n;a++)s.contents[i+a]=t[r+a];return s.usedBytes=Math.max(s.usedBytes,i+n),n},llseek:function(e,t,r){if(1===r?t+=e.position:2===r&&je.isFile(e.node.mode)&&(t+=e.node.usedBytes),t<0)throw new je.ErrnoError(28);return t},allocate:function(e,t,r){Re.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap:function(e,t,r,n,i){if(!je.isFile(e.node.mode))throw new je.ErrnoError(43);var o,s;if(e=e.node.contents,2&i||e.buffer!==k.buffer){if((0<r||r+t<e.length)&&(e=e.subarray?e.subarray(r,r+t):Array.prototype.slice.call(e,r,r+t)),s=!0,!(o=Pe(t)))throw new je.ErrnoError(48);k.set(e,o)}else s=!1,o=e.byteOffset;return{ptr:o,allocated:s}},msync:function(e,t,r,n,i){return Re.stream_ops.write(e,t,0,n,r,!1),0}}},De=m.preloadPlugins||[],Ie={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135},ke={isWindows:!1,staticInit:function(){ke.isWindows=!!n.platform.match(/^win/);var e=n.binding("constants");e.fs&&(e=e.fs),ke.flagsForNodeMap={1024:e.O_APPEND,64:e.O_CREAT,128:e.O_EXCL,256:e.O_NOCTTY,0:e.O_RDONLY,2:e.O_RDWR,4096:e.O_SYNC,512:e.O_TRUNC,1:e.O_WRONLY,131072:e.O_NOFOLLOW}},convertNodeCode:function(e){return e=e.code,Ie[e]},mount:function(e){return ke.createNode(null,"/",ke.getMode(e.opts.root),0)},createNode:function(e,t,r,n){if(je.isDir(r)||je.isFile(r)||je.isLink(r))return(e=je.createNode(e,t,r)).node_ops=ke.node_ops,e.stream_ops=ke.stream_ops,e;throw new je.ErrnoError(28)},getMode:function(e){var t;try{t=_.lstatSync(e),ke.isWindows&&(t.mode=t.mode|(292&t.mode)>>2)}catch(e){if(e.code)throw new je.ErrnoError(ke.convertNodeCode(e));throw e}return t.mode},realPath:function(e){for(var t=[];e.parent!==e;)t.push(e.name),e=e.parent;return t.push(e.mount.opts.root),t.reverse(),be.join.apply(null,t)},flagsForNode:function(e){e=-2097153&e&-2049&-32769&-524289&-65537;var t,r=0;for(t in ke.flagsForNodeMap)e&t&&(r|=ke.flagsForNodeMap[t],e^=t);if(e)throw new je.ErrnoError(28);return r},node_ops:{getattr:function(e){var t;e=ke.realPath(e);try{t=_.lstatSync(e)}catch(e){if(e.code)throw new je.ErrnoError(ke.convertNodeCode(e));throw e}return ke.isWindows&&!t.blksize&&(t.blksize=4096),ke.isWindows&&!t.blocks&&(t.blocks=(t.size+t.blksize-1)/t.blksize|0),{dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,size:t.size,atime:t.atime,mtime:t.mtime,ctime:t.ctime,blksize:t.blksize,blocks:t.blocks}},setattr:function(e,t){var r,n=ke.realPath(e);try{void 0!==t.mode&&(_.chmodSync(n,t.mode),e.mode=t.mode),void 0!==t.timestamp&&(r=new Date(t.timestamp),_.utimesSync(n,r,r)),void 0!==t.size&&_.truncateSync(n,t.size)}catch(e){if(e.code)throw new je.ErrnoError(ke.convertNodeCode(e));throw e}},lookup:function(e,t){var r=be.join2(ke.realPath(e),t);return r=ke.getMode(r),ke.createNode(e,t,r)},mknod:function(e,t,r,n){e=ke.createNode(e,t,r,n),t=ke.realPath(e);try{je.isDir(e.mode)?_.mkdirSync(t,e.mode):_.writeFileSync(t,"",{mode:e.mode})}catch(e){if(e.code)throw new je.ErrnoError(ke.convertNodeCode(e));throw e}return e},rename:function(e,t,r){var n=ke.realPath(e);t=be.join2(ke.realPath(t),r);try{_.renameSync(n,t)}catch(e){if(e.code)throw new je.ErrnoError(ke.convertNodeCode(e));throw e}e.name=r},unlink:function(e,t){e=be.join2(ke.realPath(e),t);try{_.unlinkSync(e)}catch(e){if(e.code)throw new je.ErrnoError(ke.convertNodeCode(e));throw e}},rmdir:function(e,t){e=be.join2(ke.realPath(e),t);try{_.rmdirSync(e)}catch(e){if(e.code)throw new je.ErrnoError(ke.convertNodeCode(e));throw e}},readdir:function(e){e=ke.realPath(e);try{return _.readdirSync(e)}catch(e){if(e.code)throw new je.ErrnoError(ke.convertNodeCode(e));throw e}},symlink:function(e,t,r){e=be.join2(ke.realPath(e),t);try{_.symlinkSync(r,e)}catch(e){if(e.code)throw new je.ErrnoError(ke.convertNodeCode(e));throw e}},readlink:function(e){var t=ke.realPath(e);try{return t=_.readlinkSync(t),b.relative(b.resolve(e.mount.opts.root),t)}catch(e){if(!e.code)throw e;if("UNKNOWN"===e.code)throw new je.ErrnoError(28);throw new je.ErrnoError(ke.convertNodeCode(e))}}},stream_ops:{open:function(e){var t=ke.realPath(e.node);try{je.isFile(e.node.mode)&&(e.nfd=_.openSync(t,ke.flagsForNode(e.flags)))}catch(e){if(e.code)throw new je.ErrnoError(ke.convertNodeCode(e));throw e}},close:function(e){try{je.isFile(e.node.mode)&&e.nfd&&_.closeSync(e.nfd)}catch(e){if(e.code)throw new je.ErrnoError(ke.convertNodeCode(e));throw e}},read:function(e,t,r,n,i){if(0===n)return 0;try{return _.readSync(e.nfd,new Int8Array(t.buffer,r,n),{position:i})}catch(e){throw new je.ErrnoError(ke.convertNodeCode(e))}},write:function(e,t,r,n,i){try{return _.writeSync(e.nfd,new Int8Array(t.buffer,r,n),{position:i})}catch(e){throw new je.ErrnoError(ke.convertNodeCode(e))}},llseek:function(e,t,r){if(1===r)t+=e.position;else if(2===r&&je.isFile(e.node.mode))try{t+=_.fstatSync(e.nfd).size}catch(e){throw new je.ErrnoError(ke.convertNodeCode(e))}if(t<0)throw new je.ErrnoError(28);return t},mmap:function(e,t,r,n,i){var o;if(je.isFile(e.node.mode))return o=Pe(t),ke.stream_ops.read(e,k,o,t,r),{ptr:o,allocated:!0};throw new je.ErrnoError(43)},msync:function(e,t,r,n,i){return ke.stream_ops.write(e,t,0,n,r,!1),0}}},Fe={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function(e){B(C),Fe.reader||(Fe.reader=new FileReaderSync);var t=Fe.createNode(null,"/",Fe.DIR_MODE,0),r={};function n(e){for(var n=e.split("/"),i=t,o=0;o<n.length-1;o++){var s,a=n.slice(0,o+1).join("/");r[s=a]||(r[s]=Fe.createNode(i,n[o],Fe.DIR_MODE,0)),i=r[a]}return i}function i(e){return(e=e.split("/"))[e.length-1]}return Array.prototype.forEach.call(e.opts.files||[],(function(e){Fe.createNode(n(e.name),i(e.name),Fe.FILE_MODE,0,e,e.lastModifiedDate)})),(e.opts.blobs||[]).forEach((function(e){Fe.createNode(n(e.name),i(e.name),Fe.FILE_MODE,0,e.data)})),(e.opts.packages||[]).forEach((function(e){e.metadata.files.forEach((function(t){var r=t.filename.substr(1);Fe.createNode(n(r),i(r),Fe.FILE_MODE,0,e.blob.slice(t.start,t.end))}))})),t},createNode:function(e,t,r,n,i,o){var s=je.createNode(e,t,r);return s.mode=r,s.node_ops=Fe.node_ops,s.stream_ops=Fe.stream_ops,s.timestamp=(o||new Date).getTime(),B(Fe.FILE_MODE!==Fe.DIR_MODE),r===Fe.FILE_MODE?(s.size=i.size,s.contents=i):(s.size=4096,s.contents={}),e&&(e.contents[t]=s),s},node_ops:{getattr:function(e){return{dev:1,ino:e.id,mode:e.mode,nlink:1,uid:0,gid:0,rdev:0,size:e.size,atime:new Date(e.timestamp),mtime:new Date(e.timestamp),ctime:new Date(e.timestamp),blksize:4096,blocks:Math.ceil(e.size/4096)}},setattr:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp)},lookup:function(e,t){throw new je.ErrnoError(44)},mknod:function(e,t,r,n){throw new je.ErrnoError(63)},rename:function(e,t,r){throw new je.ErrnoError(63)},unlink:function(e,t){throw new je.ErrnoError(63)},rmdir:function(e,t){throw new je.ErrnoError(63)},readdir:function(e){for(var t=[".",".."],r=0,n=Object.keys(e.contents);r<n.length;r++){var i=n[r];t.push(i)}return t},symlink:function(e,t,r){throw new je.ErrnoError(63)}},stream_ops:{read:function(e,t,r,n,i){return i>=e.node.size?0:(e=e.node.contents.slice(i,i+n),i=Fe.reader.readAsArrayBuffer(e),t.set(new Uint8Array(i),r),e.size)},write:function(e,t,r,n,i){throw new je.ErrnoError(29)},llseek:function(e,t,r){if(1===r?t+=e.position:2===r&&je.isFile(e.node.mode)&&(t+=e.node.size),t<0)throw new je.ErrnoError(28);return t}}},je={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(e=Ee.resolve(e)))return{path:"",node:null};if(8<(t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count)throw new je.ErrnoError(32);for(var r=e.split("/").filter((function(e){return!!e})),n=je.root,i="/",o=0;o<r.length;o++){var s=o===r.length-1;if(s&&t.parent)break;if(n=je.lookupNode(n,r[o]),i=be.join2(i,r[o]),!je.isMountpoint(n)||s&&!t.follow_mount||(n=n.mounted.root),!s||t.follow)for(var a=0;je.isLink(n.mode);){var l=je.readlink(i);if(i=Ee.resolve(be.dirname(i),l),n=je.lookupPath(i,{recurse_count:t.recurse_count+1}).node,40<a++)throw new je.ErrnoError(32)}}return{path:i,node:n}},getPath:function(e){for(var t,r;;){if(je.isRoot(e))return r=e.mount.mountpoint,t?"/"!==r[r.length-1]?"".concat(r,"/").concat(t):r+t:r;t=t?"".concat(e.name,"/").concat(t):e.name,e=e.parent}},hashName:function(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%je.nameTable.length},hashAddNode:function(e){var t=je.hashName(e.parent.id,e.name);e.name_next=je.nameTable[t],je.nameTable[t]=e},hashRemoveNode:function(e){var t=je.hashName(e.parent.id,e.name);if(je.nameTable[t]===e)je.nameTable[t]=e.name_next;else for(var r=je.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode:function(e,t){if(r=je.mayLookup(e))throw new je.ErrnoError(r,e);for(var r=je.hashName(e.id,t),n=je.nameTable[r];n;n=n.name_next){var i=n.name;if(n.parent.id===e.id&&i===t)return n}return je.lookup(e,t)},createNode:function(e,t,r,n){return e=new je.FSNode(e,t,r,n),je.hashAddNode(e),e},destroyNode:function(e){je.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return!!e.mounted},isFile:function(e){return 32768==(61440&e)},isDir:function(e){return 16384==(61440&e)},isLink:function(e){return 40960==(61440&e)},isChrdev:function(e){return 8192==(61440&e)},isBlkdev:function(e){return 24576==(61440&e)},isFIFO:function(e){return 4096==(61440&e)},isSocket:function(e){return!(49152&~e)},flagsToPermissionString:function(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:function(e,t){return je.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2},mayLookup:function(e){return je.nodePermissions(e,"x")||(e.node_ops.lookup?0:2)},mayCreate:function(e,t){try{return je.lookupNode(e,t),20}catch(e){}return je.nodePermissions(e,"wx")},mayDelete:function(e,t,r){var n;try{n=je.lookupNode(e,t)}catch(e){return e.errno}if(t=je.nodePermissions(e,"wx"))return t;if(r){if(!je.isDir(n.mode))return 54;if(je.isRoot(n)||je.getPath(n)===je.cwd())return 10}else if(je.isDir(n.mode))return 31;return 0},mayOpen:function(e,t){return e?je.isLink(e.mode)?32:je.isDir(e.mode)&&("r"!==je.flagsToPermissionString(t)||512&t)?31:je.nodePermissions(e,je.flagsToPermissionString(t)):44},MAX_OPEN_FDS:4096,nextfd:function(){for(var e=0;e<=je.MAX_OPEN_FDS;e++)if(!je.streams[e])return e;throw new je.ErrnoError(33)},getStreamChecked:function(e){if(e=je.getStream(e))return e;throw new je.ErrnoError(8)},getStream:function(e){return je.streams[e]},createStream:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:-1;return je.FSStream||(je.FSStream=function(){this.shared={}},je.FSStream.prototype={},Object.defineProperties(je.FSStream.prototype,{object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return!!(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}},flags:{get:function(){return this.shared.flags},set:function(e){this.shared.flags=e}},position:{get:function(){return this.shared.position},set:function(e){this.shared.position=e}}})),e=Object.assign(new je.FSStream,e),-1==t&&(t=je.nextfd()),e.fd=t,je.streams[t]=e},closeStream:function(e){je.streams[e]=null},chrdev_stream_ops:{open:function(e){var t,r=je.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,null!=(t=(r=e.stream_ops).open)&&t.call(r,e)},llseek:function(){throw new je.ErrnoError(70)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,t){return e<<8|t},registerDevice:function(e,t){je.devices[e]={stream_ops:t}},getDevice:function(e){return je.devices[e]},getMounts:function(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs:function(e,t){"function"==typeof e&&(t=e,e=!1),je.syncFSRequests++,1<je.syncFSRequests&&z("warning: ".concat(je.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var r=je.getMounts(je.root.mount),n=0;function i(e){return je.syncFSRequests--,t(e)}function o(e){if(e)return o.errored?void 0:(o.errored=!0,i(e));++n>=r.length&&i(null)}r.forEach((function(t){if(!t.type.syncfs)return o(null);t.type.syncfs(t,e,o)}))},mount:function(e,t,r){var n,i="/"===r,o=!r;if(i&&je.root)throw new je.ErrnoError(10);if(!i&&!o){if(r=(o=je.lookupPath(r,{follow_mount:!1})).path,n=o.node,je.isMountpoint(n))throw new je.ErrnoError(10);if(!je.isDir(n.mode))throw new je.ErrnoError(54)}return o={type:e,opts:t,mountpoint:r,mounts:[]},((t=e.mount(o)).mount=o).root=t,i?je.root=t:n&&(n.mounted=o,n.mount)&&n.mount.mounts.push(o),t},unmount:function(e){if(e=je.lookupPath(e,{follow_mount:!1}),!je.isMountpoint(e.node))throw new je.ErrnoError(28);var t=(e=e.node).mounted,r=je.getMounts(t);Object.keys(je.nameTable).forEach((function(e){for(var t=je.nameTable[e];t;){var n=t.name_next;r.includes(t.mount)&&je.destroyNode(t),t=n}})),e.mounted=null,t=e.mount.mounts.indexOf(t),e.mount.mounts.splice(t,1)},lookup:function(e,t){return e.node_ops.lookup(e,t)},mknod:function(e,t,r){var n=je.lookupPath(e,{parent:!0}).node;if(!(e=be.basename(e))||"."===e||".."===e)throw new je.ErrnoError(28);var i=je.mayCreate(n,e);if(i)throw new je.ErrnoError(i);if(n.node_ops.mknod)return n.node_ops.mknod(n,e,t,r);throw new je.ErrnoError(63)},create:function(e,t){return je.mknod(e,t=4095&(t=void 0!==t?t:438)|32768,0)},mkdir:function(e,t){return je.mknod(e,t=1023&(t=void 0!==t?t:511)|16384,0)},mkdirTree:function(e,t){for(var r=e.split("/"),n="",i=0;i<r.length;++i)if(r[i]){n+="/"+r[i];try{je.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:function(e,t,r){return void 0===r&&(r=t,t=438),je.mknod(e,t|=8192,r)},symlink:function(e,t){if(!Ee.resolve(e))throw new je.ErrnoError(44);var r=je.lookupPath(t,{parent:!0}).node;if(!r)throw new je.ErrnoError(44);t=be.basename(t);var n=je.mayCreate(r,t);if(n)throw new je.ErrnoError(n);if(r.node_ops.symlink)return r.node_ops.symlink(r,t,e);throw new je.ErrnoError(63)},rename:function(e,t){var r=be.dirname(e),n=be.dirname(t),i=be.basename(e),o=be.basename(t),s=(s=je.lookupPath(e,{parent:!0})).node,a=je.lookupPath(t,{parent:!0}).node;if(!s||!a)throw new je.ErrnoError(44);if(s.mount!==a.mount)throw new je.ErrnoError(75);var l,c=je.lookupNode(s,i);if("."!==(e=Ee.relative(e,n)).charAt(0))throw new je.ErrnoError(28);if("."!==(e=Ee.relative(t,r)).charAt(0))throw new je.ErrnoError(55);try{l=je.lookupNode(a,o)}catch(e){}if(c!==l){if(n=je.isDir(c.mode),t=je.mayDelete(s,i,n))throw new je.ErrnoError(t);if(t=l?je.mayDelete(a,o,n):je.mayCreate(a,o))throw new je.ErrnoError(t);if(!s.node_ops.rename)throw new je.ErrnoError(63);if(je.isMountpoint(c)||l&&je.isMountpoint(l))throw new je.ErrnoError(10);if(a!==s&&(t=je.nodePermissions(s,"w")))throw new je.ErrnoError(t);je.hashRemoveNode(c);try{s.node_ops.rename(c,a,o)}catch(e){throw e}finally{je.hashAddNode(c)}}},rmdir:function(e){var t=je.lookupPath(e,{parent:!0}).node,r=(e=be.basename(e),je.lookupNode(t,e)),n=je.mayDelete(t,e,!0);if(n)throw new je.ErrnoError(n);if(!t.node_ops.rmdir)throw new je.ErrnoError(63);if(je.isMountpoint(r))throw new je.ErrnoError(10);t.node_ops.rmdir(t,e),je.destroyNode(r)},readdir:function(e){if((e=je.lookupPath(e,{follow:!0}).node).node_ops.readdir)return e.node_ops.readdir(e);throw new je.ErrnoError(54)},unlink:function(e){var t=je.lookupPath(e,{parent:!0}).node;if(!t)throw new je.ErrnoError(44);e=be.basename(e);var r=je.lookupNode(t,e),n=je.mayDelete(t,e,!1);if(n)throw new je.ErrnoError(n);if(!t.node_ops.unlink)throw new je.ErrnoError(63);if(je.isMountpoint(r))throw new je.ErrnoError(10);t.node_ops.unlink(t,e),je.destroyNode(r)},readlink:function(e){if(!(e=je.lookupPath(e).node))throw new je.ErrnoError(44);if(e.node_ops.readlink)return Ee.resolve(je.getPath(e.parent),e.node_ops.readlink(e));throw new je.ErrnoError(28)},stat:function(e,t){if(!(e=je.lookupPath(e,{follow:!t}).node))throw new je.ErrnoError(44);if(e.node_ops.getattr)return e.node_ops.getattr(e);throw new je.ErrnoError(63)},lstat:function(e){return je.stat(e,!0)},chmod:function(e,t,r){if(!(r="string"==typeof e?je.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new je.ErrnoError(63);r.node_ops.setattr(r,{mode:4095&t|-4096&r.mode,timestamp:Date.now()})},lchmod:function(e,t){je.chmod(e,t,!0)},fchmod:function(e,t){e=je.getStreamChecked(e),je.chmod(e.node,t)},chown:function(e,t,r,n){if(!(n="string"==typeof e?je.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new je.ErrnoError(63);n.node_ops.setattr(n,{timestamp:Date.now()})},lchown:function(e,t,r){je.chown(e,t,r,!0)},fchown:function(e,t,r){e=je.getStreamChecked(e),je.chown(e.node,t,r)},truncate:function(e,t){if(t<0)throw new je.ErrnoError(28);if(!(e="string"==typeof e?je.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new je.ErrnoError(63);if(je.isDir(e.mode))throw new je.ErrnoError(31);if(!je.isFile(e.mode))throw new je.ErrnoError(28);var r=je.nodePermissions(e,"w");if(r)throw new je.ErrnoError(r);e.node_ops.setattr(e,{size:t,timestamp:Date.now()})},ftruncate:function(e,t){if(!(2097155&(e=je.getStreamChecked(e)).flags))throw new je.ErrnoError(28);je.truncate(e.node,t)},utime:function(e,t,r){(e=je.lookupPath(e,{follow:!0}).node).node_ops.setattr(e,{timestamp:Math.max(t,r)})},open:function(e,t,r){if(""===e)throw new je.ErrnoError(44);if(r=void 0===r?438:r,r=64&(t="string"==typeof t?function(e){var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===t)throw new Error("Unknown file open mode: ".concat(e));return t}(t):t)?4095&r|32768:0,"object"==i(e))n=e;else{e=be.normalize(e);try{var n=je.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var o=!1;if(64&t)if(n){if(128&t)throw new je.ErrnoError(20)}else n=je.mknod(e,r,0),o=!0;if(!n)throw new je.ErrnoError(44);if(je.isChrdev(n.mode)&&(t&=-513),65536&t&&!je.isDir(n.mode))throw new je.ErrnoError(54);if(!o&&(r=je.mayOpen(n,t)))throw new je.ErrnoError(r);return 512&t&&!o&&je.truncate(n,0),t&=-131713,(r=je.createStream({node:n,path:je.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1})).stream_ops.open&&r.stream_ops.open(r),!m.logReadFiles||1&t||(je.readFiles||(je.readFiles={}),e in je.readFiles)||(je.readFiles[e]=1),r},close:function(e){if(je.isClosed(e))throw new je.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{je.closeStream(e.fd)}e.fd=null},isClosed:function(e){return null===e.fd},llseek:function(e,t,r){if(je.isClosed(e))throw new je.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new je.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new je.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read:function(e,t,r,n,i){if(n<0||i<0)throw new je.ErrnoError(28);if(je.isClosed(e))throw new je.ErrnoError(8);if(1==(2097155&e.flags))throw new je.ErrnoError(8);if(je.isDir(e.node.mode))throw new je.ErrnoError(31);if(!e.stream_ops.read)throw new je.ErrnoError(28);var o=void 0!==i;if(o){if(!e.seekable)throw new je.ErrnoError(70)}else i=e.position;return t=e.stream_ops.read(e,t,r,n,i),o||(e.position+=t),t},write:function(e,t,r,n,i,o){if(n<0||i<0)throw new je.ErrnoError(28);if(je.isClosed(e))throw new je.ErrnoError(8);if(!(2097155&e.flags))throw new je.ErrnoError(8);if(je.isDir(e.node.mode))throw new je.ErrnoError(31);if(!e.stream_ops.write)throw new je.ErrnoError(28);e.seekable&&1024&e.flags&&je.llseek(e,0,2);var s=void 0!==i;if(s){if(!e.seekable)throw new je.ErrnoError(70)}else i=e.position;return t=e.stream_ops.write(e,t,r,n,i,o),s||(e.position+=t),t},allocate:function(e,t,r){if(je.isClosed(e))throw new je.ErrnoError(8);if(t<0||r<=0)throw new je.ErrnoError(28);if(!(2097155&e.flags))throw new je.ErrnoError(8);if(!je.isFile(e.node.mode)&&!je.isDir(e.node.mode))throw new je.ErrnoError(43);if(!e.stream_ops.allocate)throw new je.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap:function(e,t,r,n,i){if(2&n&&!(2&i)&&2!=(2097155&e.flags))throw new je.ErrnoError(2);if(1==(2097155&e.flags))throw new je.ErrnoError(2);if(e.stream_ops.mmap)return e.stream_ops.mmap(e,t,r,n,i);throw new je.ErrnoError(43)},msync:function(e,t,r,n,i){return e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,i):0},munmap:function(e){return 0},ioctl:function(e,t,r){if(e.stream_ops.ioctl)return e.stream_ops.ioctl(e,t,r);throw new je.ErrnoError(59)},readFile:function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error('Invalid encoding type "'.concat(r.encoding,'"'));var n=je.open(e,r.flags),i=(e=je.stat(e).size,new Uint8Array(e));return je.read(n,i,0,e,0),"utf8"===r.encoding?t=ce(i,0):"binary"===r.encoding&&(t=i),je.close(n),t},writeFile:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(r.flags=r.flags||577,e=je.open(e,r.flags,r.mode),"string"==typeof t){var n=new Uint8Array(Se(t)+1),i=Ae(t,n,0,n.length);je.write(e,n,0,i,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");je.write(e,t,0,t.byteLength,void 0,r.canOwn)}je.close(e)},cwd:function(){return je.currentPath},chdir:function(e){if(null===(e=je.lookupPath(e,{follow:!0})).node)throw new je.ErrnoError(44);if(!je.isDir(e.node.mode))throw new je.ErrnoError(54);var t=je.nodePermissions(e.node,"x");if(t)throw new je.ErrnoError(t);je.currentPath=e.path},createDefaultDirectories:function(){je.mkdir("/tmp"),je.mkdir("/home"),je.mkdir("/home/web_user")},createDefaultDevices:function(){function e(){return 0===r&&(r=we(t).byteLength),t[--r]}je.mkdir("/dev"),je.registerDevice(je.makedev(1,3),{read:function(){return 0},write:function(e,t,r,n,i){return n}}),je.mkdev("/dev/null",je.makedev(1,3)),Oe.register(je.makedev(5,0),Oe.default_tty_ops),Oe.register(je.makedev(6,0),Oe.default_tty1_ops),je.mkdev("/dev/tty",je.makedev(5,0)),je.mkdev("/dev/tty1",je.makedev(6,0));var t=new Uint8Array(1024),r=0;je.createDevice("/dev","random",e),je.createDevice("/dev","urandom",e),je.mkdir("/dev/shm"),je.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){je.mkdir("/proc");var e=je.mkdir("/proc/self");je.mkdir("/proc/self/fd"),je.mount({mount:function(){var t=je.createNode(e,"fd",16895,73);return t.node_ops={lookup:function(e,t){var r=je.getStreamChecked(+t);return(t={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return r.path}}}).parent=t}},t}},{},"/proc/self/fd")},createStandardStreams:function(){m.stdin?je.createDevice("/dev","stdin",m.stdin):je.symlink("/dev/tty","/dev/stdin"),m.stdout?je.createDevice("/dev","stdout",null,m.stdout):je.symlink("/dev/tty","/dev/stdout"),m.stderr?je.createDevice("/dev","stderr",null,m.stderr):je.symlink("/dev/tty1","/dev/stderr"),je.open("/dev/stdin",0),je.open("/dev/stdout",1),je.open("/dev/stderr",1)},ensureErrnoError:function(){je.ErrnoError||(je.ErrnoError=function(e,t){this.name="ErrnoError",this.node=t,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},je.ErrnoError.prototype=new Error,je.ErrnoError.prototype.constructor=je.ErrnoError,[44].forEach((function(e){je.genericErrors[e]=new je.ErrnoError(e),je.genericErrors[e].stack="<generic error, no stack>"})))},staticInit:function(){je.ensureErrnoError(),je.nameTable=new Array(4096),je.mount(Re,{},"/"),je.createDefaultDirectories(),je.createDefaultDevices(),je.createSpecialDirectories(),je.filesystems={MEMFS:Re,NODEFS:ke,WORKERFS:Fe}},init:function(e,t,r){je.init.initialized=!0,je.ensureErrnoError(),m.stdin=e||m.stdin,m.stdout=t||m.stdout,m.stderr=r||m.stderr,je.createStandardStreams()},quit:function(){je.init.initialized=!1;for(var e=0;e<je.streams.length;e++){var t=je.streams[e];t&&je.close(t)}},findObject:function(e,t){return(e=je.analyzePath(e,t)).exists?e.object:null},analyzePath:function(e,t){try{e=(n=je.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=je.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=be.basename(e),n=je.lookupPath(e,{follow:!t}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(e){r.error=e.errno}return r},createPath:function(e,t,r,n){e="string"==typeof e?e:je.getPath(e);for(var i=t.split("/").reverse();i.length;){var o=i.pop();if(o){var s=be.join2(e,o);try{je.mkdir(s)}catch(e){}e=s}}return s},createFile:function(e,t,r,n,i){return e=be.join2("string"==typeof e?e:je.getPath(e),t),t=Ce(n,i),je.create(e,t)},createDataFile:function(e,t,r,n,i,o){var s=t;if(e&&(e="string"==typeof e?e:je.getPath(e),s=t?be.join2(e,t):e),t=Ce(n,i),e=je.create(s,t),r){if("string"==typeof r){for(var a=new Array(r.length),l=0,c=r.length;l<c;++l)a[l]=r.charCodeAt(l);r=a}je.chmod(e,146|t),n=je.open(e,577),je.write(n,r,0,r.length,0,o),je.close(n),je.chmod(e,t)}},createDevice:function(e,t,r,n){e=be.join2("string"==typeof e?e:je.getPath(e),t),t=Ce(!!r,!!n);var i=(je.createDevice.major||(je.createDevice.major=64),je.makedev(je.createDevice.major++,0));return je.registerDevice(i,{open:function(e){e.seekable=!1},close:function(e){var t;null!=n&&null!=(t=n.buffer)&&t.length&&n(10)},read:function(e,t,n,i,o){for(var s,a=0,l=0;l<i;l++){try{s=r()}catch(e){throw new je.ErrnoError(29)}if(void 0===s&&0===a)throw new je.ErrnoError(6);if(null==s)break;a++,t[n+l]=s}return a&&(e.node.timestamp=Date.now()),a},write:function(e,t,r,i,o){for(var s=0;s<i;s++)try{n(t[r+s])}catch(e){throw new je.ErrnoError(29)}return i&&(e.node.timestamp=Date.now()),s}}),je.mkdev(e,t,i)},forceLoadFile:function(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!w)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=Te(w(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new je.ErrnoError(29)}},createLazyFile:function(e,t,r,n,i){function o(){this.lengthKnown=!1,this.chunks=[]}if(o.prototype.get=function(e){var t;if(!(e>this.length-1||e<0))return t=e%this.chunkSize,e=e/this.chunkSize|0,this.getter(e)[t]},o.prototype.setDataGetter=function(e){this.getter=e},o.prototype.cacheLength=function(){if((i=new XMLHttpRequest).open("HEAD",r,!1),i.send(null),!(200<=i.status&&i.status<300||304===i.status))throw new Error("Couldn't load "+r+". Status: "+i.status);var e,t=Number(i.getResponseHeader("Content-length")),n=(e=i.getResponseHeader("Accept-Ranges"))&&"bytes"===e,i=(e=i.getResponseHeader("Content-Encoding"))&&"gzip"===e,o=1048576,s=(n||(o=t),this);s.setDataGetter((function(e){var n=e*o,i=(e+1)*o-1;if(i=Math.min(i,t-1),void 0===s.chunks[e]&&(s.chunks[e]=function(e,n){if(n<e)throw new Error("invalid range ("+e+", "+n+") or no bytes requested!");if(t-1<n)throw new Error("only "+t+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",r,!1),t!==o&&i.setRequestHeader("Range","bytes="+e+"-"+n),i.responseType="arraybuffer",i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),200<=i.status&&i.status<300||304===i.status)return void 0!==i.response?new Uint8Array(i.response||[]):Te(i.responseText||"",!0);throw new Error("Couldn't load "+r+". Status: "+i.status)}(n,i)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!i&&t||(o=t=1,t=this.getter(0).length,o=t,G("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=t,this._chunkSize=o,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!C)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s=new o;Object.defineProperties(s,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}}),s={isDevice:!1,contents:s}}else s={isDevice:!1,url:r};var a=je.createFile(e,t,s,n,i),l=(s.contents?a.contents=s.contents:s.url&&(a.contents=null,a.url=s.url),Object.defineProperties(a,{usedBytes:{get:function(){return this.contents.length}}}),{});function c(e,t,r,n,i){var o=e.node.contents;if(i>=o.length)return 0;var s=Math.min(o.length-i,n);if(o.slice)for(var a=0;a<s;a++)t[r+a]=o[i+a];else for(a=0;a<s;a++)t[r+a]=o.get(i+a);return s}return Object.keys(a.stream_ops).forEach((function(e){var t=a.stream_ops[e];l[e]=function(){return je.forceLoadFile(a),t.apply(null,arguments)}})),l.read=function(e,t,r,n,i){return je.forceLoadFile(a),c(e,t,r,n,i)},l.mmap=function(e,t,r,n,i){je.forceLoadFile(a);var o=Pe(t);if(o)return c(e,k,o,t,r),{ptr:o,allocated:!0};throw new je.ErrnoError(48)},a.stream_ops=l,a}},Le={DEFAULT_POLLMASK:5,calculateAt:function(e,t,r){if(be.isAbs(t))return t;if(e=-100===e?je.cwd():Le.getStreamFromFD(e).path,0!=t.length)return be.join2(e,t);if(r)return e;throw new je.ErrnoError(44)},doStat:function(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&be.normalize(t)!==be.normalize(je.getPath(e.node)))return-54;throw e}L[r>>2]=n.dev,L[r+4>>2]=n.mode,M[r+8>>2]=n.nlink,L[r+12>>2]=n.uid,L[r+16>>2]=n.gid,L[r+20>>2]=n.rdev,te=[n.size>>>0,(ee=n.size,1<=+Math.abs(ee)?0<ee?+Math.floor(ee/4294967296)>>>0:~~+Math.ceil((ee-(~~ee>>>0))/4294967296)>>>0:0)],L[r+24>>2]=te[0],L[r+28>>2]=te[1],L[r+32>>2]=4096,L[r+36>>2]=n.blocks,e=n.atime.getTime(),t=n.mtime.getTime();var i=n.ctime.getTime();return te=[Math.floor(e/1e3)>>>0,(ee=Math.floor(e/1e3),1<=+Math.abs(ee)?0<ee?+Math.floor(ee/4294967296)>>>0:~~+Math.ceil((ee-(~~ee>>>0))/4294967296)>>>0:0)],L[r+40>>2]=te[0],L[r+44>>2]=te[1],M[r+48>>2]=e%1e3*1e3,te=[Math.floor(t/1e3)>>>0,(ee=Math.floor(t/1e3),1<=+Math.abs(ee)?0<ee?+Math.floor(ee/4294967296)>>>0:~~+Math.ceil((ee-(~~ee>>>0))/4294967296)>>>0:0)],L[r+56>>2]=te[0],L[r+60>>2]=te[1],M[r+64>>2]=t%1e3*1e3,te=[Math.floor(i/1e3)>>>0,(ee=Math.floor(i/1e3),1<=+Math.abs(ee)?0<ee?+Math.floor(ee/4294967296)>>>0:~~+Math.ceil((ee-(~~ee>>>0))/4294967296)>>>0:0)],L[r+72>>2]=te[0],L[r+76>>2]=te[1],M[r+80>>2]=i%1e3*1e3,te=[n.ino>>>0,(ee=n.ino,1<=+Math.abs(ee)?0<ee?+Math.floor(ee/4294967296)>>>0:~~+Math.ceil((ee-(~~ee>>>0))/4294967296)>>>0:0)],L[r+88>>2]=te[0],L[r+92>>2]=te[1],0},doMsync:function(e,t,r,n,i){if(!je.isFile(t.node.mode))throw new je.ErrnoError(43);if(2&n)return 0;e=F.slice(e,e+r),je.msync(t,e,i,r,n)},varargs:void 0,get:function(){var e=L[+Le.varargs>>2];return Le.varargs+=4,e},getp:function(){return Le.get()},getStr:function(e){return ue(e)},getStreamFromFD:function(e){return je.getStreamChecked(e)}};function Me(e,t){return t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN}function Ne(e){L[gt()>>2]=e}var $e=function(e,t,r){return Ae(e,F,t,r)},Ge={BUCKET_BUFFER_SIZE:8192,mount:function(e){return je.createNode(null,"/",16895,0)},createPipe:function(){var e=((i={buckets:[],refcnt:2}).buckets.push({buffer:new Uint8Array(Ge.BUCKET_BUFFER_SIZE),offset:0,roffset:0}),Ge.nextname()),t=Ge.nextname(),r=je.createNode(Ge.root,e,4096,0),n=je.createNode(Ge.root,t,4096,0),i=(r.pipe=i,n.pipe=i,je.createStream({path:e,node:r,flags:0,seekable:!1,stream_ops:Ge.stream_ops}));return r.stream=i,e=je.createStream({path:t,node:n,flags:1,seekable:!1,stream_ops:Ge.stream_ops}),n.stream=e,{readable_fd:i.fd,writable_fd:e.fd}},stream_ops:{poll:function(e){var t=e.node.pipe;if(1==(2097155&e.flags))return 260;if(0<t.buckets.length)for(var r=0;r<t.buckets.length;r++){var n=t.buckets[r];if(0<n.offset-n.roffset)return 65}return 0},ioctl:function(e,t,r){return 28},fsync:function(e){return 28},read:function(e,t,r,n,i){for(var o=e.node.pipe,s=0,a=0;a<o.buckets.length;a++){var l=o.buckets[a];s+=l.offset-l.roffset}var c=t.subarray(r,r+n);if(n<=0)return 0;if(0==s)throw new je.ErrnoError(6);var u=Math.min(s,n),h=(e=u,0);for(a=0;a<o.buckets.length;a++){var d=o.buckets[a],f=d.offset-d.roffset;if(u<=f){var p=d.buffer.subarray(d.roffset,d.offset);u<f?(p=p.subarray(0,u),d.roffset+=u):h++,c.set(p);break}p=d.buffer.subarray(d.roffset,d.offset),c.set(p),c=c.subarray(p.byteLength),u-=p.byteLength,h++}return h&&h==o.buckets.length&&(o.buckets[--h].offset=0,o.buckets[h].roffset=0),o.buckets.splice(0,h),e},write:function(e,t,r,n,i){var o=e.node.pipe,s=t.subarray(r,r+n);if((e=s.byteLength)<=0)return 0;if(t=null,0==o.buckets.length?(t={buffer:new Uint8Array(Ge.BUCKET_BUFFER_SIZE),offset:0,roffset:0},o.buckets.push(t)):t=o.buckets[o.buckets.length-1],B(t.offset<=Ge.BUCKET_BUFFER_SIZE),e<=(r=Ge.BUCKET_BUFFER_SIZE-t.offset))t.buffer.set(s,t.offset),t.offset+=e;else{0<r&&(t.buffer.set(s.subarray(0,r),t.offset),t.offset+=r,s=s.subarray(r,s.byteLength));for(var a=s.byteLength/Ge.BUCKET_BUFFER_SIZE|0,l=(n=s.byteLength%Ge.BUCKET_BUFFER_SIZE,0);l<a;l++){var c={buffer:new Uint8Array(Ge.BUCKET_BUFFER_SIZE),offset:Ge.BUCKET_BUFFER_SIZE,roffset:0};o.buckets.push(c),c.buffer.set(s.subarray(0,Ge.BUCKET_BUFFER_SIZE)),s=s.subarray(Ge.BUCKET_BUFFER_SIZE,s.byteLength)}0<n&&(c={buffer:new Uint8Array(Ge.BUCKET_BUFFER_SIZE),offset:s.byteLength,roffset:0},o.buckets.push(c),c.buffer.set(s))}return e},close:function(e){(e=e.node.pipe).refcnt--,0===e.refcnt&&(e.buckets=null)}},nextname:function(){return Ge.nextname.current||(Ge.nextname.current=0),"pipe["+Ge.nextname.current+++"]"}};function ze(e){return M[e>>2]+4294967296*L[e+4>>2]}function Ue(e){return(Be(e.getFullYear())?Ve:Ke)[e.getMonth()]+e.getDate()-1}var Be=function(e){return e%4==0&&(e%100!=0||e%400==0)},Ve=[0,31,60,91,121,152,182,213,244,274,305,335],Ke=[0,31,59,90,120,151,181,212,243,273,304,334];function qe(e){var t=Se(e)+1,r=yt(t);return r&&$e(e,r,t),r}function We(){return 2147483648}function He(){if(!He.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==("undefined"==typeof navigator?"undefined":i(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Je()};for(t in Ze)void 0===Ze[t]?delete e[t]:e[t]=Ze[t];var t,r=[];for(t in e)r.push("".concat(t,"=").concat(e[t]));He.strings=r}return He.strings}function Ye(e){var t;et()||(null!=(t=m.onExit)&&t.call(m,e),U=!0),T(e,new se(e))}var Xe=We,Ze={},Je=function(){return A||"./this.program"},Qe=0,et=function(){return le||0<Qe};function tt(e,t,r,n){for(var i=0,o=0;o<r;o++){var s=M[t>>2],a=M[t+4>>2];if(t+=8,(s=je.read(e,k,s,a,n))<0)return-1;if(i+=s,s<a)break;void 0!==n&&(n+=s)}return i}function rt(e,t){k.set(e,t)}function nt(e,t,r,n){var i=M[n+40>>2],o={tm_sec:L[n>>2],tm_min:L[n+4>>2],tm_hour:L[n+8>>2],tm_mday:L[n+12>>2],tm_mon:L[n+16>>2],tm_year:L[n+20>>2],tm_wday:L[n+24>>2],tm_yday:L[n+28>>2],tm_isdst:L[n+32>>2],tm_gmtoff:L[n+36>>2],tm_zone:i?ue(i):""},s=ue(r),a={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(m in a)s=s.replace(new RegExp(m,"g"),a[m]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function u(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length<t;)n=r[0]+n;return n}function h(e,t){return u(e,t,"0")}function d(e,t){function r(e){return e<0?-1:0<e?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))?r(e.getDate()-t.getDate()):n}function f(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function p(e){e=function(e,t){for(var r=new Date(e.getTime());0<t;){var n=Be(r.getFullYear()),i=r.getMonth();if(!(t>(n=(n?ut:ht)[i])-r.getDate()))return r.setDate(r.getDate()+t),r;t-=n-r.getDate()+1,r.setDate(1),i<11?r.setMonth(i+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r}(new Date(e.tm_year+1900,0,1),e.tm_yday);var t=new Date(e.getFullYear(),0,4),r=new Date(e.getFullYear()+1,0,4);return t=f(t),r=f(r),d(t,e)<=0?d(r,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var m,g={"%a":function(e){return l[e.tm_wday].substring(0,3)},"%A":function(e){return l[e.tm_wday]},"%b":function(e){return c[e.tm_mon].substring(0,3)},"%B":function(e){return c[e.tm_mon]},"%C":function(e){return h((e.tm_year+1900)/100|0,2)},"%d":function(e){return h(e.tm_mday,2)},"%e":function(e){return u(e.tm_mday,2," ")},"%g":function(e){return p(e).toString().substring(2)},"%G":p,"%H":function(e){return h(e.tm_hour,2)},"%I":function(e){return 0==(e=e.tm_hour)?e=12:12<e&&(e-=12),h(e,2)},"%j":function(e){return h(e.tm_mday+function(e,t){for(var r=0,n=0;n<=t;r+=e[n++]);return r}(Be(e.tm_year+1900)?ut:ht,e.tm_mon-1),3)},"%m":function(e){return h(e.tm_mon+1,2)},"%M":function(e){return h(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return 0<=e.tm_hour&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return h(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){return e=e.tm_yday+7-e.tm_wday,h(Math.floor(e/7),2)},"%V":function(e){var t,r=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);return(e.tm_wday+371-e.tm_yday-2)%7<=2&&r++,r?53!=r||4==(t=(e.tm_wday+371-e.tm_yday)%7)||3==t&&Be(e.tm_year)||(r=1):(r=52,(4==(t=(e.tm_wday+7-e.tm_yday-1)%7)||5==t&&Be(e.tm_year%400-1))&&r++),h(r,2)},"%w":function(e){return e.tm_wday},"%W":function(e){return e=e.tm_yday+7-(e.tm_wday+6)%7,h(Math.floor(e/7),2)},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(e){var t=0<=(e=e.tm_gmtoff);return e=Math.abs(e)/60,(t?"+":"-")+String("0000"+(e/60*100+e%60)).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(m in s=s.replace(/%%/g,"\0\0"),g)s.includes(m)&&(s=s.replace(new RegExp(m,"g"),g[m](o)));return(n=Te(s=s.replace(/\0\0/g,"%"),!1)).length>t?0:(rt(n,e),n.length-1)}function it(e){return m["_"+e]}function ot(e,t,r,n,i){var o={string:function(e){var t,r,n=0;return null!=e&&0!==e&&(t=Se(e)+1,r=xt(t),$e(e,r,t),n=r),n},array:function(e){var t=xt(e.length);return rt(e,t),t}},s=(e=it(e),[]),a=0;if(n)for(var l=0;l<n.length;l++){var c=o[r[l]];c?(0===a&&(a=wt()),s[l]=c(n[l])):s[l]=n[l]}return e=e=e.apply(null,s),0!==a&&Et(a),"string"===t?ue(e):"boolean"===t?Boolean(e):e}function st(e,t){de.set(e,t),pe[e]=de.get(e)}function at(e,t,r,n){this.parent=e=e||this,this.mount=e.mount,this.mounted=null,this.id=je.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n}var lt,ct,ut=[31,29,31,30,31,30,31,31,30,31,30,31],ht=[31,28,31,30,31,30,31,31,30,31,30,31],dt=function(e,t){e<128?t.push(e):t.push(e%128|128,e>>7)},ft=[],pt=(Object.defineProperties(at.prototype,{read:{get:function(){return!(365&~this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return!(146&~this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return je.isDir(this.mode)}},isDevice:{get:function(){return je.isChrdev(this.mode)}}}),je.FSNode=at,je.createPreloadedFile=function(e,t,r,n,i,o,s,a,l,c){var u,h,d,f,p=t?Ee.resolve(be.join2(e,t)):e;function m(r){function u(r){null!=c&&c(),a||je.createDataFile(e,t,r,n,i,l),null!=o&&o(),Z()}var h,d,f,m,g;h=r,d=p,f=u,m=function(){null!=s&&s(),Z()},"undefined"!=typeof Browser&&Browser.init(),g=!1,De.forEach((function(e){g||e.canHandle(d)&&(e.handle(h,d,f,m),g=!0)})),g||u(r)}X(),"string"==typeof r?(h=function(e){m(e)},d=s,f="al ".concat(u=r),x(u,(function(e){B(e,'Loading data file "'.concat(u,'" failed (no arrayBuffer).')),h(new Uint8Array(e)),f&&Z()}),(function(e){if(!d)throw'Loading data file "'.concat(u,'" failed.');d()})),f&&X()):m(r)},je.staticInit(),m.FS_createPath=je.createPath,m.FS_createDataFile=je.createDataFile,m.FS_createPreloadedFile=je.createPreloadedFile,m.FS_unlink=je.unlink,m.FS_createLazyFile=je.createLazyFile,m.FS_createDevice=je.createDevice,O&&ke.staticInit(),{y:function(e,t,r,n){J("Assertion failed: ".concat(ue(e),", at: ")+[t?ue(t):"unknown filename",r,n?ue(n):"unknown function"])},Ke:function(e,t){return he(e)(t)},p:function(e){return(e=new ve(e)).get_caught()||(e.set_caught(!0),ge--),e.set_rethrown(!1),me.push(e),St(e.excPtr),e.get_exception_ptr()},v:function(){_t(0,0);var e=me.pop();At(e.excPtr),ye=0},a:function(){return _e([])},i:function(e){return _e([e])},x:function(e,t){return _e([e,t])},Ab:function(){var e=me.pop(),t=(e||J("no exception to throw"),e.excPtr);throw e.get_rethrown()||(me.push(e),e.set_rethrown(!0),e.set_caught(!1),ge++),ye=t},B:function(e,t,r){throw new ve(e).init(t,r),ge++,ye=e},xc:function(){return ge},e:function(e){throw ye=ye||e},ic:function(e,t){try{return e=Le.getStr(e),je.chmod(e,t),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},af:function(e,t,r){try{var n,i=Le.getStreamFromFD(e);return i.fd===t?-28:((n=je.getStream(t))&&je.close(n),je.createStream(i,t).fd)}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},qc:function(e,t,r,n){try{var i,o;return t=Le.getStr(t),t=Le.calculateAt(e,t),-8&r?-28:(i=je.lookupPath(t,{follow:!0}).node)?(o="",4&r&&(o+="r"),2&r&&(o+="w"),1&r&&(o+="x"),o&&je.nodePermissions(i,o)?-2:0):-44}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},Rd:function(e,t,r,n,i,o){var s;r=Me(r,n),n=Me(i,o);try{return isNaN(r)?61:(s=Le.getStreamFromFD(e),je.allocate(s,r,n),0)}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},jc:function(e,t){try{return je.fchmod(e,t),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},hc:function(e,t,r){try{return je.fchown(e,t,r),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},ua:function(e,t,r){Le.varargs=r;try{var n=Le.getStreamFromFD(e);switch(t){case 0:if((i=Le.get())<0)return-28;for(;je.streams[i];)i++;return je.createStream(n,i).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var i=Le.get();return n.flags|=i,0;case 5:return i=Le.getp(),j[i+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return Ne(28),-1}}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},lc:function(e){try{return Le.getStreamFromFD(e),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},je:function(e,t){try{var r=Le.getStreamFromFD(e);return Le.doStat(je.stat,r.path,t)}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},be:function(e,t,r){t=Me(t,r);try{return isNaN(t)?61:(je.ftruncate(e,t),0)}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},yc:function(e,t){try{var r,n;return 0===t?-28:(r=je.cwd(),t<(n=Se(r)+1)?-68:($e(r,e,t),n))}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},sc:function(e,t,r){try{for(var n=Le.getStreamFromFD(e),i=(n.getdents||(n.getdents=je.readdir(n.path)),0),o=je.llseek(n,0,1),s=Math.floor(o/280);s<n.getdents.length&&i+280<=r;){var a,l,c,u=n.getdents[s];l="."===u?(a=n.node.id,4):".."===u?(a=je.lookupPath(n.path,{parent:!0}).node.id,4):(a=(c=je.lookupNode(n.node,u)).id,je.isChrdev(c.mode)?2:je.isDir(c.mode)?4:je.isLink(c.mode)?10:8),te=[a>>>0,(ee=a,1<=+Math.abs(ee)?0<ee?+Math.floor(ee/4294967296)>>>0:~~+Math.ceil((ee-(~~ee>>>0))/4294967296)>>>0:0)],L[t+i>>2]=te[0],L[t+i+4>>2]=te[1],te=[280*(s+1)>>>0,(ee=280*(s+1),1<=+Math.abs(ee)?0<ee?+Math.floor(ee/4294967296)>>>0:~~+Math.ceil((ee-(~~ee>>>0))/4294967296)>>>0:0)],L[t+i+8>>2]=te[0],L[t+i+12>>2]=te[1],j[t+i+16>>1]=280,k[t+i+18|0]=l,$e(u,t+i+19,256),i+=280,s+=1}return je.llseek(n,280*s,0),i}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},ue:function(e,t,r){Le.varargs=r;try{var n,i=Le.getStreamFromFD(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return i.tty?0:-59;case 21505:if(!i.tty)return-59;if(i.tty.ops.ioctl_tcgets){var o=i.tty.ops.ioctl_tcgets(i),s=Le.getp();L[s>>2]=o.c_iflag||0,L[s+4>>2]=o.c_oflag||0,L[s+8>>2]=o.c_cflag||0,L[s+12>>2]=o.c_lflag||0;for(var a=0;a<32;a++)k[s+a+17|0]=o.c_cc[a]||0}return 0;case 21506:case 21507:case 21508:if(!i.tty)return-59;if(i.tty.ops.ioctl_tcsets){s=Le.getp();var l=L[s>>2],c=L[s+4>>2],u=L[s+8>>2],h=L[s+12>>2],d=[];for(a=0;a<32;a++)d.push(k[s+a+17|0]);return i.tty.ops.ioctl_tcsets(i.tty,t,{c_iflag:l,c_oflag:c,c_cflag:u,c_lflag:h,c_cc:d})}return 0;case 21519:return i.tty?(s=Le.getp(),L[s>>2]=0):-59;case 21520:return i.tty?-28:-59;case 21531:return s=Le.getp(),je.ioctl(i,t,s);case 21523:return i.tty?(i.tty.ops.ioctl_tiocgwinsz&&(n=i.tty.ops.ioctl_tiocgwinsz(i.tty),s=Le.getp(),j[s>>1]=n[0],j[s+2>>1]=n[1]),0):-59;default:return-28}}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},Fd:function(e,t){try{return e=Le.getStr(e),Le.doStat(je.lstat,e,t)}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},uc:function(e,t,r){try{return t=Le.getStr(t),t=Le.calculateAt(e,t),"/"===(t=be.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),je.mkdir(t,r,0),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},Qd:function(e,t,r,n){try{t=Le.getStr(t);var i=256&n,o=4096&n;return n&=-6401,t=Le.calculateAt(e,t,o),Le.doStat(i?je.lstat:je.stat,t,r)}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},Sb:function(e,t,r,n){Le.varargs=n;try{t=Le.getStr(t),t=Le.calculateAt(e,t);var i=n?Le.get():0;return je.open(t,r,i).fd}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},bf:function(e){try{if(0==e)throw new je.ErrnoError(21);var t=Ge.createPipe();return L[e>>2]=t.readable_fd,L[e+4>>2]=t.writable_fd,0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},gc:function(e,t,r,n){try{var i,o,s;return t=Le.getStr(t),t=Le.calculateAt(e,t),n<=0?-28:(i=je.readlink(t),o=Math.min(n,Se(i)),s=k[r+o],$e(i,r,n+1),k[r+o]=s,o)}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},vc:function(e,t,r,n){try{return t=Le.getStr(t),n=Le.getStr(n),t=Le.calculateAt(e,t),n=Le.calculateAt(r,n),je.rename(t,n),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},tc:function(e){try{return e=Le.getStr(e),je.rmdir(e),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},$d:function(e,t){try{return e=Le.getStr(e),Le.doStat(je.stat,e,t)}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},rc:function(e,t,r){try{return e=Le.getStr(e),L[r+4>>2]=4096,L[r+40>>2]=4096,L[r+8>>2]=1e6,L[r+12>>2]=5e5,L[r+16>>2]=5e5,L[r+20>>2]=je.nextInode,L[r+24>>2]=1e6,L[r+28>>2]=42,L[r+44>>2]=2,L[r+36>>2]=255,0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},wc:function(e,t,r){try{return t=Le.getStr(t),t=Le.calculateAt(e,t),0===r?je.unlink(t):512===r?je.rmdir(t):J("Invalid flags passed to unlinkat"),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},kc:function(e,t,r,n){try{var i,o;return t=Le.getStr(t),t=Le.calculateAt(e,t,!0),o=r?(i=1e3*ze(r)+L[r+8>>2]/1e6,1e3*ze(r+=16)+L[r+8>>2]/1e6):i=Date.now(),je.utime(t,i,o),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},Ie:function(){return 1},Le:function(){le=!1,Qe=0},Ue:function(){throw 1/0},ge:function(e,t,r){e=Me(e,t),t=new Date(1e3*e),L[r>>2]=t.getSeconds(),L[r+4>>2]=t.getMinutes(),L[r+8>>2]=t.getHours(),L[r+12>>2]=t.getDate(),L[r+16>>2]=t.getMonth(),L[r+20>>2]=t.getFullYear()-1900,L[r+24>>2]=t.getDay(),e=0|Ue(t),L[r+28>>2]=e,L[r+36>>2]=-60*t.getTimezoneOffset(),e=new Date(t.getFullYear(),0,1);var n=new Date(t.getFullYear(),6,1).getTimezoneOffset();t=0|(n!=(e=e.getTimezoneOffset())&&t.getTimezoneOffset()==Math.min(e,n)),L[r+32>>2]=t},he:function(e){t=new Date(L[e+20>>2]+1900,L[e+16>>2],L[e+12>>2],L[e+8>>2],L[e+4>>2],L[e>>2],0),r=L[e+32>>2],n=t.getTimezoneOffset(),s=new Date(t.getFullYear(),0,1),i=new Date(t.getFullYear(),6,1).getTimezoneOffset(),s=s.getTimezoneOffset(),o=Math.min(s,i),r<0?L[e+32>>2]=Number(i!=s&&o==n):0<r!=(o==n)&&(s=Math.max(s,i),i=0<r?o:s,t.setTime(t.getTime()+6e4*(i-n))),L[e+24>>2]=t.getDay(),r=0|Ue(t),L[e+28>>2]=r,L[e>>2]=t.getSeconds(),L[e+4>>2]=t.getMinutes(),L[e+8>>2]=t.getHours(),L[e+12>>2]=t.getDate(),L[e+16>>2]=t.getMonth(),L[e+20>>2]=t.getYear(),o=t.getTime();var t,r,n,i,o,s=isNaN(o)?(Ne(61),-1):o/1e3;return bt((ee=s,1<=+Math.abs(ee)?0<ee?+Math.floor(ee/4294967296)>>>0:~~+Math.ceil((ee-(~~ee>>>0))/4294967296)>>>0:0)),s>>>0},Od:function(e,t,r,n,i,o,s,a){var l,c,u;i=Me(i,o);try{return isNaN(i)?61:(l=Le.getStreamFromFD(n),u=(c=je.mmap(l,e,i,t,r)).ptr,L[s>>2]=c.allocated,M[a>>2]=u,0)}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},Pd:function(e,t,r,n,i,o,s){o=Me(o,s);try{if(isNaN(o))return 61;var a=Le.getStreamFromFD(i);2&r&&Le.doMsync(e,a,t,n,o),je.munmap(a)}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}},ud:function(e,t,r){var n=(new Date).getFullYear(),i=new Date(n,0,1),o=(n=new Date(n,6,1),i.getTimezoneOffset()),s=n.getTimezoneOffset(),a=Math.max(o,s);function l(e){return(e=e.toTimeString().match(/\(([A-Za-z ]+)\)$/))?e[1]:"GMT"}M[e>>2]=60*a,L[t>>2]=Number(o!=s),e=l(i),a=l(n),t=qe(e),i=qe(a),s<o?(M[r>>2]=t,M[r+4>>2]=i):(M[r>>2]=i,M[r+4>>2]=t)},_:function(){J("")},$a:function(){return Date.now()},Oe:Xe,ob:function(){return performance.now()},De:function(e,t,r){return F.copyWithin(e,t,t+r)},ff:function(e){var t=F.length,r=(e>>>=0,2147483648);if(!(r<e))for(var n=1;n<=4;n*=2){var i=t*(1+.2/n);if(i=Math.min(i,e+100663296),function(e){e=(e-I.buffer.byteLength+65535)/65536;try{return I.grow(e),V(),1}catch(e){}}(Math.min(r,(i=Math.max(e,i))+(65536-i%65536)%65536)))return!0}return!1},nc:function(e,t){var r=0;return He().forEach((function(n,i){for(var o=t+r,s=(M[e+4*i>>2]=o,n),a=o,l=0;l<s.length;++l)k[0|a++]=s.charCodeAt(l);k[0|a]=0,r+=n.length+1})),0},oc:function(e,t){var r=He(),n=(M[e>>2]=r.length,0);return r.forEach((function(e){return n+=e.length+1})),M[t>>2]=n,0},wa:function(e,t){Ye(e)},Sa:function(e){try{var t=Le.getStreamFromFD(e);return je.close(t),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}},Yb:function(e,t){try{var r=Le.getStreamFromFD(e),n=r.tty?2:je.isDir(r.mode)?3:je.isLink(r.mode)?7:4;return k[0|t]=n,j[t+2>>1]=0,te=[0,(ee=0,1<=+Math.abs(ee)?0<ee?+Math.floor(ee/4294967296)>>>0:~~+Math.ceil((ee-(~~ee>>>0))/4294967296)>>>0:0)],L[t+8>>2]=te[0],L[t+12>>2]=te[1],te=[0,(ee=0,1<=+Math.abs(ee)?0<ee?+Math.floor(ee/4294967296)>>>0:~~+Math.ceil((ee-(~~ee>>>0))/4294967296)>>>0:0)],L[t+16>>2]=te[0],L[t+20>>2]=te[1],0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}},ae:function(e,t,r,n,i,o){var s;n=Me(n,i);try{return isNaN(n)?61:(s=tt(Le.getStreamFromFD(e),t,r,n),M[o>>2]=s,0)}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}},Gb:function(e,t,r,n){try{var i=tt(Le.getStreamFromFD(e),t,r);return M[n>>2]=i,0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}},ie:function(e,t,r,n,i){var o;t=Me(t,r);try{return isNaN(t)?61:(o=Le.getStreamFromFD(e),je.llseek(o,t,n),te=[o.position>>>0,(ee=o.position,1<=+Math.abs(ee)?0<ee?+Math.floor(ee/4294967296)>>>0:~~+Math.ceil((ee-(~~ee>>>0))/4294967296)>>>0:0)],L[i>>2]=te[0],L[i+4>>2]=te[1],o.getdents&&0===t&&0===n&&(o.getdents=null),0)}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}},sb:function(e,t,r,n){try{var i=function(e,t,r,n){for(var i=0,o=0;o<r;o++){var s=M[t>>2],a=M[t+4>>2];if(t+=8,(s=je.write(e,k,s,a,n))<0)return-1;i+=s,void 0!==n&&(n+=s)}return i}(Le.getStreamFromFD(e),t,r);return M[n>>2]=i,0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}},df:function(e,t){return we(F.subarray(e,e+t)),0},ac:function(e,t){var r=wt();try{return he(e)(t)}catch(e){if(Et(r),e!==e+0)throw e;_t(1,0)}},cb:function(e,t,r){var n=wt();try{return he(e)(t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},rb:function(e,t,r){var n=wt();try{return he(e)(t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},We:function(e,t,r,n){var i=wt();try{return he(e)(t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},m:function(e,t){var r=wt();try{return he(e)(t)}catch(e){if(Et(r),e!==e+0)throw e;_t(1,0)}},X:function(e,t,r){var n=wt();try{return he(e)(t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},u:function(e,t,r){var n=wt();try{return he(e)(t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},Aa:function(e,t,r,n){var i=wt();try{return he(e)(t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},A:function(e,t,r,n,i){var o=wt();try{return he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},D:function(e,t,r,n){var i=wt();try{return he(e)(t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},Ja:function(e,t,r,n,i){var o=wt();try{return he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},qa:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Zb:function(e,t,r,n,i,o,s,a,l){var c=wt();try{return he(e)(t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},Hb:function(e,t,r){var n=wt();try{return he(e)(t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},Ua:function(e,t,r,n){var i=wt();try{return he(e)(t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},ma:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},t:function(e){var t=wt();try{return he(e)()}catch(e){if(Et(t),e!==e+0)throw e;_t(1,0)}},ia:function(e,t){var r=wt();try{return he(e)(t)}catch(e){if(Et(r),e!==e+0)throw e;_t(1,0)}},xe:function(e,t,r){var n=wt();try{return he(e)(t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},Ha:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},Ma:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Ve:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v,_,b,w,E,x,S){var A=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v,_,b,w,E,x,S)}catch(e){if(Et(A),e!==e+0)throw e;_t(1,0)}},ha:function(e,t,r,n,i){var o=wt();try{return he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},L:function(e,t,r){var n=wt();try{return he(e)(t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},T:function(e,t,r,n){var i=wt();try{return he(e)(t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},b:function(e,t){var r=wt();try{return he(e)(t)}catch(e){if(Et(r),e!==e+0)throw e;_t(1,0)}},z:function(e,t,r){var n=wt();try{return he(e)(t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},Q:function(e,t,r,n){var i=wt();try{return he(e)(t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},S:function(e,t,r,n,i){var o=wt();try{return he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},O:function(e,t,r,n,i,o){var s=wt();try{return he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},Z:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},ca:function(e,t,r,n,i,o,s,a){var l=wt();try{return he(e)(t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},ra:function(e,t,r,n,i,o,s,a,l){var c=wt();try{return he(e)(t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},Ya:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return he(e)(t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},Ge:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p){var m=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p)}catch(e){if(Et(m),e!==e+0)throw e;_t(1,0)}},tb:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Te:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return he(e)(t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},Me:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v,_,b){var w=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v,_,b)}catch(e){if(Et(w),e!==e+0)throw e;_t(1,0)}},$b:function(e,t,r,n,i,o){var s=wt();try{return he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},_a:function(e,t,r,n,i){var o=wt();try{return he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},Da:function(e,t,r,n,i,o){var s=wt();try{return he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},ya:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Wb:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return he(e)(t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},w:function(e,t,r,n){var i=wt();try{return he(e)(t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},Ee:function(e,t,r,n,i,o){var s=wt();try{return he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},c:function(e,t,r){var n=wt();try{return he(e)(t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},E:function(e,t,r,n){var i=wt();try{return he(e)(t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},Vb:function(e,t,r,n,i){var o=wt();try{return he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},fa:function(e,t,r,n,i,o){var s=wt();try{return he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},Ea:function(e,t,r,n,i,o,s,a,l){var c=wt();try{return he(e)(t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},La:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},jb:function(e,t,r,n,i,o,s,a,l,c,u,h,d){var f=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d)}catch(e){if(Et(f),e!==e+0)throw e;_t(1,0)}},Ze:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p){var m=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p)}catch(e){if(Et(m),e!==e+0)throw e;_t(1,0)}},Xb:function(e,t,r,n,i,o,s,a,l,c,u,h,d){var f=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d)}catch(e){if(Et(f),e!==e+0)throw e;_t(1,0)}},hb:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y){var v=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y)}catch(e){if(Et(v),e!==e+0)throw e;_t(1,0)}},Ob:function(e,t,r,n,i,o,s,a,l){var c=wt();try{return he(e)(t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},Rb:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return he(e)(t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},ub:function(e,t,r,n,i,o,s,a,l,c,u,h,d){var f=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d)}catch(e){if(Et(f),e!==e+0)throw e;_t(1,0)}},md:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return dr(e,t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},Xe:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Tb:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Ce:function(e,t,r,n,i,o,s,a){var l=wt();try{return he(e)(t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},pa:function(e,t,r,n,i){var o=wt();try{return he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},Qa:function(e,t,r,n,i,o){var s=wt();try{return he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},V:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},ab:function(e,t,r,n,i,o,s,a,l){var c=wt();try{return he(e)(t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},Pb:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return he(e)(t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},_b:function(e,t,r,n,i,o){var s=wt();try{return he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},d:function(e,t,r,n){var i=wt();try{return he(e)(t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},Y:function(e,t,r,n,i){var o=wt();try{return he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},re:function(e,t,r,n,i,o){var s=wt();try{return he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},mb:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},Za:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m){var g=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m)}catch(e){if(Et(g),e!==e+0)throw e;_t(1,0)}},Ia:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f){var p=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f)}catch(e){if(Et(p),e!==e+0)throw e;_t(1,0)}},Mb:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p){var m=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p)}catch(e){if(Et(m),e!==e+0)throw e;_t(1,0)}},Nb:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Ne:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},Fa:function(e,t,r,n,i,o){var s=wt();try{return he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},pb:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},k:function(e,t,r,n,i){var o=wt();try{return he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},Ba:function(e,t,r,n,i,o){var s=wt();try{return he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},Se:function(e,t,r,n,i,o,s,a){var l=wt();try{return he(e)(t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},Ib:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},pe:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},Lb:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},aa:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},ef:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},Ub:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},n:function(e,t,r,n,i,o){var s=wt();try{return he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},Wa:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return he(e)(t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},Fb:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},Ae:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y){var v=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y)}catch(e){if(Et(v),e!==e+0)throw e;_t(1,0)}},Be:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m){var g=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m)}catch(e){if(Et(g),e!==e+0)throw e;_t(1,0)}},_e:function(e,t,r,n,i,o,s,a,l){var c=wt();try{return he(e)(t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},se:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},Ka:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return he(e)(t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},Pa:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},s:function(e,t,r,n,i,o,s){var a=wt();try{return he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Fe:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},ze:function(e,t,r,n,i,o,s,a,l,c,u,h,d){var f=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d)}catch(e){if(Et(f),e!==e+0)throw e;_t(1,0)}},le:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f){var p=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f)}catch(e){if(Et(p),e!==e+0)throw e;_t(1,0)}},Re:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g){var y=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g)}catch(e){if(Et(y),e!==e+0)throw e;_t(1,0)}},te:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},ve:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},F:function(e,t,r,n,i,o,s,a){var l=wt();try{return he(e)(t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},oe:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},Va:function(e,t,r,n,i,o,s,a,l,c,u,h,d){var f=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d)}catch(e){if(Et(f),e!==e+0)throw e;_t(1,0)}},Cb:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g){var y=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g)}catch(e){if(Et(y),e!==e+0)throw e;_t(1,0)}},we:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return he(e)(t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},H:function(e,t,r,n,i,o,s,a,l){var c=wt();try{return he(e)(t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},Pe:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p){var m=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p)}catch(e){if(Et(m),e!==e+0)throw e;_t(1,0)}},Je:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},Kb:function(e,t,r,n,i,o,s,a,l,c,u,h,d){var f=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d)}catch(e){if(Et(f),e!==e+0)throw e;_t(1,0)}},M:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return he(e)(t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},ba:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},za:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f){var p=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f)}catch(e){if(Et(p),e!==e+0)throw e;_t(1,0)}},ea:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},va:function(e,t,r,n,i,o,s,a,l,c,u,h,d){var f=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d)}catch(e){if(Et(f),e!==e+0)throw e;_t(1,0)}},la:function(e,t,r,n,i,o,s,a,l,c,u,h,d){var f=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d)}catch(e){if(Et(f),e!==e+0)throw e;_t(1,0)}},ke:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f){var p=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f)}catch(e){if(Et(p),e!==e+0)throw e;_t(1,0)}},Ca:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f){var p=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f)}catch(e){if(Et(p),e!==e+0)throw e;_t(1,0)}},gb:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p){var m=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p)}catch(e){if(Et(m),e!==e+0)throw e;_t(1,0)}},Oa:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m){var g=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m)}catch(e){if(Et(g),e!==e+0)throw e;_t(1,0)}},pc:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v){var _=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v)}catch(e){if(Et(_),e!==e+0)throw e;_t(1,0)}},qe:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v,_){var b=wt();try{return he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v,_)}catch(e){if(Et(b),e!==e+0)throw e;_t(1,0)}},zc:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y){var v=wt();try{return en(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y)}catch(e){if(Et(v),e!==e+0)throw e;_t(1,0)}},hd:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v){var _=wt();try{return _r(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v)}catch(e){if(Et(_),e!==e+0)throw e;_t(1,0)}},yd:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v,_){var b=wt();try{return sr(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v,_)}catch(e){if(Et(b),e!==e+0)throw e;_t(1,0)}},zd:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m){var g=wt();try{return ar(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m)}catch(e){if(Et(g),e!==e+0)throw e;_t(1,0)}},Fc:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g){var y=wt();try{return Xr(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g)}catch(e){if(Et(y),e!==e+0)throw e;_t(1,0)}},Oc:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return Ur(e,t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},Xc:function(e,t,r,n,i,o,s,a,l,c,u,h,d){var f=wt();try{return kr(e,t,r,n,i,o,s,a,l,c,u,h,d)}catch(e){if(Et(f),e!==e+0)throw e;_t(1,0)}},Yc:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p){var m=wt();try{return Ir(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p)}catch(e){if(Et(m),e!==e+0)throw e;_t(1,0)}},Qc:function(e,t,r,n,i,o,s,a,l){var c=wt();try{return Gr(e,t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},wd:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return mr(e,t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},Uc:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return Lr(e,t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},sd:function(e,t,r,n,i,o,s,a){var l=wt();try{return qt(e,t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},vd:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return fr(e,t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},Gc:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return Bt(e,t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},Cd:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return yr(e,t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},Sd:function(e,t,r,n,i,o,s){var a=wt();try{return Ut(e,t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Kd:function(e,t,r,n,i,o,s,a){var l=wt();try{return tr(e,t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},Nc:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return Br(e,t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},Bd:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return lr(e,t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},Rc:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return Mr(e,t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},Vc:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return jr(e,t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},qd:function(e,t,r,n,i,o){var s=wt();try{return Ft(e,t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},ld:function(e,t,r,n,i,o,s){var a=wt();try{return Ht(e,t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},gd:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return br(e,t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},td:function(e,t,r,n,i,o,s,a,l){var c=wt();try{return Zt(e,t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},Xd:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return Gt(e,t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},Yd:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return Mt(e,t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},Wd:function(e,t,r,n,i){var o=wt();try{return Nt(e,t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},rd:function(e,t,r,n,i,o){var s=wt();try{return jt(e,t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},Dc:function(e,t,r,n,i,o,s){var a=wt();try{return Zr(e,t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},pd:function(e,t,r,n,i,o,s,a){var l=wt();try{return ur(e,t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},ad:function(e,t,r,n,i,o,s,a,l){var c=wt();try{return Pr(e,t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},Hd:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{return Or(e,t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},Jd:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return nr(e,t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},Ad:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{return cr(e,t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},_c:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return Cr(e,t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},cd:function(e,t,r,n,i,o,s){var a=wt();try{return Ar(e,t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Wc:function(e,t,r,n,i,o,s,a,l){var c=wt();try{return Fr(e,t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},id:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return vr(e,t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},Zd:function(e,t,r,n){var i=wt();try{return It(e,t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},Pc:function(e,t,r,n,i,o,s,a){var l=wt();try{return zr(e,t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},_d:function(e,t,r,n,i){var o=wt();try{return Rt(e,t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},nd:function(e,t,r,n,i,o){var s=wt();try{return Kt(e,t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},Vd:function(e,t,r,n,i,o,s,a){var l=wt();try{return $t(e,t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},Bb:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return wr(e,t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},Ac:function(e,t,r,n,i,o){var s=wt();try{return kt(e,t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},Jc:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{return Wr(e,t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},Dd:function(e,t,r){var n=wt();try{return Yt(e,t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},Ud:function(e,t,r,n){var i=wt();try{return Lt(e,t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},Td:function(e){var t=wt();try{return zt(e)}catch(e){if(Et(t),e!==e+0)throw e;_t(1,0)}},de:function(e,t){var r=wt();try{return Dt(e,t)}catch(e){if(Et(r),e!==e+0)throw e;_t(1,0)}},ce:function(e,t,r){var n=wt();try{return Ot(e,t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},Md:function(e,t,r,n){var i=wt();try{return Qt(e,t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},Kc:function(e,t,r,n,i){var o=wt();try{return Yr(e,t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},fe:function(e,t,r,n,i){var o=wt();try{return Ct(e,t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},od:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v,_,b,w,E,x,S,A){var T=wt();try{return hr(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v,_,b,w,E,x,S,A)}catch(e){if(Et(T),e!==e+0)throw e;_t(1,0)}},bd:function(e,t,r,n,i,o){var s=wt();try{return Rr(e,t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},$c:function(e,t,r,n,i,o,s,a){var l=wt();try{return Dr(e,t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},Ic:function(e,t,r,n){var i=wt();try{return ir(e,t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},Mc:function(e,t,r,n,i,o){var s=wt();try{return qr(e,t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},Cc:function(e,t,r,n){var i=wt();try{return Jr(e,t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},l:function(e){var t=wt();try{he(e)()}catch(e){if(Et(t),e!==e+0)throw e;_t(1,0)}},ja:function(e,t){var r=wt();try{he(e)(t)}catch(e){if(Et(r),e!==e+0)throw e;_t(1,0)}},ne:function(e,t,r,n,i,o,s){var a=wt();try{he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Db:function(e,t,r,n,i){var o=wt();try{he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},g:function(e,t){var r=wt();try{he(e)(t)}catch(e){if(Et(r),e!==e+0)throw e;_t(1,0)}},R:function(e,t,r){var n=wt();try{he(e)(t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},I:function(e,t,r,n){var i=wt();try{he(e)(t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},W:function(e,t,r,n,i){var o=wt();try{he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},da:function(e,t,r,n,i,o){var s=wt();try{he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},vb:function(e,t,r,n,i,o,s){var a=wt();try{he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},ye:function(e,t,r,n,i,o,s,a){var l=wt();try{he(e)(t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},fb:function(e,t,r,n,i,o,s,a,l){var c=wt();try{he(e)(t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},kb:function(e,t,r,n,i,o){var s=wt();try{he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},sa:function(e,t,r,n,i){var o=wt();try{he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},N:function(e,t,r,n){var i=wt();try{he(e)(t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},lb:function(e,t,r,n,i){var o=wt();try{he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},$:function(e,t,r,n,i,o){var s=wt();try{he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},Eb:function(e,t,r,n,i,o,s){var a=wt();try{he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},h:function(e,t,r){var n=wt();try{he(e)(t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},C:function(e,t,r,n){var i=wt();try{he(e)(t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},J:function(e,t,r,n,i){var o=wt();try{he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},ga:function(e,t,r,n,i,o){var s=wt();try{he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},Ta:function(e,t,r,n,i,o,s){var a=wt();try{he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Xa:function(e,t,r,n,i,o,s,a,l){var c=wt();try{he(e)(t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},Ye:function(e,t,r,n,i,o,s){var a=wt();try{he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},nb:function(e,t,r,n,i,o){var s=wt();try{he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},bc:function(e,t,r,n,i){var o=wt();try{he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},K:function(e,t,r,n,i,o){var s=wt();try{he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},eb:function(e,t,r,n,i,o,s){var a=wt();try{he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},f:function(e,t,r,n){var i=wt();try{he(e)(t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},ka:function(e,t,r,n,i){var o=wt();try{he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},bb:function(e,t,r,n,i,o,s){var a=wt();try{he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},cf:function(e,t,r,n,i,o){var s=wt();try{he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},j:function(e,t,r,n,i){var o=wt();try{he(e)(t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},Ra:function(e,t,r,n,i,o){var s=wt();try{he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},xa:function(e,t,r,n,i,o,s,a){var l=wt();try{he(e)(t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},db:function(e,t,r,n,i,o,s,a,l,c,u,h,d){var f=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u,h,d)}catch(e){if(Et(f),e!==e+0)throw e;_t(1,0)}},ec:function(e,t,r,n,i,o,s,a,l,c,u,h,d){var f=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u,h,d)}catch(e){if(Et(f),e!==e+0)throw e;_t(1,0)}},ib:function(e,t,r,n,i,o,s,a,l){var c=wt();try{he(e)(t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},wb:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},ta:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},Na:function(e,t,r,n,i,o,s){var a=wt();try{he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Qb:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{he(e)(t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},o:function(e,t,r,n,i,o){var s=wt();try{he(e)(t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},fc:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v,_,b,w){var E=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y,v,_,b,w)}catch(e){if(Et(E),e!==e+0)throw e;_t(1,0)}},zb:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f){var p=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f)}catch(e){if(Et(p),e!==e+0)throw e;_t(1,0)}},yb:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},Jb:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p){var m=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p)}catch(e){if(Et(m),e!==e+0)throw e;_t(1,0)}},q:function(e,t,r,n,i,o,s){var a=wt();try{he(e)(t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},G:function(e,t,r,n,i,o,s,a){var l=wt();try{he(e)(t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},me:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{he(e)(t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},U:function(e,t,r,n,i,o,s,a,l){var c=wt();try{he(e)(t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},He:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{he(e)(t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},Qe:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p){var m=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p)}catch(e){if(Et(m),e!==e+0)throw e;_t(1,0)}},P:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{he(e)(t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},na:function(e,t,r,n,i,o,s,a,l,c,u){var h=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u)}catch(e){if(Et(h),e!==e+0)throw e;_t(1,0)}},qb:function(e,t,r,n,i,o,s,a,l,c,u,h){var d=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u,h)}catch(e){if(Et(d),e!==e+0)throw e;_t(1,0)}},dc:function(e,t,r,n,i,o,s,a,l,c,u,h,d){var f=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u,h,d)}catch(e){if(Et(f),e!==e+0)throw e;_t(1,0)}},xb:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p){var m=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p)}catch(e){if(Et(m),e!==e+0)throw e;_t(1,0)}},Ga:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m){var g=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m)}catch(e){if(Et(g),e!==e+0)throw e;_t(1,0)}},cc:function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y){var v=wt();try{he(e)(t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,y)}catch(e){if(Et(v),e!==e+0)throw e;_t(1,0)}},xd:function(e,t,r,n,i,o,s,a,l){var c=wt();try{pr(e,t,r,n,i,o,s,a,l)}catch(e){if(Et(c),e!==e+0)throw e;_t(1,0)}},Ld:function(e,t,r,n,i,o,s){var a=wt();try{er(e,t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},Bc:function(e,t,r,n,i,o){var s=wt();try{Qr(e,t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},Id:function(e,t,r,n,i,o,s){var a=wt();try{rr(e,t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},dd:function(e,t,r,n,i,o,s,a){var l=wt();try{Tr(e,t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},Gd:function(e,t,r,n,i){var o=wt();try{Jt(e,t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},Ec:function(e,t,r,n,i,o){var s=wt();try{Xt(e,t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},ee:function(e,t,r,n,i,o,s){var a=wt();try{Er(e,t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},jd:function(e,t,r,n,i,o,s,a){var l=wt();try{Kr(e,t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},Zc:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{Sr(e,t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},Nd:function(e,t,r,n){var i=wt();try{Wt(e,t,r,n)}catch(e){if(Et(i),e!==e+0)throw e;_t(1,0)}},Hc:function(e,t,r,n,i){var o=wt();try{Vr(e,t,r,n,i)}catch(e){if(Et(o),e!==e+0)throw e;_t(1,0)}},Sc:function(e,t,r,n,i,o){var s=wt();try{$r(e,t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},fd:function(e,t,r,n,i,o){var s=wt();try{Vt(e,t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},Lc:function(e,t,r,n,i,o,s,a,l,c){var u=wt();try{Hr(e,t,r,n,i,o,s,a,l,c)}catch(e){if(Et(u),e!==e+0)throw e;_t(1,0)}},Tc:function(e,t,r,n,i,o,s){var a=wt();try{Nr(e,t,r,n,i,o,s)}catch(e){if(Et(a),e!==e+0)throw e;_t(1,0)}},kd:function(e,t,r,n,i,o){var s=wt();try{gr(e,t,r,n,i,o)}catch(e){if(Et(s),e!==e+0)throw e;_t(1,0)}},ed:function(e,t,r,n,i,o,s,a){var l=wt();try{xr(e,t,r,n,i,o,s,a)}catch(e){if(Et(l),e!==e+0)throw e;_t(1,0)}},Ed:function(e,t,r){var n=wt();try{or(e,t,r)}catch(e){if(Et(n),e!==e+0)throw e;_t(1,0)}},r:function(e){return e},$e:Ye,oa:nt,mc:function(e,t,r,n,i){return nt(e,t,r,n)}}),mt=function(){var e,r,n,i={a:pt};function o(e,t){return mt=e.exports,I=mt.gf,V(),de=mt.hh,e=mt.hf,q.unshift(e),Z(),mt}if(X(),m.instantiateWasm)try{return m.instantiateWasm(i,o)}catch(i){z("Module.instantiateWasm callback failed with error: ".concat(i)),t(i)}return e=Q,r=i,n=function(e){o(e.instance)},(D||"function"!=typeof WebAssembly.instantiateStreaming||re(e)||ne(e)||O||"function"!=typeof fetch?oe(e,r,n):fetch(e,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,r).then(n,(function(t){return z("wasm streaming compile failed: ".concat(t)),z("falling back to ArrayBuffer instantiation"),oe(e,r,n)}))}))).catch(t),{}}(),gt=(m._CPLSetConfigOption=function(e,t){return(m._CPLSetConfigOption=mt.jf)(e,t)},m._CPLSetThreadLocalConfigOption=function(e,t){return(m._CPLSetThreadLocalConfigOption=mt.kf)(e,t)},m._CPLError=function(e,t,r,n){return(m._CPLError=mt.lf)(e,t,r,n)},m._CPLErrorReset=function(){return(m._CPLErrorReset=mt.mf)()},m._CPLGetLastErrorNo=function(){return(m._CPLGetLastErrorNo=mt.nf)()},m._CPLGetLastErrorType=function(){return(m._CPLGetLastErrorType=mt.of)()},m._CPLGetLastErrorMsg=function(){return(m._CPLGetLastErrorMsg=mt.pf)()},m._CPLQuietErrorHandler=function(e,t,r){return(m._CPLQuietErrorHandler=mt.qf)(e,t,r)},m._CPLSetErrorHandler=function(e){return(m._CPLSetErrorHandler=mt.rf)(e)},m._CSLCount=function(e){return(m._CSLCount=mt.sf)(e)},m._CPLAtof=function(e){return(m._CPLAtof=mt.tf)(e)},m._GDALSuggestedWarpOutput=function(e,t,r,n,i,o){return(m._GDALSuggestedWarpOutput=mt.uf)(e,t,r,n,i,o)},m._GDALGenImgProjTransform=function(e,t,r,n,i,o,s){return(m._GDALGenImgProjTransform=mt.vf)(e,t,r,n,i,o,s)},m._GDALCreateGenImgProjTransformer=function(e,t,r,n,i,o,s){return(m._GDALCreateGenImgProjTransformer=mt.wf)(e,t,r,n,i,o,s)},m._GDALCreateGenImgProjTransformer2=function(e,t,r){return(m._GDALCreateGenImgProjTransformer2=mt.xf)(e,t,r)},m._GDALDestroyGenImgProjTransformer=function(e){return(m._GDALDestroyGenImgProjTransformer=mt.yf)(e)},m._GDALInvGeoTransform=function(e,t){return(m._GDALInvGeoTransform=mt.zf)(e,t)},m._GDALReprojectImage=function(e,t,r,n,i,o,s,a,l,c){return(m._GDALReprojectImage=mt.Af)(e,t,r,n,i,o,s,a,l,c)},m._OSRNewSpatialReference=function(e){return(m._OSRNewSpatialReference=mt.Bf)(e)},m._OSRDestroySpatialReference=function(e){return(m._OSRDestroySpatialReference=mt.Cf)(e)},m._OSRExportToWkt=function(e,t){return(m._OSRExportToWkt=mt.Df)(e,t)},m._OSRSetFromUserInput=function(e,t){return(m._OSRSetFromUserInput=mt.Ef)(e,t)},m._OSRImportFromEPSG=function(e,t){return(m._OSRImportFromEPSG=mt.Ff)(e,t)},m._OSRSetAxisMappingStrategy=function(e,t){return(m._OSRSetAxisMappingStrategy=mt.Gf)(e,t)},m._OCTDestroyCoordinateTransformation=function(e){return(m._OCTDestroyCoordinateTransformation=mt.Hf)(e)},m._OCTNewCoordinateTransformation=function(e,t){return(m._OCTNewCoordinateTransformation=mt.If)(e,t)},m._OCTTransform=function(e,t,r,n,i){return(m._OCTTransform=mt.Jf)(e,t,r,n,i)},m._GDALAllRegister=function(){return(m._GDALAllRegister=mt.Kf)()},m._OGRGetDriverCount=function(){return(m._OGRGetDriverCount=mt.Lf)()},m._OGRGetDriver=function(e){return(m._OGRGetDriver=mt.Mf)(e)},m._OGR_L_GetFeatureCount=function(e,t){return(m._OGR_L_GetFeatureCount=mt.Nf)(e,t)},m._OGR_L_GetName=function(e){return(m._OGR_L_GetName=mt.Of)(e)},m._OGR_DS_GetLayerCount=function(e){return(m._OGR_DS_GetLayerCount=mt.Pf)(e)},m._OGR_DS_GetLayer=function(e,t){return(m._OGR_DS_GetLayer=mt.Qf)(e,t)},m._OGR_DS_GetName=function(e){return(m._OGR_DS_GetName=mt.Rf)(e)},m._OGR_DS_GetDriver=function(e){return(m._OGR_DS_GetDriver=mt.Sf)(e)},m._OGR_Dr_GetName=function(e){return(m._OGR_Dr_GetName=mt.Tf)(e)},m._GDALCreate=function(e,t,r,n,i,o,s){return(m._GDALCreate=mt.Uf)(e,t,r,n,i,o,s)},m._GDALCreateCopy=function(e,t,r,n,i,o,s){return(m._GDALCreateCopy=mt.Vf)(e,t,r,n,i,o,s)},m._GDALGetDriverShortName=function(e){return(m._GDALGetDriverShortName=mt.Wf)(e)},m._GDALGetDriverLongName=function(e){return(m._GDALGetDriverLongName=mt.Xf)(e)},m._GDALGetDriverCount=function(){return(m._GDALGetDriverCount=mt.Yf)()},m._GDALGetDriver=function(e){return(m._GDALGetDriver=mt.Zf)(e)},m._GDALGetDriverByName=function(e){return(m._GDALGetDriverByName=mt._f)(e)},m._GDALGetRasterXSize=function(e){return(m._GDALGetRasterXSize=mt.$f)(e)},m._GDALGetRasterYSize=function(e){return(m._GDALGetRasterYSize=mt.ag)(e)},m._GDALGetRasterBand=function(e,t){return(m._GDALGetRasterBand=mt.bg)(e,t)},m._GDALGetRasterCount=function(e){return(m._GDALGetRasterCount=mt.cg)(e)},m._GDALGetSpatialRef=function(e){return(m._GDALGetSpatialRef=mt.dg)(e)},m._GDALGetProjectionRef=function(e){return(m._GDALGetProjectionRef=mt.eg)(e)},m._GDALSetProjection=function(e,t){return(m._GDALSetProjection=mt.fg)(e,t)},m._GDALGetGeoTransform=function(e,t){return(m._GDALGetGeoTransform=mt.gg)(e,t)},m._GDALSetGeoTransform=function(e,t){return(m._GDALSetGeoTransform=mt.hg)(e,t)},m._GDALGetDatasetDriver=function(e){return(m._GDALGetDatasetDriver=mt.ig)(e)},m._GDALGetFileList=function(e){return(m._GDALGetFileList=mt.jg)(e)},m._GDALOpen=function(e,t){return(m._GDALOpen=mt.kg)(e,t)},m._GDALOpenEx=function(e,t,r,n,i){return(m._GDALOpenEx=mt.lg)(e,t,r,n,i)},m._GDALClose=function(e){return(m._GDALClose=mt.mg)(e)},m._GDALDatasetGetLayerCount=function(e){return(m._GDALDatasetGetLayerCount=mt.ng)(e)},m._GDALDatasetGetLayer=function(e,t){return(m._GDALDatasetGetLayer=mt.og)(e,t)},m._GDALGetRasterDataType=function(e){return(m._GDALGetRasterDataType=mt.pg)(e)},m._GDALGetRasterNoDataValue=function(e,t){return(m._GDALGetRasterNoDataValue=mt.qg)(e,t)},m._GDALGetRasterMaximum=function(e,t){return(m._GDALGetRasterMaximum=mt.rg)(e,t)},m._GDALGetRasterMinimum=function(e,t){return(m._GDALGetRasterMinimum=mt.sg)(e,t)},m._GDALGetRasterStatistics=function(e,t,r,n,i,o,s){return(m._GDALGetRasterStatistics=mt.tg)(e,t,r,n,i,o,s)},m._GDALSetCacheMax=function(e){return(m._GDALSetCacheMax=mt.ug)(e)},m._GDALGetDescription=function(e){return(m._GDALGetDescription=mt.vg)(e)},m._GDALGetMetadataItem=function(e,t,r){return(m._GDALGetMetadataItem=mt.wg)(e,t,r)},m._GDALInfo=function(e,t){return(m._GDALInfo=mt.xg)(e,t)},m._GDALInfoOptionsNew=function(e,t){return(m._GDALInfoOptionsNew=mt.yg)(e,t)},m._GDALInfoOptionsFree=function(e){return(m._GDALInfoOptionsFree=mt.zg)(e)},m._GDALBuildVRT=function(e,t,r,n,i,o){return(m._GDALBuildVRT=mt.Ag)(e,t,r,n,i,o)},m._GDALBuildVRTOptionsFree=function(e){return(m._GDALBuildVRTOptionsFree=mt.Bg)(e)},m._GDALBuildVRTOptionsNew=function(e,t){return(m._GDALBuildVRTOptionsNew=mt.Cg)(e,t)},m._GDALTranslate=function(e,t,r,n){return(m._GDALTranslate=mt.Dg)(e,t,r,n)},m._GDALTranslateOptionsNew=function(e,t){return(m._GDALTranslateOptionsNew=mt.Eg)(e,t)},m._GDALTranslateOptionsFree=function(e){return(m._GDALTranslateOptionsFree=mt.Fg)(e)},m._GDALRasterize=function(e,t,r,n,i){return(m._GDALRasterize=mt.Gg)(e,t,r,n,i)},m._GDALRasterizeOptionsNew=function(e,t){return(m._GDALRasterizeOptionsNew=mt.Hg)(e,t)},m._GDALRasterizeOptionsFree=function(e){return(m._GDALRasterizeOptionsFree=mt.Ig)(e)},m._GDALWarp=function(e,t,r,n,i,o){return(m._GDALWarp=mt.Jg)(e,t,r,n,i,o)},m._GDALWarpAppOptionsNew=function(e,t){return(m._GDALWarpAppOptionsNew=mt.Kg)(e,t)},m._GDALWarpAppOptionsFree=function(e){return(m._GDALWarpAppOptionsFree=mt.Lg)(e)},m._GDALWarpAppOptionsSetProgress=function(e,t,r){return(m._GDALWarpAppOptionsSetProgress=mt.Mg)(e,t,r)},m._GDALVectorInfoOptionsFree=function(e){return(m._GDALVectorInfoOptionsFree=mt.Ng)(e)},m._GDALVectorInfo=function(e,t){return(m._GDALVectorInfo=mt.Og)(e,t)},m._GDALVectorInfoOptionsNew=function(e,t){return(m._GDALVectorInfoOptionsNew=mt.Pg)(e,t)},m._GDALVectorTranslate=function(e,t,r,n,i,o){return(m._GDALVectorTranslate=mt.Qg)(e,t,r,n,i,o)},m._GDALVectorTranslateOptionsNew=function(e,t){return(m._GDALVectorTranslateOptionsNew=mt.Rg)(e,t)},m._GDALVectorTranslateOptionsFree=function(e){return(m._GDALVectorTranslateOptionsFree=mt.Sg)(e)},m._GDALDEMProcessing=function(e,t,r,n,i,o){return(m._GDALDEMProcessing=mt.Tg)(e,t,r,n,i,o)},m._GDALDEMProcessingOptionsNew=function(e,t){return(m._GDALDEMProcessingOptionsNew=mt.Ug)(e,t)},m._GDALDEMProcessingOptionsFree=function(e){return(m._GDALDEMProcessingOptionsFree=mt.Vg)(e)},function(){return(gt=mt.Wg)()}),yt=m._malloc=function(e){return(yt=m._malloc=mt.Xg)(e)},vt=(m._free=function(e){return(m._free=mt.Yg)(e)},function(e,t){return(vt=mt.Zg)(e,t)}),_t=function(e,t){return(_t=mt._g)(e,t)},bt=function(e){return(bt=mt.$g)(e)},wt=function(){return(wt=mt.ah)()},Et=function(e){return(Et=mt.bh)(e)},xt=function(e){return(xt=mt.ch)(e)},St=function(e){return(St=mt.dh)(e)},At=function(e){return(At=mt.eh)(e)},Tt=function(e,t,r){return(Tt=mt.fh)(e,t,r)},Pt=function(e){return(Pt=mt.gh)(e)},Ct=m.dynCall_jiiii=function(e,t,r,n,i){return(Ct=m.dynCall_jiiii=mt.ih)(e,t,r,n,i)},Ot=m.dynCall_jii=function(e,t,r){return(Ot=m.dynCall_jii=mt.jh)(e,t,r)},Rt=m.dynCall_iiji=function(e,t,r,n,i){return(Rt=m.dynCall_iiji=mt.kh)(e,t,r,n,i)},Dt=m.dynCall_ji=function(e,t){return(Dt=m.dynCall_ji=mt.lh)(e,t)},It=m.dynCall_iij=function(e,t,r,n){return(It=m.dynCall_iij=mt.mh)(e,t,r,n)},kt=m.dynCall_iijj=function(e,t,r,n,i,o){return(kt=m.dynCall_iijj=mt.nh)(e,t,r,n,i,o)},Ft=m.dynCall_iiiij=function(e,t,r,n,i,o){return(Ft=m.dynCall_iiiij=mt.oh)(e,t,r,n,i,o)},jt=m.dynCall_iiiji=function(e,t,r,n,i,o){return(jt=m.dynCall_iiiji=mt.ph)(e,t,r,n,i,o)},Lt=m.dynCall_iji=function(e,t,r,n){return(Lt=m.dynCall_iji=mt.qh)(e,t,r,n)},Mt=m.dynCall_iiiijjjii=function(e,t,r,n,i,o,s,a,l,c,u,h){return(Mt=m.dynCall_iiiijjjii=mt.rh)(e,t,r,n,i,o,s,a,l,c,u,h)},Nt=m.dynCall_iiij=function(e,t,r,n,i){return(Nt=m.dynCall_iiij=mt.sh)(e,t,r,n,i)},$t=m.dynCall_iijiiii=function(e,t,r,n,i,o,s,a){return($t=m.dynCall_iijiiii=mt.th)(e,t,r,n,i,o,s,a)},Gt=m.dynCall_iiiijjji=function(e,t,r,n,i,o,s,a,l,c,u){return(Gt=m.dynCall_iiiijjji=mt.uh)(e,t,r,n,i,o,s,a,l,c,u)},zt=m.dynCall_j=function(e){return(zt=m.dynCall_j=mt.vh)(e)},Ut=m.dynCall_iiiiij=function(e,t,r,n,i,o,s){return(Ut=m.dynCall_iiiiij=mt.wh)(e,t,r,n,i,o,s)},Bt=m.dynCall_iiiiiijj=function(e,t,r,n,i,o,s,a,l,c){return(Bt=m.dynCall_iiiiiijj=mt.xh)(e,t,r,n,i,o,s,a,l,c)},Vt=m.dynCall_vijii=function(e,t,r,n,i,o){return(Vt=m.dynCall_vijii=mt.yh)(e,t,r,n,i,o)},Kt=m.dynCall_iijii=function(e,t,r,n,i,o){return(Kt=m.dynCall_iijii=mt.zh)(e,t,r,n,i,o)},qt=m.dynCall_iiiiiij=function(e,t,r,n,i,o,s,a){return(qt=m.dynCall_iiiiiij=mt.Ah)(e,t,r,n,i,o,s,a)},Wt=m.dynCall_vij=function(e,t,r,n){return(Wt=m.dynCall_vij=mt.Bh)(e,t,r,n)},Ht=m.dynCall_iiiiji=function(e,t,r,n,i,o,s){return(Ht=m.dynCall_iiiiji=mt.Ch)(e,t,r,n,i,o,s)},Yt=m.dynCall_ij=function(e,t,r){return(Yt=m.dynCall_ij=mt.Dh)(e,t,r)},Xt=m.dynCall_viiji=function(e,t,r,n,i,o){return(Xt=m.dynCall_viiji=mt.Eh)(e,t,r,n,i,o)},Zt=m.dynCall_iiiijji=function(e,t,r,n,i,o,s,a,l){return(Zt=m.dynCall_iiiijji=mt.Fh)(e,t,r,n,i,o,s,a,l)},Jt=m.dynCall_viij=function(e,t,r,n,i){return(Jt=m.dynCall_viij=mt.Gh)(e,t,r,n,i)},Qt=m.dynCall_jiii=function(e,t,r,n){return(Qt=m.dynCall_jiii=mt.Hh)(e,t,r,n)},er=m.dynCall_viiiij=function(e,t,r,n,i,o,s){return(er=m.dynCall_viiiij=mt.Ih)(e,t,r,n,i,o,s)},tr=m.dynCall_iiiiiji=function(e,t,r,n,i,o,s,a){return(tr=m.dynCall_iiiiiji=mt.Jh)(e,t,r,n,i,o,s,a)},rr=m.dynCall_viiiji=function(e,t,r,n,i,o,s){return(rr=m.dynCall_viiiji=mt.Kh)(e,t,r,n,i,o,s)},nr=m.dynCall_iiijiiiiii=function(e,t,r,n,i,o,s,a,l,c,u){return(nr=m.dynCall_iiijiiiiii=mt.Lh)(e,t,r,n,i,o,s,a,l,c,u)},ir=m.dynCall_jij=function(e,t,r,n){return(ir=m.dynCall_jij=mt.Mh)(e,t,r,n)},or=m.dynCall_vj=function(e,t,r){return(or=m.dynCall_vj=mt.Nh)(e,t,r)},sr=m.dynCall_iiiiiiiiiiiiijjji=function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,g,y,v,_,b){return(sr=m.dynCall_iiiiiiiiiiiiijjji=mt.Oh)(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,g,y,v,_,b)},ar=m.dynCall_iiiiiiiiiiijji=function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,g){return(ar=m.dynCall_iiiiiiiiiiijji=mt.Ph)(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,g)},lr=m.dynCall_iiiiijiiiii=function(e,t,r,n,i,o,s,a,l,c,u,h){return(lr=m.dynCall_iiiiijiiiii=mt.Qh)(e,t,r,n,i,o,s,a,l,c,u,h)},cr=m.dynCall_iiijiiiiiii=function(e,t,r,n,i,o,s,a,l,c,u,h){return(cr=m.dynCall_iiijiiiiiii=mt.Rh)(e,t,r,n,i,o,s,a,l,c,u,h)},ur=m.dynCall_iiijiii=function(e,t,r,n,i,o,s,a){return(ur=m.dynCall_iiijiii=mt.Sh)(e,t,r,n,i,o,s,a)},hr=m.dynCall_jiiiiiiiiiiiiiiiiiiiiiiiii=function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,g,y,v,_,b,w,E,x,S,A,T){return(hr=m.dynCall_jiiiiiiiiiiiiiiiiiiiiiiiii=mt.Th)(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,g,y,v,_,b,w,E,x,S,A,T)},dr=m.dynCall_iiiddddji=function(e,t,r,n,i,o,s,a,l,c){return(dr=m.dynCall_iiiddddji=mt.Uh)(e,t,r,n,i,o,s,a,l,c)},fr=m.dynCall_iiiiiijii=function(e,t,r,n,i,o,s,a,l,c){return(fr=m.dynCall_iiiiiijii=mt.Vh)(e,t,r,n,i,o,s,a,l,c)},pr=m.dynCall_viiiiiji=function(e,t,r,n,i,o,s,a,l){return(pr=m.dynCall_viiiiiji=mt.Wh)(e,t,r,n,i,o,s,a,l)},mr=m.dynCall_iiiiiiijiii=function(e,t,r,n,i,o,s,a,l,c,u,h){return(mr=m.dynCall_iiiiiiijiii=mt.Xh)(e,t,r,n,i,o,s,a,l,c,u,h)},gr=m.dynCall_vijj=function(e,t,r,n,i,o){return(gr=m.dynCall_vijj=mt.Yh)(e,t,r,n,i,o)},yr=m.dynCall_iiiiiijjii=function(e,t,r,n,i,o,s,a,l,c,u,h){return(yr=m.dynCall_iiiiiijjii=mt.Zh)(e,t,r,n,i,o,s,a,l,c,u,h)},vr=m.dynCall_iiijjiji=function(e,t,r,n,i,o,s,a,l,c,u){return(vr=m.dynCall_iiijjiji=mt._h)(e,t,r,n,i,o,s,a,l,c,u)},_r=m.dynCall_iiiiiiiiiiiiijjii=function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,g,y,v,_){return(_r=m.dynCall_iiiiiiiiiiiiijjii=mt.$h)(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,g,y,v,_)},br=m.dynCall_iiiijiiiii=function(e,t,r,n,i,o,s,a,l,c,u){return(br=m.dynCall_iiiijiiiii=mt.ai)(e,t,r,n,i,o,s,a,l,c,u)},wr=m.dynCall_iijiiiiiii=function(e,t,r,n,i,o,s,a,l,c,u){return(wr=m.dynCall_iijiiiiiii=mt.bi)(e,t,r,n,i,o,s,a,l,c,u)},Er=m.dynCall_viijj=function(e,t,r,n,i,o,s){return(Er=m.dynCall_viijj=mt.ci)(e,t,r,n,i,o,s)},xr=m.dynCall_vijjj=function(e,t,r,n,i,o,s,a){return(xr=m.dynCall_vijjj=mt.di)(e,t,r,n,i,o,s,a)},Sr=m.dynCall_viijjji=function(e,t,r,n,i,o,s,a,l,c){return(Sr=m.dynCall_viijjji=mt.ei)(e,t,r,n,i,o,s,a,l,c)},Ar=m.dynCall_iiijj=function(e,t,r,n,i,o,s){return(Ar=m.dynCall_iiijj=mt.fi)(e,t,r,n,i,o,s)},Tr=m.dynCall_viiijj=function(e,t,r,n,i,o,s,a){return(Tr=m.dynCall_viiijj=mt.gi)(e,t,r,n,i,o,s,a)},Pr=m.dynCall_iiijiiii=function(e,t,r,n,i,o,s,a,l){return(Pr=m.dynCall_iiijiiii=mt.hi)(e,t,r,n,i,o,s,a,l)},Cr=m.dynCall_iiijiiiji=function(e,t,r,n,i,o,s,a,l,c,u){return(Cr=m.dynCall_iiijiiiji=mt.ii)(e,t,r,n,i,o,s,a,l,c,u)},Or=m.dynCall_iiijiiiii=function(e,t,r,n,i,o,s,a,l,c){return(Or=m.dynCall_iiijiiiii=mt.ji)(e,t,r,n,i,o,s,a,l,c)},Rr=m.dynCall_jiiji=function(e,t,r,n,i,o){return(Rr=m.dynCall_jiiji=mt.ki)(e,t,r,n,i,o)},Dr=m.dynCall_jiijji=function(e,t,r,n,i,o,s,a){return(Dr=m.dynCall_jiijji=mt.li)(e,t,r,n,i,o,s,a)},Ir=m.dynCall_iiiiiiiijjji=function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p){return(Ir=m.dynCall_iiiiiiiijjji=mt.mi)(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p)},kr=m.dynCall_iiiiiiiijiii=function(e,t,r,n,i,o,s,a,l,c,u,h,d){return(kr=m.dynCall_iiiiiiiijiii=mt.ni)(e,t,r,n,i,o,s,a,l,c,u,h,d)},Fr=m.dynCall_iiijjii=function(e,t,r,n,i,o,s,a,l){return(Fr=m.dynCall_iiijjii=mt.oi)(e,t,r,n,i,o,s,a,l)},jr=m.dynCall_iiiiijjii=function(e,t,r,n,i,o,s,a,l,c,u){return(jr=m.dynCall_iiiiijjii=mt.pi)(e,t,r,n,i,o,s,a,l,c,u)},Lr=m.dynCall_iiiiiiijji=function(e,t,r,n,i,o,s,a,l,c,u,h){return(Lr=m.dynCall_iiiiiiijji=mt.qi)(e,t,r,n,i,o,s,a,l,c,u,h)},Mr=m.dynCall_iiiiijji=function(e,t,r,n,i,o,s,a,l,c){return(Mr=m.dynCall_iiiiijji=mt.ri)(e,t,r,n,i,o,s,a,l,c)},Nr=m.dynCall_vijiii=function(e,t,r,n,i,o,s){return(Nr=m.dynCall_vijiii=mt.si)(e,t,r,n,i,o,s)},$r=m.dynCall_vijid=function(e,t,r,n,i,o){return($r=m.dynCall_vijid=mt.ti)(e,t,r,n,i,o)},Gr=m.dynCall_iiiiiiij=function(e,t,r,n,i,o,s,a,l){return(Gr=m.dynCall_iiiiiiij=mt.ui)(e,t,r,n,i,o,s,a,l)},zr=m.dynCall_iijdddd=function(e,t,r,n,i,o,s,a){return(zr=m.dynCall_iijdddd=mt.vi)(e,t,r,n,i,o,s,a)},Ur=m.dynCall_iiiiiiiijii=function(e,t,r,n,i,o,s,a,l,c,u,h){return(Ur=m.dynCall_iiiiiiiijii=mt.wi)(e,t,r,n,i,o,s,a,l,c,u,h)},Br=m.dynCall_iiiiijiiii=function(e,t,r,n,i,o,s,a,l,c,u){return(Br=m.dynCall_iiiiijiiii=mt.xi)(e,t,r,n,i,o,s,a,l,c,u)},Vr=m.dynCall_viji=function(e,t,r,n,i){return(Vr=m.dynCall_viji=mt.yi)(e,t,r,n,i)},Kr=m.dynCall_viijji=function(e,t,r,n,i,o,s,a){return(Kr=m.dynCall_viijji=mt.zi)(e,t,r,n,i,o,s,a)},qr=m.dynCall_jijj=function(e,t,r,n,i,o){return(qr=m.dynCall_jijj=mt.Ai)(e,t,r,n,i,o)},Wr=m.dynCall_iijjjddi=function(e,t,r,n,i,o,s,a,l,c,u){return(Wr=m.dynCall_iijjjddi=mt.Bi)(e,t,r,n,i,o,s,a,l,c,u)},Hr=m.dynCall_vijiidddi=function(e,t,r,n,i,o,s,a,l,c){return(Hr=m.dynCall_vijiidddi=mt.Ci)(e,t,r,n,i,o,s,a,l,c)},Yr=m.dynCall_jiiid=function(e,t,r,n,i){return(Yr=m.dynCall_jiiid=mt.Di)(e,t,r,n,i)},Xr=m.dynCall_iiiiiiiiiijiiiii=function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,g,y){return(Xr=m.dynCall_iiiiiiiiiijiiiii=mt.Ei)(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,g,y)},Zr=m.dynCall_iiijii=function(e,t,r,n,i,o,s){return(Zr=m.dynCall_iiijii=mt.Fi)(e,t,r,n,i,o,s)},Jr=m.dynCall_jji=function(e,t,r,n){return(Jr=m.dynCall_jji=mt.Gi)(e,t,r,n)},Qr=m.dynCall_viiij=function(e,t,r,n,i,o){return(Qr=m.dynCall_viiij=mt.Hi)(e,t,r,n,i,o)},en=m.dynCall_iiiiiiiiiiiiiijj=function(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,g,y,v){return(en=m.dynCall_iiiiiiiiiiiiiijj=mt.Ii)(e,t,r,n,i,o,s,a,l,c,u,h,d,f,p,g,y,v)};function tn(){function t(){ct||(ct=!0,m.calledRun=!0,U)||(m.noFSInit||je.init.initialized||je.init(),je.ignorePermissions=!1,Ge.root=je.mount(Ge,{},null),ae(q),e(m),m.onRuntimeInitialized&&m.onRuntimeInitialized(),function(){if(m.postRun)for("function"==typeof m.postRun&&(m.postRun=[m.postRun]);m.postRun.length;)e=m.postRun.shift(),W.unshift(e);var e;ae(W)}())}0<H||(function(){if(m.preRun)for("function"==typeof m.preRun&&(m.preRun=[m.preRun]);m.preRun.length;)e=m.preRun.shift(),K.unshift(e);var e;ae(K)}(),0<H)||(m.setStatus?(m.setStatus("Running..."),setTimeout((function(){setTimeout((function(){m.setStatus("")}),1),t()}),1)):t())}if(m.addRunDependency=X,m.removeRunDependency=Z,m.FS_createPath=je.createPath,m.FS_createLazyFile=je.createLazyFile,m.FS_createDevice=je.createDevice,m.ENV=Ze,m.ccall=ot,m.cwrap=function(e,t,r,n){var i=!r||r.every((function(e){return"number"===e||"boolean"===e}));return"string"!==t&&i&&!n?it(e):function(){return ot(e,t,r,arguments)}},m.addFunction=function(e,t){if(n=e,lt||(lt=new WeakMap,function(e,t){if(lt)for(var r=e;r<e+t;r++){var n=he(r);n&&lt.set(n,r)}}(0,de.length)),n=lt.get(n)||0)return n;var r,n=function(){if(ft.length)return ft.pop();try{de.grow(1)}catch(e){if(e instanceof RangeError)throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.";throw e}return de.length-1}();try{st(n,e)}catch(o){if(!(o instanceof TypeError))throw o;r=e;var i="function"==typeof WebAssembly.Function?new WebAssembly.Function(function(e){for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n<e.length;++n)r.parameters.push(t[e[n]]);return r}(t),r):(function(e,t){var r=e.slice(0,1),n=e.slice(1),i={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),dt(n.length,t);for(var o=0;o<n.length;++o)t.push(i[n[o]]);"v"==r?t.push(0):t.push(1,i[r])}(t,t=[1]),dt(t.length,i=[0,97,115,109,1,0,0,0,1]),i.push.apply(i,t),i.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),t=new WebAssembly.Module(new Uint8Array(i)),new WebAssembly.Instance(t,{e:{f:r}}).exports.f);st(n,i)}return lt.set(e,n),n},m.setValue=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"i8";switch(r=r.endsWith("*")?"*":r){case"i1":case"i8":k[0|e]=t;break;case"i16":j[e>>1]=t;break;case"i32":L[e>>2]=t;break;case"i64":J("to do setValue(i64) use WASM_BIGINT");case"float":N[e>>2]=t;break;case"double":$[e>>3]=t;break;case"*":M[e>>2]=t;break;default:J("invalid type for setValue: ".concat(r))}},m.getValue=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"i8";switch(t=t.endsWith("*")?"*":t){case"i1":case"i8":return k[0|e];case"i16":return j[e>>1];case"i32":return L[e>>2];case"i64":J("to do getValue(i64) use WASM_BIGINT");case"float":return N[e>>2];case"double":return $[e>>3];case"*":return M[e>>2];default:J("invalid type for getValue: ".concat(t))}},m.UTF8ToString=ue,m.stringToUTF8=$e,m.lengthBytesUTF8=Se,m.FS_createPreloadedFile=je.createPreloadedFile,m.FS=je,m.FS_createDataFile=je.createDataFile,m.FS_unlink=je.unlink,m.MEMFS=Re,m.WORKERFS=Fe,m.NODEFS=ke,Y=function e(){ct||tn(),ct||(Y=e)},m.preInit)for("function"==typeof m.preInit&&(m.preInit=[m.preInit]);0<m.preInit.length;)m.preInit.pop()();return tn(),d.ready};var b=h(g.exports),w={Module:{}};function E(){var e=w.CPLGetLastErrorMsg(),t=w.CPLGetLastErrorNo();return w.CPLErrorReset(),{no:t,message:e}}function x(e){for(var t=[],r={},n=0;n<e.length;n+=1){var i=e[n];"--config"===i?(r[e[n+1]]=e[n+2],n+=2):t.push(i)}var o=t.map((function(e){return w.Module._malloc(w.Module.lengthBytesUTF8(e)+1)})),s=(o.push(0),Uint32Array.from(o)),a=(t.forEach((function(e,t){w.Module.stringToUTF8(e,s[t],w.Module.lengthBytesUTF8(e)+1)})),w.Module._malloc(s.length*s.BYTES_PER_ELEMENT));return w.Module.HEAPU32.set(s,a/s.BYTES_PER_ELEMENT),{ptr:a,ptrArray:o,config:r}}function S(e){w.Module._free(e.ptr),e.ptrArray.forEach((function(e){w.Module._free(e)}))}var A="/input",T="/output",P=T,C=(_={},g=d(Object.freeze({__proto__:null,default:{}})),d(Object.freeze({__proto__:null,default:{}}))),O=_,R=(O.parser=function(e,t){return new D(e,t)},O.SAXParser=D,O.SAXStream=F,O.createStream=function(e,t){return new F(e,t)},O.MAX_BUFFER_LENGTH=65536,["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"]);function D(e,t){if(!(this instanceof D))return new D(e,t);for(var r=this,n=r,i=0,o=R.length;i<o;i++)n[R[i]]="";r.q=r.c="",r.bufferCheckPosition=O.MAX_BUFFER_LENGTH,r.opt=t||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!e,r.noscript=!(!e&&!r.opt.noscript),r.state=X.BEGIN,r.strictEntities=r.opt.strictEntities,r.ENTITIES=r.strictEntities?Object.create(O.XML_ENTITIES):Object.create(O.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=Object.create($)),r.trackPosition=!1!==r.opt.position,r.trackPosition&&(r.position=r.line=r.column=0),Z(r,"onready")}O.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t,r=[];for(t in e)e.hasOwnProperty(t)&&r.push(t);return r}),D.prototype={end:function(){re(this)},write:function(e){var t=this;if(this.error)throw this.error;if(t.closed)return te(t,"Cannot write after close. Assign an onready handler.");if(null===e)return re(t);"object"==typeof e&&(e=e.toString());for(var r,n,i=0,o="";o=ue(e,i++),t.c=o;)switch(t.trackPosition&&(t.position++,"\n"===o?(t.line++,t.column=0):t.column++),t.state){case X.BEGIN:if(t.state=X.BEGIN_WHITESPACE,"\ufeff"===o)continue;ce(t,o);continue;case X.BEGIN_WHITESPACE:ce(t,o);continue;case X.TEXT:if(t.sawRoot&&!t.closedRoot){for(var s=i-1;o&&"<"!==o&&"&"!==o;)(o=ue(e,i++))&&t.trackPosition&&(t.position++,"\n"===o?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(s,i-1)}"<"!==o||t.sawRoot&&t.closedRoot&&!t.strict?(V(o)||t.sawRoot&&!t.closedRoot||ne(t,"Text data outside of root node."),"&"===o?t.state=X.TEXT_ENTITY:t.textNode+=o):(t.state=X.OPEN_WAKA,t.startTagPosition=t.position);continue;case X.SCRIPT:"<"===o?t.state=X.SCRIPT_ENDING:t.script+=o;continue;case X.SCRIPT_ENDING:"/"===o?t.state=X.CLOSE_TAG:(t.script+="<"+o,t.state=X.SCRIPT);continue;case X.OPEN_WAKA:"!"===o?(t.state=X.SGML_DECL,t.sgmlDecl=""):V(o)||(q(G,o)?(t.state=X.OPEN_TAG,t.tagName=o):"/"===o?(t.state=X.CLOSE_TAG,t.tagName=""):"?"===o?(t.state=X.PROC_INST,t.procInstName=t.procInstBody=""):(ne(t,"Unencoded <"),t.startTagPosition+1<t.position&&(s=t.position-t.startTagPosition,o=new Array(s).join(" ")+o),t.textNode+="<"+o,t.state=X.TEXT));continue;case X.SGML_DECL:(t.sgmlDecl+o).toUpperCase()===j?(J(t,"onopencdata"),t.state=X.CDATA,t.sgmlDecl="",t.cdata=""):t.sgmlDecl+o==="--"?(t.state=X.COMMENT,t.comment="",t.sgmlDecl=""):(t.sgmlDecl+o).toUpperCase()===L?(t.state=X.DOCTYPE,(t.doctype||t.sawRoot)&&ne(t,"Inappropriately located doctype declaration"),t.doctype="",t.sgmlDecl=""):">"===o?(J(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=X.TEXT):(K(o)&&(t.state=X.SGML_DECL_QUOTED),t.sgmlDecl+=o);continue;case X.SGML_DECL_QUOTED:o===t.q&&(t.state=X.SGML_DECL,t.q=""),t.sgmlDecl+=o;continue;case X.DOCTYPE:">"===o?(t.state=X.TEXT,J(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=o,"["===o?t.state=X.DOCTYPE_DTD:K(o)&&(t.state=X.DOCTYPE_QUOTED,t.q=o));continue;case X.DOCTYPE_QUOTED:t.doctype+=o,o===t.q&&(t.q="",t.state=X.DOCTYPE);continue;case X.DOCTYPE_DTD:t.doctype+=o,"]"===o?t.state=X.DOCTYPE:K(o)&&(t.state=X.DOCTYPE_DTD_QUOTED,t.q=o);continue;case X.DOCTYPE_DTD_QUOTED:t.doctype+=o,o===t.q&&(t.state=X.DOCTYPE_DTD,t.q="");continue;case X.COMMENT:"-"===o?t.state=X.COMMENT_ENDING:t.comment+=o;continue;case X.COMMENT_ENDING:"-"===o?(t.state=X.COMMENT_ENDED,t.comment=ee(t.opt,t.comment),t.comment&&J(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+o,t.state=X.COMMENT);continue;case X.COMMENT_ENDED:">"!==o?(ne(t,"Malformed comment"),t.comment+="--"+o,t.state=X.COMMENT):t.state=X.TEXT;continue;case X.CDATA:"]"===o?t.state=X.CDATA_ENDING:t.cdata+=o;continue;case X.CDATA_ENDING:"]"===o?t.state=X.CDATA_ENDING_2:(t.cdata+="]"+o,t.state=X.CDATA);continue;case X.CDATA_ENDING_2:">"===o?(t.cdata&&J(t,"oncdata",t.cdata),J(t,"onclosecdata"),t.cdata="",t.state=X.TEXT):"]"===o?t.cdata+="]":(t.cdata+="]]"+o,t.state=X.CDATA);continue;case X.PROC_INST:"?"===o?t.state=X.PROC_INST_ENDING:V(o)?t.state=X.PROC_INST_BODY:t.procInstName+=o;continue;case X.PROC_INST_BODY:if(!t.procInstBody&&V(o))continue;"?"===o?t.state=X.PROC_INST_ENDING:t.procInstBody+=o;continue;case X.PROC_INST_ENDING:">"===o?(J(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=X.TEXT):(t.procInstBody+="?"+o,t.state=X.PROC_INST_BODY);continue;case X.OPEN_TAG:q(z,o)?t.tagName+=o:(function(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0,J(e,"onopentagstart",r)}(t),">"===o?se(t):"/"===o?t.state=X.OPEN_TAG_SLASH:(V(o)||ne(t,"Invalid character in tag name"),t.state=X.ATTRIB));continue;case X.OPEN_TAG_SLASH:">"===o?(se(t,!0),ae(t)):(ne(t,"Forward-slash in opening tag not followed by >"),t.state=X.ATTRIB);continue;case X.ATTRIB:if(V(o))continue;">"===o?se(t):"/"===o?t.state=X.OPEN_TAG_SLASH:q(G,o)?(t.attribName=o,t.attribValue="",t.state=X.ATTRIB_NAME):ne(t,"Invalid attribute name");continue;case X.ATTRIB_NAME:"="===o?t.state=X.ATTRIB_VALUE:">"===o?(ne(t,"Attribute without value"),t.attribValue=t.attribName,oe(t),se(t)):V(o)?t.state=X.ATTRIB_NAME_SAW_WHITE:q(z,o)?t.attribName+=o:ne(t,"Invalid attribute name");continue;case X.ATTRIB_NAME_SAW_WHITE:if("="===o)t.state=X.ATTRIB_VALUE;else{if(V(o))continue;ne(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",J(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===o?se(t):q(G,o)?(t.attribName=o,t.state=X.ATTRIB_NAME):(ne(t,"Invalid attribute name"),t.state=X.ATTRIB)}continue;case X.ATTRIB_VALUE:if(V(o))continue;K(o)?(t.q=o,t.state=X.ATTRIB_VALUE_QUOTED):(ne(t,"Unquoted attribute value"),t.state=X.ATTRIB_VALUE_UNQUOTED,t.attribValue=o);continue;case X.ATTRIB_VALUE_QUOTED:if(o!==t.q){"&"===o?t.state=X.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=o;continue}oe(t),t.q="",t.state=X.ATTRIB_VALUE_CLOSED;continue;case X.ATTRIB_VALUE_CLOSED:V(o)?t.state=X.ATTRIB:">"===o?se(t):"/"===o?t.state=X.OPEN_TAG_SLASH:q(G,o)?(ne(t,"No whitespace between attributes"),t.attribName=o,t.attribValue="",t.state=X.ATTRIB_NAME):ne(t,"Invalid attribute name");continue;case X.ATTRIB_VALUE_UNQUOTED:if(!function(e){return">"===e||V(e)}(o)){"&"===o?t.state=X.ATTRIB_VALUE_ENTITY_U:t.attribValue+=o;continue}oe(t),">"===o?se(t):t.state=X.ATTRIB;continue;case X.CLOSE_TAG:if(t.tagName)">"===o?ae(t):q(z,o)?t.tagName+=o:t.script?(t.script+="</"+t.tagName,t.tagName="",t.state=X.SCRIPT):(V(o)||ne(t,"Invalid tagname in closing tag"),t.state=X.CLOSE_TAG_SAW_WHITE);else{if(V(o))continue;!function(e,t){return!q(e,t)}(G,o)?t.tagName=o:t.script?(t.script+="</"+o,t.state=X.SCRIPT):ne(t,"Invalid tagname in closing tag.")}continue;case X.CLOSE_TAG_SAW_WHITE:if(V(o))continue;">"===o?ae(t):ne(t,"Invalid characters in closing tag");continue;case X.TEXT_ENTITY:case X.ATTRIB_VALUE_ENTITY_Q:case X.ATTRIB_VALUE_ENTITY_U:switch(t.state){case X.TEXT_ENTITY:r=X.TEXT,n="textNode";break;case X.ATTRIB_VALUE_ENTITY_Q:r=X.ATTRIB_VALUE_QUOTED,n="attribValue";break;case X.ATTRIB_VALUE_ENTITY_U:r=X.ATTRIB_VALUE_UNQUOTED,n="attribValue"}var a;";"===o?t.opt.unparsedEntities?(a=le(t),t.entity="",t.state=r,t.write(a)):(t[n]+=le(t),t.entity="",t.state=r):q(t.entity.length?B:U,o)?t.entity+=o:(ne(t,"Invalid character in entity name"),t[n]+="&"+t.entity+o,t.entity="",t.state=r);continue;default:throw new Error(t,"Unknown state: "+t.state)}return t.position>=t.bufferCheckPosition&&function(e){for(var t=Math.max(O.MAX_BUFFER_LENGTH,10),r=0,n=0,i=R.length;n<i;n++){var o=e[R[n]].length;if(t<o)switch(R[n]){case"textNode":Q(e);break;case"cdata":J(e,"oncdata",e.cdata),e.cdata="";break;case"script":J(e,"onscript",e.script),e.script="";break;default:te(e,"Max buffer length exceeded: "+R[n])}r=Math.max(r,o)}var s=O.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=s+e.position}(t),t},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;Q(e=this),""!==e.cdata&&(J(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(J(e,"onscript",e.script),e.script="")}};try{I=g.Stream}catch(d){I=function(){}}var I=I||function(){},k=O.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));function F(e,t){if(!(this instanceof F))return new F(e,t);I.apply(this),this._parser=new D(e,t),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null},this._decoder=null,k.forEach((function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser["on"+e]=t;r.on(e,t)},enumerable:!0,configurable:!1})}))}(F.prototype=Object.create(I.prototype,{constructor:{value:F}})).write=function(e){var t;return"function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e)&&(this._decoder||(t=C.StringDecoder,this._decoder=new t("utf8")),e=this._decoder.write(e)),this._parser.write(e.toString()),this.emit("data",e),!0},F.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},F.prototype.on=function(e,t){var r=this;return r._parser["on"+e]||-1===k.indexOf(e)||(r._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),I.prototype.on.call(r,e,t)};var j="[CDATA[",L="DOCTYPE",M="http://www.w3.org/XML/1998/namespace",N="http://www.w3.org/2000/xmlns/",$={xml:M,xmlns:N},G=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,z=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,U=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,B=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function V(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function K(e){return'"'===e||"'"===e}function q(e,t){return e.test(t)}var W,H,Y,X=0;for(W in O.STATE={BEGIN:X++,BEGIN_WHITESPACE:X++,TEXT:X++,TEXT_ENTITY:X++,OPEN_WAKA:X++,SGML_DECL:X++,SGML_DECL_QUOTED:X++,DOCTYPE:X++,DOCTYPE_QUOTED:X++,DOCTYPE_DTD:X++,DOCTYPE_DTD_QUOTED:X++,COMMENT_STARTING:X++,COMMENT:X++,COMMENT_ENDING:X++,COMMENT_ENDED:X++,CDATA:X++,CDATA_ENDING:X++,CDATA_ENDING_2:X++,PROC_INST:X++,PROC_INST_BODY:X++,PROC_INST_ENDING:X++,OPEN_TAG:X++,OPEN_TAG_SLASH:X++,ATTRIB:X++,ATTRIB_NAME:X++,ATTRIB_NAME_SAW_WHITE:X++,ATTRIB_VALUE:X++,ATTRIB_VALUE_QUOTED:X++,ATTRIB_VALUE_CLOSED:X++,ATTRIB_VALUE_UNQUOTED:X++,ATTRIB_VALUE_ENTITY_Q:X++,ATTRIB_VALUE_ENTITY_U:X++,CLOSE_TAG:X++,CLOSE_TAG_SAW_WHITE:X++,SCRIPT:X++,SCRIPT_ENDING:X++},O.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},O.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(O.ENTITIES).forEach((function(e){var t="number"==typeof(t=O.ENTITIES[e])?String.fromCharCode(t):t;O.ENTITIES[e]=t})),O.STATE)O.STATE[O.STATE[W]]=W;function Z(e,t,r){e[t]&&e[t](r)}function J(e,t,r){e.textNode&&Q(e),Z(e,t,r)}function Q(e){e.textNode=ee(e.opt,e.textNode),e.textNode&&Z(e,"ontext",e.textNode),e.textNode=""}function ee(e,t){return e.trim&&(t=t.trim()),e.normalize?t.replace(/\s+/g," "):t}function te(e,t){return Q(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,Z(e,"onerror",t),e}function re(e){return e.sawRoot&&!e.closedRoot&&ne(e,"Unclosed root tag"),e.state!==X.BEGIN&&e.state!==X.BEGIN_WHITESPACE&&e.state!==X.TEXT&&te(e,"Unexpected end"),Q(e),e.c="",e.closed=!0,Z(e,"onend"),D.call(e,e.strict,e.opt),e}function ne(e,t){if("object"!=typeof e||!(e instanceof D))throw new Error("bad call to strictFail");e.strict&&te(e,t)}function ie(e,t){var r=(n=e.indexOf(":")<0?["",e]:e.split(":"))[0],n=n[1];return t&&"xmlns"===e&&(r="xmlns",n=""),{prefix:r,local:n}}function oe(e){var t,r,n;e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName)||(e.opt.xmlns?(r=(t=ie(e.attribName,!0)).prefix,t=t.local,"xmlns"===r&&("xml"===t&&e.attribValue!==M?ne(e,"xml: prefix must be bound to "+M+"\nActual: "+e.attribValue):"xmlns"===t&&e.attribValue!==N?ne(e,"xmlns: prefix must be bound to "+N+"\nActual: "+e.attribValue):(r=e.tag,n=e.tags[e.tags.length-1]||e,r.ns===n.ns&&(r.ns=Object.create(n.ns)),r.ns[t]=e.attribValue)),e.attribList.push([e.attribName,e.attribValue])):(e.tag.attributes[e.attribName]=e.attribValue,J(e,"onattribute",{name:e.attribName,value:e.attribValue}))),e.attribName=e.attribValue=""}function se(e,t){if(e.opt.xmlns){var r=e.tag,n=ie(e.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(ne(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),r.uri=n.prefix),n=e.tags[e.tags.length-1]||e,r.ns&&n.ns!==r.ns&&Object.keys(r.ns).forEach((function(t){J(e,"onopennamespace",{prefix:t,uri:r.ns[t]})}));for(var i=0,o=e.attribList.length;i<o;i++){var s=(a=e.attribList[i])[0],a=a[1],l=(c=ie(s,!0)).prefix,c=c.local,u=""!==l&&r.ns[l]||"";a={name:s,value:a,prefix:l,local:c,uri:u},l&&"xmlns"!==l&&!u&&(ne(e,"Unbound namespace prefix: "+JSON.stringify(l)),a.uri=l),e.tag.attributes[s]=a,J(e,"onattribute",a)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),J(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=X.TEXT:e.state=X.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function ae(e){if(e.tagName){if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=X.SCRIPT);J(e,"onscript",e.script),e.script=""}for(var t=e.tags.length,r=e.tagName,n=r=e.strict?r:r[e.looseCase]();t--&&e.tags[t].name!==n;)ne(e,"Unexpected close tag");if(t<0)ne(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">";else{e.tagName=r;for(var i=e.tags.length;i-- >t;){var o,s=e.tag=e.tags.pop();for(o in e.tagName=e.tag.name,J(e,"onclosetag",e.tagName),s.ns)s.ns[o];var a=e.tags[e.tags.length-1]||e;e.opt.xmlns&&s.ns!==a.ns&&Object.keys(s.ns).forEach((function(t){var r=s.ns[t];J(e,"onclosenamespace",{prefix:t,uri:r})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0}}else ne(e,"Weird empty close tag."),e.textNode+="</>";e.state=X.TEXT}function le(e){var t,r=e.entity,n=r.toLowerCase(),i="";return e.ENTITIES[r]||e.ENTITIES[n]||("#"===(r=n).charAt(0)&&(i="x"===r.charAt(1)?(r=r.slice(2),(t=parseInt(r,16)).toString(16)):(r=r.slice(1),(t=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==r?(ne(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function ce(e,t){"<"===t?(e.state=X.OPEN_WAKA,e.startTagPosition=e.position):V(t)||(ne(e,"Non-whitespace before first tag."),e.textNode=t,e.state=X.TEXT)}function ue(e,t){return t<e.length?e.charAt(t):""}function he(){var e=[],t=-1,r=arguments.length;if(!r)return"";for(var n="";++t<r;){var i=Number(arguments[t]);if(!isFinite(i)||i<0||1114111<i||Y(i)!==i)throw RangeError("Invalid code point: "+i);i<=65535?e.push(i):e.push(55296+((i-=65536)>>10),i%1024+56320),(t+1===r||16384<e.length)&&(n+=H.apply(null,e),e.length=0)}return n}X=O.STATE,String.fromCodePoint||(H=String.fromCharCode,Y=Math.floor,Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:he,configurable:!0,writable:!0}):String.fromCodePoint=he),g=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)};var de,fe,pe=g,me={copyOptions:function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r},ensureFlagExists:function(e,t){e in t&&"boolean"==typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){"spaces"in e&&("number"==typeof e.spaces||"string"==typeof e.spaces)||(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"==typeof e.alwaysArray||pe(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"==typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}},ge=_,ye=me,ve=g;function _e(e){var t,r=Number(e);return isNaN(r)?"true"===(t=e.toLowerCase())||"false"!==t&&e:r}function be(e,t){var r,n;if(de.compact){if(!fe[de[e+"Key"]]&&(ve(de.alwaysArray)?-1!==de.alwaysArray.indexOf(de[e+"Key"]):de.alwaysArray)&&(fe[de[e+"Key"]]=[]),fe[de[e+"Key"]]&&!ve(fe[de[e+"Key"]])&&(fe[de[e+"Key"]]=[fe[de[e+"Key"]]]),e+"Fn"in de&&"string"==typeof t&&(t=de[e+"Fn"](t,fe)),"instruction"===e&&("instructionFn"in de||"instructionNameFn"in de))for(r in t)t.hasOwnProperty(r)&&("instructionFn"in de?t[r]=de.instructionFn(t[r],r,fe):(n=t[r],delete t[r],t[de.instructionNameFn(r,n,fe)]=n));ve(fe[de[e+"Key"]])?fe[de[e+"Key"]].push(t):fe[de[e+"Key"]]=t}else{fe[de.elementsKey]||(fe[de.elementsKey]=[]);var i={};if("instruction"===(i[de.typeKey]=e)){for(r in t)if(t.hasOwnProperty(r))break;i[de.nameKey]="instructionNameFn"in de?de.instructionNameFn(r,t,fe):r,de.instructionHasAttributes?(i[de.attributesKey]=t[r][de.attributesKey],"instructionFn"in de&&(i[de.attributesKey]=de.instructionFn(i[de.attributesKey],r,fe))):("instructionFn"in de&&(t[r]=de.instructionFn(t[r],r,fe)),i[de.instructionKey]=t[r])}else e+"Fn"in de&&(t=de[e+"Fn"](t,fe)),i[de[e+"Key"]]=t;de.addParent&&(i[de.parentKey]=fe),fe[de.elementsKey].push(i)}}function we(e){var t,r;if("attributesFn"in de&&(e=e&&de.attributesFn(e,fe)),(de.trim||"attributeValueFn"in de||"attributeNameFn"in de||de.nativeTypeAttributes)&&e)for(t in e)e.hasOwnProperty(t)&&(de.trim&&(e[t]=e[t].trim()),de.nativeTypeAttributes&&(e[t]=_e(e[t])),"attributeValueFn"in de&&(e[t]=de.attributeValueFn(e[t],t,fe)),"attributeNameFn"in de)&&(r=e[t],delete e[t],e[de.attributeNameFn(t,e[t],fe)]=r);return e}function Ee(e){var t,r={};if(e.body&&("xml"===e.name.toLowerCase()||de.instructionHasAttributes)){for(var n,i=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(n=i.exec(e.body));)r[n[1]]=n[2]||n[3]||n[4];r=we(r)}"xml"===e.name.toLowerCase()?de.ignoreDeclaration||(fe[de.declarationKey]={},Object.keys(r).length&&(fe[de.declarationKey][de.attributesKey]=r),de.addParent&&(fe[de.declarationKey][de.parentKey]=fe)):de.ignoreInstruction||(de.trim&&(e.body=e.body.trim()),t={},de.instructionHasAttributes&&Object.keys(r).length?(t[e.name]={},t[e.name][de.attributesKey]=r):t[e.name]=e.body,be("instruction",t))}function xe(e,t){if("object"==typeof e&&(t=e.attributes,e=e.name),t=we(t),"elementNameFn"in de&&(e=de.elementNameFn(e,fe)),de.compact){var r,n={};if(!de.ignoreAttributes&&t&&Object.keys(t).length)for(r in n[de.attributesKey]={},t)t.hasOwnProperty(r)&&(n[de.attributesKey][r]=t[r]);e in fe||(ve(de.alwaysArray)?-1===de.alwaysArray.indexOf(e):!de.alwaysArray)||(fe[e]=[]),fe[e]&&!ve(fe[e])&&(fe[e]=[fe[e]]),ve(fe[e])?fe[e].push(n):fe[e]=n}else fe[de.elementsKey]||(fe[de.elementsKey]=[]),(n={})[de.typeKey]="element",n[de.nameKey]=e,!de.ignoreAttributes&&t&&Object.keys(t).length&&(n[de.attributesKey]=t),de.alwaysChildren&&(n[de.elementsKey]=[]),fe[de.elementsKey].push(n);n[de.parentKey]=fe,fe=n}function Se(e){de.ignoreText||(e.trim()||de.captureSpacesBetweenElements)&&(de.trim&&(e=e.trim()),de.nativeType&&(e=_e(e)),be("text",e=de.sanitize?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e))}function Ae(e){de.ignoreComment||be("comment",e=de.trim?e.trim():e)}function Te(e){var t=fe[de.parentKey];de.addParent||delete fe[de.parentKey],fe=t}function Pe(e){de.ignoreCdata||be("cdata",e=de.trim?e.trim():e)}function Ce(e){de.ignoreDoctype||(e=e.replace(/^ /,""),be("doctype",e=de.trim?e.trim():e))}function Oe(e){e.note=e}function Re(e,t){var r=ge.parser(!0,{}),n={};return fe=n,de=ye.copyOptions(t),ye.ensureFlagExists("ignoreDeclaration",de),ye.ensureFlagExists("ignoreInstruction",de),ye.ensureFlagExists("ignoreAttributes",de),ye.ensureFlagExists("ignoreText",de),ye.ensureFlagExists("ignoreComment",de),ye.ensureFlagExists("ignoreCdata",de),ye.ensureFlagExists("ignoreDoctype",de),ye.ensureFlagExists("compact",de),ye.ensureFlagExists("alwaysChildren",de),ye.ensureFlagExists("addParent",de),ye.ensureFlagExists("trim",de),ye.ensureFlagExists("nativeType",de),ye.ensureFlagExists("nativeTypeAttributes",de),ye.ensureFlagExists("sanitize",de),ye.ensureFlagExists("instructionHasAttributes",de),ye.ensureFlagExists("captureSpacesBetweenElements",de),ye.ensureAlwaysArrayExists(de),ye.ensureKeyExists("declaration",de),ye.ensureKeyExists("instruction",de),ye.ensureKeyExists("attributes",de),ye.ensureKeyExists("text",de),ye.ensureKeyExists("comment",de),ye.ensureKeyExists("cdata",de),ye.ensureKeyExists("doctype",de),ye.ensureKeyExists("type",de),ye.ensureKeyExists("name",de),ye.ensureKeyExists("elements",de),ye.ensureKeyExists("parent",de),ye.checkFnExists("doctype",de),ye.checkFnExists("instruction",de),ye.checkFnExists("cdata",de),ye.checkFnExists("comment",de),ye.checkFnExists("text",de),ye.checkFnExists("instructionName",de),ye.checkFnExists("elementName",de),ye.checkFnExists("attributeName",de),ye.checkFnExists("attributeValue",de),ye.checkFnExists("attributes",de),r.opt={strictEntities:!0},r.onopentag=xe,r.ontext=Se,r.oncomment=Ae,r.onclosetag=Te,r.onerror=Oe,r.oncdata=Pe,r.ondoctype=Ce,r.onprocessinginstruction=Ee,r.write(e).close(),n[de.elementsKey]&&(t=n[de.elementsKey],delete n[de.elementsKey],n[de.elementsKey]=t,delete n.text),n}var De,Ie,ke=me,Fe=Re,je=me,Le=g;function Me(e,t,r){return(!r&&e.spaces?"\n":"")+Array(t+1).join(e.spaces)}function Ne(e,t,r){if(t.ignoreAttributes)return"";var n,i,o,s,a=[];for(n in e="attributesFn"in t?t.attributesFn(e,Ie,De):e)e.hasOwnProperty(n)&&null!==e[n]&&void 0!==e[n]&&(s=t.noQuotesForNativeAttributes&&"string"!=typeof e[n]?"":'"',i=(i=""+e[n]).replace(/"/g,"&quot;"),o="attributeNameFn"in t?t.attributeNameFn(n,i,Ie,De):n,a.push(t.spaces&&t.indentAttributes?Me(t,r+1,!1):" "),a.push(o+"="+s+("attributeValueFn"in t?t.attributeValueFn(i,n,Ie,De):i)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&a.push(Me(t,r,!1)),a.join("")}function $e(e,t,r){return De=e,Ie="xml",t.ignoreDeclaration?"":"<?xml"+Ne(e[t.attributesKey],t,r)+"?>"}function Ge(e,t,r){if(t.ignoreInstruction)return"";for(var n in e)if(e.hasOwnProperty(n))break;var i="instructionNameFn"in t?t.instructionNameFn(n,e[n],Ie,De):n;return"object"==typeof e[n]?"<?"+(Ie=i)+Ne((De=e)[n][t.attributesKey],t,r)+"?>":(r=e[n]||"","<?"+i+((r="instructionFn"in t?t.instructionFn(r,n,Ie,De):r)?" "+r:"")+"?>")}function ze(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,Ie,De):e)+"--\x3e"}function Ue(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Ie,De):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function Be(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Ie,De):e)+">"}function Ve(e,t){return t.ignoreText?"":(e=(e=(e=""+e).replace(/&amp;/g,"&")).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,Ie,De):e)}function Ke(e,t,r,n){return e.reduce((function(e,i){var o=Me(t,r,n&&!e);switch(i.type){case"element":return e+o+function(e,t,r){Ie=(De=e).name;var n=[],i="elementNameFn"in t?t.elementNameFn(e.name,e):e.name,o=(n.push("<"+i),e[t.attributesKey]&&n.push(Ne(e[t.attributesKey],t,r)),e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&"preserve"===e[t.attributesKey]["xml:space"]);return(o=o||("fullTagEmptyElementFn"in t?t.fullTagEmptyElementFn(e.name,e):t.fullTagEmptyElement))?(n.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(n.push(Ke(e[t.elementsKey],t,r+1)),Ie=(De=e).name),n.push(t.spaces&&function(e,t){var r;if(e.elements&&e.elements.length)for(r=0;r<e.elements.length;++r)switch(e.elements[r][t.typeKey]){case"text":if(t.indentText)return 1;break;case"cdata":if(t.indentCdata)return 1;break;case"instruction":if(t.indentInstruction)return 1;break;default:return 1}}(e,t)?"\n"+Array(r+1).join(t.spaces):""),n.push("</"+i+">")):n.push("/>"),n.join("")}(i,t,r);case"comment":return e+o+ze(i[t.commentKey],t);case"doctype":return e+o+Be(i[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?o:"")+Ue(i[t.cdataKey],t);case"text":return e+(t.indentText?o:"")+Ve(i[t.textKey],t);case"instruction":var s={};return s[i[t.nameKey]]=i[t.attributesKey]?i:i[t.instructionKey],e+(t.indentInstruction?o:"")+Ge(s,t,r)}}),"")}function qe(e,t,r){for(var n in e)if(e.hasOwnProperty(n))switch(n){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||r)return!0;break;case t.cdataKey:if(t.indentCdata||r)return!0;break;case t.instructionKey:if(t.indentInstruction||r)return!0;break;case t.doctypeKey:case t.commentKey:default:return!0}return!1}function We(e,t,r,n){var i,o,s,a=[];for(o in e)if(e.hasOwnProperty(o))for(s=Le(e[o])?e[o]:[e[o]],i=0;i<s.length;++i){switch(o){case t.declarationKey:a.push($e(s[i],t,r));break;case t.instructionKey:a.push((t.indentInstruction?Me(t,r,n):"")+Ge(s[i],t,r));break;case t.attributesKey:case t.parentKey:break;case t.textKey:a.push((t.indentText?Me(t,r,n):"")+Ve(s[i],t));break;case t.cdataKey:a.push((t.indentCdata?Me(t,r,n):"")+Ue(s[i],t));break;case t.doctypeKey:a.push(Me(t,r,n)+Be(s[i],t));break;case t.commentKey:a.push(Me(t,r,n)+ze(s[i],t));break;default:a.push(Me(t,r,n)+function(e,t,r,n,i){De=e,Ie=t;var o="elementNameFn"in r?r.elementNameFn(t,e):t;if(null==e||""===e)return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(t,e)||r.fullTagEmptyElement?"<"+o+"></"+o+">":"<"+o+"/>";var s=[];if(t){if(s.push("<"+o),"object"!=typeof e)return s.push(">"+Ve(e,r)+"</"+o+">"),s.join("");e[r.attributesKey]&&s.push(Ne(e[r.attributesKey],r,n));var a=qe(e,r,!0)||e[r.attributesKey]&&"preserve"===e[r.attributesKey]["xml:space"];if(!(a=a||("fullTagEmptyElementFn"in r?r.fullTagEmptyElementFn(t,e):r.fullTagEmptyElement)))return s.push("/>"),s.join("");s.push(">")}return s.push(We(e,r,n+1,!1)),De=e,(Ie=t)&&s.push((i?Me(r,n,!1):"")+"</"+o+">"),s.join("")}(s[i],o,t,r,qe(s[i],t)))}n=n&&!a.length}return a.join("")}function He(e,t){r=t,r=je.copyOptions(r),je.ensureFlagExists("ignoreDeclaration",r),je.ensureFlagExists("ignoreInstruction",r),je.ensureFlagExists("ignoreAttributes",r),je.ensureFlagExists("ignoreText",r),je.ensureFlagExists("ignoreComment",r),je.ensureFlagExists("ignoreCdata",r),je.ensureFlagExists("ignoreDoctype",r),je.ensureFlagExists("compact",r),je.ensureFlagExists("indentText",r),je.ensureFlagExists("indentCdata",r),je.ensureFlagExists("indentAttributes",r),je.ensureFlagExists("indentInstruction",r),je.ensureFlagExists("fullTagEmptyElement",r),je.ensureFlagExists("noQuotesForNativeAttributes",r),je.ensureSpacesExists(r),"number"==typeof r.spaces&&(r.spaces=Array(r.spaces+1).join(" ")),je.ensureKeyExists("declaration",r),je.ensureKeyExists("instruction",r),je.ensureKeyExists("attributes",r),je.ensureKeyExists("text",r),je.ensureKeyExists("comment",r),je.ensureKeyExists("cdata",r),je.ensureKeyExists("doctype",r),je.ensureKeyExists("type",r),je.ensureKeyExists("name",r),je.ensureKeyExists("elements",r),je.checkFnExists("doctype",r),je.checkFnExists("instruction",r),je.checkFnExists("cdata",r),je.checkFnExists("comment",r),je.checkFnExists("text",r),je.checkFnExists("instructionName",r),je.checkFnExists("elementName",r),je.checkFnExists("attributeName",r),je.checkFnExists("attributeValue",r),je.checkFnExists("attributes",r),je.checkFnExists("fullTagEmptyElement",r);var r,n=[];return De=e,Ie="_root_",(t=r).compact?n.push(We(e,t,0,!0)):(e[t.declarationKey]&&n.push($e(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(Ke(e[t.elementsKey],t,0,!n.length))),n.join("")}var Ye,Xe=He,Ze=h({xml2js:Re,xml2json:function(e,t){var r;return t=ke.copyOptions(t),ke.ensureSpacesExists(t),t=Fe(e,e=t),r="compact"in e&&e.compact?"_parent":"parent",("addParent"in e&&e.addParent?JSON.stringify(t,(function(e,t){return e===r?"_":t}),e.spaces):JSON.stringify(t,null,e.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},js2xml:He,json2xml:function(e,t){var r=null;if("string"==typeof(e=e instanceof Buffer?e.toString():e))try{r=JSON.parse(e)}catch(e){throw new Error("The JSON structure is invalid")}else r=e;return Xe(r,t)}}),Je={raster:{},vector:{}};function Qe(e){return e&&(e=Ze.xml2js(e)).elements&&0<e.elements.length&&(1!==e.elements.length&&console.warn("invalid xml!"),e.elements[0])&&e.elements[0].elements?e.elements[0].elements.map((function(e){var t=e.attributes;return e.elements&&0<e.elements.length&&(t.options=e.elements.map((function(e){return e.elements[0].text}))),t})):null}function et(e){var t=w.GDALGetFileList(e);if(!t)return[];for(var r=[],n=0;n<100;n+=1){var i=w.Module.HEAP32[t+4*n>>2];if(0===i)break;i=w.Module.UTF8ToString(i),r.push(i)}return r}function tt(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return new Promise((function(r,n){var i=x(["-json"].concat(a(t))),o=i.config,l=(Object.entries(o).forEach((function(e){var t=(e=s(e,2))[0];e=e[1],w.CPLSetConfigOption(t,e)})),o=w.GDALInfoOptionsNew(i.ptr,null),w.GDALInfo(e.pointer,o));w.GDALInfoOptionsFree(o),S(i),3<=w.CPLGetLastErrorNo()?n(E()):r(JSON.parse(l))}))}function rt(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return new Promise((function(r,n){var i=x(["-json"].concat(a(t))),o=i.config,l=(Object.entries(o).forEach((function(e){var t=(e=s(e,2))[0];e=e[1],w.CPLSetConfigOption(t,e)})),o=w.GDALVectorInfoOptionsNew(i.ptr,null),w.GDALVectorInfo(e.pointer,o));w.GDALVectorInfoOptionsFree(o),S(i),3<=w.CPLGetLastErrorNo()?n(E()):r(JSON.parse(l))}))}function nt(){!m&&"function"!=typeof importScripts||w.Module.FS.unmount(A)}var it={ogr2ogr:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return new Promise((function(n,i){var o=x(t),a=o.config,l=(Object.entries(a).forEach((function(e){var t=(e=s(e,2))[0];e=e[1],w.CPLSetConfigOption(t,e)})),a=w.GDALVectorTranslateOptionsNew(o.ptr,null),w.Module._malloc(4)),c="unknown",u=(0!==(w.Module.setValue(l,e.pointer,"*"),u=t.indexOf("-f")+1)&&(u=t[u],h=Je.vector[u])&&(c="MapInfo File"===u&&-1!==t.indexOf("FORMAT=MIF")?"mif":h.extension),r||e.path.split(".",1)[0]),h="".concat(T,"/").concat(u,".").concat(c),d=et(l=w.GDALVectorTranslate(h,null,1,l,a,null));w.GDALVectorTranslateOptionsFree(a),S(o),w.GDALClose(l),3<=w.CPLGetLastErrorNo()?i(E()):n({local:h,real:"".concat(P,"/").concat(u,".").concat(c),all:d.map((function(e){return{local:e,real:e.replace("".concat(T,"/"),"".concat(P,"/"))}}))})}))},gdal_translate:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return new Promise((function(n,i){var o=x(t),a=o.config,l=(Object.entries(a).forEach((function(e){var t=(e=s(e,2))[0];e=e[1],w.CPLSetConfigOption(t,e)})),a=w.GDALTranslateOptionsNew(o.ptr,null),"unknown"),c=(0!==(c=t.indexOf("-of")+1)&&(c=t[c],c=Je.raster[c])&&(l=c.extension),r||e.path.split(".",1)[0]),u="".concat(T,"/").concat(c,".").concat(l),h=w.GDALTranslate(u,e.pointer,a,null),d=et(h);w.GDALTranslateOptionsFree(a),S(o),w.GDALClose(h),3<=w.CPLGetLastErrorNo()?i(E()):n({local:u,real:"".concat(P,"/").concat(c,".").concat(l),all:d.map((function(e){return{local:e,real:e.replace("".concat(T,"/"),"".concat(P,"/"))}}))})}))},gdal_rasterize:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return new Promise((function(n,i){var o=x(t),a=o.config,l=(Object.entries(a).forEach((function(e){var t=(e=s(e,2))[0];e=e[1],w.CPLSetConfigOption(t,e)})),a=w.GDALRasterizeOptionsNew(o.ptr,null),"tif"),c=(0!==(c=t.indexOf("-of")+1)&&(c=t[c],c=Je.raster[c])&&(l=c.extension),r||e.path.split(".",1)[0]),u="".concat(T,"/").concat(c,".").concat(l),h=w.GDALRasterize(u,null,e.pointer,a,null),d=et(h);w.GDALRasterizeOptionsFree(a),S(o),w.GDALClose(h),3<=w.CPLGetLastErrorNo()?i(E()):n({local:u,real:"".concat(P,"/").concat(c,".").concat(l),all:d.map((function(e){return{local:e,real:e.replace("".concat(T,"/"),"".concat(P,"/"))}}))})}))},gdalwarp:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return new Promise((function(n,i){var o=x(t),a=o.config,l=(Object.entries(a).forEach((function(e){var t=(e=s(e,2))[0];e=e[1],w.CPLSetConfigOption(t,e)})),a=w.GDALWarpAppOptionsNew(o.ptr,null),w.Module._malloc(4)),c="unknown",u=(0!==(w.Module.setValue(l,e.pointer,"*"),u=t.indexOf("-of")+1)&&(u=t[u],u=Je.raster[u])&&(c=u.extension),r||e.path.split(".",1)[0]),h="".concat(T,"/").concat(u,".").concat(c),d=et(l=w.GDALWarp(h,null,1,l,a,null));w.GDALWarpAppOptionsFree(a),S(o),w.GDALClose(l),3<=w.CPLGetLastErrorNo()?i(E()):n({local:h,real:"".concat(P,"/").concat(u,".").concat(c),all:d.map((function(e){return{local:e,real:e.replace("".concat(T,"/"),"".concat(P,"/"))}}))})}))},gdaltransform:function(e,t){return new Promise((function(r){for(var n=new Float64Array(e.map((function(e){return e[0]}))),i=new Float64Array(e.map((function(e){return e[1]}))),o=new Float64Array(e.map((function(e){return e[2]||0}))),s=w.Module._malloc(n.length*n.BYTES_PER_ELEMENT),a=w.Module._malloc(i.length*i.BYTES_PER_ELEMENT),l=w.Module._malloc(o.length*o.BYTES_PER_ELEMENT),c=(w.Module.HEAPF64.set(n,s/n.BYTES_PER_ELEMENT),w.Module.HEAPF64.set(i,a/i.BYTES_PER_ELEMENT),w.Module.HEAPF64.set(o,l/o.BYTES_PER_ELEMENT),!1),u=!1,h=[],d=0;d<t.length;d+=1)switch(t[d]){case"-s_srs":h.push("SRC_SRS=".concat(t[d+=1]));break;case"-t_srs":h.push("DST_SRS=".concat(t[d+=1]));break;case"-ct":h.push("COORDINATE_OPERATION=".concat(t[d+=1]));break;case"-order":h.push("MAX_GCP_ORDER=".concat(t[d+=1]));break;case"-tps":h.push("METHOD=GCP_TPS");break;case"-rpc":h.push("METHOD=RPC");break;case"-geoloc":h.push("METHOD=GEOLOC_ARRAY");break;case"-i":c=!0;break;case"-to":h.push("".concat(t[d+=1]));break;case"-output_xy":u=!0}for(var f=x(h),p=w.GDALCreateGenImgProjTransformer2(null,null,f.ptr),m=(w.GDALGenImgProjTransform(p,c,e.length,s,a,l,null),[Array.from(w.Module.HEAPF64.subarray(s/n.BYTES_PER_ELEMENT,s/n.BYTES_PER_ELEMENT+n.length)),Array.from(w.Module.HEAPF64.subarray(a/i.BYTES_PER_ELEMENT,a/i.BYTES_PER_ELEMENT+i.length)),Array.from(w.Module.HEAPF64.subarray(l/o.BYTES_PER_ELEMENT,l/o.BYTES_PER_ELEMENT+o.length))]),g=[],y=0;y<m[0].length;y+=1)g.push(u?[m[0][y],m[1][y]]:[m[0][y],m[1][y],m[2][y]]);w.Module._free(s),w.Module._free(a),w.Module._free(l),S(f),w.GDALDestroyGenImgProjTransformer(p),r(g)}))},gdal_location_info:function(e,t){return new Promise((function(r,n){var i=w.OSRNewSpatialReference('GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]'),o=(w.OSRSetAxisMappingStrategy(i,0),w.GDALGetSpatialRef(e.pointer)),s=(i=w.OCTNewCoordinateTransformation(i,o),o=w.CPLAtof(String(t[0])),w.CPLAtof(String(t[1]))),a=w.Module._malloc(8);w.Module.setValue(a,o,"double"),o=w.Module._malloc(8),w.Module.setValue(o,s,"double"),w.OCTTransform(i,1,o,a,null)||n(new Error("Failed to perform OCTTransform")),s=w.Module.getValue(o,"double"),i=w.Module.getValue(a,"double"),o=w.Module._malloc(6*Float64Array.BYTES_PER_ELEMENT),w.GDALGetGeoTransform(e.pointer,o),a=w.Module._malloc(6*Float64Array.BYTES_PER_ELEMENT),w.GDALInvGeoTransform(o,a)||n(new Error("Failed to invert transform")),o=w.Module.HEAPF64.subarray(a/Float64Array.BYTES_PER_ELEMENT,a/Float64Array.BYTES_PER_ELEMENT+6),r({pixel:Math.floor(o[0]+o[1]*s+o[2]*i),line:Math.floor(o[3]+o[4]*s+o[5]*i)})}))},gdalinfo:tt,ogrinfo:rt,open:function(e){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],r=e,n=x(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]);return Array.isArray(r)||"function"==typeof FileList&&r instanceof FileList||(r=[r]),new Promise((function(e,i){var o,s=[],l=[];a(r).forEach((function(e){!("string"==typeof e||e instanceof String)||e.substring(0,7)!=="".concat(A,"/")&&e.substring(0,8)!=="".concat(T,"/")?l.push(e):s.push({name:e.substring(e.indexOf("/",1)+1),internal:!0,prefix:e.substring(0,e.indexOf("/",1))})})),o=l,new Promise((function(e){var t,r;0===o.length?e([]):m?(t=[],o.forEach((function(e){var r=(e=e.split("/")).pop();e=e.join("/")||".",Ye!==e&&(Ye&&nt(),Ye=e,w.Module.FS.mount(w.Module.NODEFS,{root:e},A)),t.push({name:r})})),e(t)):"function"==typeof importScripts?(Ye&&nt(),w.Module.FS.mount(w.Module.WORKERFS,{files:o},A),Ye=!0,e(o)):(r=[],o.forEach((function(e){r.push(e.arrayBuffer())})),Promise.all(r).then((function(t){t.forEach((function(e,t){e=new Uint8Array(e),w.Module.FS.writeFile("".concat(A,"/").concat(o[t].name),e)})),e(o)})))})).then((function(r){for(var o=[].concat(a(r),s),l=[],c=(w.CPLErrorReset(),{}),u=[],h=function(){var e=o[d].name,r=e.split(".",1)[0];if(c[r]||(c[r]={}),c[r].pointer)return 0;c[r].path=e;var i=t&&t.length?"/".concat(t.join("/"),"/"):"",s="".concat(i).concat(A,"/").concat(e),a=(o[d].internal&&(s="".concat(i).concat(o[d].prefix,"/").concat(e)),w.GDALOpenEx(s,null,null,n.ptr,null));if(0===a)return i=E(),l.push(i),delete c[r],0;function h(){var e=w.GDALGetRasterCount(a),t=w.GDALDatasetGetLayerCount(a);c[r].type=0<e&&0===t?"raster":"vector"}c[r].pointer=a,e=tt(c[r]).then((function(e){if(e&&e.bands){var t=e.size&&2<=e.size.length&&(0<e.size[0]||0<e.size[1]);if(c[r].type=0<e.bands.length&&t?"raster":"vector","vector"===c[r].type)return rt(c[r]).then((function(e){c[r].info=e}));c[r].info=e}else h();return!0})).catch(h),u.push(e)},d=0;d<o.length;d+=1)h();S(n),Promise.allSettled(u).then((function(){var t=Object.values(c);0<t.length||0===l.length?e({datasets:t,errors:l}):i(l)}))}))}))},close:function(e){return new Promise((function(t){w.GDALClose(e.pointer),t()}))},getInfo:function(e){return new Promise((function(t){var r=w.GDALGetRasterCount(e.pointer),n=w.GDALDatasetGetLayerCount(e.pointer);if(0<r&&0===n){var i=w.GDALGetRasterXSize(e.pointer),o=w.GDALGetRasterYSize(e.pointer),s=w.GDALGetProjectionRef(e.pointer),a=w.Module._malloc(6*Float64Array.BYTES_PER_ELEMENT),l=(w.GDALGetGeoTransform(e.pointer,a),w.Module.HEAPF64.subarray(a/Float64Array.BYTES_PER_ELEMENT,a/Float64Array.BYTES_PER_ELEMENT+6)),c=(a=[[0,0],[i,0],[i,o],[0,o]].map((function(e){var t=e[0];return e=e[1],[l[0]+l[1]*t+l[2]*e,l[3]+l[4]*t+l[5]*e]})),w.GDALGetDatasetDriver(e.pointer)),u=(c=w.GDALGetDriverLongName(c),w.OGR_DS_GetName(e.pointer));t(JSON.parse(JSON.stringify({type:"raster",bandCount:r,width:i,height:o,projectionWkt:s,coordinateTransform:l,corners:a,driverName:c,dsName:u})))}else{for(var h=[],d=0;d<n;d+=1){var f=w.OGR_DS_GetLayer(e.pointer,d),p=w.OGR_L_GetName(f);f=w.OGR_L_GetFeatureCount(f,1),h.push({name:p,featureCount:f})}r=h.reduce((function(e,t){return e+t.featureCount}),0),i=w.OGR_DS_GetName(e.pointer),o=w.GDALGetDatasetDriver(e.pointer),t({type:"vector",layerCount:n,featureCount:r,layers:h,dsName:i,driverName:w.GDALGetDriverLongName(o)})}}))},getOutputFiles:function(){return new Promise((function(e){e(function e(t){var r=0<arguments.length&&void 0!==t?t:T.substr(1),n=r.split("/").reduce((function(e,t){return e.contents[t]}),w.Module.FS.root).contents,i=[];return Object.keys(n).forEach((function(t){var o=n[t];o.usedBytes?i.push({path:"/".concat(r,"/").concat(t),size:o.usedBytes}):o.contents&&i.push.apply(i,a(e("".concat(r,"/").concat(t))))})),i}())}))},getFileBytes:function(e){return new Promise((function(t){var r;e?(r=e.local||e,t(w.Module.FS.readFile(r,{encoding:"binary"}))):t(new Uint8Array)}))},drivers:Je,Module:w.Module};var ot,st={gdalWorkerWrapper:null,drivers:null},at=(_=function(){function e(t,r,n){var i=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.promises={onload:{resolve:n,reject:console.error}},this.gdalWorker=new Worker(t),this.gdalWorker.onmessage=function(e){e.data&&e.data.id&&i.promises[e.data.id]&&(e.data.success?i.promises[e.data.id].resolve(e.data.data):i.promises[e.data.id].reject(e.data.data))},this.gdalWorker.postMessage({func:"constructor",params:{config:r}})}var t,r;return t=e,(r=[{key:"call",value:function(e){var t=this;return new Promise((function(r,n){e.id=Math.floor(1e5*Math.random()),t.promises[e.id]={resolve:r,reject:n},t.gdalWorker.postMessage(e)}))}},{key:"terminate",value:function(){this.gdalWorker.terminate(),delete this.gdalWorker,delete this.promises}}])&&o(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),me=new Proxy({},{get:function(e,t){return"then"===t||"catch"===t?e:"drivers"===t?st.drivers:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return new Promise((function(e,n){st.gdalWorkerWrapper.call({func:t,params:r}).then((function(t){e(t)})).catch((function(e){return n(e)}))}))}}}),{variables:st,WorkerWrapper:_,gdalProxy:me});function lt(){var e,r,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return ot=ot||(m||!1===n.useWorker?new Promise((function(e,r){var i=w.Module,o=i.onAbort;i.onAbort=function(e){r(new Error(e)),o&&o(e)},i.print=function(e){n.logHandler?n.logHandler(e,"stdout"):console.debug("gdal stdout: ".concat(e))},i.printErr=function(e){n.errorHandler?n.errorHandler(e,"stderr"):console.error("gdal stderr: ".concat(e))},i.preRun=[function(e){var t=e.ENV;t.PROJ_LIB="/usr/share/proj",t.GDAL_DATA="/usr/share/gdal",t.DXF_FEATURE_LIMIT_PER_BLOCK="-1",t.GDAL_NUM_THREADS="0",t.GDAL_ENABLE_DEPRECATED_DRIVER_GTM="YES",t.CPL_LOG_ERRORS="ON",n.env&&Object.entries(n.env).forEach((function(e){var r=(e=s(e,2))[0];e=e[1],t[r]=e}))}],i.onRuntimeInitialized=function(){var e,r;w.GDALOpen||((r=w.Module).ccall("GDALAllRegister",null,[],[]),w.GDALOpen=r.cwrap("GDALOpen","number",["string"]),w.GDALOpenEx=r.cwrap("GDALOpenEx","number",["string","number","number","number","number"]),w.GDALClose=r.cwrap("GDALClose",null,["number"]),w.CPLErrorReset=r.cwrap("CPLErrorReset",null,[]),w.CPLSetErrorHandler=r.cwrap("CPLSetErrorHandler","number",["number"]),w.CPLQuietErrorHandler=r.cwrap("CPLQuietErrorHandler",null,["number","number","string"]),w.CPLGetLastErrorNo=r.cwrap("CPLGetLastErrorNo","number",[]),w.CPLGetLastErrorMsg=r.cwrap("CPLGetLastErrorMsg","string",[]),w.CPLGetLastErrorType=r.cwrap("CPLGetLastErrorType","number",[]),w.CPLSetConfigOption=r.cwrap("CPLSetConfigOption",null,["string","string"]),w.CPLSetThreadLocalConfigOption=r.cwrap("CPLSetThreadLocalConfigOption",null,["string","string"]),w.GDALGetRasterCount=r.cwrap("GDALGetRasterCount","number",["number"]),w.GDALGetRasterXSize=r.cwrap("GDALGetRasterXSize","number",["number"]),w.GDALGetRasterYSize=r.cwrap("GDALGetRasterYSize","number",["number"]),w.GDALGetProjectionRef=r.cwrap("GDALGetProjectionRef","string",["number"]),w.GDALGetGeoTransform=r.cwrap("GDALGetGeoTransform","number",["number","number"]),w.GDALInvGeoTransform=r.cwrap("GDALInvGeoTransform","number",["number","number"]),w.GDALVectorTranslate=r.cwrap("GDALVectorTranslate","number",["string","number","number","number","number","number"]),w.GDALVectorTranslateOptionsNew=r.cwrap("GDALVectorTranslateOptionsNew","number",["number","number"]),w.GDALVectorTranslateOptionsFree=r.cwrap("GDALVectorTranslateOptionsFree","number",["number"]),w.GDALDatasetGetLayerCount=r.cwrap("GDALDatasetGetLayerCount","number",["number"]),w.GDALDatasetGetLayer=r.cwrap("GDALDatasetGetLayer","number",["number","number"]),w.OGR_DS_GetLayerCount=r.cwrap("OGR_DS_GetLayerCount","number",["number"]),w.OGR_DS_GetName=r.cwrap("OGR_DS_GetName","string",["number"]),w.OGR_DS_GetLayer=r.cwrap("OGR_DS_GetLayer","number",["number","number"]),w.OGR_L_GetName=r.cwrap("OGR_L_GetName","string",["number"]),w.OGR_DS_GetDriver=r.cwrap("OGR_DS_GetDriver","number",["number"]),w.OGR_Dr_GetName=r.cwrap("OGR_Dr_GetName","string",["number"]),w.GDALGetDatasetDriver=r.cwrap("GDALGetDatasetDriver","number",["number"]),w.GDALGetDriverLongName=r.cwrap("GDALGetDriverLongName","string",["number"]),w.GDALGetDriverShortName=r.cwrap("GDALGetDriverShortName","string",["number"]),w.GDALTranslate=r.cwrap("GDALTranslate","number",["string","number","number","number"]),w.GDALTranslateOptionsNew=r.cwrap("GDALTranslateOptionsNew","number",["number","number"]),w.GDALTranslateOptionsFree=r.cwrap("GDALTranslateOptionsFree","number",["number"]),w.GDALRasterize=r.cwrap("GDALRasterize","number",["string","number","number","number","number"]),w.GDALRasterizeOptionsNew=r.cwrap("GDALRasterizeOptionsNew","number",["number","number"]),w.GDALRasterizeOptionsFree=r.cwrap("GDALRasterizeOptionsFree","number",["number"]),w.GDALWarp=r.cwrap("GDALWarp","number",["string","number","number","number","number","number"]),w.GDALWarpAppOptionsNew=r.cwrap("GDALWarpAppOptionsNew","number",["number","number"]),w.GDALWarpAppOptionsSetProgress=r.cwrap("GDALWarpAppOptionsSetProgress","number",["number","number","number"]),w.GDALWarpAppOptionsFree=r.cwrap("GDALWarpAppOptionsFree","number",["number"]),w.OSRNewSpatialReference=r.cwrap("OSRNewSpatialReference","number",["string"]),w.OSRDestroySpatialReference=r.cwrap("OSRDestroySpatialReference","number",["number"]),w.OCTNewCoordinateTransformation=r.cwrap("OCTNewCoordinateTransformation","number",["number","number"]),w.OCTDestroyCoordinateTransformation=r.cwrap("OCTDestroyCoordinateTransformation","number",["number"]),w.OCTTransform=r.cwrap("OCTTransform","number",["number","number","number","number","number"]),w.GDALGetDriverCount=r.cwrap("GDALGetDriverCount","number",[]),w.OGRGetDriverCount=r.cwrap("OGRGetDriverCount","number",[]),w.GDALGetDriver=r.cwrap("GDALGetDriver","number",["number"]),w.OGRGetDriver=r.cwrap("OGRGetDriver","number",["number"]),w.GDALGetMetadataItem=r.cwrap("GDALGetMetadataItem","string",["number","string","string"]),w.GDALGetDescription=r.cwrap("GDALGetDescription","string",["number"]),w.OGR_L_GetFeatureCount=r.cwrap("OGR_L_GetFeatureCount","number",["number","number"]),w.GDALGenImgProjTransform=r.cwrap("GDALGenImgProjTransform","number",["number","number","number","number","number","number","number"]),w.GDALCreateGenImgProjTransformer2=r.cwrap("GDALCreateGenImgProjTransformer2","number",["number","number","number"]),w.GDALDestroyGenImgProjTransformer=r.cwrap("GDALDestroyGenImgProjTransformer",null,["number"]),w.OSRSetFromUserInput=r.cwrap("OSRSetFromUserInput","number",["number","string"]),w.OSRExportToWkt=r.cwrap("OSRExportToWkt","number",["number","number"]),w.GDALGetSpatialRef=r.cwrap("GDALGetSpatialRef","number",["number"]),w.CPLAtof=r.cwrap("CPLAtof","number",["string"]),w.OSRSetAxisMappingStrategy=r.cwrap("OSRSetAxisMappingStrategy",null,["number","number"]),w.GDALInfo=r.cwrap("GDALInfo","string",["number","number"]),w.GDALInfoOptionsNew=r.cwrap("GDALInfoOptionsNew","number",["number","number"]),w.GDALInfoOptionsFree=r.cwrap("GDALInfoOptionsFree",null,["number"]),w.GDALVectorInfo=r.cwrap("GDALVectorInfo","string",["number","number"]),w.GDALVectorInfoOptionsNew=r.cwrap("GDALVectorInfoOptionsNew","number",["number","number"]),w.GDALVectorInfoOptionsFree=r.cwrap("GDALVectorInfoOptionsFree",null,["number"]),w.GDALGetFileList=r.cwrap("GDALGetFileList","number",["number"])),i.FS.mkdir(A),i.FS.mkdir(T),n.dest&&(r=n.dest,P=r,e=n.dest,m)&&w.Module.FS.mount(w.Module.NODEFS,{root:e},T),function(){for(var e,r,n=w.GDALGetDriverCount(),i=0;i<n;i+=1){var o=w.GDALGetDriver(i),s=(s=e=void 0,e=w.GDALGetMetadataItem(o,"DMD_EXTENSIONS",null),""!==(s=""===(s=w.GDALGetMetadataItem(o,"DMD_EXTENSION",null))&&""!==e?e.split(" ")[0]:s)&&(s=s.replace(".","").replace("/","")),"GeoJSON"===(r=w.GDALGetDescription(o))&&(s="geojson"),{extension:s,extensions:e,shortName:r,longName:w.GDALGetMetadataItem(o,"DMD_LONGNAME",null),isReadable:"YES"===w.GDALGetMetadataItem(o,"DCAP_OPEN",null),isWritable:"YES"===w.GDALGetMetadataItem(o,"DCAP_CREATE",null)||"YES"===w.GDALGetMetadataItem(o,"DCAP_CREATECOPY",null),isRaster:"YES"===w.GDALGetMetadataItem(o,"DCAP_RASTER",null),isVector:"YES"===w.GDALGetMetadataItem(o,"DCAP_VECTOR",null),openOptionsList:Qe(w.GDALGetMetadataItem(o,"DMD_OPENOPTIONLIST",null)),creationOptionList:Qe(w.GDALGetMetadataItem(o,"DMD_CREATIONOPTIONLIST",null)),layerCreationOptionList:Qe(w.GDALGetMetadataItem(o,"DS_LAYER_CREATIONOPTIONLIST",null)),helpUrl:w.GDALGetMetadataItem(o,"DMD_HELPTOPIC",null)});s.isRaster&&(Je.raster[s.shortName]=t(t({index:i},s),{},{type:"raster"})),s.isVector&&(Je.vector[s.shortName]=t(t({index:i},s),{},{type:"vector"}))}}()},i.locateFile=function(e){var t=e;return n.paths&&n.paths.wasm&&"wasm"===e.split(".").pop()?t=n.paths.wasm:n.paths&&n.paths.data&&"data"===e.split(".").pop()&&(t=n.paths.data),e="",n.path?"/"!==(e=n.path).slice(-1)&&(e+="/"):m&&(e="node_modules/gdal3.js/dist/package/"),e+=t,m||"http"===e.substring(0,4)||"/"===e[0]?e:"/".concat(e)},m&&(i.getPreloadedPackage=function(e){return p.readFileSync("./".concat(e),{flag:"r"}).buffer}),b(w.Module).then((function(){e(it)}))})):(e=n.paths&&n.paths.js||"gdal3.js",r="",n.path&&"/"!==(r=n.path).slice(-1)&&(r+="/"),new Promise((function(t){at.variables.gdalWorkerWrapper=new at.WorkerWrapper("".concat(r).concat(e),n,(function(e){at.variables.drivers=e,t(at.gdalProxy)}))}))))}return m&&(r.g.location={pathname:"./"}),"undefined"!=typeof window&&(window.initGdalJs=lt),"function"==typeof importScripts&&function(e){var r;onmessage=function(n){var i;return n.data&&"constructor"===n.data.func?(i={useWorker:!1},n.data.params&&n.data.params.config&&(i=t(t({},n.data.params.config),i)),(r=e(i)).then((function(e){return e=e.drivers,postMessage({success:!0,id:"onload",data:e})})).catch((function(e){return postMessage({success:!1,id:"onload",data:e})})),null):r.then(function(e){var t=this;this.data&&this.data.func&&e[this.data.func]?e[this.data.func].apply(e,a(this.data.params)).then((function(e){postMessage({success:!0,id:t.data.id,data:e})})).catch((function(e){postMessage({success:!1,id:t.data.id,data:{message:e.message}})})):console.error("undefined function",this.data)}.bind(n)).catch(function(e){postMessage({success:!1,id:this.id,data:{no:-1,message:e.message}})}.bind(n))}}(lt),lt}()},74244:(e,t,r)=>{"use strict";r.d(t,{$:()=>n,AC:()=>c,Hm:()=>d,NZ:()=>o,S3:()=>h,TZ:()=>u,s$:()=>a,ub:()=>l});const n={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:"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(const e in n)n.hasOwnProperty(e)&&(i[n[e]]=parseInt(e,10));const o=[i.BitsPerSample,i.ExtraSamples,i.SampleFormat,i.StripByteCounts,i.StripOffsets,i.StripRowCounts,i.TileByteCounts,i.TileOffsets,i.SubIFDs],s={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"},a={};for(const e in s)s.hasOwnProperty(e)&&(a[s[e]]=parseInt(e,10));const l={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},c={Unspecified:0,Assocalpha:1,Unassalpha:2},u={Version:0,AddCompression:1},h={None:0,Deflate:1,Zstandard:2},d={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"},f={};for(const e in d)d.hasOwnProperty(e)&&(f[d[e]]=parseInt(e,10))},12651:(e,t,r)=>{var n=r(46343),i=r(40074),o=r(82438),s=r(19106),a=r(32293),l=r(30306),c=r(48360),u=r(22563),h=e=>Array.isArray(e)?e:[e],d=e=>void 0===e,f=e=>c(e)||Array.isArray(e)?Object.keys(e):[],p=(e,t)=>e.hasOwnProperty(t),m=e=>i(o(e)),g=e=>d(e)||Array.isArray(e)&&0===e.length,y=(e,t)=>d(e)&&0===t||d(t)&&0===e||n(e,t),v=e=>d(e)||n(e,{})||!0===e,_=e=>d(e)||n(e,{}),b=e=>d(e)||c(e)||!0===e||!1===e;function w(e,t){return!(!g(e)||!g(t))||n(m(e),m(t))}function E(e,t,r,i){var s=o(f(e).concat(f(t)));return!(!_(e)||!_(t))||(!_(e)||!f(t).length)&&(!_(t)||!f(e).length)&&s.every((function(r){var o=e[r],s=t[r];return Array.isArray(o)&&Array.isArray(s)?n(m(e),m(t)):!(Array.isArray(o)&&!Array.isArray(s))&&!(Array.isArray(s)&&!Array.isArray(o))&&((e,t,r,n)=>t&&p(t,r)&&e&&p(e,r)&&n(e[r],t[r]))(e,t,r,i)}))}function x(e,t,r,n){var i=s(e,n),o=s(t,n);return l(i,o,n).length===Math.max(i.length,o.length)}var S={title:n,uniqueItems:(e,t)=>d(e)&&!1===t||d(t)&&!1===e||n(e,t),minLength:y,minItems:y,minProperties:y,required:w,enum:w,type:function(e,t){return e=h(e),t=h(t),n(m(e),m(t))},items:function(e,t,r,i){return c(e)&&c(t)?i(e,t):Array.isArray(e)&&Array.isArray(t)?E(e,t,0,i):n(e,t)},anyOf:x,allOf:x,oneOf:x,properties:E,patternProperties:E,dependencies:E},A=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],T=["additionalProperties","additionalItems","contains","propertyNames","not"];e.exports=function e(t,r,i){if(i=a(i,{ignore:[]}),v(t)&&v(r))return!0;if(!b(t)||!b(r))throw new Error("Either of the values are not a JSON schema.");if(t===r)return!0;if(u(t)&&u(r))return t===r;if(void 0===t&&!1===r||void 0===r&&!1===t)return!1;if(d(t)&&!d(r)||!d(t)&&d(r))return!1;var s=o(Object.keys(t).concat(Object.keys(r)));if(i.ignore.length&&(s=s.filter((e=>-1===i.ignore.indexOf(e)))),!s.length)return!0;function l(t,r){return e(t,r,i)}return s.every((function(o){var s=t[o],a=r[o];if(-1!==T.indexOf(o))return e(s,a,i);var c=S[o];if(c||(c=n),n(s,a))return!0;if(-1===A.indexOf(o)&&(!p(t,o)&&p(r,o)||p(t,o)&&!p(r,o)))return s===a;var h=c(s,a,o,l);if(!u(h))throw new Error("Comparer must return true or false");return h}))}},587:(e,t,r)=>{var n=r(46108),i=r(12651),o=r(23050),s=r(69383),a=r(75857),l=r(53435),c=r(58150),u=r(30306),h=r(46343),d=r(48360),f=r(70581),p=r(40074),m=r(83657),g=r(82438),y=r(19106),v=r(30795),_=(e,...t)=>v.apply(null,[e].concat(a(t))),b=e=>E(V,e),w=e=>E(K,e),E=(e,t)=>-1!==e.indexOf(t),x=e=>!M(e).length&&!1!==e&&!0!==e,S=e=>d(e)||!0===e||!1===e,A=e=>!1===e,T=e=>!0===e,P=(e,t,r)=>r(e),C=e=>p(g(l(e))),O=e=>void 0!==e,R=e=>g(l(e.map(M))),D=e=>e[0],I=e=>Math.max.apply(Math,e),k=e=>Math.min.apply(Math,e);function F(e){if(Array.isArray(e.allOf)){var t=e.allOf;return delete e.allOf,[e].concat(t.map((function(e){return F(e)})))}return[e]}function j(e,t){return e.map((function(e){return e&&e[t]}))}function L(e,t){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;var r=e.items[t];return S(r)?r:e.hasOwnProperty("additionalItems")?e.additionalItems:void 0}}))}function M(e){return d(e)||Array.isArray(e)?Object.keys(e):[]}function N(e,t){if(t=t||[],!e.length)return t;var r=e.slice(0).shift(),n=e.slice(1);return t.length?N(n,a(t.map((e=>r.map((t=>[t].concat(e))))))):N(n,r.map((e=>e)))}function $(e,t){var r;try{r=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(t){r=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+r)}function G(e,t,r){return function(n,i){if(void 0===i)throw new Error("You need to call merger with a key for the property name or index if array.");return i=String(i),e(n,null,r.concat(t,i))}}function z(e,t,r,n,o,s){if(e.length){var a=o.resolvers[t];if(!a)throw new Error("No resolver found for "+t);var l=y(r.map((function(t){return e.reduce((function(e,r){return void 0!==t[r]&&(e[r]=t[r]),e}),{})})).filter(O),i),c=("properties"===t?V:K).reduce((function(e,t){return E(q,t)?e[t]=G(n,t,s):e[t]=function(e){return n(e,null,s.concat(t))},e}),{});"items"===t&&(c.itemsArray=G(n,"items",s),c.items=function(e){return n(e,null,s.concat("items"))});var u=a(l,s.concat(t),c,o);return d(u)||$(l,s.concat(t)),function(e){for(var t in e)e.hasOwnProperty(t)&&x(e[t])&&delete e[t];return e}(u)}}function U(e,t,r){var n=R(r||e),o=r?L:j;return n.reduce((function(r,n){var s=o(e,n),a=y(s.filter(O),i);return r[n]=t(a,n),r}),r?[]:{})}function B(e){return{required:e}}var V=["properties","patternProperties","additionalProperties"],K=["items","additionalItems"],q=["properties","patternProperties","definitions","dependencies"],W=["anyOf","oneOf"],H=["additionalProperties","additionalItems","contains","propertyNames","not","items"],Y={type(e){if(e.some(Array.isArray)){var t=e.map((function(e){return Array.isArray(e)?e:[e]})),r=c.apply(null,t);if(1===r.length)return r[0];if(r.length>1)return g(r)}},properties(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach((function(t){var n=e.filter((e=>e!==t)),i=M(t.properties),o=M(t.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){var n=M(e.properties),s=n.filter((e=>o.some((t=>t.test(e)))));_(n,i,s).forEach((function(n){e.properties[n]=r.properties([e.properties[n],t.additionalProperties],n)}))}))})),e.forEach((function(t){var r=e.filter((e=>e!==t)),n=M(t.patternProperties);!1===t.additionalProperties&&r.forEach((function(e){var t=M(e.patternProperties);_(t,n).forEach((t=>delete e.patternProperties[t]))}))})));var i,o={additionalProperties:r.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:U(e.map((e=>e.patternProperties)),r.patternProperties),properties:U(e.map((e=>e.properties)),r.properties)};return!1===o.additionalProperties&&m(i=o.properties,(function(e,t){!1===e&&delete i[t]})),o},dependencies:(e,t,r)=>R(e).reduce((function(t,n){var o=j(e,n),s=y(o.filter(O),h),a=s.filter(Array.isArray);if(a.length){if(a.length===s.length)t[n]=C(s);else{var l=s.filter(S),c=a.map(B);t[n]=r(l.concat(c),n)}return t}return s=y(s,i),t[n]=r(s,n),t}),{}),items(e,t,r){var n,i,o=e.map((e=>e.items)),s=o.filter(O),a={};return s.every(S)?a.items=r.items(o):a.items=U(e,r.itemsArray,o),s.every(Array.isArray)?n=e.map((e=>e.additionalItems)):s.some(Array.isArray)&&(n=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),n&&(a.additionalItems=r.additionalItems(n)),!1===a.additionalItems&&Array.isArray(a.items)&&(i=a.items,m(i,(function(e,t){!1===e&&i.splice(t,1)}))),a},oneOf(e,t,r){var o=function(e,t){return e.map((function(e,r){try{return t(e,r)}catch(e){return}})).filter(O)}(N(n(e)),r),s=y(o,i);if(s.length)return s},not:e=>({anyOf:e}),pattern(e,t,r,n,i){var o=t.pop();i(e.map((function(e){return{[o]:e}})))},multipleOf(e){for(var t=e.slice(0),r=1;t.some((e=>!Number.isInteger(e)));)t=t.map((e=>10*e)),r*=10;return o(t)/r},enum(e){var t=u.apply(null,e.concat(h));if(t.length)return p(t)}};function X(e,t,r){return r=r||[],t=s(t,{ignoreAdditionalProperties:!1,resolvers:Y}),function e(o,s,a){o=n(o.filter(O)),a=a||[];var l=d(s)?s:{};if(o.length){if(o.some(A))return!1;if(o.every(T))return!0;o=o.filter(d);var c=R(o);if(E(c,"allOf"))return X({allOf:o},t,r);var u=c.filter(b);f(c,u);var h=c.filter(w);return f(c,h),c.forEach((function(r){var n=j(o,r),s=y(n.filter(O),function(e){return function(t,r){return i({[e]:t},{[e]:r})}}(r));if(1===s.length&&E(W,r))l[r]=s[0].map((function(t){return e([t],t)}));else if(1!==s.length||E(q,r)||E(H,r)){var c,u=t.resolvers[r]||t.resolvers.defaultResolver;if(!u)throw new Error("No resolver found for key "+r+". You can provide a resolver for this keyword in the options, or provide a default resolver.");c=E(q,r)||E(W,r)?G(e,r,a):function(t){return e(t,null,a.concat(r))};var h=!1;l[r]=u(s,a.concat(r),c,t,(function(e){return h=Array.isArray(e),function(e){l.allOf=function(e,t){return Array.isArray(e)?(e.splice.apply(e,[0,0].concat(t)),e):t}(l.allOf,e)}(e)})),void 0!==l[r]||h?void 0===l[r]&&delete l[r]:$(s,a.concat(r))}else l[r]=s[0]})),Object.assign(l,z(u,"properties",o,e,t,a)),Object.assign(l,z(h,"items",o,e,t,a)),l}}(l(F(e)),e)}Y.$id=D,Y.$ref=D,Y.$schema=D,Y.additionalItems=P,Y.additionalProperties=P,Y.anyOf=Y.oneOf,Y.contains=P,Y.default=D,Y.definitions=Y.dependencies,Y.description=D,Y.examples=e=>y(a(e),h),Y.exclusiveMaximum=k,Y.exclusiveMinimum=I,Y.maximum=k,Y.maxItems=k,Y.maxLength=k,Y.maxProperties=k,Y.minimum=I,Y.minItems=I,Y.minLength=I,Y.minProperties=I,Y.propertyNames=P,Y.required=e=>C(e),Y.title=D,Y.uniqueItems=e=>e.some(T),X.options={resolvers:Y},e.exports=X},45838:(e,t)=>{var r=/~/,n=/~[01]/g;function i(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function o(e){return r.test(e)?e.replace(n,i):e}function s(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!=typeof t&&"number"!=typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function a(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=s(t)).length;if(1===r)return e;for(var n=1;n<r;){if(e=e[o(t[n++])],r===n)return e;if("object"!=typeof e||null===e)return}}function l(e,t,r){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=s(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,r){for(var n,i,s=1,a=t.length;s<a;){if("constructor"===t[s]||"prototype"===t[s]||"__proto__"===t[s])return e;if(n=o(t[s++]),i=a>s,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),i&&(""!==t[s]&&t[s]<1/0||"-"===t[s]?e[n]=[]:e[n]={})),!i)break;e=e[n]}var l=e[n];return void 0===r?delete e[n]:e[n]=r,l}(e,t,r)}t.get=a,t.set=l,t.compile=function(e){var t=s(e);return{get:function(e){return a(e,t)},set:function(e,r){return l(e,t,r)}}}},29452:(e,t,r)=>{var n,i=/[&<>"'`]/g,o=RegExp(i.source),s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,a="object"==typeof self&&self&&self.Object===Object&&self,l=s||a||Function("return this")(),c=(n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},function(e){return null==n?void 0:n[e]}),u=Object.prototype.toString,h=l.Symbol,d=h?h.prototype:void 0,f=d?d.toString:void 0;e.exports=function(e){var t;return(e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return f?f.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t))&&o.test(e)?e.replace(i,c):e}},33103:(e,t,r)=>{var n=r(94715)(r(78942),"DataView");e.exports=n},25098:(e,t,r)=>{var n=r(23305),i=r(39361),o=r(11112),s=r(25276),a=r(57452);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},1386:(e,t,r)=>{var n=r(12393),i=r(62049),o=r(7144),s=r(7452),a=r(13964);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},19770:(e,t,r)=>{var n=r(94715)(r(78942),"Map");e.exports=n},68250:(e,t,r)=>{var n=r(49753),i=r(5681),o=r(80088),s=r(54732),a=r(59068);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},89413:(e,t,r)=>{var n=r(94715)(r(78942),"Promise");e.exports=n},64512:(e,t,r)=>{var n=r(94715)(r(78942),"Set");e.exports=n},23212:(e,t,r)=>{var n=r(68250),i=r(1877),o=r(8006);function s(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,e.exports=s},51340:(e,t,r)=>{var n=r(1386),i=r(64103),o=r(21779),s=r(34162),a=r(7462),l=r(96638);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=l,e.exports=c},65650:(e,t,r)=>{var n=r(78942).Symbol;e.exports=n},31623:(e,t,r)=>{var n=r(78942).Uint8Array;e.exports=n},19270:(e,t,r)=>{var n=r(94715)(r(78942),"WeakMap");e.exports=n},86912:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},79968:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},79847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}},59756:(e,t,r)=>{var n=r(2478);e.exports=function(e,t){return!(null==e||!e.length)&&n(e,t,0)>-1}},43316:e=>{e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},10358:(e,t,r)=>{var n=r(26137),i=r(3283),o=r(53142),s=r(75853),a=r(69632),l=r(8666),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),u=!r&&i(e),h=!r&&!u&&s(e),d=!r&&!u&&!h&&l(e),f=r||u||h||d,p=f?n(e.length,String):[],m=p.length;for(var g in e)!t&&!c.call(e,g)||f&&("length"==g||h&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||p.push(g);return p}},65111:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},11129:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},36465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},24810:(e,t,r)=>{var n=r(57073),i=r(46285);e.exports=function(e,t,r){(void 0!==r&&!i(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},3422:(e,t,r)=>{var n=r(57073),i=r(46285),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var s=e[t];o.call(e,t)&&i(s,r)&&(void 0!==r||t in e)||n(e,t,r)}},97034:(e,t,r)=>{var n=r(46285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},37930:(e,t,r)=>{var n=r(39032),i=r(81211);e.exports=function(e,t){return e&&n(t,i(t),e)}},30125:(e,t,r)=>{var n=r(39032),i=r(25288);e.exports=function(e,t){return e&&n(t,i(t),e)}},57073:(e,t,r)=>{var n=r(72532);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},69334:(e,t,r)=>{var n=r(51340),i=r(79968),o=r(3422),s=r(37930),a=r(30125),l=r(17099),c=r(84354),u=r(83546),h=r(24733),d=r(80393),f=r(93650),p=r(28486),m=r(97350),g=r(50424),y=r(75964),v=r(53142),_=r(75853),b=r(37681),w=r(41580),E=r(83943),x=r(81211),S=r(25288),A="[object Arguments]",T="[object Function]",P="[object Object]",C={};C[A]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[P]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[T]=C["[object WeakMap]"]=!1,e.exports=function e(t,r,O,R,D,I){var k,F=1&r,j=2&r,L=4&r;if(O&&(k=D?O(t,R,D,I):O(t)),void 0!==k)return k;if(!w(t))return t;var M=v(t);if(M){if(k=m(t),!F)return c(t,k)}else{var N=p(t),$=N==T||"[object GeneratorFunction]"==N;if(_(t))return l(t,F);if(N==P||N==A||$&&!D){if(k=j||$?{}:y(t),!F)return j?h(t,a(k,t)):u(t,s(k,t))}else{if(!C[N])return D?t:{};k=g(t,N,F)}}I||(I=new n);var G=I.get(t);if(G)return G;I.set(t,k),E(t)?t.forEach((function(n){k.add(e(n,r,O,n,t,I))})):b(t)&&t.forEach((function(n,i){k.set(i,e(n,r,O,i,t,I))}));var z=M?void 0:(L?j?f:d:j?S:x)(t);return i(z||t,(function(n,i){z&&(n=t[i=n]),o(k,i,e(n,r,O,i,t,I))})),k}},39747:(e,t,r)=>{var n=r(41580),i=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},96576:(e,t,r)=>{var n=r(23212),i=r(59756),o=r(43316),s=r(65111),a=r(49460),l=r(65568);e.exports=function(e,t,r,c){var u=-1,h=i,d=!0,f=e.length,p=[],m=t.length;if(!f)return p;r&&(t=s(t,a(r))),c?(h=o,d=!1):t.length>=200&&(h=l,d=!1,t=new n(t));e:for(;++u<f;){var g=e[u],y=null==r?g:r(g);if(g=c||0!==g?g:0,d&&y==y){for(var v=m;v--;)if(t[v]===y)continue e;p.push(g)}else h(t,y,c)||p.push(g)}return p}},84570:(e,t,r)=>{var n=r(47170),i=r(45770)(n);e.exports=i},37250:e=>{e.exports=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},90313:(e,t,r)=>{var n=r(11129),i=r(20714);e.exports=function e(t,r,o,s,a){var l=-1,c=t.length;for(o||(o=i),a||(a=[]);++l<c;){var u=t[l];r>0&&o(u)?r>1?e(u,r-1,o,s,a):n(a,u):s||(a[a.length]=u)}return a}},35636:(e,t,r)=>{var n=r(86596)();e.exports=n},47170:(e,t,r)=>{var n=r(35636),i=r(81211);e.exports=function(e,t){return e&&n(e,t,i)}},57923:(e,t,r)=>{var n=r(93526),i=r(66040);e.exports=function(e,t){for(var r=0,o=(t=n(t,e)).length;null!=e&&r<o;)e=e[i(t[r++])];return r&&r==o?e:void 0}},48244:(e,t,r)=>{var n=r(11129),i=r(53142);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},87379:(e,t,r)=>{var n=r(65650),i=r(8870),o=r(29005),s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},43636:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},2478:(e,t,r)=>{var n=r(37250),i=r(69454),o=r(97706);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,i,r)}},38250:e=>{e.exports=function(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return-1}},93854:(e,t,r)=>{var n=r(23212),i=r(59756),o=r(43316),s=r(65111),a=r(49460),l=r(65568),c=Math.min;e.exports=function(e,t,r){for(var u=r?o:i,h=e[0].length,d=e.length,f=d,p=Array(d),m=1/0,g=[];f--;){var y=e[f];f&&t&&(y=s(y,a(t))),m=c(y.length,m),p[f]=!r&&(t||h>=120&&y.length>=120)?new n(f&&y):void 0}y=e[0];var v=-1,_=p[0];e:for(;++v<h&&g.length<m;){var b=y[v],w=t?t(b):b;if(b=r||0!==b?b:0,!(_?l(_,w):u(g,w,r))){for(f=d;--f;){var E=p[f];if(!(E?l(E,w):u(e[f],w,r)))continue e}_&&_.push(w),g.push(b)}}return g}},56027:(e,t,r)=>{var n=r(87379),i=r(80547);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},94687:(e,t,r)=>{var n=r(90353),i=r(80547);e.exports=function e(t,r,o,s,a){return t===r||(null==t||null==r||!i(t)&&!i(r)?t!=t&&r!=r:n(t,r,o,s,e,a))}},90353:(e,t,r)=>{var n=r(51340),i=r(33934),o=r(88861),s=r(31182),a=r(28486),l=r(53142),c=r(75853),u=r(8666),h="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,g,y){var v=l(e),_=l(t),b=v?d:a(e),w=_?d:a(t),E=(b=b==h?f:b)==f,x=(w=w==h?f:w)==f,S=b==w;if(S&&c(e)){if(!c(t))return!1;v=!0,E=!1}if(S&&!E)return y||(y=new n),v||u(e)?i(e,t,r,m,g,y):o(e,t,b,r,m,g,y);if(!(1&r)){var A=E&&p.call(e,"__wrapped__"),T=x&&p.call(t,"__wrapped__");if(A||T){var P=A?e.value():e,C=T?t.value():t;return y||(y=new n),g(P,C,r,m,y)}}return!!S&&(y||(y=new n),s(e,t,r,m,g,y))}},80777:(e,t,r)=>{var n=r(28486),i=r(80547);e.exports=function(e){return i(e)&&"[object Map]"==n(e)}},38330:(e,t,r)=>{var n=r(51340),i=r(94687);e.exports=function(e,t,r,o){var s=r.length,a=s,l=!o;if(null==e)return!a;for(e=Object(e);s--;){var c=r[s];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<a;){var u=(c=r[s])[0],h=e[u],d=c[1];if(l&&c[2]){if(void 0===h&&!(u in e))return!1}else{var f=new n;if(o)var p=o(h,d,u,e,t,f);if(!(void 0===p?i(d,h,3,o,f):p))return!1}}return!0}},69454:e=>{e.exports=function(e){return e!=e}},89624:(e,t,r)=>{var n=r(93655),i=r(64759),o=r(41580),s=r(64066),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,h=c.hasOwnProperty,d=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?d:a).test(s(e))}},81935:(e,t,r)=>{var n=r(28486),i=r(80547);e.exports=function(e){return i(e)&&"[object Set]"==n(e)}},70674:(e,t,r)=>{var n=r(87379),i=r(65387),o=r(80547),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!s[n(e)]}},3334:(e,t,r)=>{var n=r(36526),i=r(12343),o=r(22053),s=r(53142),a=r(43282);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?s(e)?i(e[0],e[1]):n(e):a(e)}},195:(e,t,r)=>{var n=r(84882),i=r(98121),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},57200:(e,t,r)=>{var n=r(41580),i=r(84882),o=r(38546),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&r.push(a);return r}},41393:(e,t,r)=>{var n=r(84570),i=r(36529);e.exports=function(e,t){var r=-1,o=i(e)?Array(e.length):[];return n(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}},36526:(e,t,r)=>{var n=r(38330),i=r(24367),o=r(23904);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},12343:(e,t,r)=>{var n=r(94687),i=r(46123),o=r(27276),s=r(65187),a=r(67267),l=r(23904),c=r(66040);e.exports=function(e,t){return s(e)&&a(t)?l(c(e),t):function(r){var s=i(r,e);return void 0===s&&s===t?o(r,e):n(t,s,3)}}},40091:(e,t,r)=>{var n=r(51340),i=r(24810),o=r(35636),s=r(26885),a=r(41580),l=r(25288),c=r(78763);e.exports=function e(t,r,u,h,d){t!==r&&o(r,(function(o,l){if(d||(d=new n),a(o))s(t,r,l,u,e,h,d);else{var f=h?h(c(t,l),o,l+"",t,r,d):void 0;void 0===f&&(f=o),i(t,l,f)}}),l)}},26885:(e,t,r)=>{var n=r(24810),i=r(17099),o=r(92264),s=r(84354),a=r(75964),l=r(3283),c=r(53142),u=r(65406),h=r(75853),d=r(93655),f=r(41580),p=r(48360),m=r(8666),g=r(78763),y=r(64207);e.exports=function(e,t,r,v,_,b,w){var E=g(e,r),x=g(t,r),S=w.get(x);if(S)n(e,r,S);else{var A=b?b(E,x,r+"",e,t,w):void 0,T=void 0===A;if(T){var P=c(x),C=!P&&h(x),O=!P&&!C&&m(x);A=x,P||C||O?c(E)?A=E:u(E)?A=s(E):C?(T=!1,A=i(x,!0)):O?(T=!1,A=o(x,!0)):A=[]:p(x)||l(x)?(A=E,l(E)?A=y(E):f(E)&&!d(E)||(A=a(x))):T=!1}T&&(w.set(x,A),_(A,x,v,b,w),w.delete(x)),n(e,r,A)}}},70310:(e,t,r)=>{var n=r(65111),i=r(57923),o=r(3334),s=r(41393),a=r(50642),l=r(49460),c=r(46775),u=r(22053),h=r(53142);e.exports=function(e,t,r){t=t.length?n(t,(function(e){return h(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[u];var d=-1;t=n(t,l(o));var f=s(e,(function(e,r,i){return{criteria:n(t,(function(t){return t(e)})),index:++d,value:e}}));return a(f,(function(e,t){return c(e,t,r)}))}},90242:(e,t,r)=>{var n=r(35031),i=r(27276);e.exports=function(e,t){return n(e,t,(function(t,r){return i(e,r)}))}},35031:(e,t,r)=>{var n=r(57923),i=r(87655),o=r(93526);e.exports=function(e,t,r){for(var s=-1,a=t.length,l={};++s<a;){var c=t[s],u=n(e,c);r(u,c)&&i(l,o(c,e),u)}return l}},12762:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},98880:(e,t,r)=>{var n=r(57923);e.exports=function(e){return function(t){return n(t,e)}}},49261:(e,t,r)=>{var n=r(65111),i=r(2478),o=r(38250),s=r(49460),a=r(84354),l=Array.prototype.splice;e.exports=function(e,t,r,c){var u=c?o:i,h=-1,d=t.length,f=e;for(e===t&&(t=a(t)),r&&(f=n(e,s(r)));++h<d;)for(var p=0,m=t[h],g=r?r(m):m;(p=u(f,g,p,c))>-1;)f!==e&&l.call(f,p,1),l.call(e,p,1);return e}},23945:(e,t,r)=>{var n=r(22053),i=r(75234),o=r(80796);e.exports=function(e,t){return o(i(e,t,n),e+"")}},87655:(e,t,r)=>{var n=r(3422),i=r(93526),o=r(69632),s=r(41580),a=r(66040);e.exports=function(e,t,r,l){if(!s(e))return e;for(var c=-1,u=(t=i(t,e)).length,h=u-1,d=e;null!=d&&++c<u;){var f=a(t[c]),p=r;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=h){var m=d[f];void 0===(p=l?l(m,f,d):void 0)&&(p=s(m)?m:o(t[c+1])?[]:{})}n(d,f,p),d=d[f]}return e}},47403:(e,t,r)=>{var n=r(82619),i=r(72532),o=r(22053),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=s},50642:e=>{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},26137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},52291:(e,t,r)=>{var n=r(65650),i=r(65111),o=r(53142),s=r(51187),a=n?n.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(s(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},49460:e=>{e.exports=function(e){return function(t){return e(t)}}},15630:(e,t,r)=>{var n=r(23212),i=r(59756),o=r(43316),s=r(65568),a=r(36208),l=r(49828);e.exports=function(e,t,r){var c=-1,u=i,h=e.length,d=!0,f=[],p=f;if(r)d=!1,u=o;else if(h>=200){var m=t?null:a(e);if(m)return l(m);d=!1,u=s,p=new n}else p=t?[]:f;e:for(;++c<h;){var g=e[c],y=t?t(g):g;if(g=r||0!==g?g:0,d&&y==y){for(var v=p.length;v--;)if(p[v]===y)continue e;t&&p.push(y),f.push(g)}else u(p,y,r)||(p!==f&&p.push(y),f.push(g))}return f}},65568:e=>{e.exports=function(e,t){return e.has(t)}},47648:(e,t,r)=>{var n=r(65406);e.exports=function(e){return n(e)?e:[]}},23997:(e,t,r)=>{var n=r(22053);e.exports=function(e){return"function"==typeof e?e:n}},93526:(e,t,r)=>{var n=r(53142),i=r(65187),o=r(96493),s=r(95243);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(s(e))}},58898:(e,t,r)=>{var n=r(31623);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},17099:(e,t,r)=>{e=r.nmd(e);var n=r(78942),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}},92480:(e,t,r)=>{var n=r(58898);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},78340:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},18069:(e,t,r)=>{var n=r(65650),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},92264:(e,t,r)=>{var n=r(58898);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},63521:(e,t,r)=>{var n=r(51187);e.exports=function(e,t){if(e!==t){var r=void 0!==e,i=null===e,o=e==e,s=n(e),a=void 0!==t,l=null===t,c=t==t,u=n(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!u&&e<t||u&&r&&o&&!i&&!s||l&&r&&o||!a&&o||!c)return-1}return 0}},46775:(e,t,r)=>{var n=r(63521);e.exports=function(e,t,r){for(var i=-1,o=e.criteria,s=t.criteria,a=o.length,l=r.length;++i<a;){var c=n(o[i],s[i]);if(c)return i>=l?c:c*("desc"==r[i]?-1:1)}return e.index-t.index}},84354:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},39032:(e,t,r)=>{var n=r(3422),i=r(57073);e.exports=function(e,t,r,o){var s=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var c=t[a],u=o?o(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),s?i(r,c,u):n(r,c,u)}return r}},83546:(e,t,r)=>{var n=r(39032),i=r(77979);e.exports=function(e,t){return n(e,i(e),t)}},24733:(e,t,r)=>{var n=r(39032),i=r(85832);e.exports=function(e,t){return n(e,i(e),t)}},41950:(e,t,r)=>{var n=r(78942)["__core-js_shared__"];e.exports=n},77848:(e,t,r)=>{var n=r(23945),i=r(74535);e.exports=function(e){return n((function(t,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++n<o;){var l=r[n];l&&e(t,l,n,s)}return t}))}},45770:(e,t,r)=>{var n=r(36529);e.exports=function(e,t){return function(r,i){if(null==r)return r;if(!n(r))return e(r,i);for(var o=r.length,s=t?o:-1,a=Object(r);(t?s--:++s<o)&&!1!==i(a[s],s,a););return r}}},86596:e=>{e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),s=n(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===r(o[l],l,o))break}return t}}},36208:(e,t,r)=>{var n=r(64512),i=r(79071),o=r(49828),s=n&&1/o(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=s},52107:(e,t,r)=>{var n=r(40091),i=r(41580);e.exports=function e(t,r,o,s,a,l){return i(t)&&i(r)&&(l.set(r,t),n(t,r,void 0,e,l),l.delete(r)),t}},72532:(e,t,r)=>{var n=r(94715),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},33934:(e,t,r)=>{var n=r(23212),i=r(36465),o=r(65568);e.exports=function(e,t,r,s,a,l){var c=1&r,u=e.length,h=t.length;if(u!=h&&!(c&&h>u))return!1;var d=l.get(e),f=l.get(t);if(d&&f)return d==t&&f==e;var p=-1,m=!0,g=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p<u;){var y=e[p],v=t[p];if(s)var _=c?s(v,y,p,t,e,l):s(y,v,p,e,t,l);if(void 0!==_){if(_)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(y===e||a(y,e,r,s,l)))return g.push(t)}))){m=!1;break}}else if(y!==v&&!a(y,v,r,s,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},88861:(e,t,r)=>{var n=r(65650),i=r(31623),o=r(46285),s=r(33934),a=r(95894),l=r(49828),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,h,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!h(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a;case"[object Set]":var p=1&n;if(f||(f=l),e.size!=t.size&&!p)return!1;var m=d.get(e);if(m)return m==t;n|=2,d.set(e,t);var g=s(f(e),f(t),n,c,h,d);return d.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},31182:(e,t,r)=>{var n=r(80393),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,s,a){var l=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var h=u;h--;){var d=c[h];if(!(l?d in t:i.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var g=l;++h<u;){var y=e[d=c[h]],v=t[d];if(o)var _=l?o(v,y,d,t,e,a):o(y,v,d,e,t,a);if(!(void 0===_?y===v||s(y,v,r,o,a):_)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(e),a.delete(t),m}},41439:(e,t,r)=>{var n=r(75857),i=r(75234),o=r(80796);e.exports=function(e){return o(i(e,void 0,n),e+"")}},74967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},80393:(e,t,r)=>{var n=r(48244),i=r(77979),o=r(81211);e.exports=function(e){return n(e,o,i)}},93650:(e,t,r)=>{var n=r(48244),i=r(85832),o=r(25288);e.exports=function(e){return n(e,o,i)}},44700:(e,t,r)=>{var n=r(79067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},24367:(e,t,r)=>{var n=r(67267),i=r(81211);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var o=t[r],s=e[o];t[r]=[o,s,n(s)]}return t}},94715:(e,t,r)=>{var n=r(89624),i=r(20155);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},74784:(e,t,r)=>{var n=r(3766)(Object.getPrototypeOf,Object);e.exports=n},8870:(e,t,r)=>{var n=r(65650),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}},77979:(e,t,r)=>{var n=r(79847),i=r(99306),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),n(s(e),(function(t){return o.call(e,t)})))}:i;e.exports=a},85832:(e,t,r)=>{var n=r(11129),i=r(74784),o=r(77979),s=r(99306),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=i(e);return t}:s;e.exports=a},28486:(e,t,r)=>{var n=r(33103),i=r(19770),o=r(89413),s=r(64512),a=r(19270),l=r(87379),c=r(64066),u="[object Map]",h="[object Promise]",d="[object Set]",f="[object WeakMap]",p="[object DataView]",m=c(n),g=c(i),y=c(o),v=c(s),_=c(a),b=l;(n&&b(new n(new ArrayBuffer(1)))!=p||i&&b(new i)!=u||o&&b(o.resolve())!=h||s&&b(new s)!=d||a&&b(new a)!=f)&&(b=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return p;case g:return u;case y:return h;case v:return d;case _:return f}return t}),e.exports=b},20155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},85899:(e,t,r)=>{var n=r(93526),i=r(3283),o=r(53142),s=r(69632),a=r(65387),l=r(66040);e.exports=function(e,t,r){for(var c=-1,u=(t=n(t,e)).length,h=!1;++c<u;){var d=l(t[c]);if(!(h=null!=e&&r(e,d)))break;e=e[d]}return h||++c!=u?h:!!(u=null==e?0:e.length)&&a(u)&&s(d,u)&&(o(e)||i(e))}},23305:(e,t,r)=>{var n=r(94497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},39361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},11112:(e,t,r)=>{var n=r(94497),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},25276:(e,t,r)=>{var n=r(94497),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},57452:(e,t,r)=>{var n=r(94497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},97350:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},50424:(e,t,r)=>{var n=r(58898),i=r(92480),o=r(78340),s=r(18069),a=r(92264);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return s(e)}}},75964:(e,t,r)=>{var n=r(39747),i=r(74784),o=r(84882);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(i(e))}},20714:(e,t,r)=>{var n=r(65650),i=r(3283),o=r(53142),s=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(s&&e&&e[s])}},69632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},74535:(e,t,r)=>{var n=r(46285),i=r(36529),o=r(69632),s=r(41580);e.exports=function(e,t,r){if(!s(r))return!1;var a=typeof t;return!!("number"==a?i(r)&&o(t,r.length):"string"==a&&t in r)&&n(r[t],e)}},65187:(e,t,r)=>{var n=r(53142),i=r(51187),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!i(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}},79067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},64759:(e,t,r)=>{var n,i=r(41950),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},84882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},67267:(e,t,r)=>{var n=r(41580);e.exports=function(e){return e==e&&!n(e)}},12393:e=>{e.exports=function(){this.__data__=[],this.size=0}},62049:(e,t,r)=>{var n=r(97034),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():i.call(t,r,1),--this.size,0))}},7144:(e,t,r)=>{var n=r(97034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var n=r(97034);e.exports=function(e){return n(this.__data__,e)>-1}},13964:(e,t,r)=>{var n=r(97034);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},49753:(e,t,r)=>{var n=r(25098),i=r(1386),o=r(19770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},5681:(e,t,r)=>{var n=r(44700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},80088:(e,t,r)=>{var n=r(44700);e.exports=function(e){return n(this,e).get(e)}},54732:(e,t,r)=>{var n=r(44700);e.exports=function(e){return n(this,e).has(e)}},59068:(e,t,r)=>{var n=r(44700);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},95894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},23904:e=>{e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},76853:(e,t,r)=>{var n=r(69011);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},94497:(e,t,r)=>{var n=r(94715)(Object,"create");e.exports=n},98121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},38546:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},2306:(e,t,r)=>{e=r.nmd(e);var n=r(74967),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},29005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},75234:(e,t,r)=>{var n=r(86912),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=i(o.length-t,0),l=Array(a);++s<a;)l[s]=o[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=o[s];return c[t]=r(l),n(e,this,c)}}},78942:(e,t,r)=>{var n=r(74967),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},78763:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},49828:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},80796:(e,t,r)=>{var n=r(47403),i=r(3316)(n);e.exports=i},3316:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},64103:(e,t,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},21779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},34162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},96638:(e,t,r)=>{var n=r(1386),i=r(19770),o=r(68250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(s)}return r.set(e,t),this.size=r.size,this}},97706:e=>{e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}},96493:(e,t,r)=>{var n=r(76853),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)})),t}));e.exports=s},66040:(e,t,r)=>{var n=r(51187);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},64066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},46108:(e,t,r)=>{var n=r(69334);e.exports=function(e){return n(e,5)}},82619:e=>{e.exports=function(e){return function(){return e}}},32293:(e,t,r)=>{var n=r(23945),i=r(46285),o=r(74535),s=r(25288),a=Object.prototype,l=a.hasOwnProperty,c=n((function(e,t){e=Object(e);var r=-1,n=t.length,c=n>2?t[2]:void 0;for(c&&o(t[0],t[1],c)&&(n=1);++r<n;)for(var u=t[r],h=s(u),d=-1,f=h.length;++d<f;){var p=h[d],m=e[p];(void 0===m||i(m,a[p])&&!l.call(e,p))&&(e[p]=u[p])}return e}));e.exports=c},69383:(e,t,r)=>{var n=r(86912),i=r(23945),o=r(52107),s=r(48875),a=i((function(e){return e.push(void 0,o),n(s,void 0,e)}));e.exports=a},46285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},75857:(e,t,r)=>{var n=r(90313);e.exports=function(e){return null!=e&&e.length?n(e,1):[]}},53435:(e,t,r)=>{var n=r(90313),i=1/0;e.exports=function(e){return null!=e&&e.length?n(e,i):[]}},83657:(e,t,r)=>{var n=r(79968),i=r(84570),o=r(23997),s=r(53142);e.exports=function(e,t){return(s(e)?n:i)(e,o(t))}},46123:(e,t,r)=>{var n=r(57923);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},27276:(e,t,r)=>{var n=r(43636),i=r(85899);e.exports=function(e,t){return null!=e&&i(e,t,n)}},22053:e=>{e.exports=function(e){return e}},58150:(e,t,r)=>{var n=r(65111),i=r(93854),o=r(23945),s=r(47648),a=o((function(e){var t=n(e,s);return t.length&&t[0]===e[0]?i(t):[]}));e.exports=a},30306:(e,t,r)=>{var n=r(65111),i=r(93854),o=r(23945),s=r(47648),a=r(98087),l=o((function(e){var t=a(e),r=n(e,s);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===e[0]?i(r,void 0,t):[]}));e.exports=l},3283:(e,t,r)=>{var n=r(56027),i=r(80547),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},53142:e=>{var t=Array.isArray;e.exports=t},36529:(e,t,r)=>{var n=r(93655),i=r(65387);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},65406:(e,t,r)=>{var n=r(36529),i=r(80547);e.exports=function(e){return i(e)&&n(e)}},22563:(e,t,r)=>{var n=r(87379),i=r(80547);e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==n(e)}},75853:(e,t,r)=>{e=r.nmd(e);var n=r(78942),i=r(34772),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||i;e.exports=l},3514:(e,t,r)=>{var n=r(195),i=r(28486),o=r(3283),s=r(53142),a=r(36529),l=r(75853),c=r(84882),u=r(8666),h=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!n(e).length;for(var r in e)if(h.call(e,r))return!1;return!0}},46343:(e,t,r)=>{var n=r(94687);e.exports=function(e,t){return n(e,t)}},93655:(e,t,r)=>{var n=r(87379),i=r(41580);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},65387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},37681:(e,t,r)=>{var n=r(80777),i=r(49460),o=r(2306),s=o&&o.isMap,a=s?i(s):n;e.exports=a},41580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},80547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},48360:(e,t,r)=>{var n=r(87379),i=r(74784),o=r(80547),s=Function.prototype,a=Object.prototype,l=s.toString,c=a.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},83943:(e,t,r)=>{var n=r(81935),i=r(49460),o=r(2306),s=o&&o.isSet,a=s?i(s):n;e.exports=a},51187:(e,t,r)=>{var n=r(87379),i=r(80547);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},8666:(e,t,r)=>{var n=r(70674),i=r(49460),o=r(2306),s=o&&o.isTypedArray,a=s?i(s):n;e.exports=a},81211:(e,t,r)=>{var n=r(10358),i=r(195),o=r(36529);e.exports=function(e){return o(e)?n(e):i(e)}},25288:(e,t,r)=>{var n=r(10358),i=r(57200),o=r(36529);e.exports=function(e){return o(e)?n(e,!0):i(e)}},98087:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},45250:function(e,t,r){var n;e=r.nmd(e),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,c=128,u=1/0,h=9007199254740991,d=NaN,f=4294967295,p=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",y="[object Boolean]",v="[object Date]",_="[object Error]",b="[object Function]",w="[object GeneratorFunction]",E="[object Map]",x="[object Number]",S="[object Object]",A="[object Promise]",T="[object RegExp]",P="[object Set]",C="[object String]",O="[object Symbol]",R="[object WeakMap]",D="[object ArrayBuffer]",I="[object DataView]",k="[object Float32Array]",F="[object Float64Array]",j="[object Int8Array]",L="[object Int16Array]",M="[object Int32Array]",N="[object Uint8Array]",$="[object Uint8ClampedArray]",G="[object Uint16Array]",z="[object Uint32Array]",U=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,W=RegExp(K.source),H=RegExp(q.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,be=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ae="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ce="["+we+"]",Oe="["+Pe+"]",Re="["+Ee+"]",De="\\d+",Ie="["+xe+"]",ke="["+Se+"]",Fe="[^"+we+Pe+De+xe+Se+Ae+"]",je="\\ud83c[\\udffb-\\udfff]",Le="[^"+we+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+Ae+"]",Ge="\\u200d",ze="(?:"+ke+"|"+Fe+")",Ue="(?:"+$e+"|"+Fe+")",Be="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Re+"|"+je+")?",qe="["+Te+"]?",We=qe+Ke+"(?:"+Ge+"(?:"+[Le,Me,Ne].join("|")+")"+qe+Ke+")*",He="(?:"+[Ie,Me,Ne].join("|")+")"+We,Ye="(?:"+[Le+Re+"?",Re,Me,Ne,Ce].join("|")+")",Xe=RegExp("['’]","g"),Ze=RegExp(Re,"g"),Je=RegExp(je+"(?="+je+")|"+Ye+We,"g"),Qe=RegExp([$e+"?"+ke+"+"+Be+"(?="+[Oe,$e,"$"].join("|")+")",Ue+"+"+Ve+"(?="+[Oe,$e+ze,"$"].join("|")+")",$e+"?"+ze+"+"+Be,$e+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,He].join("|"),"g"),et=RegExp("["+Ge+we+Ee+Te+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,it={};it[k]=it[F]=it[j]=it[L]=it[M]=it[N]=it[$]=it[G]=it[z]=!0,it[m]=it[g]=it[D]=it[y]=it[I]=it[v]=it[_]=it[b]=it[E]=it[x]=it[S]=it[T]=it[P]=it[C]=it[R]=!1;var ot={};ot[m]=ot[g]=ot[D]=ot[I]=ot[y]=ot[v]=ot[k]=ot[F]=ot[j]=ot[L]=ot[M]=ot[E]=ot[x]=ot[S]=ot[T]=ot[P]=ot[C]=ot[O]=ot[N]=ot[$]=ot[G]=ot[z]=!0,ot[_]=ot[b]=ot[R]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,lt=parseInt,ct="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ut="object"==typeof self&&self&&self.Object===Object&&self,ht=ct||ut||Function("return this")(),dt=t&&!t.nodeType&&t,ft=dt&&e&&!e.nodeType&&e,pt=ft&&ft.exports===dt,mt=pt&&ct.process,gt=function(){try{return ft&&ft.require&&ft.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),yt=gt&&gt.isArrayBuffer,vt=gt&&gt.isDate,_t=gt&&gt.isMap,bt=gt&&gt.isRegExp,wt=gt&&gt.isSet,Et=gt&&gt.isTypedArray;function xt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function St(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(n,s,r(s),e)}return n}function At(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Tt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Pt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Ct(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function Ot(e,t){return!(null==e||!e.length)&&$t(e,t,0)>-1}function Rt(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function Dt(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function It(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function kt(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function Ft(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function jt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Lt=Bt("length");function Mt(e,t,r){var n;return r(e,(function(e,r,i){if(t(e,r,i))return n=r,!1})),n}function Nt(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function $t(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):Nt(e,zt,r)}function Gt(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return-1}function zt(e){return e!=e}function Ut(e,t){var r=null==e?0:e.length;return r?qt(e,t)/r:d}function Bt(e){return function(t){return null==t?i:t[e]}}function Vt(e){return function(t){return null==e?i:e[t]}}function Kt(e,t,r,n,i){return i(e,(function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)})),r}function qt(e,t){for(var r,n=-1,o=e.length;++n<o;){var s=t(e[n]);s!==i&&(r=r===i?s:r+s)}return r}function Wt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Ht(e){return e?e.slice(0,hr(e)+1).replace(ne,""):e}function Yt(e){return function(t){return e(t)}}function Xt(e,t){return Dt(t,(function(t){return e[t]}))}function Zt(e,t){return e.has(t)}function Jt(e,t){for(var r=-1,n=e.length;++r<n&&$t(t,e[r],0)>-1;);return r}function Qt(e,t){for(var r=e.length;r--&&$t(t,e[r],0)>-1;);return r}var er=Vt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tr=Vt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rr(e){return"\\"+st[e]}function nr(e){return et.test(e)}function ir(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function or(e,t){return function(r){return e(t(r))}}function sr(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var s=e[r];s!==t&&s!==a||(e[r]=a,o[i++]=r)}return o}function ar(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function lr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function cr(e){return nr(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Lt(e)}function ur(e){return nr(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function hr(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var dr=Vt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),fr=function e(t){var r,n=(t=null==t?ht:fr.defaults(ht.Object(),t,fr.pick(ht,rt))).Array,ie=t.Date,we=t.Error,Ee=t.Function,xe=t.Math,Se=t.Object,Ae=t.RegExp,Te=t.String,Pe=t.TypeError,Ce=n.prototype,Oe=Ee.prototype,Re=Se.prototype,De=t["__core-js_shared__"],Ie=Oe.toString,ke=Re.hasOwnProperty,Fe=0,je=(r=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Le=Re.toString,Me=Ie.call(Se),Ne=ht._,$e=Ae("^"+Ie.call(ke).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=pt?t.Buffer:i,ze=t.Symbol,Ue=t.Uint8Array,Be=Ge?Ge.allocUnsafe:i,Ve=or(Se.getPrototypeOf,Se),Ke=Se.create,qe=Re.propertyIsEnumerable,We=Ce.splice,He=ze?ze.isConcatSpreadable:i,Ye=ze?ze.iterator:i,Je=ze?ze.toStringTag:i,et=function(){try{var e=lo(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==ht.Date.now&&ie.now,ut=t.setTimeout!==ht.setTimeout&&t.setTimeout,dt=xe.ceil,ft=xe.floor,mt=Se.getOwnPropertySymbols,gt=Ge?Ge.isBuffer:i,Lt=t.isFinite,Vt=Ce.join,pr=or(Se.keys,Se),mr=xe.max,gr=xe.min,yr=ie.now,vr=t.parseInt,_r=xe.random,br=Ce.reverse,wr=lo(t,"DataView"),Er=lo(t,"Map"),xr=lo(t,"Promise"),Sr=lo(t,"Set"),Ar=lo(t,"WeakMap"),Tr=lo(Se,"create"),Pr=Ar&&new Ar,Cr={},Or=Mo(wr),Rr=Mo(Er),Dr=Mo(xr),Ir=Mo(Sr),kr=Mo(Ar),Fr=ze?ze.prototype:i,jr=Fr?Fr.valueOf:i,Lr=Fr?Fr.toString:i;function Mr(e){if(ea(e)&&!Bs(e)&&!(e instanceof zr)){if(e instanceof Gr)return e;if(ke.call(e,"__wrapped__"))return No(e)}return new Gr(e)}var Nr=function(){function e(){}return function(t){if(!Qs(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function $r(){}function Gr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function zr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Ur(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Br(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Vr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Kr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Vr;++t<r;)this.add(e[t])}function qr(e){var t=this.__data__=new Br(e);this.size=t.size}function Wr(e,t){var r=Bs(e),n=!r&&Us(e),i=!r&&!n&&Ws(e),o=!r&&!n&&!i&&la(e),s=r||n||i||o,a=s?Wt(e.length,Te):[],l=a.length;for(var c in e)!t&&!ke.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||go(c,l))||a.push(c);return a}function Hr(e){var t=e.length;return t?e[Kn(0,t-1)]:i}function Yr(e,t){return Io(Ti(e),on(t,0,e.length))}function Xr(e){return Io(Ti(e))}function Zr(e,t,r){(r!==i&&!$s(e[t],r)||r===i&&!(t in e))&&rn(e,t,r)}function Jr(e,t,r){var n=e[t];ke.call(e,t)&&$s(n,r)&&(r!==i||t in e)||rn(e,t,r)}function Qr(e,t){for(var r=e.length;r--;)if($s(e[r][0],t))return r;return-1}function en(e,t,r,n){return un(e,(function(e,i,o){t(n,e,r(e),o)})),n}function tn(e,t){return e&&Pi(t,Ra(t),e)}function rn(e,t,r){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function nn(e,t){for(var r=-1,o=t.length,s=n(o),a=null==e;++r<o;)s[r]=a?i:Aa(e,t[r]);return s}function on(e,t,r){return e==e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function sn(e,t,r,n,o,s){var a,l=1&t,c=2&t,u=4&t;if(r&&(a=o?r(e,n,o,s):r(e)),a!==i)return a;if(!Qs(e))return e;var h=Bs(e);if(h){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ke.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!l)return Ti(e,a)}else{var d=ho(e),f=d==b||d==w;if(Ws(e))return bi(e,l);if(d==S||d==m||f&&!o){if(a=c||f?{}:po(e),!l)return c?function(e,t){return Pi(e,uo(e),t)}(e,function(e,t){return e&&Pi(t,Da(t),e)}(a,e)):function(e,t){return Pi(e,co(e),t)}(e,tn(a,e))}else{if(!ot[d])return o?e:{};a=function(e,t,r){var n,i=e.constructor;switch(t){case D:return wi(e);case y:case v:return new i(+e);case I:return function(e,t){var r=t?wi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case k:case F:case j:case L:case M:case N:case $:case G:case z:return Ei(e,r);case E:return new i;case x:case C:return new i(e);case T:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new i;case O:return n=e,jr?Se(jr.call(n)):{}}}(e,d,l)}}s||(s=new qr);var p=s.get(e);if(p)return p;s.set(e,a),oa(e)?e.forEach((function(n){a.add(sn(n,t,r,n,e,s))})):ta(e)&&e.forEach((function(n,i){a.set(i,sn(n,t,r,i,e,s))}));var g=h?i:(u?c?to:eo:c?Da:Ra)(e);return At(g||e,(function(n,i){g&&(n=e[i=n]),Jr(a,i,sn(n,t,r,i,e,s))})),a}function an(e,t,r){var n=r.length;if(null==e)return!n;for(e=Se(e);n--;){var o=r[n],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function ln(e,t,r){if("function"!=typeof e)throw new Pe(o);return Co((function(){e.apply(i,r)}),t)}function cn(e,t,r,n){var i=-1,o=Ot,s=!0,a=e.length,l=[],c=t.length;if(!a)return l;r&&(t=Dt(t,Yt(r))),n?(o=Rt,s=!1):t.length>=200&&(o=Zt,s=!1,t=new Kr(t));e:for(;++i<a;){var u=e[i],h=null==r?u:r(u);if(u=n||0!==u?u:0,s&&h==h){for(var d=c;d--;)if(t[d]===h)continue e;l.push(u)}else o(t,h,n)||l.push(u)}return l}Mr.templateSettings={escape:Y,evaluate:X,interpolate:Z,variable:"",imports:{_:Mr}},Mr.prototype=$r.prototype,Mr.prototype.constructor=Mr,Gr.prototype=Nr($r.prototype),Gr.prototype.constructor=Gr,zr.prototype=Nr($r.prototype),zr.prototype.constructor=zr,Ur.prototype.clear=function(){this.__data__=Tr?Tr(null):{},this.size=0},Ur.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ur.prototype.get=function(e){var t=this.__data__;if(Tr){var r=t[e];return r===s?i:r}return ke.call(t,e)?t[e]:i},Ur.prototype.has=function(e){var t=this.__data__;return Tr?t[e]!==i:ke.call(t,e)},Ur.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Tr&&t===i?s:t,this},Br.prototype.clear=function(){this.__data__=[],this.size=0},Br.prototype.delete=function(e){var t=this.__data__,r=Qr(t,e);return!(r<0||(r==t.length-1?t.pop():We.call(t,r,1),--this.size,0))},Br.prototype.get=function(e){var t=this.__data__,r=Qr(t,e);return r<0?i:t[r][1]},Br.prototype.has=function(e){return Qr(this.__data__,e)>-1},Br.prototype.set=function(e,t){var r=this.__data__,n=Qr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Vr.prototype.clear=function(){this.size=0,this.__data__={hash:new Ur,map:new(Er||Br),string:new Ur}},Vr.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},Vr.prototype.get=function(e){return so(this,e).get(e)},Vr.prototype.has=function(e){return so(this,e).has(e)},Vr.prototype.set=function(e,t){var r=so(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Kr.prototype.add=Kr.prototype.push=function(e){return this.__data__.set(e,s),this},Kr.prototype.has=function(e){return this.__data__.has(e)},qr.prototype.clear=function(){this.__data__=new Br,this.size=0},qr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},qr.prototype.get=function(e){return this.__data__.get(e)},qr.prototype.has=function(e){return this.__data__.has(e)},qr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Br){var n=r.__data__;if(!Er||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Vr(n)}return r.set(e,t),this.size=r.size,this};var un=Ri(vn),hn=Ri(_n,!0);function dn(e,t){var r=!0;return un(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function fn(e,t,r){for(var n=-1,o=e.length;++n<o;){var s=e[n],a=t(s);if(null!=a&&(l===i?a==a&&!aa(a):r(a,l)))var l=a,c=s}return c}function pn(e,t){var r=[];return un(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function mn(e,t,r,n,i){var o=-1,s=e.length;for(r||(r=mo),i||(i=[]);++o<s;){var a=e[o];t>0&&r(a)?t>1?mn(a,t-1,r,n,i):It(i,a):n||(i[i.length]=a)}return i}var gn=Di(),yn=Di(!0);function vn(e,t){return e&&gn(e,t,Ra)}function _n(e,t){return e&&yn(e,t,Ra)}function bn(e,t){return Ct(t,(function(t){return Xs(e[t])}))}function wn(e,t){for(var r=0,n=(t=gi(t,e)).length;null!=e&&r<n;)e=e[Lo(t[r++])];return r&&r==n?e:i}function En(e,t,r){var n=t(e);return Bs(e)?n:It(n,r(e))}function xn(e){return null==e?e===i?"[object Undefined]":"[object Null]":Je&&Je in Se(e)?function(e){var t=ke.call(e,Je),r=e[Je];try{e[Je]=i;var n=!0}catch(e){}var o=Le.call(e);return n&&(t?e[Je]=r:delete e[Je]),o}(e):function(e){return Le.call(e)}(e)}function Sn(e,t){return e>t}function An(e,t){return null!=e&&ke.call(e,t)}function Tn(e,t){return null!=e&&t in Se(e)}function Pn(e,t,r){for(var o=r?Rt:Ot,s=e[0].length,a=e.length,l=a,c=n(a),u=1/0,h=[];l--;){var d=e[l];l&&t&&(d=Dt(d,Yt(t))),u=gr(d.length,u),c[l]=!r&&(t||s>=120&&d.length>=120)?new Kr(l&&d):i}d=e[0];var f=-1,p=c[0];e:for(;++f<s&&h.length<u;){var m=d[f],g=t?t(m):m;if(m=r||0!==m?m:0,!(p?Zt(p,g):o(h,g,r))){for(l=a;--l;){var y=c[l];if(!(y?Zt(y,g):o(e[l],g,r)))continue e}p&&p.push(g),h.push(m)}}return h}function Cn(e,t,r){var n=null==(e=Ao(e,t=gi(t,e)))?e:e[Lo(Yo(t))];return null==n?i:xt(n,e,r)}function On(e){return ea(e)&&xn(e)==m}function Rn(e,t,r,n,o){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,r,n,o,s){var a=Bs(e),l=Bs(t),c=a?g:ho(e),u=l?g:ho(t),h=(c=c==m?S:c)==S,d=(u=u==m?S:u)==S,f=c==u;if(f&&Ws(e)){if(!Ws(t))return!1;a=!0,h=!1}if(f&&!h)return s||(s=new qr),a||la(e)?Ji(e,t,r,n,o,s):function(e,t,r,n,i,o,s){switch(r){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case D:return!(e.byteLength!=t.byteLength||!o(new Ue(e),new Ue(t)));case y:case v:case x:return $s(+e,+t);case _:return e.name==t.name&&e.message==t.message;case T:case C:return e==t+"";case E:var a=ir;case P:var l=1&n;if(a||(a=ar),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=2,s.set(e,t);var u=Ji(a(e),a(t),n,i,o,s);return s.delete(e),u;case O:if(jr)return jr.call(e)==jr.call(t)}return!1}(e,t,c,r,n,o,s);if(!(1&r)){var p=h&&ke.call(e,"__wrapped__"),b=d&&ke.call(t,"__wrapped__");if(p||b){var w=p?e.value():e,A=b?t.value():t;return s||(s=new qr),o(w,A,r,n,s)}}return!!f&&(s||(s=new qr),function(e,t,r,n,o,s){var a=1&r,l=eo(e),c=l.length;if(c!=eo(t).length&&!a)return!1;for(var u=c;u--;){var h=l[u];if(!(a?h in t:ke.call(t,h)))return!1}var d=s.get(e),f=s.get(t);if(d&&f)return d==t&&f==e;var p=!0;s.set(e,t),s.set(t,e);for(var m=a;++u<c;){var g=e[h=l[u]],y=t[h];if(n)var v=a?n(y,g,h,t,e,s):n(g,y,h,e,t,s);if(!(v===i?g===y||o(g,y,r,n,s):v)){p=!1;break}m||(m="constructor"==h)}if(p&&!m){var _=e.constructor,b=t.constructor;_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,r,n,o,s))}(e,t,r,n,Rn,o))}function Dn(e,t,r,n){var o=r.length,s=o,a=!n;if(null==e)return!s;for(e=Se(e);o--;){var l=r[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=r[o])[0],u=e[c],h=l[1];if(a&&l[2]){if(u===i&&!(c in e))return!1}else{var d=new qr;if(n)var f=n(u,h,c,e,t,d);if(!(f===i?Rn(h,u,3,n,d):f))return!1}}return!0}function In(e){return!(!Qs(e)||(t=e,je&&je in t))&&(Xs(e)?$e:me).test(Mo(e));var t}function kn(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Bs(e)?Nn(e[0],e[1]):Mn(e):hl(e)}function Fn(e){if(!wo(e))return pr(e);var t=[];for(var r in Se(e))ke.call(e,r)&&"constructor"!=r&&t.push(r);return t}function jn(e,t){return e<t}function Ln(e,t){var r=-1,i=Ks(e)?n(e.length):[];return un(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Mn(e){var t=ao(e);return 1==t.length&&t[0][2]?xo(t[0][0],t[0][1]):function(r){return r===e||Dn(r,e,t)}}function Nn(e,t){return vo(e)&&Eo(t)?xo(Lo(e),t):function(r){var n=Aa(r,e);return n===i&&n===t?Ta(r,e):Rn(t,n,3)}}function $n(e,t,r,n,o){e!==t&&gn(t,(function(s,a){if(o||(o=new qr),Qs(s))!function(e,t,r,n,o,s,a){var l=To(e,r),c=To(t,r),u=a.get(c);if(u)Zr(e,r,u);else{var h=s?s(l,c,r+"",e,t,a):i,d=h===i;if(d){var f=Bs(c),p=!f&&Ws(c),m=!f&&!p&&la(c);h=c,f||p||m?Bs(l)?h=l:qs(l)?h=Ti(l):p?(d=!1,h=bi(c,!0)):m?(d=!1,h=Ei(c,!0)):h=[]:na(c)||Us(c)?(h=l,Us(l)?h=ga(l):Qs(l)&&!Xs(l)||(h=po(c))):d=!1}d&&(a.set(c,h),o(h,c,n,s,a),a.delete(c)),Zr(e,r,h)}}(e,t,a,r,$n,n,o);else{var l=n?n(To(e,a),s,a+"",e,t,o):i;l===i&&(l=s),Zr(e,a,l)}}),Da)}function Gn(e,t){var r=e.length;if(r)return go(t+=t<0?r:0,r)?e[t]:i}function zn(e,t,r){t=t.length?Dt(t,(function(e){return Bs(e)?function(t){return wn(t,1===e.length?e[0]:e)}:e})):[rl];var n=-1;t=Dt(t,Yt(oo()));var i=Ln(e,(function(e,r,i){var o=Dt(t,(function(t){return t(e)}));return{criteria:o,index:++n,value:e}}));return function(e){var t=e.length;for(e.sort((function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,s=i.length,a=r.length;++n<s;){var l=xi(i[n],o[n]);if(l)return n>=a?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));t--;)e[t]=e[t].value;return e}(i)}function Un(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var s=t[n],a=wn(e,s);r(a,s)&&Xn(o,gi(s,e),a)}return o}function Bn(e,t,r,n){var i=n?Gt:$t,o=-1,s=t.length,a=e;for(e===t&&(t=Ti(t)),r&&(a=Dt(e,Yt(r)));++o<s;)for(var l=0,c=t[o],u=r?r(c):c;(l=i(a,u,l,n))>-1;)a!==e&&We.call(a,l,1),We.call(e,l,1);return e}function Vn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;go(i)?We.call(e,i,1):li(e,i)}}return e}function Kn(e,t){return e+ft(_r()*(t-e+1))}function qn(e,t){var r="";if(!e||t<1||t>h)return r;do{t%2&&(r+=e),(t=ft(t/2))&&(e+=e)}while(t);return r}function Wn(e,t){return Oo(So(e,t,rl),e+"")}function Hn(e){return Hr($a(e))}function Yn(e,t){var r=$a(e);return Io(r,on(t,0,r.length))}function Xn(e,t,r,n){if(!Qs(e))return e;for(var o=-1,s=(t=gi(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=Lo(t[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var h=l[c];(u=n?n(h,c,l):i)===i&&(u=Qs(h)?h:go(t[o+1])?[]:{})}Jr(l,c,u),l=l[c]}return e}var Zn=Pr?function(e,t){return Pr.set(e,t),e}:rl,Jn=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qa(t),writable:!0})}:rl;function Qn(e){return Io($a(e))}function ei(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=n(o);++i<o;)s[i]=e[i+t];return s}function ti(e,t){var r;return un(e,(function(e,n,i){return!(r=t(e,n,i))})),!!r}function ri(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=e[o];null!==s&&!aa(s)&&(r?s<=t:s<t)?n=o+1:i=o}return i}return ni(e,t,rl,r)}function ni(e,t,r,n){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,l=null===t,c=aa(t),u=t===i;o<s;){var h=ft((o+s)/2),d=r(e[h]),f=d!==i,p=null===d,m=d==d,g=aa(d);if(a)var y=n||m;else y=u?m&&(n||f):l?m&&f&&(n||!p):c?m&&f&&!p&&(n||!g):!p&&!g&&(n?d<=t:d<t);y?o=h+1:s=h}return gr(s,4294967294)}function ii(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var s=e[r],a=t?t(s):s;if(!r||!$s(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function oi(e){return"number"==typeof e?e:aa(e)?d:+e}function si(e){if("string"==typeof e)return e;if(Bs(e))return Dt(e,si)+"";if(aa(e))return Lr?Lr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ai(e,t,r){var n=-1,i=Ot,o=e.length,s=!0,a=[],l=a;if(r)s=!1,i=Rt;else if(o>=200){var c=t?null:qi(e);if(c)return ar(c);s=!1,i=Zt,l=new Kr}else l=t?[]:a;e:for(;++n<o;){var u=e[n],h=t?t(u):u;if(u=r||0!==u?u:0,s&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue e;t&&l.push(h),a.push(u)}else i(l,h,r)||(l!==a&&l.push(h),a.push(u))}return a}function li(e,t){return null==(e=Ao(e,t=gi(t,e)))||delete e[Lo(Yo(t))]}function ci(e,t,r,n){return Xn(e,t,r(wn(e,t)),n)}function ui(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?ei(e,n?0:o,n?o+1:i):ei(e,n?o+1:0,n?i:o)}function hi(e,t){var r=e;return r instanceof zr&&(r=r.value()),kt(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),r)}function di(e,t,r){var i=e.length;if(i<2)return i?ai(e[0]):[];for(var o=-1,s=n(i);++o<i;)for(var a=e[o],l=-1;++l<i;)l!=o&&(s[o]=cn(s[o]||a,e[l],t,r));return ai(mn(s,1),t,r)}function fi(e,t,r){for(var n=-1,o=e.length,s=t.length,a={};++n<o;){var l=n<s?t[n]:i;r(a,e[n],l)}return a}function pi(e){return qs(e)?e:[]}function mi(e){return"function"==typeof e?e:rl}function gi(e,t){return Bs(e)?e:vo(e,t)?[e]:jo(ya(e))}var yi=Wn;function vi(e,t,r){var n=e.length;return r=r===i?n:r,!t&&r>=n?e:ei(e,t,r)}var _i=st||function(e){return ht.clearTimeout(e)};function bi(e,t){if(t)return e.slice();var r=e.length,n=Be?Be(r):new e.constructor(r);return e.copy(n),n}function wi(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Ei(e,t){var r=t?wi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function xi(e,t){if(e!==t){var r=e!==i,n=null===e,o=e==e,s=aa(e),a=t!==i,l=null===t,c=t==t,u=aa(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||n&&a&&c||!r&&c||!o)return 1;if(!n&&!s&&!u&&e<t||u&&r&&o&&!n&&!s||l&&r&&o||!a&&o||!c)return-1}return 0}function Si(e,t,r,i){for(var o=-1,s=e.length,a=r.length,l=-1,c=t.length,u=mr(s-a,0),h=n(c+u),d=!i;++l<c;)h[l]=t[l];for(;++o<a;)(d||o<s)&&(h[r[o]]=e[o]);for(;u--;)h[l++]=e[o++];return h}function Ai(e,t,r,i){for(var o=-1,s=e.length,a=-1,l=r.length,c=-1,u=t.length,h=mr(s-l,0),d=n(h+u),f=!i;++o<h;)d[o]=e[o];for(var p=o;++c<u;)d[p+c]=t[c];for(;++a<l;)(f||o<s)&&(d[p+r[a]]=e[o++]);return d}function Ti(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Pi(e,t,r,n){var o=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=n?n(r[l],e[l],l,r,e):i;c===i&&(c=e[l]),o?rn(r,l,c):Jr(r,l,c)}return r}function Ci(e,t){return function(r,n){var i=Bs(r)?St:en,o=t?t():{};return i(r,e,oo(n,2),o)}}function Oi(e){return Wn((function(t,r){var n=-1,o=r.length,s=o>1?r[o-1]:i,a=o>2?r[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&yo(r[0],r[1],a)&&(s=o<3?i:s,o=1),t=Se(t);++n<o;){var l=r[n];l&&e(t,l,n,s)}return t}))}function Ri(e,t){return function(r,n){if(null==r)return r;if(!Ks(r))return e(r,n);for(var i=r.length,o=t?i:-1,s=Se(r);(t?o--:++o<i)&&!1!==n(s[o],o,s););return r}}function Di(e){return function(t,r,n){for(var i=-1,o=Se(t),s=n(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===r(o[l],l,o))break}return t}}function Ii(e){return function(t){var r=nr(t=ya(t))?ur(t):i,n=r?r[0]:t.charAt(0),o=r?vi(r,1).join(""):t.slice(1);return n[e]()+o}}function ki(e){return function(t){return kt(Xa(Ua(t).replace(Xe,"")),e,"")}}function Fi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Nr(e.prototype),n=e.apply(r,t);return Qs(n)?n:r}}function ji(e){return function(t,r,n){var o=Se(t);if(!Ks(t)){var s=oo(r,3);t=Ra(t),r=function(e){return s(o[e],e,o)}}var a=e(t,r,n);return a>-1?o[s?t[a]:a]:i}}function Li(e){return Qi((function(t){var r=t.length,n=r,s=Gr.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new Pe(o);if(s&&!l&&"wrapper"==no(a))var l=new Gr([],!0)}for(n=l?n:r;++n<r;){var c=no(a=t[n]),u="wrapper"==c?ro(a):i;l=u&&_o(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[no(u[0])].apply(l,u[3]):1==a.length&&_o(a)?l[c]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Bs(n))return l.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}function Mi(e,t,r,o,s,a,l,u,h,d){var f=t&c,p=1&t,m=2&t,g=24&t,y=512&t,v=m?i:Fi(e);return function c(){for(var _=arguments.length,b=n(_),w=_;w--;)b[w]=arguments[w];if(g)var E=io(c),x=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(b,E);if(o&&(b=Si(b,o,s,g)),a&&(b=Ai(b,a,l,g)),_-=x,g&&_<d){var S=sr(b,E);return Vi(e,t,Mi,c.placeholder,r,b,S,u,h,d-_)}var A=p?r:this,T=m?A[e]:e;return _=b.length,u?b=function(e,t){for(var r=e.length,n=gr(t.length,r),o=Ti(e);n--;){var s=t[n];e[n]=go(s,r)?o[s]:i}return e}(b,u):y&&_>1&&b.reverse(),f&&h<_&&(b.length=h),this&&this!==ht&&this instanceof c&&(T=v||Fi(T)),T.apply(A,b)}}function Ni(e,t){return function(r,n){return function(e,t,r,n){return vn(e,(function(e,i,o){t(n,r(e),i,o)})),n}(r,e,t(n),{})}}function $i(e,t){return function(r,n){var o;if(r===i&&n===i)return t;if(r!==i&&(o=r),n!==i){if(o===i)return n;"string"==typeof r||"string"==typeof n?(r=si(r),n=si(n)):(r=oi(r),n=oi(n)),o=e(r,n)}return o}}function Gi(e){return Qi((function(t){return t=Dt(t,Yt(oo())),Wn((function(r){var n=this;return e(t,(function(e){return xt(e,n,r)}))}))}))}function zi(e,t){var r=(t=t===i?" ":si(t)).length;if(r<2)return r?qn(t,e):t;var n=qn(t,dt(e/cr(t)));return nr(t)?vi(ur(n),0,e).join(""):n.slice(0,e)}function Ui(e){return function(t,r,o){return o&&"number"!=typeof o&&yo(t,r,o)&&(r=o=i),t=da(t),r===i?(r=t,t=0):r=da(r),function(e,t,r,i){for(var o=-1,s=mr(dt((t-e)/(r||1)),0),a=n(s);s--;)a[i?s:++o]=e,e+=r;return a}(t,r,o=o===i?t<r?1:-1:da(o),e)}}function Bi(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=ma(t),r=ma(r)),e(t,r)}}function Vi(e,t,r,n,o,s,a,c,u,h){var d=8&t;t|=d?l:64,4&(t&=~(d?64:l))||(t&=-4);var f=[e,t,o,d?s:i,d?a:i,d?i:s,d?i:a,c,u,h],p=r.apply(i,f);return _o(e)&&Po(p,f),p.placeholder=n,Ro(p,e,t)}function Ki(e){var t=xe[e];return function(e,r){if(e=ma(e),(r=null==r?0:gr(fa(r),292))&&Lt(e)){var n=(ya(e)+"e").split("e");return+((n=(ya(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var qi=Sr&&1/ar(new Sr([,-0]))[1]==u?function(e){return new Sr(e)}:al;function Wi(e){return function(t){var r=ho(t);return r==E?ir(t):r==P?lr(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Hi(e,t,r,s,u,h,d,f){var p=2&t;if(!p&&"function"!=typeof e)throw new Pe(o);var m=s?s.length:0;if(m||(t&=-97,s=u=i),d=d===i?d:mr(fa(d),0),f=f===i?f:fa(f),m-=u?u.length:0,64&t){var g=s,y=u;s=u=i}var v=p?i:ro(e),_=[e,t,r,s,u,g,y,h,d,f];if(v&&function(e,t){var r=e[1],n=t[1],i=r|n,o=i<131,s=n==c&&8==r||n==c&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!o&&!s)return e;1&n&&(e[2]=t[2],i|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Si(u,l,t[4]):l,e[4]=u?sr(e[3],a):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Ai(u,l,t[6]):l,e[6]=u?sr(e[5],a):t[6]),(l=t[7])&&(e[7]=l),n&c&&(e[8]=null==e[8]?t[8]:gr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(_,v),e=_[0],t=_[1],r=_[2],s=_[3],u=_[4],!(f=_[9]=_[9]===i?p?0:e.length:mr(_[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)b=8==t||16==t?function(e,t,r){var o=Fi(e);return function s(){for(var a=arguments.length,l=n(a),c=a,u=io(s);c--;)l[c]=arguments[c];var h=a<3&&l[0]!==u&&l[a-1]!==u?[]:sr(l,u);return(a-=h.length)<r?Vi(e,t,Mi,s.placeholder,i,l,h,i,i,r-a):xt(this&&this!==ht&&this instanceof s?o:e,this,l)}}(e,t,f):t!=l&&33!=t||u.length?Mi.apply(i,_):function(e,t,r,i){var o=1&t,s=Fi(e);return function t(){for(var a=-1,l=arguments.length,c=-1,u=i.length,h=n(u+l),d=this&&this!==ht&&this instanceof t?s:e;++c<u;)h[c]=i[c];for(;l--;)h[c++]=arguments[++a];return xt(d,o?r:this,h)}}(e,t,r,s);else var b=function(e,t,r){var n=1&t,i=Fi(e);return function t(){return(this&&this!==ht&&this instanceof t?i:e).apply(n?r:this,arguments)}}(e,t,r);return Ro((v?Zn:Po)(b,_),e,t)}function Yi(e,t,r,n){return e===i||$s(e,Re[r])&&!ke.call(n,r)?t:e}function Xi(e,t,r,n,o,s){return Qs(e)&&Qs(t)&&(s.set(t,e),$n(e,t,i,Xi,s),s.delete(t)),e}function Zi(e){return na(e)?i:e}function Ji(e,t,r,n,o,s){var a=1&r,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),h=s.get(t);if(u&&h)return u==t&&h==e;var d=-1,f=!0,p=2&r?new Kr:i;for(s.set(e,t),s.set(t,e);++d<l;){var m=e[d],g=t[d];if(n)var y=a?n(g,m,d,t,e,s):n(m,g,d,e,t,s);if(y!==i){if(y)continue;f=!1;break}if(p){if(!jt(t,(function(e,t){if(!Zt(p,t)&&(m===e||o(m,e,r,n,s)))return p.push(t)}))){f=!1;break}}else if(m!==g&&!o(m,g,r,n,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function Qi(e){return Oo(So(e,i,Vo),e+"")}function eo(e){return En(e,Ra,co)}function to(e){return En(e,Da,uo)}var ro=Pr?function(e){return Pr.get(e)}:al;function no(e){for(var t=e.name+"",r=Cr[t],n=ke.call(Cr,t)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(ke.call(Mr,"placeholder")?Mr:e).placeholder}function oo(){var e=Mr.iteratee||nl;return e=e===nl?kn:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function ao(e){for(var t=Ra(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Eo(i)]}return t}function lo(e,t){var r=function(e,t){return null==e?i:e[t]}(e,t);return In(r)?r:i}var co=mt?function(e){return null==e?[]:(e=Se(e),Ct(mt(e),(function(t){return qe.call(e,t)})))}:pl,uo=mt?function(e){for(var t=[];e;)It(t,co(e)),e=Ve(e);return t}:pl,ho=xn;function fo(e,t,r){for(var n=-1,i=(t=gi(t,e)).length,o=!1;++n<i;){var s=Lo(t[n]);if(!(o=null!=e&&r(e,s)))break;e=e[s]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Js(i)&&go(s,i)&&(Bs(e)||Us(e))}function po(e){return"function"!=typeof e.constructor||wo(e)?{}:Nr(Ve(e))}function mo(e){return Bs(e)||Us(e)||!!(He&&e&&e[He])}function go(e,t){var r=typeof e;return!!(t=null==t?h:t)&&("number"==r||"symbol"!=r&&ye.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,r){if(!Qs(r))return!1;var n=typeof t;return!!("number"==n?Ks(r)&&go(t,r.length):"string"==n&&t in r)&&$s(r[t],e)}function vo(e,t){if(Bs(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!aa(e))||Q.test(e)||!J.test(e)||null!=t&&e in Se(t)}function _o(e){var t=no(e),r=Mr[t];if("function"!=typeof r||!(t in zr.prototype))return!1;if(e===r)return!0;var n=ro(r);return!!n&&e===n[0]}(wr&&ho(new wr(new ArrayBuffer(1)))!=I||Er&&ho(new Er)!=E||xr&&ho(xr.resolve())!=A||Sr&&ho(new Sr)!=P||Ar&&ho(new Ar)!=R)&&(ho=function(e){var t=xn(e),r=t==S?e.constructor:i,n=r?Mo(r):"";if(n)switch(n){case Or:return I;case Rr:return E;case Dr:return A;case Ir:return P;case kr:return R}return t});var bo=De?Xs:ml;function wo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function Eo(e){return e==e&&!Qs(e)}function xo(e,t){return function(r){return null!=r&&r[e]===t&&(t!==i||e in Se(r))}}function So(e,t,r){return t=mr(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=mr(i.length-t,0),a=n(s);++o<s;)a[o]=i[t+o];o=-1;for(var l=n(t+1);++o<t;)l[o]=i[o];return l[t]=r(a),xt(e,this,l)}}function Ao(e,t){return t.length<2?e:wn(e,ei(t,0,-1))}function To(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Po=Do(Zn),Co=ut||function(e,t){return ht.setTimeout(e,t)},Oo=Do(Jn);function Ro(e,t,r){var n=t+"";return Oo(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return At(p,(function(r){var n="_."+r[0];t&r[1]&&!Ot(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(n),r)))}function Do(e){var t=0,r=0;return function(){var n=yr(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Io(e,t){var r=-1,n=e.length,o=n-1;for(t=t===i?n:t;++r<t;){var s=Kn(r,o),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var ko,Fo,jo=(ko=ks((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,r,n,i){t.push(n?i.replace(ue,"$1"):r||e)})),t}),(function(e){return 500===Fo.size&&Fo.clear(),e})),Fo=ko.cache,ko);function Lo(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mo(e){if(null!=e){try{return Ie.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function No(e){if(e instanceof zr)return e.clone();var t=new Gr(e.__wrapped__,e.__chain__);return t.__actions__=Ti(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var $o=Wn((function(e,t){return qs(e)?cn(e,mn(t,1,qs,!0)):[]})),Go=Wn((function(e,t){var r=Yo(t);return qs(r)&&(r=i),qs(e)?cn(e,mn(t,1,qs,!0),oo(r,2)):[]})),zo=Wn((function(e,t){var r=Yo(t);return qs(r)&&(r=i),qs(e)?cn(e,mn(t,1,qs,!0),i,r):[]}));function Uo(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:fa(r);return i<0&&(i=mr(n+i,0)),Nt(e,oo(t,3),i)}function Bo(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n-1;return r!==i&&(o=fa(r),o=r<0?mr(n+o,0):gr(o,n-1)),Nt(e,oo(t,3),o,!0)}function Vo(e){return null!=e&&e.length?mn(e,1):[]}function Ko(e){return e&&e.length?e[0]:i}var qo=Wn((function(e){var t=Dt(e,pi);return t.length&&t[0]===e[0]?Pn(t):[]})),Wo=Wn((function(e){var t=Yo(e),r=Dt(e,pi);return t===Yo(r)?t=i:r.pop(),r.length&&r[0]===e[0]?Pn(r,oo(t,2)):[]})),Ho=Wn((function(e){var t=Yo(e),r=Dt(e,pi);return(t="function"==typeof t?t:i)&&r.pop(),r.length&&r[0]===e[0]?Pn(r,i,t):[]}));function Yo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xo=Wn(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Bn(e,t):e}var Jo=Qi((function(e,t){var r=null==e?0:e.length,n=nn(e,t);return Vn(e,Dt(t,(function(e){return go(e,r)?+e:e})).sort(xi)),n}));function Qo(e){return null==e?e:br.call(e)}var es=Wn((function(e){return ai(mn(e,1,qs,!0))})),ts=Wn((function(e){var t=Yo(e);return qs(t)&&(t=i),ai(mn(e,1,qs,!0),oo(t,2))})),rs=Wn((function(e){var t=Yo(e);return t="function"==typeof t?t:i,ai(mn(e,1,qs,!0),i,t)}));function ns(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,(function(e){if(qs(e))return t=mr(e.length,t),!0})),Wt(t,(function(t){return Dt(e,Bt(t))}))}function is(e,t){if(!e||!e.length)return[];var r=ns(e);return null==t?r:Dt(r,(function(e){return xt(t,i,e)}))}var os=Wn((function(e,t){return qs(e)?cn(e,t):[]})),ss=Wn((function(e){return di(Ct(e,qs))})),as=Wn((function(e){var t=Yo(e);return qs(t)&&(t=i),di(Ct(e,qs),oo(t,2))})),ls=Wn((function(e){var t=Yo(e);return t="function"==typeof t?t:i,di(Ct(e,qs),i,t)})),cs=Wn(ns),us=Wn((function(e){var t=e.length,r=t>1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,is(e,r)}));function hs(e){var t=Mr(e);return t.__chain__=!0,t}function ds(e,t){return t(e)}var fs=Qi((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof zr&&go(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:ds,args:[o],thisArg:i}),new Gr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ps=Ci((function(e,t,r){ke.call(e,r)?++e[r]:rn(e,r,1)})),ms=ji(Uo),gs=ji(Bo);function ys(e,t){return(Bs(e)?At:un)(e,oo(t,3))}function vs(e,t){return(Bs(e)?Tt:hn)(e,oo(t,3))}var _s=Ci((function(e,t,r){ke.call(e,r)?e[r].push(t):rn(e,r,[t])})),bs=Wn((function(e,t,r){var i=-1,o="function"==typeof t,s=Ks(e)?n(e.length):[];return un(e,(function(e){s[++i]=o?xt(t,e,r):Cn(e,t,r)})),s})),ws=Ci((function(e,t,r){rn(e,r,t)}));function Es(e,t){return(Bs(e)?Dt:Ln)(e,oo(t,3))}var xs=Ci((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),Ss=Wn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&yo(e,t[0],t[1])?t=[]:r>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),zn(e,mn(t,1),[])})),As=ct||function(){return ht.Date.now()};function Ts(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,Hi(e,c,i,i,i,i,t)}function Ps(e,t){var r;if("function"!=typeof t)throw new Pe(o);return e=fa(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var Cs=Wn((function(e,t,r){var n=1;if(r.length){var i=sr(r,io(Cs));n|=l}return Hi(e,n,t,r,i)})),Os=Wn((function(e,t,r){var n=3;if(r.length){var i=sr(r,io(Os));n|=l}return Hi(t,n,e,r,i)}));function Rs(e,t,r){var n,s,a,l,c,u,h=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new Pe(o);function m(t){var r=n,o=s;return n=s=i,h=t,l=e.apply(o,r)}function g(e){var r=e-u;return u===i||r>=t||r<0||f&&e-h>=a}function y(){var e=As();if(g(e))return v(e);c=Co(y,function(e){var r=t-(e-u);return f?gr(r,a-(e-h)):r}(e))}function v(e){return c=i,p&&n?m(e):(n=s=i,l)}function _(){var e=As(),r=g(e);if(n=arguments,s=this,u=e,r){if(c===i)return function(e){return h=e,c=Co(y,t),d?m(e):l}(u);if(f)return _i(c),c=Co(y,t),m(u)}return c===i&&(c=Co(y,t)),l}return t=ma(t)||0,Qs(r)&&(d=!!r.leading,a=(f="maxWait"in r)?mr(ma(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),_.cancel=function(){c!==i&&_i(c),h=0,n=u=s=c=i},_.flush=function(){return c===i?l:v(As())},_}var Ds=Wn((function(e,t){return ln(e,1,t)})),Is=Wn((function(e,t,r){return ln(e,ma(t)||0,r)}));function ks(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(ks.Cache||Vr),r}function Fs(e){if("function"!=typeof e)throw new Pe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ks.Cache=Vr;var js=yi((function(e,t){var r=(t=1==t.length&&Bs(t[0])?Dt(t[0],Yt(oo())):Dt(mn(t,1),Yt(oo()))).length;return Wn((function(n){for(var i=-1,o=gr(n.length,r);++i<o;)n[i]=t[i].call(this,n[i]);return xt(e,this,n)}))})),Ls=Wn((function(e,t){var r=sr(t,io(Ls));return Hi(e,l,i,t,r)})),Ms=Wn((function(e,t){var r=sr(t,io(Ms));return Hi(e,64,i,t,r)})),Ns=Qi((function(e,t){return Hi(e,256,i,i,i,t)}));function $s(e,t){return e===t||e!=e&&t!=t}var Gs=Bi(Sn),zs=Bi((function(e,t){return e>=t})),Us=On(function(){return arguments}())?On:function(e){return ea(e)&&ke.call(e,"callee")&&!qe.call(e,"callee")},Bs=n.isArray,Vs=yt?Yt(yt):function(e){return ea(e)&&xn(e)==D};function Ks(e){return null!=e&&Js(e.length)&&!Xs(e)}function qs(e){return ea(e)&&Ks(e)}var Ws=gt||ml,Hs=vt?Yt(vt):function(e){return ea(e)&&xn(e)==v};function Ys(e){if(!ea(e))return!1;var t=xn(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!na(e)}function Xs(e){if(!Qs(e))return!1;var t=xn(e);return t==b||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zs(e){return"number"==typeof e&&e==fa(e)}function Js(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function Qs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=_t?Yt(_t):function(e){return ea(e)&&ho(e)==E};function ra(e){return"number"==typeof e||ea(e)&&xn(e)==x}function na(e){if(!ea(e)||xn(e)!=S)return!1;var t=Ve(e);if(null===t)return!0;var r=ke.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ie.call(r)==Me}var ia=bt?Yt(bt):function(e){return ea(e)&&xn(e)==T},oa=wt?Yt(wt):function(e){return ea(e)&&ho(e)==P};function sa(e){return"string"==typeof e||!Bs(e)&&ea(e)&&xn(e)==C}function aa(e){return"symbol"==typeof e||ea(e)&&xn(e)==O}var la=Et?Yt(Et):function(e){return ea(e)&&Js(e.length)&&!!it[xn(e)]},ca=Bi(jn),ua=Bi((function(e,t){return e<=t}));function ha(e){if(!e)return[];if(Ks(e))return sa(e)?ur(e):Ti(e);if(Ye&&e[Ye])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ye]());var t=ho(e);return(t==E?ir:t==P?ar:$a)(e)}function da(e){return e?(e=ma(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fa(e){var t=da(e),r=t%1;return t==t?r?t-r:t:0}function pa(e){return e?on(fa(e),0,f):0}function ma(e){if("number"==typeof e)return e;if(aa(e))return d;if(Qs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ht(e);var r=pe.test(e);return r||ge.test(e)?lt(e.slice(2),r?2:8):fe.test(e)?d:+e}function ga(e){return Pi(e,Da(e))}function ya(e){return null==e?"":si(e)}var va=Oi((function(e,t){if(wo(t)||Ks(t))Pi(t,Ra(t),e);else for(var r in t)ke.call(t,r)&&Jr(e,r,t[r])})),_a=Oi((function(e,t){Pi(t,Da(t),e)})),ba=Oi((function(e,t,r,n){Pi(t,Da(t),e,n)})),wa=Oi((function(e,t,r,n){Pi(t,Ra(t),e,n)})),Ea=Qi(nn),xa=Wn((function(e,t){e=Se(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&yo(t[0],t[1],o)&&(n=1);++r<n;)for(var s=t[r],a=Da(s),l=-1,c=a.length;++l<c;){var u=a[l],h=e[u];(h===i||$s(h,Re[u])&&!ke.call(e,u))&&(e[u]=s[u])}return e})),Sa=Wn((function(e){return e.push(i,Xi),xt(ka,i,e)}));function Aa(e,t,r){var n=null==e?i:wn(e,t);return n===i?r:n}function Ta(e,t){return null!=e&&fo(e,t,Tn)}var Pa=Ni((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=r}),Qa(rl)),Ca=Ni((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),ke.call(e,t)?e[t].push(r):e[t]=[r]}),oo),Oa=Wn(Cn);function Ra(e){return Ks(e)?Wr(e):Fn(e)}function Da(e){return Ks(e)?Wr(e,!0):function(e){if(!Qs(e))return function(e){var t=[];if(null!=e)for(var r in Se(e))t.push(r);return t}(e);var t=wo(e),r=[];for(var n in e)("constructor"!=n||!t&&ke.call(e,n))&&r.push(n);return r}(e)}var Ia=Oi((function(e,t,r){$n(e,t,r)})),ka=Oi((function(e,t,r,n){$n(e,t,r,n)})),Fa=Qi((function(e,t){var r={};if(null==e)return r;var n=!1;t=Dt(t,(function(t){return t=gi(t,e),n||(n=t.length>1),t})),Pi(e,to(e),r),n&&(r=sn(r,7,Zi));for(var i=t.length;i--;)li(r,t[i]);return r})),ja=Qi((function(e,t){return null==e?{}:function(e,t){return Un(e,t,(function(t,r){return Ta(e,r)}))}(e,t)}));function La(e,t){if(null==e)return{};var r=Dt(to(e),(function(e){return[e]}));return t=oo(t),Un(e,r,(function(e,r){return t(e,r[0])}))}var Ma=Wi(Ra),Na=Wi(Da);function $a(e){return null==e?[]:Xt(e,Ra(e))}var Ga=ki((function(e,t,r){return t=t.toLowerCase(),e+(r?za(t):t)}));function za(e){return Ya(ya(e).toLowerCase())}function Ua(e){return(e=ya(e))&&e.replace(ve,er).replace(Ze,"")}var Ba=ki((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Va=ki((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ka=Ii("toLowerCase"),qa=ki((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Wa=ki((function(e,t,r){return e+(r?" ":"")+Ya(t)})),Ha=ki((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ya=Ii("toUpperCase");function Xa(e,t,r){return e=ya(e),(t=r?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Za=Wn((function(e,t){try{return xt(e,i,t)}catch(e){return Ys(e)?e:new we(e)}})),Ja=Qi((function(e,t){return At(t,(function(t){t=Lo(t),rn(e,t,Cs(e[t],e))})),e}));function Qa(e){return function(){return e}}var el=Li(),tl=Li(!0);function rl(e){return e}function nl(e){return kn("function"==typeof e?e:sn(e,1))}var il=Wn((function(e,t){return function(r){return Cn(r,e,t)}})),ol=Wn((function(e,t){return function(r){return Cn(e,r,t)}}));function sl(e,t,r){var n=Ra(t),i=bn(t,n);null!=r||Qs(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=bn(t,Ra(t)));var o=!(Qs(r)&&"chain"in r&&!r.chain),s=Xs(e);return At(i,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=Ti(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,It([this.value()],arguments))})})),e}function al(){}var ll=Gi(Dt),cl=Gi(Pt),ul=Gi(jt);function hl(e){return vo(e)?Bt(Lo(e)):function(e){return function(t){return wn(t,e)}}(e)}var dl=Ui(),fl=Ui(!0);function pl(){return[]}function ml(){return!1}var gl,yl=$i((function(e,t){return e+t}),0),vl=Ki("ceil"),_l=$i((function(e,t){return e/t}),1),bl=Ki("floor"),wl=$i((function(e,t){return e*t}),1),El=Ki("round"),xl=$i((function(e,t){return e-t}),0);return Mr.after=function(e,t){if("function"!=typeof t)throw new Pe(o);return e=fa(e),function(){if(--e<1)return t.apply(this,arguments)}},Mr.ary=Ts,Mr.assign=va,Mr.assignIn=_a,Mr.assignInWith=ba,Mr.assignWith=wa,Mr.at=Ea,Mr.before=Ps,Mr.bind=Cs,Mr.bindAll=Ja,Mr.bindKey=Os,Mr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Bs(e)?e:[e]},Mr.chain=hs,Mr.chunk=function(e,t,r){t=(r?yo(e,t,r):t===i)?1:mr(fa(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,l=n(dt(o/t));s<o;)l[a++]=ei(e,s,s+=t);return l},Mr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i},Mr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return It(Bs(r)?Ti(r):[r],mn(t,1))},Mr.cond=function(e){var t=null==e?0:e.length,r=oo();return e=t?Dt(e,(function(e){if("function"!=typeof e[1])throw new Pe(o);return[r(e[0]),e[1]]})):[],Wn((function(r){for(var n=-1;++n<t;){var i=e[n];if(xt(i[0],this,r))return xt(i[1],this,r)}}))},Mr.conforms=function(e){return function(e){var t=Ra(e);return function(r){return an(r,e,t)}}(sn(e,1))},Mr.constant=Qa,Mr.countBy=ps,Mr.create=function(e,t){var r=Nr(e);return null==t?r:tn(r,t)},Mr.curry=function e(t,r,n){var o=Hi(t,8,i,i,i,i,i,r=n?i:r);return o.placeholder=e.placeholder,o},Mr.curryRight=function e(t,r,n){var o=Hi(t,16,i,i,i,i,i,r=n?i:r);return o.placeholder=e.placeholder,o},Mr.debounce=Rs,Mr.defaults=xa,Mr.defaultsDeep=Sa,Mr.defer=Ds,Mr.delay=Is,Mr.difference=$o,Mr.differenceBy=Go,Mr.differenceWith=zo,Mr.drop=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,(t=r||t===i?1:fa(t))<0?0:t,n):[]},Mr.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,0,(t=n-(t=r||t===i?1:fa(t)))<0?0:t):[]},Mr.dropRightWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!0,!0):[]},Mr.dropWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!0):[]},Mr.fill=function(e,t,r,n){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&yo(e,t,r)&&(r=0,n=o),function(e,t,r,n){var o=e.length;for((r=fa(r))<0&&(r=-r>o?0:o+r),(n=n===i||n>o?o:fa(n))<0&&(n+=o),n=r>n?0:pa(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Mr.filter=function(e,t){return(Bs(e)?Ct:pn)(e,oo(t,3))},Mr.flatMap=function(e,t){return mn(Es(e,t),1)},Mr.flatMapDeep=function(e,t){return mn(Es(e,t),u)},Mr.flatMapDepth=function(e,t,r){return r=r===i?1:fa(r),mn(Es(e,t),r)},Mr.flatten=Vo,Mr.flattenDeep=function(e){return null!=e&&e.length?mn(e,u):[]},Mr.flattenDepth=function(e,t){return null!=e&&e.length?mn(e,t=t===i?1:fa(t)):[]},Mr.flip=function(e){return Hi(e,512)},Mr.flow=el,Mr.flowRight=tl,Mr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},Mr.functions=function(e){return null==e?[]:bn(e,Ra(e))},Mr.functionsIn=function(e){return null==e?[]:bn(e,Da(e))},Mr.groupBy=_s,Mr.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Mr.intersection=qo,Mr.intersectionBy=Wo,Mr.intersectionWith=Ho,Mr.invert=Pa,Mr.invertBy=Ca,Mr.invokeMap=bs,Mr.iteratee=nl,Mr.keyBy=ws,Mr.keys=Ra,Mr.keysIn=Da,Mr.map=Es,Mr.mapKeys=function(e,t){var r={};return t=oo(t,3),vn(e,(function(e,n,i){rn(r,t(e,n,i),e)})),r},Mr.mapValues=function(e,t){var r={};return t=oo(t,3),vn(e,(function(e,n,i){rn(r,n,t(e,n,i))})),r},Mr.matches=function(e){return Mn(sn(e,1))},Mr.matchesProperty=function(e,t){return Nn(e,sn(t,1))},Mr.memoize=ks,Mr.merge=Ia,Mr.mergeWith=ka,Mr.method=il,Mr.methodOf=ol,Mr.mixin=sl,Mr.negate=Fs,Mr.nthArg=function(e){return e=fa(e),Wn((function(t){return Gn(t,e)}))},Mr.omit=Fa,Mr.omitBy=function(e,t){return La(e,Fs(oo(t)))},Mr.once=function(e){return Ps(2,e)},Mr.orderBy=function(e,t,r,n){return null==e?[]:(Bs(t)||(t=null==t?[]:[t]),Bs(r=n?i:r)||(r=null==r?[]:[r]),zn(e,t,r))},Mr.over=ll,Mr.overArgs=js,Mr.overEvery=cl,Mr.overSome=ul,Mr.partial=Ls,Mr.partialRight=Ms,Mr.partition=xs,Mr.pick=ja,Mr.pickBy=La,Mr.property=hl,Mr.propertyOf=function(e){return function(t){return null==e?i:wn(e,t)}},Mr.pull=Xo,Mr.pullAll=Zo,Mr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Bn(e,t,oo(r,2)):e},Mr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Bn(e,t,i,r):e},Mr.pullAt=Jo,Mr.range=dl,Mr.rangeRight=fl,Mr.rearg=Ns,Mr.reject=function(e,t){return(Bs(e)?Ct:pn)(e,Fs(oo(t,3)))},Mr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],o=e.length;for(t=oo(t,3);++n<o;){var s=e[n];t(s,n,e)&&(r.push(s),i.push(n))}return Vn(e,i),r},Mr.rest=function(e,t){if("function"!=typeof e)throw new Pe(o);return Wn(e,t=t===i?t:fa(t))},Mr.reverse=Qo,Mr.sampleSize=function(e,t,r){return t=(r?yo(e,t,r):t===i)?1:fa(t),(Bs(e)?Yr:Yn)(e,t)},Mr.set=function(e,t,r){return null==e?e:Xn(e,t,r)},Mr.setWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:Xn(e,t,r,n)},Mr.shuffle=function(e){return(Bs(e)?Xr:Qn)(e)},Mr.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&yo(e,t,r)?(t=0,r=n):(t=null==t?0:fa(t),r=r===i?n:fa(r)),ei(e,t,r)):[]},Mr.sortBy=Ss,Mr.sortedUniq=function(e){return e&&e.length?ii(e):[]},Mr.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Mr.split=function(e,t,r){return r&&"number"!=typeof r&&yo(e,t,r)&&(t=r=i),(r=r===i?f:r>>>0)?(e=ya(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=si(t))&&nr(e)?vi(ur(e),0,r):e.split(t,r):[]},Mr.spread=function(e,t){if("function"!=typeof e)throw new Pe(o);return t=null==t?0:mr(fa(t),0),Wn((function(r){var n=r[t],i=vi(r,0,t);return n&&It(i,n),xt(e,this,i)}))},Mr.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Mr.take=function(e,t,r){return e&&e.length?ei(e,0,(t=r||t===i?1:fa(t))<0?0:t):[]},Mr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,(t=n-(t=r||t===i?1:fa(t)))<0?0:t,n):[]},Mr.takeRightWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!1,!0):[]},Mr.takeWhile=function(e,t){return e&&e.length?ui(e,oo(t,3)):[]},Mr.tap=function(e,t){return t(e),e},Mr.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Pe(o);return Qs(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Rs(e,t,{leading:n,maxWait:t,trailing:i})},Mr.thru=ds,Mr.toArray=ha,Mr.toPairs=Ma,Mr.toPairsIn=Na,Mr.toPath=function(e){return Bs(e)?Dt(e,Lo):aa(e)?[e]:Ti(jo(ya(e)))},Mr.toPlainObject=ga,Mr.transform=function(e,t,r){var n=Bs(e),i=n||Ws(e)||la(e);if(t=oo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:Qs(e)&&Xs(o)?Nr(Ve(e)):{}}return(i?At:vn)(e,(function(e,n,i){return t(r,e,n,i)})),r},Mr.unary=function(e){return Ts(e,1)},Mr.union=es,Mr.unionBy=ts,Mr.unionWith=rs,Mr.uniq=function(e){return e&&e.length?ai(e):[]},Mr.uniqBy=function(e,t){return e&&e.length?ai(e,oo(t,2)):[]},Mr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ai(e,i,t):[]},Mr.unset=function(e,t){return null==e||li(e,t)},Mr.unzip=ns,Mr.unzipWith=is,Mr.update=function(e,t,r){return null==e?e:ci(e,t,mi(r))},Mr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:ci(e,t,mi(r),n)},Mr.values=$a,Mr.valuesIn=function(e){return null==e?[]:Xt(e,Da(e))},Mr.without=os,Mr.words=Xa,Mr.wrap=function(e,t){return Ls(mi(t),e)},Mr.xor=ss,Mr.xorBy=as,Mr.xorWith=ls,Mr.zip=cs,Mr.zipObject=function(e,t){return fi(e||[],t||[],Jr)},Mr.zipObjectDeep=function(e,t){return fi(e||[],t||[],Xn)},Mr.zipWith=us,Mr.entries=Ma,Mr.entriesIn=Na,Mr.extend=_a,Mr.extendWith=ba,sl(Mr,Mr),Mr.add=yl,Mr.attempt=Za,Mr.camelCase=Ga,Mr.capitalize=za,Mr.ceil=vl,Mr.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=ma(r))==r?r:0),t!==i&&(t=(t=ma(t))==t?t:0),on(ma(e),t,r)},Mr.clone=function(e){return sn(e,4)},Mr.cloneDeep=function(e){return sn(e,5)},Mr.cloneDeepWith=function(e,t){return sn(e,5,t="function"==typeof t?t:i)},Mr.cloneWith=function(e,t){return sn(e,4,t="function"==typeof t?t:i)},Mr.conformsTo=function(e,t){return null==t||an(e,t,Ra(t))},Mr.deburr=Ua,Mr.defaultTo=function(e,t){return null==e||e!=e?t:e},Mr.divide=_l,Mr.endsWith=function(e,t,r){e=ya(e),t=si(t);var n=e.length,o=r=r===i?n:on(fa(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},Mr.eq=$s,Mr.escape=function(e){return(e=ya(e))&&H.test(e)?e.replace(q,tr):e},Mr.escapeRegExp=function(e){return(e=ya(e))&&re.test(e)?e.replace(te,"\\$&"):e},Mr.every=function(e,t,r){var n=Bs(e)?Pt:dn;return r&&yo(e,t,r)&&(t=i),n(e,oo(t,3))},Mr.find=ms,Mr.findIndex=Uo,Mr.findKey=function(e,t){return Mt(e,oo(t,3),vn)},Mr.findLast=gs,Mr.findLastIndex=Bo,Mr.findLastKey=function(e,t){return Mt(e,oo(t,3),_n)},Mr.floor=bl,Mr.forEach=ys,Mr.forEachRight=vs,Mr.forIn=function(e,t){return null==e?e:gn(e,oo(t,3),Da)},Mr.forInRight=function(e,t){return null==e?e:yn(e,oo(t,3),Da)},Mr.forOwn=function(e,t){return e&&vn(e,oo(t,3))},Mr.forOwnRight=function(e,t){return e&&_n(e,oo(t,3))},Mr.get=Aa,Mr.gt=Gs,Mr.gte=zs,Mr.has=function(e,t){return null!=e&&fo(e,t,An)},Mr.hasIn=Ta,Mr.head=Ko,Mr.identity=rl,Mr.includes=function(e,t,r,n){e=Ks(e)?e:$a(e),r=r&&!n?fa(r):0;var i=e.length;return r<0&&(r=mr(i+r,0)),sa(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&$t(e,t,r)>-1},Mr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:fa(r);return i<0&&(i=mr(n+i,0)),$t(e,t,i)},Mr.inRange=function(e,t,r){return t=da(t),r===i?(r=t,t=0):r=da(r),function(e,t,r){return e>=gr(t,r)&&e<mr(t,r)}(e=ma(e),t,r)},Mr.invoke=Oa,Mr.isArguments=Us,Mr.isArray=Bs,Mr.isArrayBuffer=Vs,Mr.isArrayLike=Ks,Mr.isArrayLikeObject=qs,Mr.isBoolean=function(e){return!0===e||!1===e||ea(e)&&xn(e)==y},Mr.isBuffer=Ws,Mr.isDate=Hs,Mr.isElement=function(e){return ea(e)&&1===e.nodeType&&!na(e)},Mr.isEmpty=function(e){if(null==e)return!0;if(Ks(e)&&(Bs(e)||"string"==typeof e||"function"==typeof e.splice||Ws(e)||la(e)||Us(e)))return!e.length;var t=ho(e);if(t==E||t==P)return!e.size;if(wo(e))return!Fn(e).length;for(var r in e)if(ke.call(e,r))return!1;return!0},Mr.isEqual=function(e,t){return Rn(e,t)},Mr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return n===i?Rn(e,t,i,r):!!n},Mr.isError=Ys,Mr.isFinite=function(e){return"number"==typeof e&&Lt(e)},Mr.isFunction=Xs,Mr.isInteger=Zs,Mr.isLength=Js,Mr.isMap=ta,Mr.isMatch=function(e,t){return e===t||Dn(e,t,ao(t))},Mr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:i,Dn(e,t,ao(t),r)},Mr.isNaN=function(e){return ra(e)&&e!=+e},Mr.isNative=function(e){if(bo(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return In(e)},Mr.isNil=function(e){return null==e},Mr.isNull=function(e){return null===e},Mr.isNumber=ra,Mr.isObject=Qs,Mr.isObjectLike=ea,Mr.isPlainObject=na,Mr.isRegExp=ia,Mr.isSafeInteger=function(e){return Zs(e)&&e>=-9007199254740991&&e<=h},Mr.isSet=oa,Mr.isString=sa,Mr.isSymbol=aa,Mr.isTypedArray=la,Mr.isUndefined=function(e){return e===i},Mr.isWeakMap=function(e){return ea(e)&&ho(e)==R},Mr.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==xn(e)},Mr.join=function(e,t){return null==e?"":Vt.call(e,t)},Mr.kebabCase=Ba,Mr.last=Yo,Mr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=fa(r))<0?mr(n+o,0):gr(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):Nt(e,zt,o,!0)},Mr.lowerCase=Va,Mr.lowerFirst=Ka,Mr.lt=ca,Mr.lte=ua,Mr.max=function(e){return e&&e.length?fn(e,rl,Sn):i},Mr.maxBy=function(e,t){return e&&e.length?fn(e,oo(t,2),Sn):i},Mr.mean=function(e){return Ut(e,rl)},Mr.meanBy=function(e,t){return Ut(e,oo(t,2))},Mr.min=function(e){return e&&e.length?fn(e,rl,jn):i},Mr.minBy=function(e,t){return e&&e.length?fn(e,oo(t,2),jn):i},Mr.stubArray=pl,Mr.stubFalse=ml,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=wl,Mr.nth=function(e,t){return e&&e.length?Gn(e,fa(t)):i},Mr.noConflict=function(){return ht._===this&&(ht._=Ne),this},Mr.noop=al,Mr.now=As,Mr.pad=function(e,t,r){e=ya(e);var n=(t=fa(t))?cr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return zi(ft(i),r)+e+zi(dt(i),r)},Mr.padEnd=function(e,t,r){e=ya(e);var n=(t=fa(t))?cr(e):0;return t&&n<t?e+zi(t-n,r):e},Mr.padStart=function(e,t,r){e=ya(e);var n=(t=fa(t))?cr(e):0;return t&&n<t?zi(t-n,r)+e:e},Mr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),vr(ya(e).replace(ne,""),t||0)},Mr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&yo(e,t,r)&&(t=r=i),r===i&&("boolean"==typeof t?(r=t,t=i):"boolean"==typeof e&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=da(e),t===i?(t=e,e=0):t=da(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var o=_r();return gr(e+o*(t-e+at("1e-"+((o+"").length-1))),t)}return Kn(e,t)},Mr.reduce=function(e,t,r){var n=Bs(e)?kt:Kt,i=arguments.length<3;return n(e,oo(t,4),r,i,un)},Mr.reduceRight=function(e,t,r){var n=Bs(e)?Ft:Kt,i=arguments.length<3;return n(e,oo(t,4),r,i,hn)},Mr.repeat=function(e,t,r){return t=(r?yo(e,t,r):t===i)?1:fa(t),qn(ya(e),t)},Mr.replace=function(){var e=arguments,t=ya(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Mr.result=function(e,t,r){var n=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++n<o;){var s=null==e?i:e[Lo(t[n])];s===i&&(n=o,s=r),e=Xs(s)?s.call(e):s}return e},Mr.round=El,Mr.runInContext=e,Mr.sample=function(e){return(Bs(e)?Hr:Hn)(e)},Mr.size=function(e){if(null==e)return 0;if(Ks(e))return sa(e)?cr(e):e.length;var t=ho(e);return t==E||t==P?e.size:Fn(e).length},Mr.snakeCase=qa,Mr.some=function(e,t,r){var n=Bs(e)?jt:ti;return r&&yo(e,t,r)&&(t=i),n(e,oo(t,3))},Mr.sortedIndex=function(e,t){return ri(e,t)},Mr.sortedIndexBy=function(e,t,r){return ni(e,t,oo(r,2))},Mr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ri(e,t);if(n<r&&$s(e[n],t))return n}return-1},Mr.sortedLastIndex=function(e,t){return ri(e,t,!0)},Mr.sortedLastIndexBy=function(e,t,r){return ni(e,t,oo(r,2),!0)},Mr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ri(e,t,!0)-1;if($s(e[r],t))return r}return-1},Mr.startCase=Wa,Mr.startsWith=function(e,t,r){return e=ya(e),r=null==r?0:on(fa(r),0,e.length),t=si(t),e.slice(r,r+t.length)==t},Mr.subtract=xl,Mr.sum=function(e){return e&&e.length?qt(e,rl):0},Mr.sumBy=function(e,t){return e&&e.length?qt(e,oo(t,2)):0},Mr.template=function(e,t,r){var n=Mr.templateSettings;r&&yo(e,t,r)&&(t=i),e=ya(e),t=ba({},t,n,Yi);var o,s,a=ba({},t.imports,n.imports,Yi),l=Ra(a),c=Xt(a,l),u=0,h=t.interpolate||_e,d="__p += '",f=Ae((t.escape||_e).source+"|"+h.source+"|"+(h===Z?he:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),p="//# sourceURL="+(ke.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";e.replace(f,(function(t,r,n,i,a,l){return n||(n=i),d+=e.slice(u,l).replace(be,rr),r&&(o=!0,d+="' +\n__e("+r+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),d+="';\n";var m=ke.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new we("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(U,""):d).replace(B,"$1").replace(V,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Za((function(){return Ee(l,p+"return "+d).apply(i,c)}));if(g.source=d,Ys(g))throw g;return g},Mr.times=function(e,t){if((e=fa(e))<1||e>h)return[];var r=f,n=gr(e,f);t=oo(t),e-=f;for(var i=Wt(n,t);++r<e;)t(r);return i},Mr.toFinite=da,Mr.toInteger=fa,Mr.toLength=pa,Mr.toLower=function(e){return ya(e).toLowerCase()},Mr.toNumber=ma,Mr.toSafeInteger=function(e){return e?on(fa(e),-9007199254740991,h):0===e?e:0},Mr.toString=ya,Mr.toUpper=function(e){return ya(e).toUpperCase()},Mr.trim=function(e,t,r){if((e=ya(e))&&(r||t===i))return Ht(e);if(!e||!(t=si(t)))return e;var n=ur(e),o=ur(t);return vi(n,Jt(n,o),Qt(n,o)+1).join("")},Mr.trimEnd=function(e,t,r){if((e=ya(e))&&(r||t===i))return e.slice(0,hr(e)+1);if(!e||!(t=si(t)))return e;var n=ur(e);return vi(n,0,Qt(n,ur(t))+1).join("")},Mr.trimStart=function(e,t,r){if((e=ya(e))&&(r||t===i))return e.replace(ne,"");if(!e||!(t=si(t)))return e;var n=ur(e);return vi(n,Jt(n,ur(t))).join("")},Mr.truncate=function(e,t){var r=30,n="...";if(Qs(t)){var o="separator"in t?t.separator:o;r="length"in t?fa(t.length):r,n="omission"in t?si(t.omission):n}var s=(e=ya(e)).length;if(nr(e)){var a=ur(e);s=a.length}if(r>=s)return e;var l=r-cr(n);if(l<1)return n;var c=a?vi(a,0,l).join(""):e.slice(0,l);if(o===i)return c+n;if(a&&(l+=c.length-l),ia(o)){if(e.slice(l).search(o)){var u,h=c;for(o.global||(o=Ae(o.source,ya(de.exec(o))+"g")),o.lastIndex=0;u=o.exec(h);)var d=u.index;c=c.slice(0,d===i?l:d)}}else if(e.indexOf(si(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+n},Mr.unescape=function(e){return(e=ya(e))&&W.test(e)?e.replace(K,dr):e},Mr.uniqueId=function(e){var t=++Fe;return ya(e)+t},Mr.upperCase=Ha,Mr.upperFirst=Ya,Mr.each=ys,Mr.eachRight=vs,Mr.first=Ko,sl(Mr,(gl={},vn(Mr,(function(e,t){ke.call(Mr.prototype,t)||(gl[t]=e)})),gl),{chain:!1}),Mr.VERSION="4.17.21",At(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Mr[e].placeholder=Mr})),At(["drop","take"],(function(e,t){zr.prototype[e]=function(r){r=r===i?1:mr(fa(r),0);var n=this.__filtered__&&!t?new zr(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,f),type:e+(n.__dir__<0?"Right":"")}),n},zr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),At(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;zr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),At(["head","last"],(function(e,t){var r="take"+(t?"Right":"");zr.prototype[e]=function(){return this[r](1).value()[0]}})),At(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");zr.prototype[e]=function(){return this.__filtered__?new zr(this):this[r](1)}})),zr.prototype.compact=function(){return this.filter(rl)},zr.prototype.find=function(e){return this.filter(e).head()},zr.prototype.findLast=function(e){return this.reverse().find(e)},zr.prototype.invokeMap=Wn((function(e,t){return"function"==typeof e?new zr(this):this.map((function(r){return Cn(r,e,t)}))})),zr.prototype.reject=function(e){return this.filter(Fs(oo(e)))},zr.prototype.slice=function(e,t){e=fa(e);var r=this;return r.__filtered__&&(e>0||t<0)?new zr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=fa(t))<0?r.dropRight(-t):r.take(t-e)),r)},zr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zr.prototype.toArray=function(){return this.take(f)},vn(zr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=Mr[n?"take"+("last"==t?"Right":""):t],s=n||/^find/.test(t);o&&(Mr.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,l=t instanceof zr,c=a[0],u=l||Bs(t),h=function(e){var t=o.apply(Mr,It([e],a));return n&&d?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,f=!!this.__actions__.length,p=s&&!d,m=l&&!f;if(!s&&u){t=m?t:new zr(this);var g=e.apply(t,a);return g.__actions__.push({func:ds,args:[h],thisArg:i}),new Gr(g,d)}return p&&m?e.apply(this,a):(g=this.thru(h),p?n?g.value()[0]:g.value():g)})})),At(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Mr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(Bs(i)?i:[],e)}return this[r]((function(r){return t.apply(Bs(r)?r:[],e)}))}})),vn(zr.prototype,(function(e,t){var r=Mr[t];if(r){var n=r.name+"";ke.call(Cr,n)||(Cr[n]=[]),Cr[n].push({name:t,func:r})}})),Cr[Mi(i,2).name]=[{name:"wrapper",func:i}],zr.prototype.clone=function(){var e=new zr(this.__wrapped__);return e.__actions__=Ti(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ti(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ti(this.__views__),e},zr.prototype.reverse=function(){if(this.__filtered__){var e=new zr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Bs(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=gr(t,e+s);break;case"takeRight":e=mr(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,c=n?a:s-1,u=this.__iteratees__,h=u.length,d=0,f=gr(l,this.__takeCount__);if(!r||!n&&i==l&&f==l)return hi(e,this.__actions__);var p=[];e:for(;l--&&d<f;){for(var m=-1,g=e[c+=t];++m<h;){var y=u[m],v=y.iteratee,_=y.type,b=v(g);if(2==_)g=b;else if(!b){if(1==_)continue e;break e}}p[d++]=g}return p},Mr.prototype.at=fs,Mr.prototype.chain=function(){return hs(this)},Mr.prototype.commit=function(){return new Gr(this.value(),this.__chain__)},Mr.prototype.next=function(){this.__values__===i&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Mr.prototype.plant=function(e){for(var t,r=this;r instanceof $r;){var n=No(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},Mr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zr){var t=e;return this.__actions__.length&&(t=new zr(this)),(t=t.reverse()).__actions__.push({func:ds,args:[Qo],thisArg:i}),new Gr(t,this.__chain__)}return this.thru(Qo)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Ye&&(Mr.prototype[Ye]=function(){return this}),Mr}();ht._=fr,(n=function(){return fr}.call(t,r,t,e))===i||(e.exports=n)}.call(this)},69011:(e,t,r)=>{var n=r(68250);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},48875:(e,t,r)=>{var n=r(40091),i=r(77848)((function(e,t,r,i){n(e,t,r,i)}));e.exports=i},79071:e=>{e.exports=function(){}},74874:(e,t,r)=>{var n=r(90242),i=r(41439)((function(e,t){return null==e?{}:n(e,t)}));e.exports=i},43282:(e,t,r)=>{var n=r(12762),i=r(98880),o=r(65187),s=r(66040);e.exports=function(e){return o(e)?n(s(e)):i(e)}},70581:(e,t,r)=>{var n=r(49261);e.exports=function(e,t){return e&&e.length&&t&&t.length?n(e,t):e}},40074:(e,t,r)=>{var n=r(90313),i=r(70310),o=r(23945),s=r(74535),a=o((function(e,t){if(null==e)return[];var r=t.length;return r>1&&s(e,t[0],t[1])?t=[]:r>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),i(e,n(t,1),[])}));e.exports=a},99306:e=>{e.exports=function(){return[]}},34772:e=>{e.exports=function(){return!1}},42613:(e,t,r)=>{var n=r(65111),i=r(84354),o=r(53142),s=r(51187),a=r(96493),l=r(66040),c=r(95243);e.exports=function(e){return o(e)?n(e,l):s(e)?[e]:i(a(c(e)))}},64207:(e,t,r)=>{var n=r(39032),i=r(25288);e.exports=function(e){return n(e,i(e))}},95243:(e,t,r)=>{var n=r(52291);e.exports=function(e){return null==e?"":n(e)}},55620:(e,t,r)=>{var n=r(90313),i=r(23945),o=r(15630),s=r(65406),a=i((function(e){return o(n(e,1,s,!0))}));e.exports=a},82438:(e,t,r)=>{var n=r(15630);e.exports=function(e){return e&&e.length?n(e):[]}},19106:(e,t,r)=>{var n=r(15630);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?n(e,void 0,t):[]}},30795:(e,t,r)=>{var n=r(96576),i=r(23945),o=r(65406),s=i((function(e,t){return o(e)?n(e,t):[]}));e.exports=s},37056:(e,t,r)=>{"use strict";r.d(t,{b:()=>he,X:()=>de});var n=r(15159),i=r(34633),o=r(20884),s=r(39512),a=Math.pow,l=(e,t,r)=>new Promise(((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())})),c=Uint8Array,u=Uint16Array,h=Int32Array,d=new c([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),f=new c([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),p=new c([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=function(e,t){for(var r=new u(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var i=new h(r[30]);for(n=1;n<30;++n)for(var o=r[n];o<r[n+1];++o)i[o]=o-r[n]<<5|n;return{b:r,r:i}},g=m(d,2),y=g.b,v=g.r;y[28]=258,v[258]=28;var _,b=m(f,0),w=b.b,E=(b.r,new u(32768));for(A=0;A<32768;++A)_=(61680&(_=(52428&(_=(43690&A)>>1|(21845&A)<<1))>>2|(13107&_)<<2))>>4|(3855&_)<<4,E[A]=((65280&_)>>8|(255&_)<<8)>>1;var x=function(e,t,r){for(var n=e.length,i=0,o=new u(t);i<n;++i)e[i]&&++o[e[i]-1];var s,a=new u(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(r){s=new u(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var c=i<<4|e[i],h=t-e[i],d=a[e[i]-1]++<<h,f=d|(1<<h)-1;d<=f;++d)s[E[d]>>l]=c}else for(s=new u(n),i=0;i<n;++i)e[i]&&(s[i]=E[a[e[i]-1]++]>>15-e[i]);return s},S=new c(288);for(A=0;A<144;++A)S[A]=8;for(A=144;A<256;++A)S[A]=9;for(A=256;A<280;++A)S[A]=7;for(A=280;A<288;++A)S[A]=8;var A,T=new c(32);for(A=0;A<32;++A)T[A]=5;var P=x(S,9,1),C=x(T,5,1),O=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},R=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(7&t)&r},D=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(7&t)},I=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],k=function(e,t,r){var n=new Error(t||I[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,k),!r)throw n;return n},F=function(e,t,r,n){var i=e.length,o=n?n.length:0;if(!i||t.f&&!t.l)return r||new c(0);var s=!r||2!=t.i,a=t.i;r||(r=new c(3*i));var l=function(e){var t=r.length;if(e>t){var n=new c(Math.max(2*t,e));n.set(r),r=n}},u=t.f||0,h=t.p||0,m=t.b||0,g=t.l,v=t.d,_=t.m,b=t.n,E=8*i;do{if(!g){u=R(e,h,1);var S=R(e,h+1,3);if(h+=3,!S){var A=e[(U=4+((h+7)/8|0))-4]|e[U-3]<<8,T=U+A;if(T>i){a&&k(0);break}s&&l(m+A),r.set(e.subarray(U,T),m),t.b=m+=A,t.p=h=8*T,t.f=u;continue}if(1==S)g=P,v=C,_=9,b=5;else if(2==S){var I=R(e,h,31)+257,F=R(e,h+10,15)+4,j=I+R(e,h+5,31)+1;h+=14;for(var L=new c(j),M=new c(19),N=0;N<F;++N)M[p[N]]=R(e,h+3*N,7);h+=3*F;var $=O(M),G=(1<<$)-1,z=x(M,$,1);for(N=0;N<j;){var U,B=z[R(e,h,G)];if(h+=15&B,(U=B>>4)<16)L[N++]=U;else{var V=0,K=0;for(16==U?(K=3+R(e,h,3),h+=2,V=L[N-1]):17==U?(K=3+R(e,h,7),h+=3):18==U&&(K=11+R(e,h,127),h+=7);K--;)L[N++]=V}}var q=L.subarray(0,I),W=L.subarray(I);_=O(q),b=O(W),g=x(q,_,1),v=x(W,b,1)}else k(1);if(h>E){a&&k(0);break}}s&&l(m+131072);for(var H=(1<<_)-1,Y=(1<<b)-1,X=h;;X=h){var Z=(V=g[D(e,h)&H])>>4;if((h+=15&V)>E){a&&k(0);break}if(V||k(2),Z<256)r[m++]=Z;else{if(256==Z){X=h,g=null;break}var J=Z-254;if(Z>264){var Q=d[N=Z-257];J=R(e,h,(1<<Q)-1)+y[N],h+=Q}var ee=v[D(e,h)&Y],te=ee>>4;if(ee||k(3),h+=15&ee,W=w[te],te>3&&(Q=f[te],W+=D(e,h)&(1<<Q)-1,h+=Q),h>E){a&&k(0);break}s&&l(m+131072);var re=m+J;if(m<W){var ne=o-W,ie=Math.min(W,re);for(ne+m<0&&k(3);m<ie;++m)r[m]=n[ne+m]}for(;m<re;m+=4)r[m]=r[m-W],r[m+1]=r[m+1-W],r[m+2]=r[m+2-W],r[m+3]=r[m+3-W];m=re}}t.l=g,t.p=X,t.b=m,t.f=u,g&&(u=1,t.m=_,t.d=v,t.n=b)}while(!u);return m==r.length?r:function(e,t,r){(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length);var n=new c(r-t);return n.set(e.subarray(t,r)),n}(r,0,m)},j=new c(0),L=function(e){31==e[0]&&139==e[1]&&8==e[2]||k(6,"invalid gzip data");var t=e[3],r=10;4&t&&(r+=2+(e[10]|e[11]<<8));for(var n=(t>>3&1)+(t>>4&1);n>0;n-=!e[r++]);return r+(2&t)},M=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},N=function(e,t){return(8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31)&&k(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&k(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),2+(e[1]>>3&4)};function $(e,t){return 31==e[0]&&139==e[1]&&8==e[2]?function(e,t){var r=L(e);return r+8>e.length&&k(6,"invalid gzip data"),F(e.subarray(r,-8),{i:2},t&&t.out||new c(M(e)),t&&t.dictionary)}(e,t):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?function(e,t){return F(e,{i:2},t&&t.out,t&&t.dictionary)}(e,t):function(e,t){return F(e.subarray(N(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}(e,t)}var G="undefined"!=typeof TextDecoder&&new TextDecoder;try{G.decode(j,{stream:!0})}catch(e){}var z=(e,t)=>e*a(2,t),U=(e,t)=>Math.floor(e/a(2,t)),B=(e,t)=>z(e.getUint16(t+1,!0),8)+e.getUint8(t),V=(e,t)=>z(e.getUint32(t+2,!0),16)+e.getUint16(t,!0),K=(e,t,r,n,i)=>{if(e!==n.getUint8(i))return e-n.getUint8(i);const o=B(n,i+1);if(t!==o)return t-o;const s=B(n,i+4);return r!==s?r-s:0},q=(e,t,r,n)=>{const i=W(e,t,r,n);return i?{z:t,x:r,y:n,offset:i[0],length:i[1],isDir:!1}:null},W=(e,t,r,n)=>{let i=0,o=e.byteLength/17-1;for(;i<=o;){const s=o+i>>1,a=K(t,r,n,e,17*s);if(a>0)i=s+1;else{if(!(a<0))return[V(e,17*s+7),e.getUint32(17*s+13,!0)];o=s-1}}return null},H=(e,t)=>e.isDir&&!t.isDir?1:!e.isDir&&t.isDir?-1:e.z!==t.z?e.z-t.z:e.x!==t.x?e.x-t.x:e.y-t.y,Y=(e,t)=>{const r=e.getUint8(17*t);return{z:127&r,x:B(e,17*t+1),y:B(e,17*t+4),offset:V(e,17*t+7),length:e.getUint32(17*t+13,!0),isDir:r>>7==1}},X=e=>{const t=[],r=new DataView(e);for(let e=0;e<r.byteLength/17;e++)t.push(Y(r,e));return Z(t)},Z=e=>{e.sort(H);const t=new ArrayBuffer(17*e.length),r=new Uint8Array(t);for(let t=0;t<e.length;t++){const n=e[t];let i=n.z;n.isDir&&(i|=128),r[17*t]=i,r[17*t+1]=255&n.x,r[17*t+2]=n.x>>8&255,r[17*t+3]=n.x>>16&255,r[17*t+4]=255&n.y,r[17*t+5]=n.y>>8&255,r[17*t+6]=n.y>>16&255,r[17*t+7]=255&n.offset,r[17*t+8]=255&U(n.offset,8),r[17*t+9]=255&U(n.offset,16),r[17*t+10]=255&U(n.offset,24),r[17*t+11]=255&U(n.offset,32),r[17*t+12]=255&U(n.offset,48),r[17*t+13]=255&n.length,r[17*t+14]=n.length>>8&255,r[17*t+15]=n.length>>16&255,r[17*t+16]=n.length>>24&255}return t},J={getHeader:function(e){return l(this,null,(function*(){const t=yield e.getBytes(0,512e3),r=new DataView(t.data),n=r.getUint32(4,!0),i=r.getUint16(8,!0),o=new TextDecoder("utf-8"),s=JSON.parse(o.decode(new DataView(t.data,10,n)));let a=0;"gzip"===s.compression&&(a=2);let l=0;"minzoom"in s&&(l=+s.minzoom);let c=0;"maxzoom"in s&&(c=+s.maxzoom);let u=0,h=0,d=0,f=-180,p=-85,m=180,g=85;if(s.bounds){const e=s.bounds.split(",");f=+e[0],p=+e[1],m=+e[2],g=+e[3]}if(s.center){const e=s.center.split(",");u=+e[0],h=+e[1],d=+e[2]}return{specVersion:r.getUint16(2,!0),rootDirectoryOffset:10+n,rootDirectoryLength:17*i,jsonMetadataOffset:10,jsonMetadataLength:n,leafDirectoryOffset:0,leafDirectoryLength:void 0,tileDataOffset:0,tileDataLength:void 0,numAddressedTiles:0,numTileEntries:0,numTileContents:0,clustered:!1,internalCompression:1,tileCompression:a,tileType:1,minZoom:l,maxZoom:c,minLon:f,minLat:p,maxLon:m,maxLat:g,centerZoom:d,centerLon:u,centerLat:h,etag:t.etag}}))},getZxy:function(e,t,r,n,i,o,s){return l(this,null,(function*(){let a=yield r.getArrayBuffer(t,e.rootDirectoryOffset,e.rootDirectoryLength,e);1===e.specVersion&&(a=X(a));const l=q(new DataView(a),n,i,o);if(l){let e=(yield t.getBytes(l.offset,l.length,s)).data;const r=new DataView(e);return 31===r.getUint8(0)&&139===r.getUint8(1)&&(e=$(new Uint8Array(e))),{data:e}}const c=((e,t)=>{if(e.byteLength<17)return null;const r=e.byteLength/17,n=Y(e,r-1);if(n.isDir){const e=n.z,r=t.z-e;return{z:e,x:Math.trunc(t.x/(1<<r)),y:Math.trunc(t.y/(1<<r))}}return null})(new DataView(a),{z:n,x:i,y:o});if(c){const l=((e,t,r,n)=>{const i=W(e,128|t,r,n);return i?{z:t,x:r,y:n,offset:i[0],length:i[1],isDir:!0}:null})(new DataView(a),c.z,c.x,c.y);if(l){let a=yield r.getArrayBuffer(t,l.offset,l.length,e);1===e.specVersion&&(a=X(a));const c=q(new DataView(a),n,i,o);if(c){let e=(yield t.getBytes(c.offset,c.length,s)).data;const r=new DataView(e);return 31===r.getUint8(0)&&139===r.getUint8(1)&&(e=$(new Uint8Array(e))),{data:e}}}}}))}};function Q(e,t){return 4294967296*(t>>>0)+(e>>>0)}function ee(e){const t=e.buf;let r=t[e.pos++],n=127&r;return r<128?n:(r=t[e.pos++],n|=(127&r)<<7,r<128?n:(r=t[e.pos++],n|=(127&r)<<14,r<128?n:(r=t[e.pos++],n|=(127&r)<<21,r<128?n:(r=t[e.pos],n|=(15&r)<<28,function(e,t){const r=t.buf;let n=r[t.pos++],i=(112&n)>>4;if(n<128)return Q(e,i);if(n=r[t.pos++],i|=(127&n)<<3,n<128)return Q(e,i);if(n=r[t.pos++],i|=(127&n)<<10,n<128)return Q(e,i);if(n=r[t.pos++],i|=(127&n)<<17,n<128)return Q(e,i);if(n=r[t.pos++],i|=(127&n)<<24,n<128)return Q(e,i);if(n=r[t.pos++],i|=(1&n)<<31,n<128)return Q(e,i);throw new Error("Expected varint not more than 10 bytes")}(n,e)))))}function te(e,t,r,n){if(0===n){1===r&&(t[0]=e-1-t[0],t[1]=e-1-t[1]);const n=t[0];t[0]=t[1],t[1]=n}}var re=[0,1,5,21,85,341,1365,5461,21845,87381,349525,1398101,5592405,22369621,89478485,357913941,1431655765,5726623061,22906492245,91625968981,366503875925,1466015503701,5864062014805,23456248059221,93824992236885,375299968947541,0x5555555555555];function ne(e,t){return l(this,null,(function*(){if(1===t||0===t)return e;if(2===t){if(void 0===globalThis.DecompressionStream)return $(new Uint8Array(e));const t=new Response(e).body;if(!t)throw Error("Failed to read response stream");const r=t.pipeThrough(new globalThis.DecompressionStream("gzip"));return new Response(r).arrayBuffer()}throw Error("Compression method not supported")}))}function ie(e,t){let r=0,n=e.length-1;for(;r<=n;){const i=n+r>>1,o=t-e[i].tileId;if(o>0)r=i+1;else{if(!(o<0))return e[i];n=i-1}}if(n>=0){if(0===e[n].runLength)return e[n];if(t-e[n].tileId<e[n].runLength)return e[n]}return null}var oe=class{constructor(e,t=new Headers){this.url=e,this.customHeaders=t,this.mustReload=!1}getKey(){return this.url}setHeaders(e){this.customHeaders=e}getBytes(e,t,r,n){return l(this,null,(function*(){let i,o;r?o=r:(i=new AbortController,o=i.signal);const s=new Headers(this.customHeaders);let a;s.set("range",`bytes=${e}-${e+t-1}`),this.mustReload&&(a="reload");let l=yield fetch(this.url,{signal:o,cache:a,headers:s});if(0===e&&416===l.status){const e=l.headers.get("Content-Range");if(!e||!e.startsWith("bytes */"))throw Error("Missing content-length on 416 response");const t=+e.substr(8);l=yield fetch(this.url,{signal:o,cache:"reload",headers:{range:"bytes=0-"+(t-1)}})}let c=l.headers.get("Etag");if((null==c?void 0:c.startsWith("W/"))&&(c=null),416===l.status||n&&c&&c!==n)throw this.mustReload=!0,new le(`Server returned non-matching ETag ${n} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(l.status>=300)throw Error(`Bad response code: ${l.status}`);const u=l.headers.get("Content-Length");if(200===l.status&&(!u||+u>t))throw i&&i.abort(),Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");return{data:yield l.arrayBuffer(),etag:c||void 0,cacheControl:l.headers.get("Cache-Control")||void 0,expires:l.headers.get("Expires")||void 0}}))}};function se(e,t){const r=e.getUint32(t+4,!0),n=e.getUint32(t+0,!0);return r*a(2,32)+n}function ae(e){const t={buf:new Uint8Array(e),pos:0},r=ee(t),n=[];let i=0;for(let e=0;e<r;e++){const e=ee(t);n.push({tileId:i+e,offset:0,length:0,runLength:1}),i+=e}for(let e=0;e<r;e++)n[e].runLength=ee(t);for(let e=0;e<r;e++)n[e].length=ee(t);for(let e=0;e<r;e++){const r=ee(t);n[e].offset=0===r&&e>0?n[e-1].offset+n[e-1].length:r-1}return n}var le=class extends Error{};var ce=class{constructor(e=100,t=!0,r=ne){this.cache=new Map,this.invalidations=new Map,this.maxCacheEntries=e,this.counter=1,this.decompress=r}getHeader(e){return l(this,null,(function*(){const t=e.getKey(),r=this.cache.get(t);if(r)return r.lastUsed=this.counter++,yield r.data;const n=new Promise(((t,r)=>{(function(e,t){return l(this,null,(function*(){const r=yield e.getBytes(0,16384);if(19792!==new DataView(r.data).getUint16(0,!0))throw new Error("Wrong magic number for PMTiles archive");if(function(e){const t=new DataView(e);return 2===t.getUint16(2,!0)?(console.warn("PMTiles spec version 2 has been deprecated; please see github.com/protomaps/PMTiles for tools to upgrade"),2):1===t.getUint16(2,!0)?(console.warn("PMTiles spec version 1 has been deprecated; please see github.com/protomaps/PMTiles for tools to upgrade"),1):3}(r.data)<3)return[yield J.getHeader(e)];const n=function(e,t){const r=new DataView(e),n=r.getUint8(7);if(n>3)throw Error(`Archive is spec version ${n} but this library supports up to spec version 3`);return{specVersion:n,rootDirectoryOffset:se(r,8),rootDirectoryLength:se(r,16),jsonMetadataOffset:se(r,24),jsonMetadataLength:se(r,32),leafDirectoryOffset:se(r,40),leafDirectoryLength:se(r,48),tileDataOffset:se(r,56),tileDataLength:se(r,64),numAddressedTiles:se(r,72),numTileEntries:se(r,80),numTileContents:se(r,88),clustered:1===r.getUint8(96),internalCompression:r.getUint8(97),tileCompression:r.getUint8(98),tileType:r.getUint8(99),minZoom:r.getUint8(100),maxZoom:r.getUint8(101),minLon:r.getInt32(102,!0)/1e7,minLat:r.getInt32(106,!0)/1e7,maxLon:r.getInt32(110,!0)/1e7,maxLat:r.getInt32(114,!0)/1e7,centerZoom:r.getUint8(118),centerLon:r.getInt32(119,!0)/1e7,centerLat:r.getInt32(123,!0)/1e7,etag:t}}(r.data.slice(0,127),r.etag),i=r.data.slice(n.rootDirectoryOffset,n.rootDirectoryOffset+n.rootDirectoryLength),o=`${e.getKey()}|${n.etag||""}|${n.rootDirectoryOffset}|${n.rootDirectoryLength}`,s=ae(yield t(i,n.internalCompression));return[n,[o,s.length,s]]}))})(e,this.decompress).then((e=>{e[1]&&this.cache.set(e[1][0],{lastUsed:this.counter++,data:Promise.resolve(e[1][2])}),t(e[0]),this.prune()})).catch((e=>{r(e)}))}));return this.cache.set(t,{lastUsed:this.counter++,data:n}),n}))}getDirectory(e,t,r,n){return l(this,null,(function*(){const i=`${e.getKey()}|${n.etag||""}|${t}|${r}`,o=this.cache.get(i);if(o)return o.lastUsed=this.counter++,yield o.data;const s=new Promise(((i,o)=>{(function(e,t,r,n,i){return l(this,null,(function*(){const o=yield e.getBytes(r,n,void 0,i.etag),s=ae(yield t(o.data,i.internalCompression));if(0===s.length)throw new Error("Empty directory is invalid");return s}))})(e,this.decompress,t,r,n).then((e=>{i(e),this.prune()})).catch((e=>{o(e)}))}));return this.cache.set(i,{lastUsed:this.counter++,data:s}),s}))}getArrayBuffer(e,t,r,n){return l(this,null,(function*(){const i=`${e.getKey()}|${n.etag||""}|${t}|${r}`,o=this.cache.get(i);if(o)return o.lastUsed=this.counter++,yield o.data;const s=new Promise(((o,s)=>{e.getBytes(t,r,void 0,n.etag).then((e=>{o(e.data),this.cache.has(i),this.prune()})).catch((e=>{s(e)}))}));return this.cache.set(i,{lastUsed:this.counter++,data:s}),s}))}prune(){if(this.cache.size>=this.maxCacheEntries){let e,t=1/0;this.cache.forEach(((r,n)=>{r.lastUsed<t&&(t=r.lastUsed,e=n)})),e&&this.cache.delete(e)}}invalidate(e){return l(this,null,(function*(){const t=e.getKey();if(this.invalidations.get(t))return yield this.invalidations.get(t);this.cache.delete(e.getKey());const r=new Promise(((r,n)=>{this.getHeader(e).then((e=>{r(),this.invalidations.delete(t)})).catch((e=>{n(e)}))}));this.invalidations.set(t,r)}))}},ue=class{constructor(e,t,r){this.source="string"==typeof e?new oe(e):e,this.decompress=r||ne,this.cache=t||new ce}getHeader(){return l(this,null,(function*(){return yield this.cache.getHeader(this.source)}))}getZxyAttempt(e,t,r,n){return l(this,null,(function*(){const i=function(e,t,r){if(e>26)throw Error("Tile zoom level exceeds max safe number limit (26)");if(t>a(2,e)-1||r>a(2,e)-1)throw Error("tile x/y outside zoom level bounds");const n=re[e];let i=0,o=0,s=0;const l=[t,r];let c=a(2,e)/2;for(;c>0;)i=(l[0]&c)>0?1:0,o=(l[1]&c)>0?1:0,s+=c*c*(3*i^o),te(c,l,i,o),c/=2;return n+s}(e,t,r),o=yield this.cache.getHeader(this.source);if(o.specVersion<3)return J.getZxy(o,this.source,this.cache,e,t,r,n);if(e<o.minZoom||e>o.maxZoom)return;let s=o.rootDirectoryOffset,l=o.rootDirectoryLength;for(let e=0;e<=3;e++){const e=ie(yield this.cache.getDirectory(this.source,s,l,o),i);if(!e)return;if(e.runLength>0){const t=yield this.source.getBytes(o.tileDataOffset+e.offset,e.length,n,o.etag);return{data:yield this.decompress(t.data,o.tileCompression),cacheControl:t.cacheControl,expires:t.expires}}s=o.leafDirectoryOffset+e.offset,l=e.length}throw Error("Maximum directory depth exceeded")}))}getZxy(e,t,r,n){return l(this,null,(function*(){try{return yield this.getZxyAttempt(e,t,r,n)}catch(i){if(i instanceof le)return this.cache.invalidate(this.source),yield this.getZxyAttempt(e,t,r,n);throw i}}))}getMetadataAttempt(){return l(this,null,(function*(){const e=yield this.cache.getHeader(this.source),t=yield this.source.getBytes(e.jsonMetadataOffset,e.jsonMetadataLength,void 0,e.etag),r=yield this.decompress(t.data,e.internalCompression),n=new TextDecoder("utf-8");return JSON.parse(n.decode(r))}))}getMetadata(){return l(this,null,(function*(){try{return yield this.getMetadataAttempt()}catch(e){if(e instanceof le)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw e}}))}};class he extends n.A{loadImage=e=>new Promise(((t,r)=>{const n=new Image;n.addEventListener("load",(()=>t(n))),n.addEventListener("error",(()=>r(new Error("load failed")))),n.src=e}));constructor(e){super({...e,state:"loading"});const t=new oe(e.url,new Headers(e.headers)),r=new ue(t);r.getHeader().then((e=>{this.tileGrid.minZoom=e.minZoom,this.tileGrid.maxZoom=e.maxZoom,this.setLoader((async(e,t,n)=>{const i=await r.getZxy(e,t,n),o=URL.createObjectURL(new Blob([i.data])),s=await this.loadImage(o);return URL.revokeObjectURL(o),s})),this.setState("ready")}))}}class de extends i.A{tileLoadFunction=(e,t)=>{const r=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),n=t.match(r),i=+n[2],s=+n[3],a=+n[4];e.setLoader(((t,r,n)=>{this.pmtiles_.getZxy(i,s,a).then((r=>{if(r){const i=e.getFormat();e.setFeatures(i.readFeatures(r.data,{extent:t,featureProjection:n})),e.setState(o.A.LOADED)}else e.setFeatures([]),e.setState(o.A.EMPTY)})).catch((t=>{e.setFeatures([]),e.setState(o.A.ERROR)}))}))};constructor(e){super({...e,state:"loading",url:"pmtiles://"+e.url+"/{z}/{x}/{y}",format:e.format||new s.A});const t=new oe(e.url,new Headers(e.headers));this.pmtiles_=new ue(t),this.pmtiles_.getHeader().then((e=>{this.tileGrid.minZoom=e.minZoom,this.tileGrid.maxZoom=e.maxZoom,this.setTileLoadFunction(this.tileLoadFunction),this.setState("ready")}))}}},20489:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(72614),i=r(45981),o=r(37283);const s="length";class a extends o.Ay{constructor(e,t,r){super(e),this.element=t,this.index=r}}class l extends n.A{constructor(e,t){if(super(),this.on,this.once,this.un,t=t||{},this.unique_=!!t.unique,this.array_=e||[],this.unique_)for(let e=0,t=this.array_.length;e<t;++e)this.assertUnique_(this.array_[e],e);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(e){for(let t=0,r=e.length;t<r;++t)this.push(e[t]);return this}forEach(e){const t=this.array_;for(let r=0,n=t.length;r<n;++r)e(t[r],r,t)}getArray(){return this.array_}item(e){return this.array_[e]}getLength(){return this.get(s)}insertAt(e,t){if(e<0||e>this.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new a(i.A.ADD,t,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const t=this.getLength();return this.insertAt(t,e),this.getLength()}remove(e){const t=this.array_;for(let r=0,n=t.length;r<n;++r)if(t[r]===e)return this.removeAt(r)}removeAt(e){if(e<0||e>=this.getLength())return;const t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new a(i.A.REMOVE,t,e)),t}setAt(e,t){if(e>=this.getLength())return void this.insertAt(e,t);if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t,e);const r=this.array_[e];this.array_[e]=t,this.dispatchEvent(new a(i.A.REMOVE,r,e)),this.dispatchEvent(new a(i.A.ADD,t,e))}updateLength_(){this.set(s,this.array_.length)}assertUnique_(e,t){for(let r=0,n=this.array_.length;r<n;++r)if(this.array_[r]===e&&r!==t)throw new Error("Duplicate item added to a unique collection")}}const c=l},45981:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={ADD:"add",REMOVE:"remove"}},97141:(e,t,r)=>{"use strict";r.d(t,{$r:()=>u,Ay:()=>f,bL:()=>a,xo:()=>s});var n=r(76741),i=r(20884),o=r(83085);function s(e){return e instanceof Image||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageBitmap?e:null}function a(e){return e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Float32Array||e instanceof DataView?e:null}const l=new Error("disposed");let c=null;function u(e){c||(c=(0,o.Y)(e.width,e.height,void 0,{willReadFrequently:!0}));const t=c.canvas,r=e.width;t.width!==r&&(t.width=r);const n=e.height;return t.height!==n&&(t.height=n),c.clearRect(0,0,r,n),c.drawImage(e,0,0),c.getImageData(0,0,r,n).data}const h=[256,256];class d extends n.A{constructor(e){const t=i.A.IDLE;super(e.tileCoord,t,{transition:e.transition,interpolate:e.interpolate}),this.loader_=e.loader,this.data_=null,this.error_=null,this.size_=e.size||null,this.controller_=e.controller||null}getSize(){if(this.size_)return this.size_;const e=s(this.data_);return e?[e.width,e.height]:h}getData(){return this.data_}getError(){return this.error_}load(){if(this.state!==i.A.IDLE&&this.state!==i.A.ERROR)return;this.state=i.A.LOADING,this.changed();const e=this;this.loader_().then((function(t){e.data_=t,e.state=i.A.LOADED,e.changed()})).catch((function(t){e.error_=t,e.state=i.A.ERROR,e.changed()}))}disposeInternal(){this.controller_&&(this.controller_.abort(l),this.controller_=null),super.disposeInternal()}}const f=d},60239:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}},75839:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(72614),i=r(24187),o=r(30878),s=r(94456);class a extends n.A{constructor(e){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),e)if("function"==typeof e.getSimplifiedGeometry){const t=e;this.setGeometry(t)}else{const t=e;this.setProperties(t)}}clone(){const e=new a(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());const t=this.getGeometry();t&&e.setGeometry(t.clone());const r=this.getStyle();return r&&e.setStyle(r),e}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,s.JH)(this.geometryChangeKey_),this.geometryChangeKey_=null);const e=this.getGeometry();e&&(this.geometryChangeKey_=(0,s.KT)(e,i.A.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(e){this.set(this.geometryName_,e)}setStyle(e){this.style_=e,this.styleFunction_=e?function(e){if("function"==typeof e)return e;let t;return Array.isArray(e)?t=e:((0,o.v)("function"==typeof e.getZIndex,"Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),t=[e]),function(){return t}}(e):void 0,this.changed()}setId(e){this.id_=e,this.changed()}setGeometryName(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}const l=a},77032:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>f,D4:()=>d,RA:()=>h,f6:()=>u});var n=r(91086),i=r(24187),o=r(39915),s=r(66993),a=r(94456),l=r(97440);class c extends n.A{constructor(e,t,r,n){super(),this.extent=e,this.pixelRatio_=r,this.resolution=t,this.state="function"==typeof n?o.A.IDLE:n,this.image_=null,this.loader="function"==typeof n?n:null}changed(){this.dispatchEvent(i.A.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==o.A.IDLE&&this.loader){this.state=o.A.LOADING,this.changed();const e=this.getResolution(),t=Array.isArray(e)?e[0]:e;(0,l.hq)((()=>this.loader(this.getExtent(),t,this.getPixelRatio()))).then((e=>{"image"in e&&(this.image_=e.image),"extent"in e&&(this.extent=e.extent),"resolution"in e&&(this.resolution=e.resolution),"pixelRatio"in e&&(this.pixelRatio_=e.pixelRatio),(e instanceof HTMLImageElement||e instanceof ImageBitmap||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement)&&(this.image_=e),this.state=o.A.LOADED})).catch((e=>{this.state=o.A.ERROR,console.error(e)})).finally((()=>this.changed()))}}setImage(e){this.image_=e}setResolution(e){this.resolution=e}}function u(e,t,r){const n=e;let o=!0,l=!1,c=!1;const u=[(0,a.Jz)(n,i.A.LOAD,(function(){c=!0,l||t()}))];return n.src&&s.DT?(l=!0,n.decode().then((function(){o&&t()})).catch((function(e){o&&(c?t():r())}))):u.push((0,a.Jz)(n,i.A.ERROR,r)),function(){o=!1,u.forEach(a.JH)}}function h(e,t){return t&&(e.src=t),e.src&&s.DT?new Promise(((t,r)=>e.decode().then((()=>t(e))).catch((n=>e.complete&&e.width?t(e):r(n))))):function(e){return new Promise(((t,r)=>{function n(){o(),t(e)}function i(){o(),r(new Error("Image load error"))}function o(){e.removeEventListener("load",n),e.removeEventListener("error",i)}e.addEventListener("load",n),e.addEventListener("error",i)}))}(e)}function d(e,t){return t&&(e.src=t),e.src&&s.DT&&s.XM?e.decode().then((()=>createImageBitmap(e))).catch((t=>{if(e.complete&&e.width)return e;throw t})):h(e)}const f=c},39915:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},67564:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(76741),i=r(20884),o=r(83085),s=r(77032);class a extends n.A{constructor(e,t,r,n,i,o){super(e,t,o),this.crossOrigin_=n,this.src_=r,this.key=r,this.image_=new Image,null!==n&&(this.image_.crossOrigin=n),this.unlisten_=null,this.tileLoadFunction_=i}getImage(){return this.image_}setImage(e){this.image_=e,this.state=i.A.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=i.A.ERROR,this.unlistenImage_(),this.image_=function(){const e=(0,o.Y)(1,1);return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas}(),this.changed()}handleImageLoad_(){const e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=i.A.LOADED:this.state=i.A.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==i.A.ERROR&&(this.state=i.A.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==i.A.IDLE&&(this.state=i.A.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,s.f6)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}const l=a},67936:(e,t,r)=>{"use strict";r.d(t,{A:()=>tt});var n=r(72614),i=r(20489),o=r(45981),s=r(59722),a=r(60239),l=r(97440),c=r(98629),u=r(37377),h=r(44509),d=r(67031),f=r(73626),p=r(9535);class m extends a.A{constructor(e){super(),this.map_=e}dispatchRenderEvent(e,t){(0,c.b0)()}calculateMatrices2D(e){const t=e.viewState,r=e.coordinateToPixelTransform,n=e.pixelToCoordinateTransform;(0,u.Zz)(r,e.size[0]/2,e.size[1]/2,1/t.resolution,-1/t.resolution,-t.rotation,-t.center[0],-t.center[1]),(0,u.T9)(n,r)}forEachFeatureAtCoordinate(e,t,r,n,i,o,s,a){let l;const c=t.viewState;function u(e,t,r,n){return i.call(o,t,e?r:null,n)}const d=c.projection,m=(0,p.Li)(e.slice(),d),g=[[0,0]];if(d.canWrapX()&&n){const e=d.getExtent(),t=(0,h.RG)(e);g.push([-t,0],[t,0])}const y=t.layerStatesArray,v=y.length,_=[],b=[];for(let n=0;n<g.length;n++)for(let i=v-1;i>=0;--i){const o=y[i],h=o.layer;if(h.hasRenderer()&&(0,f.l)(o,c)&&s.call(a,h)){const i=h.getRenderer(),s=h.getSource();if(i&&s){const a=s.getWrapX()?m:e,c=u.bind(null,o.managed);b[0]=a[0]+g[n][0],b[1]=a[1]+g[n][1],l=i.forEachFeatureAtCoordinate(b,t,r,c,_)}if(l)return l}}if(0===_.length)return;const w=1/_.length;return _.forEach(((e,t)=>e.distanceSq+=t*w)),_.sort(((e,t)=>e.distanceSq-t.distanceSq)),_.some((e=>l=e.callback(e.feature,e.layer,e.geometry))),l}hasFeatureAtCoordinate(e,t,r,n,i,o){return void 0!==this.forEachFeatureAtCoordinate(e,t,r,n,l.rT,this,i,o)}getMap(){return this.map_}renderFrame(e){(0,c.b0)()}scheduleExpireIconCache(e){d.ue.canExpireCache()&&e.postRenderFunctions.push(g)}}function g(e,t){d.ue.expire()}const y=m;var v=r(56644),_=r(3094),b=r(45630),w=r(71686),E=r(33976),x=r(94456),S=r(83085);const A=class extends y{constructor(e){super(e),this.fontChangeListenerKey_=(0,x.KT)(E.yY,v.A.PROPERTYCHANGE,e.redrawText.bind(e)),this.element_=document.createElement("div");const t=this.element_.style;t.position="absolute",t.width="100%",t.height="100%",t.zIndex="0",this.element_.className=w.XI+" ol-layers";const r=e.getViewport();r.insertBefore(this.element_,r.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(e,t){const r=this.getMap();if(r.hasListener(e)){const n=new _.A(e,void 0,t);r.dispatchEvent(n)}}disposeInternal(){(0,x.JH)(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(e){if(!e)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(e),this.dispatchRenderEvent(b.A.PRECOMPOSE,e);const t=e.layerStatesArray.sort(((e,t)=>e.zIndex-t.zIndex));t.some((e=>e.layer instanceof s.A&&e.layer.getDeclutter()))&&(e.declutter={});const r=e.viewState;this.children_.length=0;const n=[];let i=null;for(let o=0,s=t.length;o<s;++o){const s=t[o];e.layerIndex=o;const a=s.layer,l=a.getSourceState();if(!(0,f.l)(s,r)||"ready"!=l&&"undefined"!=l){a.unrender();continue}const c=a.render(e,i);c&&(c!==i&&(this.children_.push(c),i=c),n.push(s))}this.declutter(e,n),(0,S.WM)(this.element_,this.children_),this.dispatchRenderEvent(b.A.POSTCOMPOSE,e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}declutter(e,t){if(e.declutter){for(let r=t.length-1;r>=0;--r){const n=t[r],i=n.layer;i.getDeclutter()&&i.renderDeclutter(e,n)}t.forEach((t=>t.layer.renderDeferred(e)))}}};var T=r(24187),P=r(93450),C=r(37283),O=r(30878),R=r(82048);class D extends C.Ay{constructor(e,t){super(e),this.layer=t}}const I="layers";class k extends P.A{constructor(e){e=e||{};const t=Object.assign({},e);delete t.layers;let r=e.layers;super(t),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(I,this.handleLayersChanged_),r?Array.isArray(r)?r=new i.A(r.slice(),{unique:!0}):(0,O.v)("function"==typeof r.getArray,"Expected `layers` to be an array or a `Collection`"):r=new i.A(void 0,{unique:!0}),this.setLayers(r)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(x.JH),this.layersListenerKeys_.length=0;const e=this.getLayers();this.layersListenerKeys_.push((0,x.KT)(e,o.A.ADD,this.handleLayersAdd_,this),(0,x.KT)(e,o.A.REMOVE,this.handleLayersRemove_,this));for(const e in this.listenerKeys_)this.listenerKeys_[e].forEach(x.JH);(0,R.I)(this.listenerKeys_);const t=e.getArray();for(let e=0,r=t.length;e<r;e++){const r=t[e];this.registerLayerListeners_(r),this.dispatchEvent(new D("addlayer",r))}this.changed()}registerLayerListeners_(e){const t=[(0,x.KT)(e,v.A.PROPERTYCHANGE,this.handleLayerChange_,this),(0,x.KT)(e,T.A.CHANGE,this.handleLayerChange_,this)];e instanceof k&&t.push((0,x.KT)(e,"addlayer",this.handleLayerGroupAdd_,this),(0,x.KT)(e,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,c.v6)(e)]=t}handleLayerGroupAdd_(e){this.dispatchEvent(new D("addlayer",e.layer))}handleLayerGroupRemove_(e){this.dispatchEvent(new D("removelayer",e.layer))}handleLayersAdd_(e){const t=e.element;this.registerLayerListeners_(t),this.dispatchEvent(new D("addlayer",t)),this.changed()}handleLayersRemove_(e){const t=e.element,r=(0,c.v6)(t);this.listenerKeys_[r].forEach(x.JH),delete this.listenerKeys_[r],this.dispatchEvent(new D("removelayer",t)),this.changed()}getLayers(){return this.get(I)}setLayers(e){const t=this.getLayers();if(t){const e=t.getArray();for(let t=0,r=e.length;t<r;++t)this.dispatchEvent(new D("removelayer",e[t]))}this.set(I,e)}getLayersArray(e){return e=void 0!==e?e:[],this.getLayers().forEach((function(t){t.getLayersArray(e)})),e}getLayerStatesArray(e){const t=void 0!==e?e:[],r=t.length;this.getLayers().forEach((function(e){e.getLayerStatesArray(t)}));const n=this.getLayerState();let i=n.zIndex;e||void 0!==n.zIndex||(i=0);for(let e=r,o=t.length;e<o;e++){const r=t[e];r.opacity*=n.opacity,r.visible=r.visible&&n.visible,r.maxResolution=Math.min(r.maxResolution,n.maxResolution),r.minResolution=Math.max(r.minResolution,n.minResolution),r.minZoom=Math.max(r.minZoom,n.minZoom),r.maxZoom=Math.min(r.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==r.extent?r.extent=(0,h._N)(r.extent,n.extent):r.extent=n.extent),void 0===r.zIndex&&(r.zIndex=i)}return t}getSourceState(){return"ready"}}const F=k;class j extends C.Ay{constructor(e,t,r){super(e),this.map=t,this.frameState=void 0!==r?r:null}}const L=j,M=class extends L{constructor(e,t,r,n,i,o){super(e,t,i),this.originalEvent=r,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==n&&n,this.activePointers=o}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(e){this.pixel_=e}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(e){this.coordinate_=e}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}},N={SINGLECLICK:"singleclick",CLICK:T.A.CLICK,DBLCLICK:T.A.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},$="pointerdown";var G=r(91086),z=r(66993);class U extends G.A{constructor(e,t){super(e),this.map_=e,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===t?1:t,this.down_=null;const r=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=r,this.pointerdownListenerKey_=(0,x.KT)(r,$,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,x.KT)(r,"pointermove",this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(T.A.TOUCHMOVE,this.boundHandleTouchMove_,!!z.FT&&{passive:!1})}emulateClick_(e){let t=new M(N.CLICK,this.map_,e);this.dispatchEvent(t),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,t=new M(N.DBLCLICK,this.map_,e),this.dispatchEvent(t)):this.clickTimeoutId_=setTimeout((()=>{this.clickTimeoutId_=void 0;const t=new M(N.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}),250)}updateActivePointers_(e){const t=e,r=t.pointerId;if(t.type==N.POINTERUP||t.type==N.POINTERCANCEL){delete this.trackedTouches_[r];for(const e in this.trackedTouches_)if(this.trackedTouches_[e].target!==t.target){delete this.trackedTouches_[e];break}}else t.type!=N.POINTERDOWN&&t.type!=N.POINTERMOVE||(this.trackedTouches_[r]=t);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(e){this.updateActivePointers_(e);const t=new M(N.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(x.JH),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(e){return 0===e.button}handlePointerDown_(e){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(e);const t=new M(N.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);if(this.dispatchEvent(t),this.down_=new PointerEvent(e.type,e),Object.defineProperty(this.down_,"target",{writable:!1,value:e.target}),0===this.dragListenerKeys_.length){const e=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,x.KT)(e,N.POINTERMOVE,this.handlePointerMove_,this),(0,x.KT)(e,N.POINTERUP,this.handlePointerUp_,this),(0,x.KT)(this.element_,N.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==e&&this.dragListenerKeys_.push((0,x.KT)(this.element_.getRootNode(),N.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;const t=new M(N.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(t)}}relayMoveEvent_(e){this.originalPointerMoveEvent_=e;const t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new M(N.POINTERMOVE,this.map_,e,t))}handleTouchMove_(e){const t=this.originalPointerMoveEvent_;t&&!t.defaultPrevented||"boolean"==typeof e.cancelable&&!0!==e.cancelable||e.preventDefault()}isMoving_(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,x.JH)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(T.A.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,x.JH)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(x.JH),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const B=U,V="postrender",K="loadstart",q="loadend",W="layergroup",H="size",Y="target",X="view",Z=1/0,J=class{constructor(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,R.I)(this.queuedElements_)}dequeue(){const e=this.elements_,t=this.priorities_,r=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));const n=this.keyFunction_(r);return delete this.queuedElements_[n],r}enqueue(e){(0,O.v)(!(this.keyFunction_(e)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const t=this.priorityFunction_(e);return t!=Z&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(e){return 2*e+1}getRightChildIndex_(e){return 2*e+2}getParentIndex_(e){return e-1>>1}heapify_(){let e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)}isEmpty(){return 0===this.elements_.length}isKeyQueued(e){return e in this.queuedElements_}isQueued(e){return this.isKeyQueued(this.keyFunction_(e))}siftUp_(e){const t=this.elements_,r=this.priorities_,n=t.length,i=t[e],o=r[e],s=e;for(;e<n>>1;){const i=this.getLeftChildIndex_(e),o=this.getRightChildIndex_(e),s=o<n&&r[o]<r[i]?o:i;t[e]=t[s],r[e]=r[s],e=s}t[e]=i,r[e]=o,this.siftDown_(s,e)}siftDown_(e,t){const r=this.elements_,n=this.priorities_,i=r[t],o=n[t];for(;t>e;){const e=this.getParentIndex_(t);if(!(n[e]>o))break;r[t]=r[e],n[t]=n[e],t=e}r[t]=i,n[t]=o}reprioritize(){const e=this.priorityFunction_,t=this.elements_,r=this.priorities_;let n=0;const i=t.length;let o,s,a;for(s=0;s<i;++s)o=t[s],a=e(o),a==Z?delete this.queuedElements_[this.keyFunction_(o)]:(r[n]=a,t[n++]=o);t.length=n,r.length=n,this.heapify_()}};var Q=r(20884);const ee=class extends J{constructor(e,t){super((function(t){return e.apply(null,t)}),(function(e){return e[0].getKey()})),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=t,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(e){const t=super.enqueue(e);return t&&e[0].addEventListener(T.A.CHANGE,this.boundHandleTileChange_),t}getTilesLoading(){return this.tilesLoading_}handleTileChange(e){const t=e.target,r=t.getState();if(r===Q.A.LOADED||r===Q.A.ERROR||r===Q.A.EMPTY){r!==Q.A.ERROR&&t.removeEventListener(T.A.CHANGE,this.boundHandleTileChange_);const e=t.getKey();e in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[e],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(e,t){let r=0;for(;this.tilesLoading_<e&&r<t&&this.getCount()>0;){const e=this.dequeue()[0],t=e.getKey();e.getState()!==Q.A.IDLE||t in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[t]=!0,++this.tilesLoading_,++r,e.load())}}};var te=r(95854),re=r(32769);class ne extends n.A{constructor(e){super();const t=e.element;!t||e.target||t.style.pointerEvents||(t.style.pointerEvents="auto"),this.element=t||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){this.element?.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(e){this.map_&&this.element?.remove();for(let e=0,t=this.listenerKeys.length;e<t;++e)(0,x.JH)(this.listenerKeys[e]);this.listenerKeys.length=0,this.map_=e,e&&((this.target_??e.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==l.tV&&this.listenerKeys.push((0,x.KT)(e,V,this.render,this)),e.render())}render(e){}setTarget(e){this.target_="string"==typeof e?document.getElementById(e):e}}const ie=ne;var oe=r(30444);const se=class extends ie{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===e.collapsed||e.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==e.collapsible,this.collapsible_=void 0===e.collapsible||e.collapsible,this.collapsible_||(this.collapsed_=!1),this.attributions_=e.attributions;const t=void 0!==e.className?e.className:"ol-attribution",r=void 0!==e.tipLabel?e.tipLabel:"Attributions",n=void 0!==e.expandClassName?e.expandClassName:t+"-expand",i=void 0!==e.collapseLabel?e.collapseLabel:"›",o=void 0!==e.collapseClassName?e.collapseClassName:t+"-collapse";"string"==typeof i?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=i,this.collapseLabel_.className=o):this.collapseLabel_=i;const s=void 0!==e.label?e.label:"i";"string"==typeof s?(this.label_=document.createElement("span"),this.label_.textContent=s,this.label_.className=n):this.label_=s;const a=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=r,this.toggleButton_.appendChild(a),this.toggleButton_.addEventListener(T.A.CLICK,this.handleClick_.bind(this),!1);const l=t+" "+w.XI+" "+w.$N+(this.collapsed_&&this.collapsible_?" "+w.nT:"")+(this.collapsible_?"":" ol-uncollapsible"),c=this.element;c.className=l,c.appendChild(this.toggleButton_),c.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(e){const t=this.getMap().getAllLayers(),r=new Set(t.flatMap((t=>t.getAttributions(e))));if(void 0!==this.attributions_&&(Array.isArray(this.attributions_)?this.attributions_.forEach((e=>r.add(e))):r.add(this.attributions_)),!this.overrideCollapsible_){const e=!t.some((e=>!1===e.getSource()?.getAttributionsCollapsible()));this.setCollapsible(e)}return Array.from(r)}async updateElement_(e){if(!e)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const t=await Promise.all(this.collectSourceAttributions_(e).map((e=>(0,l.hq)((()=>e))))),r=t.length>0;if(this.renderedVisible_!=r&&(this.element.style.display=r?"":"none",this.renderedVisible_=r),!(0,oe.aI)(t,this.renderedAttributions_)){(0,S.gS)(this.ulElement_);for(let e=0,r=t.length;e<r;++e){const r=document.createElement("li");r.innerHTML=t[e],this.ulElement_.appendChild(r)}this.renderedAttributions_=t}}handleClick_(e){e.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(w.nT),this.collapsed_?(0,S.fo)(this.collapseLabel_,this.label_):(0,S.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(e){this.userCollapsed_=e,this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(e){this.updateElement_(e.frameState)}};var ae=r(2620);const le=class extends ie{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target});const t=void 0!==e.className?e.className:"ol-rotate",r=void 0!==e.label?e.label:"⇧",n=void 0!==e.compassClassName?e.compassClassName:"ol-compass";this.label_=null,"string"==typeof r?(this.label_=document.createElement("span"),this.label_.className=n,this.label_.textContent=r):(this.label_=r,this.label_.classList.add(n));const i=e.tipLabel?e.tipLabel:"Reset rotation",o=document.createElement("button");o.className=t+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.label_),o.addEventListener(T.A.CLICK,this.handleClick_.bind(this),!1);const s=t+" "+w.XI+" "+w.$N,a=this.element;a.className=s,a.appendChild(o),this.callResetNorth_=e.resetNorth?e.resetNorth:void 0,this.duration_=void 0!==e.duration?e.duration:250,this.autoHide_=void 0===e.autoHide||e.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(w.Si)}handleClick_(e){e.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const e=this.getMap().getView();if(!e)return;const t=e.getRotation();void 0!==t&&(this.duration_>0&&t%(2*Math.PI)!=0?e.animate({rotation:0,duration:this.duration_,easing:ae.vT}):e.setRotation(0))}render(e){const t=e.frameState;if(!t)return;const r=t.viewState.rotation;if(r!=this.rotation_){const e="rotate("+r+"rad)";if(this.autoHide_){const e=this.element.classList.contains(w.Si);e||0!==r?e&&0!==r&&this.element.classList.remove(w.Si):this.element.classList.add(w.Si)}this.label_.style.transform=e}this.rotation_=r}},ce=class extends ie{constructor(e){e=e||{},super({element:document.createElement("div"),target:e.target});const t=void 0!==e.className?e.className:"ol-zoom",r=void 0!==e.delta?e.delta:1,n=void 0!==e.zoomInClassName?e.zoomInClassName:t+"-in",i=void 0!==e.zoomOutClassName?e.zoomOutClassName:t+"-out",o=void 0!==e.zoomInLabel?e.zoomInLabel:"+",s=void 0!==e.zoomOutLabel?e.zoomOutLabel:"–",a=void 0!==e.zoomInTipLabel?e.zoomInTipLabel:"Zoom in",l=void 0!==e.zoomOutTipLabel?e.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=n,c.setAttribute("type","button"),c.title=a,c.appendChild("string"==typeof o?document.createTextNode(o):o),c.addEventListener(T.A.CLICK,this.handleClick_.bind(this,r),!1);const u=document.createElement("button");u.className=i,u.setAttribute("type","button"),u.title=l,u.appendChild("string"==typeof s?document.createTextNode(s):s),u.addEventListener(T.A.CLICK,this.handleClick_.bind(this,-r),!1);const h=t+" "+w.XI+" "+w.$N,d=this.element;d.className=h,d.appendChild(c),d.appendChild(u),this.duration_=void 0!==e.duration?e.duration:250}handleClick_(e,t){t.preventDefault(),this.zoomByDelta_(e)}zoomByDelta_(e){const t=this.getMap().getView();if(!t)return;const r=t.getZoom();if(void 0!==r){const n=t.getConstrainedZoom(r+e);this.duration_>0?(t.getAnimating()&&t.cancelAnimations(),t.animate({zoom:n,duration:this.duration_,easing:ae.vT})):t.setZoom(n)}}};var ue=r(78083);class he extends ue.Ay{constructor(e){super(),e=e||{},this.delta_=e.delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:250}handleEvent(e){let t=!1;if(e.type==N.DBLCLICK){const r=e.originalEvent,n=e.map,i=e.coordinate,o=r.shiftKey?-this.delta_:this.delta_,s=n.getView();(0,ue.D2)(s,o,i,this.duration_),r.preventDefault(),t=!0}return!t}}const de=he;class fe extends ue.Ay{constructor(e){super(e=e||{}),e.handleDownEvent&&(this.handleDownEvent=e.handleDownEvent),e.handleDragEvent&&(this.handleDragEvent=e.handleDragEvent),e.handleMoveEvent&&(this.handleMoveEvent=e.handleMoveEvent),e.handleUpEvent&&(this.handleUpEvent=e.handleUpEvent),e.stopDown&&(this.stopDown=e.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(e){return!1}handleDragEvent(e){}handleEvent(e){if(!e.originalEvent)return!0;let t=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==N.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==N.POINTERUP){const t=this.handleUpEvent(e);this.handlingDownUpSequence=t&&this.targetPointers.length>0}}else if(e.type==N.POINTERDOWN){const r=this.handleDownEvent(e);this.handlingDownUpSequence=r,t=this.stopDown(r)}else e.type==N.POINTERMOVE&&this.handleMoveEvent(e);return!t}handleMoveEvent(e){}handleUpEvent(e){return!1}stopDown(e){return e}updateTrackedPointers_(e){e.activePointers&&(this.targetPointers=e.activePointers)}}function pe(e){const t=e.length;let r=0,n=0;for(let i=0;i<t;i++)r+=e[i].clientX,n+=e[i].clientY;return{clientX:r/t,clientY:n/t}}const me=fe;function ge(e){const t=arguments;return function(e){let r=!0;for(let n=0,i=t.length;n<i&&(r=r&&t[n](e),r);++n);return r}}const ye=function(e){const t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},ve=function(e){const t=e.map.getTargetElement(),r=t.getRootNode();return!(r instanceof ShadowRoot?r.host:t).hasAttribute("tabindex")||function(e){const t=e.map.getTargetElement(),r=t.getRootNode(),n=e.map.getOwnerDocument().activeElement;return r instanceof ShadowRoot?r.host.contains(n):t.contains(n)}(e)},_e=l.rT,be=function(e){const t=e.originalEvent;return 0==t.button&&!(z.j&&z.ew&&t.ctrlKey)},we=function(e){const t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},Ee=function(e){const t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},xe=function(e){const t=e.originalEvent,r=t.target.tagName;return"INPUT"!==r&&"SELECT"!==r&&"TEXTAREA"!==r&&!t.target.isContentEditable},Se=function(e){const t=e.originalEvent;return(0,O.v)(void 0!==t,"mapBrowserEvent must originate from a pointer event"),"mouse"==t.pointerType},Ae=function(e){const t=e.originalEvent;return(0,O.v)(void 0!==t,"mapBrowserEvent must originate from a pointer event"),t.isPrimary&&0===t.button},Te=class extends me{constructor(e){super({stopDown:l.W8}),e=e||{},this.kinetic_=e.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const t=e.condition?e.condition:ge(we,Ae);this.condition_=e.onFocusOnly?ge(ve,t):t,this.noKinetic_=!1}handleDragEvent(e){const t=e.map;this.panning_||(this.panning_=!0,t.getView().beginInteraction());const r=this.targetPointers,n=t.getEventPixel(pe(r));if(r.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){const t=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],r=e.map.getView();(0,p.hs)(t,r.getResolution()),(0,p.e$)(t,r.getRotation()),r.adjustCenterInternal(t)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=r.length,e.originalEvent.preventDefault()}handleUpEvent(e){const t=e.map,r=t.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const e=this.kinetic_.getDistance(),n=this.kinetic_.getAngle(),i=r.getCenterInternal(),o=t.getPixelFromCoordinateInternal(i),s=t.getCoordinateFromPixelInternal([o[0]-e*Math.cos(n),o[1]-e*Math.sin(n)]);r.animateInternal({center:r.getConstrainedCenter(s),duration:500,easing:ae.vT})}return this.panning_&&(this.panning_=!1,r.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(e){if(this.targetPointers.length>0&&this.condition_(e)){const 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}};var Pe=r(26392);const Ce=class extends me{constructor(e){e=e||{},super({stopDown:l.W8}),this.condition_=e.condition?e.condition:ye,this.lastAngle_=void 0,this.duration_=void 0!==e.duration?e.duration:250}handleDragEvent(e){if(!Se(e))return;const t=e.map,r=t.getView();if(r.getConstraints().rotation===Pe.b8)return;const n=t.getSize(),i=e.pixel,o=Math.atan2(n[1]/2-i[1],i[0]-n[0]/2);if(void 0!==this.lastAngle_){const e=o-this.lastAngle_;r.adjustRotationInternal(-e)}this.lastAngle_=o}handleUpEvent(e){return!Se(e)||(e.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(e){return!!Se(e)&&(!(!be(e)||!this.condition_(e))&&(e.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))}};var Oe=r(68609);class Re extends a.A{constructor(e){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const e=this.startPixel_,t=this.endPixel_,r="px",n=this.element_.style;n.left=Math.min(e[0],t[0])+r,n.top=Math.min(e[1],t[1])+r,n.width=Math.abs(t[0]-e[0])+r,n.height=Math.abs(t[1]-e[1])+r}setMap(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const e=this.startPixel_,t=this.endPixel_,r=[e,[e[0],t[1]],t,[t[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);r[4]=r[0].slice(),this.geometry_?this.geometry_.setCoordinates([r]):this.geometry_=new Oe.Ay([r])}getGeometry(){return this.geometry_}}const De=Re,Ie="boxcancel";class ke extends C.Ay{constructor(e,t,r){super(e),this.coordinate=t,this.mapBrowserEvent=r}}const Fe=class extends me{constructor(e){super(),this.on,this.once,this.un,e=e??{},this.box_=new De(e.className||"ol-dragbox"),this.minArea_=e.minArea??64,e.onBoxEnd&&(this.onBoxEnd=e.onBoxEnd),this.startPixel_=null,this.condition_=e.condition??be,this.boxEndCondition_=e.boxEndCondition??this.defaultBoxEndCondition}defaultBoxEndCondition(e,t,r){const n=r[0]-t[0],i=r[1]-t[1];return n*n+i*i>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(e){this.startPixel_&&(this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new ke("boxdrag",e.coordinate,e)))}handleUpEvent(e){if(!this.startPixel_)return!1;const t=this.boxEndCondition_(e,this.startPixel_,e.pixel);return t&&this.onBoxEnd(e),this.dispatchEvent(new ke(t?"boxend":Ie,e.coordinate,e)),this.box_.setMap(null),this.startPixel_=null,!1}handleDownEvent(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new ke("boxstart",e.coordinate,e)),!0)}onBoxEnd(e){}setActive(e){e||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new ke(Ie,this.startPixel_,null)),this.startPixel_=null)),super.setActive(e)}setMap(e){this.getMap()&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new ke(Ie,this.startPixel_,null)),this.startPixel_=null)),super.setMap(e)}},je=class extends Fe{constructor(e){super({condition:(e=e||{}).condition?e.condition:Ee,className:e.className||"ol-dragzoom",minArea:e.minArea}),this.duration_=void 0!==e.duration?e.duration:200,this.out_=void 0!==e.out&&e.out}onBoxEnd(e){const t=this.getMap().getView();let r=this.getGeometry();if(this.out_){const e=t.rotatedExtentForGeometry(r),n=t.getResolutionForExtentInternal(e),i=t.getResolution()/n;r=r.clone(),r.scale(i*i)}t.fitInternal(r,{duration:this.duration_,easing:ae.vT})}},Le="ArrowLeft",Me="ArrowRight",Ne="ArrowDown";class $e extends ue.Ay{constructor(e){super(),e=e||{},this.defaultCondition_=function(e){return we(e)&&xe(e)},this.condition_=void 0!==e.condition?e.condition:this.defaultCondition_,this.duration_=void 0!==e.duration?e.duration:100,this.pixelDelta_=void 0!==e.pixelDelta?e.pixelDelta:128}handleEvent(e){let t=!1;if(e.type==T.A.KEYDOWN){const r=e.originalEvent,n=r.key;if(this.condition_(e)&&(n==Ne||n==Le||n==Me||"ArrowUp"==n)){const i=e.map.getView(),o=i.getResolution()*this.pixelDelta_;let s=0,a=0;n==Ne?a=-o:n==Le?s=-o:n==Me?s=o:a=o;const l=[s,a];(0,p.e$)(l,i.getRotation()),(0,ue.e4)(i,l,this.duration_),r.preventDefault(),t=!0}}return!t}}const Ge=$e;class ze extends ue.Ay{constructor(e){super(),e=e||{},this.condition_=e.condition?e.condition:function(e){return!function(e){const t=e.originalEvent;return z.ew?t.metaKey:t.ctrlKey}(e)&&xe(e)},this.delta_=e.delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:100}handleEvent(e){let t=!1;if(e.type==T.A.KEYDOWN||e.type==T.A.KEYPRESS){const r=e.originalEvent,n=r.key;if(this.condition_(e)&&("+"===n||"-"===n)){const i=e.map,o="+"===n?this.delta_:-this.delta_,s=i.getView();(0,ue.D2)(s,o,void 0,this.duration_),r.preventDefault(),t=!0}}return!t}}const Ue=ze,Be=class{constructor(e,t,r){this.decay_=e,this.minVelocity_=t,this.delay_=r,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(e,t){this.points_.push(e,t,Date.now())}end(){if(this.points_.length<6)return!1;const e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]<e)return!1;let r=t-3;for(;r>0&&this.points_[r+2]>e;)r-=3;const n=this.points_[t+2]-this.points_[r+2];if(n<1e3/60)return!1;const i=this.points_[t]-this.points_[r],o=this.points_[t+1]-this.points_[r+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/n,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}};var Ve=r(72475);class Ke extends ue.Ay{constructor(e){super(e=e||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==e.maxDelta?e.maxDelta:1,this.duration_=void 0!==e.duration?e.duration:250,this.timeout_=void 0!==e.timeout?e.timeout:80,this.useAnchor_=void 0===e.useAnchor||e.useAnchor,this.constrainResolution_=void 0!==e.constrainResolution&&e.constrainResolution;const t=e.condition?e.condition:_e;this.condition_=e.onFocusOnly?ge(ve,t):t,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const e=this.getMap();e&&e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(e){if(!this.condition_(e))return!0;if(e.type!==T.A.WHEEL)return!0;const t=e.map,r=e.originalEvent;let n;if(r.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate),e.type==T.A.WHEEL&&(n=r.deltaY,z._p&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=z.cr),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)),0===n)return!1;this.lastDelta_=n;const i=Date.now();void 0===this.startTime_&&(this.startTime_=i),(!this.mode_||i-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?"trackpad":"wheel");const o=t.getView();if("trackpad"===this.mode_&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-n/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=i,!1;this.totalDelta_+=n;const s=Math.max(this.timeout_-(i-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,t),s),!1}handleWheelZoom_(e){const t=e.getView();t.getAnimating()&&t.cancelAnimations();let r=-(0,Ve.qE)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(t.getConstrainResolution()||this.constrainResolution_)&&(r=r?r>0?1:-1:0),(0,ue.D2)(t,r,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(e){this.useAnchor_=e,e||(this.lastAnchor_=null)}}const qe=Ke,We=class extends me{constructor(e){const t=e=e||{};t.stopDown||(t.stopDown=l.W8),super(t),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==e.threshold?e.threshold:.3,this.duration_=void 0!==e.duration?e.duration:250}handleDragEvent(e){let t=0;const r=this.targetPointers[0],n=this.targetPointers[1],i=Math.atan2(n.clientY-r.clientY,n.clientX-r.clientX);if(void 0!==this.lastAngle_){const e=i-this.lastAngle_;this.rotationDelta_+=e,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),t=e}this.lastAngle_=i;const o=e.map,s=o.getView();s.getConstraints().rotation!==Pe.b8&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel(pe(this.targetPointers))),this.rotating_&&(o.render(),s.adjustRotationInternal(t,this.anchor_)))}handleUpEvent(e){return!(this.targetPointers.length<2)||(e.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(e){if(this.targetPointers.length>=2){const 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}},He=class extends me{constructor(e){const t=e=e||{};t.stopDown||(t.stopDown=l.W8),super(t),this.anchor_=null,this.duration_=void 0!==e.duration?e.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(e){let t=1;const r=this.targetPointers[0],n=this.targetPointers[1],i=r.clientX-n.clientX,o=r.clientY-n.clientY,s=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(t=this.lastDistance_/s),this.lastDistance_=s;const a=e.map,l=a.getView();1!=t&&(this.lastScaleDelta_=t),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(pe(this.targetPointers))),a.render(),l.adjustResolutionInternal(t,this.anchor_)}handleUpEvent(e){if(this.targetPointers.length<2){const t=e.map.getView(),r=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,r),!1}return!0}handleDownEvent(e){if(this.targetPointers.length>=2){const t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1}};var Ye=r(12940),Xe=r(53908),Ze=r(96372);function Je(e){e instanceof f.A?e.setMapInternal(null):e instanceof F&&e.getLayers().forEach(Je)}function Qe(e,t){if(e instanceof f.A)e.setMapInternal(t);else if(e instanceof F){const r=e.getLayers().getArray();for(let e=0,n=r.length;e<n;++e)Qe(r[e],t)}}class et extends n.A{constructor(e){super(),e=e||{},this.on,this.once,this.un;const t=function(e){let t=null;void 0!==e.keyboardEventTarget&&(t="string"==typeof e.keyboardEventTarget?document.getElementById(e.keyboardEventTarget):e.keyboardEventTarget);const r={},n=e.layers&&"function"==typeof e.layers.getLayers?e.layers:new F({layers:e.layers});let o,s,a;return r[W]=n,r[Y]=e.target,r[X]=e.view instanceof te.Ay?e.view:new te.Ay,void 0!==e.controls&&(Array.isArray(e.controls)?o=new i.A(e.controls.slice()):((0,O.v)("function"==typeof e.controls.getArray,"Expected `controls` to be an array or an `ol/Collection.js`"),o=e.controls)),void 0!==e.interactions&&(Array.isArray(e.interactions)?s=new i.A(e.interactions.slice()):((0,O.v)("function"==typeof e.interactions.getArray,"Expected `interactions` to be an array or an `ol/Collection.js`"),s=e.interactions)),void 0!==e.overlays?Array.isArray(e.overlays)?a=new i.A(e.overlays.slice()):((0,O.v)("function"==typeof e.overlays.getArray,"Expected `overlays` to be an array or an `ol/Collection.js`"),a=e.overlays):a=new i.A,{controls:o,interactions:s,keyboardEventTarget:t,overlays:a,values:r}}(e);this.renderComplete_=!1,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,this.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:z.cr,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=(0,u.vt)(),this.pixelToCoordinateTransform_=(0,u.vt)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=null,this.moveTolerance_=e.moveTolerance,this.keyboardEventTarget_=t.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,this.resizeObserver_=new ResizeObserver((()=>this.updateSize())),this.controls=t.controls||function(e){e=e||{};const t=new i.A;return(void 0===e.zoom||e.zoom)&&t.push(new ce(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&t.push(new le(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&t.push(new se(e.attributionOptions)),t}(),this.interactions=t.interactions||function(e){e=e||{};const t=new i.A,r=new Be(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&t.push(new Ce),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&t.push(new de({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&t.push(new Te({onFocusOnly:e.onFocusOnly,kinetic:r})),(void 0===e.pinchRotate||e.pinchRotate)&&t.push(new We),(void 0===e.pinchZoom||e.pinchZoom)&&t.push(new He({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(t.push(new Ge),t.push(new Ue({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&t.push(new qe({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&t.push(new je({duration:e.zoomDuration})),t}({onFocusOnly:!0}),this.overlays_=t.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new ee(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(W,this.handleLayerGroupChanged_),this.addChangeListener(X,this.handleViewChanged_),this.addChangeListener(H,this.handleSizeChanged_),this.addChangeListener(Y,this.handleTargetChanged_),this.setProperties(t.values);const r=this;!e.view||e.view instanceof te.Ay||e.view.then((function(e){r.setView(new te.Ay(e))})),this.controls.addEventListener(o.A.ADD,(e=>{e.element.setMap(this)})),this.controls.addEventListener(o.A.REMOVE,(e=>{e.element.setMap(null)})),this.interactions.addEventListener(o.A.ADD,(e=>{e.element.setMap(this)})),this.interactions.addEventListener(o.A.REMOVE,(e=>{e.element.setMap(null)})),this.overlays_.addEventListener(o.A.ADD,(e=>{this.addOverlayInternal_(e.element)})),this.overlays_.addEventListener(o.A.REMOVE,(e=>{const t=e.element.getId();void 0!==t&&delete this.overlayIdIndex_[t.toString()],e.element.setMap(null)})),this.controls.forEach((e=>{e.setMap(this)})),this.interactions.forEach((e=>{e.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(e){this.getControls().push(e)}addInteraction(e){this.getInteractions().push(e)}addLayer(e){this.getLayerGroup().getLayers().push(e)}handleLayerAdd_(e){Qe(e.layer,this)}addOverlay(e){this.getOverlays().push(e)}addOverlayInternal_(e){const t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(e,t,r){if(!this.frameState_||!this.renderer_)return;const n=this.getCoordinateFromPixelInternal(e),i=void 0!==(r=void 0!==r?r:{}).hitTolerance?r.hitTolerance:0,o=void 0!==r.layerFilter?r.layerFilter:l.rT,s=!1!==r.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,i,s,t,null,o,null)}getFeaturesAtPixel(e,t){const r=[];return this.forEachFeatureAtPixel(e,(function(e){r.push(e)}),t),r}getAllLayers(){const e=[];return function t(r){r.forEach((function(r){r instanceof F?t(r.getLayers()):e.push(r)}))}(this.getLayers()),e}hasFeatureAtPixel(e,t){if(!this.frameState_||!this.renderer_)return!1;const r=this.getCoordinateFromPixelInternal(e),n=void 0!==(t=void 0!==t?t:{}).layerFilter?t.layerFilter:l.rT,i=void 0!==t.hitTolerance?t.hitTolerance:0,o=!1!==t.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(r,this.frameState_,i,o,n,null)}getEventCoordinate(e){return this.getCoordinateFromPixel(this.getEventPixel(e))}getEventCoordinateInternal(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))}getEventPixel(e){const t=this.viewport_.getBoundingClientRect(),r=this.getSize(),n=t.width/r[0],i=t.height/r[1],o="changedTouches"in e?e.changedTouches[0]:e;return[(o.clientX-t.left)/n,(o.clientY-t.top)/i]}getTarget(){return this.get(Y)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(e){return(0,Ye.te)(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())}getCoordinateFromPixelInternal(e){const t=this.frameState_;return t?(0,u.Bb)(t.pixelToCoordinateTransform,e.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(e){const t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(W)}setLayers(e){const t=this.getLayerGroup();if(e instanceof i.A)return void t.setLayers(e);const r=t.getLayers();r.clear(),r.extend(e)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const e=this.getLayerGroup().getLayerStatesArray();for(let t=0,r=e.length;t<r;++t){const r=e[t];if(!r.visible)continue;const n=r.layer.getRenderer();if(n&&!n.ready)return!0;const i=r.layer.getSource();if(i&&i.loading)return!0}return!1}getPixelFromCoordinate(e){const t=(0,Ye.Ad)(e,this.getView().getProjection());return this.getPixelFromCoordinateInternal(t)}getPixelFromCoordinateInternal(e){const t=this.frameState_;return t?(0,u.Bb)(t.coordinateToPixelTransform,e.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(H)}getView(){return this.get(X)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const e=this.getTargetElement();return e?e.ownerDocument:document}getTilePriority(e,t,r,n){return function(e,t,r,n,i){if(!e||!(r in e.wantedTiles))return Z;if(!e.wantedTiles[r][t.getKey()])return Z;const o=e.viewState.center,s=n[0]-o[0],a=n[1]-o[1];return 65536*Math.log(i)+Math.sqrt(s*s+a*a)/i}(this.frameState_,e,t,r,n)}handleBrowserEvent(e,t){t=t||e.type;const r=new M(t,this,e);this.handleMapBrowserEvent(r)}handleMapBrowserEvent(e){if(!this.frameState_)return;const t=e.originalEvent,r=t.type;if(r===$||r===T.A.WHEEL||r===T.A.KEYDOWN){const e=this.getOwnerDocument(),r=this.viewport_.getRootNode?this.viewport_.getRootNode():e,n=t.target,i=r instanceof ShadowRoot?r.host===n?r.host.ownerDocument:r:r===e?e.documentElement:r;if(this.overlayContainerStopEvent_.contains(n)||!i.contains(n))return}if(e.frameState=this.frameState_,!1!==this.dispatchEvent(e)){const t=this.getInteractions().getArray().slice();for(let r=t.length-1;r>=0;r--){const n=t[r];if(n.getMap()===this&&n.getActive()&&this.getTargetElement()&&(!n.handleEvent(e)||e.propagationStopped))break}}}handlePostRender(){const e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){let r=this.maxTilesLoading_,n=r;if(e){const t=e.viewHints;if(t[re.A.ANIMATING]||t[re.A.INTERACTING]){const t=Date.now()-e.time>8;r=t?0:8,n=t?0:2}}t.getTilesLoading()<r&&(t.reprioritize(),t.loadMoreTiles(r,n))}e&&this.renderer_&&!e.animate&&(this.renderComplete_?(this.hasListener(b.A.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(b.A.RENDERCOMPLETE,e),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new L(q,this,e)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new L(K,this,e))));const r=this.postRenderFunctions_;for(let t=0,n=r.length;t<n;++t)r[t](this,e);r.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let e=0,t=this.targetChangeHandlerKeys_.length;e<t;++e)(0,x.JH)(this.targetChangeHandlerKeys_[e]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(T.A.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(T.A.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,this.viewport_.remove()}if(this.targetElement_){this.resizeObserver_.unobserve(this.targetElement_);const e=this.targetElement_.getRootNode();e instanceof ShadowRoot&&this.resizeObserver_.unobserve(e.host),this.setSize(void 0)}const e=this.getTarget(),t="string"==typeof e?document.getElementById(e):e;if(this.targetElement_=t,t){t.appendChild(this.viewport_),this.renderer_||(this.renderer_=new A(this)),this.mapBrowserEventHandler_=new B(this,this.moveTolerance_);for(const e in N)this.mapBrowserEventHandler_.addEventListener(N[e],this.handleMapBrowserEvent.bind(this));let e;if(this.viewport_.addEventListener(T.A.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(T.A.WHEEL,this.boundHandleBrowserEvent_,!!z.FT&&{passive:!1}),this.keyboardEventTarget_)e=this.keyboardEventTarget_;else{const r=t.getRootNode();e=r instanceof ShadowRoot?r.host:t}this.targetChangeHandlerKeys_=[(0,x.KT)(e,T.A.KEYDOWN,this.handleBrowserEvent,this),(0,x.KT)(e,T.A.KEYPRESS,this.handleBrowserEvent,this)];const r=t.getRootNode();r instanceof ShadowRoot&&this.resizeObserver_.observe(r.host),this.resizeObserver_.observe(t)}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()}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&((0,x.JH)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,x.JH)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const e=this.getView();e&&(this.updateViewportSize_(this.getSize()),this.viewPropertyListenerKey_=(0,x.KT)(e,v.A.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,x.KT)(e,T.A.CHANGE,this.handleViewPropertyChanged_,this),e.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(x.JH),this.layerGroupPropertyListenerKeys_=null);const e=this.getLayerGroup();e&&(this.handleLayerAdd_(new D("addlayer",e)),this.layerGroupPropertyListenerKeys_=[(0,x.KT)(e,v.A.PROPERTYCHANGE,this.render,this),(0,x.KT)(e,T.A.CHANGE,this.render,this),(0,x.KT)(e,"addlayer",this.handleLayerAdd_,this),(0,x.KT)(e,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){const e=this.getLayerGroup().getLayerStatesArray();for(let t=0,r=e.length;t<r;++t){const r=e[t].layer;r.hasRenderer()&&r.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(e){return this.getControls().remove(e)}removeInteraction(e){return this.getInteractions().remove(e)}removeLayer(e){return this.getLayerGroup().getLayers().remove(e)}handleLayerRemove_(e){Je(e.layer)}removeOverlay(e){return this.getOverlays().remove(e)}renderFrame_(e){const t=this.getSize(),r=this.getView(),n=this.frameState_;let i=null;if(void 0!==t&&(0,Xe.Ie)(t)&&r&&r.isDef()){const n=r.getHints(this.frameState_?this.frameState_.viewHints:void 0),o=r.getState();if(i={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutter:null,extent:(0,h.Bg)(o.center,o.resolution,o.rotation,t),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:t,tileQueue:this.tileQueue_,time:e,usedTiles:{},viewState:o,viewHints:n,wantedTiles:{},mapId:(0,c.v6)(this),renderTargets:{}},o.nextCenter&&o.nextResolution){const e=isNaN(o.nextRotation)?o.rotation:o.nextRotation;i.nextExtent=(0,h.Bg)(o.nextCenter,o.nextResolution,e,t)}}this.frameState_=i,this.renderer_.renderFrame(i),i&&(i.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,i.postRenderFunctions),n&&(!this.previousExtent_||!(0,h.Im)(this.previousExtent_)&&!(0,h.aI)(i.extent,this.previousExtent_))&&(this.dispatchEvent(new L("movestart",this,n)),this.previousExtent_=(0,h.aZ)(this.previousExtent_)),this.previousExtent_&&!i.viewHints[re.A.ANIMATING]&&!i.viewHints[re.A.INTERACTING]&&!(0,h.aI)(i.extent,this.previousExtent_)&&(this.dispatchEvent(new L("moveend",this,i)),(0,h.o8)(i.extent,this.previousExtent_))),this.dispatchEvent(new L(V,this,i)),this.renderComplete_=(this.hasListener(K)||this.hasListener(q)||this.hasListener(b.A.RENDERCOMPLETE))&&!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady(),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(e){const t=this.getLayerGroup();t&&this.handleLayerRemove_(new D("removelayer",t)),this.set(W,e)}setSize(e){this.set(H,e)}setTarget(e){this.set(Y,e)}setView(e){if(!e||e instanceof te.Ay)return void this.set(X,e);this.set(X,new te.Ay);const t=this;e.then((function(e){t.setView(new te.Ay(e))}))}updateSize(){const e=this.getTargetElement();let t;if(e){const r=getComputedStyle(e),n=e.offsetWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.paddingLeft)-parseFloat(r.paddingRight)-parseFloat(r.borderRightWidth),i=e.offsetHeight-parseFloat(r.borderTopWidth)-parseFloat(r.paddingTop)-parseFloat(r.paddingBottom)-parseFloat(r.borderBottomWidth);isNaN(n)||isNaN(i)||(t=[Math.max(0,n),Math.max(0,i)],!(0,Xe.Ie)(t)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&(0,Ze.R8)("No map visible because the map container's width or height are 0."))}const r=this.getSize();!t||r&&(0,oe.aI)(t,r)||(this.setSize(t),this.updateViewportSize_(t))}updateViewportSize_(e){const t=this.getView();t&&t.setViewportSize(e)}}const tt=et},72614:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(37283),i=r(56644),o=r(80548),s=r(98629),a=r(82048);class l extends n.Ay{constructor(e,t,r){super(e),this.key=t,this.oldValue=r}}class c extends o.A{constructor(e){super(),this.on,this.once,this.un,(0,s.v6)(this),this.values_=null,void 0!==e&&this.setProperties(e)}get(e){let t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(e,t){let r;r=`change:${e}`,this.hasListener(r)&&this.dispatchEvent(new l(r,e,t)),r=i.A.PROPERTYCHANGE,this.hasListener(r)&&this.dispatchEvent(new l(r,e,t))}addChangeListener(e,t){this.addEventListener(`change:${e}`,t)}removeChangeListener(e,t){this.removeEventListener(`change:${e}`,t)}set(e,t,r){const n=this.values_||(this.values_={});if(r)n[e]=t;else{const r=n[e];n[e]=t,r!==t&&this.notify(e,r)}}setProperties(e,t){for(const r in e)this.set(r,e[r],t)}applyProperties(e){e.values_&&Object.assign(this.values_||(this.values_={}),e.values_)}unset(e,t){if(this.values_&&e in this.values_){const r=this.values_[e];delete this.values_[e],(0,a.p)(this.values_)&&(this.values_=null),t||this.notify(e,r)}}}const u=c},56644:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={PROPERTYCHANGE:"propertychange"}},80548:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(91086),i=r(24187),o=r(94456);class s extends n.A{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(i.A.CHANGE)}getRevision(){return this.revision_}onInternal(e,t){if(Array.isArray(e)){const r=e.length,n=new Array(r);for(let i=0;i<r;++i)n[i]=(0,o.KT)(this,e[i],t);return n}return(0,o.KT)(this,e,t)}onceInternal(e,t){let r;if(Array.isArray(e)){const n=e.length;r=new Array(n);for(let i=0;i<n;++i)r[i]=(0,o.Jz)(this,e[i],t)}else r=(0,o.Jz)(this,e,t);return t.ol_key=r,r}unInternal(e,t){const r=t.ol_key;if(r)!function(e){if(Array.isArray(e))for(let t=0,r=e.length;t<r;++t)(0,o.JH)(e[t]);else(0,o.JH)(e)}(r);else if(Array.isArray(e))for(let r=0,n=e.length;r<n;++r)this.removeEventListener(e[r],t);else this.removeEventListener(e,t)}}s.prototype.on,s.prototype.once,s.prototype.un;const a=s},76741:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(91086),i=r(24187),o=r(20884),s=r(98629),a=r(2620);class l extends n.A{constructor(e,t,r){super(),r=r||{},this.tileCoord=e,this.state=t,this.key="",this.transition_=void 0===r.transition?250:r.transition,this.transitionStarts_={},this.interpolate=!!r.interpolate}changed(){this.dispatchEvent(i.A.CHANGE)}release(){this.state===o.A.ERROR&&this.setState(o.A.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(e){if(this.state!==o.A.ERROR&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()}load(){(0,s.b0)()}getAlpha(e,t){if(!this.transition_)return 1;let r=this.transitionStarts_[e];if(r){if(-1===r)return 1}else r=t,this.transitionStarts_[e]=r;const n=t-r+1e3/60;return n>=this.transition_?1:(0,a.a6)(n/this.transition_)}inTransition(e){return!!this.transition_&&-1!==this.transitionStarts_[e]}endTransition(e){this.transition_&&(this.transitionStarts_[e]=-1)}}const c=l},35999:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(98063),i=r(80996);class o extends n.A{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(e){for(;this.canExpireCache()&&!(this.peekLast().getKey()in e);)this.pop().release()}pruneExceptNewestZ(){if(0===this.getCount())return;const e=this.peekFirstKey(),t=(0,i.K)(e)[0];this.forEach((e=>{e.tileCoord[0]!==t&&(this.remove((0,i.i7)(e.tileCoord)),e.release())}))}}const s=o},64444:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,N:()=>i});class n{constructor(e,t,r,n){this.minX=e,this.maxX=t,this.minY=r,this.maxY=n}contains(e){return this.containsXY(e[1],e[2])}containsTileRange(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY}containsXY(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY}equals(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY}extend(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)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY}}function i(e,t,r,i,o){return void 0!==o?(o.minX=e,o.maxX=t,o.minY=r,o.maxY=i,o):new n(e,t,r,i)}const o=n},20884:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},95854:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>T});var n=r(72614),i=r(32769);const o={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var s=r(75961),a=r(12940),l=r(97440),c=r(9535),u=r(30878),h=r(72475);function d(e,t,r){return function(n,i,o,s,a){if(!n)return;if(!i&&!t)return n;const l=t?0:o[0]*i,c=t?0:o[1]*i,u=a?a[0]:0,d=a?a[1]:0;let f=e[0]+l/2+u,p=e[2]-l/2+u,m=e[1]+c/2+d,g=e[3]-c/2+d;f>p&&(f=(p+f)/2,p=f),m>g&&(m=(g+m)/2,g=m);let y=(0,h.qE)(n[0],f,p),v=(0,h.qE)(n[1],m,g);if(s&&r&&i){const e=30*i;y+=-e*Math.log(1+Math.max(0,f-n[0])/e)+e*Math.log(1+Math.max(0,n[0]-p)/e),v+=-e*Math.log(1+Math.max(0,m-n[1])/e)+e*Math.log(1+Math.max(0,n[1]-g)/e)}return[y,v]}}function f(e){return e}var p=r(44509),m=r(30444);function g(e,t,r,n){const i=(0,p.RG)(t)/r[0],o=(0,p.Oq)(t)/r[1];return n?Math.min(e,Math.max(i,o)):Math.min(e,Math.min(i,o))}function y(e,t,r){let n=Math.min(e,t);return n*=Math.log(1+50*Math.max(0,e/t-1))/50+1,r&&(n=Math.max(n,r),n/=Math.log(1+50*Math.max(0,r/e-1))/50+1),(0,h.qE)(n,r/2,2*t)}function v(e,t,r,n,i){return r=void 0===r||r,function(o,s,a,l){if(void 0!==o){const s=n?g(e,n,a,i):e;return r&&l?y(o,s,t):(0,h.qE)(o,t,s)}}}var _=r(26392),b=r(2620),w=r(68609);class E extends n.A{constructor(e){super(),this.on,this.once,this.un,e=Object.assign({},e),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,a.Av)(e.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,e.projection&&(0,a.RJ)(),e.center&&(e.center=(0,a.Ad)(e.center,this.projection_)),e.extent&&(e.extent=(0,a.SD)(e.extent,this.projection_)),this.applyOptions_(e)}applyOptions_(e){const t=Object.assign({},e);for(const e in o)delete t[e];this.setProperties(t,!0);const r=function(e){let t,r,n;let i=void 0!==e.minZoom?e.minZoom:0,o=void 0!==e.maxZoom?e.maxZoom:28;const l=void 0!==e.zoomFactor?e.zoomFactor:2,c=void 0!==e.multiWorld&&e.multiWorld,u=void 0===e.smoothResolutionConstraint||e.smoothResolutionConstraint,d=void 0!==e.showFullExtent&&e.showFullExtent,f=(0,a.Av)(e.projection,"EPSG:3857"),_=f.getExtent();let b=e.constrainOnlyCenter,w=e.extent;if(c||w||!f.isGlobal()||(b=!1,w=_),void 0!==e.resolutions){const s=e.resolutions;r=s[i],n=void 0!==s[o]?s[o]:s[s.length-1],t=e.constrainResolution?function(e,t,r,n){return t=void 0===t||t,function(i,o,s,a){if(void 0!==i){const l=e[0],c=e[e.length-1],u=r?g(l,r,s,n):l;if(a)return t?y(i,u,c):(0,h.qE)(i,c,u);const d=Math.min(u,i),f=Math.floor((0,m.FT)(e,d,o));return e[f]>u&&f<e.length-1?e[f+1]:e[f]}}}(s,u,!b&&w,d):v(r,n,u,!b&&w,d)}else{const c=(_?Math.max((0,p.RG)(_),(0,p.Oq)(_)):360*a.Ig.degrees/f.getMetersPerUnit())/s.R/Math.pow(2,0),m=c/Math.pow(2,28);r=e.maxResolution,void 0!==r?i=0:r=c/Math.pow(l,i),n=e.minResolution,void 0===n&&(n=void 0!==e.maxZoom?void 0!==e.maxResolution?r/Math.pow(l,o):c/Math.pow(l,o):m),o=i+Math.floor(Math.log(r/n)/Math.log(l)),n=r/Math.pow(l,o-i),t=e.constrainResolution?function(e,t,r,n,i,o){return n=void 0===n||n,r=void 0!==r?r:0,function(s,a,l,c){if(void 0!==s){const u=i?g(t,i,l,o):t;if(c)return n?y(s,u,r):(0,h.qE)(s,r,u);const d=1e-9,f=Math.ceil(Math.log(t/u)/Math.log(e)-d),p=-a*(.5-d)+.5,m=Math.min(u,s),v=Math.floor(Math.log(t/m)/Math.log(e)+p),_=Math.max(f,v),b=t/Math.pow(e,_);return(0,h.qE)(b,r,u)}}}(l,r,n,u,!b&&w,d):v(r,n,u,!b&&w,d)}return{constraint:t,maxResolution:r,minResolution:n,minZoom:i,zoomFactor:l}}(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;const n=function(e){if(void 0!==e.extent){const t=void 0===e.smoothExtentConstraint||e.smoothExtentConstraint;return d(e.extent,e.constrainOnlyCenter,t)}const t=(0,a.Av)(e.projection,"EPSG:3857");if(!0!==e.multiWorld&&t.isGlobal()){const e=t.getExtent().slice();return e[0]=-1/0,e[2]=1/0,d(e,!1,!1)}return f}(e),i=r.constraint,l=function(e){if(void 0===e.enableRotation||e.enableRotation){const t=e.constrainRotation;return void 0===t||!0===t?(0,_.cq)():!1===t?_.dv:"number"==typeof t?(0,_.a$)(t):_.dv}return _.b8}(e);this.constraints_={center:n,resolution:i,rotation:l},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)}get padding(){return this.padding_}set padding(e){let t=this.padding_;this.padding_=e;const r=this.getCenterInternal();if(r){const n=e||[0,0,0,0];t=t||[0,0,0,0];const i=this.getResolution(),o=i/2*(n[3]-t[3]+t[1]-n[1]),s=i/2*(n[0]-t[0]+t[2]-n[2]);this.setCenterInternal([r[0]+o,r[1]-s])}}getUpdatedOptions_(e){const 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.assign({},t,e)}animate(e){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const t=new Array(arguments.length);for(let e=0;e<t.length;++e){let r=arguments[e];r.center&&(r=Object.assign({},r),r.center=(0,a.Ad)(r.center,this.getProjection())),r.anchor&&(r=Object.assign({},r),r.anchor=(0,a.Ad)(r.anchor,this.getProjection())),t[e]=r}this.animateInternal.apply(this,t)}animateInternal(e){let t,r=arguments.length;r>1&&"function"==typeof arguments[r-1]&&(t=arguments[r-1],--r);let n=0;for(;n<r&&!this.isDef();++n){const e=arguments[n];e.center&&this.setCenterInternal(e.center),void 0!==e.zoom?this.setZoom(e.zoom):e.resolution&&this.setResolution(e.resolution),void 0!==e.rotation&&this.setRotation(e.rotation)}if(n===r)return void(t&&x(t,!0));let o=Date.now(),s=this.targetCenter_.slice(),a=this.targetResolution_,l=this.targetRotation_;const c=[];for(;n<r;++n){const e=arguments[n],r={start:o,complete:!1,anchor:e.anchor,duration:void 0!==e.duration?e.duration:1e3,easing:e.easing||b.T9,callback:t};if(e.center&&(r.sourceCenter=s,r.targetCenter=e.center.slice(),s=r.targetCenter),void 0!==e.zoom?(r.sourceResolution=a,r.targetResolution=this.getResolutionForZoom(e.zoom),a=r.targetResolution):e.resolution&&(r.sourceResolution=a,r.targetResolution=e.resolution,a=r.targetResolution),void 0!==e.rotation){r.sourceRotation=l;const t=(0,h.xP)(e.rotation-l+Math.PI,2*Math.PI)-Math.PI;r.targetRotation=l+t,l=r.targetRotation}S(r)?r.complete=!0:o+=r.duration,c.push(r)}this.animations_.push(c),this.setHint(i.A.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[i.A.ANIMATING]>0}getInteracting(){return this.hints_[i.A.INTERACTING]>0}cancelAnimations(){let e;this.setHint(i.A.ANIMATING,-this.hints_[i.A.ANIMATING]);for(let t=0,r=this.animations_.length;t<r;++t){const r=this.animations_[t];if(r[0].callback&&x(r[0].callback,!1),!e)for(let t=0,n=r.length;t<n;++t){const n=r[t];if(!n.complete){e=n.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=e,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const e=Date.now();let t=!1;for(let r=this.animations_.length-1;r>=0;--r){const n=this.animations_[r];let o=!0;for(let r=0,i=n.length;r<i;++r){const i=n[r];if(i.complete)continue;const s=e-i.start;let a=i.duration>0?s/i.duration:1;a>=1?(i.complete=!0,a=1):o=!1;const l=i.easing(a);if(i.sourceCenter){const e=i.sourceCenter[0],t=i.sourceCenter[1],r=i.targetCenter[0],n=i.targetCenter[1];this.nextCenter_=i.targetCenter;const o=e+l*(r-e),s=t+l*(n-t);this.targetCenter_=[o,s]}if(i.sourceResolution&&i.targetResolution){const e=1===l?i.targetResolution:i.sourceResolution+l*(i.targetResolution-i.sourceResolution);if(i.anchor){const t=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(e,0,t,!0);this.targetCenter_=this.calculateCenterZoom(r,i.anchor)}this.nextResolution_=i.targetResolution,this.targetResolution_=e,this.applyTargetState_(!0)}if(void 0!==i.sourceRotation&&void 0!==i.targetRotation){const e=1===l?(0,h.xP)(i.targetRotation+Math.PI,2*Math.PI)-Math.PI:i.sourceRotation+l*(i.targetRotation-i.sourceRotation);if(i.anchor){const t=this.constraints_.rotation(e,!0);this.targetCenter_=this.calculateCenterRotate(t,i.anchor)}this.nextRotation_=i.targetRotation,this.targetRotation_=e}if(this.applyTargetState_(!0),t=!0,!i.complete)break}if(o){this.animations_[r]=null,this.setHint(i.A.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const e=n[0].callback;e&&x(e,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(e,t){let r;const n=this.getCenterInternal();return void 0!==n&&(r=[n[0]-t[0],n[1]-t[1]],(0,c.e$)(r,e-this.getRotation()),(0,c.WQ)(r,t)),r}calculateCenterZoom(e,t){let r;const n=this.getCenterInternal(),i=this.getResolution();return void 0!==n&&void 0!==i&&(r=[t[0]-e*(t[0]-n[0])/i,t[1]-e*(t[1]-n[1])/i]),r}getViewportSize_(e){const t=this.viewportSize_;if(e){const r=t[0],n=t[1];return[Math.abs(r*Math.cos(e))+Math.abs(n*Math.sin(e)),Math.abs(r*Math.sin(e))+Math.abs(n*Math.cos(e))]}return t}setViewportSize(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const e=this.getCenterInternal();return e?(0,a.te)(e,this.getProjection()):e}getCenterInternal(){return this.get(o.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()}calculateExtent(e){const t=this.calculateExtentInternal(e);return(0,a.JR)(t,this.getProjection())}calculateExtentInternal(e){e=e||this.getViewportSizeMinusPadding_();const t=this.getCenterInternal();(0,u.v)(t,"The view center is not defined");const r=this.getResolution();(0,u.v)(void 0!==r,"The view resolution is not defined");const n=this.getRotation();return(0,u.v)(void 0!==n,"The view rotation is not defined"),(0,p.Bg)(t,r,n,e)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))}setConstrainResolution(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))}getProjection(){return this.projection_}getResolution(){return this.get(o.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(e,t){return this.getResolutionForExtentInternal((0,a.SD)(e,this.getProjection()),t)}getResolutionForExtentInternal(e,t){t=t||this.getViewportSizeMinusPadding_();const r=(0,p.RG)(e)/t[0],n=(0,p.Oq)(e)/t[1];return Math.max(r,n)}getResolutionForValueFunction(e){e=e||2;const t=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,n=Math.log(t/r)/Math.log(e);return function(r){return t/Math.pow(e,r*n)}}getRotation(){return this.get(o.ROTATION)}getValueForResolutionFunction(e){const t=Math.log(e||2),r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/t;return function(e){return Math.log(r/e)/t/i}}getViewportSizeMinusPadding_(e){let t=this.getViewportSize_(e);const r=this.padding_;return r&&(t=[t[0]-r[1]-r[3],t[1]-r[0]-r[2]]),t}getState(){const e=this.getProjection(),t=this.getResolution(),r=this.getRotation();let n=this.getCenterInternal();const i=this.padding_;if(i){const e=this.getViewportSizeMinusPadding_();n=A(n,this.getViewportSize_(),[e[0]/2+i[3],e[1]/2+i[0]],t,r)}return{center:n.slice(0),projection:void 0!==e?e:null,resolution:t,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:r,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let e;const t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e}getZoomForResolution(e){let t,r,n=this.minZoom_||0;if(this.resolutions_){const i=(0,m.FT)(this.resolutions_,e,1);n=i,t=this.resolutions_[i],r=i==this.resolutions_.length-1?2:t/this.resolutions_[i+1]}else t=this.maxResolution_,r=this.zoomFactor_;return n+Math.log(t/e)/Math.log(r)}getResolutionForZoom(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const t=(0,h.qE)(Math.floor(e),0,this.resolutions_.length-2),r=this.resolutions_[t]/this.resolutions_[t+1];return this.resolutions_[t]/Math.pow(r,(0,h.qE)(e-t,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)}fit(e,t){let r;if((0,u.v)(Array.isArray(e)||"function"==typeof e.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(e)){(0,u.v)(!(0,p.Im)(e),"Cannot fit empty extent provided as `geometry`");const t=(0,a.SD)(e,this.getProjection());r=(0,w.VY)(t)}else if("Circle"===e.getType()){const t=(0,a.SD)(e.getExtent(),this.getProjection());r=(0,w.VY)(t),r.rotate(this.getRotation(),(0,p.q1)(t))}else{const t=(0,a.Tf)();r=t?e.clone().transform(t,this.getProjection()):e}this.fitInternal(r,t)}rotatedExtentForGeometry(e){const t=this.getRotation(),r=Math.cos(t),n=Math.sin(-t),i=e.getFlatCoordinates(),o=e.getStride();let s=1/0,a=1/0,l=-1/0,c=-1/0;for(let e=0,t=i.length;e<t;e+=o){const t=i[e]*r-i[e+1]*n,o=i[e]*n+i[e+1]*r;s=Math.min(s,t),a=Math.min(a,o),l=Math.max(l,t),c=Math.max(c,o)}return[s,a,l,c]}fitInternal(e,t){let r=(t=t||{}).size;r||(r=this.getViewportSizeMinusPadding_());const n=void 0!==t.padding?t.padding:[0,0,0,0],i=void 0!==t.nearest&&t.nearest;let o;o=void 0!==t.minResolution?t.minResolution:void 0!==t.maxZoom?this.getResolutionForZoom(t.maxZoom):0;const s=this.rotatedExtentForGeometry(e);let a=this.getResolutionForExtentInternal(s,[r[0]-n[1]-n[3],r[1]-n[0]-n[2]]);a=isNaN(a)?o:Math.max(a,o),a=this.getConstrainedResolution(a,i?0:1);const c=this.getRotation(),u=Math.sin(c),h=Math.cos(c),d=(0,p.q1)(s);d[0]+=(n[1]-n[3])/2*a,d[1]+=(n[0]-n[2])/2*a;const f=d[0]*h-d[1]*u,m=d[1]*h+d[0]*u,g=this.getConstrainedCenter([f,m],a),y=t.callback?t.callback:l.tV;void 0!==t.duration?this.animateInternal({resolution:a,center:g,duration:t.duration,easing:t.easing},y):(this.targetResolution_=a,this.targetCenter_=g,this.applyTargetState_(!1,!0),x(y,!0))}centerOn(e,t,r){this.centerOnInternal((0,a.Ad)(e,this.getProjection()),t,r)}centerOnInternal(e,t,r){this.setCenterInternal(A(e,t,r,this.getResolution(),this.getRotation()))}calculateCenterShift(e,t,r,n){let i;const o=this.padding_;if(o&&e){const s=this.getViewportSizeMinusPadding_(-r),a=A(e,n,[s[0]/2+o[3],s[1]/2+o[0]],t,r);i=[e[0]-a[0],e[1]-a[1]]}return i}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(e){const t=(0,a.te)(this.targetCenter_,this.getProjection());this.setCenter([t[0]+e[0],t[1]+e[1]])}adjustCenterInternal(e){const t=this.targetCenter_;this.setCenterInternal([t[0]+e[0],t[1]+e[1]])}adjustResolution(e,t){t=t&&(0,a.Ad)(t,this.getProjection()),this.adjustResolutionInternal(e,t)}adjustResolutionInternal(e,t){const r=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*e,0,n,r);t&&(this.targetCenter_=this.calculateCenterZoom(i,t)),this.targetResolution_*=e,this.applyTargetState_()}adjustZoom(e,t){this.adjustResolution(Math.pow(this.zoomFactor_,-e),t)}adjustRotation(e,t){t&&(t=(0,a.Ad)(t,this.getProjection())),this.adjustRotationInternal(e,t)}adjustRotationInternal(e,t){const r=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+e,r);t&&(this.targetCenter_=this.calculateCenterRotate(n,t)),this.targetRotation_+=e,this.applyTargetState_()}setCenter(e){this.setCenterInternal(e?(0,a.Ad)(e,this.getProjection()):e)}setCenterInternal(e){this.targetCenter_=e,this.applyTargetState_()}setHint(e,t){return this.hints_[e]+=t,this.changed(),this.hints_[e]}setResolution(e){this.targetResolution_=e,this.applyTargetState_()}setRotation(e){this.targetRotation_=e,this.applyTargetState_()}setZoom(e){this.setResolution(this.getResolutionForZoom(e))}applyTargetState_(e,t){const r=this.getAnimating()||this.getInteracting()||t,n=this.constraints_.rotation(this.targetRotation_,r),i=this.getViewportSize_(n),s=this.constraints_.resolution(this.targetResolution_,0,i,r),a=this.constraints_.center(this.targetCenter_,s,i,r,this.calculateCenterShift(this.targetCenter_,s,n,i));this.get(o.ROTATION)!==n&&this.set(o.ROTATION,n),this.get(o.RESOLUTION)!==s&&(this.set(o.RESOLUTION,s),this.set("zoom",this.getZoom(),!0)),a&&this.get(o.CENTER)&&(0,c.aI)(this.get(o.CENTER),a)||this.set(o.CENTER,a),this.getAnimating()&&!e&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(e,t,r){e=void 0!==e?e:200;const n=t||0,i=this.constraints_.rotation(this.targetRotation_),o=this.getViewportSize_(i),s=this.constraints_.resolution(this.targetResolution_,n,o),a=this.constraints_.center(this.targetCenter_,s,o,!1,this.calculateCenterShift(this.targetCenter_,s,i,o));if(0===e&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=i,this.targetCenter_=a,void this.applyTargetState_();r=r||(0===e?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===i&&this.getCenterInternal()&&(0,c.aI)(this.getCenterInternal(),a)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:i,center:a,resolution:s,duration:e,easing:b.vT,anchor:r}))}beginInteraction(){this.resolveConstraints(0),this.setHint(i.A.INTERACTING,1)}endInteraction(e,t,r){r=r&&(0,a.Ad)(r,this.getProjection()),this.endInteractionInternal(e,t,r)}endInteractionInternal(e,t,r){this.getInteracting()&&(this.setHint(i.A.INTERACTING,-1),this.resolveConstraints(e,t,r))}getConstrainedCenter(e,t){const r=this.getViewportSize_(this.getRotation());return this.constraints_.center(e,t||this.getResolution(),r)}getConstrainedZoom(e,t){const r=this.getResolutionForZoom(e);return this.getZoomForResolution(this.getConstrainedResolution(r,t))}getConstrainedResolution(e,t){t=t||0;const r=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(e,t,r)}}function x(e,t){setTimeout((function(){e(t)}),0)}function S(e){return!(e.sourceCenter&&e.targetCenter&&!(0,c.aI)(e.sourceCenter,e.targetCenter))&&e.sourceResolution===e.targetResolution&&e.sourceRotation===e.targetRotation}function A(e,t,r,n,i){const o=Math.cos(-i);let s=Math.sin(-i),a=e[0]*o-e[1]*s,l=e[1]*o+e[0]*s;return a+=(t[0]/2-r[0])*n,l+=(r[1]-t[1]/2)*n,s=-s,[a*o-l*s,l*o+a*s]}const T=E},32769:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={ANIMATING:0,INTERACTING:1}},30444:(e,t,r)=>{"use strict";function n(e,t,r){let n,o;r=r||i;let s=0,a=e.length,l=!1;for(;s<a;)n=s+(a-s>>1),o=+r(e[n],t),o<0?s=n+1:(a=n,l=!o);return l?s:~s}function i(e,t){return e>t?1:e<t?-1:0}function o(e,t){return e<t?1:e>t?-1:0}function s(e,t,r){if(e[0]<=t)return 0;const n=e.length;if(t<=e[n-1])return n-1;if("function"==typeof r){for(let i=1;i<n;++i){const n=e[i];if(n===t)return i;if(n<t)return r(t,e[i-1],n)>0?i-1:i}return n-1}if(r>0){for(let r=1;r<n;++r)if(e[r]<t)return r-1;return n-1}if(r<0){for(let r=1;r<n;++r)if(e[r]<=t)return r;return n-1}for(let r=1;r<n;++r){if(e[r]==t)return r;if(e[r]<t)return e[r-1]-t<t-e[r]?r-1:r}return n-1}function a(e,t,r){for(;t<r;){const n=e[t];e[t]=e[r],e[r]=n,++t,--r}}function l(e,t){const r=Array.isArray(t)?t:[t],n=r.length;for(let t=0;t<n;t++)e[e.length]=r[t]}function c(e,t){const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function u(e,t,r){const n=t||i;return e.every((function(t,i){if(0===i)return!0;const o=n(e[i-1],t);return!(o>0||r&&0===o)}))}r.d(t,{El:()=>n,FT:()=>s,V_:()=>i,WC:()=>u,X$:()=>l,aI:()=>c,gI:()=>a,rG:()=>o})},30878:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw new Error(t)}r.d(t,{v:()=>n})},41009:(e,t,r)=>{"use strict";r.d(t,{qV:()=>p,_j:()=>x,oJ:()=>m,sH:()=>E,cD:()=>w,S8:()=>S,eE:()=>b,dI:()=>A,fu:()=>_});const n={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var i={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"],whitepoint:{2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}}};i.max=i.whitepoint[2].D65,i.rgb=function(e,t){t=t||i.whitepoint[2].E;var r,n,o,s=e[0]/t[0],a=e[1]/t[1],l=e[2]/t[2];return n=-.96924363628087*s+1.87596750150772*a+.041555057407175*l,o=.055630079696993*s+-.20397695888897*a+1.056971514242878*l,r=(r=3.240969941904521*s+-1.537383177570093*a+-.498610760293*l)>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*=12.92,[255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1))]},n.xyz=function(e,t){var r=e[0]/255,n=e[1]/255,o=e[2]/255,s=.21263900587151*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.71516867876775*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.072192315360733*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92),a=.019330818715591*r+.11919477979462*n+.95053215224966*o;return[(.41239079926595*r+.35758433938387*n+.18048078840183*o)*(t=t||i.whitepoint[2].E)[0],s*t[1],a*t[2]]};const o=i,s={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(e,t,r){var n,i,s,a,l,c,u,h,d;return s=e[0],a=e[1],l=e[2],0===s?[0,0,0]:(t=t||"D65",r=r||2,n=a/(13*s)+4*(u=o.whitepoint[r][t][0])/(u+15*(h=o.whitepoint[r][t][1])+3*(d=o.whitepoint[r][t][2]))||0,i=l/(13*s)+9*h/(u+15*h+3*d)||0,[9*(c=s>8?h*Math.pow((s+16)/116,3):h*s*.0011070564598794539)*n/(4*i)||0,c,c*(12-3*n-20*i)/(4*i)||0])}};o.luv=function(e,t,r){var n,i,s,a,l,c,u,h,d,f,p;t=t||"D65",r=r||2,f=4*(u=o.whitepoint[r][t][0])/(u+15*(h=o.whitepoint[r][t][1])+3*(d=o.whitepoint[r][t][2])),p=9*h/(u+15*h+3*d),n=4*(a=e[0])/(a+15*(l=e[1])+3*(c=e[2]))||0,i=9*l/(a+15*l+3*c)||0;var m=l/h;return[s=m<=.008856451679035631?903.2962962962961*m:116*Math.pow(m,1/3)-16,13*s*(n-f),13*s*(i-p)]};var a={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},xyz:function(e){return s.xyz(a.luv(e))}};const l=a;s.lchuv=function(e){var t=e[0],r=e[1],n=e[2],i=Math.sqrt(r*r+n*n),o=360*Math.atan2(n,r)/2/Math.PI;return o<0&&(o+=360),[t,i,o]},o.lchuv=function(e){return s.lchuv(o.luv(e))};const c={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},u=function(e){var t,r,n=[],i=1;if("number"==typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if("number"==typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if(e=String(e).toLowerCase(),c[e])n=c[e].slice(),r="rgb";else if("transparent"===e)i=0,r="rgb",n=[0,0,0];else if("#"===e[0]){var o=e.slice(1),s=o.length;i=1,s<=4?(n=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],4===s&&(i=parseInt(o[3]+o[3],16)/255)):(n=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],8===s&&(i=parseInt(o[6]+o[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),r="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var a=t[1],l="cmyk"===(r=a.replace(/a$/,""))?4:"gray"===r?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===r&&(r=n.shift()),i=(n=n.map((function(e,t){if("%"===e[e.length-1])return e=parseFloat(e)/100,3===t?e:"rgb"===r?255*e:"h"===r[0]?100*e:"l"!==r[0]||t?"lab"===r?125*e:"lch"===r?t<2?150*e:360*e:"o"!==r[0]||t?"oklab"===r?.4*e:"oklch"===r?t<2?.4*e:360*e:e:e:100*e;if("h"===r[t]||2===t&&"h"===r[r.length-1]){if(void 0!==h[e])return h[e];if(e.endsWith("deg"))return parseFloat(e);if(e.endsWith("turn"))return 360*parseFloat(e);if(e.endsWith("grad"))return 360*parseFloat(e)/400;if(e.endsWith("rad"))return 180*parseFloat(e)/Math.PI}return"none"===e?0:parseFloat(e)}))).length>l?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),r=e.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space:r,values:n,alpha:i}};var h={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const d={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,r,n,i,o,s=e[0]/360,a=e[1]/100,l=e[2]/100,c=0;if(0===a)return[o=255*l,o,o];for(t=2*l-(r=l<.5?l*(1+a):l+a-l*a),i=[0,0,0];c<3;)(n=s+1/3*-(c-1))<0?n++:n>1&&n--,o=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,i[c++]=255*o;return i}};n.hsl=function(e){var t,r,n=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(n,i,o),a=Math.max(n,i,o),l=a-s;return a===s?t=0:n===a?t=(i-o)/l:i===a?t=2+(o-n)/l:o===a&&(t=4+(n-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),r=(s+a)/2,[t,100*(a===s?0:r<=.5?l/(a+s):l/(2-a-s)),100*r]};var f=r(72475);const p=[NaN,NaN,NaN,0];function m(e){return"string"==typeof e?e:A(e)}const g=1024,y={};let v=0;function _(e){if(4===e.length)return e;const t=e.slice();return t[3]=1,t}function b(e){const t=o.lchuv(n.xyz(e));return t[3]=e[3],t}function w(e){const t=o.rgb(l.xyz(e));return t[3]=e[3],t}function E(e){if("none"===e)return p;if(y.hasOwnProperty(e))return y[e];if(v>=g){let e=0;for(const t in y)3&e++||(delete y[t],--v)}const t=function(e){var t;Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var r=u(e);if(!r.space)return[];const i="h"===r.space[0]?d.min:n.min,o="h"===r.space[0]?d.max:n.max;return(t=Array(3))[0]=Math.min(Math.max(r.values[0],i[0]),o[0]),t[1]=Math.min(Math.max(r.values[1],i[1]),o[1]),t[2]=Math.min(Math.max(r.values[2],i[2]),o[2]),"h"===r.space[0]&&(t=d.rgb(t)),t.push(Math.min(Math.max(r.alpha,0),1)),t}(e);if(4!==t.length)throw new Error('failed to parse "'+e+'" as color');for(const r of t)if(isNaN(r))throw new Error('failed to parse "'+e+'" as color');return S(t),y[e]=t,++v,t}function x(e){return Array.isArray(e)?e:E(e)}function S(e){return e[0]=(0,f.qE)(e[0]+.5|0,0,255),e[1]=(0,f.qE)(e[1]+.5|0,0,255),e[2]=(0,f.qE)(e[2]+.5|0,0,255),e[3]=(0,f.qE)(e[3],0,1),e}function A(e){let t=e[0];t!=(0|t)&&(t=t+.5|0);let r=e[1];r!=(0|r)&&(r=r+.5|0);let n=e[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+t+","+r+","+n+","+(void 0===e[3]?1:Math.round(1e3*e[3])/1e3)+")"}},67029:(e,t,r)=>{"use strict";r.d(t,{F:()=>l});var n=r(39915),i=r(83085),o=r(98525),s=r(67031),a=r(41009);function l(e){return e?Array.isArray(e)?(0,a.dI)(e):"object"==typeof e&&"src"in e?function(e){if(!e.offset||!e.size)return s.ue.getPattern(e.src,"anonymous",e.color);const t=e.src+":"+e.offset,r=s.ue.getPattern(t,void 0,e.color);if(r)return r;const a=s.ue.get(e.src,"anonymous",null);if(a.getImageState()!==n.A.LOADED)return null;const l=(0,i.Y)(e.size[0],e.size[1]);return l.drawImage(a.getImage(1),e.offset[0],e.offset[1],e.size[0],e.size[1],0,0,e.size[0],e.size[1]),(0,o.J)(l.canvas,t,void 0,n.A.LOADED,e.color,!0),s.ue.getPattern(t,void 0,e.color)}(e):e:null}},96372:(e,t,r)=>{"use strict";r.d(t,{R8:()=>o,z3:()=>s});const n={info:1,warn:2,error:3,none:4};let i=n.info;function o(...e){i>n.warn||console.warn(...e)}function s(...e){i>n.error||console.error(...e)}},9535:(e,t,r)=>{"use strict";r.d(t,{Li:()=>l,WQ:()=>i,aI:()=>o,e$:()=>s,hs:()=>a});var n=r(44509);function i(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function o(e,t){let r=!0;for(let n=e.length-1;n>=0;--n)if(e[n]!=t[n]){r=!1;break}return r}function s(e,t){const r=Math.cos(t),n=Math.sin(t),i=e[0]*r-e[1]*n,o=e[1]*r+e[0]*n;return e[0]=i,e[1]=o,e}function a(e,t){return e[0]*=t,e[1]*=t,e}function l(e,t){if(t.canWrapX()){const r=(0,n.RG)(t.getExtent()),i=function(e,t,r){const i=t.getExtent();let o=0;return t.canWrapX()&&(e[0]<i[0]||e[0]>i[2])&&(r=r||(0,n.RG)(i),o=Math.floor((e[0]-i[0])/r)),o}(e,t,r);i&&(e[0]-=i*r)}return e}},71686:(e,t,r)=>{"use strict";r.d(t,{$N:()=>o,K5:()=>c,Si:()=>n,XI:()=>i,nT:()=>s});const n="ol-hidden",i="ol-unselectable",o="ol-control",s="ol-collapsed",a=new RegExp(["^\\s*(?=(?:(?:[-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"),l=["style","variant","weight","size","lineHeight","family"],c=function(e){const t=e.match(a);if(!t)return null;const r={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let e=0,n=l.length;e<n;++e){const n=t[e+1];void 0!==n&&(r[l[e]]=n)}return r.families=r.family.split(/,\s?/),r}},83085:(e,t,r)=>{"use strict";r.d(t,{WM:()=>u,Y:()=>i,Yg:()=>a,fo:()=>l,gS:()=>c,lr:()=>s});var n=r(66993);function i(e,t,r,i){let o;return o=r&&r.length?r.shift():n.Wl?new OffscreenCanvas(e||300,t||300):document.createElement("canvas"),e&&(o.width=e),t&&(o.height=t),o.getContext("2d",i)}let o;function s(){return o||(o=i(1,1)),o}function a(e){const t=e.canvas;t.width=1,t.height=1,e.clearRect(0,0,1,1)}function l(e,t){const r=t.parentNode;r&&r.replaceChild(e,t)}function c(e){for(;e.lastChild;)e.lastChild.remove()}function u(e,t){const r=e.childNodes;for(let n=0;;++n){const i=r[n],o=t[n];if(!i&&!o)break;i!==o&&(i?o?e.insertBefore(o,i):(e.removeChild(i),--n):e.appendChild(o))}}},2620:(e,t,r)=>{"use strict";function n(e){return Math.pow(e,3)}function i(e){return 1-n(1-e)}function o(e){return 3*e*e-2*e*e*e}function s(e){return e}r.d(t,{T9:()=>o,a6:()=>n,sn:()=>s,vT:()=>i})},94456:(e,t,r)=>{"use strict";r.d(t,{JH:()=>s,Jz:()=>o,KT:()=>i});var n=r(82048);function i(e,t,r,n,i){if(i){const i=r;r=function(){e.removeEventListener(t,r),i.apply(n??this,arguments)}}else n&&n!==e&&(r=r.bind(n));const o={target:e,type:t,listener:r};return e.addEventListener(t,r),o}function o(e,t,r,n){return i(e,t,r,n,!0)}function s(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),(0,n.I)(e))}},37283:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>n});const n=class{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}},24187:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={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"}},91086:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(60239),i=r(37283),o=r(97440),s=r(82048);class a extends n.A{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,t){if(!e||!t)return;const r=this.listeners_||(this.listeners_={}),n=r[e]||(r[e]=[]);n.includes(t)||n.push(t)}dispatchEvent(e){const t="string"==typeof e,r=t?e:e.type,n=this.listeners_&&this.listeners_[r];if(!n)return;const s=t?new i.Ay(e):e;s.target||(s.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});let c;r in a||(a[r]=0,l[r]=0),++a[r];for(let e=0,t=n.length;e<t;++e)if(c="handleEvent"in n[e]?n[e].handleEvent(s):n[e].call(this,s),!1===c||s.propagationStopped){c=!1;break}if(0==--a[r]){let e=l[r];for(delete l[r];e--;)this.removeEventListener(r,o.tV);delete a[r]}return c}disposeInternal(){this.listeners_&&(0,s.I)(this.listeners_)}getListeners(e){return this.listeners_&&this.listeners_[e]||void 0}hasListener(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)}removeEventListener(e,t){if(!this.listeners_)return;const r=this.listeners_[e];if(!r)return;const n=r.indexOf(t);-1!==n&&(this.pendingRemovals_&&e in this.pendingRemovals_?(r[n]=o.tV,++this.pendingRemovals_[e]):(r.splice(n,1),0===r.length&&delete this.listeners_[e]))}}const l=a},62439:(e,t,r)=>{"use strict";r.d(t,{DG:()=>b,Fq:()=>h,SR:()=>w,T8:()=>a,Ye:()=>I,ZD:()=>x,_D:()=>_,cT:()=>c,go:()=>g,mE:()=>u,qA:()=>d,qg:()=>E,wl:()=>l});var n=r(30444),i=r(41009),o=r(53908);let s=0;const a=1<<s++,l=1<<s++,c=1<<s++,u=1<<s++,h=1<<s++,d=1<<s++,f=Math.pow(2,6)-1,p={[a]:"boolean",[l]:"number",[c]:"string",[u]:"color",[h]:"number[]",[d]:"size"},m=Object.keys(p).map(Number).sort(n.V_);function g(e){const t=[];for(const r of m)y(e,r)&&t.push(p[r]);return 0===t.length?"untyped":t.length<3?t.join(" or "):t.slice(0,-1).join(", ")+", or "+t[t.length-1]}function y(e,t){return(e&t)===t}function v(e,t){return e===t}class _{constructor(e,t){if(!function(e){return e in p}(e))throw new Error(`literal expressions must have a specific type, got ${g(e)}`);this.type=e,this.value=t}}class b{constructor(e,t,...r){this.type=e,this.operator=t,this.args=r}}function w(){return{variables:new Set,properties:new Set,featureId:!1,geometryType:!1}}function E(e,t,r){switch(typeof e){case"boolean":if(v(t,c))return new _(c,e?"true":"false");if(!y(t,a))throw new Error(`got a boolean, but expected ${g(t)}`);return new _(a,e);case"number":if(v(t,d))return new _(d,(0,o.xq)(e));if(v(t,a))return new _(a,!!e);if(v(t,c))return new _(c,e.toString());if(!y(t,l))throw new Error(`got a number, but expected ${g(t)}`);return new _(l,e);case"string":if(v(t,u))return new _(u,(0,i.sH)(e));if(v(t,a))return new _(a,!!e);if(!y(t,c))throw new Error(`got a string, but expected ${g(t)}`);return new _(c,e)}if(!Array.isArray(e))throw new Error("expression must be an array or a primitive value");if(0===e.length)throw new Error("empty expression");if("string"==typeof e[0])return function(e,t,r){const n=e[0],i=S[n];if(!i)throw new Error(`unknown operator: ${n}`);return i(e,t,r)}(e,t,r);for(const t of e)if("number"!=typeof t)throw new Error("expected an array of numbers");if(v(t,d)){if(2!==e.length)throw new Error(`expected an array of two values for a size, got ${e.length}`);return new _(d,e)}if(v(t,u)){if(3===e.length)return new _(u,[...e,1]);if(4===e.length)return new _(u,e);throw new Error(`expected an array of 3 or 4 values for a color, got ${e.length}`)}if(!y(t,h))throw new Error(`got an array of numbers, but expected ${g(t)}`);return new _(h,e)}const x={Get:"get",Var:"var",Concat:"concat",GeometryType:"geometry-type",LineMetric:"line-metric",Any:"any",All:"all",Not:"!",Resolution:"resolution",Zoom:"zoom",Time:"time",Equal:"==",NotEqual:"!=",GreaterThan:">",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette",ToString:"to-string",Has:"has"},S={[x.Get]:D(P(1,1/0),A),[x.Var]:D(P(1,1),(function(e,t,r){const n=e[1];if("string"!=typeof n)throw new Error("expected a string argument for var operation");return r.variables.add(n),[new _(c,n)]})),[x.Has]:D(P(1,1/0),A),[x.Id]:D((function(e,t,r){r.featureId=!0}),T),[x.Concat]:D(P(2,1/0),O(c)),[x.GeometryType]:D((function(e,t,r){r.geometryType=!0}),T),[x.LineMetric]:D(T),[x.Resolution]:D(T),[x.Zoom]:D(T),[x.Time]:D(T),[x.Any]:D(P(2,1/0),O(a)),[x.All]:D(P(2,1/0),O(a)),[x.Not]:D(P(1,1),O(a)),[x.Equal]:D(P(2,2),O(f)),[x.NotEqual]:D(P(2,2),O(f)),[x.GreaterThan]:D(P(2,2),O(l)),[x.GreaterThanOrEqualTo]:D(P(2,2),O(l)),[x.LessThan]:D(P(2,2),O(l)),[x.LessThanOrEqualTo]:D(P(2,2),O(l)),[x.Multiply]:D(P(2,1/0),C),[x.Coalesce]:D(P(2,1/0),C),[x.Divide]:D(P(2,2),O(l)),[x.Add]:D(P(2,1/0),O(l)),[x.Subtract]:D(P(2,2),O(l)),[x.Clamp]:D(P(3,3),O(l)),[x.Mod]:D(P(2,2),O(l)),[x.Pow]:D(P(2,2),O(l)),[x.Abs]:D(P(1,1),O(l)),[x.Floor]:D(P(1,1),O(l)),[x.Ceil]:D(P(1,1),O(l)),[x.Round]:D(P(1,1),O(l)),[x.Sin]:D(P(1,1),O(l)),[x.Cos]:D(P(1,1),O(l)),[x.Atan]:D(P(1,2),O(l)),[x.Sqrt]:D(P(1,1),O(l)),[x.Match]:D(P(4,1/0),R,(function(e,t,r){const n=e.length-1,i=c|l|a,o=E(e[1],i,r),s=E(e[e.length-1],t,r),u=new Array(n-2);for(let t=0;t<n-2;t+=2){try{const n=E(e[t+2],o.type,r);u[t]=n}catch(e){throw new Error(`failed to parse argument ${t+1} of match expression: ${e.message}`)}try{const n=E(e[t+3],s.type,r);u[t+1]=n}catch(e){throw new Error(`failed to parse argument ${t+2} of match expression: ${e.message}`)}}return[o,...u,s]})),[x.Between]:D(P(3,3),O(l)),[x.Interpolate]:D(P(6,1/0),R,(function(e,t,r){const n=e[1];let i;switch(n[0]){case"linear":i=1;break;case"exponential":const e=n[1];if("number"!=typeof e||e<=0)throw new Error(`expected a number base for exponential interpolation, got ${JSON.stringify(e)} instead`);i=e;break;default:throw new Error(`invalid interpolation type: ${JSON.stringify(n)}`)}const o=new _(l,i);let s;try{s=E(e[2],l,r)}catch(e){throw new Error(`failed to parse argument 1 in interpolate expression: ${e.message}`)}const a=new Array(e.length-3);for(let n=0;n<a.length;n+=2){try{const t=E(e[n+3],l,r);a[n]=t}catch(e){throw new Error(`failed to parse argument ${n+2} for interpolate expression: ${e.message}`)}try{const i=E(e[n+4],t,r);a[n+1]=i}catch(e){throw new Error(`failed to parse argument ${n+3} for interpolate expression: ${e.message}`)}}return[o,s,...a]})),[x.Case]:D(P(3,1/0),(function(e,t,r){const n=e[0],i=e.length-1;if(i%2==0)throw new Error(`expected an odd number of arguments for ${n}, got ${i} instead`)}),(function(e,t,r){const n=E(e[e.length-1],t,r),i=new Array(e.length-1);for(let t=0;t<i.length-1;t+=2){try{const n=E(e[t+1],a,r);i[t]=n}catch(e){throw new Error(`failed to parse argument ${t} of case expression: ${e.message}`)}try{const o=E(e[t+2],n.type,r);i[t+1]=o}catch(e){throw new Error(`failed to parse argument ${t+1} of case expression: ${e.message}`)}}return i[i.length-1]=n,i})),[x.In]:D(P(2,2),(function(e,t,r){let n,i=e[2];if(!Array.isArray(i))throw new Error('the second argument for the "in" operator must be an array');if("string"==typeof i[0]){if("literal"!==i[0])throw new Error('for the "in" operator, a string array should be wrapped in a "literal" operator to disambiguate from expressions');if(!Array.isArray(i[1]))throw new Error('failed to parse "in" expression: the literal operator must be followed by an array');i=i[1],n=c}else n=l;const o=new Array(i.length);for(let e=0;e<o.length;e++)try{const t=E(i[e],n,r);o[e]=t}catch(t){throw new Error(`failed to parse haystack item ${e} for "in" expression: ${t.message}`)}return[E(e[1],n,r),...o]})),[x.Number]:D(P(1,1/0),O(f)),[x.String]:D(P(1,1/0),O(f)),[x.Array]:D(P(1,1/0),O(l)),[x.Color]:D(P(1,4),O(l)),[x.Band]:D(P(1,3),O(l)),[x.Palette]:D(P(2,2),(function(e,t,r){let n;try{n=E(e[1],l,r)}catch(e){throw new Error(`failed to parse first argument in palette expression: ${e.message}`)}const i=e[2];if(!Array.isArray(i))throw new Error("the second argument of palette must be an array");const o=new Array(i.length);for(let e=0;e<o.length;e++){let t;try{t=E(i[e],u,r)}catch(t){throw new Error(`failed to parse color at index ${e} in palette expression: ${t.message}`)}if(!(t instanceof _))throw new Error(`the palette color at index ${e} must be a literal value`);o[e]=t}return[n,...o]})),[x.ToString]:D(P(1,1),O(a|l|c|u))};function A(e,t,r){const n=e.length-1,i=new Array(n);for(let t=0;t<n;++t){const n=e[t+1];switch(typeof n){case"number":i[t]=new _(l,n);break;case"string":i[t]=new _(c,n);break;default:throw new Error(`expected a string key or numeric array index for a get operation, got ${n}`)}0===t&&r.properties.add(String(n))}return i}function T(e,t,r){const n=e[0];if(1!==e.length)throw new Error(`expected no arguments for ${n} operation`);return[]}function P(e,t){return function(r,n,i){const o=r[0],s=r.length-1;if(e===t){if(s!==e)throw new Error(`expected ${e} argument${1===e?"":"s"} for ${o}, got ${s}`)}else if(s<e||s>t)throw new Error(`expected ${t===1/0?`${e} or more`:`${e} to ${t}`} arguments for ${o}, got ${s}`)}}function C(e,t,r){const n=e.length-1,i=new Array(n);for(let o=0;o<n;++o){const n=E(e[o+1],t,r);i[o]=n}return i}function O(e){return function(t,r,n){const i=t.length-1,o=new Array(i);for(let r=0;r<i;++r){const i=E(t[r+1],e,n);o[r]=i}return o}}function R(e,t,r){const n=e[0],i=e.length-1;if(i%2==1)throw new Error(`expected an even number of arguments for operation ${n}, got ${i} instead`)}function D(...e){return function(t,r,n){const i=t[0];let o;for(let i=0;i<e.length;i++){const s=e[i](t,r,n);if(i==e.length-1){if(!s)throw new Error("expected last argument validator to return the parsed args");o=s}}return new b(r,i,...o)}}function I(e){if(!e)return"";const t=e.getType();switch(t){case"Point":case"LineString":case"Polygon":return t;case"MultiPoint":case"MultiLineString":case"MultiPolygon":return t.substring(5);case"Circle":return"Polygon";case"GeometryCollection":return I(e.getGeometries()[0]);default:return""}}},44509:(e,t,r)=>{"use strict";r.d(t,{$C:()=>_,$u:()=>L,Bg:()=>C,HY:()=>F,Im:()=>j,Ld:()=>a,Li:()=>$,Mx:()=>M,N:()=>f,NW:()=>N,Oq:()=>O,Py:()=>D,QJ:()=>G,R:()=>S,R8:()=>b,RG:()=>k,Rj:()=>u,S5:()=>d,Tr:()=>i,UG:()=>x,Vy:()=>g,WU:()=>I,X$:()=>v,Ym:()=>l,_N:()=>R,aI:()=>y,aZ:()=>p,dP:()=>m,k_:()=>A,ms:()=>c,o8:()=>s,q1:()=>T,qF:()=>P,r:()=>o,sB:()=>E,vz:()=>h});var n=r(85262);function i(e){const t=[1/0,1/0,-1/0,-1/0];for(let r=0,n=e.length;r<n;++r)_(t,e[r]);return t}function o(e,t,r){return r?(r[0]=e[0]-t,r[1]=e[1]-t,r[2]=e[2]+t,r[3]=e[3]+t,r):[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 a(e,t,r){let n,i;return n=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0,i=r<e[1]?e[1]-r:e[3]<r?r-e[3]:0,n*n+i*i}function l(e,t){return u(e,t[0],t[1])}function c(e,t){return e[0]<=t[0]&&t[2]<=e[2]&&e[1]<=t[1]&&t[3]<=e[3]}function u(e,t,r){return e[0]<=t&&t<=e[2]&&e[1]<=r&&r<=e[3]}function h(e,t){const r=e[0],i=e[1],o=e[2],s=e[3],a=t[0],l=t[1];let c=n.A.UNKNOWN;return a<r?c|=n.A.LEFT:a>o&&(c|=n.A.RIGHT),l<i?c|=n.A.BELOW:l>s&&(c|=n.A.ABOVE),c===n.A.UNKNOWN&&(c=n.A.INTERSECTING),c}function d(){return[1/0,1/0,-1/0,-1/0]}function f(e,t,r,n,i){return i?(i[0]=e,i[1]=t,i[2]=r,i[3]=n,i):[e,t,r,n]}function p(e){return f(1/0,1/0,-1/0,-1/0,e)}function m(e,t){const r=e[0],n=e[1];return f(r,n,r,n,t)}function g(e,t,r,n,i){return b(p(i),e,t,r,n)}function y(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function v(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 _(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 b(e,t,r,n,i){for(;r<n;r+=i)w(e,t[r],t[r+1]);return e}function w(e,t,r){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],r)}function E(e,t){let r;return r=t(S(e)),r||(r=t(A(e)),r||(r=t(I(e)),r||(r=t(D(e)),r||!1)))}function x(e){let t=0;return j(e)||(t=k(e)*O(e)),t}function S(e){return[e[0],e[1]]}function A(e){return[e[2],e[1]]}function T(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function P(e,t){let r;if("bottom-left"===t)r=S(e);else if("bottom-right"===t)r=A(e);else if("top-left"===t)r=D(e);else{if("top-right"!==t)throw new Error("Invalid corner");r=I(e)}return r}function C(e,t,r,n,i){const[o,s,a,l,c,u,h,d]=function(e,t,r,n){const i=t*n[0]/2,o=t*n[1]/2,s=Math.cos(r),a=Math.sin(r),l=i*s,c=i*a,u=o*s,h=o*a,d=e[0],f=e[1];return[d-l+h,f-c-u,d-l-h,f-c+u,d+l-h,f+c+u,d+l+h,f+c-u,d-l+h,f-c-u]}(e,t,r,n);return f(Math.min(o,a,c,h),Math.min(s,l,u,d),Math.max(o,a,c,h),Math.max(s,l,u,d),i)}function O(e){return e[3]-e[1]}function R(e,t,r){const n=r||[1/0,1/0,-1/0,-1/0];return F(e,t)?(e[0]>t[0]?n[0]=e[0]:n[0]=t[0],e[1]>t[1]?n[1]=e[1]:n[1]=t[1],e[2]<t[2]?n[2]=e[2]:n[2]=t[2],e[3]<t[3]?n[3]=e[3]:n[3]=t[3]):p(n),n}function D(e){return[e[0],e[3]]}function I(e){return[e[2],e[3]]}function k(e){return e[2]-e[0]}function F(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function j(e){return e[2]<e[0]||e[3]<e[1]}function L(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}function M(e,t,r){let i=!1;const o=h(e,t),s=h(e,r);if(o===n.A.INTERSECTING||s===n.A.INTERSECTING)i=!0;else{const a=e[0],l=e[1],c=e[2],u=e[3],h=t[0],d=t[1],f=r[0],p=r[1],m=(p-d)/(f-h);let g,y;s&n.A.ABOVE&&!(o&n.A.ABOVE)&&(g=f-(p-u)/m,i=g>=a&&g<=c),i||!(s&n.A.RIGHT)||o&n.A.RIGHT||(y=p-(f-c)*m,i=y>=l&&y<=u),i||!(s&n.A.BELOW)||o&n.A.BELOW||(g=f-(p-l)/m,i=g>=a&&g<=c),i||!(s&n.A.LEFT)||o&n.A.LEFT||(y=p-(f-a)*m,i=y>=l&&y<=u)}return i}function N(e,t,r,n){if(j(e))return p(r);let i=[];if(n>1){const t=e[2]-e[0],r=e[3]-e[1];for(let o=0;o<n;++o)i.push(e[0]+t*o/n,e[1],e[2],e[1]+r*o/n,e[2]-t*o/n,e[3],e[0],e[3]-r*o/n)}else i=[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]];t(i,i,2);const o=[],s=[];for(let e=0,t=i.length;e<t;e+=2)o.push(i[e]),s.push(i[e+1]);return function(e,t,r){return f(Math.min.apply(null,e),Math.min.apply(null,t),Math.max.apply(null,e),Math.max.apply(null,t),r)}(o,s,r)}function $(e,t){const r=t.getExtent(),n=T(e);if(t.canWrapX()&&(n[0]<r[0]||n[0]>=r[2])){const t=k(r),i=Math.floor((n[0]-r[0])/t)*t;e[0]-=i,e[2]-=i}return e}function G(e,t,r){if(t.canWrapX()){const n=t.getExtent();if(!isFinite(e[0])||!isFinite(e[2]))return[[n[0],e[1],n[2],e[3]]];$(e,t);const i=k(n);if(k(e)>i&&!r)return[[n[0],e[1],n[2],e[3]]];if(e[0]<n[0])return[[e[0]+i,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]-i,e[3]]]}return[e]}},85262:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},64272:(e,t,r)=>{"use strict";r.d(t,{m8:()=>o,nF:()=>s});var n=r(97440);let i=!1;function o(e,t,r,n,o,s,a){const l=new XMLHttpRequest;l.open("GET","function"==typeof e?e(r,n,o):e,!0),"arraybuffer"==t.getType()&&(l.responseType="arraybuffer"),l.withCredentials=i,l.onload=function(e){if(!l.status||l.status>=200&&l.status<300){const e=t.getType();try{let n;"text"==e||"json"==e?n=l.responseText:"xml"==e?n=l.responseXML||l.responseText:"arraybuffer"==e&&(n=l.response),n?s(t.readFeatures(n,{extent:r,featureProjection:o}),t.readProjection(n)):a()}catch{a()}}else a()},l.onerror=a,l.send()}function s(e,t){return function(r,i,s,a,l){const c=this;o(e,t,r,i,s,(function(e,t){c.addFeatures(e),void 0!==a&&a(e)}),l||n.tV)}}},69612:(e,t,r)=>{"use strict";r.d(t,{te:()=>A,Bs:()=>S,Ay:()=>w,hX:()=>E});var n=r(75839),i=r(28528),o=r(20696),s=r(67955),a=r(68609),l=r(30173),c=r(81924),u=r(61437),h=r(24187),d=r(96488),f=r(44509),p=r(94456);class m extends d.A{constructor(e){super(),this.geometries_=e,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(p.JH),this.changeEventsKeys_.length=0}listenGeometriesChange_(){const e=this.geometries_;for(let t=0,r=e.length;t<r;++t)this.changeEventsKeys_.push((0,p.KT)(e[t],h.A.CHANGE,this.changed,this))}clone(){const e=new m(g(this.geometries_));return e.applyProperties(this),e}closestPointXY(e,t,r,n){if(n<(0,f.Ld)(this.getExtent(),e,t))return n;const i=this.geometries_;for(let o=0,s=i.length;o<s;++o)n=i[o].closestPointXY(e,t,r,n);return n}containsXY(e,t){const r=this.geometries_;for(let n=0,i=r.length;n<i;++n)if(r[n].containsXY(e,t))return!0;return!1}computeExtent(e){(0,f.aZ)(e);const t=this.geometries_;for(let r=0,n=t.length;r<n;++r)(0,f.X$)(e,t[r].getExtent());return e}getGeometries(){return g(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let e=[];const t=this.geometries_;for(let r=0,n=t.length;r<n;++r)t[r].getType()===this.getType()?e=e.concat(t[r].getGeometriesArrayRecursive()):e.push(t[r]);return e}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<this.simplifiedGeometryMaxMinSquaredTolerance)return this;const t=[],r=this.geometries_;let n=!1;for(let i=0,o=r.length;i<o;++i){const o=r[i],s=o.getSimplifiedGeometry(e);t.push(s),s!==o&&(n=!0)}return n?new m(t):(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}getType(){return"GeometryCollection"}intersectsExtent(e){const t=this.geometries_;for(let r=0,n=t.length;r<n;++r)if(t[r].intersectsExtent(e))return!0;return!1}isEmpty(){return 0===this.geometries_.length}rotate(e,t){const r=this.geometries_;for(let n=0,i=r.length;n<i;++n)r[n].rotate(e,t);this.changed()}scale(e,t,r){r||(r=(0,f.q1)(this.getExtent()));const n=this.geometries_;for(let i=0,o=n.length;i<o;++i)n[i].scale(e,t,r);this.changed()}setGeometries(e){this.setGeometriesArray(g(e))}setGeometriesArray(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()}applyTransform(e){const t=this.geometries_;for(let r=0,n=t.length;r<n;++r)t[r].applyTransform(e);this.changed()}translate(e,t){const r=this.geometries_;for(let n=0,i=r.length;n<i;++n)r[n].translate(e,t);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}}function g(e){return e.map((e=>e.clone()))}const y=m;var v=r(98629),_=r(12940),b=r(65709);const w=class{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=n.A,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let r=t.dataProjection?(0,_.Jt)(t.dataProjection):this.readProjection(e);t.extent&&r&&"tile-pixels"===r.getUnits()&&(r=(0,_.Jt)(r),r.setWorldExtent(t.extent)),t={dataProjection:r,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return(0,v.b0)()}readFeature(e,t){return(0,v.b0)()}readFeatures(e,t){return(0,v.b0)()}readGeometry(e,t){return(0,v.b0)()}readProjection(e){return(0,v.b0)()}writeFeature(e,t){return(0,v.b0)()}writeFeatures(e,t){return(0,v.b0)()}writeGeometry(e,t){return(0,v.b0)()}};function E(e,t,r){const n=r?(0,_.Jt)(r.featureProjection):null,i=r?(0,_.Jt)(r.dataProjection):null;let o=e;if(n&&i&&!(0,_.tI)(n,i)){t&&(o=e.clone());const r=t?n:i,s=t?i:n;"tile-pixels"===r.getUnits()?o.transform(r,s):o.applyTransform((0,_.RG)(r,s))}if(t&&r&&void 0!==r.decimals){const t=Math.pow(10,r.decimals),n=function(e){for(let r=0,n=e.length;r<n;++r)e[r]=Math.round(e[r]*t)/t;return e};o===e&&(o=e.clone()),o.applyTransform(n)}return o}const x={Point:o.A,LineString:s.A,Polygon:a.Ay,MultiPoint:l.A,MultiLineString:c.A,MultiPolygon:u.A};function S(e,t){const r=e.geometry;if(!r)return[];if(Array.isArray(r))return r.map((t=>S({...e,geometry:t}))).flat();const n="MultiPolygon"===r.type?"Polygon":r.type;if("GeometryCollection"===n||"Circle"===n)throw new Error("Unsupported geometry type: "+n);const o=r.layout.length;return E(new i.Ay(n,"Polygon"===n?function(e,t,r){return Array.isArray(t[0])?((0,b.mb)(e,0,t,r)||(e=e.slice(),(0,b.NK)(e,0,t,r)),e):((0,b.PA)(e,0,t,r)||(e=e.slice(),(0,b.ug)(e,0,t,r)),e)}(r.flatCoordinates,r.ends,o):r.flatCoordinates,r.ends?.flat(),o,e.properties||{},e.id).enableSimplifyTransformed(),!1,t)}function A(e,t){if(!e)return null;if(Array.isArray(e)){const r=e.map((e=>A(e,t)));return new y(r)}return E(new(0,x[e.type])(e.flatCoordinates,e.layout,e.ends),!1,t)}},56952:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(75839),i=r(69612),o=r(98629);class s extends i.Ay{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(a(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(a(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return(0,o.b0)()}readFeaturesFromObject(e,t){return(0,o.b0)()}readGeometry(e,t){return this.readGeometryFromObject(a(e),this.getReadOptions(e,t))}readGeometryFromObject(e,t){return(0,o.b0)()}readProjection(e){return this.readProjectionFromObject(a(e))}readProjectionFromObject(e){return(0,o.b0)()}writeFeature(e,t){return JSON.stringify(this.writeFeatureObject(e,t))}writeFeatureObject(e,t){return(0,o.b0)()}writeFeatures(e,t){return JSON.stringify(this.writeFeaturesObject(e,t))}writeFeaturesObject(e,t){return(0,o.b0)()}writeGeometry(e,t){return JSON.stringify(this.writeGeometryObject(e,t))}writeGeometryObject(e,t){return(0,o.b0)()}}function a(e){if("string"==typeof e){return JSON.parse(e)||null}return null!==e?e:null}const l=s;var c=r(28528),u=r(28851),h=r(31886),d=r(12940),f=r(82048);function p(e,t){if(!e)return null;let r;switch(e.type){case"Point":r=function(e){const t=e.coordinates;return{type:"Point",flatCoordinates:t,layout:(0,h.p0)(t.length)}}(e);break;case"LineString":r=function(e){const t=e.coordinates,r=t.flat();return{type:"LineString",flatCoordinates:r,ends:[r.length],layout:(0,h.p0)(t[0]?.length||2)}}(e);break;case"Polygon":r=function(e){const t=e.coordinates,r=[],n=t[0]?.[0]?.length;return{type:"Polygon",flatCoordinates:r,ends:(0,u.KG)(r,0,t,n),layout:(0,h.p0)(n)}}(e);break;case"MultiPoint":r=function(e){const t=e.coordinates;return{type:"MultiPoint",flatCoordinates:t.flat(),layout:(0,h.p0)(t[0]?.length||2)}}(e);break;case"MultiLineString":r=function(e){const t=e.coordinates,r=t[0]?.[0]?.length||2,n=[];return{type:"MultiLineString",flatCoordinates:n,ends:(0,u.KG)(n,0,t,r),layout:(0,h.p0)(r)}}(e);break;case"MultiPolygon":r=function(e){const t=e.coordinates,r=[],n=t[0]?.[0]?.[0].length||2;return{type:"MultiPolygon",flatCoordinates:r,ends:(0,u.d6)(r,0,t,n),layout:(0,h.p0)(n)}}(e);break;case"GeometryCollection":r=function(e){const t=e.geometries.map((function(e){return p(e)}));return t}(e);break;default:throw new Error("Unsupported GeoJSON type: "+e.type)}return r}function m(e,t){const r=(e=(0,i.hX)(e,!0,t)).getType();let n;switch(r){case"Point":n=function(e){return{type:"Point",coordinates:e.getCoordinates()}}(e);break;case"LineString":n=function(e){return{type:"LineString",coordinates:e.getCoordinates()}}(e);break;case"Polygon":n=function(e,t){let r;return t&&(r=t.rightHanded),{type:"Polygon",coordinates:e.getCoordinates(r)}}(e,t);break;case"MultiPoint":n=function(e){return{type:"MultiPoint",coordinates:e.getCoordinates()}}(e);break;case"MultiLineString":n=function(e){return{type:"MultiLineString",coordinates:e.getCoordinates()}}(e);break;case"MultiPolygon":n=function(e,t){let r;return t&&(r=t.rightHanded),{type:"MultiPolygon",coordinates:e.getCoordinates(r)}}(e,t);break;case"GeometryCollection":n=function(e,t){delete(t=Object.assign({},t)).featureProjection;return{type:"GeometryCollection",geometries:e.getGeometriesArray().map((function(e){return m(e,t)}))}}(e,t);break;case"Circle":n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+r)}return n}const g=class extends l{constructor(e){e=e||{},super(),this.dataProjection=(0,d.Jt)(e.dataProjection?e.dataProjection:"EPSG:4326"),e.featureProjection&&(this.defaultFeatureProjection=(0,d.Jt)(e.featureProjection)),e.featureClass&&(this.featureClass=e.featureClass),this.geometryName_=e.geometryName,this.extractGeometryName_=e.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(e,t){let r=null;r="Feature"===e.type?e:{type:"Feature",geometry:e,properties:null};const o=p(r.geometry);if(this.featureClass===c.Ay)return(0,i.Bs)({geometry:o,id:r.id,properties:r.properties},t);const s=new n.A;return this.geometryName_?s.setGeometryName(this.geometryName_):this.extractGeometryName_&&r.geometry_name&&s.setGeometryName(r.geometry_name),s.setGeometry((0,i.te)(o,t)),"id"in r&&s.setId(r.id),r.properties&&s.setProperties(r.properties,!0),s}readFeaturesFromObject(e,t){let r=null;if("FeatureCollection"===e.type){r=[];const n=e.features;for(let e=0,i=n.length;e<i;++e){const i=this.readFeatureFromObject(n[e],t);i&&r.push(i)}}else r=[this.readFeatureFromObject(e,t)];return r.flat()}readGeometryFromObject(e,t){return function(e,t){const r=p(e);return(0,i.te)(r,t)}(e,t)}readProjectionFromObject(e){const t=e.crs;let r;if(t)if("name"==t.type)r=(0,d.Jt)(t.properties.name);else{if("EPSG"!==t.type)throw new Error("Unknown SRS type");r=(0,d.Jt)("EPSG:"+t.properties.code)}else r=this.dataProjection;return r}writeFeatureObject(e,t){t=this.adaptOptions(t);const r={type:"Feature",geometry:null,properties:null},n=e.getId();if(void 0!==n&&(r.id=n),!e.hasProperties())return r;const i=e.getProperties(),o=e.getGeometry();return o&&(r.geometry=m(o,t),delete i[e.getGeometryName()]),(0,f.p)(i)||(r.properties=i),r}writeFeaturesObject(e,t){t=this.adaptOptions(t);const r=[];for(let n=0,i=e.length;n<i;++n)r.push(this.writeFeatureObject(e[n],t));return{type:"FeatureCollection",features:r}}writeGeometryObject(e,t){return m(e,this.adaptOptions(t))}}},39512:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(69612),i=r(67955),o=r(81924),s=r(30173),a=r(61437),l=r(38286),c=r(20696),u=r(68609),h=r(55528),d=r(28528),f=r(12940),p=r(65709);class m extends n.Ay{constructor(e){super(),e=e||{},this.dataProjection=new h.A({code:"",units:"tile-pixels"}),this.featureClass=e.featureClass?e.featureClass:d.Ay,this.geometryName_=e.geometryName,this.layerName_=e.layerName?e.layerName:"layer",this.layers_=e.layers?e.layers:null,this.idProperty_=e.idProperty,this.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"]}readRawGeometry_(e,t,r,n){e.pos=t.geometry;const i=e.readVarint()+e.pos;let o=1,s=0,a=0,l=0,c=0,u=0;for(;e.pos<i;){if(!s){const t=e.readVarint();o=7&t,s=t>>3}if(s--,1===o||2===o)a+=e.readSVarint(),l+=e.readSVarint(),1===o&&c>u&&(n.push(c),u=c),r.push(a,l),c+=2;else{if(7!==o)throw new Error("Invalid command found in the PBF");c>u&&(r.push(r[u],r[u+1]),c+=2)}}c>u&&(n.push(c),u=c)}createFeature_(e,t,r){const l=t.type;if(0===l)return null;let h;const f=t.properties;let m;this.idProperty_?(m=f[this.idProperty_],delete f[this.idProperty_]):m=t.id,f[this.layerName_]=t.layer.name;const g=[],y=[];this.readRawGeometry_(e,t,g,y);const v=function(e,t){let r;return 1===e?r=1===t?"Point":"MultiPoint":2===e?r=1===t?"LineString":"MultiLineString":3===e&&(r="Polygon"),r}(l,y.length);if(this.featureClass===d.Ay)h=new this.featureClass(v,g,y,2,f,m),h.transform(r.dataProjection);else{let e;if("Polygon"==v){const t=(0,p.yJ)(g,y);e=t.length>1?new a.A(g,"XY",t):new u.Ay(g,"XY",y)}else e="Point"===v?new c.A(g,"XY"):"LineString"===v?new i.A(g,"XY"):"MultiPoint"===v?new s.A(g,"XY"):"MultiLineString"===v?new o.A(g,"XY",y):null;h=new(0,this.featureClass),this.geometryName_&&h.setGeometryName(this.geometryName_);const t=(0,n.hX)(e,!1,r);h.setGeometry(t),void 0!==m&&h.setId(m),h.setProperties(f,!0)}return h}getType(){return"arraybuffer"}readFeatures(e,t){const r=this.layers_;t=this.adaptOptions(t);const n=(0,f.Jt)(t.dataProjection);n.setWorldExtent(t.extent),t.dataProjection=n;const i=new l.A(e),o=i.readFields(g,{}),s=[];for(const e in o){if(r&&!r.includes(e))continue;const a=o[e],l=a?[0,0,a.extent,a.extent]:null;n.setExtent(l);for(let e=0,r=a.length;e<r;++e){const r=_(i,a,e),n=this.createFeature_(i,r,t);null!==n&&s.push(n)}}return s}readProjection(e){return this.dataProjection}setLayers(e){this.layers_=e}}function g(e,t,r){if(3===e){const e={keys:[],values:[],features:[]},n=r.readVarint()+r.pos;r.readFields(y,e,n),e.length=e.features.length,e.length&&(t[e.name]=e)}}function y(e,t,r){if(15===e)t.version=r.readVarint();else if(1===e)t.name=r.readString();else if(5===e)t.extent=r.readVarint();else if(2===e)t.features.push(r.pos);else if(3===e)t.keys.push(r.readString());else if(4===e){let n=null;const i=r.readVarint()+r.pos;for(;r.pos<i;)n=1==(e=r.readVarint()>>3)?r.readString():2===e?r.readFloat():3===e?r.readDouble():4===e?r.readVarint64():5===e?r.readVarint():6===e?r.readSVarint():7===e?r.readBoolean():null;t.values.push(n)}}function v(e,t,r){if(1==e)t.id=r.readVarint();else if(2==e){const e=r.readVarint()+r.pos;for(;r.pos<e;){const e=t.layer.keys[r.readVarint()],n=t.layer.values[r.readVarint()];t.properties[e]=n}}else 3==e?t.type=r.readVarint():4==e&&(t.geometry=r.pos)}function _(e,t,r){e.pos=t.features[r];const n=e.readVarint()+e.pos,i={layer:t,type:0,properties:{}};return e.readFields(v,i,n),i}const b=m},97440:(e,t,r)=>{"use strict";r.d(t,{B4:()=>a,W8:()=>o,hq:()=>l,rT:()=>i,tV:()=>s});var n=r(30444);function i(){return!0}function o(){return!1}function s(){}function a(e){let t,r,i;return function(){const o=Array.prototype.slice.call(arguments);return r&&this===i&&(0,n.aI)(o,r)||(i=this,r=o,t=e.apply(this,arguments)),t}}function l(e){return function(){let t;try{t=e()}catch(e){return Promise.reject(e)}return t instanceof Promise?t:Promise.resolve(t)}()}},96488:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(72614),i=r(98629),o=r(37377),s=r(44509),a=r(12940),l=r(97440),c=r(70772);const u=(0,o.vt)();class h extends n.A{constructor(){super(),this.extent_=(0,s.S5)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,l.B4)(((e,t,r)=>{if(!r)return this.getSimplifiedGeometry(t);const n=this.clone();return n.applyTransform(r),n.getSimplifiedGeometry(t)}))}simplifyTransformed(e,t){return this.simplifyTransformedInternal(this.getRevision(),e,t)}clone(){return(0,i.b0)()}closestPointXY(e,t,r,n){return(0,i.b0)()}containsXY(e,t){const r=this.getClosestPoint([e,t]);return r[0]===e&&r[1]===t}getClosestPoint(e,t){return t=t||[NaN,NaN],this.closestPointXY(e[0],e[1],t,1/0),t}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return(0,i.b0)()}getExtent(e){if(this.extentRevision_!=this.getRevision()){const e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&(0,s.aZ)(e),this.extentRevision_=this.getRevision()}return(0,s.$u)(this.extent_,e)}rotate(e,t){(0,i.b0)()}scale(e,t,r){(0,i.b0)()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return(0,i.b0)()}getType(){return(0,i.b0)()}applyTransform(e){(0,i.b0)()}intersectsExtent(e){return(0,i.b0)()}translate(e,t){(0,i.b0)()}transform(e,t){const r=(0,a.Jt)(e),n="tile-pixels"==r.getUnits()?function(e,n,i){const l=r.getExtent(),h=r.getWorldExtent(),d=(0,s.Oq)(h)/(0,s.Oq)(l);return(0,o.Zz)(u,h[0],h[3],d,-d,0,0,0),(0,c.Rc)(e,0,e.length,i,u,n),(0,a.RG)(r,t)(e,n,i)}:(0,a.RG)(r,t);return this.applyTransform(n),this}}const d=h},67955:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(31886),i=r(28519),o=r(44509),s=r(28851),a=r(9761),l=r(30444),c=r(35024),u=r(35455),h=r(82611),d=r(78096),f=r(22346);class p extends n.Ay{constructor(e,t){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===t||Array.isArray(e[0])?this.setCoordinates(e,t):this.setFlatCoordinates(t,e)}appendCoordinate(e){(0,l.X$)(this.flatCoordinates,e),this.changed()}clone(){const e=new p(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,t,r,n){return n<(0,o.Ld)(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,i.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,i.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,t,r,n))}forEachSegment(e){return(0,c.j)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinateAtM(e,t){return"XYM"!=this.layout&&"XYZM"!=this.layout?null:(t=void 0!==t&&t,(0,h.gr)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t))}getCoordinates(){return(0,u.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(e,t){return(0,h.SH)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,this.stride)}getLength(){return(0,f.k)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_??void 0),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(e){const t=[];return t.length=(0,a.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,0),new p(t,"XY")}getType(){return"LineString"}intersectsExtent(e){return(0,d.gp)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,s.z2)(this.flatCoordinates,0,e,this.stride),this.changed()}}const m=p},81924:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(67955),i=r(31886),o=r(28519),s=r(44509),a=r(28851),l=r(9761),c=r(30444),u=r(35455),h=r(82611),d=r(78096);class f extends i.Ay{constructor(e,t,r){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(e[0]))this.setCoordinates(e,t);else if(void 0!==t&&r)this.setFlatCoordinates(t,e),this.ends_=r;else{const t=e,r=[],n=[];for(let e=0,i=t.length;e<i;++e){const i=t[e];(0,c.X$)(r,i.getFlatCoordinates()),n.push(r.length)}const i=0===t.length?this.getLayout():t[0].getLayout();this.setFlatCoordinates(i,r),this.ends_=n}}appendLineString(e){(0,c.X$)(this.flatCoordinates,e.getFlatCoordinates().slice()),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const e=new f(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}closestPointXY(e,t,r,n){return n<(0,s.Ld)(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,o.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,o.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,e,t,r,n))}getCoordinateAtM(e,t,r){return"XYM"!=this.layout&&"XYZM"!=this.layout||0===this.flatCoordinates.length?null:(t=void 0!==t&&t,r=void 0!==r&&r,(0,h.L8)(this.flatCoordinates,0,this.ends_,this.stride,e,t,r))}getCoordinates(){return(0,u.cD)(this.flatCoordinates,0,this.ends_,this.stride)}getEnds(){return this.ends_}getLineString(e){return e<0||this.ends_.length<=e?null:new n.A(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLineStrings(){const e=this.flatCoordinates,t=this.ends_,r=this.layout,i=[];let o=0;for(let s=0,a=t.length;s<a;++s){const a=t[s],l=new n.A(e.slice(o,a),r);i.push(l),o=a}return i}getFlatMidpoints(){const e=[],t=this.flatCoordinates;let r=0;const n=this.ends_,i=this.stride;for(let o=0,s=n.length;o<s;++o){const s=n[o],a=(0,h.SH)(t,r,s,i,.5);(0,c.X$)(e,a),r=s}return e}getSimplifiedGeometryInternal(e){const t=[],r=[];return t.length=(0,l.AL)(this.flatCoordinates,0,this.ends_,this.stride,e,t,0,r),new f(t,"XY",r)}getType(){return"MultiLineString"}intersectsExtent(e){return(0,d.fB)(this.flatCoordinates,0,this.ends_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);const r=(0,a.KG)(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()}}const p=f},30173:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(20696),i=r(31886),o=r(44509),s=r(28851),a=r(30444),l=r(35455),c=r(72475);class u extends i.Ay{constructor(e,t){super(),t&&!Array.isArray(e[0])?this.setFlatCoordinates(t,e):this.setCoordinates(e,t)}appendPoint(e){(0,a.X$)(this.flatCoordinates,e.getFlatCoordinates()),this.changed()}clone(){const e=new u(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,t,r,n){if(n<(0,o.Ld)(this.getExtent(),e,t))return n;const i=this.flatCoordinates,s=this.stride;for(let o=0,a=i.length;o<a;o+=s){const a=(0,c.hG)(e,t,i[o],i[o+1]);if(a<n){n=a;for(let e=0;e<s;++e)r[e]=i[o+e];r.length=s}}return n}getCoordinates(){return(0,l.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getPoint(e){const t=this.flatCoordinates.length/this.stride;return e<0||t<=e?null:new n.A(this.flatCoordinates.slice(e*this.stride,(e+1)*this.stride),this.layout)}getPoints(){const e=this.flatCoordinates,t=this.layout,r=this.stride,i=[];for(let o=0,s=e.length;o<s;o+=r){const s=new n.A(e.slice(o,o+r),t);i.push(s)}return i}getType(){return"MultiPoint"}intersectsExtent(e){const t=this.flatCoordinates,r=this.stride;for(let n=0,i=t.length;n<i;n+=r){const r=t[n],i=t[n+1];if((0,o.Rj)(e,r,i))return!0}return!1}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,s.z2)(this.flatCoordinates,0,e,this.stride),this.changed()}}const h=u},61437:(e,t,r)=>{"use strict";r.d(t,{A:()=>_});var n=r(30173),i=r(68609),o=r(31886),s=r(28519),a=r(44509),l=r(28851),c=r(30444),u=r(93350),h=r(35455),d=r(78096),f=r(65709),p=r(45999),m=r(77055),g=r(16587),y=r(9761);class v extends o.Ay{constructor(e,t,r){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!r&&!Array.isArray(e[0])){const n=e,i=[],o=[];for(let e=0,t=n.length;e<t;++e){const t=n[e],r=i.length,s=t.getEnds();for(let e=0,t=s.length;e<t;++e)s[e]+=r;(0,c.X$)(i,t.getFlatCoordinates()),o.push(s)}t=0===n.length?this.getLayout():n[0].getLayout(),e=i,r=o}void 0!==t&&r?(this.setFlatCoordinates(t,e),this.endss_=r):this.setCoordinates(e,t)}appendPolygon(e){let t;if(this.flatCoordinates){const r=this.flatCoordinates.length;(0,c.X$)(this.flatCoordinates,e.getFlatCoordinates()),t=e.getEnds().slice();for(let e=0,n=t.length;e<n;++e)t[e]+=r}else this.flatCoordinates=e.getFlatCoordinates().slice(),t=e.getEnds().slice(),this.endss_.push();this.endss_.push(t),this.changed()}clone(){const e=this.endss_.length,t=new Array(e);for(let r=0;r<e;++r)t[r]=this.endss_[r].slice();const r=new v(this.flatCoordinates.slice(),this.layout,t);return r.applyProperties(this),r}closestPointXY(e,t,r,n){return n<(0,a.Ld)(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,s.c)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,s.te)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,e,t,r,n))}containsXY(e,t){return(0,g.Gd)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e,t)}getArea(){return(0,p.Cs)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}getCoordinates(e){let t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),(0,f.NK)(t,0,this.endss_,this.stride,e)):t=this.flatCoordinates,(0,h.Dz)(t,0,this.endss_,this.stride)}getEndss(){return this.endss_}getFlatInteriorPoints(){if(this.flatInteriorPointsRevision_!=this.getRevision()){const e=(0,m.C)(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,u.p)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}getInteriorPoints(){return new n.A(this.getFlatInteriorPoints().slice(),"XYM")}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const e=this.flatCoordinates;(0,f.mb)(e,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=(0,f.NK)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(e){const t=[],r=[];return t.length=(0,y.sx)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(e),t,0,r),new v(t,"XY",r)}getPolygon(e){if(e<0||this.endss_.length<=e)return null;let t;if(0===e)t=0;else{const r=this.endss_[e-1];t=r[r.length-1]}const r=this.endss_[e].slice(),n=r[r.length-1];if(0!==t)for(let e=0,n=r.length;e<n;++e)r[e]-=t;return new i.Ay(this.flatCoordinates.slice(t,n),this.layout,r)}getPolygons(){const e=this.layout,t=this.flatCoordinates,r=this.endss_,n=[];let o=0;for(let s=0,a=r.length;s<a;++s){const a=r[s].slice(),l=a[a.length-1];if(0!==o)for(let e=0,t=a.length;e<t;++e)a[e]-=o;const c=new i.Ay(t.slice(o,l),e,a);n.push(c),o=l}return n}getType(){return"MultiPolygon"}intersectsExtent(e){return(0,d.Wp)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,3),this.flatCoordinates||(this.flatCoordinates=[]);const r=(0,l.d6)(this.flatCoordinates,0,e,this.stride,this.endss_);if(0===r.length)this.flatCoordinates.length=0;else{const e=r[r.length-1];this.flatCoordinates.length=0===e.length?0:e[e.length-1]}this.changed()}}const _=v},20696:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(31886),i=r(44509),o=r(28851),s=r(72475);class a extends n.Ay{constructor(e,t){super(),this.setCoordinates(e,t)}clone(){const e=new a(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,t,r,n){const i=this.flatCoordinates,o=(0,s.hG)(e,t,i[0],i[1]);if(o<n){const e=this.stride;for(let t=0;t<e;++t)r[t]=i[t];return r.length=e,o}return n}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(e){return(0,i.dP)(this.flatCoordinates,e)}getType(){return"Point"}intersectsExtent(e){return(0,i.Rj)(e,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(e,t){this.setLayout(t,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,o._n)(this.flatCoordinates,0,e,this.stride),this.changed()}}const l=a},68609:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>_,VY:()=>b});var n=r(31886),i=r(28519),o=r(44509),s=r(28851),a=r(9761),l=r(35455),c=r(45999);class u extends n.Ay{constructor(e,t){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===t||Array.isArray(e[0])?this.setCoordinates(e,t):this.setFlatCoordinates(t,e)}clone(){return new u(this.flatCoordinates.slice(),this.layout)}closestPointXY(e,t,r,n){return n<(0,o.Ld)(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,i.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,i.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,r,n))}getArea(){return(0,c.eN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,l.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(e){const t=[];return t.length=(0,a.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,0),new u(t,"XY")}getType(){return"LinearRing"}intersectsExtent(e){return!1}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,s.z2)(this.flatCoordinates,0,e,this.stride),this.changed()}}const h=u;var d=r(20696),f=r(30444),p=r(93350),m=r(78096),g=r(65709),y=r(16587);class v extends n.Ay{constructor(e,t,r){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==t&&r?(this.setFlatCoordinates(t,e),this.ends_=r):this.setCoordinates(e,t)}appendLinearRing(e){this.flatCoordinates?(0,f.X$)(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const e=new v(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}closestPointXY(e,t,r,n){return n<(0,o.Ld)(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,i.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,i.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,r,n))}containsXY(e,t){return(0,y.zb)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)}getArea(){return(0,c.PK)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(e){let t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),(0,g.ug)(t,0,this.ends_,this.stride,e)):t=this.flatCoordinates,(0,l.cD)(t,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const e=(0,o.q1)(this.getExtent());this.flatInteriorPoint_=(0,p.J)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new d.A(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(e){return e<0||this.ends_.length<=e?null:new h(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLinearRings(){const e=this.layout,t=this.flatCoordinates,r=this.ends_,n=[];let i=0;for(let o=0,s=r.length;o<s;++o){const s=r[o],a=new h(t.slice(i,s),e);n.push(a),i=s}return n}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const e=this.flatCoordinates;(0,g.PA)(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=(0,g.ug)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(e){const t=[],r=[];return t.length=(0,a.Hg)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),t,0,r),new v(t,"XY",r)}getType(){return"Polygon"}intersectsExtent(e){return(0,m.HT)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);const r=(0,s.KG)(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()}}const _=v;function b(e){if((0,o.Im)(e))throw new Error("Cannot create polygon from empty extent");const t=e[0],r=e[1],n=e[2],i=e[3],s=[t,r,t,i,n,i,n,r,t,r];return new v(s,"XY",[s.length])}},31886:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>h,p0:()=>l,v7:()=>u});var n=r(96488),i=r(98629),o=r(44509),s=r(70772);class a extends n.A{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(e){return(0,o.Vy)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return(0,i.b0)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const t=this.getSimplifiedGeometryInternal(e);return t.getFlatCoordinates().length<this.flatCoordinates.length?t:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}getSimplifiedGeometryInternal(e){return this}getStride(){return this.stride}setFlatCoordinates(e,t){this.stride=c(e),this.layout=e,this.flatCoordinates=t}setCoordinates(e,t){(0,i.b0)()}setLayout(e,t,r){let n;if(e)n=c(e);else{for(let e=0;e<r;++e){if(0===t.length)return this.layout="XY",void(this.stride=2);t=t[0]}n=t.length,e=l(n)}this.layout=e,this.stride=n}applyTransform(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(e,t){const r=this.getFlatCoordinates();if(r){const n=this.getStride();(0,s.e$)(r,0,r.length,n,e,t,r),this.changed()}}scale(e,t,r){void 0===t&&(t=e),r||(r=(0,o.q1)(this.getExtent()));const n=this.getFlatCoordinates();if(n){const i=this.getStride();(0,s.hs)(n,0,n.length,i,e,t,r,n),this.changed()}}translate(e,t){const r=this.getFlatCoordinates();if(r){const n=this.getStride();(0,s.Tl)(r,0,r.length,n,e,t,r),this.changed()}}}function l(e){let t;return 2==e?t="XY":3==e?t="XYZ":4==e&&(t="XYZM"),t}function c(e){let t;return"XY"==e?t=2:"XYZ"==e||"XYM"==e?t=3:"XYZM"==e&&(t=4),t}function u(e,t,r){const n=e.getFlatCoordinates();if(!n)return null;const i=e.getStride();return(0,s.Rc)(n,0,n.length,i,t,r)}const h=a},45999:(e,t,r)=>{"use strict";function n(e,t,r,n){let i=0;const o=e[r-n],s=e[r-n+1];let a=0,l=0;for(;t<r;t+=n){const r=e[t]-o,n=e[t+1]-s;i+=l*r-a*n,a=r,l=n}return i/2}function i(e,t,r,i){let o=0;for(let s=0,a=r.length;s<a;++s){const a=r[s];o+=n(e,t,a,i),t=a}return o}function o(e,t,r,n){let o=0;for(let s=0,a=r.length;s<a;++s){const a=r[s];o+=i(e,t,a,n),t=a[a.length-1]}return o}r.d(t,{Cs:()=>o,PK:()=>i,eN:()=>n})},77055:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(44509);function i(e,t,r,i){const o=[];let s=(0,n.S5)();for(let a=0,l=r.length;a<l;++a){const l=r[a];s=(0,n.Vy)(e,t,l[0],i),o.push((s[0]+s[2])/2,(s[1]+s[3])/2),t=l[l.length-1]}return o}},28519:(e,t,r)=>{"use strict";r.d(t,{HX:()=>s,MD:()=>o,c:()=>a,n:()=>l,oW:()=>c,te:()=>u});var n=r(72475);function i(e,t,r,i,o,s,a){const l=e[t],c=e[t+1],u=e[r]-l,h=e[r+1]-c;let d;if(0===u&&0===h)d=t;else{const f=((o-l)*u+(s-c)*h)/(u*u+h*h);if(f>1)d=r;else{if(f>0){for(let o=0;o<i;++o)a[o]=(0,n.Cc)(e[t+o],e[r+o],f);return void(a.length=i)}d=t}}for(let t=0;t<i;++t)a[t]=e[d+t];a.length=i}function o(e,t,r,i,o){let s=e[t],a=e[t+1];for(t+=i;t<r;t+=i){const r=e[t],i=e[t+1],l=(0,n.hG)(s,a,r,i);l>o&&(o=l),s=r,a=i}return o}function s(e,t,r,n,i){for(let s=0,a=r.length;s<a;++s){const a=r[s];i=o(e,t,a,n,i),t=a}return i}function a(e,t,r,n,i){for(let o=0,a=r.length;o<a;++o){const a=r[o];i=s(e,t,a,n,i),t=a[a.length-1]}return i}function l(e,t,r,o,s,a,l,c,u,h,d){if(t==r)return h;let f,p;if(0===s){if(p=(0,n.hG)(l,c,e[t],e[t+1]),p<h){for(f=0;f<o;++f)u[f]=e[t+f];return u.length=o,p}return h}d=d||[NaN,NaN];let m=t+o;for(;m<r;)if(i(e,m-o,m,o,l,c,d),p=(0,n.hG)(l,c,d[0],d[1]),p<h){for(h=p,f=0;f<o;++f)u[f]=d[f];u.length=o,m+=o}else m+=o*Math.max((Math.sqrt(p)-Math.sqrt(h))/s|0,1);if(a&&(i(e,r-o,t,o,l,c,d),p=(0,n.hG)(l,c,d[0],d[1]),p<h)){for(h=p,f=0;f<o;++f)u[f]=d[f];u.length=o}return h}function c(e,t,r,n,i,o,s,a,c,u,h){h=h||[NaN,NaN];for(let d=0,f=r.length;d<f;++d){const f=r[d];u=l(e,t,f,n,i,o,s,a,c,u,h),t=f}return u}function u(e,t,r,n,i,o,s,a,l,u,h){h=h||[NaN,NaN];for(let d=0,f=r.length;d<f;++d){const f=r[d];u=c(e,t,f,n,i,o,s,a,l,u,h),t=f[f.length-1]}return u}},16587:(e,t,r)=>{"use strict";r.d(t,{Gd:()=>a,a_:()=>o,t7:()=>i,zb:()=>s});var n=r(44509);function i(e,t,r,i,s){return!(0,n.sB)(s,(function(n){return!o(e,t,r,i,n[0],n[1])}))}function o(e,t,r,n,i,o){let s=0,a=e[r-n],l=e[r-n+1];for(;t<r;t+=n){const r=e[t],n=e[t+1];l<=o?n>o&&(r-a)*(o-l)-(i-a)*(n-l)>0&&s++:n<=o&&(r-a)*(o-l)-(i-a)*(n-l)<0&&s--,a=r,l=n}return 0!==s}function s(e,t,r,n,i,s){if(0===r.length)return!1;if(!o(e,t,r[0],n,i,s))return!1;for(let t=1,a=r.length;t<a;++t)if(o(e,r[t-1],r[t],n,i,s))return!1;return!0}function a(e,t,r,n,i,o){if(0===r.length)return!1;for(let a=0,l=r.length;a<l;++a){const l=r[a];if(s(e,t,l,n,i,o))return!0;t=l[l.length-1]}return!1}},28851:(e,t,r)=>{"use strict";function n(e,t,r,n){for(let n=0,i=r.length;n<i;++n)e[t++]=r[n];return t}function i(e,t,r,n){for(let i=0,o=r.length;i<o;++i){const o=r[i];for(let r=0;r<n;++r)e[t++]=o[r]}return t}function o(e,t,r,n,o){o=o||[];let s=0;for(let a=0,l=r.length;a<l;++a){const l=i(e,t,r[a],n);o[s++]=l,t=l}return o.length=s,o}function s(e,t,r,n,i){i=i||[];let s=0;for(let a=0,l=r.length;a<l;++a){const l=o(e,t,r[a],n,i[s]);0===l.length&&(l[0]=t),i[s++]=l,t=l[l.length-1]}return i.length=s,i}r.d(t,{KG:()=>o,_n:()=>n,d6:()=>s,z2:()=>i})},35455:(e,t,r)=>{"use strict";function n(e,t,r,n,i){i=void 0!==i?i:[];let o=0;for(let s=t;s<r;s+=n)i[o++]=e.slice(s,s+n);return i.length=o,i}function i(e,t,r,i,o){o=void 0!==o?o:[];let s=0;for(let a=0,l=r.length;a<l;++a){const l=r[a];o[s++]=n(e,t,l,i,o[s]),t=l}return o.length=s,o}function o(e,t,r,n,o){o=void 0!==o?o:[];let s=0;for(let a=0,l=r.length;a<l;++a){const l=r[a];o[s++]=1===l.length&&l[0]===t?[]:i(e,t,l,n,o[s]),t=l[l.length-1]}return o.length=s,o}r.d(t,{Dz:()=>o,cD:()=>i,n2:()=>n})},93350:(e,t,r)=>{"use strict";r.d(t,{J:()=>o,p:()=>s});var n=r(30444),i=r(16587);function o(e,t,r,o,s,a,l){let c,u,h,d,f,p,m;const g=s[a+1],y=[];for(let n=0,i=r.length;n<i;++n){const i=r[n];for(d=e[i-o],p=e[i-o+1],c=t;c<i;c+=o)f=e[c],m=e[c+1],(g<=p&&m<=g||p<=g&&g<=m)&&(h=(g-p)/(m-p)*(f-d)+d,y.push(h)),d=f,p=m}let v=NaN,_=-1/0;for(y.sort(n.V_),d=y[0],c=1,u=y.length;c<u;++c){f=y[c];const n=Math.abs(f-d);n>_&&(h=(d+f)/2,(0,i.zb)(e,t,r,o,h,g)&&(v=h,_=n)),d=f}return isNaN(v)&&(v=s[a]),l?(l.push(v,g,_),l):[v,g,_]}function s(e,t,r,n,i){let s=[];for(let a=0,l=r.length;a<l;++a){const l=r[a];s=o(e,t,l,n,i,2*a,s),t=l[l.length-1]}return s}},82611:(e,t,r)=>{"use strict";r.d(t,{L8:()=>a,SH:()=>o,gr:()=>s});var n=r(30444),i=r(72475);function o(e,t,r,o,s,a,l){let c,u;const h=(r-t)/o;if(1===h)c=t;else if(2===h)c=t,u=s;else if(0!==h){let i=e[t],a=e[t+1],l=0;const h=[0];for(let n=t+o;n<r;n+=o){const t=e[n],r=e[n+1];l+=Math.sqrt((t-i)*(t-i)+(r-a)*(r-a)),h.push(l),i=t,a=r}const d=s*l,f=(0,n.El)(h,d);f<0?(u=(d-h[-f-2])/(h[-f-1]-h[-f-2]),c=t+(-f-2)*o):c=t+f*o}l=l>1?l:2,a=a||new Array(l);for(let t=0;t<l;++t)a[t]=void 0===c?NaN:void 0===u?e[c+t]:(0,i.Cc)(e[c+t],e[c+o+t],u);return a}function s(e,t,r,n,o,s){if(r==t)return null;let a;if(o<e[t+n-1])return s?(a=e.slice(t,t+n),a[n-1]=o,a):null;if(e[r-1]<o)return s?(a=e.slice(r-n,r),a[n-1]=o,a):null;if(o==e[t+n-1])return e.slice(t,t+n);let l=t/n,c=r/n;for(;l<c;){const t=l+c>>1;o<e[(t+1)*n-1]?c=t:l=t+1}const u=e[l*n-1];if(o==u)return e.slice((l-1)*n,(l-1)*n+n);const h=(o-u)/(e[(l+1)*n-1]-u);a=[];for(let t=0;t<n-1;++t)a.push((0,i.Cc)(e[(l-1)*n+t],e[l*n+t],h));return a.push(o),a}function a(e,t,r,n,i,o,a){if(a)return s(e,t,r[r.length-1],n,i,o);let l;if(i<e[n-1])return o?(l=e.slice(0,n),l[n-1]=i,l):null;if(e[e.length-1]<i)return o?(l=e.slice(e.length-n),l[n-1]=i,l):null;for(let o=0,a=r.length;o<a;++o){const a=r[o];if(t!=a){if(i<e[t+n-1])return null;if(i<=e[a-1])return s(e,t,a,n,i,!1);t=a}}return null}},78096:(e,t,r)=>{"use strict";r.d(t,{HT:()=>c,Wp:()=>u,fB:()=>a,gp:()=>s,sj:()=>l});var n=r(44509),i=r(35024),o=r(16587);function s(e,t,r,o,s){const a=(0,n.R8)((0,n.S5)(),e,t,r,o);return!!(0,n.HY)(s,a)&&(!!(0,n.ms)(s,a)||a[0]>=s[0]&&a[2]<=s[2]||a[1]>=s[1]&&a[3]<=s[3]||(0,i.j)(e,t,r,o,(function(e,t){return(0,n.Mx)(s,e,t)})))}function a(e,t,r,n,i){for(let o=0,a=r.length;o<a;++o){if(s(e,t,r[o],n,i))return!0;t=r[o]}return!1}function l(e,t,r,n,i){return!!(s(e,t,r,n,i)||(0,o.a_)(e,t,r,n,i[0],i[1])||(0,o.a_)(e,t,r,n,i[0],i[3])||(0,o.a_)(e,t,r,n,i[2],i[1])||(0,o.a_)(e,t,r,n,i[2],i[3]))}function c(e,t,r,n,i){if(!l(e,t,r[0],n,i))return!1;if(1===r.length)return!0;for(let t=1,a=r.length;t<a;++t)if((0,o.t7)(e,r[t-1],r[t],n,i)&&!s(e,r[t-1],r[t],n,i))return!1;return!0}function u(e,t,r,n,i){for(let o=0,s=r.length;o<s;++o){const s=r[o];if(c(e,t,s,n,i))return!0;t=s[s.length-1]}return!1}},22346:(e,t,r)=>{"use strict";function n(e,t,r,n){let i=e[t],o=e[t+1],s=0;for(let a=t+n;a<r;a+=n){const t=e[a],r=e[a+1];s+=Math.sqrt((t-i)*(t-i)+(r-o)*(r-o)),i=t,o=r}return s}r.d(t,{k:()=>n})},65709:(e,t,r)=>{"use strict";function n(e,t,r,n){for(;t<r-n;){for(let i=0;i<n;++i){const o=e[t+i];e[t+i]=e[r-n+i],e[r-n+i]=o}t+=n,r-=n}}function i(e,t,r,n){let i=0,o=e[r-n],s=e[r-n+1];for(;t<r;t+=n){const r=e[t],n=e[t+1];i+=(r-o)*(n+s),o=r,s=n}return 0===i?void 0:i>0}function o(e,t,r,n,o){o=void 0!==o&&o;for(let s=0,a=r.length;s<a;++s){const a=r[s],l=i(e,t,a,n);if(0===s){if(o&&l||!o&&!l)return!1}else if(o&&!l||!o&&l)return!1;t=a}return!0}function s(e,t,r,n,i){for(let s=0,a=r.length;s<a;++s){const a=r[s];if(!o(e,t,a,n,i))return!1;a.length&&(t=a[a.length-1])}return!0}function a(e,t,r,o,s){s=void 0!==s&&s;for(let a=0,l=r.length;a<l;++a){const l=r[a],c=i(e,t,l,o);(0===a?s&&c||!s&&!c:s&&!c||!s&&c)&&n(e,t,l,o),t=l}return t}function l(e,t,r,n,i){for(let o=0,s=r.length;o<s;++o)t=a(e,t,r[o],n,i);return t}function c(e,t){const r=[];let n,o=0,s=0;for(let a=0,l=t.length;a<l;++a){const l=t[a],c=i(e,o,l,2);if(void 0===n&&(n=c),c===n)r.push(t.slice(s,a+1));else{if(0===r.length)continue;r[r.length-1].push(t[s])}s=a+1,o=l}return r}r.d(t,{yJ:()=>c,PA:()=>o,mb:()=>s,ug:()=>a,NK:()=>l})},35024:(e,t,r)=>{"use strict";function n(e,t,r,n,i){let o;for(t+=n;t<r;t+=n)if(o=i(e.slice(t-n,t),e.slice(t,t+n)),o)return o;return!1}r.d(t,{j:()=>n})},9761:(e,t,r)=>{"use strict";r.d(t,{AL:()=>o,Hg:()=>l,P4:()=>i,n$:()=>s,sx:()=>c});var n=r(72475);function i(e,t,r,i,o,s,a){const l=(r-t)/i;if(l<3){for(;t<r;t+=i)s[a++]=e[t],s[a++]=e[t+1];return a}const c=new Array(l);c[0]=1,c[l-1]=1;const u=[t,r-i];let h=0;for(;u.length>0;){const r=u.pop(),s=u.pop();let a=0;const l=e[s],d=e[s+1],f=e[r],p=e[r+1];for(let t=s+i;t<r;t+=i){const r=e[t],i=e[t+1],o=(0,n.Q1)(r,i,l,d,f,p);o>a&&(h=t,a=o)}a>o&&(c[(h-t)/i]=1,s+i<h&&u.push(s,h),h+i<r&&u.push(h,r))}for(let r=0;r<l;++r)c[r]&&(s[a++]=e[t+r*i],s[a++]=e[t+r*i+1]);return a}function o(e,t,r,n,o,s,a,l){for(let c=0,u=r.length;c<u;++c){const u=r[c];a=i(e,t,u,n,o,s,a),l.push(a),t=u}return a}function s(e,t){return t*Math.round(e/t)}function a(e,t,r,n,i,o,a){if(t==r)return a;let l,c,u=s(e[t],i),h=s(e[t+1],i);t+=n,o[a++]=u,o[a++]=h;do{if(l=s(e[t],i),c=s(e[t+1],i),(t+=n)==r)return o[a++]=l,o[a++]=c,a}while(l==u&&c==h);for(;t<r;){const r=s(e[t],i),d=s(e[t+1],i);if(t+=n,r==l&&d==c)continue;const f=l-u,p=c-h,m=r-u,g=d-h;f*g==p*m&&(f<0&&m<f||f==m||f>0&&m>f)&&(p<0&&g<p||p==g||p>0&&g>p)?(l=r,c=d):(o[a++]=l,o[a++]=c,u=l,h=c,l=r,c=d)}return o[a++]=l,o[a++]=c,a}function l(e,t,r,n,i,o,s,l){for(let c=0,u=r.length;c<u;++c){const u=r[c];s=a(e,t,u,n,i,o,s),l.push(s),t=u}return s}function c(e,t,r,n,i,o,s,a){for(let c=0,u=r.length;c<u;++c){const u=r[c],h=[];s=l(e,t,u,n,i,o,s,h),a.push(h),t=u[u.length-1]}return s}},70772:(e,t,r)=>{"use strict";function n(e,t,r,n,i,o,s){o=o||[],s=s||2;let a=0;for(let l=t;l<r;l+=n){const t=e[l],r=e[l+1];o[a++]=i[0]*t+i[2]*r+i[4],o[a++]=i[1]*t+i[3]*r+i[5];for(let t=2;t<s;t++)o[a++]=e[l+t]}return o&&o.length!=a&&(o.length=a),o}function i(e,t,r,n,i,o,s){s=s||[];const a=Math.cos(i),l=Math.sin(i),c=o[0],u=o[1];let h=0;for(let i=t;i<r;i+=n){const t=e[i]-c,r=e[i+1]-u;s[h++]=c+t*a-r*l,s[h++]=u+t*l+r*a;for(let t=i+2;t<i+n;++t)s[h++]=e[t]}return s&&s.length!=h&&(s.length=h),s}function o(e,t,r,n,i,o,s,a){a=a||[];const l=s[0],c=s[1];let u=0;for(let s=t;s<r;s+=n){const t=e[s]-l,r=e[s+1]-c;a[u++]=l+i*t,a[u++]=c+o*r;for(let t=s+2;t<s+n;++t)a[u++]=e[t]}return a&&a.length!=u&&(a.length=u),a}function s(e,t,r,n,i,o,s){s=s||[];let a=0;for(let l=t;l<r;l+=n){s[a++]=e[l]+i,s[a++]=e[l+1]+o;for(let t=l+2;t<l+n;++t)s[a++]=e[t]}return s&&s.length!=a&&(s.length=a),s}r.d(t,{Rc:()=>n,Tl:()=>s,e$:()=>i,hs:()=>o})},66993:(e,t,r)=>{"use strict";r.d(t,{DT:()=>u,FT:()=>d,Wl:()=>c,XM:()=>h,_p:()=>i,cr:()=>l,ew:()=>a,j:()=>s,oF:()=>o});const n="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",i=n.includes("firefox"),o=n.includes("safari")&&!n.includes("chrom")&&(n.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(n)),s=n.includes("webkit")&&!n.includes("edge"),a=n.includes("macintosh"),l="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,c="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,u="undefined"!=typeof Image&&Image.prototype.decode,h="function"==typeof createImageBitmap,d=function(){let e=!1;try{const t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch(e){}return e}()},88436:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(37283),i=r(24187),o=r(78083),s=r(97440),a=r(12940),l=r(94456);class c extends n.Ay{constructor(e,t,r,n){super(e),this.features=r,this.file=t,this.projection=n}}class u extends o.Ay{constructor(e){e=e||{},super({handleEvent:s.rT}),this.on,this.once,this.un,this.readAsBuffer_=!1,this.formats_=[];const t=e.formatConstructors?e.formatConstructors:[];for(let e=0,r=t.length;e<r;++e){let r=t[e];"function"==typeof r&&(r=new r),this.formats_.push(r),this.readAsBuffer_=this.readAsBuffer_||"arraybuffer"===r.getType()}this.projection_=e.projection?(0,a.Jt)(e.projection):null,this.dropListenKeys_=null,this.source_=e.source||null,this.target=e.target?e.target:null}handleResult_(e,t){const r=t.target.result,n=this.getMap();let i,o=this.projection_;o||(o=(0,a.Tf)(),o)||(o=n.getView().getProjection());const s=this.formats_;for(let t=0,n=s.length;t<n;++t){const n=s[t];let a=r;this.readAsBuffer_&&"arraybuffer"!==n.getType()&&(void 0===i&&(i=(new TextDecoder).decode(r)),a=i);const l=this.tryReadFeatures_(n,a,{featureProjection:o});if(l&&l.length>0){this.source_&&(this.source_.clear(),this.source_.addFeatures(l)),this.dispatchEvent(new c("addfeatures",e,l,o));break}}}registerListeners_(){const e=this.getMap();if(e){const t=this.target?this.target:e.getViewport();this.dropListenKeys_=[(0,l.KT)(t,i.A.DROP,this.handleDrop,this),(0,l.KT)(t,i.A.DRAGENTER,this.handleStop,this),(0,l.KT)(t,i.A.DRAGOVER,this.handleStop,this),(0,l.KT)(t,i.A.DROP,this.handleStop,this)]}}setActive(e){!this.getActive()&&e&&this.registerListeners_(),this.getActive()&&!e&&this.unregisterListeners_(),super.setActive(e)}setMap(e){this.unregisterListeners_(),super.setMap(e),this.getActive()&&this.registerListeners_()}tryReadFeatures_(e,t,r){try{return e.readFeatures(t,r)}catch(e){return null}}unregisterListeners_(){this.dropListenKeys_&&(this.dropListenKeys_.forEach(l.JH),this.dropListenKeys_=null)}handleDrop(e){const t=e.dataTransfer.files;for(let e=0,r=t.length;e<r;++e){const r=t.item(e),n=new FileReader;n.addEventListener(i.A.LOAD,this.handleResult_.bind(this,r)),this.readAsBuffer_?n.readAsArrayBuffer(r):n.readAsText(r)}}handleStop(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"}}const h=u},78083:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,e4:()=>a,D2:()=>l});var n=r(72614);const i="active";var o=r(2620);class s extends n.A{constructor(e){super(),this.on,this.once,this.un,e&&e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(i)}getMap(){return this.map_}handleEvent(e){return!0}setActive(e){this.set(i,e)}setMap(e){this.map_=e}}function a(e,t,r){const n=e.getCenterInternal();if(n){const i=[n[0]+t[0],n[1]+t[1]];e.animateInternal({duration:void 0!==r?r:250,easing:o.sn,center:e.getConstrainedCenter(i)})}}function l(e,t,r,n){const i=e.getZoom();if(void 0===i)return;const s=e.getConstrainedZoom(i+t),a=e.getResolutionForZoom(s);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:a,anchor:r,duration:void 0!==n?n:250,easing:o.vT})}const c=s},93450:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(72614),i=r(59014),o=r(98629),s=r(30878),a=r(72475);class l extends n.A{constructor(e){super(),this.on,this.once,this.un,this.background_=e.background;const t=Object.assign({},e);"object"==typeof e.properties&&(delete t.properties,Object.assign(t,e.properties)),t[i.A.OPACITY]=void 0!==e.opacity?e.opacity:1,(0,s.v)("number"==typeof t[i.A.OPACITY],"Layer opacity must be a number"),t[i.A.VISIBLE]=void 0===e.visible||e.visible,t[i.A.Z_INDEX]=e.zIndex,t[i.A.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,t[i.A.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,t[i.A.MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,t[i.A.MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,this.className_=void 0!==t.className?t.className:"ol-layer",delete t.className,this.setProperties(t),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(e){const t=this.state_||{layer:this,managed:void 0===e||e},r=this.getZIndex();return t.opacity=(0,a.qE)(Math.round(100*this.getOpacity())/100,0,1),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=void 0!==r||t.managed?r: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}getLayersArray(e){return(0,o.b0)()}getLayerStatesArray(e){return(0,o.b0)()}getExtent(){return this.get(i.A.EXTENT)}getMaxResolution(){return this.get(i.A.MAX_RESOLUTION)}getMinResolution(){return this.get(i.A.MIN_RESOLUTION)}getMinZoom(){return this.get(i.A.MIN_ZOOM)}getMaxZoom(){return this.get(i.A.MAX_ZOOM)}getOpacity(){return this.get(i.A.OPACITY)}getSourceState(){return(0,o.b0)()}getVisible(){return this.get(i.A.VISIBLE)}getZIndex(){return this.get(i.A.Z_INDEX)}setBackground(e){this.background_=e,this.changed()}setExtent(e){this.set(i.A.EXTENT,e)}setMaxResolution(e){this.set(i.A.MAX_RESOLUTION,e)}setMinResolution(e){this.set(i.A.MIN_RESOLUTION,e)}setMaxZoom(e){this.set(i.A.MAX_ZOOM,e)}setMinZoom(e){this.set(i.A.MIN_ZOOM,e)}setOpacity(e){(0,s.v)("number"==typeof e,"Layer opacity must be a number"),this.set(i.A.OPACITY,e)}setVisible(e){this.set(i.A.VISIBLE,e)}setZIndex(e){this.set(i.A.Z_INDEX,e)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const c=l},91430:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(73626),i=r(56106);class o extends n.A{constructor(e){e=e||{};const t=Object.assign({},e),r=e.cacheSize;delete e.cacheSize,delete t.preload,delete t.useInterimTilesOnError,super(t),this.on,this.once,this.un,this.cacheSize_=r,this.setPreload(void 0!==e.preload?e.preload:0),this.setUseInterimTilesOnError(void 0===e.useInterimTilesOnError||e.useInterimTilesOnError)}getCacheSize(){return this.cacheSize_}getPreload(){return this.get(i.A.PRELOAD)}setPreload(e){this.set(i.A.PRELOAD,e)}getUseInterimTilesOnError(){return this.get(i.A.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(e){this.set(i.A.USE_INTERIM_TILES_ON_ERROR,e)}getData(e){return super.getData(e)}}const s=o},59722:(e,t,r)=>{"use strict";r.d(t,{A:()=>q});var n=r(73626),i=r(44663),o=r(78882),s=r(58471),a=r(21590),l=r(25174),c=r(89910),u=r(50207),h=r(53908);class d{constructor(e){e=e||{},this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=(0,h.xq)(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.repeat_=e.repeat,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new a.A({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:"point",this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new d({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().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,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(e){this.overflow_=e}setFont(e){this.font_=e}setMaxAngle(e){this.maxAngle_=e}setOffsetX(e){this.offsetX_=e}setOffsetY(e){this.offsetY_=e}setPlacement(e){this.placement_=e}setRepeat(e){this.repeat_=e}setRotateWithView(e){this.rotateWithView_=e}setFill(e){this.fill_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=(0,h.xq)(void 0!==e?e:1)}setStroke(e){this.stroke_=e}setText(e){this.text_=e}setTextAlign(e){this.textAlign_=e}setJustify(e){this.justify_=e}setTextBaseline(e){this.textBaseline_=e}setBackgroundFill(e){this.backgroundFill_=e}setBackgroundStroke(e){this.backgroundStroke_=e}setPadding(e){this.padding_=e}}const f=d;var p=r(62439),m=r(41009);function g(e,t,r){return y((0,p.qg)(e,t,r),r)}function y(e,t){if(e instanceof p._D){if(e.type===p.mE&&"string"==typeof e.value){const t=(0,m.sH)(e.value);return function(){return t}}return function(){return e.value}}const r=e.operator;switch(r){case p.ZD.Number:case p.ZD.String:case p.ZD.Coalesce:return function(e,t){const r=e.operator,n=e.args.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=y(e.args[r],t);switch(r){case p.ZD.Coalesce:return e=>{for(let t=0;t<n;++t){const r=i[t](e);if(null!=r)return r}throw new Error("Expected one of the values to be non-null")};case p.ZD.Number:case p.ZD.String:return e=>{for(let t=0;t<n;++t){const n=i[t](e);if(typeof n===r)return n}throw new Error(`Expected one of the values to be a ${r}`)};default:throw new Error(`Unsupported assertion operator ${r}`)}}(e,t);case p.ZD.Get:case p.ZD.Var:case p.ZD.Has:return function(e){const t=e.args[0].value;switch(e.operator){case p.ZD.Get:return r=>{const n=e.args;let i=r.properties[t];for(let e=1,t=n.length;e<t;++e)i=i[n[e].value];return i};case p.ZD.Var:return e=>e.variables[t];case p.ZD.Has:return r=>{const n=e.args;if(!(t in r.properties))return!1;let i=r.properties[t];for(let e=1,t=n.length;e<t;++e){const t=n[e].value;if(!i||!Object.hasOwn(i,t))return!1;i=i[t]}return!0};default:throw new Error(`Unsupported accessor operator ${e.operator}`)}}(e);case p.ZD.Id:return e=>e.featureId;case p.ZD.GeometryType:return e=>e.geometryType;case p.ZD.Concat:{const r=e.args.map((e=>y(e,t)));return e=>"".concat(...r.map((t=>t(e).toString())))}case p.ZD.Resolution:return e=>e.resolution;case p.ZD.Any:case p.ZD.All:case p.ZD.Between:case p.ZD.In:case p.ZD.Not:return function(e,t){const r=e.operator,n=e.args.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=y(e.args[r],t);switch(r){case p.ZD.Any:return e=>{for(let t=0;t<n;++t)if(i[t](e))return!0;return!1};case p.ZD.All:return e=>{for(let t=0;t<n;++t)if(!i[t](e))return!1;return!0};case p.ZD.Between:return e=>{const t=i[0](e),r=i[1](e),n=i[2](e);return t>=r&&t<=n};case p.ZD.In:return e=>{const t=i[0](e);for(let r=1;r<n;++r)if(t===i[r](e))return!0;return!1};case p.ZD.Not:return e=>!i[0](e);default:throw new Error(`Unsupported logical operator ${r}`)}}(e,t);case p.ZD.Equal:case p.ZD.NotEqual:case p.ZD.LessThan:case p.ZD.LessThanOrEqualTo:case p.ZD.GreaterThan:case p.ZD.GreaterThanOrEqualTo:return function(e,t){const r=e.operator,n=y(e.args[0],t),i=y(e.args[1],t);switch(r){case p.ZD.Equal:return e=>n(e)===i(e);case p.ZD.NotEqual:return e=>n(e)!==i(e);case p.ZD.LessThan:return e=>n(e)<i(e);case p.ZD.LessThanOrEqualTo:return e=>n(e)<=i(e);case p.ZD.GreaterThan:return e=>n(e)>i(e);case p.ZD.GreaterThanOrEqualTo:return e=>n(e)>=i(e);default:throw new Error(`Unsupported comparison operator ${r}`)}}(e,t);case p.ZD.Multiply:case p.ZD.Divide:case p.ZD.Add:case p.ZD.Subtract:case p.ZD.Clamp:case p.ZD.Mod:case p.ZD.Pow:case p.ZD.Abs:case p.ZD.Floor:case p.ZD.Ceil:case p.ZD.Round:case p.ZD.Sin:case p.ZD.Cos:case p.ZD.Atan:case p.ZD.Sqrt:return function(e,t){const r=e.operator,n=e.args.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=y(e.args[r],t);switch(r){case p.ZD.Multiply:return e=>{let t=1;for(let r=0;r<n;++r)t*=i[r](e);return t};case p.ZD.Divide:return e=>i[0](e)/i[1](e);case p.ZD.Add:return e=>{let t=0;for(let r=0;r<n;++r)t+=i[r](e);return t};case p.ZD.Subtract:return e=>i[0](e)-i[1](e);case p.ZD.Clamp:return e=>{const t=i[0](e),r=i[1](e);if(t<r)return r;const n=i[2](e);return t>n?n:t};case p.ZD.Mod:return e=>i[0](e)%i[1](e);case p.ZD.Pow:return e=>Math.pow(i[0](e),i[1](e));case p.ZD.Abs:return e=>Math.abs(i[0](e));case p.ZD.Floor:return e=>Math.floor(i[0](e));case p.ZD.Ceil:return e=>Math.ceil(i[0](e));case p.ZD.Round:return e=>Math.round(i[0](e));case p.ZD.Sin:return e=>Math.sin(i[0](e));case p.ZD.Cos:return e=>Math.cos(i[0](e));case p.ZD.Atan:return 2===n?e=>Math.atan2(i[0](e),i[1](e)):e=>Math.atan(i[0](e));case p.ZD.Sqrt:return e=>Math.sqrt(i[0](e));default:throw new Error(`Unsupported numeric operator ${r}`)}}(e,t);case p.ZD.Case:return function(e,t){const r=e.args.length,n=new Array(r);for(let i=0;i<r;++i)n[i]=y(e.args[i],t);return e=>{for(let t=0;t<r-1;t+=2)if(n[t](e))return n[t+1](e);return n[r-1](e)}}(e,t);case p.ZD.Match:return function(e,t){const r=e.args.length,n=new Array(r);for(let i=0;i<r;++i)n[i]=y(e.args[i],t);return e=>{const t=n[0](e);for(let i=1;i<r;i+=2)if(t===n[i](e))return n[i+1](e);return n[r-1](e)}}(e,t);case p.ZD.Interpolate:return function(e,t){const r=e.args.length,n=new Array(r);for(let i=0;i<r;++i)n[i]=y(e.args[i],t);return e=>{const t=n[0](e),i=n[1](e);let o,s;for(let a=2;a<r;a+=2){const r=n[a](e);let l=n[a+1](e);const c=Array.isArray(l);if(c&&(l=(0,m.fu)(l)),r>=i)return 2===a?l:c?_(t,i,o,s,r,l):v(t,i,o,s,r,l);o=r,s=l}return s}}(e,t);case p.ZD.ToString:return function(e,t){const r=e.operator,n=e.args.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=y(e.args[r],t);if(r===p.ZD.ToString)return t=>{const r=i[0](t);return e.args[0].type===p.mE?(0,m.dI)(r):r.toString()};throw new Error(`Unsupported convert operator ${r}`)}(e,t);default:throw new Error(`Unsupported operator ${r}`)}}function v(e,t,r,n,i,o){const s=i-r;if(0===s)return n;const a=t-r;return n+(1===e?a/s:(Math.pow(e,a)-1)/(Math.pow(e,s)-1))*(o-n)}function _(e,t,r,n,i,o){if(0==i-r)return n;const s=(0,m.eE)(n),a=(0,m.eE)(o);let l=a[2]-s[2];l>180?l-=360:l<-180&&(l+=360);const c=[v(e,t,r,s[0],i,a[0]),v(e,t,r,s[1],i,a[1]),s[2]+v(e,t,r,0,i,l),v(e,t,r,n[3],i,o[3])];return(0,m.S8)((0,m.cD)(c))}var b=r(82048);function w(e){return!0}function E(e){const t=(0,p.SR)(),r=e.length,n=new Array(r);for(let i=0;i<r;++i)n[i]=x(e[i],t);const i={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""},o=new Array(r);return function(e,s){if(i.properties=e.getPropertiesInternal(),i.resolution=s,t.featureId){const t=e.getId();i.featureId=void 0!==t?t:null}let a=0;for(let e=0;e<r;++e){const t=n[e](i);t&&(o[a]=t,a+=1)}return o.length=a,o}}function x(e,t){const r=S(e,"",t),n=A(e,"",t),i=function(e,t){const r="text-",n=P(e,r+"value",t);if(!n)return null;const i=S(e,r,t),o=S(e,r+"background-",t),s=A(e,r,t),a=A(e,r+"background-",t),l=P(e,r+"font",t),c=T(e,r+"max-angle",t),u=T(e,r+"offset-x",t),h=T(e,r+"offset-y",t),d=C(e,r+"overflow",t),p=P(e,r+"placement",t),m=T(e,r+"repeat",t),g=k(e,r+"scale",t),y=C(e,r+"rotate-with-view",t),v=T(e,r+"rotation",t),_=P(e,r+"align",t),b=P(e,r+"justify",t),w=P(e,r+"baseline",t),E=R(e,r+"padding",t),x=N(e,r+"declutter-mode"),O=new f({declutterMode:x});return function(e){if(O.setText(n(e)),i&&O.setFill(i(e)),o&&O.setBackgroundFill(o(e)),s&&O.setStroke(s(e)),a&&O.setBackgroundStroke(a(e)),l&&O.setFont(l(e)),c&&O.setMaxAngle(c(e)),u&&O.setOffsetX(u(e)),h&&O.setOffsetY(h(e)),d&&O.setOverflow(d(e)),p){const t=p(e);if("point"!==t&&"line"!==t)throw new Error("Expected point or line for text-placement");O.setPlacement(t)}if(m&&O.setRepeat(m(e)),g&&O.setScale(g(e)),y&&O.setRotateWithView(y(e)),v&&O.setRotation(v(e)),_){const t=_(e);if("left"!==t&&"center"!==t&&"right"!==t&&"end"!==t&&"start"!==t)throw new Error("Expected left, right, center, start, or end for text-align");O.setTextAlign(t)}if(b){const t=b(e);if("left"!==t&&"right"!==t&&"center"!==t)throw new Error("Expected left, right, or center for text-justify");O.setJustify(t)}if(w){const t=w(e);if("bottom"!==t&&"top"!==t&&"middle"!==t&&"alphabetic"!==t&&"hanging"!==t)throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");O.setTextBaseline(t)}return E&&O.setPadding(E(e)),O}}(e,t),a=function(e,t){return"icon-src"in e?function(e,t){const r="icon-",n=r+"src",i=G(e[n],n),o=D(e,r+"anchor",t),s=k(e,r+"scale",t),a=T(e,r+"opacity",t),c=D(e,r+"displacement",t),u=T(e,r+"rotation",t),h=C(e,r+"rotate-with-view",t),d=L(e,r+"anchor-origin"),f=M(e,r+"anchor-x-units"),p=M(e,r+"anchor-y-units"),m=function(e,t){const r=e[t];if(void 0!==r)return U(r,t)}(e,r+"color"),g=function(e,t){const r=e[t];if(void 0!==r){if("string"!=typeof r)throw new Error(`Expected a string for ${t}`);return r}}(e,r+"cross-origin"),y=function(e,t){const r=e[t];if(void 0!==r)return $(r,t)}(e,r+"offset"),v=L(e,r+"offset-origin"),_=F(e,r+"width"),b=F(e,r+"height"),w=j(e,r+"size"),E=N(e,r+"declutter-mode"),x=new l.A({src:i,anchorOrigin:d,anchorXUnits:f,anchorYUnits:p,color:m,crossOrigin:g,offset:y,offsetOrigin:v,height:b,width:_,size:w,declutterMode:E});return function(e){return a&&x.setOpacity(a(e)),c&&x.setDisplacement(c(e)),u&&x.setRotation(u(e)),h&&x.setRotateWithView(h(e)),s&&x.setScale(s(e)),o&&x.setAnchor(o(e)),x}}(e,t):"shape-points"in e?function(e,t){const r="shape-",n=r+"points",i=r+"radius",o=z(e[n],n),s=z(e[i],i),a=S(e,r,t),l=A(e,r,t),u=k(e,r+"scale",t),h=D(e,r+"displacement",t),d=T(e,r+"rotation",t),f=C(e,r+"rotate-with-view",t),p=F(e,r+"radius2"),m=F(e,r+"angle"),g=N(e,r+"declutter-mode"),y=new c.A({points:o,radius:s,radius2:p,angle:m,declutterMode:g});return function(e){return a&&y.setFill(a(e)),l&&y.setStroke(l(e)),h&&y.setDisplacement(h(e)),d&&y.setRotation(d(e)),f&&y.setRotateWithView(f(e)),u&&y.setScale(u(e)),y}}(e,t):"circle-radius"in e?function(e,t){const r="circle-",n=S(e,r,t),i=A(e,r,t),o=T(e,r+"radius",t),a=k(e,r+"scale",t),l=D(e,r+"displacement",t),c=T(e,r+"rotation",t),u=C(e,r+"rotate-with-view",t),h=N(e,r+"declutter-mode"),d=new s.A({radius:5,declutterMode:h});return function(e){return o&&d.setRadius(o(e)),n&&d.setFill(n(e)),i&&d.setStroke(i(e)),l&&d.setDisplacement(l(e)),c&&d.setRotation(c(e)),u&&d.setRotateWithView(u(e)),a&&d.setScale(a(e)),d}}(e,t):null}(e,t),u=T(e,"z-index",t);if(!(r||n||i||a||(0,b.p)(e)))throw new Error("No fill, stroke, point, or text symbolizer properties in style: "+JSON.stringify(e));const h=new o.Ay;return function(e){let t=!0;if(r){const n=r(e);n&&(t=!1),h.setFill(n)}if(n){const r=n(e);r&&(t=!1),h.setStroke(r)}if(i){const r=i(e);r&&(t=!1),h.setText(r)}if(a){const r=a(e);r&&(t=!1),h.setImage(r)}return u&&h.setZIndex(u(e)),t?null:h}}function S(e,t,r){let n;if(t+"fill-pattern-src"in e)n=function(e,t,r){const n=P(e,t+"pattern-src",r),i=I(e,t+"pattern-offset",r),o=I(e,t+"pattern-size",r),s=O(e,t+"color",r);return function(e){return{src:n(e),offset:i&&i(e),size:o&&o(e),color:s&&s(e)}}}(e,t+"fill-",r);else{if("none"===e[t+"fill-color"])return e=>null;n=O(e,t+"fill-color",r)}if(!n)return null;const i=new a.A;return function(e){const t=n(e);return t===m.qV?null:(i.setColor(t),i)}}function A(e,t,r){const n=T(e,t+"stroke-width",r),i=O(e,t+"stroke-color",r);if(!n&&!i)return null;const o=P(e,t+"stroke-line-cap",r),s=P(e,t+"stroke-line-join",r),a=R(e,t+"stroke-line-dash",r),l=T(e,t+"stroke-line-dash-offset",r),c=T(e,t+"stroke-miter-limit",r),h=new u.A;return function(e){if(i){const t=i(e);if(t===m.qV)return null;h.setColor(t)}if(n&&h.setWidth(n(e)),o){const t=o(e);if("butt"!==t&&"round"!==t&&"square"!==t)throw new Error("Expected butt, round, or square line cap");h.setLineCap(t)}if(s){const t=s(e);if("bevel"!==t&&"round"!==t&&"miter"!==t)throw new Error("Expected bevel, round, or miter line join");h.setLineJoin(t)}return a&&h.setLineDash(a(e)),l&&h.setLineDashOffset(l(e)),c&&h.setMiterLimit(c(e)),h}}function T(e,t,r){if(!(t in e))return;const n=g(e[t],p.wl,r);return function(e){return z(n(e),t)}}function P(e,t,r){if(!(t in e))return null;const n=g(e[t],p.cT,r);return function(e){return G(n(e),t)}}function C(e,t,r){if(!(t in e))return null;const n=g(e[t],p.T8,r);return function(e){const r=n(e);if("boolean"!=typeof r)throw new Error(`Expected a boolean for ${t}`);return r}}function O(e,t,r){if(!(t in e))return null;const n=g(e[t],p.mE,r);return function(e){return U(n(e),t)}}function R(e,t,r){if(!(t in e))return null;const n=g(e[t],p.Fq,r);return function(e){return $(n(e),t)}}function D(e,t,r){if(!(t in e))return null;const n=g(e[t],p.Fq,r);return function(e){const r=$(n(e),t);if(2!==r.length)throw new Error(`Expected two numbers for ${t}`);return r}}function I(e,t,r){if(!(t in e))return null;const n=g(e[t],p.Fq,r);return function(e){return B(n(e),t)}}function k(e,t,r){if(!(t in e))return null;const n=g(e[t],p.Fq|p.wl,r);return function(e){return r=n(e),i=t,"number"==typeof r?r:B(r,i);var r,i}}function F(e,t){const r=e[t];if(void 0!==r){if("number"!=typeof r)throw new Error(`Expected a number for ${t}`);return r}}function j(e,t){const r=e[t];if(void 0!==r){if("number"==typeof r)return(0,h.xq)(r);if(!Array.isArray(r))throw new Error(`Expected a number or size array for ${t}`);if(2!==r.length||"number"!=typeof r[0]||"number"!=typeof r[1])throw new Error(`Expected a number or size array for ${t}`);return r}}function L(e,t){const r=e[t];if(void 0!==r){if("bottom-left"!==r&&"bottom-right"!==r&&"top-left"!==r&&"top-right"!==r)throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${t}`);return r}}function M(e,t){const r=e[t];if(void 0!==r){if("pixels"!==r&&"fraction"!==r)throw new Error(`Expected pixels or fraction for ${t}`);return r}}function N(e,t){const r=e[t];if(void 0!==r){if("string"!=typeof r)throw new Error(`Expected a string for ${t}`);if("declutter"!==r&&"obstacle"!==r&&"none"!==r)throw new Error(`Expected declutter, obstacle, or none for ${t}`);return r}}function $(e,t){if(!Array.isArray(e))throw new Error(`Expected an array for ${t}`);const r=e.length;for(let n=0;n<r;++n)if("number"!=typeof e[n])throw new Error(`Expected an array of numbers for ${t}`);return e}function G(e,t){if("string"!=typeof e)throw new Error(`Expected a string for ${t}`);return e}function z(e,t){if("number"!=typeof e)throw new Error(`Expected a number for ${t}`);return e}function U(e,t){if("string"==typeof e)return e;const r=$(e,t),n=r.length;if(n<3||n>4)throw new Error(`Expected a color with 3 or 4 values for ${t}`);return r}function B(e,t){const r=$(e,t);if(2!==r.length)throw new Error(`Expected an array of two numbers for ${t}`);return r}const V="renderOrder";class K extends n.A{constructor(e){e=e||{};const t=Object.assign({},e);delete t.style,delete t.renderBuffer,delete t.updateWhileAnimating,delete t.updateWhileInteracting,super(t),this.declutter_=e.declutter?String(e.declutter):void 0,this.renderBuffer_=void 0!==e.renderBuffer?e.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(e.style),this.updateWhileAnimating_=void 0!==e.updateWhileAnimating&&e.updateWhileAnimating,this.updateWhileInteracting_=void 0!==e.updateWhileInteracting&&e.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(e){return super.getFeatures(e)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(V)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(e,t){const r=this.getDeclutter();r in e.declutter==0&&(e.declutter[r]=new i.A(9)),this.getRenderer().renderDeclutter(e,t)}setRenderOrder(e){this.set(V,e)}setStyle(e){this.style_=void 0===e?o.d1:e;const t=function(e){if(void 0===e)return o.d1;if(!e)return null;if("function"==typeof e)return e;if(e instanceof o.Ay)return e;if(!Array.isArray(e))return E([e]);if(0===e.length)return[];const t=e.length,r=e[0];if(r instanceof o.Ay){const r=new Array(t);for(let n=0;n<t;++n){const t=e[n];if(!(t instanceof o.Ay))throw new Error("Expected a list of style instances");r[n]=t}return r}if("style"in r){const r=new Array(t);for(let n=0;n<t;++n){const t=e[n];if(!("style"in t))throw new Error("Expected a list of rules with a style property");r[n]=t}return function(e){const t=(0,p.SR)(),r=function(e,t){const r=e.length,n=new Array(r);for(let i=0;i<r;++i){const r=e[i],o="filter"in r?g(r.filter,p.T8,t):w;let s;if(Array.isArray(r.style)){const e=r.style.length;s=new Array(e);for(let n=0;n<e;++n)s[n]=x(r.style[n],t)}else s=[x(r.style,t)];n[i]={filter:o,styles:s}}return function(t){const i=[];let o=!1;for(let s=0;s<r;++s)if((0,n[s].filter)(t)&&(!e[s].else||!o)){o=!0;for(const e of n[s].styles){const r=e(t);r&&i.push(r)}}return i}}(e,t),n={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""};return function(e,i){if(n.properties=e.getPropertiesInternal(),n.resolution=i,t.featureId){const t=e.getId();n.featureId=void 0!==t?t:null}return t.geometryType&&(n.geometryType=(0,p.Ye)(e.getGeometry())),r(n)}}(r)}return E(e)}(e);this.styleFunction_=null===e?void 0:(0,o.mC)(t),this.changed()}}const q=K},59916:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(73626);class i extends n.A{constructor(e){super(e=e||{})}}const o=i;var s=r(87383),a=r(39915),l=r(32769),c=r(37377),u=r(44509),h=r(12940);class d extends s.A{constructor(e){super(e),this.image=null}getImage(){return this.image?this.image.getImage():null}prepareFrame(e){const t=e.layerStatesArray[e.layerIndex],r=e.pixelRatio,n=e.viewState,i=n.resolution,o=this.getLayer().getSource(),s=e.viewHints;let c=e.extent;if(void 0!==t.extent&&(c=(0,u._N)(c,(0,h.SD)(t.extent,n.projection))),!s[l.A.ANIMATING]&&!s[l.A.INTERACTING]&&!(0,u.Im)(c))if(o){const e=n.projection,t=o.getImage(c,i,r,e);t&&(this.loadImage(t)?this.image=t:t.getState()===a.A.EMPTY&&(this.image=null))}else this.image=null;return!!this.image}getData(e){const t=this.frameState;if(!t)return null;const r=this.getLayer(),n=(0,c.Bb)(t.pixelToCoordinateTransform,e.slice()),i=r.getExtent();if(i&&!(0,u.Ym)(i,n))return null;const o=this.image.getExtent(),s=this.image.getImage(),a=(0,u.RG)(o),l=Math.floor(s.width*((n[0]-o[0])/a));if(l<0||l>=s.width)return null;const h=(0,u.Oq)(o),d=Math.floor(s.height*((o[3]-n[1])/h));return d<0||d>=s.height?null:this.getImageData(s,l,d)}renderFrame(e,t){const r=this.image,n=r.getExtent(),i=r.getResolution(),[o,s]=Array.isArray(i)?i:[i,i],a=r.getPixelRatio(),l=e.layerStatesArray[e.layerIndex],d=e.pixelRatio,f=e.viewState,p=f.center,m=f.resolution,g=d*o/(m*a),y=d*s/(m*a);this.prepareContainer(e,t);const v=this.context.canvas.width,_=this.context.canvas.height,b=this.getRenderContext(e);let w=!1,E=!0;if(l.extent){const t=(0,h.SD)(l.extent,f.projection);E=(0,u.HY)(t,e.extent),w=E&&!(0,u.ms)(t,e.extent),w&&this.clipUnrotated(b,e,t)}const x=r.getImage(),S=(0,c.Zz)(this.tempTransform,v/2,_/2,g,y,0,a*(n[0]-p[0])/o,a*(p[1]-n[3])/s);this.renderedResolution=s*d/a;const A=x.width*S[0],T=x.height*S[3];if(this.getLayer().getSource().getInterpolate()||(b.imageSmoothingEnabled=!1),this.preRender(b,e),E&&A>=.5&&T>=.5){const e=S[4],t=S[5],r=l.opacity;1!==r&&(b.save(),b.globalAlpha=r),b.drawImage(x,0,0,+x.width,+x.height,e,t,A,T),1!==r&&b.restore()}return this.postRender(this.context,e),w&&b.restore(),b.imageSmoothingEnabled=!0,this.container}}const f=d,p=class extends o{constructor(e){super(e)}createRenderer(){return new f(this)}getData(e){return super.getData(e)}}},73626:(e,t,r)=>{"use strict";r.d(t,{A:()=>f,l:()=>d});var n=r(93450),i=r(24187),o=r(59014),s=r(45630),a=r(95854),l=r(30878),c=r(44509),u=r(94456);class h extends n.A{constructor(e){const t=Object.assign({},e);delete t.source,super(t),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,e.render&&(this.render=e.render),e.map&&this.setMap(e.map),this.addChangeListener(o.A.SOURCE,this.handleSourcePropertyChange_);const r=e.source?e.source:null;this.setSource(r)}getLayersArray(e){return(e=e||[]).push(this),e}getLayerStatesArray(e){return(e=e||[]).push(this.getLayerState()),e}getSource(){return this.get(o.A.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const e=this.getSource();return e?e.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,u.JH)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const e=this.getSource();e&&(this.sourceChangeKey_=(0,u.KT)(e,i.A.CHANGE,this.handleSourceChange_,this),"ready"===e.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent("sourceready")}),0))),this.changed()}getFeatures(e){return this.renderer_?this.renderer_.getFeatures(e):Promise.resolve([])}getData(e){return this.renderer_&&this.rendered?this.renderer_.getData(e):null}isVisible(e){let t;const r=this.getMapInternal();let n;!e&&r&&(e=r.getView()),t=e instanceof a.Ay?{viewState:e.getState(),extent:e.calculateExtent()}:e,!t.layerStatesArray&&r&&(t.layerStatesArray=r.getLayerGroup().getLayerStatesArray()),n=t.layerStatesArray?t.layerStatesArray.find((e=>e.layer===this)):this.getLayerState();const i=this.getExtent();return d(n,t.viewState)&&(!i||(0,c.HY)(i,t.extent))}getAttributions(e){if(!this.isVisible(e))return[];const t=this.getSource()?.getAttributions();if(!t)return[];let r=t(e instanceof a.Ay?e.getViewStateAndExtent():e);return Array.isArray(r)||(r=[r]),r}render(e,t){const r=this.getRenderer();return r.prepareFrame(e)?(this.rendered=!0,r.renderFrame(e,t)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(e,t){}renderDeferred(e){const t=this.getRenderer();t&&t.renderDeferred(e)}setMapInternal(e){e||this.unrender(),this.set(o.A.MAP,e)}getMapInternal(){return this.get(o.A.MAP)}setMap(e){this.mapPrecomposeKey_&&((0,u.JH)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&((0,u.JH)(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=(0,u.KT)(e,s.A.PRECOMPOSE,(e=>{const t=e.frameState.layerStatesArray,r=this.getLayerState(!1);(0,l.v)(!t.some((function(e){return e.layer===r.layer})),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),t.push(r)})),this.mapRenderKey_=(0,u.KT)(this,i.A.CHANGE,e.render,e),this.changed())}setSource(e){this.set(o.A.SOURCE,e)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function d(e,t){if(!e.visible)return!1;const r=t.resolution;if(r<e.minResolution||r>=e.maxResolution)return!1;const n=t.zoom;return n>e.minZoom&&n<=e.maxZoom}const f=h},59014:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={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"}},12895:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(91430),i=r(34539);class o extends n.A{constructor(e){super(e)}createRenderer(){return new i.A(this,{cacheSize:this.getCacheSize()})}}const s=o},56106:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"}},79178:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(59722),i=r(21347),o=r(87383),s=r(9539),a=r(45630),l=r(32769),c=r(12049),u=r(44509),h=r(83085),d=r(75454),f=r(30444),p=r(12940),m=r(98629),g=r(9535);class y extends o.A{constructor(e){super(e),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.clipped_=!1,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,u.S5)(),this.wrappedRenderedExtent_=(0,u.S5)(),this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedPixelRatio_=1,this.renderedRenderOrder_=null,this.renderedFrameDeclutter_,this.replayGroup_=null,this.replayGroupChanged=!0,this.clipping=!0,this.targetContext_=null,this.opacity_=1}renderWorlds(e,t,r){const n=t.extent,i=t.viewState,o=i.center,a=i.resolution,c=i.projection,h=i.rotation,d=c.getExtent(),f=this.getLayer().getSource(),p=this.getLayer().getDeclutter(),m=t.pixelRatio,g=t.viewHints,y=!(g[l.A.ANIMATING]||g[l.A.INTERACTING]),v=this.context,_=Math.round((0,u.RG)(n)/a*m),b=Math.round((0,u.Oq)(n)/a*m),w=f.getWrapX()&&c.canWrapX(),E=w?(0,u.RG)(d):null,x=w?Math.ceil((n[2]-d[2])/E)+1:1;let S=w?Math.floor((n[0]-d[0])/E):0;do{let n=this.getRenderTransform(o,a,0,m,_,b,S*E);t.declutter&&(n=n.slice(0)),e.execute(v,[v.canvas.width,v.canvas.height],n,h,y,void 0===r?s.y2:r?s.$i:s.x$,r?p&&t.declutter[p]:void 0)}while(++S<x)}setDrawContext_(){1!==this.opacity_&&(this.targetContext_=this.context,this.context=(0,h.Y)(this.context.canvas.width,this.context.canvas.height,o.B))}resetDrawContext_(){if(1!==this.opacity_){const e=this.targetContext_.globalAlpha;this.targetContext_.globalAlpha=this.opacity_,this.targetContext_.drawImage(this.context.canvas,0,0),this.targetContext_.globalAlpha=e,(0,h.Yg)(this.context),o.B.push(this.context.canvas),this.context=this.targetContext_,this.targetContext_=null}}renderDeclutter(e){this.replayGroup_&&this.getLayer().getDeclutter()&&this.renderWorlds(this.replayGroup_,e,!0)}renderDeferredInternal(e){this.replayGroup_&&(this.replayGroup_.renderDeferred(),this.clipped_&&this.context.restore(),this.resetDrawContext_())}renderFrame(e,t){const r=e.layerStatesArray[e.layerIndex];this.opacity_=r.opacity;const n=e.viewState;this.prepareContainer(e,t);const i=this.context,o=this.replayGroup_;let s=o&&!o.isEmpty();if(!s&&!this.getLayer().hasListener(a.A.PRERENDER)&&!this.getLayer().hasListener(a.A.POSTRENDER))return null;this.setDrawContext_(),this.preRender(i,e);const l=n.projection;if(this.clipped_=!1,s&&r.extent&&this.clipping){const t=(0,p.SD)(r.extent,l);s=(0,u.HY)(t,e.extent),this.clipped_=s&&!(0,u.ms)(t,e.extent),this.clipped_&&this.clipUnrotated(i,e,t)}return s&&this.renderWorlds(o,e,!this.getLayer().getDeclutter()&&void 0),!e.declutter&&this.clipped_&&i.restore(),this.postRender(i,e),this.renderedRotation_!==n.rotation&&(this.renderedRotation_=n.rotation,this.hitDetectionImageData_=null),e.declutter||this.resetDrawContext_(),this.container}getFeatures(e){return new Promise((t=>{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const e=this.frameState.size.slice(),t=this.renderedCenter_,r=this.renderedResolution_,n=this.renderedRotation_,i=this.renderedProjection_,o=this.wrappedRenderedExtent_,s=this.getLayer(),a=[],l=e[0]*c.tF,h=e[1]*c.tF;a.push(this.getRenderTransform(t,r,n,c.tF,l,h,0).slice());const f=s.getSource(),m=i.getExtent();if(f.getWrapX()&&i.canWrapX()&&!(0,u.ms)(m,o)){let e=o[0];const i=(0,u.RG)(m);let s,d=0;for(;e<m[0];)--d,s=i*d,a.push(this.getRenderTransform(t,r,n,c.tF,l,h,s).slice()),e+=i;for(d=0,e=o[2];e>m[2];)++d,s=i*d,a.push(this.getRenderTransform(t,r,n,c.tF,l,h,s).slice()),e-=i}const g=(0,p.Tf)();this.hitDetectionImageData_=(0,c._7)(e,a,this.renderedFeatures_,s.getStyleFunction(),o,r,n,(0,d.j)(r,this.renderedPixelRatio_),g?i:null)}t((0,c.F8)(e,this.renderedFeatures_,this.hitDetectionImageData_))}))}forEachFeatureAtCoordinate(e,t,r,n,i){if(!this.replayGroup_)return;const o=t.viewState.resolution,s=t.viewState.rotation,a=this.getLayer(),l={},c=function(e,t,r){const o=(0,m.v6)(e),s=l[o];if(s){if(!0!==s&&r<s.distanceSq){if(0===r)return l[o]=!0,i.splice(i.lastIndexOf(s),1),n(e,a,t);s.geometry=t,s.distanceSq=r}}else{if(0===r)return l[o]=!0,n(e,a,t);i.push(l[o]={feature:e,layer:a,geometry:t,distanceSq:r,callback:n})}};let u;const h=[this.replayGroup_],d=this.getLayer().getDeclutter();return h.some((n=>u=n.forEachFeatureAtCoordinate(e,o,s,r,c,d&&t.declutter[d]?t.declutter[d].all().map((e=>e.value)):null))),u}handleFontsChanged(){const e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()}handleStyleImageChange_(e){this.renderIfReadyAndVisible()}prepareFrame(e){const t=this.getLayer(),r=t.getSource();if(!r)return!1;const n=e.viewHints[l.A.ANIMATING],o=e.viewHints[l.A.INTERACTING],a=t.getUpdateWhileAnimating(),c=t.getUpdateWhileInteracting();if(this.ready&&!a&&n||!c&&o)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const h=e.extent,m=e.viewState,y=m.projection,v=m.resolution,_=e.pixelRatio,b=t.getRevision(),w=t.getRenderBuffer();let E=t.getRenderOrder();void 0===E&&(E=d.Eo);const x=m.center.slice(),S=(0,u.r)(h,w*v),A=S.slice(),T=[S.slice()],P=y.getExtent();if(r.getWrapX()&&y.canWrapX()&&!(0,u.ms)(P,e.extent)){const e=(0,u.RG)(P),t=Math.max((0,u.RG)(S)/2,e);S[0]=P[0]-t,S[2]=P[2]+t,(0,g.Li)(x,y);const r=(0,u.Li)(T[0],y);r[0]<P[0]&&r[2]<P[2]?T.push([r[0]+e,r[1],r[2]+e,r[3]]):r[0]>P[0]&&r[2]>P[2]&&T.push([r[0]-e,r[1],r[2]-e,r[3]])}if(this.ready&&this.renderedResolution_==v&&this.renderedRevision_==b&&this.renderedRenderOrder_==E&&this.renderedFrameDeclutter_===!!e.declutter&&(0,u.ms)(this.wrappedRenderedExtent_,S))return(0,f.aI)(this.renderedExtent_,A)||(this.hitDetectionImageData_=null,this.renderedExtent_=A),this.renderedCenter_=x,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const C=new i.A((0,d.gY)(v,_),S,v,_),O=(0,p.Tf)();let R;if(O){for(let e=0,t=T.length;e<t;++e){const t=T[e],n=(0,p.JR)(t,y);r.loadFeatures(n,(0,p.vN)(v,y),O)}R=(0,p.FO)(O,y)}else for(let e=0,t=T.length;e<t;++e)r.loadFeatures(T[e],v,y);const D=(0,d.j)(v,_);let I=!0;const k=(e,r)=>{let n;const i=e.getStyleFunction()||t.getStyleFunction();if(i&&(n=i(e,v)),n){const t=this.renderFeature(e,D,n,C,R,this.getLayer().getDeclutter(),r);I=I&&!t}},F=(0,p.JR)(S,y),j=r.getFeaturesInExtent(F);E&&j.sort(E);for(let e=0,t=j.length;e<t;++e)k(j[e],e);this.renderedFeatures_=j,this.ready=I;const L=C.finish(),M=new s.Ay(S,v,_,r.getOverlaps(),L,t.getRenderBuffer(),!!e.declutter);return this.renderedResolution_=v,this.renderedRevision_=b,this.renderedRenderOrder_=E,this.renderedFrameDeclutter_=!!e.declutter,this.renderedExtent_=A,this.wrappedRenderedExtent_=S,this.renderedCenter_=x,this.renderedProjection_=y,this.renderedPixelRatio_=_,this.replayGroup_=M,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(e,t,r,n,i,o,s){if(!r)return!1;let a=!1;if(Array.isArray(r))for(let l=0,c=r.length;l<c;++l)a=(0,d.nl)(n,e,r[l],t,this.boundHandleStyleImageChange_,i,o,s)||a;else a=(0,d.nl)(n,e,r,t,this.boundHandleStyleImageChange_,i,o,s);return a}}const v=y;class _ extends n.A{constructor(e){super(e)}createRenderer(){return new v(this)}}const b=_},43802:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(59722),i=r(21347),o=r(9539),s=r(34539),a=r(20884),l=r(32769),c=r(83050),u=r(12049),h=r(37377),d=r(30444),f=r(44509),p=r(75454),m=r(98629),g=r(53908),y=r(9535);const v={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},_={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]};class b extends s.A{constructor(e,t){super(e,t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.renderedLayerRevision_,this.renderedPixelToCoordinateTransform_=null,this.renderedRotation_,this.renderedOpacity_=1,this.tmpTransform_=(0,h.vt)(),this.tileClipContexts_=null}drawTile(e,t,r,n,i,o,s,a){this.updateExecutorGroup_(e,t.pixelRatio,t.viewState.projection),this.tileImageNeedsRender_(e)&&this.renderTileImage_(e,t),super.drawTile(e,t,r,n,i,o,s,a)}getTile(e,t,r,n){const i=this.getOrCreateTile(e,t,r,n);if(!i)return null;const o=n.viewState.resolution,s=n.viewHints;return!(!s[l.A.ANIMATING]&&!s[l.A.INTERACTING])&&i.wantedResolution||(i.wantedResolution=o),i}prepareFrame(e){const t=this.getLayer().getRevision();return this.renderedLayerRevision_!==t&&(this.renderedLayerRevision_=t,this.renderedTiles.length=0),super.prepareFrame(e)}updateExecutorGroup_(e,t,r){const n=this.getLayer(),s=n.getRevision(),l=n.getRenderOrder()||null,c=e.wantedResolution,u=e.getReplayState(n);if(!u.dirty&&u.renderedResolution===c&&u.renderedRevision==s&&u.renderedRenderOrder==l)return;const h=n.getSource(),d=!!n.getDeclutter(),g=h.getTileGrid(),y=h.getTileGridForProjection(r).getTileCoordExtent(e.wrappedTileCoord),v=h.getSourceTiles(t,r,e),_=(0,m.v6)(n);delete e.hitDetectionImageData[_],e.executorGroups[_]=[],u.dirty=!1;for(let r=0,s=v.length;r<s;++r){const s=v[r];if(s.getState()!=a.A.LOADED)continue;const m=s.tileCoord,b=g.getTileCoordExtent(m),w=(0,f._N)(y,b),E=(0,f.r)(w,n.getRenderBuffer()*c,this.tempExtent),x=(0,f.aI)(b,w)?null:E,S=new i.A(0,w,c,t),A=(0,p.j)(c,t),T=function(e,t){let r;const i=e.getStyleFunction()||n.getStyleFunction();if(i&&(r=i(e,c)),r){const n=this.renderFeature(e,A,r,S,d,t);u.dirty=u.dirty||n}},P=s.getFeatures();l&&l!==u.renderedRenderOrder&&P.sort(l);for(let e=0,t=P.length;e<t;++e){const t=P[e];x&&!(0,f.HY)(x,t.getGeometry().getExtent())||T.call(this,t,e)}const C=S.finish(),O="vector"!==n.getRenderMode()&&d&&1===v.length?null:w,R=new o.Ay(O,c,t,h.getOverlaps(),C,n.getRenderBuffer(),!0);e.executorGroups[_].push(R)}u.renderedRevision=s,u.renderedRenderOrder=l,u.renderedResolution=c}forEachFeatureAtCoordinate(e,t,r,n,i){const o=t.viewState.resolution,s=t.viewState.rotation;r=null==r?0:r;const a=this.getLayer(),l=a.getSource().getTileGridForProjection(t.viewState.projection),c=(0,f.Tr)([e]);(0,f.r)(c,o*r,c);const u={},h=function(e,t,r){let o=e.getId();void 0===o&&(o=(0,m.v6)(e));const s=u[o];if(s){if(!0!==s&&r<s.distanceSq){if(0===r)return u[o]=!0,i.splice(i.lastIndexOf(s),1),n(e,a,t);s.geometry=t,s.distanceSq=r}}else{if(0===r)return u[o]=!0,n(e,a,t);i.push(u[o]={feature:e,layer:a,geometry:t,distanceSq:r,callback:n})}},d=this.renderedTiles;let p;for(let n=0,i=d.length;!p&&n<i;++n){const i=d[n],u=l.getTileCoordExtent(i.wrappedTileCoord);if(!(0,f.HY)(u,c))continue;const g=(0,m.v6)(a),y=[i.executorGroups[g]],v=a.getDeclutter();y.some((n=>{const i=v?t.declutter[v].all().map((e=>e.value)):null;for(let t=0,a=n.length;t<a;++t){const a=n[t];if(p=a.forEachFeatureAtCoordinate(e,o,s,r,h,i),p)return!0}}))}return p}getFeatures(e){return new Promise(((t,r)=>{const n=this.getLayer(),i=(0,m.v6)(n),o=n.getSource(),s=this.renderedProjection,l=s.getExtent(),c=this.renderedResolution,d=o.getTileGridForProjection(s),p=(0,h.Bb)(this.renderedPixelToCoordinateTransform_,e.slice()),v=d.getTileCoordForCoordAndResolution(p,c);let _;for(let e=0,t=this.renderedTiles.length;e<t;++e)if(v.toString()===this.renderedTiles[e].tileCoord.toString()){if(_=this.renderedTiles[e],_.getState()===a.A.LOADED){const e=d.getTileCoordExtent(_.tileCoord);o.getWrapX()&&s.canWrapX()&&!(0,f.ms)(l,e)&&(0,y.Li)(p,s);break}_=void 0}if(!_||_.loadingSourceTiles>0)return void t([]);const b=d.getTileCoordExtent(_.wrappedTileCoord),w=(0,f.Py)(b),E=[(p[0]-w[0])/c,(w[1]-p[1])/c],x=_.getSourceTiles().reduce((function(e,t){return e.concat(t.getFeatures())}),[]);let S=_.hitDetectionImageData[i];if(!S){const e=(0,g.xq)(d.getTileSize(d.getZForResolution(c,o.zDirection))),t=this.renderedRotation_,r=[this.getRenderTransform(d.getTileCoordCenter(_.wrappedTileCoord),c,0,u.tF,e[0]*u.tF,e[1]*u.tF,0)];S=(0,u._7)(e,r,x,n.getStyleFunction(),d.getTileCoordExtent(_.wrappedTileCoord),_.getReplayState(n).renderedResolution,t),_.hitDetectionImageData[i]=S}t((0,u.F8)(E,x,S))}))}getFeaturesInExtent(e){const t=[],r=this.getTileCache();if(0===r.getCount())return t;const n=this.getLayer().getSource().tileGrid,i=n.getZForResolution(this.renderedResolution);return r.forEach((r=>{if(r.tileCoord[0]!==i||r.getState()!==a.A.LOADED)return;const o=r.getSourceTiles();for(let r=0,i=o.length;r<i;++r){const i=o[r],s=i.tileCoord;if((0,f.HY)(e,n.getTileCoordExtent(s))){const r=i.getFeatures();if(r)for(let n=0,i=r.length;n<i;++n){const i=r[n],o=i.getGeometry();(0,f.HY)(e,o.getExtent())&&t.push(i)}}}})),t}handleFontsChanged(){const e=this.getLayer();e.getVisible()&&void 0!==this.renderedLayerRevision_&&e.changed()}handleStyleImageChange_(e){this.renderIfReadyAndVisible()}renderDeclutter(e,t){const r=this.context,n=r.globalAlpha;r.globalAlpha=t.opacity;const i=e.viewHints,s=!(i[l.A.ANIMATING]||i[l.A.INTERACTING]),a=this.renderedTiles;for(let t=0,r=a.length;t<r;++t){const r=a[t],n=r.executorGroups[(0,m.v6)(this.getLayer())],i=this.getLayer().getDeclutter();if(n)for(let t=n.length-1;t>=0;--t)n[t].execute(this.context,[this.context.canvas.width,this.context.canvas.height],this.getTileRenderTransform(r,e),e.viewState.rotation,s,o.$i,i?e.declutter[i]:void 0)}r.globalAlpha=n}renderDeferredInternal(e){const t=this.renderedTiles.reduce(((e,t,r)=>(t.executorGroups[(0,m.v6)(this.getLayer())].forEach((t=>e.push({executorGroup:t,index:r}))),e)),[]),r=t.map((({executorGroup:e})=>e.getDeferredZIndexContexts())),n={};for(let e=0,r=t.length;e<r;++e){const r=t[e].executorGroup.getDeferredZIndexContexts();for(const e in r)n[e]=!0}Object.keys(n).sort(d.V_).map(Number).forEach((e=>{r.forEach(((r,n)=>{r[e]&&(r[e].forEach((e=>{const{executorGroup:r,index:i}=t[n],o=r.getRenderedContext(),s=o.globalAlpha;o.globalAlpha=this.renderedOpacity_;const a=this.tileClipContexts_[i];a&&a.draw(o),e.draw(o),a&&o.restore(),o.globalAlpha=s,e.clear()})),r[e].length=0)}))}))}getTileRenderTransform(e,t){const r=t.pixelRatio,n=t.viewState,i=n.center,o=n.resolution,s=n.rotation,a=t.size,l=Math.round(a[0]*r),c=Math.round(a[1]*r),u=this.getLayer().getSource().getTileGridForProjection(t.viewState.projection),d=e.tileCoord,f=u.getTileCoordExtent(e.wrappedTileCoord),p=u.getTileCoordExtent(d,this.tempExtent)[0]-f[0];return(0,h.lw)((0,h.hs)(this.inversePixelTransform.slice(),1/r,1/r),this.getRenderTransform(i,o,s,r,l,c,p))}postRender(e,t){const r=t.viewHints,n=!(r[l.A.ANIMATING]||r[l.A.INTERACTING]);this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice(),this.renderedRotation_=t.viewState.rotation,this.renderedOpacity_=t.layerStatesArray[t.layerIndex].opacity;const i=this.getLayer(),s=i.getRenderMode(),a=e.globalAlpha;e.globalAlpha=this.renderedOpacity_;const u=i.getDeclutter(),h=u?_[s].filter((e=>!o.$i.includes(e))):_[s],d=t.viewState,p=d.rotation,g=i.getSource(),y=g.getTileGridForProjection(d.projection).getZForResolution(d.resolution,g.zDirection),v=this.renderedTiles,b=[],w=[],E=[];let x=!0;for(let r=v.length-1;r>=0;--r){const o=v[r];x=x&&!o.getReplayState(i).dirty;const s=o.executorGroups[(0,m.v6)(i)].filter((e=>e.hasExecutors(h)));if(0===s.length)continue;const a=this.getTileRenderTransform(o,t),l=o.tileCoord[0];let d=!1;const g=s[0].getClipCoords(a);let _,S=e;if(g){_=new c.A,S=_.getContext();for(let e=0,t=b.length;e<t;++e)if(y!==l&&l<w[e]){const t=b[e];(0,f.HY)([g[0],g[3],g[4],g[7]],[t[0],t[3],t[4],t[7]])&&(d||(S.save(),d=!0),S.beginPath(),S.moveTo(g[0],g[1]),S.lineTo(g[2],g[3]),S.lineTo(g[4],g[5]),S.lineTo(g[6],g[7]),S.moveTo(t[6],t[7]),S.lineTo(t[4],t[5]),S.lineTo(t[2],t[3]),S.lineTo(t[0],t[1]),S.clip())}b.push(g),w.push(l)}for(let r=0,i=s.length;r<i;++r)s[r].execute(e,[e.canvas.width,e.canvas.height],a,p,n,h,t.declutter?.[u]);d&&(S===e?S.restore():E[r]=_)}e.globalAlpha=a,this.ready=x,this.tileClipContexts_=E,t.declutter||this.renderDeferredInternal(t),super.postRender(e,t)}renderFeature(e,t,r,n,i,o){if(!r)return!1;let s=!1;if(Array.isArray(r))for(let a=0,l=r.length;a<l;++a)s=(0,p.nl)(n,e,r[a],t,this.boundHandleStyleImageChange_,void 0,i,o)||s;else s=(0,p.nl)(n,e,r,t,this.boundHandleStyleImageChange_,void 0,i,o);return s}tileImageNeedsRender_(e){const t=this.getLayer();if("vector"===t.getRenderMode())return!1;const r=e.getReplayState(t),n=t.getRevision(),i=e.wantedResolution;return r.renderedTileResolution!==i||r.renderedTileRevision!==n}renderTileImage_(e,t){const r=this.getLayer(),n=e.getReplayState(r),i=r.getRevision(),o=e.executorGroups[(0,m.v6)(r)];n.renderedTileRevision=i;const s=e.wrappedTileCoord,a=s[0],l=r.getSource();let c=t.pixelRatio;const u=t.viewState.projection,d=l.getTileGridForProjection(u),f=d.getResolution(e.tileCoord[0]),p=t.pixelRatio/e.wantedResolution*f,g=d.getResolution(a),y=e.getContext();c=Math.round(Math.max(c,p/c));const _=l.getTilePixelSize(a,c,u);y.canvas.width=_[0],y.canvas.height=_[1];const b=c/p;if(1!==b){const e=(0,h.cL)(this.tmpTransform_);(0,h.hs)(e,b,b),y.setTransform.apply(y,e)}const w=d.getTileCoordExtent(s,this.tempExtent),E=p/g,x=(0,h.cL)(this.tmpTransform_);(0,h.hs)(x,E,-E),(0,h.Tl)(x,-w[0],-w[3]);for(let e=0,t=o.length;e<t;++e)o[e].execute(y,[y.canvas.width*b,y.canvas.height*b],x,0,!0,v[r.getRenderMode()],null);n.renderedTileResolution=e.wantedResolution}}const w=b;var E=r(56106),x=r(30878);class S extends n.A{constructor(e){e=e||{};const t=Object.assign({},e);delete t.preload;const r=void 0===e.cacheSize?0:e.cacheSize;delete e.cacheSize,delete t.useInterimTilesOnError,super(t),this.on,this.once,this.un,this.cacheSize_=r;const n=e.renderMode||"hybrid";(0,x.v)("hybrid"==n||"vector"==n,"`renderMode` must be `'hybrid'` or `'vector'`"),this.renderMode_=n,this.setPreload(e.preload?e.preload:0),this.setUseInterimTilesOnError(void 0===e.useInterimTilesOnError||e.useInterimTilesOnError),this.getBackground,this.setBackground}createRenderer(){return new w(this,{cacheSize:this.cacheSize_})}getFeatures(e){return super.getFeatures(e)}getFeaturesInExtent(e){return this.getRenderer().getFeaturesInExtent(e)}getRenderMode(){return this.renderMode_}getPreload(){return this.get(E.A.PRELOAD)}getUseInterimTilesOnError(){return this.get(E.A.USE_INTERIM_TILES_ON_ERROR)}setPreload(e){this.set(E.A.PRELOAD,e)}setUseInterimTilesOnError(e){this.set(E.A.USE_INTERIM_TILES_ON_ERROR,e)}}const A=S},79382:(e,t,r)=>{"use strict";r.d(t,{A:()=>Ve});var n=r(91430),i=r(59014),o=r(91202),s=r(84562),a=r(20884),l=r(91086),c=r(24187),u=r(67564),h=r(98629);class d extends l.A{constructor(e){super(),this.tile,this.handleTileChange_=this.handleTileChange_.bind(this),this.gutter=e.gutter||0,this.helper=e.helper,this.loaded=!1,this.ready=!1}setTile(e){if(e!==this.tile)if(this.tile&&this.tile.removeEventListener(c.A.CHANGE,this.handleTileChange_),this.tile=e,this.loaded=e.getState()===a.A.LOADED,this.loaded)this.uploadTile();else{if(e instanceof u.A){const t=e.getImage();t instanceof Image&&!t.crossOrigin&&(t.crossOrigin="anonymous")}e.addEventListener(c.A.CHANGE,this.handleTileChange_)}}uploadTile(){(0,h.b0)()}setReady(){this.ready=!0,this.dispatchEvent(c.A.CHANGE)}handleTileChange_(){this.tile.getState()===a.A.LOADED&&(this.loaded=!0,this.uploadTile())}setHelper(e){this.helper=e,this.helper&&this.loaded&&this.uploadTile()}disposeInternal(){this.setHelper(null),this.tile.removeEventListener(c.A.CHANGE,this.handleTileChange_)}}const f=d;var p=r(97141),m=r(66993);const g=34962,y=34963,v=35044,_=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function b(e,t){t=Object.assign({preserveDrawingBuffer:!0,antialias:!m.oF},t);const r=_.length;for(let n=0;n<r;++n)try{const r=e.getContext(_[n],t);if(r)return r}catch(e){}return null}var w=r(30878);function E(e){switch(e){case g:return Float32Array;case y:return Uint32Array;default:return Float32Array}}const x=class{constructor(e,t){this.array_=null,this.type_=e,(0,w.v)(e===g||e===y,"A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUFFER`"),this.usage_=void 0!==t?t:35044}ofSize(e){return this.array_=new(E(this.type_))(e),this}fromArray(e){return this.array_=E(this.type_).from(e),this}fromArrayBuffer(e){return this.array_=new(E(this.type_))(e),this}getType(){return this.type_}getArray(){return this.array_}getUsage(){return this.usage_}getSize(){return this.array_?this.array_.length:0}};var S=r(83085),A=r(53908);function T(e,t,r){const n=r?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,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,n)}function P(e,t,r,n,i,o){const s=e.getGL();let a,l;r instanceof Float32Array?(a=s.FLOAT,e.getExtension("OES_texture_float"),l=null!==e.getExtension("OES_texture_float_linear")):(a=s.UNSIGNED_BYTE,l=!0),T(s,t,o&&l);const c=r.byteLength/n[1];let u,h=1;switch(c%8==0?h=8:c%4==0?h=4:c%2==0&&(h=2),i){case 1:u=s.LUMINANCE;break;case 2:u=s.LUMINANCE_ALPHA;break;case 3:u=s.RGB;break;case 4:u=s.RGBA;break;default:throw new Error(`Unsupported number of bands: ${i}`)}const d=s.getParameter(s.UNPACK_ALIGNMENT);s.pixelStorei(s.UNPACK_ALIGNMENT,h),s.texImage2D(s.TEXTURE_2D,0,u,n[0],n[1],0,u,a,r),s.pixelStorei(s.UNPACK_ALIGNMENT,d)}let C=null;const O=class extends f{constructor(e){super(e),this.textures=[],this.renderSize_=(0,A.xq)(e.grid.getTileSize(e.tile.tileCoord[0])),this.bandCount=NaN;const t=new x(g,v);t.fromArray([0,1,1,1,1,0,0,0]),this.helper.flushBufferData(t),this.coords=t,this.setTile(e.tile)}setHelper(e){const t=this.helper?.getGL();if(t){this.helper.deleteBuffer(this.coords);for(let e=0;e<this.textures.length;++e)t.deleteTexture(this.textures[e])}super.setHelper(e),e&&e.flushBufferData(this.coords)}uploadTile(){const e=this.helper,t=e.getGL(),r=this.tile;let n;this.textures.length=0,n=r instanceof u.A||r instanceof s.A?r.getImage():r.getData();const i=(0,p.xo)(n);if(i){const e=t.createTexture();return this.textures.push(e),this.bandCount=4,function(e,t,r,n){T(e,t,n),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,r)}(t,e,i,r.interpolate),void this.setReady()}n=(0,p.bL)(n);const o=r.getSize(),a=[o[0]+2*this.gutter,o[1]+2*this.gutter],l=n instanceof Float32Array,c=a[0]*a[1],h=l?Float32Array:Uint8Array,d=h.BYTES_PER_ELEMENT,f=n.byteLength/a[1];this.bandCount=Math.floor(f/d/a[0]);const m=Math.ceil(this.bandCount/4);if(1===m){const i=t.createTexture();return this.textures.push(i),P(e,i,n,a,this.bandCount,r.interpolate),void this.setReady()}const g=new Array(m);for(let e=0;e<m;++e){const r=t.createTexture();this.textures.push(r);const n=e<m-1?4:(this.bandCount-1)%4+1;g[e]=new h(c*n)}let y=0,v=0;const _=a[0]*this.bandCount;for(let e=0;e<a[1];++e){for(let e=0;e<_;++e){const t=n[v+e],r=Math.floor(y/this.bandCount),i=e%this.bandCount,o=g[Math.floor(i/4)];o[r*(o.length/c)+i%4]=t,++y}v+=f/d}for(let t=0;t<m;++t){const n=this.textures[t],i=g[t];P(e,n,i,a,i.length/c,r.interpolate)}this.setReady()}getImagePixelData_(e,t,r){const n=this.gutter,i=this.renderSize_[0],o=this.renderSize_[1];C||(C=(0,S.Y)(1,1,void 0,{willReadFrequently:!0})),C.clearRect(0,0,1,1);const s=e.width-2*n,a=e.height-2*n,l=n+Math.floor(s*(t/i)),c=n+Math.floor(a*(r/o));let u;try{C.drawImage(e,l,c,1,1,0,0,1,1),u=C.getImageData(0,0,1,1).data}catch(e){return C=null,null}return u}getArrayPixelData_(e,t,r,n){const i=this.gutter,o=this.renderSize_[0],s=this.renderSize_[1],a=t[0],l=t[1],c=a+2*i,u=l+2*i,h=i+Math.floor(a*(r/o)),d=i+Math.floor(l*(n/s));if(e instanceof DataView){const t=e.byteLength/(c*u),r=t*(d*c+h),n=e.buffer.slice(r,r+t);return new DataView(n)}const f=this.bandCount*(d*c+h);return e.slice(f,f+this.bandCount)}getPixelData(e,t){if(!this.loaded)return null;if(this.tile instanceof p.Ay){const r=this.tile.getData(),n=(0,p.bL)(r);if(n){const r=this.tile.getSize();return this.getArrayPixelData_(n,r,e,t)}return this.getImagePixelData_((0,p.xo)(r),e,t)}return this.getImagePixelData_(this.tile.getImage(),e,t)}};var R=r(98063),D=r(64444),I=r(10312),k=r(3094),F=r(45630);const j="webglcontextlost",L="webglcontextrestored";var M=r(60239);const N=class{constructor(e){this.gl_=e.webGlContext;const t=this.gl_;this.scaleRatio_=e.scaleRatio||1,this.renderTargetTexture_=t.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=t.createFramebuffer(),this.depthBuffer_=t.createRenderbuffer();const r=t.createShader(t.VERTEX_SHADER);t.shaderSource(r,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;\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(r);const n=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(n,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(n),this.renderTargetProgram_=t.createProgram(),t.attachShader(this.renderTargetProgram_,r),t.attachShader(this.renderTargetProgram_,n),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((r=>{this.uniforms_.push({value:e.uniforms[r],location:t.getUniformLocation(this.renderTargetProgram_,r)})}))}getGL(){return this.gl_}init(e){const t=this.getGL(),r=[t.drawingBufferWidth*this.scaleRatio_,t.drawingBufferHeight*this.scaleRatio_];if(t.bindFramebuffer(t.FRAMEBUFFER,this.getFrameBuffer()),t.bindRenderbuffer(t.RENDERBUFFER,this.getDepthBuffer()),t.viewport(0,0,r[0],r[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==r[0]||this.renderTargetTextureSize_[1]!==r[1]){this.renderTargetTextureSize_=r;const e=0,n=t.RGBA,i=0,o=t.RGBA,s=t.UNSIGNED_BYTE,a=null;t.bindTexture(t.TEXTURE_2D,this.renderTargetTexture_),t.texImage2D(t.TEXTURE_2D,e,n,r[0],r[1],i,o,s,a),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),t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,r[0],r[1]),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,this.depthBuffer_)}}apply(e,t,r,n){const 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){const t=(0,h.v6)(i.canvas);if(!e.renderTargets[t]){const r=i.getContextAttributes();r&&r.preserveDrawingBuffer&&(i.clearColor(0,0,0,0),i.clearDepth(1),i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT)),e.renderTargets[t]=!0}}i.disable(i.DEPTH_TEST),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);const s=e.layerStatesArray[e.layerIndex].opacity;i.uniform1f(this.renderTargetOpacityLocation_,s),this.applyUniforms(e),r&&r(i,e),i.drawArrays(i.TRIANGLES,0,6),n&&n(i,e)}getFrameBuffer(){return this.frameBuffer_}getDepthBuffer(){return this.depthBuffer_}applyUniforms(e){const t=this.getGL();let r,n=1;this.uniforms_.forEach((function(i){if(r="function"==typeof i.value?i.value(e):i.value,r instanceof HTMLCanvasElement||r instanceof ImageData)i.texture||(i.texture=t.createTexture()),t.activeTexture(t[`TEXTURE${n}`]),t.bindTexture(t.TEXTURE_2D,i.texture),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),r instanceof ImageData?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,r.width,r.height,0,t.UNSIGNED_BYTE,new Uint8Array(r.data)):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r),t.uniform1i(i.location,n++);else if(Array.isArray(r))switch(r.length){case 2:return void t.uniform2f(i.location,r[0],r[1]);case 3:return void t.uniform3f(i.location,r[0],r[1],r[2]);case 4:return void t.uniform4f(i.location,r[0],r[1],r[2],r[3]);default:return}else"number"==typeof r&&t.uniform1f(i.location,r)}))}};var $=r(82048),G=r(37377);function z(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}const U="u_pixelRatio",B=5121,V=5123,K=5125,q=5126,W={};function H(e){return"shared/"+e}let Y=0;class X extends M.A{constructor(e){super(),e=e||{},this.boundHandleWebGLContextLost_=this.handleWebGLContextLost.bind(this),this.boundHandleWebGLContextRestored_=this.handleWebGLContextRestored.bind(this),this.canvasCacheKey_=e.canvasCacheKey?H(e.canvasCacheKey):function(){const e="unique/"+Y;return Y+=1,e}(),this.gl_=function(e){let t=W[e];if(!t){const r=document.createElement("canvas");r.width=1,r.height=1,r.style.position="absolute",r.style.left="0",t={users:0,context:b(r)},W[e]=t}return t.users+=1,t.context}(this.canvasCacheKey_),this.bufferCache_={},this.extensionCache_={},this.currentProgram_=null,this.needsToBeRecreated_=!1;const t=this.gl_.canvas;t.addEventListener(j,this.boundHandleWebGLContextLost_),t.addEventListener(L,this.boundHandleWebGLContextRestored_),this.offsetRotateMatrix_=(0,G.vt)(),this.offsetScaleMatrix_=(0,G.vt)(),this.tmpMat4_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this.uniformLocationsByProgram_={},this.attribLocationsByProgram_={},this.uniforms_=[],e.uniforms&&this.setUniforms(e.uniforms),this.postProcessPasses_=e.postProcesses?e.postProcesses.map((e=>new N({webGlContext:this.gl_,scaleRatio:e.scaleRatio,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms}))):[new N({webGlContext:this.gl_})],this.shaderCompileErrors_=null,this.startTime_=Date.now()}setUniforms(e){this.uniforms_=[],this.addUniforms(e)}addUniforms(e){for(const t in e)this.uniforms_.push({name:t,value:e[t]})}canvasCacheKeyMatches(e){return this.canvasCacheKey_===H(e)}getExtension(e){if(e in this.extensionCache_)return this.extensionCache_[e];const t=this.gl_.getExtension(e);return this.extensionCache_[e]=t,t}bindBuffer(e){const t=this.gl_,r=(0,h.v6)(e);let n=this.bufferCache_[r];n||(n={buffer:e,webGlBuffer:t.createBuffer()},this.bufferCache_[r]=n),t.bindBuffer(e.getType(),n.webGlBuffer)}flushBufferData(e){const t=this.gl_;this.bindBuffer(e),t.bufferData(e.getType(),e.getArray(),e.getUsage())}deleteBuffer(e){const t=this.gl_,r=(0,h.v6)(e),n=this.bufferCache_[r];n&&!t.isContextLost()&&t.deleteBuffer(n.webGlBuffer),delete this.bufferCache_[r]}disposeInternal(){const e=this.gl_.canvas;e.removeEventListener(j,this.boundHandleWebGLContextLost_),e.removeEventListener(L,this.boundHandleWebGLContextRestored_),function(e){const t=W[e];if(!t)return;if(t.users-=1,t.users>0)return;const r=t.context,n=r.getExtension("WEBGL_lose_context");n&&n.loseContext();const i=r.canvas;i.width=1,i.height=1,delete W[e]}(this.canvasCacheKey_),delete this.gl_}prepareDraw(e,t,r){const n=this.gl_,i=this.getCanvas(),o=e.size,s=e.pixelRatio;i.width===o[0]*s&&i.height===o[1]*s||(i.width=o[0]*s,i.height=o[1]*s,i.style.width=o[0]+"px",i.style.height=o[1]+"px");for(let t=this.postProcessPasses_.length-1;t>=0;t--)this.postProcessPasses_[t].init(e);n.bindTexture(n.TEXTURE_2D,null),n.clearColor(0,0,0,0),n.depthRange(0,1),n.clearDepth(1),n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT),n.enable(n.BLEND),n.blendFunc(n.ONE,t?n.ZERO:n.ONE_MINUS_SRC_ALPHA),r?(n.enable(n.DEPTH_TEST),n.depthFunc(n.LEQUAL)):n.disable(n.DEPTH_TEST)}bindTexture(e,t,r){const n=this.gl_;n.activeTexture(n.TEXTURE0+t),n.bindTexture(n.TEXTURE_2D,e),n.uniform1i(this.getUniformLocation(r),t)}prepareDrawToRenderTarget(e,t,r,n){const i=this.gl_,o=t.getSize();i.bindFramebuffer(i.FRAMEBUFFER,t.getFramebuffer()),i.bindRenderbuffer(i.RENDERBUFFER,t.getDepthbuffer()),i.viewport(0,0,o[0],o[1]),i.bindTexture(i.TEXTURE_2D,t.getTexture()),i.clearColor(0,0,0,0),i.depthRange(0,1),i.clearDepth(1),i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT),i.enable(i.BLEND),i.blendFunc(i.ONE,r?i.ZERO:i.ONE_MINUS_SRC_ALPHA),n?(i.enable(i.DEPTH_TEST),i.depthFunc(i.LEQUAL)):i.disable(i.DEPTH_TEST)}drawElements(e,t){const r=this.gl_;this.getExtension("OES_element_index_uint");const n=r.UNSIGNED_INT,i=t-e,o=4*e;r.drawElements(r.TRIANGLES,i,n,o)}finalizeDraw(e,t,r){for(let n=0,i=this.postProcessPasses_.length;n<i;n++)n===i-1?this.postProcessPasses_[n].apply(e,null,t,r):this.postProcessPasses_[n].apply(e,this.postProcessPasses_[n+1])}getCanvas(){return this.gl_.canvas}getGL(){return this.gl_}applyFrameState(e){const t=e.size,r=e.viewState.rotation,n=e.pixelRatio;this.setUniformFloatValue("u_time",.001*(Date.now()-this.startTime_)),this.setUniformFloatValue("u_zoom",e.viewState.zoom),this.setUniformFloatValue("u_resolution",e.viewState.resolution),this.setUniformFloatValue(U,n),this.setUniformFloatVec2("u_viewportSizePx",[t[0],t[1]]),this.setUniformFloatValue("u_rotation",r)}applyHitDetectionUniform(e){const t=this.getUniformLocation("u_hitDetection");this.getGL().uniform1i(t,e?1:0),e&&this.setUniformFloatValue(U,.5)}applyUniforms(e){const t=this.gl_;let r,n=0;this.uniforms_.forEach((i=>{if(r="function"==typeof i.value?i.value(e):i.value,r instanceof HTMLCanvasElement||r instanceof HTMLImageElement||r instanceof ImageData||r instanceof WebGLTexture){r instanceof WebGLTexture&&!i.texture?(i.prevValue=void 0,i.texture=r):i.texture||(i.prevValue=void 0,i.texture=t.createTexture()),this.bindTexture(i.texture,n,i.name),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);const e=!(r instanceof HTMLImageElement)||r.complete;r instanceof WebGLTexture||!e||i.prevValue===r||(i.prevValue=r,t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r)),n++}else if(Array.isArray(r)&&6===r.length)this.setUniformMatrixValue(i.name,z(this.tmpMat4_,r));else if(Array.isArray(r)&&r.length<=4)switch(r.length){case 2:return void t.uniform2f(this.getUniformLocation(i.name),r[0],r[1]);case 3:return void t.uniform3f(this.getUniformLocation(i.name),r[0],r[1],r[2]);case 4:return void t.uniform4f(this.getUniformLocation(i.name),r[0],r[1],r[2],r[3]);default:return}else"number"==typeof r&&t.uniform1f(this.getUniformLocation(i.name),r)}))}useProgram(e,t){this.gl_.useProgram(e),this.currentProgram_=e,this.applyFrameState(t),this.applyUniforms(t)}compileShader(e,t){const r=this.gl_,n=r.createShader(t);return r.shaderSource(n,e),r.compileShader(n),n}getProgram(e,t){const r=this.gl_,n=this.compileShader(e,r.FRAGMENT_SHADER),i=this.compileShader(t,r.VERTEX_SHADER),o=r.createProgram();if(r.attachShader(o,n),r.attachShader(o,i),r.linkProgram(o),!r.getShaderParameter(n,r.COMPILE_STATUS)){const e=`Fragment shader compilation failed: ${r.getShaderInfoLog(n)}`;throw new Error(e)}if(r.deleteShader(n),!r.getShaderParameter(i,r.COMPILE_STATUS)){const e=`Vertex shader compilation failed: ${r.getShaderInfoLog(i)}`;throw new Error(e)}if(r.deleteShader(i),!r.getProgramParameter(o,r.LINK_STATUS)){const e=`GL program linking failed: ${r.getProgramInfoLog(o)}`;throw new Error(e)}return o}getUniformLocation(e){const t=(0,h.v6)(this.currentProgram_);return void 0===this.uniformLocationsByProgram_[t]&&(this.uniformLocationsByProgram_[t]={}),void 0===this.uniformLocationsByProgram_[t][e]&&(this.uniformLocationsByProgram_[t][e]=this.gl_.getUniformLocation(this.currentProgram_,e)),this.uniformLocationsByProgram_[t][e]}getAttributeLocation(e){const t=(0,h.v6)(this.currentProgram_);return void 0===this.attribLocationsByProgram_[t]&&(this.attribLocationsByProgram_[t]={}),void 0===this.attribLocationsByProgram_[t][e]&&(this.attribLocationsByProgram_[t][e]=this.gl_.getAttribLocation(this.currentProgram_,e)),this.attribLocationsByProgram_[t][e]}makeProjectionTransform(e,t){const r=e.size,n=e.viewState.rotation,i=e.viewState.resolution,o=e.viewState.center;return(0,G.Zz)(t,0,0,2/(i*r[0]),2/(i*r[1]),-n,-o[0],-o[1]),t}setUniformFloatValue(e,t){this.gl_.uniform1f(this.getUniformLocation(e),t)}setUniformFloatVec2(e,t){this.gl_.uniform2fv(this.getUniformLocation(e),t)}setUniformFloatVec4(e,t){this.gl_.uniform4fv(this.getUniformLocation(e),t)}setUniformMatrixValue(e,t){this.gl_.uniformMatrix4fv(this.getUniformLocation(e),!1,t)}enableAttributeArray_(e,t,r,n,i){const o=this.getAttributeLocation(e);o<0||(this.gl_.enableVertexAttribArray(o),this.gl_.vertexAttribPointer(o,t,r,!1,n,i))}enableAttributes(e){const t=function(e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];t+=n.size*Z(n.type)}return t}(e);let r=0;for(let n=0;n<e.length;n++){const i=e[n];this.enableAttributeArray_(i.name,i.size,i.type||5126,t,r),r+=i.size*Z(i.type)}}handleWebGLContextLost(e){(0,$.I)(this.bufferCache_),this.currentProgram_=null,e.preventDefault()}handleWebGLContextRestored(){this.needsToBeRecreated_=!0}needsToBeRecreated(){return this.needsToBeRecreated_}createTexture(e,t,r){const n=this.gl_;r=r||n.createTexture();const i=n.RGBA,o=n.RGBA,s=n.UNSIGNED_BYTE;return n.bindTexture(n.TEXTURE_2D,r),t?n.texImage2D(n.TEXTURE_2D,0,i,o,s,t):n.texImage2D(n.TEXTURE_2D,0,i,e[0],e[1],0,o,s,null),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),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),r}}function Z(e){switch(e){case B:return Uint8Array.BYTES_PER_ELEMENT;case V:return Uint16Array.BYTES_PER_ELEMENT;case K:return Uint32Array.BYTES_PER_ELEMENT;default:return Float32Array.BYTES_PER_ELEMENT}}const J=X;class Q extends I.A{constructor(e,t){super(e),t=t||{},this.inversePixelTransform_=(0,G.vt)(),this.postProcesses_=t.postProcesses,this.uniforms_=t.uniforms,this.helper,this.onMapChanged_=()=>{this.clearCache(),this.removeHelper()},e.addChangeListener(i.A.MAP,this.onMapChanged_),this.dispatchPreComposeEvent=this.dispatchPreComposeEvent.bind(this),this.dispatchPostComposeEvent=this.dispatchPostComposeEvent.bind(this)}dispatchPreComposeEvent(e,t){const r=this.getLayer();if(r.hasListener(F.A.PRECOMPOSE)){const n=new k.A(F.A.PRECOMPOSE,void 0,t,e);r.dispatchEvent(n)}}dispatchPostComposeEvent(e,t){const r=this.getLayer();if(r.hasListener(F.A.POSTCOMPOSE)){const n=new k.A(F.A.POSTCOMPOSE,void 0,t,e);r.dispatchEvent(n)}}reset(e){this.uniforms_=e.uniforms,this.helper&&this.helper.setUniforms(this.uniforms_)}removeHelper(){this.helper&&(this.helper.dispose(),delete this.helper)}prepareFrame(e){if(this.getLayer().getRenderSource()){let t,r=!0,n=-1;for(let i=0,o=e.layerStatesArray.length;i<o;i++){const o=e.layerStatesArray[i].layer,s=o.getRenderer();if(!(s instanceof Q)){r=!0;continue}const a=o.getClassName();if((r||a!==t)&&(n+=1,r=!1),t=a,s===this)break}const i="map/"+e.mapId+"/group/"+n;this.helper&&this.helper.canvasCacheKeyMatches(i)&&!this.helper.needsToBeRecreated()||(this.removeHelper(),this.helper=new J({postProcesses:this.postProcesses_,uniforms:this.uniforms_,canvasCacheKey:i}),t&&(this.helper.getCanvas().className=t),this.afterHelperCreated())}return this.prepareFrameInternal(e)}afterHelperCreated(){}prepareFrameInternal(e){return!0}clearCache(){}disposeInternal(){this.clearCache(),this.removeHelper(),this.getLayer()?.removeChangeListener(i.A.MAP,this.onMapChanged_),super.disposeInternal()}dispatchRenderEvent_(e,t,r){const n=this.getLayer();if(n.hasListener(e)){(0,G.Zz)(this.inversePixelTransform_,0,0,r.pixelRatio,-r.pixelRatio,0,0,-r.size[1]);const i=new k.A(e,this.inversePixelTransform_,r,t);n.dispatchEvent(i)}}preRender(e,t){this.dispatchRenderEvent_(F.A.PRERENDER,e,t)}postRender(e,t){this.dispatchRenderEvent_(F.A.POSTRENDER,e,t)}}const ee=Q;var te=r(80996),re=r(30444),ne=r(12940),ie=r(44509);const oe={};function se(e){return 1/(e+2)}function ae(e,t){return e.tileIds.has((0,h.v6)(t))}function le(e,t,r){const n=e.representationsByZ;r in n||(n[r]=new Set),n[r].add(t),e.tileIds.add((0,h.v6)(t.tile))}function ce(e,t){const r=e.layerStatesArray[e.layerIndex];r.extent&&(t=(0,ie._N)(t,(0,ne.SD)(r.extent,e.viewState.projection)));const n=r.layer.getRenderSource();if(!n.getWrapX()){const r=n.getTileGridForProjection(e.viewState.projection).getExtent();r&&(t=(0,ie._N)(t,r))}return t}function ue(e,t){return`${e.getKey()},${(0,te.i7)(t)}`}const he=class extends ee{constructor(e,t){super(e,{uniforms:t.uniforms,postProcesses:t.postProcesses}),this.renderComplete=!1,this.tileTransform_=(0,G.vt)(),this.tempMat4=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this.tempTileRange_=new D.A(0,0,0,0),this.tempTileCoord_=(0,te.N)(0,0,0),this.tempSize_=[0,0];const r=void 0!==t.cacheSize?t.cacheSize:512;this.tileRepresentationCache=new R.A(r),this.frameState=null,this.projection_=void 0}reset(e){super.reset({uniforms:e.uniforms})}prepareFrameInternal(e){this.projection_?e.viewState.projection!==this.projection_&&(this.clearCache(),this.projection_=e.viewState.projection):this.projection_=e.viewState.projection;const t=this.getLayer().getRenderSource();return!!t&&!(0,ie.Im)(ce(e,e.extent))&&"ready"===t.getState()}createTileRepresentation(e){return(0,h.b0)()}enqueueTiles(e,t,r,n,i){const o=e.viewState,s=this.getLayer(),l=s.getRenderSource(),c=l.getTileGridForProjection(o.projection),u=l.getGutterForProjection(o.projection),d=(0,h.v6)(l);d in e.wantedTiles||(e.wantedTiles[d]={});const f=e.wantedTiles[d],p=this.tileRepresentationCache,m=s.getMapInternal(),g=Math.max(r-i,c.getMinZoom(),c.getZForResolution(Math.min(s.getMaxResolution(),m?m.getView().getResolutionForZoom(Math.max(s.getMinZoom(),0)):c.getResolution(0)),l.zDirection));for(let i=r;i>=g;--i){const r=c.getTileRangeForExtentAndZ(t,i,this.tempTileRange_),s=c.getResolution(i);for(let t=r.minX;t<=r.maxX;++t)for(let h=r.minY;h<=r.maxY;++h){const r=(0,te.N)(i,t,h,this.tempTileCoord_),m=ue(l,r);let g,y;if(p.containsKey(m)&&(g=p.get(m),y=g.tile),!(g&&g.tile.key===l.getKey()||(y=l.getTile(i,t,h,e.pixelRatio,o.projection),y)))continue;if(ae(n,y))continue;g?g.setTile(y):(g=this.createTileRepresentation({tile:y,grid:c,helper:this.helper,gutter:u}),p.set(m,g)),le(n,g,i);const v=y.getKey();f[v]=!0,y.getState()===a.A.IDLE&&(e.tileQueue.isKeyQueued(v)||e.tileQueue.enqueue([y,d,c.getTileCoordCenter(r),s]))}}}beforeTilesRender(e,t){this.helper.prepareDraw(this.frameState,!t,!0)}beforeTilesMaskRender(e){return!1}renderTile(e,t,r,n,i,o,s,a,l,c,u){}renderTileMask(e,t,r,n){}drawTile_(e,t,r,n,i,o,s){if(!t.ready)return;const a=t.tile.tileCoord,l=(0,te.i7)(a),c=l in o?o[l]:1,u=s.getResolution(r),h=(0,A.xq)(s.getTileSize(r),this.tempSize_),d=s.getOrigin(r),f=s.getTileCoordExtent(a),p=c<1?-1:se(r);c<1&&(e.animate=!0);const m=e.viewState,g=m.center[0],y=m.center[1],v=h[0]+2*n,_=h[1]+2*n,b=v/_,w=(g-d[0])/(h[0]*u),E=(d[1]-y)/(h[1]*u),x=m.resolution/u,S=a[1],T=a[2];(0,G.cL)(this.tileTransform_),(0,G.hs)(this.tileTransform_,2/(e.size[0]*x/v),-2/(e.size[1]*x/v)),(0,G.e$)(this.tileTransform_,m.rotation),(0,G.hs)(this.tileTransform_,1,1/b),(0,G.Tl)(this.tileTransform_,(h[0]*(S-w)-n)/v,(h[1]*(T-E)-n)/_),this.renderTile(t,this.tileTransform_,e,i,u,h,d,f,p,n,c)}renderFrame(e){this.frameState=e,this.renderComplete=!0;const t=this.helper.getGL();this.preRender(t,e);const r=e.viewState,n=this.getLayer(),i=n.getRenderSource(),l=i.getTileGridForProjection(r.projection),c=i.getGutterForProjection(r.projection),u=ce(e,e.extent),d=l.getZForResolution(r.resolution,i.zDirection),f={tileIds:new Set,representationsByZ:{}},p=n.getPreload();if(e.nextExtent){const t=l.getZForResolution(r.nextResolution,i.zDirection),n=ce(e,e.nextExtent);this.enqueueTiles(e,n,t,f,p)}this.enqueueTiles(e,u,d,f,0),p>0&&setTimeout((()=>{this.enqueueTiles(e,u,d-1,f,p-1)}),0);const m={},g=(0,h.v6)(this),y=e.time;let v=!1;const _=f.representationsByZ;if(d in _)for(const e of _[d]){const t=e.tile;if((t instanceof s.A||t instanceof o.A)&&t.getState()===a.A.EMPTY)continue;const r=t.tileCoord;if(e.ready){const e=t.getAlpha(g,y);if(1===e){t.endTransition(g);continue}v=!0,m[(0,te.i7)(r)]=e}if(this.renderComplete=!1,this.findAltTiles_(l,r,d+1,f))continue;const n=l.getMinZoom();for(let e=d-1;e>=n&&!this.findAltTiles_(l,r,e,f);--e);}const b=Object.keys(_).map(Number).sort(re.rG);if(this.beforeTilesMaskRender(e))for(let e=0,t=b.length;e<t;++e){const t=b[e];for(const e of _[t]){const r=e.tile.tileCoord;if((0,te.i7)(r)in m)continue;const n=l.getTileCoordExtent(r);this.renderTileMask(e,t,n,se(t))}}this.beforeTilesRender(e,v);for(let t=0,r=b.length;t<r;++t){const r=b[t];for(const t of _[r]){const n=t.tile.tileCoord;(0,te.i7)(n)in m||this.drawTile_(e,t,r,c,u,m,l)}}if(d in _)for(const t of _[d]){const r=t.tile.tileCoord;(0,te.i7)(r)in m&&this.drawTile_(e,t,d,c,u,m,l)}this.helper.finalizeDraw(e,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);const w=this.helper.getCanvas(),E=this.tileRepresentationCache;for(;E.canExpireCache();)E.pop().dispose();return e.postRenderFunctions.push((function(e,t){i.expireCache(t.viewState.projection,oe)})),this.postRender(t,e),w}findAltTiles_(e,t,r,n){const i=e.getTileRangeForTileCoordAndZ(t,r,this.tempTileRange_);if(!i)return!1;let o=!0;const s=this.tileRepresentationCache,a=this.getLayer().getRenderSource();for(let e=i.minX;e<=i.maxX;++e)for(let t=i.minY;t<=i.maxY;++t){const i=ue(a,[r,e,t]);let l=!1;if(s.containsKey(i)){const e=s.get(i);e.ready&&!ae(n,e.tile)&&(le(n,e,r),l=!0)}l||(o=!1)}return o}clearCache(){super.clearCache();const e=this.tileRepresentationCache;e.forEach((e=>e.dispose())),e.clear()}afterHelperCreated(){super.afterHelperCreated(),this.tileRepresentationCache.forEach((e=>e.setHelper(this.helper)))}disposeInternal(){super.disposeInternal(),delete this.frameState}},de="u_tileTransform",fe="u_transitionAlpha",pe="u_depth",me="u_renderExtent",ge="u_resolution",ye="u_zoom",ve="u_tileTextures",_e="u_texturePixelWidth",be="u_texturePixelHeight",we="u_textureResolution",Ee="u_textureOriginX",xe="u_textureOriginY",Se="a_textureCoord",Ae=[{name:Se,size:2,type:q}],Te=class extends he{constructor(e,t){super(e,t),this.program_,this.vertexShader_=t.vertexShader,this.fragmentShader_=t.fragmentShader,this.indices_=new x(y,v),this.indices_.fromArray([0,1,3,1,2,3]),this.paletteTextures_=t.paletteTextures||[]}reset(e){if(super.reset(e),this.helper){const e=this.helper.getGL();for(const t of this.paletteTextures_)t.delete(e)}this.vertexShader_=e.vertexShader,this.fragmentShader_=e.fragmentShader,this.paletteTextures_=e.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))}afterHelperCreated(){super.afterHelperCreated(),this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)}removeHelper(){if(this.helper){const e=this.helper.getGL();for(const t of this.paletteTextures_)t.delete(e)}super.removeHelper()}createTileRepresentation(e){return new O(e)}beforeTilesRender(e,t){super.beforeTilesRender(e,t),this.helper.useProgram(this.program_,e)}renderTile(e,t,r,n,i,o,s,a,l,c,u){const h=this.helper.getGL();this.helper.bindBuffer(e.coords),this.helper.bindBuffer(this.indices_),this.helper.enableAttributes(Ae);let d=0;for(;d<e.textures.length;){const t=`${ve}[${d}]`;this.helper.bindTexture(e.textures[d],d,t),++d}for(let e=0;e<this.paletteTextures_.length;++e){const t=this.paletteTextures_[e],r=t.getTexture(h);this.helper.bindTexture(r,d,t.name),++d}const f=r.viewState,p=o[0]+2*c,m=o[1]+2*c,g=e.tile.tileCoord,y=g[1],v=g[2];this.helper.setUniformMatrixValue(de,z(this.tempMat4,t)),this.helper.setUniformFloatValue(fe,u),this.helper.setUniformFloatValue(pe,l);let _=n;c>0&&(_=a,(0,ie._N)(_,n,_)),this.helper.setUniformFloatVec4(me,_),this.helper.setUniformFloatValue(ge,f.resolution),this.helper.setUniformFloatValue(ye,f.zoom),this.helper.setUniformFloatValue(_e,p),this.helper.setUniformFloatValue(be,m),this.helper.setUniformFloatValue(we,i),this.helper.setUniformFloatValue(Ee,s[0]+y*o[0]*i-c*i),this.helper.setUniformFloatValue(xe,s[1]-v*o[1]*i+c*i),this.helper.drawElements(0,this.indices_.getSize())}getData(e){if(!this.helper.getGL())return null;const t=this.frameState;if(!t)return null;const r=this.getLayer(),n=(0,G.Bb)(t.pixelToCoordinateTransform,e.slice()),i=t.viewState,l=r.getExtent();if(l&&!(0,ie.Ym)((0,ne.SD)(l,i.projection),n))return null;const c=r.getSources((0,ie.Tr)([n]),i.resolution);let u,h,d;for(u=c.length-1;u>=0;--u)if(h=c[u],"ready"===h.getState()){if(d=h.getTileGridForProjection(i.projection),h.getWrapX())break;const e=d.getExtent();if(!e||(0,ie.Ym)(e,n))break}if(u<0)return null;const f=this.tileRepresentationCache;for(let e=d.getZForResolution(i.resolution);e>=d.getMinZoom();--e){const t=d.getTileCoordForCoordAndZ(n,e),r=ue(h,t);if(!f.containsKey(r))continue;const i=f.get(r),l=i.tile;if((l instanceof s.A||l instanceof o.A)&&l.getState()===a.A.EMPTY)return null;if(!i.loaded)continue;const c=d.getOrigin(e),u=(0,A.xq)(d.getTileSize(e)),p=d.getResolution(e),m=(n[0]-c[0])/p-t[1]*u[0],g=(c[1]-n[1])/p-t[2]*u[1];return i.getPixelData(m,g)}return null}disposeInternal(){const e=this.helper;if(e){const t=e.getGL();for(const e of this.paletteTextures_)e.delete(t);this.paletteTextures_.length=0,t.deleteProgram(this.program_),delete this.program_,e.deleteBuffer(this.indices_)}super.disposeInternal(),delete this.indices_}};var Pe=r(62439);const Ce=class{constructor(e,t){this.name=e,this.data=t,this.texture_=null}getTexture(e){if(!this.texture_){const 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_}delete(e){this.texture_&&e.deleteTexture(this.texture_),this.texture_=null}};var Oe=r(41009);function Re(e){const t=e.toString();return t.includes(".")?t:t+".0"}function De(e){if(e.length<2||e.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return`vec${e.length}(${e.map(Re).join(", ")})`}const Ie={};let ke=0;function Fe(e){return e in Ie||(Ie[e]=ke++),Ie[e]}function je(e){return"u_var_"+e}const Le="getBandValue",Me="u_paletteTextures";function Ne(e){return(t,r,n)=>{const i=r.args.length,o=new Array(i);for(let e=0;e<i;++e)o[e]=Ge(r.args[e],n,t);return e(o,t)}}const $e={[Pe.ZD.Get]:(e,t)=>{const r=t.args[0].value;return r in e.properties||(e.properties[r]={name:r,type:t.type}),(e.inFragmentShader?"v_prop_":"a_prop_")+r},[Pe.ZD.GeometryType]:(e,t,r)=>{const n="geometryType";return n in e.properties||(e.properties[n]={name:n,type:Pe.cT,evaluator:e=>(0,Pe.Ye)(e.getGeometry())}),(e.inFragmentShader?"v_prop_":"a_prop_")+n},[Pe.ZD.LineMetric]:()=>"currentLineMetric",[Pe.ZD.Var]:(e,t)=>{const r=t.args[0].value;return r in e.variables||(e.variables[r]={name:r,type:t.type}),je(r)},[Pe.ZD.Resolution]:()=>"u_resolution",[Pe.ZD.Zoom]:()=>"u_zoom",[Pe.ZD.Time]:()=>"u_time",[Pe.ZD.Any]:Ne((e=>`(${e.join(" || ")})`)),[Pe.ZD.All]:Ne((e=>`(${e.join(" && ")})`)),[Pe.ZD.Not]:Ne((([e])=>`(!${e})`)),[Pe.ZD.Equal]:Ne((([e,t])=>`(${e} == ${t})`)),[Pe.ZD.NotEqual]:Ne((([e,t])=>`(${e} != ${t})`)),[Pe.ZD.GreaterThan]:Ne((([e,t])=>`(${e} > ${t})`)),[Pe.ZD.GreaterThanOrEqualTo]:Ne((([e,t])=>`(${e} >= ${t})`)),[Pe.ZD.LessThan]:Ne((([e,t])=>`(${e} < ${t})`)),[Pe.ZD.LessThanOrEqualTo]:Ne((([e,t])=>`(${e} <= ${t})`)),[Pe.ZD.Multiply]:Ne((e=>`(${e.join(" * ")})`)),[Pe.ZD.Divide]:Ne((([e,t])=>`(${e} / ${t})`)),[Pe.ZD.Add]:Ne((e=>`(${e.join(" + ")})`)),[Pe.ZD.Subtract]:Ne((([e,t])=>`(${e} - ${t})`)),[Pe.ZD.Clamp]:Ne((([e,t,r])=>`clamp(${e}, ${t}, ${r})`)),[Pe.ZD.Mod]:Ne((([e,t])=>`mod(${e}, ${t})`)),[Pe.ZD.Pow]:Ne((([e,t])=>`pow(${e}, ${t})`)),[Pe.ZD.Abs]:Ne((([e])=>`abs(${e})`)),[Pe.ZD.Floor]:Ne((([e])=>`floor(${e})`)),[Pe.ZD.Ceil]:Ne((([e])=>`ceil(${e})`)),[Pe.ZD.Round]:Ne((([e])=>`floor(${e} + 0.5)`)),[Pe.ZD.Sin]:Ne((([e])=>`sin(${e})`)),[Pe.ZD.Cos]:Ne((([e])=>`cos(${e})`)),[Pe.ZD.Atan]:Ne((([e,t])=>void 0!==t?`atan(${e}, ${t})`:`atan(${e})`)),[Pe.ZD.Sqrt]:Ne((([e])=>`sqrt(${e})`)),[Pe.ZD.Match]:Ne((e=>{const t=e[0],r=e[e.length-1];let n=null;for(let i=e.length-3;i>=1;i-=2)n=`(${t} == ${e[i]} ? ${e[i+1]} : ${n||r})`;return n})),[Pe.ZD.Between]:Ne((([e,t,r])=>`(${e} >= ${t} && ${e} <= ${r})`)),[Pe.ZD.Interpolate]:Ne((([e,t,...r])=>{let n="";for(let i=0;i<r.length-2;i+=2){const o=r[i],s=n||r[i+1],a=r[i+2],l=r[i+3];let c;c=e===Re(1)?`(${t} - ${o}) / (${a} - ${o})`:`(pow(${e}, (${t} - ${o})) - 1.0) / (pow(${e}, (${a} - ${o})) - 1.0)`,n=`mix(${s}, ${l}, clamp(${c}, 0.0, 1.0))`}return n})),[Pe.ZD.Case]:Ne((e=>{const t=e[e.length-1];let r=null;for(let n=e.length-3;n>=0;n-=2)r=`(${e[n]} ? ${e[n+1]} : ${r||t})`;return r})),[Pe.ZD.In]:Ne((([e,...t],r)=>{const n=function(e,t){return`operator_in_${Object.keys(t.functions).length}`}(0,r),i=[];for(let e=0;e<t.length;e+=1)i.push(` if (inputValue == ${t[e]}) { return true; }`);return r.functions[n]=`bool ${n}(float inputValue) {\n${i.join("\n")}\n return false;\n}`,`${n}(${e})`})),[Pe.ZD.Array]:Ne((e=>`vec${e.length}(${e.join(", ")})`)),[Pe.ZD.Color]:Ne((e=>{if(1===e.length)return`vec4(vec3(${e[0]} / 255.0), 1.0)`;if(2===e.length)return`vec4(vec3(${e[0]} / 255.0), ${e[1]})`;const t=e.slice(0,3).map((e=>`${e} / 255.0`));if(3===e.length)return`vec4(${t.join(", ")}, 1.0)`;const r=e[3];return`vec4(${t.join(", ")}, ${r})`})),[Pe.ZD.Band]:Ne((([e,t,r],n)=>{if(!(Le in n.functions)){let e="";const t=n.bandCount||1;for(let r=0;r<t;r++){const n=Math.floor(r/4);let i=r%4;r===t-1&&1===i&&(i=3),e+=` if (band == ${r+1}.0) {\n return texture2D(${ve}[${n}], v_textureCoord + vec2(dx, dy))[${i}];\n }\n`}n.functions[Le]=`float getBandValue(float band, float xOffset, float yOffset) {\n float dx = xOffset / ${_e};\n float dy = yOffset / ${be};\n${e}\n}`}return`${Le}(${e}, ${t??"0.0"}, ${r??"0.0"})`})),[Pe.ZD.Palette]:(e,t)=>{const[r,...n]=t.args,i=n.length,o=new Uint8Array(4*i);for(let e=0;e<n.length;e++){const t=n[e].value,r=(0,Oe._j)(t),i=4*e;o[i]=r[0],o[i+1]=r[1],o[i+2]=r[2],o[i+3]=255*r[3]}e.paletteTextures||(e.paletteTextures=[]);const s=`${Me}[${e.paletteTextures.length}]`,a=new Ce(s,o);return e.paletteTextures.push(a),`texture2D(${s}, vec2((${Ge(r,Pe.wl,e)} + 0.5) / ${i}.0, 0.5))`}};function Ge(e,t,r){if(e instanceof Pe.DG){const n=$e[e.operator];if(void 0===n)throw new Error(`No compiler defined for this operator: ${JSON.stringify(e.operator)}`);return n(r,e,t)}if((e.type&Pe.wl)>0)return Re(e.value);if((e.type&Pe.T8)>0)return e.value.toString();if((e.type&Pe.cT)>0)return Re(Fe(e.value.toString()));var n;if((e.type&Pe.mE)>0)return function(e){const t=(0,Oe._j)(e),r=t.length>3?t[3]:1;return De([t[0]/255,t[1]/255,t[2]/255,r])}(e.value);if((e.type&Pe.Fq)>0)return De(e.value);if((e.type&Pe.qA)>0)return n=e.value,De((0,A.xq)(n));throw new Error(`Unexpected expression ${e.value} (expected type ${(0,Pe.go)(t)})`)}function ze(e,t,r){return function(e,t,r,n){return Ge((0,Pe.qg)(e,t,r),t,n)}(t,r,(0,Pe.SR)(),e)}function Ue(e,t){const r=`\n attribute vec2 ${Se};\n uniform mat4 ${de};\n uniform float ${_e};\n uniform float ${be};\n uniform float ${we};\n uniform float ${Ee};\n uniform float ${xe};\n uniform float ${pe};\n\n varying vec2 v_textureCoord;\n varying vec2 v_mapCoord;\n\n void main() {\n v_textureCoord = ${Se};\n v_mapCoord = vec2(\n ${Ee} + ${we} * ${_e} * v_textureCoord[0],\n ${xe} - ${we} * ${be} * v_textureCoord[1]\n );\n gl_Position = ${de} * vec4(${Se}, ${pe}, 1.0);\n }\n `,n={inFragmentShader:!1,variables:{},properties:{},functions:{},bandCount:0,style:{},inFragmentShader:!0,bandCount:t,style:e},i=[];if(void 0!==e.color){const t=ze(n,e.color,Pe.mE);i.push(`color = ${t};`)}if(void 0!==e.contrast){const t=ze(n,e.contrast,Pe.wl);i.push(`color.rgb = clamp((${t} + 1.0) * color.rgb - (${t} / 2.0), vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));`)}if(void 0!==e.exposure){const t=ze(n,e.exposure,Pe.wl);i.push(`color.rgb = clamp((${t} + 1.0) * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));`)}if(void 0!==e.saturation){const t=ze(n,e.saturation,Pe.wl);i.push(`\n float saturation = ${t} + 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){const t=ze(n,e.gamma,Pe.wl);i.push(`color.rgb = pow(color.rgb, vec3(1.0 / ${t}));`)}if(void 0!==e.brightness){const t=ze(n,e.brightness,Pe.wl);i.push(`color.rgb = clamp(color.rgb + ${t}, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));`)}const o={},s=Object.keys(n.variables).length;if(s>1&&!e.variables)throw new Error(`Missing variables in style (expected ${n.variables})`);for(let t=0;t<s;++t){const r=n.variables[Object.keys(n.variables)[t]];if(!(r.name in e.variables))throw new Error(`Missing '${r.name}' in style variables`);o[je(r.name)]=function(){let t=e.variables[r.name];return"string"==typeof t&&(t=Fe(t)),void 0!==t?t:-9999999}}const a=Object.keys(o).map((function(e){return`uniform float ${e};`})),l=Math.ceil(t/4);a.push(`uniform sampler2D ${ve}[${l}];`),n.paletteTextures&&a.push(`uniform sampler2D ${Me}[${n.paletteTextures.length}];`);const c=Object.keys(n.functions).map((function(e){return n.functions[e]}));return{vertexShader:r,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 ${me};\n uniform float ${fe};\n uniform float ${_e};\n uniform float ${be};\n uniform float ${ge};\n uniform float ${ye};\n\n ${a.join("\n")}\n\n ${c.join("\n")}\n\n void main() {\n if (\n v_mapCoord[0] < ${me}[0] ||\n v_mapCoord[1] < ${me}[1] ||\n v_mapCoord[0] > ${me}[2] ||\n v_mapCoord[1] > ${me}[3]\n ) {\n discard;\n }\n\n vec4 color = texture2D(${ve}[0], v_textureCoord);\n\n ${i.join("\n")}\n\n gl_FragColor = color;\n gl_FragColor.rgb *= gl_FragColor.a;\n gl_FragColor *= ${fe};\n }`,uniforms:o,paletteTextures:n.paletteTextures}}class Be extends n.A{constructor(e){const t=(e=e?Object.assign({},e):{}).style||{};delete e.style,super(e),this.sources_=e.sources,this.renderedSource_=null,this.renderedResolution_=NaN,this.style_=t,this.styleVariables_=this.style_.variables||{},this.addChangeListener(i.A.SOURCE,this.handleSourceUpdate_)}getSources(e,t){const r=this.getSource();return this.sources_?"function"==typeof this.sources_?this.sources_(e,t):this.sources_:r?[r]:[]}getRenderSource(){return this.renderedSource_||this.getSource()}getSourceState(){const e=this.getRenderSource();return e?e.getState():"undefined"}handleSourceUpdate_(){this.hasRenderer()&&this.getRenderer().clearCache(),this.getSource()&&this.setStyle(this.style_)}getSourceBandCount_(){const 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}createRenderer(){const e=Ue(this.style_,this.getSourceBandCount_());return new Te(this,{vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms,cacheSize:this.getCacheSize(),paletteTextures:e.paletteTextures})}renderSources(e,t){const r=this.getRenderer();let n;for(let i=0,o=t.length;i<o;++i)this.renderedSource_=t[i],r.prepareFrame(e)&&(n=r.renderFrame(e));return n}render(e,t){this.rendered=!0;const r=e.viewState,n=this.getSources(e.extent,r.resolution);let i=!0;for(let e=0,t=n.length;e<t;++e){const t=n[e],r=t.getState();if("loading"==r){const e=()=>{"ready"==t.getState()&&(t.removeEventListener("change",e),this.changed())};t.addEventListener("change",e)}i=i&&"ready"==r}const o=this.renderSources(e,n);if(this.getRenderer().renderComplete&&i)return this.renderedResolution_=r.resolution,o;if(this.renderedResolution_>.5*r.resolution){const t=this.getSources(e.extent,this.renderedResolution_).filter((e=>!n.includes(e)));if(t.length>0)return this.renderSources(e,t)}return o}setStyle(e){if(this.styleVariables_=e.variables||{},this.style_=e,this.hasRenderer()){const e=Ue(this.style_,this.getSourceBandCount_());this.getRenderer().reset({vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms,paletteTextures:e.paletteTextures}),this.changed()}}updateStyleVariables(e){Object.assign(this.styleVariables_,e),this.changed()}}Be.prototype.dispose;const Ve=Be},72475:(e,t,r)=>{"use strict";function n(e,t,r){return Math.min(Math.max(e,t),r)}function i(e,t,r,n,i,s){const a=i-r,l=s-n;if(0!==a||0!==l){const o=((e-r)*a+(t-n)*l)/(a*a+l*l);o>1?(r=i,n=s):o>0&&(r+=a*o,n+=l*o)}return o(e,t,r,n)}function o(e,t,r,n){const i=r-e,o=n-t;return i*i+o*o}function s(e){const t=e.length;for(let r=0;r<t;r++){let n=r,i=Math.abs(e[r][r]);for(let o=r+1;o<t;o++){const t=Math.abs(e[o][r]);t>i&&(i=t,n=o)}if(0===i)return null;const o=e[n];e[n]=e[r],e[r]=o;for(let n=r+1;n<t;n++){const i=-e[n][r]/e[r][r];for(let o=r;o<t+1;o++)r==o?e[n][o]=0:e[n][o]+=i*e[r][o]}}const r=new Array(t);for(let n=t-1;n>=0;n--){r[n]=e[n][t]/e[n][n];for(let i=n-1;i>=0;i--)e[i][t]-=e[i][n]*r[n]}return r}function a(e){return e*Math.PI/180}function l(e,t){const r=e%t;return r*t<0?r+t:r}function c(e,t,r){return e+r*(t-e)}function u(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}function h(e,t){return Math.floor(u(e,t))}function d(e,t){return Math.ceil(u(e,t))}r.d(t,{Cc:()=>c,KU:()=>s,Mg:()=>u,Q1:()=>i,RI:()=>h,eh:()=>a,hG:()=>o,mk:()=>d,qE:()=>n,xP:()=>l})},82048:(e,t,r)=>{"use strict";function n(e){for(const t in e)delete e[t]}function i(e){let t;for(t in e)return!1;return!t}r.d(t,{I:()=>n,p:()=>i})},12940:(e,t,r)=>{"use strict";r.d(t,{Ig:()=>m.I,MF:()=>n.A,Av:()=>k,RJ:()=>T,tI:()=>L,Rb:()=>F,Ad:()=>V,SD:()=>q,Jt:()=>R,hO:()=>D,RG:()=>N,FO:()=>M,Tf:()=>U,WP:()=>j,te:()=>B,JR:()=>K,vN:()=>W,pd:()=>$});var n=r(55528);const i=6378137,o=Math.PI*i,s=[-o,-o,o,o],a=[-180,-85,180,85],l=i*Math.log(Math.tan(Math.PI/2));class c extends n.A{constructor(e){super({code:e,units:"m",extent:s,global:!0,worldExtent:a,getPointResolution:function(e,t){return e/Math.cosh(t[1]/i)}})}}const u=[new c("EPSG:3857"),new c("EPSG:102100"),new c("EPSG:102113"),new c("EPSG:900913"),new c("http://www.opengis.net/def/crs/EPSG/0/3857"),new c("http://www.opengis.net/gml/srs/epsg.xml#3857")];const h=[-180,-90,180,90],d=6378137*Math.PI/180;class f extends n.A{constructor(e,t){super({code:e,units:"degrees",extent:h,axisOrientation:t,global:!0,metersPerUnit:d,worldExtent:h})}}const p=[new f("CRS:84"),new f("EPSG:4326","neu"),new f("urn:ogc:def:crs:OGC:1.3:CRS84"),new f("urn:ogc:def:crs:OGC:2:84"),new f("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new f("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new f("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];var m=r(82410);let g={},y={};function v(e,t,r){const n=e.getCode(),i=t.getCode();n in y||(y[n]={}),y[n][i]=r}var _=r(44509),b=r(72475),w=r(9535);const E=6371008.8;function x(e,t,r){r=r||E;const n=(0,b.eh)(e[1]),i=(0,b.eh)(t[1]),o=(i-n)/2,s=(0,b.eh)(t[0]-e[0])/2,a=Math.sin(o)*Math.sin(o)+Math.sin(s)*Math.sin(s)*Math.cos(n)*Math.cos(i);return 2*r*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}var S=r(96372);let A=!0;function T(e){A=!(void 0===e||e)}function P(e,t){if(void 0!==t)for(let r=0,n=e.length;r<n;++r)t[r]=e[r];else t=e.slice();return t}function C(e,t){if(void 0!==t&&e!==t){for(let r=0,n=e.length;r<n;++r)t[r]=e[r];e=t}return e}function O(e){!function(e,t){g[e]=t}(e.getCode(),e),v(e,e,P)}function R(e){return"string"==typeof e?g[t=e]||g[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:e||null;var t}function D(e,t,r,n){let i;const o=(e=R(e)).getPointResolutionFunc();if(o){if(i=o(t,r),n&&n!==e.getUnits()){const t=e.getMetersPerUnit();t&&(i=i*t/m.I[n])}}else{const o=e.getUnits();if("degrees"==o&&!n||"degrees"==n)i=t;else{const s=M(e,R("EPSG:4326"));if(s===C&&"degrees"!==o)i=t*e.getMetersPerUnit();else{let e=[r[0]-t/2,r[1],r[0]+t/2,r[1],r[0],r[1]-t/2,r[0],r[1]+t/2];e=s(e,e,2),i=(x(e.slice(0,2),e.slice(2,4))+x(e.slice(4,6),e.slice(6,8)))/2}const a=n?m.I[n]:e.getMetersPerUnit();void 0!==a&&(i/=a)}}return i}function I(e){!function(e){e.forEach(O)}(e),e.forEach((function(t){e.forEach((function(e){t!==e&&v(t,e,P)}))}))}function k(e,t){return e?"string"==typeof e?R(e):e:R(t)}function F(e,t){return T(),$(e,"EPSG:4326",void 0!==t?t:"EPSG:3857")}function j(e,t){const r=$(e,void 0!==t?t:"EPSG:3857","EPSG:4326"),n=r[0];return(n<-180||n>180)&&(r[0]=(0,b.xP)(n+180,360)-180),r}function L(e,t){if(e===t)return!0;const r=e.getUnits()===t.getUnits();return(e.getCode()===t.getCode()||M(e,t)===P)&&r}function M(e,t){let r=function(e,t){let r;return e in y&&t in y[e]&&(r=y[e][t]),r}(e.getCode(),t.getCode());return r||(r=C),r}function N(e,t){return M(R(e),R(t))}function $(e,t,r){return N(t,r)(e,void 0,e.length)}function G(e,t,r,n){const i=N(t,r);return(0,_.NW)(e,i,void 0,n)}let z=null;function U(){return z}function B(e,t){return z?$(e,t,z):e}function V(e,t){return z?$(e,z,t):(A&&!(0,w.aI)(e,[0,0])&&e[0]>=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(A=!1,(0,S.R8)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),e)}function K(e,t){return z?G(e,t,z):e}function q(e,t){return z?G(e,z,t):e}function W(e,t){if(!z)return e;const r=R(t).getMetersPerUnit(),n=z.getMetersPerUnit();return r&&n?e*r/n:e}var H,Y,X;I(u),I(p),H=u,Y=function(e,t,r,n){const s=e.length;r=r>1?r:2,n=n??r,void 0===t&&(t=r>2?e.slice():new Array(s));for(let r=0;r<s;r+=n){t[r]=o*e[r]/180;let n=i*Math.log(Math.tan(Math.PI*(+e[r+1]+90)/360));n>l?n=l:n<-l&&(n=-l),t[r+1]=n}return t},X=function(e,t,r,n){const s=e.length;r=r>1?r:2,n=n??r,void 0===t&&(t=r>2?e.slice():new Array(s));for(let r=0;r<s;r+=n)t[r]=180*e[r]/o,t[r+1]=360*Math.atan(Math.exp(e[r+1]/i))/Math.PI-90;return t},p.forEach((function(e){H.forEach((function(t){v(e,t,Y),v(t,e,X)}))}))},55528:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82410);const i=class{constructor(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}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||n.I[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}}},82410:(e,t,r)=>{"use strict";r.d(t,{I:()=>o,q:()=>i});const n={9001:"m",9002:"ft",9003:"us-ft",9101:"radians",9102:"degrees"};function i(e){return n[e]}const o={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937}},3094:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(37283);class i extends n.Ay{constructor(e,t,r,n){super(e),this.inversePixelTransform=t,this.frameState=r,this.context=n}}const o=i},45630:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},28528:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g});var n=r(37377),i=r(44509),o=r(9761),s=r(30444),a=r(93350),l=r(12940),c=r(65709),u=r(82611),h=r(77055),d=r(97440),f=r(70772);const p=(0,n.vt)();class m{constructor(e,t,r,n,i,o){this.styleFunction,this.extent_,this.id_=o,this.type_=e,this.flatCoordinates_=t,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=r||null,this.properties_=i,this.squaredTolerance_,this.stride_=n,this.simplifiedGeometry_}get(e){return this.properties_[e]}getExtent(){return this.extent_||(this.extent_="Point"===this.type_?(0,i.dP)(this.flatCoordinates_):(0,i.Vy)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const e=(0,i.q1)(this.getExtent());this.flatInteriorPoints_=(0,a.J)(this.flatCoordinates_,0,this.ends_,2,e,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const e=(0,c.yJ)(this.flatCoordinates_,this.ends_),t=(0,h.C)(this.flatCoordinates_,0,e,2);this.flatInteriorPoints_=(0,a.p)(this.flatCoordinates_,0,e,2,t)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=(0,u.SH)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const e=this.flatCoordinates_;let t=0;const r=this.ends_;for(let n=0,i=r.length;n<i;++n){const i=r[n],o=(0,u.SH)(e,t,i,2,.5);(0,s.X$)(this.flatMidpoints_,o),t=i}}return this.flatMidpoints_}getId(){return this.id_}getOrientedFlatCoordinates(){return this.flatCoordinates_}getGeometry(){return this}getSimplifiedGeometry(e){return this}simplifyTransformed(e,t){return this}getProperties(){return this.properties_}getPropertiesInternal(){return this.properties_}getStride(){return this.stride_}getStyleFunction(){return this.styleFunction}getType(){return this.type_}transform(e){const t=(e=(0,l.Jt)(e)).getExtent(),r=e.getWorldExtent();if(t&&r){const e=(0,i.Oq)(r)/(0,i.Oq)(t);(0,n.Zz)(p,r[0],r[3],e,-e,0,0,0),(0,f.Rc)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,p,this.flatCoordinates_)}}applyTransform(e){e(this.flatCoordinates_,this.flatCoordinates_,this.stride_)}clone(){return new m(this.type_,this.flatCoordinates_.slice(),this.ends_?.slice(),this.stride_,Object.assign({},this.properties_),this.id_)}getEnds(){return this.ends_}enableSimplifyTransformed(){return this.simplifyTransformed=(0,d.B4)(((e,t)=>{if(e===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),t&&this.simplifiedGeometry_.applyTransform(t);const r=this.simplifiedGeometry_.getFlatCoordinates();let n;switch(this.type_){case"LineString":r.length=(0,o.P4)(r,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,e,r,0),n=[r.length];break;case"MultiLineString":n=[],r.length=(0,o.AL)(r,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,e,r,0,n);break;case"Polygon":n=[],r.length=(0,o.Hg)(r,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(e),r,0,n)}return n&&(this.simplifiedGeometry_=new m(this.type_,r,n,2,this.properties_,this.id_)),this.squaredTolerance_=e,this.simplifiedGeometry_})),this}}m.prototype.getFlatCoordinates=m.prototype.getOrientedFlatCoordinates;const g=m},16724:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=class{drawCustom(e,t,r,n,i){}drawGeometry(e){}setStyle(e){}drawCircle(e,t,r){}drawFeature(e,t,r){}drawGeometryCollection(e,t,r){}drawLineString(e,t,r){}drawMultiLineString(e,t,r){}drawMultiPoint(e,t,r){}drawMultiPolygon(e,t,r){}drawPoint(e,t,r){}drawPolygon(e,t,r){}drawText(e,t,r){}setFillStrokeStyle(e,t){}setImageStyle(e,t){}setTextStyle(e,t){}}},33976:(e,t,r)=>{"use strict";r.d(t,{Jw:()=>R,M8:()=>y,MY:()=>g,NT:()=>m,Oq:()=>h,TA:()=>C,Tq:()=>v,ZV:()=>l,_K:()=>f,_m:()=>u,aq:()=>_,eL:()=>p,fZ:()=>S,jT:()=>O,qY:()=>c,vk:()=>d,yY:()=>b});var n=r(72614),i=r(66993),o=r(82048),s=r(83085),a=r(71686);const l="10px sans-serif",c="#000",u="round",h=[],d=0,f="round",p=10,m="#000",g="center",y="middle",v=[0,0,0,0],_=1,b=new n.A;let w,E=null;const x={},S=function(){const e="32px ",t=["monospace","serif"],r=t.length,n="wmytzilWMYTZIL@#/&?$%10";let i,s;function l(i,o,a){let l=!0;for(let c=0;c<r;++c){const r=t[c];if(s=P(i+" "+o+" "+e+r,n),a!=r){const t=P(i+" "+o+" "+e+a+","+r,n);l=l&&t!=s}}return!!l}function c(){let e=!0;const t=b.getKeys();for(let r=0,n=t.length;r<n;++r){const n=t[r];if(b.get(n)<100){const[t,r,i]=n.split("\n");l(t,r,i)?((0,o.I)(x),E=null,w=void 0,b.set(n,100)):(b.set(n,b.get(n)+1,!0),e=!1)}}e&&(clearInterval(i),i=void 0)}return function(e){const t=(0,a.K5)(e);if(!t)return;const r=t.families;for(let e=0,n=r.length;e<n;++e){const n=r[e],o=t.style+"\n"+t.weight+"\n"+n;void 0===b.get(o)&&(b.set(o,100,!0),l(t.style,t.weight,n)||(b.set(o,0,!0),void 0===i&&(i=setInterval(c,32))))}}}(),A=function(){let e;return function(t){let r=x[t];if(null==r){if(i.Wl){const e=(0,a.K5)(t),n=T(t,"Žg");r=(isNaN(Number(e.lineHeight))?1.2:Number(e.lineHeight))*(n.actualBoundingBoxAscent+n.actualBoundingBoxDescent)}else e||(e=document.createElement("div"),e.innerHTML="M",e.style.minHeight="0",e.style.maxHeight="none",e.style.height="auto",e.style.padding="0",e.style.border="none",e.style.position="absolute",e.style.display="block",e.style.left="-99999px"),e.style.font=t,document.body.appendChild(e),r=e.offsetHeight,document.body.removeChild(e);x[t]=r}return r}}();function T(e,t){return E||(E=(0,s.Y)(1,1)),e!=w&&(E.font=e,w=E.font),E.measureText(t)}function P(e,t){return T(e,t).width}function C(e,t,r){if(t in r)return r[t];const n=t.split("\n").reduce(((t,r)=>Math.max(t,P(e,r))),0);return r[t]=n,n}function O(e,t){const r=[],n=[],i=[];let o=0,s=0,a=0,l=0;for(let c=0,u=t.length;c<=u;c+=2){const h=t[c];if("\n"===h||c===u){o=Math.max(o,s),i.push(s),s=0,a+=l,l=0;continue}const d=t[c+1]||e.font,f=P(d,h);r.push(f),s+=f;const p=A(d);n.push(p),l=Math.max(l,p)}return{width:o,height:a,widths:r,heights:n,lineWidths:i}}function R(e,t,r,n,i,o,s,a,l,c,u){e.save(),1!==r&&(void 0===e.globalAlpha?e.globalAlpha=e=>e.globalAlpha*=r:e.globalAlpha*=r),t&&e.transform.apply(e,t),n.contextInstructions?(e.translate(l,c),e.scale(u[0],u[1]),function(e,t){const r=e.contextInstructions;for(let e=0,n=r.length;e<n;e+=2)Array.isArray(r[e+1])?t[r[e]].apply(t,r[e+1]):t[r[e]]=r[e+1]}(n,e)):u[0]<0||u[1]<0?(e.translate(l,c),e.scale(u[0],u[1]),e.drawImage(n,i,o,s,a,0,0,s,a)):e.drawImage(n,i,o,s,a,l,c,s*u[0],a*u[1]),e.restore()}},10272:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(15675),i=r(85262),o=r(16724),s=r(67029),a=r(44509),l=r(33976),c=r(30444),u=r(35455);class h extends o.A{constructor(e,t,r,n){super(),this.tolerance=e,this.maxExtent=t,this.pixelRatio=n,this.maxLineWidth=0,this.resolution=r,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(e){const t=this.pixelRatio;return 1==t?e:e.map((function(e){return e*t}))}appendFlatPointCoordinates(e,t){const r=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,i=this.coordinates;let o=i.length;for(let s=0,l=e.length;s<l;s+=t)n[0]=e[s],n[1]=e[s+1],(0,a.Ym)(r,n)&&(i[o++]=n[0],i[o++]=n[1]);return o}appendFlatLineCoordinates(e,t,r,n,o,s){const l=this.coordinates;let c=l.length;const u=this.getBufferedMaxExtent();s&&(t+=n);let h=e[t],d=e[t+1];const f=this.tmpCoordinate_;let p,m,g,y=!0;for(p=t+n;p<r;p+=n)f[0]=e[p],f[1]=e[p+1],g=(0,a.vz)(u,f),g!==m?(y&&(l[c++]=h,l[c++]=d,y=!1),l[c++]=f[0],l[c++]=f[1]):g===i.A.INTERSECTING?(l[c++]=f[0],l[c++]=f[1],y=!1):y=!0,h=f[0],d=f[1],m=g;return(o&&y||p===t+n)&&(l[c++]=h,l[c++]=d),c}drawCustomCoordinates_(e,t,r,n,i){for(let o=0,s=r.length;o<s;++o){const s=r[o],a=this.appendFlatLineCoordinates(e,t,s,n,!1,!1);i.push(a),t=s}return t}drawCustom(e,t,r,i,o){this.beginGeometry(e,t,o);const s=e.getType(),a=e.getStride(),l=this.coordinates.length;let c,h,d,f,p;switch(s){case"MultiPolygon":c=e.getOrientedFlatCoordinates(),f=[];const t=e.getEndss();p=0;for(let e=0,r=t.length;e<r;++e){const r=[];p=this.drawCustomCoordinates_(c,p,t[e],a,r),f.push(r)}this.instructions.push([n.Ay.CUSTOM,l,f,e,r,u.Dz,o]),this.hitDetectionInstructions.push([n.Ay.CUSTOM,l,f,e,i||r,u.Dz,o]);break;case"Polygon":case"MultiLineString":d=[],c="Polygon"==s?e.getOrientedFlatCoordinates():e.getFlatCoordinates(),p=this.drawCustomCoordinates_(c,0,e.getEnds(),a,d),this.instructions.push([n.Ay.CUSTOM,l,d,e,r,u.cD,o]),this.hitDetectionInstructions.push([n.Ay.CUSTOM,l,d,e,i||r,u.cD,o]);break;case"LineString":case"Circle":c=e.getFlatCoordinates(),h=this.appendFlatLineCoordinates(c,0,c.length,a,!1,!1),this.instructions.push([n.Ay.CUSTOM,l,h,e,r,u.n2,o]),this.hitDetectionInstructions.push([n.Ay.CUSTOM,l,h,e,i||r,u.n2,o]);break;case"MultiPoint":c=e.getFlatCoordinates(),h=this.appendFlatPointCoordinates(c,a),h>l&&(this.instructions.push([n.Ay.CUSTOM,l,h,e,r,u.n2,o]),this.hitDetectionInstructions.push([n.Ay.CUSTOM,l,h,e,i||r,u.n2,o]));break;case"Point":c=e.getFlatCoordinates(),this.coordinates.push(c[0],c[1]),h=this.coordinates.length,this.instructions.push([n.Ay.CUSTOM,l,h,e,r,void 0,o]),this.hitDetectionInstructions.push([n.Ay.CUSTOM,l,h,e,i||r,void 0,o])}this.endGeometry(t)}beginGeometry(e,t,r){this.beginGeometryInstruction1_=[n.Ay.BEGIN_GEOMETRY,t,0,e,r],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[n.Ay.BEGIN_GEOMETRY,t,0,e,r],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const e=this.hitDetectionInstructions;let t;e.reverse();const r=e.length;let i,o,s=-1;for(t=0;t<r;++t)i=e[t],o=i[0],o==n.Ay.END_GEOMETRY?s=t:o==n.Ay.BEGIN_GEOMETRY&&(i[2]=t,(0,c.gI)(this.hitDetectionInstructions,s,t),s=-1)}setFillStrokeStyle(e,t){const r=this.state;if(e){const t=e.getColor();r.fillPatternScale=t&&"object"==typeof t&&"src"in t?this.pixelRatio:1,r.fillStyle=(0,s.F)(t||l.qY)}else r.fillStyle=void 0;if(t){const e=t.getColor();r.strokeStyle=(0,s.F)(e||l.NT);const n=t.getLineCap();r.lineCap=void 0!==n?n:l._m;const i=t.getLineDash();r.lineDash=i?i.slice():l.Oq;const o=t.getLineDashOffset();r.lineDashOffset=o||l.vk;const a=t.getLineJoin();r.lineJoin=void 0!==a?a:l._K;const c=t.getWidth();r.lineWidth=void 0!==c?c:l.aq;const u=t.getMiterLimit();r.miterLimit=void 0!==u?u:l.eL,r.lineWidth>this.maxLineWidth&&(this.maxLineWidth=r.lineWidth,this.bufferedMaxExtent_=null)}else r.strokeStyle=void 0,r.lineCap=void 0,r.lineDash=null,r.lineDashOffset=void 0,r.lineJoin=void 0,r.lineWidth=void 0,r.miterLimit=void 0}createFill(e){const t=e.fillStyle,r=[n.Ay.SET_FILL_STYLE,t];return"string"!=typeof t&&r.push(e.fillPatternScale),r}applyStroke(e){this.instructions.push(this.createStroke(e))}createStroke(e){return[n.Ay.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]}updateFillStyle(e,t){const r=e.fillStyle;"string"==typeof r&&e.currentFillStyle==r||(void 0!==r&&this.instructions.push(t.call(this,e)),e.currentFillStyle=r)}updateStrokeStyle(e,t){const r=e.strokeStyle,n=e.lineCap,i=e.lineDash,o=e.lineDashOffset,s=e.lineJoin,a=e.lineWidth,l=e.miterLimit;(e.currentStrokeStyle!=r||e.currentLineCap!=n||i!=e.currentLineDash&&!(0,c.aI)(e.currentLineDash,i)||e.currentLineDashOffset!=o||e.currentLineJoin!=s||e.currentLineWidth!=a||e.currentMiterLimit!=l)&&(void 0!==r&&t.call(this,e),e.currentStrokeStyle=r,e.currentLineCap=n,e.currentLineDash=i,e.currentLineDashOffset=o,e.currentLineJoin=s,e.currentLineWidth=a,e.currentMiterLimit=l)}endGeometry(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const t=[n.Ay.END_GEOMETRY,e];this.instructions.push(t),this.hitDetectionInstructions.push(t)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,a.o8)(this.maxExtent),this.maxLineWidth>0)){const e=this.resolution*(this.maxLineWidth+1)/2;(0,a.r)(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}const d=h},21347:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(10272),i=r(15675),o=r(44509);class s extends n.A{constructor(e,t,r,n){super(e,t,r,n),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(e,t,r){if(!this.image_||this.maxExtent&&!(0,o.Ym)(this.maxExtent,e.getFlatCoordinates()))return;this.beginGeometry(e,t,r);const n=e.getFlatCoordinates(),s=e.getStride(),a=this.coordinates.length,l=this.appendFlatPointCoordinates(n,s);this.instructions.push([i.Ay.DRAW_IMAGE,a,l,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([i.Ay.DRAW_IMAGE,a,l,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}drawMultiPoint(e,t,r){if(!this.image_)return;this.beginGeometry(e,t,r);const n=e.getFlatCoordinates(),s=[];for(let t=0,r=n.length;t<r;t+=e.getStride())this.maxExtent&&!(0,o.Ym)(this.maxExtent,n.slice(t,t+2))||s.push(n[t],n[t+1]);const a=this.coordinates.length,l=this.appendFlatPointCoordinates(s,2);this.instructions.push([i.Ay.DRAW_IMAGE,a,l,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([i.Ay.DRAW_IMAGE,a,l,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}finish(){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,super.finish()}setImageStyle(e,t){const r=e.getAnchor(),n=e.getSize(),i=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=r[0],this.anchorY_=r[1],this.hitDetectionImage_=e.getHitDetectionImage(),this.image_=e.getImage(this.pixelRatio),this.height_=n[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_=n[0],this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=t}}const a=s;var l=r(33976);class c extends n.A{constructor(e,t,r,n){super(e,t,r,n)}drawFlatCoordinates_(e,t,r,n){const o=this.coordinates.length,s=this.appendFlatLineCoordinates(e,t,r,n,!1,!1),a=[i.Ay.MOVE_TO_LINE_TO,o,s];return this.instructions.push(a),this.hitDetectionInstructions.push(a),r}drawLineString(e,t,r){const n=this.state,o=n.strokeStyle,s=n.lineWidth;if(void 0===o||void 0===s)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t,r),this.hitDetectionInstructions.push([i.Ay.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,l.Oq,l.vk],i.th);const a=e.getFlatCoordinates(),c=e.getStride();this.drawFlatCoordinates_(a,0,a.length,c),this.hitDetectionInstructions.push(i.VD),this.endGeometry(t)}drawMultiLineString(e,t,r){const n=this.state,o=n.strokeStyle,s=n.lineWidth;if(void 0===o||void 0===s)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t,r),this.hitDetectionInstructions.push([i.Ay.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,l.Oq,l.vk],i.th);const a=e.getEnds(),c=e.getFlatCoordinates(),u=e.getStride();let h=0;for(let e=0,t=a.length;e<t;++e)h=this.drawFlatCoordinates_(c,h,a[e],u);this.hitDetectionInstructions.push(i.VD),this.endGeometry(t)}finish(){const e=this.state;return null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(i.VD),this.reverseHitDetectionInstructions(),this.state=null,super.finish()}applyStroke(e){null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(i.VD),e.lastStroke=this.coordinates.length),e.lastStroke=0,super.applyStroke(e),this.instructions.push(i.th)}}const u=c;var h=r(9761);class d extends n.A{constructor(e,t,r,n){super(e,t,r,n)}drawFlatCoordinatess_(e,t,r,n){const o=this.state,s=void 0!==o.fillStyle,a=void 0!==o.strokeStyle,l=r.length;this.instructions.push(i.th),this.hitDetectionInstructions.push(i.th);for(let o=0;o<l;++o){const s=r[o],l=this.coordinates.length,c=this.appendFlatLineCoordinates(e,t,s,n,!0,!a),u=[i.Ay.MOVE_TO_LINE_TO,l,c];this.instructions.push(u),this.hitDetectionInstructions.push(u),a&&(this.instructions.push(i.kx),this.hitDetectionInstructions.push(i.kx)),t=s}return s&&(this.instructions.push(i.I5),this.hitDetectionInstructions.push(i.I5)),a&&(this.instructions.push(i.VD),this.hitDetectionInstructions.push(i.VD)),t}drawCircle(e,t,r){const n=this.state,o=n.fillStyle,s=n.strokeStyle;if(void 0===o&&void 0===s)return;this.setFillStrokeStyles_(),this.beginGeometry(e,t,r),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([i.Ay.SET_FILL_STYLE,l.qY]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([i.Ay.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,l.Oq,l.vk]);const a=e.getFlatCoordinates(),c=e.getStride(),u=this.coordinates.length;this.appendFlatLineCoordinates(a,0,a.length,c,!1,!1);const h=[i.Ay.CIRCLE,u];this.instructions.push(i.th,h),this.hitDetectionInstructions.push(i.th,h),void 0!==n.fillStyle&&(this.instructions.push(i.I5),this.hitDetectionInstructions.push(i.I5)),void 0!==n.strokeStyle&&(this.instructions.push(i.VD),this.hitDetectionInstructions.push(i.VD)),this.endGeometry(t)}drawPolygon(e,t,r){const n=this.state,o=n.fillStyle,s=n.strokeStyle;if(void 0===o&&void 0===s)return;this.setFillStrokeStyles_(),this.beginGeometry(e,t,r),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([i.Ay.SET_FILL_STYLE,l.qY]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([i.Ay.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,l.Oq,l.vk]);const a=e.getEnds(),c=e.getOrientedFlatCoordinates(),u=e.getStride();this.drawFlatCoordinatess_(c,0,a,u),this.endGeometry(t)}drawMultiPolygon(e,t,r){const n=this.state,o=n.fillStyle,s=n.strokeStyle;if(void 0===o&&void 0===s)return;this.setFillStrokeStyles_(),this.beginGeometry(e,t,r),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([i.Ay.SET_FILL_STYLE,l.qY]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([i.Ay.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,l.Oq,l.vk]);const a=e.getEndss(),c=e.getOrientedFlatCoordinates(),u=e.getStride();let h=0;for(let e=0,t=a.length;e<t;++e)h=this.drawFlatCoordinatess_(c,h,a[e],u);this.endGeometry(t)}finish(){this.reverseHitDetectionInstructions(),this.state=null;const e=this.tolerance;if(0!==e){const t=this.coordinates;for(let r=0,n=t.length;r<n;++r)t[r]=(0,h.n$)(t[r],e)}return super.finish()}setFillStrokeStyles_(){const e=this.state;void 0!==e.fillStyle&&this.updateFillStyle(e,this.createFill),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)}}const f=d;var p=r(79596);const m={Circle:f,Default:n.A,Image:a,LineString:u,Polygon:f,Text:p.A},g=class{constructor(e,t,r,n){this.tolerance_=e,this.maxExtent_=t,this.pixelRatio_=n,this.resolution_=r,this.buildersByZIndex_={}}finish(){const e={};for(const t in this.buildersByZIndex_){e[t]=e[t]||{};const r=this.buildersByZIndex_[t];for(const n in r){const i=r[n].finish();e[t][n]=i}}return e}getBuilder(e,t){const r=void 0!==e?e.toString():"0";let n=this.buildersByZIndex_[r];void 0===n&&(n={},this.buildersByZIndex_[r]=n);let i=n[t];return void 0===i&&(i=new(0,m[t])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[t]=i),i}}},9539:(e,t,r)=>{"use strict";r.d(t,{y2:()=>T,$i:()=>P,x$:()=>C,Ay:()=>R});var n=r(15675),i=r(83050),o=r(79596),s=r(37377),a=r(44509),l=r(33976),c=r(72475),u=r(70772);function h(e,t,r,n,i,o,s,a,l,h,d,f){let p=e[t],m=e[t+1],g=0,y=0,v=0,_=0;function b(){g=p,y=m,p=e[t+=n],m=e[t+1],_+=v,v=Math.sqrt((p-g)*(p-g)+(m-y)*(m-y))}do{b()}while(t<r-n&&_+v<o);let w=0===v?0:(o-_)/v;const E=(0,c.Cc)(g,p,w),x=(0,c.Cc)(y,m,w),S=t-n,A=_,T=o+a*l(h,i,d);for(;t<r-n&&_+v<T;)b();w=0===v?0:(T-_)/v;const P=(0,c.Cc)(g,p,w),C=(0,c.Cc)(y,m,w);let O;if(f){const e=[E,x,P,C];(0,u.e$)(e,0,4,2,f,e,e),O=e[0]>e[2]}else O=E>P;const R=Math.PI,D=[],I=S+n===t;let k;if(v=0,_=A,p=e[t=S],m=e[t+1],I){b(),k=Math.atan2(m-y,p-g),O&&(k+=k>0?-R:R);const e=(P+E)/2,t=(C+x)/2;return D[0]=[e,t,(T-o)/2,k,i],D}for(let e=0,u=(i=i.replace(/\n/g," ")).length;e<u;){b();let f=Math.atan2(m-y,p-g);if(O&&(f+=f>0?-R:R),void 0!==k){let e=f-k;if(e+=e>R?-2*R:e<-R?2*R:0,Math.abs(e)>s)return null}k=f;const E=e;let x=0;for(;e<u;++e){const s=a*l(h,i[O?u-e-1:e],d);if(t+n<r&&_+v<o+x+s/2)break;x+=s}if(e===E)continue;const S=O?i.substring(u-E,u-e):i.substring(E,e);w=0===v?0:(o+x/2-_)/v;const A=(0,c.Cc)(g,p,w),T=(0,c.Cc)(y,m,w);D.push([A,T,x/2,f,S]),o+=x}return D}var d=r(30444),f=r(22346);const p=(0,a.S5)(),m=[],g=[],y=[],v=[];function _(e){return e[3].declutterBox}const b=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?t=b.test(e)?"right":"left":"end"===t&&(t=b.test(e)?"left":"right"),o.E[t]}function E(e,t,r){return r>0&&e.push("\n",""),e.push(t,""),e}const x=class{constructor(e,t,r,n,o){this.overlaps=r,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,s.vt)(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=o?new i.A:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,r,n){const i=e+t+r+n;if(this.labels_[i])return this.labels_[i];const s=n?this.strokeStates[n]:null,a=r?this.fillStates[r]:null,c=this.textStates[t],u=this.pixelRatio,h=[c.scale[0]*u,c.scale[1]*u],d=c.justify?o.E[c.justify]:w(Array.isArray(e)?e[0]:e,c.textAlign||l.MY),f=n&&s.lineWidth?s.lineWidth:0,p=Array.isArray(e)?e:String(e).split("\n").reduce(E,[]),{width:m,height:g,widths:y,heights:v,lineWidths:_}=(0,l.jT)(c,p),b=m+f,x=[],S=(b+2)*h[0],A=(g+f)*h[1],T={width:S<0?Math.floor(S):Math.ceil(S),height:A<0?Math.floor(A):Math.ceil(A),contextInstructions:x};1==h[0]&&1==h[1]||x.push("scale",h),n&&(x.push("strokeStyle",s.strokeStyle),x.push("lineWidth",f),x.push("lineCap",s.lineCap),x.push("lineJoin",s.lineJoin),x.push("miterLimit",s.miterLimit),x.push("setLineDash",[s.lineDash]),x.push("lineDashOffset",s.lineDashOffset)),r&&x.push("fillStyle",a.fillStyle),x.push("textBaseline","middle"),x.push("textAlign","center");const P=.5-d;let C=d*b+P*f;const O=[],R=[];let D,I=0,k=0,F=0,j=0;for(let e=0,t=p.length;e<t;e+=2){const t=p[e];if("\n"===t){k+=I,I=0,C=d*b+P*f,++j;continue}const i=p[e+1]||c.font;i!==D&&(n&&O.push("font",i),r&&R.push("font",i),D=i),I=Math.max(I,v[F]);const o=[t,C+P*y[F]+d*(y[F]-_[j]),.5*(f+I)+k];C+=y[F],n&&O.push("strokeText",o),r&&R.push("fillText",o),++F}return Array.prototype.push.apply(x,O),Array.prototype.push.apply(x,R),this.labels_[i]=T,T}replayTextBackground_(e,t,r,n,i,o,s){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,r),e.lineTo.apply(e,n),e.lineTo.apply(e,i),e.lineTo.apply(e,t),o&&(this.alignAndScaleFill_=o[2],this.fill_(e)),s&&(this.setStrokeStyle_(e,s),e.stroke())}calculateImageOrLabelDimensions_(e,t,r,n,i,o,l,c,u,h,d,f,_,b,w,E){let x=r-(l*=f[0]),S=n-(c*=f[1]);const A=i+u>e?e-u:i,T=o+h>t?t-h:o,P=b[3]+A*f[0]+b[1],C=b[0]+T*f[1]+b[2],O=x-b[3],R=S-b[0];let D;return(w||0!==d)&&(m[0]=O,v[0]=O,m[1]=R,g[1]=R,g[0]=O+P,y[0]=g[0],y[1]=R+C,v[1]=y[1]),0!==d?(D=(0,s.Zz)((0,s.vt)(),r,n,1,1,d,-r,-n),(0,s.Bb)(D,m),(0,s.Bb)(D,g),(0,s.Bb)(D,y),(0,s.Bb)(D,v),(0,a.N)(Math.min(m[0],g[0],y[0],v[0]),Math.min(m[1],g[1],y[1],v[1]),Math.max(m[0],g[0],y[0],v[0]),Math.max(m[1],g[1],y[1],v[1]),p)):(0,a.N)(Math.min(O,O+P),Math.min(R,R+C),Math.max(O,O+P),Math.max(R,R+C),p),_&&(x=Math.round(x),S=Math.round(S)),{drawImageX:x,drawImageY:S,drawImageW:A,drawImageH:T,originX:u,originY:h,declutterBox:{minX:p[0],minY:p[1],maxX:p[2],maxY:p[3],value:E},canvasTransform:D,scale:f}}replayImageOrLabel_(e,t,r,n,i,o,s){const a=!(!o&&!s),c=n.declutterBox,u=s?s[2]*n.scale[0]/2:0;return c.minX-u<=t[0]&&c.maxX+u>=0&&c.minY-u<=t[1]&&c.maxY+u>=0&&(a&&this.replayTextBackground_(e,m,g,y,v,o,s),(0,l.Jw)(e,n.canvasTransform,i,r,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const r=(0,s.Bb)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.save(),e.translate(r[0]%n,r[1]%n),1!==t&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6])}drawLabelWithPointPlacement_(e,t,r,n){const i=this.textStates[t],s=this.createLabel(e,t,n,r),a=this.strokeStates[r],c=this.pixelRatio,u=w(Array.isArray(e)?e[0]:e,i.textAlign||l.MY),h=o.E[i.textBaseline||l.M8],d=a&&a.lineWidth?a.lineWidth:0;return{label:s,anchorX:u*(s.width/c-2*i.scale[0])+2*(.5-u)*d,anchorY:h*s.height/c+2*(.5-h)*d}}execute_(e,t,r,i,o,c,p,m){const g=this.zIndexContext_;let y;this.pixelCoordinates_&&(0,d.aI)(r,this.renderedTransform_)?y=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),y=(0,u.Rc)(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),(0,s.k3)(this.renderedTransform_,r));let v=0;const b=i.length;let E,x,S,A,T,P,C,O,R,D,I,k,F,j=0,L=0,M=0,N=null,$=null;const G=this.coordinateCache_,z=this.viewRotation_,U=Math.round(1e12*Math.atan2(-r[1],r[0]))/1e12,B={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:z},V=this.instructions!=i||this.overlaps?0:200;let K,q,W,H;for(;v<b;){const r=i[v];switch(r[0]){case n.Ay.BEGIN_GEOMETRY:K=r[1],H=r[3],K.getGeometry()?void 0===p||(0,a.HY)(p,H.getExtent())?++v:v=r[2]+1:v=r[2],g&&(g.zIndex=r[4]);break;case n.Ay.BEGIN_PATH:L>V&&(this.fill_(e),L=0),M>V&&(e.stroke(),M=0),L||M||(e.beginPath(),T=NaN,P=NaN),++v;break;case n.Ay.CIRCLE:j=r[1];const i=y[j],s=y[j+1],u=y[j+2]-i,d=y[j+3]-s,b=Math.sqrt(u*u+d*d);e.moveTo(i+b,s),e.arc(i,s,b,0,2*Math.PI,!0),++v;break;case n.Ay.CLOSE_PATH:e.closePath(),++v;break;case n.Ay.CUSTOM:j=r[1],E=r[2];const Y=r[3],X=r[4],Z=r[5];B.geometry=Y,B.feature=K,v in G||(G[v]=[]);const J=G[v];Z?Z(y,j,E,2,J):(J[0]=y[j],J[1]=y[j+1],J.length=2),g&&(g.zIndex=r[6]),X(J,B),++v;break;case n.Ay.DRAW_IMAGE:j=r[1],E=r[2],R=r[3],x=r[4],S=r[5];let Q=r[6];const ee=r[7],te=r[8],re=r[9],ne=r[10];let ie=r[11];const oe=r[12];let se=r[13];A=r[14]||"declutter";const ae=r[15];if(!R&&r.length>=20){D=r[19],I=r[20],k=r[21],F=r[22];const e=this.drawLabelWithPointPlacement_(D,I,k,F);R=e.label,r[3]=R;const t=r[23];x=(e.anchorX-t)*this.pixelRatio,r[4]=x;const n=r[24];S=(e.anchorY-n)*this.pixelRatio,r[5]=S,Q=R.height,r[6]=Q,se=R.width,r[13]=se}let le,ce,ue,he;r.length>25&&(le=r[25]),r.length>17?(ce=r[16],ue=r[17],he=r[18]):(ce=l.Tq,ue=!1,he=!1),ne&&U?ie+=z:ne||U||(ie-=z);let de=0;for(;j<E;j+=2){if(le&&le[de++]<se/this.pixelRatio)continue;const r=this.calculateImageOrLabelDimensions_(R.width,R.height,y[j],y[j+1],se,Q,x,S,te,re,ie,oe,o,ce,ue||he,K),n=[e,t,R,r,ee,ue?N:null,he?$:null];if(m){let e,t,i,o,s;if(ae){const r=E-j;if(!ae[r]){ae[r]={args:n,declutterMode:A};continue}const o=ae[r];e=o.args,t=o.declutterMode,delete ae[r],i=_(e)}if(!e||"declutter"===t&&m.collides(i)||(o=!0),"declutter"===A&&m.collides(r.declutterBox)||(s=!0),"declutter"===t&&"declutter"===A){const e=o&&s;o=e,s=e}o&&("none"!==t&&m.insert(i),this.replayImageOrLabel_.apply(this,e)),s&&("none"!==A&&m.insert(r.declutterBox),this.replayImageOrLabel_.apply(this,n))}else this.replayImageOrLabel_.apply(this,n)}++v;break;case n.Ay.DRAW_CHARS:const fe=r[1],pe=r[2],me=r[3],ge=r[4];F=r[5];const ye=r[6],ve=r[7],_e=r[8];k=r[9];const be=r[10];D=r[11],I=r[12];const we=[r[13],r[13]];A=r[14]||"declutter";const Ee=this.textStates[I],xe=Ee.font,Se=[Ee.scale[0]*ve,Ee.scale[1]*ve];let Ae;xe in this.widths_?Ae=this.widths_[xe]:(Ae={},this.widths_[xe]=Ae);const Te=(0,f.k)(y,fe,pe,2),Pe=Math.abs(Se[0])*(0,l.TA)(xe,D,Ae);if(ge||Pe<=Te){const r=h(y,fe,pe,2,D,(Te-Pe)*w(D,this.textStates[I].textAlign),ye,Math.abs(Se[0]),l.TA,xe,Ae,U?0:this.viewRotation_);e:if(r){const n=[];let i,o,s,a,c;if(k)for(i=0,o=r.length;i<o;++i){c=r[i],s=c[4],a=this.createLabel(s,I,"",k),x=c[2]+(Se[0]<0?-be:be),S=me*a.height+2*(.5-me)*be*Se[1]/Se[0]-_e;const o=this.calculateImageOrLabelDimensions_(a.width,a.height,c[0],c[1],a.width,a.height,x,S,0,0,c[3],we,!1,l.Tq,!1,K);if(m&&"declutter"===A&&m.collides(o.declutterBox))break e;n.push([e,t,a,o,1,null,null])}if(F)for(i=0,o=r.length;i<o;++i){c=r[i],s=c[4],a=this.createLabel(s,I,F,""),x=c[2],S=me*a.height-_e;const o=this.calculateImageOrLabelDimensions_(a.width,a.height,c[0],c[1],a.width,a.height,x,S,0,0,c[3],we,!1,l.Tq,!1,K);if(m&&"declutter"===A&&m.collides(o.declutterBox))break e;n.push([e,t,a,o,1,null,null])}m&&"none"!==A&&m.load(n.map(_));for(let e=0,t=n.length;e<t;++e)this.replayImageOrLabel_.apply(this,n[e])}}++v;break;case n.Ay.END_GEOMETRY:if(void 0!==c){K=r[1];const e=c(K,H,A);if(e)return e}++v;break;case n.Ay.FILL:V?L++:this.fill_(e),++v;break;case n.Ay.MOVE_TO_LINE_TO:for(j=r[1],E=r[2],q=y[j],W=y[j+1],e.moveTo(q,W),T=q+.5|0,P=W+.5|0,j+=2;j<E;j+=2)q=y[j],W=y[j+1],C=q+.5|0,O=W+.5|0,j!=E-2&&C===T&&O===P||(e.lineTo(q,W),T=C,P=O);++v;break;case n.Ay.SET_FILL_STYLE:N=r,this.alignAndScaleFill_=r[2],L&&(this.fill_(e),L=0,M&&(e.stroke(),M=0)),e.fillStyle=r[1],++v;break;case n.Ay.SET_STROKE_STYLE:$=r,M&&(e.stroke(),M=0),this.setStrokeStyle_(e,r),++v;break;case n.Ay.STROKE:V?M++:e.stroke(),++v;break;default:++v}}L&&this.fill_(e),M&&e.stroke()}execute(e,t,r,n,i,o){this.viewRotation_=n,this.execute_(e,t,r,this.instructions,i,void 0,void 0,o)}executeHitDetection(e,t,r,n,i){return this.viewRotation_=r,this.execute_(e,[e.canvas.width,e.canvas.height],t,this.hitDetectionInstructions,!0,n,i)}};var S=r(83085),A=r(82048);const T=["Polygon","Circle","LineString","Image","Text","Default"],P=["Image","Text"],C=T.filter((e=>!P.includes(e))),O={},R=class{constructor(e,t,r,n,i,o,a){this.maxExtent_=e,this.overlaps_=n,this.pixelRatio_=r,this.resolution_=t,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,s.vt)(),this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(i,a)}clip(e,t){const r=this.getClipCoords(t);e.beginPath(),e.moveTo(r[0],r[1]),e.lineTo(r[2],r[3]),e.lineTo(r[4],r[5]),e.lineTo(r[6],r[7]),e.clip()}createExecutors_(e,t){for(const r in e){let n=this.executorsByZIndex_[r];void 0===n&&(n={},this.executorsByZIndex_[r]=n);const i=e[r];for(const e in i){const r=i[e];n[e]=new x(this.resolution_,this.pixelRatio_,this.overlaps_,r,t)}}}hasExecutors(e){for(const t in this.executorsByZIndex_){const r=this.executorsByZIndex_[t];for(let t=0,n=e.length;t<n;++t)if(e[t]in r)return!0}return!1}forEachFeatureAtCoordinate(e,t,r,n,i,o){const l=2*(n=Math.round(n))+1,c=(0,s.Zz)(this.hitDetectionTransform_,n+.5,n+.5,1/t,-1/t,-r,-e[0],-e[1]),u=!this.hitDetectionContext_;u&&(this.hitDetectionContext_=(0,S.Y)(l,l,void 0,{willReadFrequently:!0}));const h=this.hitDetectionContext_;let f;h.canvas.width!==l||h.canvas.height!==l?(h.canvas.width=l,h.canvas.height=l):u||h.clearRect(0,0,l,l),void 0!==this.renderBuffer_&&(f=(0,a.S5)(),(0,a.$C)(f,e),(0,a.r)(f,t*(this.renderBuffer_+n),f));const p=function(e){if(void 0!==O[e])return O[e];const t=2*e+1,r=e*e,n=new Array(r+1);for(let i=0;i<=e;++i)for(let o=0;o<=e;++o){const s=i*i+o*o;if(s>r)break;let a=n[s];a||(a=[],n[s]=a),a.push(4*((e+i)*t+(e+o))+3),i>0&&a.push(4*((e-i)*t+(e+o))+3),o>0&&(a.push(4*((e+i)*t+(e-o))+3),i>0&&a.push(4*((e-i)*t+(e-o))+3))}const i=[];for(let e=0,t=n.length;e<t;++e)n[e]&&i.push(...n[e]);return O[e]=i,i}(n);let m;function g(e,t,r){const s=h.getImageData(0,0,l,l).data;for(let a=0,c=p.length;a<c;a++)if(s[p[a]]>0){if(!o||"none"===r||"Image"!==m&&"Text"!==m||o.includes(e)){const r=(p[a]-3)/4,o=n-r%l,s=n-(r/l|0),c=i(e,t,o*o+s*s);if(c)return c}h.clearRect(0,0,l,l);break}}const y=Object.keys(this.executorsByZIndex_).map(Number);let v,_,b,w,E;for(y.sort(d.V_),v=y.length-1;v>=0;--v){const e=y[v].toString();for(b=this.executorsByZIndex_[e],_=T.length-1;_>=0;--_)if(m=T[_],w=b[m],void 0!==w&&(E=w.executeHitDetection(h,c,r,g,f),E))return E}}getClipCoords(e){const t=this.maxExtent_;if(!t)return null;const r=t[0],n=t[1],i=t[2],o=t[3],s=[r,n,r,o,i,o,i,n];return(0,u.Rc)(s,0,8,2,e,s),s}isEmpty(){return(0,A.p)(this.executorsByZIndex_)}execute(e,t,r,n,i,o,s){const a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(d.V_),o=o||T;const l=T.length;let c,u,h,f,p;for(s&&a.reverse(),c=0,u=a.length;c<u;++c){const u=a[c].toString();for(p=this.executorsByZIndex_[u],h=0,f=o.length;h<f;++h){const u=o[h],d=p[u];if(void 0!==d){const o=null===s?void 0:d.getZIndexContext(),f=o?o.getContext():e,p=this.maxExtent_&&"Image"!==u&&"Text"!==u;if(p&&(f.save(),this.clip(f,r)),o&&"Text"!==u&&"Image"!==u?o.pushFunction((e=>d.execute(e,t,r,n,i,s))):d.execute(f,t,r,n,i,s),p&&f.restore(),o){o.offset();const e=a[c]*l+h;this.deferredZIndexContexts_[e]||(this.deferredZIndexContexts_[e]=[]),this.deferredZIndexContexts_[e].push(o)}}}}this.renderedContext_=e}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const e=this.deferredZIndexContexts_,t=Object.keys(e).map(Number).sort(d.V_);for(let r=0,n=t.length;r<n;++r)e[t[r]].forEach((e=>{e.draw(this.renderedContext_),e.clear()})),e[t[r]].length=0}}},15675:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,I5:()=>i,VD:()=>o,kx:()=>a,th:()=>s});const n={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=[n.FILL],o=[n.STROKE],s=[n.BEGIN_PATH],a=[n.CLOSE_PATH],l=n},79596:(e,t,r)=>{"use strict";r.d(t,{E:()=>d,A:()=>p});var n=r(10272),i=r(15675),o=r(67029),s=r(33976),a=r(98629),l=r(44509),c=r(72475);function u(e,t,r,n,i){const o=[];let s=r,a=0,l=t.slice(r,2);for(;a<e&&s+i<n;){const[r,n]=l.slice(-2),u=t[s+i],h=t[s+i+1],d=Math.sqrt((u-r)*(u-r)+(h-n)*(h-n));if(a+=d,a>=e){const t=(e-a+d)/d,f=(0,c.Cc)(r,u,t),p=(0,c.Cc)(n,h,t);l.push(f,p),o.push(l),l=[f,p],a==e&&(s+=i),a=0}else if(a<e)l.push(t[s+i],t[s+i+1]),s+=i;else{const e=d-a,t=(0,c.Cc)(r,u,e/d),f=(0,c.Cc)(n,h,e/d);l.push(t,f),o.push(l),l=[t,f],a=0,s+=i}}return a>0&&o.push(l),o}function h(e,t,r,n,i){let o,s,a,l,c,u,h,d,f,p,m=r,g=r,y=0,v=0,_=r;for(s=r;s<n;s+=i){const r=t[s],n=t[s+1];void 0!==c&&(f=r-c,p=n-u,l=Math.sqrt(f*f+p*p),void 0!==h&&(v+=a,o=Math.acos((h*f+d*p)/(a*l)),o>e&&(v>y&&(y=v,m=_,g=s),v=0,_=s-i)),a=l,h=f,d=p),c=r,u=n}return v+=l,v>y?[_,s]:[m,g]}const d={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class f extends n.A{constructor(e,t,r,n){super(e,t,r,n),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[s.qY]={fillStyle:s.qY},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const e=super.finish();return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e}drawText(e,t,r){const n=this.textFillState_,o=this.textStrokeState_,a=this.textState_;if(""===this.text_||!a||!n&&!o)return;const c=this.coordinates;let d=c.length;const f=e.getType();let p=null,m=e.getStride();if("line"!==a.placement||"LineString"!=f&&"MultiLineString"!=f&&"Polygon"!=f&&"MultiPolygon"!=f){let n=a.overflow?null:[];switch(f){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(),m=2;break;case"Polygon":p=e.getFlatInteriorPoint(),a.overflow||n.push(p[2]/this.resolution),m=3;break;case"MultiPolygon":const t=e.getFlatInteriorPoints();p=[];for(let e=0,r=t.length;e<r;e+=3)a.overflow||n.push(t[e+2]/this.resolution),p.push(t[e],t[e+1]);if(0===p.length)return;m=2}const o=this.appendFlatPointCoordinates(p,m);if(o===d)return;if(n&&(o-d)/2!=p.length/m){let e=d/2;n=n.filter(((t,r)=>{const n=c[2*(e+r)]===p[r*m]&&c[2*(e+r)+1]===p[r*m+1];return n||--e,n}))}this.saveTextStates_(),(a.backgroundFill||a.backgroundStroke)&&(this.setFillStrokeStyle(a.backgroundFill,a.backgroundStroke),a.backgroundFill&&this.updateFillStyle(this.state,this.createFill),a.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,t,r);let l=a.padding;if(l!=s.Tq&&(a.scale[0]<0||a.scale[1]<0)){let e=a.padding[0],t=a.padding[1],r=a.padding[2],n=a.padding[3];a.scale[0]<0&&(t=-t,n=-n),a.scale[1]<0&&(e=-e,r=-r),l=[e,t,r,n]}const u=this.pixelRatio;this.instructions.push([i.Ay.DRAW_IMAGE,d,o,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,l==s.Tq?s.Tq:l.map((function(e){return e*u})),!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]);const h=1/u,g=this.state.fillStyle;a.backgroundFill&&(this.state.fillStyle=s.qY,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([i.Ay.DRAW_IMAGE,d,o,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[h,h],NaN,this.declutterMode_,this.declutterImageWithText_,l,!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?s.qY:this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]),a.backgroundFill&&(this.state.fillStyle=g,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(t)}else{if(!(0,l.HY)(this.maxExtent,e.getExtent()))return;let n;if(p=e.getFlatCoordinates(),"LineString"==f)n=[p.length];else if("MultiLineString"==f)n=e.getEnds();else if("Polygon"==f)n=e.getEnds().slice(0,1);else if("MultiPolygon"==f){const t=e.getEndss();n=[];for(let e=0,r=t.length;e<r;++e)n.push(t[e][0])}this.beginGeometry(e,t,r);const i=a.repeat,o=i?void 0:a.textAlign;let s=0;for(let e=0,t=n.length;e<t;++e){let t;t=i?u(i*this.resolution,p,s,n[e],m):[p.slice(s,n[e])];for(let r=0,i=t.length;r<i;++r){const i=t[r];let l=0,u=i.length;if(null==o){const e=h(a.maxAngle,i,0,i.length,2);l=e[0],u=e[1]}for(let e=l;e<u;e+=m)c.push(i[e],i[e+1]);const f=c.length;s=n[e],this.drawChars_(d,f),d=f}}this.endGeometry(t)}}saveTextStates_(){const e=this.textStrokeState_,t=this.textState_,r=this.textFillState_,n=this.strokeKey_;e&&(n in this.strokeStates||(this.strokeStates[n]={strokeStyle:e.strokeStyle,lineCap:e.lineCap,lineDashOffset:e.lineDashOffset,lineWidth:e.lineWidth,lineJoin:e.lineJoin,miterLimit:e.miterLimit,lineDash:e.lineDash}));const i=this.textKey_;i in this.textStates||(this.textStates[i]={font:t.font,textAlign:t.textAlign||s.MY,justify:t.justify,textBaseline:t.textBaseline||s.M8,scale:t.scale});const o=this.fillKey_;r&&(o in this.fillStates||(this.fillStates[o]={fillStyle:r.fillStyle}))}drawChars_(e,t){const r=this.textStrokeState_,n=this.textState_,o=this.strokeKey_,a=this.textKey_,l=this.fillKey_;this.saveTextStates_();const c=this.pixelRatio,u=d[n.textBaseline],h=this.textOffsetY_*c,f=this.text_,p=r?r.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([i.Ay.DRAW_CHARS,e,t,u,n.overflow,l,n.maxAngle,c,h,o,p*c,f,a,1,this.declutterMode_]),this.hitDetectionInstructions.push([i.Ay.DRAW_CHARS,e,t,u,n.overflow,l?s.qY:l,n.maxAngle,c,h,o,p*c,f,a,1/c,this.declutterMode_])}setTextStyle(e,t){let r,n,i;if(e){const t=e.getFill();t?(n=this.textFillState_,n||(n={},this.textFillState_=n),n.fillStyle=(0,o.F)(t.getColor()||s.qY)):(n=null,this.textFillState_=n);const l=e.getStroke();if(l){i=this.textStrokeState_,i||(i={},this.textStrokeState_=i);const e=l.getLineDash(),t=l.getLineDashOffset(),r=l.getWidth(),n=l.getMiterLimit();i.lineCap=l.getLineCap()||s._m,i.lineDash=e?e.slice():s.Oq,i.lineDashOffset=void 0===t?s.vk:t,i.lineJoin=l.getLineJoin()||s._K,i.lineWidth=void 0===r?s.aq:r,i.miterLimit=void 0===n?s.eL:n,i.strokeStyle=(0,o.F)(l.getColor()||s.NT)}else i=null,this.textStrokeState_=i;r=this.textState_;const c=e.getFont()||s.ZV;(0,s.fZ)(c);const u=e.getScaleArray();r.overflow=e.getOverflow(),r.font=c,r.maxAngle=e.getMaxAngle(),r.placement=e.getPlacement(),r.textAlign=e.getTextAlign(),r.repeat=e.getRepeat(),r.justify=e.getJustify(),r.textBaseline=e.getTextBaseline()||s.M8,r.backgroundFill=e.getBackgroundFill(),r.backgroundStroke=e.getBackgroundStroke(),r.padding=e.getPadding()||s.Tq,r.scale=void 0===u?[1,1]:u;const h=e.getOffsetX(),d=e.getOffsetY(),f=e.getRotateWithView(),p=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=void 0===h?0:h,this.textOffsetY_=void 0===d?0:d,this.textRotateWithView_=void 0!==f&&f,this.textRotation_=void 0===p?0:p,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:(0,a.v6)(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=r.font+r.scale+(r.textAlign||"?")+(r.repeat||"?")+(r.justify||"?")+(r.textBaseline||"?"),this.fillKey_=n&&n.fillStyle?"string"==typeof n.fillStyle?n.fillStyle:"|"+(0,a.v6)(n.fillStyle):""}else this.text_="";this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=t}}const p=f},83050:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(83085);const i=class{constructor(){this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy((0,n.lr)(),{get:(e,t)=>{if("function"==typeof(0,n.lr)()[t])return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(t),this.pushMethodArgs_},set:(e,t,r)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(t,r),!0)})}pushMethodArgs_=(...e)=>(this.instructions_[this.zIndex+this.offset_].push(e),this);pushFunction(e){this.instructions_[this.zIndex+this.offset_].push(e)}getContext(){return this.context_}draw(e){this.instructions_.forEach((t=>{for(let r=0,n=t.length;r<n;++r){const n=t[r];if("function"==typeof n){n(e);continue}const i=t[++r];if("function"==typeof e[n])e[n](...i);else{if("function"==typeof i){e[n]=i(e);continue}e[n]=i}}}))}clear(){this.instructions_.length=0,this.zIndex=0,this.offset_=0}offset(){this.offset_=this.instructions_.length,this.zIndex=0}}},12049:(e,t,r)=>{"use strict";r.d(t,{tF:()=>y,_7:()=>v,F8:()=>_});var n=r(16724),i=r(67029),o=r(37377),s=r(33976),a=r(30444),l=r(44509),c=r(72475),u=r(70772),h=r(31886);class d extends n.A{constructor(e,t,r,n,i,s,a){super(),this.context_=e,this.pixelRatio_=t,this.extent_=r,this.transform_=n,this.transformRotation_=n?(0,c.Mg)(Math.atan2(n[1],n[0]),10):0,this.viewRotation_=i,this.squaredTolerance_=s,this.userTransform_=a,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=(0,o.vt)()}drawImages_(e,t,r,n){if(!this.image_)return;const i=(0,u.Rc)(e,t,r,n,this.transform_,this.pixelCoordinates_),s=this.context_,a=this.tmpLocalTransform_,l=s.globalAlpha;1!=this.imageOpacity_&&(s.globalAlpha=l*this.imageOpacity_);let c=this.imageRotation_;0===this.transformRotation_&&(c-=this.viewRotation_),this.imageRotateWithView_&&(c+=this.viewRotation_);for(let e=0,t=i.length;e<t;e+=2){const t=i[e]-this.imageAnchorX_,r=i[e+1]-this.imageAnchorY_;if(0!==c||1!=this.imageScale_[0]||1!=this.imageScale_[1]){const e=t+this.imageAnchorX_,n=r+this.imageAnchorY_;(0,o.Zz)(a,e,n,1,1,c,-e,-n),s.save(),s.transform.apply(s,a),s.translate(e,n),s.scale(this.imageScale_[0],this.imageScale_[1]),s.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),s.restore()}else s.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,t,r,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(s.globalAlpha=l)}drawText_(e,t,r,n){if(!this.textState_||""===this.text_)return;this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);const i=(0,u.Rc)(e,t,r,n,this.transform_,this.pixelCoordinates_),o=this.context_;let s=this.textRotation_;for(0===this.transformRotation_&&(s-=this.viewRotation_),this.textRotateWithView_&&(s+=this.viewRotation_);t<r;t+=n){const e=i[t]+this.textOffsetX_,r=i[t+1]+this.textOffsetY_;0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]?(o.save(),o.translate(e-this.textOffsetX_,r-this.textOffsetY_),o.rotate(s),o.translate(this.textOffsetX_,this.textOffsetY_),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.restore()):(this.textStrokeState_&&o.strokeText(this.text_,e,r),this.textFillState_&&o.fillText(this.text_,e,r))}}moveToLineTo_(e,t,r,n,i){const o=this.context_,s=(0,u.Rc)(e,t,r,n,this.transform_,this.pixelCoordinates_);o.moveTo(s[0],s[1]);let a=s.length;i&&(a-=2);for(let e=2;e<a;e+=2)o.lineTo(s[e],s[e+1]);return i&&o.closePath(),r}drawRings_(e,t,r,n){for(let i=0,o=r.length;i<o;++i)t=this.moveToLineTo_(e,t,r[i],n,!0);return t}drawCircle(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,e.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const t=(0,h.v7)(e,this.transform_,this.pixelCoordinates_),r=t[2]-t[0],n=t[3]-t[1],i=Math.sqrt(r*r+n*n),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)}}setStyle(e){this.setFillStrokeStyle(e.getFill(),e.getStroke()),this.setImageStyle(e.getImage()),this.setTextStyle(e.getText())}setTransform(e){this.transform_=e}drawGeometry(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)}}drawFeature(e,t){const r=t.getGeometryFunction()(e);r&&(this.setStyle(t),this.drawGeometry(r))}drawGeometryCollection(e){const t=e.getGeometriesArray();for(let e=0,r=t.length;e<r;++e)this.drawGeometry(t[e])}drawPoint(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const t=e.getFlatCoordinates(),r=e.getStride();this.image_&&this.drawImages_(t,0,t.length,r),""!==this.text_&&this.drawText_(t,0,t.length,r)}drawMultiPoint(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const t=e.getFlatCoordinates(),r=e.getStride();this.image_&&this.drawImages_(t,0,t.length,r),""!==this.text_&&this.drawText_(t,0,t.length,r)}drawLineString(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,e.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const t=this.context_,r=e.getFlatCoordinates();t.beginPath(),this.moveToLineTo_(r,0,r.length,e.getStride(),!1),t.stroke()}if(""!==this.text_){const t=e.getFlatMidpoint();this.drawText_(t,0,2,2)}}}drawMultiLineString(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const t=e.getExtent();if((0,l.HY)(this.extent_,t)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const t=this.context_,r=e.getFlatCoordinates();let n=0;const i=e.getEnds(),o=e.getStride();t.beginPath();for(let e=0,t=i.length;e<t;++e)n=this.moveToLineTo_(r,n,i[e],o,!1);t.stroke()}if(""!==this.text_){const t=e.getFlatMidpoints();this.drawText_(t,0,t.length,2)}}}drawPolygon(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const 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_){const t=e.getFlatInteriorPoint();this.drawText_(t,0,2,2)}}}drawMultiPolygon(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const t=this.context_,r=e.getOrientedFlatCoordinates();let n=0;const i=e.getEndss(),o=e.getStride();t.beginPath();for(let e=0,t=i.length;e<t;++e){const t=i[e];n=this.drawRings_(r,n,t,o)}this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){const t=e.getFlatInteriorPoints();this.drawText_(t,0,t.length,2)}}}setContextFillState_(e){const t=this.context_,r=this.contextFillState_;r?r.fillStyle!=e.fillStyle&&(r.fillStyle=e.fillStyle,t.fillStyle=e.fillStyle):(t.fillStyle=e.fillStyle,this.contextFillState_={fillStyle:e.fillStyle})}setContextStrokeState_(e){const t=this.context_,r=this.contextStrokeState_;r?(r.lineCap!=e.lineCap&&(r.lineCap=e.lineCap,t.lineCap=e.lineCap),(0,a.aI)(r.lineDash,e.lineDash)||t.setLineDash(r.lineDash=e.lineDash),r.lineDashOffset!=e.lineDashOffset&&(r.lineDashOffset=e.lineDashOffset,t.lineDashOffset=e.lineDashOffset),r.lineJoin!=e.lineJoin&&(r.lineJoin=e.lineJoin,t.lineJoin=e.lineJoin),r.lineWidth!=e.lineWidth&&(r.lineWidth=e.lineWidth,t.lineWidth=e.lineWidth),r.miterLimit!=e.miterLimit&&(r.miterLimit=e.miterLimit,t.miterLimit=e.miterLimit),r.strokeStyle!=e.strokeStyle&&(r.strokeStyle=e.strokeStyle,t.strokeStyle=e.strokeStyle)):(t.lineCap=e.lineCap,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})}setContextTextState_(e){const t=this.context_,r=this.contextTextState_,n=e.textAlign?e.textAlign:s.MY;r?(r.font!=e.font&&(r.font=e.font,t.font=e.font),r.textAlign!=n&&(r.textAlign=n,t.textAlign=n),r.textBaseline!=e.textBaseline&&(r.textBaseline=e.textBaseline,t.textBaseline=e.textBaseline)):(t.font=e.font,t.textAlign=n,t.textBaseline=e.textBaseline,this.contextTextState_={font:e.font,textAlign:n,textBaseline:e.textBaseline})}setFillStrokeStyle(e,t){if(e){const t=e.getColor();this.fillState_={fillStyle:(0,i.F)(t||s.qY)}}else this.fillState_=null;if(t){const e=t.getColor(),r=t.getLineCap(),n=t.getLineDash(),o=t.getLineDashOffset(),a=t.getLineJoin(),l=t.getWidth(),c=t.getMiterLimit(),u=n||s.Oq;this.strokeState_={lineCap:void 0!==r?r:s._m,lineDash:1===this.pixelRatio_?u:u.map((e=>e*this.pixelRatio_)),lineDashOffset:(o||s.vk)*this.pixelRatio_,lineJoin:void 0!==a?a:s._K,lineWidth:(void 0!==l?l:s.aq)*this.pixelRatio_,miterLimit:void 0!==c?c:s.eL,strokeStyle:(0,i.F)(e||s.NT)}}else this.strokeState_=null}setImageStyle(e){let t;if(!e||!(t=e.getSize()))return void(this.image_=null);const r=e.getPixelRatio(this.pixelRatio_),n=e.getAnchor(),i=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*r,this.imageAnchorY_=n[1]*r,this.imageHeight_=t[1]*r,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=i[0],this.imageOriginY_=i[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation();const o=e.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/r,o[1]*this.pixelRatio_/r],this.imageWidth_=t[0]*r}setTextStyle(e){if(e){const t=e.getFill();if(t){const e=t.getColor();this.textFillState_={fillStyle:(0,i.F)(e||s.qY)}}else this.textFillState_=null;const r=e.getStroke();if(r){const e=r.getColor(),t=r.getLineCap(),n=r.getLineDash(),o=r.getLineDashOffset(),a=r.getLineJoin(),l=r.getWidth(),c=r.getMiterLimit();this.textStrokeState_={lineCap:void 0!==t?t:s._m,lineDash:n||s.Oq,lineDashOffset:o||s.vk,lineJoin:void 0!==a?a:s._K,lineWidth:void 0!==l?l:s.aq,miterLimit:void 0!==c?c:s.eL,strokeStyle:(0,i.F)(e||s.NT)}}else this.textStrokeState_=null;const n=e.getFont(),o=e.getOffsetX(),a=e.getOffsetY(),l=e.getRotateWithView(),c=e.getRotation(),u=e.getScaleArray(),h=e.getText(),d=e.getTextAlign(),f=e.getTextBaseline();this.textState_={font:void 0!==n?n:s.ZV,textAlign:void 0!==d?d:s.MY,textBaseline:void 0!==f?f:s.M8},this.text_=void 0!==h?Array.isArray(h)?h.reduce(((e,t,r)=>e+(r%2?" ":t)),""):h:"",this.textOffsetX_=void 0!==o?this.pixelRatio_*o:0,this.textOffsetY_=void 0!==a?this.pixelRatio_*a:0,this.textRotateWithView_=void 0!==l&&l,this.textRotation_=void 0!==c?c:0,this.textScale_=[this.pixelRatio_*u[0],this.pixelRatio_*u[1]]}else this.text_=""}}const f=d;var p=r(25174),m=r(83085),g=r(12940);const y=.5;function v(e,t,r,n,i,o,s,c,u){const h=u?(0,g.JR)(i,u):i,d=e[0]*y,v=e[1]*y,_=(0,m.Y)(d,v);_.imageSmoothingEnabled=!1;const b=_.canvas,w=new f(_,y,i,null,s,c,u?(0,g.FO)((0,g.Tf)(),u):null),E=r.length,x=Math.floor(16777215/E),S={};for(let e=1;e<=E;++e){const t=r[e-1],i=t.getStyleFunction()||n;if(!i)continue;let s=i(t,o);if(!s)continue;Array.isArray(s)||(s=[s]);const a=(e*x).toString(16).padStart(7,"#00000");for(let e=0,r=s.length;e<r;++e){const r=s[e],n=r.getGeometryFunction()(t);if(!n||!(0,l.HY)(h,n.getExtent()))continue;const i=r.clone(),o=i.getFill();o&&o.setColor(a);const c=i.getStroke();c&&(c.setColor(a),c.setLineDash(null)),i.setText(void 0);const u=r.getImage();if(u){const e=u.getImageSize();if(!e)continue;const t=(0,m.Y)(e[0],e[1],void 0,{alpha:!1}),r=t.canvas;t.fillStyle=a,t.fillRect(0,0,r.width,r.height),i.setImage(new p.A({img:r,anchor:u.getAnchor(),anchorXUnits:"pixels",anchorYUnits:"pixels",offset:u.getOrigin(),opacity:1,size:u.getSize(),scale:u.getScale(),rotation:u.getRotation(),rotateWithView:u.getRotateWithView()}))}const d=i.getZIndex()||0;let f=S[d];f||(f={},S[d]=f,f.Polygon=[],f.Circle=[],f.LineString=[],f.Point=[]);const g=n.getType();if("GeometryCollection"===g){const e=n.getGeometriesArrayRecursive();for(let t=0,r=e.length;t<r;++t){const r=e[t];f[r.getType().replace("Multi","")].push(r,i)}}else f[g.replace("Multi","")].push(n,i)}}const A=Object.keys(S).map(Number).sort(a.V_);for(let e=0,r=A.length;e<r;++e){const r=S[A[e]];for(const e in r){const n=r[e];for(let e=0,r=n.length;e<r;e+=2){w.setStyle(n[e+1]);for(let r=0,i=t.length;r<i;++r)w.setTransform(t[r]),w.drawGeometry(n[e])}}}return _.getImageData(0,0,b.width,b.height)}function _(e,t,r){const n=[];if(r){const i=Math.floor(Math.round(e[0])*y),o=Math.floor(Math.round(e[1])*y),s=4*((0,c.qE)(i,0,r.width-1)+(0,c.qE)(o,0,r.height-1)*r.width),a=r.data[s],l=r.data[s+1],u=r.data[s+2]+256*(l+256*a),h=Math.floor(16777215/t.length);u&&u%h==0&&n.push(t[u/h-1])}return n}},10312:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(24187),i=r(39915),o=r(80548),s=r(98629);class a extends o.A{constructor(e){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=e,this.staleKeys_=new Array,this.maxStaleKeys=5}getStaleKeys(){return this.staleKeys_}prependStaleKey(e){this.staleKeys_.unshift(e),this.staleKeys_.length>this.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}getFeatures(e){return(0,s.b0)()}getData(e){return null}prepareFrame(e){return(0,s.b0)()}renderFrame(e,t){return(0,s.b0)()}forEachFeatureAtCoordinate(e,t,r,n,i){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(e){const t=e.target;t.getState()!==i.A.LOADED&&t.getState()!==i.A.ERROR||this.renderIfReadyAndVisible()}loadImage(e){let t=e.getState();return t!=i.A.LOADED&&t!=i.A.ERROR&&e.addEventListener(n.A.CHANGE,this.boundHandleImageChange_),t==i.A.IDLE&&(e.load(),t=e.getState()),t==i.A.LOADED}renderIfReadyAndVisible(){const e=this.getLayer();e&&e.getVisible()&&"ready"===e.getSourceState()&&e.changed()}renderDeferred(e){}disposeInternal(){delete this.layer_,super.disposeInternal()}}const l=a},87383:(e,t,r)=>{"use strict";r.d(t,{A:()=>m,B:()=>d});var n=r(10312),i=r(3094),o=r(45630),s=r(83050),a=r(37377),l=r(41009),c=r(83085),u=r(30444),h=r(44509);const d=[];let f=null;class p extends n.A{constructor(e){super(e),this.container=null,this.renderedResolution,this.tempTransform=(0,a.vt)(),this.pixelTransform=(0,a.vt)(),this.inversePixelTransform=(0,a.vt)(),this.context=null,this.deferredContext_=null,this.containerReused=!1,this.frameState=null}getImageData(e,t,r){let n;f||(f=(0,c.Y)(1,1,void 0,{willReadFrequently:!0})),f.clearRect(0,0,1,1);try{f.drawImage(e,t,r,1,1,0,0,1,1),n=f.getImageData(0,0,1,1).data}catch(e){return f=null,null}return n}getBackground(e){let t=this.getLayer().getBackground();return"function"==typeof t&&(t=t(e.viewState.resolution)),t||void 0}useContainer(e,t,r){const n=this.getLayer().getClassName();let i,o;if(e&&e.className===n&&(!r||e&&e.style.backgroundColor&&(0,u.aI)((0,l._j)(e.style.backgroundColor),(0,l._j)(r)))){const t=e.firstElementChild;t instanceof HTMLCanvasElement&&(o=t.getContext("2d"))}if(o&&o.canvas.style.transform===t?(this.container=e,this.context=o,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){i=document.createElement("div"),i.className=n;let e=i.style;e.position="absolute",e.width="100%",e.height="100%",o=(0,c.Y)();const t=o.canvas;i.appendChild(t),e=t.style,e.position="absolute",e.left="0",e.transformOrigin="top left",this.container=i,this.context=o}this.containerReused||!r||this.container.style.backgroundColor||(this.container.style.backgroundColor=r)}clipUnrotated(e,t,r){const n=(0,h.Py)(r),i=(0,h.WU)(r),o=(0,h.k_)(r),s=(0,h.R)(r);(0,a.Bb)(t.coordinateToPixelTransform,n),(0,a.Bb)(t.coordinateToPixelTransform,i),(0,a.Bb)(t.coordinateToPixelTransform,o),(0,a.Bb)(t.coordinateToPixelTransform,s);const l=this.inversePixelTransform;(0,a.Bb)(l,n),(0,a.Bb)(l,i),(0,a.Bb)(l,o),(0,a.Bb)(l,s),e.save(),e.beginPath(),e.moveTo(Math.round(n[0]),Math.round(n[1])),e.lineTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(s[0]),Math.round(s[1])),e.clip()}prepareContainer(e,t){const r=e.extent,n=e.viewState.resolution,i=e.viewState.rotation,o=e.pixelRatio,s=Math.round((0,h.RG)(r)/n*o),l=Math.round((0,h.Oq)(r)/n*o);(0,a.Zz)(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/o,1/o,i,-s/2,-l/2),(0,a.T9)(this.inversePixelTransform,this.pixelTransform);const c=(0,a.dI)(this.pixelTransform);if(this.useContainer(t,c,this.getBackground(e)),!this.containerReused){const e=this.context.canvas;e.width!=s||e.height!=l?(e.width=s,e.height=l):this.context.clearRect(0,0,s,l),c!==e.style.transform&&(e.style.transform=c)}}dispatchRenderEvent_(e,t,r){const n=this.getLayer();if(n.hasListener(e)){const o=new i.A(e,this.inversePixelTransform,r,t);n.dispatchEvent(o)}}preRender(e,t){this.frameState=t,t.declutter||this.dispatchRenderEvent_(o.A.PRERENDER,e,t)}postRender(e,t){t.declutter||this.dispatchRenderEvent_(o.A.POSTRENDER,e,t)}renderDeferredInternal(e){}getRenderContext(e){return e.declutter&&!this.deferredContext_&&(this.deferredContext_=new s.A),e.declutter?this.deferredContext_.getContext():this.context}renderDeferred(e){e.declutter&&(this.dispatchRenderEvent_(o.A.PRERENDER,this.context,e),e.declutter&&this.deferredContext_&&(this.deferredContext_.draw(this.context),this.deferredContext_.clear()),this.renderDeferredInternal(e),this.dispatchRenderEvent_(o.A.POSTRENDER,this.context,e))}getRenderTransform(e,t,r,n,i,o,s){const l=i/2,c=o/2,u=n/t,h=-u,d=-e[0]+s,f=-e[1];return(0,a.Zz)(this.tempTransform,l,c,u,h,-r,d,f)}disposeInternal(){delete this.frameState,super.disposeInternal()}}const m=p},34539:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(87383),i=r(97141),o=r(67564),s=r(98063),a=r(91202),l=r(84562),c=r(64444),u=r(20884),h=r(37377),d=r(30444),f=r(44509),p=r(80996),m=r(12940),g=r(98629),y=r(53908);function v(e,t,r,n){return`${e},${(0,p.dp)(t,r,n)}`}function _(e,t,r){if(!(r in e))return e[r]=new Set([t]),!0;const n=e[r],i=n.has(t);return i||n.add(t),!i}function b(e,t,r){const n=e[r];return!!n&&n.delete(t)}function w(e,t){const r=e.layerStatesArray[e.layerIndex];r.extent&&(t=(0,f._N)(t,(0,m.SD)(r.extent,e.viewState.projection)));const n=r.layer.getRenderSource();if(!n.getWrapX()){const r=n.getTileGridForProjection(e.viewState.projection).getExtent();r&&(t=(0,f._N)(t,r))}return t}class E extends n.A{constructor(e,t){super(e),t=t||{},this.extentChanged=!0,this.renderComplete=!1,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.renderedSourceKey_,this.renderedSourceRevision_,this.tempExtent=(0,f.S5)(),this.tempTileRange_=new c.A(0,0,0,0),this.tempTileCoord_=(0,p.N)(0,0,0);const r=void 0!==t.cacheSize?t.cacheSize:512;this.tileCache_=new s.A(r),this.maxStaleKeys=.5*r}getTileCache(){return this.tileCache_}getOrCreateTile(e,t,r,n){const i=this.tileCache_,o=this.getLayer().getSource(),s=v(o.getKey(),e,t,r);let a;if(i.containsKey(s))a=i.get(s);else{if(a=o.getTile(e,t,r,n.pixelRatio,n.viewState.projection),!a)return null;i.set(s,a)}return a}getTile(e,t,r,n){return this.getOrCreateTile(e,t,r,n)||null}getData(e){const t=this.frameState;if(!t)return null;const r=this.getLayer(),n=(0,h.Bb)(t.pixelToCoordinateTransform,e.slice()),s=r.getExtent();if(s&&!(0,f.Ym)(s,n))return null;const a=t.viewState,l=r.getRenderSource(),c=l.getTileGridForProjection(a.projection),d=l.getTilePixelRatio(t.pixelRatio);for(let e=c.getZForResolution(a.resolution);e>=c.getMinZoom();--e){const r=c.getTileCoordForCoordAndZ(n,e),s=this.getTile(e,r[1],r[2],t);if(!s||s.getState()!==u.A.LOADED)continue;const h=c.getOrigin(e),f=(0,y.xq)(c.getTileSize(e)),p=c.getResolution(e);let m;if(s instanceof o.A)m=s.getImage();else{if(!(s instanceof i.Ay))continue;if(m=(0,i.xo)(s.getData()),!m)continue}const g=Math.floor(d*((n[0]-h[0])/p-r[1]*f[0])),v=Math.floor(d*((h[1]-n[1])/p-r[2]*f[1])),_=Math.round(d*l.getGutterForProjection(a.projection));return this.getImageData(m,g+_,v+_)}return null}prepareFrame(e){const t=this.getLayer().getSource();if(!t)return!1;const r=t.getRevision();return this.renderedRevision_?this.renderedRevision_!==r&&(this.renderedRevision_=r,this.renderedSourceKey_===t.getKey()&&this.tileCache_.clear()):this.renderedRevision_=r,!0}enqueueTiles(e,t,r,n,i){const o=e.viewState,s=this.getLayer(),a=s.getRenderSource(),l=a.getTileGridForProjection(o.projection),c=(0,g.v6)(a);c in e.wantedTiles||(e.wantedTiles[c]={});const h=e.wantedTiles[c],d=s.getMapInternal(),f=Math.max(r-i,l.getMinZoom(),l.getZForResolution(Math.min(s.getMaxResolution(),d?d.getView().getResolutionForZoom(Math.max(s.getMinZoom(),0)):l.getResolution(0)),a.zDirection));for(let i=r;i>=f;--i){const r=l.getTileRangeForExtentAndZ(t,i,this.tempTileRange_),o=l.getResolution(i);for(let t=r.minX;t<=r.maxX;++t)for(let s=r.minY;s<=r.maxY;++s){const r=this.getTile(i,t,s,e);if(!r)continue;if(!_(n,r,i))continue;const a=r.getKey();if(h[a]=!0,r.getState()===u.A.IDLE&&!e.tileQueue.isKeyQueued(a)){const n=(0,p.N)(i,t,s,this.tempTileCoord_);e.tileQueue.enqueue([r,c,l.getTileCoordCenter(n),o])}}}}findStaleTile_(e,t){const r=this.tileCache_,n=e[0],i=e[1],o=e[2],s=this.getStaleKeys();for(let e=0;e<s.length;++e){const a=v(s[e],n,i,o);if(r.containsKey(a)){const e=r.get(a);if(e.getState()===u.A.LOADED)return e.endTransition((0,g.v6)(this)),_(t,e,n),!0}}return!1}findAltTiles_(e,t,r,n){const i=e.getTileRangeForTileCoordAndZ(t,r,this.tempTileRange_);if(!i)return!1;let o=!0;const s=this.tileCache_,a=this.getLayer().getRenderSource().getKey();for(let e=i.minX;e<=i.maxX;++e)for(let t=i.minY;t<=i.maxY;++t){const i=v(a,r,e,t);let l=!1;if(s.containsKey(i)){const e=s.get(i);e.getState()===u.A.LOADED&&(_(n,e,r),l=!0)}l||(o=!1)}return o}renderFrame(e,t){this.renderComplete=!0;const r=e.layerStatesArray[e.layerIndex],n=e.viewState,i=n.projection,o=n.resolution,s=n.center,c=e.pixelRatio,p=this.getLayer(),y=p.getSource(),v=y.getRevision(),_=y.getTileGridForProjection(i),E=_.getZForResolution(o,y.zDirection),x=_.getResolution(E),S=y.getKey();this.renderedSourceKey_?this.renderedSourceKey_!==S&&(this.prependStaleKey(this.renderedSourceKey_),this.renderedSourceKey_=S):this.renderedSourceKey_=S;let A=e.extent;const T=y.getTilePixelRatio(c);this.prepareContainer(e,t);const P=this.context.canvas.width,C=this.context.canvas.height,O=r.extent&&(0,m.SD)(r.extent,i);O&&(A=(0,f._N)(A,(0,m.SD)(r.extent,i)));const R=x*P/2/T,D=x*C/2/T,I=[s[0]-R,s[1]-D,s[0]+R,s[1]+D],k={};this.renderedTiles.length=0;const F=p.getPreload();if(e.nextExtent){const t=_.getZForResolution(n.nextResolution,y.zDirection),r=w(e,e.nextExtent);this.enqueueTiles(e,r,t,k,F)}const j=w(e,A);if(this.enqueueTiles(e,j,E,k,0),F>0&&setTimeout((()=>{this.enqueueTiles(e,j,E-1,k,F-1)}),0),!(E in k))return this.container;const L=(0,g.v6)(this),M=e.time;for(const t of k[E]){const r=t.getState();if((t instanceof l.A||t instanceof a.A)&&r===u.A.EMPTY)continue;const n=t.tileCoord;if(r===u.A.LOADED&&1===t.getAlpha(L,M)){t.endTransition(L);continue}if(this.renderComplete=!1,this.findStaleTile_(n,k)){b(k,t,E),e.animate=!0;continue}if(this.findAltTiles_(_,n,E+1,k))continue;const i=_.getMinZoom();for(let e=E-1;e>=i&&!this.findAltTiles_(_,n,e,k);--e);}const N=x/o*c/T,$=this.getRenderContext(e);(0,h.Zz)(this.tempTransform,P/2,C/2,N,N,0,-P/2,-C/2),r.extent&&this.clipUnrotated($,e,O),y.getInterpolate()||($.imageSmoothingEnabled=!1),this.preRender($,e);const G=Object.keys(k).map(Number);let z;G.sort(d.V_);const U=[],B=[];for(let t=G.length-1;t>=0;--t){const r=G[t],n=y.getTilePixelSize(r,c,i),o=_.getResolution(r)/x,s=n[0]*o*N,a=n[1]*o*N,l=_.getTileCoordForCoordAndZ((0,f.Py)(I),r),d=_.getTileCoordExtent(l),p=(0,h.Bb)(this.tempTransform,[T*(d[0]-I[0])/x,T*(I[3]-d[3])/x]),m=T*y.getGutterForProjection(i);for(const t of k[r]){if(t.getState()!==u.A.LOADED)continue;const n=t.tileCoord,i=l[1]-n[1],o=Math.round(p[0]-(i-1)*s),c=l[2]-n[2],h=Math.round(p[1]-(c-1)*a),d=Math.round(p[0]-i*s),g=Math.round(p[1]-c*a),v=o-d,_=h-g,b=1===G.length;let w=!1;z=[d,g,d+v,g,d+v,g+_,d,g+_];for(let e=0,t=U.length;e<t;++e)if(!b&&r<B[e]){const t=U[e];(0,f.HY)([d,g,d+v,g+_],[t[0],t[3],t[4],t[7]])&&(w||($.save(),w=!0),$.beginPath(),$.moveTo(z[0],z[1]),$.lineTo(z[2],z[3]),$.lineTo(z[4],z[5]),$.lineTo(z[6],z[7]),$.moveTo(t[6],t[7]),$.lineTo(t[4],t[5]),$.lineTo(t[2],t[3]),$.lineTo(t[0],t[1]),$.clip())}U.push(z),B.push(r),this.drawTile(t,e,d,g,v,_,m,b),w&&$.restore(),this.renderedTiles.unshift(t),this.updateUsedTiles(e.usedTiles,y,t)}}return this.renderedRevision=v,this.renderedResolution=x,this.extentChanged=!this.renderedExtent_||!(0,f.aI)(this.renderedExtent_,I),this.renderedExtent_=I,this.renderedPixelRatio=c,this.renderedProjection=i,this.postRender(this.context,e),r.extent&&$.restore(),$.imageSmoothingEnabled=!0,e.postRenderFunctions.push(((e,t)=>{const r=(0,g.v6)(y),n=t.wantedTiles[r],i=n?Object.keys(n).length:0;this.updateCacheSize(i),this.tileCache_.expireCache()})),this.container}updateCacheSize(e){this.tileCache_.highWaterMark=Math.max(this.tileCache_.highWaterMark,2*e)}drawTile(e,t,r,n,o,s,a,l){let c;if(e instanceof i.Ay){if(c=(0,i.xo)(e.getData()),!c)throw new Error("Rendering array data is not yet supported")}else c=this.getTileImage(e);if(!c)return;const u=this.getRenderContext(t),h=(0,g.v6)(this),d=t.layerStatesArray[t.layerIndex],f=d.opacity*(l?e.getAlpha(h,t.time):1),p=f!==u.globalAlpha;p&&(u.save(),u.globalAlpha=f),u.drawImage(c,a,a,c.width-2*a,c.height-2*a,r,n,o,s),p&&u.restore(),f!==d.opacity?t.animate=!0:l&&e.endTransition(h)}getImage(){const e=this.context;return e?e.canvas:null}getTileImage(e){return e.getImage()}updateUsedTiles(e,t,r){const n=(0,g.v6)(t);n in e||(e[n]={}),e[n][r.getKey()]=!0}}const x=E},75454:(e,t,r)=>{"use strict";r.d(t,{Eo:()=>a,gY:()=>c,j:()=>l,nl:()=>u});var n=r(39915),i=r(98629);const o=.5,s={Point:function(e,t,r,i,o,s){const a=r.getImage(),l=r.getText(),c=l&&l.getText(),u=s&&a&&c?{}:void 0;if(a){if(a.getImageState()!=n.A.LOADED)return;const s=e.getBuilder(r.getZIndex(),"Image");s.setImageStyle(a,u),s.drawPoint(t,i,o)}if(c){const n=e.getBuilder(r.getZIndex(),"Text");n.setTextStyle(l,u),n.drawText(t,i,o)}},LineString:function(e,t,r,n,i){const o=r.getStroke();if(o){const s=e.getBuilder(r.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawLineString(t,n,i)}const s=r.getText();if(s&&s.getText()){const o=e.getBuilder(r.getZIndex(),"Text");o.setTextStyle(s),o.drawText(t,n,i)}},Polygon:function(e,t,r,n,i){const o=r.getFill(),s=r.getStroke();if(o||s){const a=e.getBuilder(r.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawPolygon(t,n,i)}const a=r.getText();if(a&&a.getText()){const o=e.getBuilder(r.getZIndex(),"Text");o.setTextStyle(a),o.drawText(t,n,i)}},MultiPoint:function(e,t,r,i,o,s){const a=r.getImage(),l=a&&0!==a.getOpacity(),c=r.getText(),u=c&&c.getText(),h=s&&l&&u?{}:void 0;if(l){if(a.getImageState()!=n.A.LOADED)return;const s=e.getBuilder(r.getZIndex(),"Image");s.setImageStyle(a,h),s.drawMultiPoint(t,i,o)}if(u){const n=e.getBuilder(r.getZIndex(),"Text");n.setTextStyle(c,h),n.drawText(t,i,o)}},MultiLineString:function(e,t,r,n,i){const o=r.getStroke();if(o){const s=e.getBuilder(r.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawMultiLineString(t,n,i)}const s=r.getText();if(s&&s.getText()){const o=e.getBuilder(r.getZIndex(),"Text");o.setTextStyle(s),o.drawText(t,n,i)}},MultiPolygon:function(e,t,r,n,i){const o=r.getFill(),s=r.getStroke();if(s||o){const a=e.getBuilder(r.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawMultiPolygon(t,n,i)}const a=r.getText();if(a&&a.getText()){const o=e.getBuilder(r.getZIndex(),"Text");o.setTextStyle(a),o.drawText(t,n,i)}},GeometryCollection:function(e,t,r,n,i,o){const a=t.getGeometriesArray();let l,c;for(l=0,c=a.length;l<c;++l)(0,s[a[l].getType()])(e,a[l],r,n,i,o)},Circle:function(e,t,r,n,i){const o=r.getFill(),s=r.getStroke();if(o||s){const a=e.getBuilder(r.getZIndex(),"Circle");a.setFillStrokeStyle(o,s),a.drawCircle(t,n,i)}const a=r.getText();if(a&&a.getText()){const i=e.getBuilder(r.getZIndex(),"Text");i.setTextStyle(a),i.drawText(t,n)}}};function a(e,t){return parseInt((0,i.v6)(e),10)-parseInt((0,i.v6)(t),10)}function l(e,t){const r=c(e,t);return r*r}function c(e,t){return o*e/t}function u(e,t,r,i,o,a,l,c){const u=[],d=r.getImage();if(d){let e=!0;const t=d.getImageState();t==n.A.LOADED||t==n.A.ERROR?e=!1:t==n.A.IDLE&&d.load(),e&&u.push(d.ready())}const f=r.getFill();f&&f.loading()&&u.push(f.ready());const p=u.length>0;return p&&Promise.all(u).then((()=>o(null))),function(e,t,r,n,i,o,a){const l=r.getGeometryFunction()(t);if(!l)return;const c=l.simplifyTransformed(n,i);r.getRenderer()?h(e,c,r,t,a):(0,s[c.getType()])(e,c,r,t,a,o)}(e,t,r,i,a,l,c),p}function h(e,t,r,n,i){if("GeometryCollection"!=t.getType())e.getBuilder(r.getZIndex(),"Default").drawCustom(t,n,r.getRenderer(),r.getHitDetectionRenderer(),i);else{const o=t.getGeometries();for(let t=0,s=o.length;t<s;++t)h(e,o[t],r,n,i)}}},2175:(e,t,r)=>{"use strict";r.d(t,{BV:()=>l,KQ:()=>h,XX:()=>f,aY:()=>d});var n=r(44509),i=r(83085),o=r(12940),s=r(72475);let a;const l=[];function c(e,t,r,n,i){e.beginPath(),e.moveTo(0,0),e.lineTo(t,r),e.lineTo(n,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,n)+1,Math.max(r,i)),e.restore()}function u(e,t){return Math.abs(e[4*t]-210)>2||Math.abs(e[4*t+3]-191.25)>2}function h(e,t,r,i){const s=(0,o.pd)(r,t,e);let a=(0,o.hO)(t,i,r);const l=t.getMetersPerUnit();void 0!==l&&(a*=l);const c=e.getMetersPerUnit();void 0!==c&&(a/=c);const u=e.getExtent();if(!u||(0,n.Ym)(u,s)){const t=(0,o.hO)(e,a,s)/a;isFinite(t)&&t>0&&(a/=t)}return a}function d(e,t,r,i){const o=(0,n.q1)(r);let s=h(e,t,o,i);return(!isFinite(s)||s<=0)&&(0,n.sB)(r,(function(r){return s=h(e,t,r,i),isFinite(s)&&s>0})),s}function f(e,t,r,o,h,d,f,p,m,g,y,v,_,b){const w=(0,i.Y)(Math.round(r*e),Math.round(r*t),l);if(v||(w.imageSmoothingEnabled=!1),0===m.length)return w.canvas;function E(e){return Math.round(e*r)/r}w.scale(r,r),w.globalCompositeOperation="lighter";const x=(0,n.S5)();let S;m.forEach((function(e,t,r){(0,n.X$)(x,e.extent)}));const A=r/o,T=(v?1:1+Math.pow(2,-24))/A;if(!_||1!==m.length||0!==g){if(S=(0,i.Y)(Math.round((0,n.RG)(x)*A),Math.round((0,n.Oq)(x)*A),l),v||(S.imageSmoothingEnabled=!1),h&&b){const e=(h[0]-x[0])*A,t=-(h[3]-x[3])*A,r=(0,n.RG)(h)*A,i=(0,n.Oq)(h)*A;S.rect(e,t,r,i),S.clip()}m.forEach((function(e,t,r){if(e.image.width>0&&e.image.height>0){if(e.clipExtent){S.save();const t=(e.clipExtent[0]-x[0])*A,r=-(e.clipExtent[3]-x[3])*A,i=(0,n.RG)(e.clipExtent)*A,o=(0,n.Oq)(e.clipExtent)*A;S.rect(v?t:Math.round(t),v?r:Math.round(r),v?i:Math.round(t+i)-Math.round(t),v?o:Math.round(r+o)-Math.round(r)),S.clip()}const t=(e.extent[0]-x[0])*A,r=-(e.extent[3]-x[3])*A,i=(0,n.RG)(e.extent)*A,o=(0,n.Oq)(e.extent)*A;S.drawImage(e.image,g,g,e.image.width-2*g,e.image.height-2*g,v?t:Math.round(t),v?r:Math.round(r),v?i:Math.round(t+i)-Math.round(t),v?o:Math.round(r+o)-Math.round(r)),e.clipExtent&&S.restore()}}))}const P=(0,n.Py)(f);return p.getTriangles().forEach((function(e,t,r){const o=e.source,h=e.target;let f=o[0][0],p=o[0][1],g=o[1][0],y=o[1][1],_=o[2][0],b=o[2][1];const A=E((h[0][0]-P[0])/d),C=E(-(h[0][1]-P[1])/d),O=E((h[1][0]-P[0])/d),R=E(-(h[1][1]-P[1])/d),D=E((h[2][0]-P[0])/d),I=E(-(h[2][1]-P[1])/d),k=f,F=p;f=0,p=0,g-=k,y-=F,_-=k,b-=F;const j=[[g,y,0,0,O-A],[_,b,0,0,D-A],[0,0,g,y,R-C],[0,0,_,b,I-C]],L=(0,s.KU)(j);if(!L)return;if(w.save(),w.beginPath(),function(){if(void 0===a){const e=(0,i.Y)(6,6,l);e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",c(e,4,5,4,0),c(e,4,5,0,5);const t=e.getImageData(0,0,3,3).data;a=u(t,0)||u(t,4)||u(t,8),(0,i.Yg)(e),l.push(e.canvas)}return a}()||!v){w.moveTo(O,R);const e=4,t=A-O,r=C-R;for(let n=0;n<e;n++)w.lineTo(O+E((n+1)*t/e),R+E(n*r/(e-1))),n!=e-1&&w.lineTo(O+E((n+1)*t/e),R+E((n+1)*r/(e-1)));w.lineTo(D,I)}else w.moveTo(O,R),w.lineTo(A,C),w.lineTo(D,I);let M;if(w.clip(),w.transform(L[0],L[2],L[1],L[3],A,C),w.translate(x[0]-k,x[3]-F),S)M=S.canvas,w.scale(T,-T);else{const e=m[0],t=e.extent;M=e.image,w.scale((0,n.RG)(t)/M.width,-(0,n.Oq)(t)/M.height)}w.drawImage(M,0,0),w.restore()})),S&&((0,i.Yg)(S),l.push(S.canvas)),y&&(w.save(),w.globalCompositeOperation="source-over",w.strokeStyle="black",w.lineWidth=1,p.getTriangles().forEach((function(e,t,r){const n=e.target,i=(n[0][0]-P[0])/d,o=-(n[0][1]-P[1])/d,s=(n[1][0]-P[0])/d,a=-(n[1][1]-P[1])/d,l=(n[2][0]-P[0])/d,c=-(n[2][1]-P[1])/d;w.beginPath(),w.moveTo(s,a),w.lineTo(i,o),w.lineTo(l,c),w.closePath(),w.stroke()})),w.restore()),w.canvas}},91202:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(35035),i=r(97141),o=r(24187),s=r(20884),a=r(14695),l=r(2175),c=r(72475),u=r(83085),h=r(44509),d=r(94456);class f extends i.Ay{constructor(e){super({tileCoord:e.tileCoord,loader:()=>Promise.resolve(new Uint8ClampedArray(4)),interpolate:e.interpolate,transition:e.transition}),this.pixelRatio_=e.pixelRatio,this.gutter_=e.gutter,this.reprojData_=null,this.reprojError_=null,this.reprojSize_=void 0,this.sourceTileGrid_=e.sourceTileGrid,this.targetTileGrid_=e.targetTileGrid,this.wrappedTileCoord_=e.wrappedTileCoord||e.tileCoord,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const t=e.sourceProj,r=t.getExtent(),i=e.sourceTileGrid.getExtent();this.clipExtent_=t.canWrapX()?i?(0,h._N)(r,i):r:i;const o=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_),u=this.targetTileGrid_.getExtent();let d=this.sourceTileGrid_.getExtent();const f=u?(0,h._N)(o,u):o;if(0===(0,h.UG)(f))return void(this.state=s.A.EMPTY);r&&(d=d?(0,h._N)(d,r):r);const p=this.targetTileGrid_.getResolution(this.wrappedTileCoord_[0]),m=e.targetProj,g=(0,l.aY)(t,m,f,p);if(!isFinite(g)||g<=0)return void(this.state=s.A.EMPTY);const y=void 0!==e.errorThreshold?e.errorThreshold:n.l;if(this.triangulation_=new a.A(t,m,f,d,g*y,p),0===this.triangulation_.getTriangles().length)return void(this.state=s.A.EMPTY);this.sourceZ_=this.sourceTileGrid_.getZForResolution(g);let v=this.triangulation_.calculateSourceExtent();if(d&&(t.canWrapX()?(v[1]=(0,c.qE)(v[1],d[1],d[3]),v[3]=(0,c.qE)(v[3],d[1],d[3])):v=(0,h._N)(v,d)),(0,h.UG)(v)){let n=0,i=0;t.canWrapX()&&(n=(0,h.RG)(r),i=Math.floor((v[0]-r[0])/n)),(0,h.QJ)(v.slice(),t,!0).forEach((t=>{const r=this.sourceTileGrid_.getTileRangeForExtentAndZ(t,this.sourceZ_),o=e.getTileFunction;for(let e=r.minX;e<=r.maxX;e++)for(let t=r.minY;t<=r.maxY;t++){const r=o(this.sourceZ_,e,t,this.pixelRatio_);if(r){const e=i*n;this.sourceTiles_.push({tile:r,offset:e})}}++i})),0===this.sourceTiles_.length&&(this.state=s.A.EMPTY)}else this.state=s.A.EMPTY}getSize(){return this.reprojSize_}getData(){return this.reprojData_}getError(){return this.reprojError_}reproject_(){const e=[];let t=!1;if(this.sourceTiles_.forEach((r=>{const n=r.tile;if(!n||n.getState()!==s.A.LOADED)return;const o=n.getSize(),a=this.gutter_;let l;const c=(0,i.bL)(n.getData());c?l=c:(t=!0,l=(0,i.$r)((0,i.xo)(n.getData())));const u=[o[0]+2*a,o[1]+2*a],h=l instanceof Float32Array,d=u[0]*u[1],f=h?Float32Array:Uint8ClampedArray,p=new f(l.buffer),m=f.BYTES_PER_ELEMENT,g=m*p.length/d,y=p.byteLength/u[1],v=Math.floor(y/m/u[0]),_=d*v;let b=p;if(p.length!==_){b=new f(_);let e=0,t=0;const r=u[0]*v;for(let n=0;n<u[1];++n){for(let n=0;n<r;++n)b[e++]=p[t+n];t+=y/m}}const w=this.sourceTileGrid_.getTileCoordExtent(n.tileCoord);w[0]+=r.offset,w[2]+=r.offset;const E=this.clipExtent_?.slice();E&&(E[0]+=r.offset,E[2]+=r.offset),e.push({extent:w,clipExtent:E,data:new Uint8ClampedArray(b.buffer),dataType:f,bytesPerPixel:g,pixelSize:u})})),this.sourceTiles_.length=0,0===e.length)return this.state=s.A.ERROR,void this.changed();const r=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(r),o="number"==typeof n?n:n[0],a="number"==typeof n?n:n[1],c=this.targetTileGrid_.getResolution(r),h=this.sourceTileGrid_.getResolution(this.sourceZ_),d=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);let f,p;const m=e[0].bytesPerPixel;for(let t=Math.ceil(m/3)-1;t>=0;--t){const r=[];for(let n=0,i=e.length;n<i;++n){const i=e[n],o=i.data,s=i.pixelSize,a=s[0],c=s[1],h=(0,u.Y)(a,c,l.BV),d=h.createImageData(a,c),f=d.data;let p=3*t;for(let e=0,t=f.length;e<t;e+=4)f[e]=o[p],f[e+1]=o[p+1],f[e+2]=o[p+2],f[e+3]=255,p+=m;h.putImageData(d,0,0),r.push({extent:i.extent,clipExtent:i.clipExtent,image:h.canvas})}const n=(0,l.XX)(o,a,this.pixelRatio_,h,this.sourceTileGrid_.getExtent(),c,d,this.triangulation_,r,this.gutter_,!1,!1,!1);for(let e=0,t=r.length;e<t;++e){const t=r[e].image.getContext("2d");(0,u.Yg)(t),l.BV.push(t.canvas)}const i=n.getContext("2d"),s=i.getImageData(0,0,n.width,n.height);(0,u.Yg)(i),l.BV.push(n),f||(p=new Uint8ClampedArray(m*s.width*s.height),f=new e[0].dataType(p.buffer));const g=s.data;let y=3*t;for(let e=0,t=g.length;e<t;e+=4)255===g[e+3]?(p[y]=g[e],p[y+1]=g[e+1],p[y+2]=g[e+2]):(p[y]=0,p[y+1]=0,p[y+2]=0),y+=m}if(t){const e=(0,u.Y)(o,a),t=new ImageData(f,o);e.putImageData(t,0,0),this.reprojData_=e.canvas}else this.reprojData_=f;this.reprojSize_=[Math.round(o*this.pixelRatio_),Math.round(a*this.pixelRatio_)],this.state=s.A.LOADED,this.changed()}load(){if(this.state!==s.A.IDLE&&this.state!==s.A.ERROR)return;this.state=s.A.LOADING,this.changed();let e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((({tile:t})=>{const r=t.getState();if(r!==s.A.IDLE&&r!==s.A.LOADING)return;e++;const n=(0,d.KT)(t,o.A.CHANGE,(()=>{const r=t.getState();r!=s.A.LOADED&&r!=s.A.ERROR&&r!=s.A.EMPTY||((0,d.JH)(n),e--,0===e&&(this.unlistenSources_(),this.reproject_()))}));this.sourcesListenerKeys_.push(n)})),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function({tile:e}){e.getState()==s.A.IDLE&&e.load()}))}unlistenSources_(){this.sourcesListenerKeys_.forEach(d.JH),this.sourcesListenerKeys_=null}}const p=f},84562:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(35035),i=r(24187),o=r(76741),s=r(20884),a=r(14695),l=r(2175),c=r(72475),u=r(44509),h=r(94456),d=r(83085);class f extends o.A{constructor(e,t,r,i,o,h,d,f,p,m,g,y){super(o,s.A.IDLE,y),this.renderEdges_=void 0!==g&&g,this.pixelRatio_=d,this.gutter_=f,this.canvas_=null,this.sourceTileGrid_=t,this.targetTileGrid_=i,this.wrappedTileCoord_=h||o,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0,this.clipExtent_=e.canWrapX()?e.getExtent():void 0;const v=i.getTileCoordExtent(this.wrappedTileCoord_),_=this.targetTileGrid_.getExtent();let b=this.sourceTileGrid_.getExtent();const w=_?(0,u._N)(v,_):v;if(0===(0,u.UG)(w))return void(this.state=s.A.EMPTY);const E=e.getExtent();E&&(b=b?(0,u._N)(b,E):E);const x=i.getResolution(this.wrappedTileCoord_[0]),S=(0,l.aY)(e,r,w,x);if(!isFinite(S)||S<=0)return void(this.state=s.A.EMPTY);const A=void 0!==m?m:n.l;if(this.triangulation_=new a.A(e,r,w,b,S*A,x),0===this.triangulation_.getTriangles().length)return void(this.state=s.A.EMPTY);this.sourceZ_=t.getZForResolution(S);let T=this.triangulation_.calculateSourceExtent();if(b&&(e.canWrapX()?(T[1]=(0,c.qE)(T[1],b[1],b[3]),T[3]=(0,c.qE)(T[3],b[1],b[3])):T=(0,u._N)(T,b)),(0,u.UG)(T)){let r=0,n=0;e.canWrapX()&&(r=(0,u.RG)(E),n=Math.floor((T[0]-E[0])/r)),(0,u.QJ)(T.slice(),e,!0).forEach((e=>{const i=t.getTileRangeForExtentAndZ(e,this.sourceZ_);for(let e=i.minX;e<=i.maxX;e++)for(let t=i.minY;t<=i.maxY;t++){const i=p(this.sourceZ_,e,t,d);if(i){const e=n*r;this.sourceTiles_.push({tile:i,offset:e})}}++n})),0===this.sourceTiles_.length&&(this.state=s.A.EMPTY)}else this.state=s.A.EMPTY}getImage(){return this.canvas_}reproject_(){const e=[];if(this.sourceTiles_.forEach((t=>{const r=t.tile;if(r&&r.getState()==s.A.LOADED){const n=this.sourceTileGrid_.getTileCoordExtent(r.tileCoord);n[0]+=t.offset,n[2]+=t.offset;const i=this.clipExtent_?.slice();i&&(i[0]+=t.offset,i[2]+=t.offset),e.push({extent:n,clipExtent:i,image:r.getImage()})}})),this.sourceTiles_.length=0,0===e.length)this.state=s.A.ERROR;else{const t=this.wrappedTileCoord_[0],r=this.targetTileGrid_.getTileSize(t),n="number"==typeof r?r:r[0],i="number"==typeof r?r:r[1],o=this.targetTileGrid_.getResolution(t),a=this.sourceTileGrid_.getResolution(this.sourceZ_),c=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=(0,l.XX)(n,i,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,c,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=s.A.LOADED}this.changed()}load(){if(this.state==s.A.IDLE){this.state=s.A.LOADING,this.changed();let e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((({tile:t})=>{const r=t.getState();if(r==s.A.IDLE||r==s.A.LOADING){e++;const r=(0,h.KT)(t,i.A.CHANGE,(n=>{const i=t.getState();i!=s.A.LOADED&&i!=s.A.ERROR&&i!=s.A.EMPTY||((0,h.JH)(r),e--,0===e&&(this.unlistenSources_(),this.reproject_()))}));this.sourcesListenerKeys_.push(r)}})),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function({tile:e},t,r){e.getState()==s.A.IDLE&&e.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(h.JH),this.sourcesListenerKeys_=null}release(){this.canvas_&&((0,d.Yg)(this.canvas_.getContext("2d")),l.BV.push(this.canvas_),this.canvas_=null),super.release()}}const p=f},14695:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(44509),i=r(12940),o=r(72475);const s=class{constructor(e,t,r,o,s,a){this.sourceProj_=e,this.targetProj_=t;let l={};const c=(0,i.RG)(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){const t=e[0]+"/"+e[1];return l[t]||(l[t]=c(e)),l[t]},this.maxSourceExtent_=o,this.errorThresholdSquared_=s*s,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!o&&!!this.sourceProj_.getExtent()&&(0,n.RG)(o)>=(0,n.RG)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,n.RG)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,n.RG)(this.targetProj_.getExtent()):null;const u=(0,n.Py)(r),h=(0,n.WU)(r),d=(0,n.k_)(r),f=(0,n.R)(r),p=this.transformInv_(u),m=this.transformInv_(h),g=this.transformInv_(d),y=this.transformInv_(f),v=10+(a?Math.max(0,Math.ceil(Math.log2((0,n.UG)(r)/(a*a*256*256)))):0);if(this.addQuad_(u,h,d,f,p,m,g,y,v),this.wrapsXInSource_){let e=1/0;this.triangles_.forEach((function(t,r,n){e=Math.min(e,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach((t=>{if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-e>this.sourceWorldWidth_/2){const r=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];r[0][0]-e>this.sourceWorldWidth_/2&&(r[0][0]-=this.sourceWorldWidth_),r[1][0]-e>this.sourceWorldWidth_/2&&(r[1][0]-=this.sourceWorldWidth_),r[2][0]-e>this.sourceWorldWidth_/2&&(r[2][0]-=this.sourceWorldWidth_);const n=Math.min(r[0][0],r[1][0],r[2][0]);Math.max(r[0][0],r[1][0],r[2][0])-n<this.sourceWorldWidth_/2&&(t.source=r)}}))}l={}}addTriangle_(e,t,r,n,i,o){this.triangles_.push({source:[n,i,o],target:[e,t,r]})}addQuad_(e,t,r,i,s,a,l,c,u){const h=(0,n.Tr)([s,a,l,c]),d=this.sourceWorldWidth_?(0,n.RG)(h)/this.sourceWorldWidth_:null,f=this.sourceWorldWidth_,p=this.sourceProj_.canWrapX()&&d>.5&&d<1;let m=!1;if(u>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const o=(0,n.Tr)([e,t,r,i]);m=(0,n.RG)(o)/this.targetWorldWidth_>.25||m}!p&&this.sourceProj_.isGlobal()&&d&&(m=d>.25||m)}if(!m&&this.maxSourceExtent_&&isFinite(h[0])&&isFinite(h[1])&&isFinite(h[2])&&isFinite(h[3])&&!(0,n.HY)(h,this.maxSourceExtent_))return;let g=0;if(!(m||isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(l[0])&&isFinite(l[1])&&isFinite(c[0])&&isFinite(c[1])))if(u>0)m=!0;else if(g=(isFinite(s[0])&&isFinite(s[1])?0:8)+(isFinite(a[0])&&isFinite(a[1])?0:4)+(isFinite(l[0])&&isFinite(l[1])?0:2)+(isFinite(c[0])&&isFinite(c[1])?0:1),1!=g&&2!=g&&4!=g&&8!=g)return;if(u>0){if(!m){const t=[(e[0]+r[0])/2,(e[1]+r[1])/2],n=this.transformInv_(t);let i;i=p?((0,o.xP)(s[0],f)+(0,o.xP)(l[0],f))/2-(0,o.xP)(n[0],f):(s[0]+l[0])/2-n[0];const a=(s[1]+l[1])/2-n[1];m=i*i+a*a>this.errorThresholdSquared_}if(m){if(Math.abs(e[0]-r[0])<=Math.abs(e[1]-r[1])){const n=[(t[0]+r[0])/2,(t[1]+r[1])/2],o=this.transformInv_(n),h=[(i[0]+e[0])/2,(i[1]+e[1])/2],d=this.transformInv_(h);this.addQuad_(e,t,n,h,s,a,o,d,u-1),this.addQuad_(h,n,r,i,d,o,l,c,u-1)}else{const n=[(e[0]+t[0])/2,(e[1]+t[1])/2],o=this.transformInv_(n),h=[(r[0]+i[0])/2,(r[1]+i[1])/2],d=this.transformInv_(h);this.addQuad_(e,n,h,i,s,o,d,c,u-1),this.addQuad_(n,t,r,h,o,a,l,d,u-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}11&g||this.addTriangle_(e,r,i,s,l,c),14&g||this.addTriangle_(e,r,t,s,l,a),g&&(13&g||this.addTriangle_(t,i,e,a,c,s),7&g||this.addTriangle_(t,i,r,a,c,l))}calculateSourceExtent(){const e=(0,n.S5)();return this.triangles_.forEach((function(t,r,i){const o=t.source;(0,n.$C)(e,o[0]),(0,n.$C)(e,o[1]),(0,n.$C)(e,o[2])})),e}getTriangles(){return this.triangles_}}},35035:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});const n=.5},26392:(e,t,r)=>{"use strict";r.d(t,{a$:()=>s,b8:()=>i,cq:()=>a,dv:()=>o});var n=r(72475);function i(e){if(void 0!==e)return 0}function o(e){if(void 0!==e)return e}function s(e){const t=2*Math.PI/e;return function(e,r){return r?e:void 0!==e?e=Math.floor(e/t+.5)*t:void 0}}function a(e){const t=void 0===e?(0,n.eh)(5):e;return function(e,r){return r||void 0===e?e:Math.abs(e)<=t?0:e}}},53908:(e,t,r)=>{"use strict";function n(e){return e[0]>0&&e[1]>0}function i(e,t,r){return void 0===r&&(r=[0,0]),r[0]=e[0]*t+.5|0,r[1]=e[1]*t+.5|0,r}function o(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:(t[0]=e,t[1]=e),t)}r.d(t,{Ie:()=>n,hs:()=>i,xq:()=>o})},15159:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(97141),i=r(24187),o=r(91202),s=r(35999),a=r(67663),l=r(17903),c=r(20884),u=r(32077),h=r(12940),d=r(80996),f=r(98629),p=r(97440),m=r(53908);class g extends l.A{constructor(e){const t=void 0===e.projection?"EPSG:3857":e.projection;let r=e.tileGrid;void 0===r&&t&&(r=(0,u.EN)({extent:(0,u.kZ)(t),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize})),super({cacheSize:.1,attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:t,tileGrid:r,state:e.state,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate,key:e.key}),this.gutter_=void 0!==e.gutter?e.gutter:0,this.tileSize_=e.tileSize?(0,m.xq)(e.tileSize):null,this.tileSizes_=null,this.tileLoadingKeys_={},this.loader_=e.loader,this.handleTileChange_=this.handleTileChange_.bind(this),this.bandCount=void 0===e.bandCount?4:e.bandCount,this.tileGridForProjection_={},this.tileCacheForProjection_={},this.crossOrigin_=e.crossOrigin||"anonymous"}setTileSizes(e){this.tileSizes_=e}getTileSize(e){if(this.tileSizes_)return this.tileSizes_[e];if(this.tileSize_)return this.tileSize_;const t=this.getTileGrid();return t?(0,m.xq)(t.getTileSize(e)):[256,256]}getGutterForProjection(e){const t=this.getProjection();return!t||(0,h.tI)(t,e)?this.gutter_:0}setLoader(e){this.loader_=e}getReprojTile_(e,t,r,n,i){const s=this.getTileCacheForProjection(n),a=(0,d.dp)(e,t,r);if(s.containsKey(a)){const e=s.get(a);if(e&&e.key==this.getKey())return e}const l=this.getTileGrid(),c=Math.max.apply(null,l.getResolutions().map(((e,t)=>{const r=(0,m.xq)(l.getTileSize(t)),n=this.getTileSize(t);return Math.max(n[0]/r[0],n[1]/r[1])}))),u=this.getTileGridForProjection(i),h=this.getTileGridForProjection(n),f=[e,t,r],p=this.getTileCoordForTileUrlFunction(f,n),g=Object.assign({sourceProj:i,sourceTileGrid:u,targetProj:n,targetTileGrid:h,tileCoord:f,wrappedTileCoord:p,pixelRatio:c,gutter:this.getGutterForProjection(i),getTileFunction:(e,t,r,n)=>this.getTile(e,t,r,n,i)},this.tileOptions),y=new o.A(g);return y.key=this.getKey(),y}getTile(e,t,r,o,s){const a=this.getProjection();if(a&&s&&!(0,h.tI)(a,s))return this.getReprojTile_(e,t,r,s,a);const l=this.getTileSize(e),c=(0,d.dp)(e,t,r);if(this.tileCache.containsKey(c))return this.tileCache.get(c);const u=this.loader_,f=new AbortController,m={signal:f.signal,crossOrigin:this.crossOrigin_},g=this.getTileCoordForTileUrlFunction([e,t,r]);if(!g)return null;const y=g[0],v=g[1],_=g[2],b=Object.assign({tileCoord:[e,t,r],loader:function(){return(0,p.hq)((function(){return u(y,v,_,m)}))},size:l,controller:f},this.tileOptions),w=new n.Ay(b);return w.key=this.getKey(),w.addEventListener(i.A.CHANGE,this.handleTileChange_),this.tileCache.set(c,w),w}handleTileChange_(e){const t=e.target,r=(0,f.v6)(t),n=t.getState();let i;n==c.A.LOADING?(this.tileLoadingKeys_[r]=!0,i=a.A.TILELOADSTART):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],i=n==c.A.ERROR?a.A.TILELOADERROR:n==c.A.LOADED?a.A.TILELOADEND:void 0),i&&this.dispatchEvent(new l.c(i,t))}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||(0,h.tI)(t,e)))return this.tileGrid;const r=(0,f.v6)(e);return r in this.tileGridForProjection_||(this.tileGridForProjection_[r]=(0,u.pr)(e)),this.tileGridForProjection_[r]}setTileGridForProjection(e,t){const r=(0,h.Jt)(e);if(r){const e=(0,f.v6)(r);e in this.tileGridForProjection_||(this.tileGridForProjection_[e]=t)}}getTileCacheForProjection(e){const t=this.getProjection();if(!t||(0,h.tI)(t,e))return this.tileCache;const r=(0,f.v6)(e);return r in this.tileCacheForProjection_||(this.tileCacheForProjection_[r]=new s.A(.1)),this.tileCacheForProjection_[r]}expireCache(e,t){const r=this.getTileCacheForProjection(e);this.tileCache.expireCache(this.tileCache==r?t:{});for(const e in this.tileCacheForProjection_){const n=this.tileCacheForProjection_[e];n.expireCache(n==r?t:{})}}clear(){super.clear();for(const e in this.tileCacheForProjection_)this.tileCacheForProjection_[e].clear()}}const y=g},64827:(e,t,r)=>{"use strict";r.d(t,{A:()=>Ft});var n=r(15159),i=r(17668),o=r(74244);const s=new Map;function a(e,t){Array.isArray(e)||(e=[e]),e.forEach((e=>s.set(e,t)))}async function l(e){const t=s.get(e.Compression);if(!t)throw new Error(`Unknown compression method identifier: ${e.Compression}`);return new(await t())(e)}a([void 0,1],(()=>r.e(407).then(r.bind(r,3407)).then((e=>e.default)))),a(5,(()=>r.e(154).then(r.bind(r,87154)).then((e=>e.default)))),a(6,(()=>{throw new Error("old style JPEG compression is not supported.")})),a(7,(()=>r.e(555).then(r.bind(r,50555)).then((e=>e.default)))),a([8,32946],(()=>Promise.all([r.e(552),r.e(618)]).then(r.bind(r,20618)).then((e=>e.default)))),a(32773,(()=>r.e(472).then(r.bind(r,58472)).then((e=>e.default)))),a(34887,(()=>Promise.all([r.e(552),r.e(27)]).then(r.bind(r,71027)).then((async e=>(await e.zstd.init(),e))).then((e=>e.default)))),a(50001,(()=>r.e(542).then(r.bind(r,5542)).then((e=>e.default))));const c="undefined"!=typeof navigator&&navigator.hardwareConcurrency||2,u=class{constructor(e=c,t){this.workers=null,this._awaitingDecoder=null,this.size=e,this.messageId=0,e&&(this._awaitingDecoder=t?Promise.resolve(t):new Promise((e=>{r.e(460).then(r.bind(r,82460)).then((t=>{e(t.create)}))})),this._awaitingDecoder.then((t=>{this._awaitingDecoder=null,this.workers=[];for(let r=0;r<e;r++)this.workers.push({worker:t(),idle:!0})})))}async decode(e,t){return this._awaitingDecoder&&await this._awaitingDecoder,0===this.size?l(e).then((r=>r.decode(e,t))):new Promise((r=>{const n=this.workers.find((e=>e.idle))||this.workers[Math.floor(Math.random()*this.size)];n.idle=!1;const i=this.messageId++,o=e=>{e.data.id===i&&(n.idle=!0,r(e.data.decoded),n.worker.removeEventListener("message",o))};n.worker.addEventListener("message",o),n.worker.postMessage({fileDirectory:e,buffer:t,id:i},[t])}))}destroy(){this.workers&&(this.workers.forEach((e=>{e.worker.terminate()})),this.workers=null)}};function h(e){return(t,...r)=>f(e,t,r)}function d(e,t){return h(y(e,t).get)}const{apply:f,construct:p,defineProperty:m,get:g,getOwnPropertyDescriptor:y,getPrototypeOf:v,has:_,ownKeys:b,set:w,setPrototypeOf:E}=Reflect,{EPSILON:x,MAX_SAFE_INTEGER:S,isFinite:A,isNaN:T}=Number,{iterator:P,species:C,toStringTag:O,for:R}=Symbol,D=Object,{create:I,defineProperty:k,freeze:F,is:j}=D,L=D.prototype,M=(L.__lookupGetter__&&h(L.__lookupGetter__),D.hasOwn||h(L.hasOwnProperty),Array),N=(M.isArray,M.prototype),$=(h(N.join),h(N.push),h(N.toLocaleString),N[P]),G=h($),{abs:z,trunc:U}=Math,B=ArrayBuffer,V=(B.isView,B.prototype),K=(h(V.slice),d(V,"byteLength"),"undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:null),q=(K&&d(K.prototype,"byteLength"),v(Uint8Array)),W=(q.from,q.prototype),H=(W[P],h(W.keys),h(W.values),h(W.entries),h(W.set),h(W.reverse),h(W.fill),h(W.copyWithin),h(W.sort),h(W.slice),h(W.subarray),d(W,"buffer"),d(W,"byteOffset"),d(W,"length"),d(W,O),Uint8Array),Y=Uint16Array,X=Uint32Array,Z=Float32Array,J=v([][P]()),Q=h(J.next),ee=h(function*(){}().next),te=v(J),re=DataView.prototype,ne=h(re.getUint16),ie=(h(re.setUint16),TypeError,WeakSet.prototype),oe=(h(ie.add),h(ie.has),WeakMap),se=oe.prototype,ae=h(se.get),le=(h(se.has),h(se.set)),ce=new oe,ue=I(null,{next:{value:function(){const e=ae(ce,this);return Q(e)}},[P]:{value:function(){return this}}}),he=new oe,de=I(te,{next:{value:function(){const e=ae(he,this);return ee(e)},writable:!0,configurable:!0}});for(const e of b(J))"next"!==e&&k(de,e,y(J,e));const fe=new B(4),pe=new Z(fe),me=new X(fe),ge=new Y(512),ye=new H(512);for(let e=0;e<256;++e){const t=e-127;t<-24?(ge[e]=0,ge[256|e]=32768,ye[e]=24,ye[256|e]=24):t<-14?(ge[e]=1024>>-t-14,ge[256|e]=1024>>-t-14|32768,ye[e]=-t-1,ye[256|e]=-t-1):t<=15?(ge[e]=t+15<<10,ge[256|e]=t+15<<10|32768,ye[e]=13,ye[256|e]=13):t<128?(ge[e]=31744,ge[256|e]=64512,ye[e]=24,ye[256|e]=24):(ge[e]=31744,ge[256|e]=64512,ye[e]=13,ye[256|e]=13)}const ve=new X(2048);for(let e=1;e<1024;++e){let t=e<<13,r=0;for(;!(8388608&t);)t<<=1,r-=8388608;t&=-8388609,r+=947912704,ve[e]=t|r}for(let e=1024;e<2048;++e)ve[e]=939524096+(e-1024<<13);const _e=new X(64);for(let e=1;e<31;++e)_e[e]=e<<23;_e[31]=1199570944,_e[32]=2147483648;for(let e=33;e<63;++e)_e[e]=2147483648+(e-32<<23);_e[63]=3347054592;const be=new Y(64);for(let e=1;e<64;++e)32!==e&&(be[e]=1024);function we(e,t,...r){return function(e){const t=e>>10;return me[0]=ve[be[t]+(1023&e)]+_e[t],pe[0]}(ne(e,t,...function(e){if(e[P]===$&&J.next===Q)return e;const t=I(ue);return le(ce,t,G(e)),t}(r)))}var Ee=r(96682),xe=r.n(Ee),Se=r(91818),Ae=r.n(Se);function Te(e,t,r,n=1){return new(Object.getPrototypeOf(e).constructor)(t*r*n)}function Pe(e,t,r){return(1-r)*e+r*t}function Ce(e,t,r){let n=0;for(let i=t;i<r;++i)n+=e[i];return n}function Oe(e,t,r){switch(e){case 1:if(t<=8)return new Uint8Array(r);if(t<=16)return new Uint16Array(r);if(t<=32)return new Uint32Array(r);break;case 2:if(8===t)return new Int8Array(r);if(16===t)return new Int16Array(r);if(32===t)return new Int32Array(r);break;case 3:switch(t){case 16:case 32:return new Float32Array(r);case 64:return new Float64Array(r)}}throw Error("Unsupported data format/bitsPerSample")}const Re=class{constructor(e,t,r,n,i,o){this.fileDirectory=e,this.geoKeys=t,this.dataView=r,this.littleEndian=n,this.tiles=i?{}:null,this.isTiled=!e.StripOffsets;const s=e.PlanarConfiguration;if(this.planarConfiguration=void 0===s?1:s,1!==this.planarConfiguration&&2!==this.planarConfiguration)throw new Error("Invalid planar configuration.");this.source=o}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return void 0!==this.fileDirectory.SamplesPerPixel?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:void 0!==this.fileDirectory.RowsPerStrip?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(e){return this.isTiled||(e+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-e*this.getTileHeight()}getBytesPerPixel(){let e=0;for(let t=0;t<this.fileDirectory.BitsPerSample.length;++t)e+=this.getSampleByteSize(t);return e}getSampleByteSize(e){if(e>=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${e} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[e]/8)}getReaderForSample(e){const t=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1,r=this.fileDirectory.BitsPerSample[e];switch(t){case 1:if(r<=8)return DataView.prototype.getUint8;if(r<=16)return DataView.prototype.getUint16;if(r<=32)return DataView.prototype.getUint32;break;case 2:if(r<=8)return DataView.prototype.getInt8;if(r<=16)return DataView.prototype.getInt16;if(r<=32)return DataView.prototype.getInt32;break;case 3:switch(r){case 16:return function(e,t){return we(this,e,t)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(e=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1}getBitsPerSample(e=0){return this.fileDirectory.BitsPerSample[e]}getArrayForSample(e,t){return Oe(this.getSampleFormat(e),this.getBitsPerSample(e),t)}async getTileOrStrip(e,t,r,n,i){const o=Math.ceil(this.getWidth()/this.getTileWidth()),s=Math.ceil(this.getHeight()/this.getTileHeight());let a;const{tiles:l}=this;let c,u;1===this.planarConfiguration?a=t*o+e:2===this.planarConfiguration&&(a=r*o*s+t*o+e),this.isTiled?(c=this.fileDirectory.TileOffsets[a],u=this.fileDirectory.TileByteCounts[a]):(c=this.fileDirectory.StripOffsets[a],u=this.fileDirectory.StripByteCounts[a]);const h=(await this.source.fetch([{offset:c,length:u}],i))[0];let d;return null!==l&&l[a]?d=l[a]:(d=(async()=>{let e=await n.decode(this.fileDirectory,h);const r=this.getSampleFormat(),i=this.getBitsPerSample();return function(e,t){return(1!==e&&2!==e||!(t<=32)||t%8!=0)&&(3!==e||16!==t&&32!==t&&64!==t)}(r,i)&&(e=function(e,t,r,n,i,o,s){const a=new DataView(e),l=2===r?1:n,c=Oe(t,i,2===r?s*o:s*o*n),u=parseInt("1".repeat(i),2);if(1===t){let e;e=1===r?n*i:i;let t=o*e;7&t&&(t=t+7&-8);for(let e=0;e<s;++e){const r=e*t;for(let t=0;t<o;++t){const n=r+t*l*i;for(let r=0;r<l;++r){const s=n+r*i,h=(e*o+t)*l+r,d=Math.floor(s/8),f=s%8;if(f+i<=8)c[h]=a.getUint8(d)>>8-i-f&u;else if(f+i<=16)c[h]=a.getUint16(d)>>16-i-f&u;else if(f+i<=24){const e=a.getUint16(d)<<8|a.getUint8(d+2);c[h]=e>>24-i-f&u}else c[h]=a.getUint32(d)>>32-i-f&u}}}}return c.buffer}(e,r,this.planarConfiguration,this.getSamplesPerPixel(),i,this.getTileWidth(),this.getBlockHeight(t))),e})(),null!==l&&(l[a]=d)),{x:e,y:t,sample:r,data:await d}}async _readRaster(e,t,r,n,i,o,s,a,l){const c=this.getTileWidth(),u=this.getTileHeight(),h=this.getWidth(),d=this.getHeight(),f=Math.max(Math.floor(e[0]/c),0),p=Math.min(Math.ceil(e[2]/c),Math.ceil(h/c)),m=Math.max(Math.floor(e[1]/u),0),g=Math.min(Math.ceil(e[3]/u),Math.ceil(d/u)),y=e[2]-e[0];let v=this.getBytesPerPixel();const _=[],b=[];for(let e=0;e<t.length;++e)1===this.planarConfiguration?_.push(Ce(this.fileDirectory.BitsPerSample,0,t[e])/8):_.push(0),b.push(this.getReaderForSample(t[e]));const w=[],{littleEndian:E}=this;for(let o=m;o<g;++o)for(let s=f;s<p;++s){let a;1===this.planarConfiguration&&(a=this.getTileOrStrip(s,o,0,i,l));for(let f=0;f<t.length;++f){const p=f,m=t[f];2===this.planarConfiguration&&(v=this.getSampleByteSize(m),a=this.getTileOrStrip(s,o,m,i,l));const g=a.then((i=>{const o=i.data,s=new DataView(o),a=this.getBlockHeight(i.y),l=i.y*u,f=i.x*c,m=l+a,g=(i.x+1)*c,w=b[p],x=Math.min(a,a-(m-e[3]),d-l),S=Math.min(c,c-(g-e[2]),h-f);for(let i=Math.max(0,e[1]-l);i<x;++i)for(let o=Math.max(0,e[0]-f);o<S;++o){const a=(i*c+o)*v,u=w.call(s,a+_[p],E);let h;n?(h=(i+l-e[1])*y*t.length+(o+f-e[0])*t.length+p,r[h]=u):(h=(i+l-e[1])*y+o+f-e[0],r[p][h]=u)}}));w.push(g)}}if(await Promise.all(w),o&&e[2]-e[0]!==o||s&&e[3]-e[1]!==s){let i;return i=n?function(e,t,r,n,i,o,s="nearest"){switch(s.toLowerCase()){case"nearest":return function(e,t,r,n,i,o){const s=t/n,a=r/i,l=Te(e,n,i,o);for(let c=0;c<i;++c){const i=Math.min(Math.round(a*c),r-1);for(let r=0;r<n;++r){const a=Math.min(Math.round(s*r),t-1);for(let s=0;s<o;++s){const u=e[i*t*o+a*o+s];l[c*n*o+r*o+s]=u}}}return l}(e,t,r,n,i,o);case"bilinear":case"linear":return function(e,t,r,n,i,o){const s=t/n,a=r/i,l=Te(e,n,i,o);for(let c=0;c<i;++c){const i=a*c,u=Math.floor(i),h=Math.min(Math.ceil(i),r-1);for(let r=0;r<n;++r){const a=s*r,d=a%1,f=Math.floor(a),p=Math.min(Math.ceil(a),t-1);for(let s=0;s<o;++s){const a=e[u*t*o+f*o+s],m=e[u*t*o+p*o+s],g=e[h*t*o+f*o+s],y=e[h*t*o+p*o+s],v=Pe(Pe(a,m,d),Pe(g,y,d),i%1);l[c*n*o+r*o+s]=v}}}return l}(e,t,r,n,i,o);default:throw new Error(`Unsupported resampling method: '${s}'`)}}(r,e[2]-e[0],e[3]-e[1],o,s,t.length,a):function(e,t,r,n,i,o="nearest"){switch(o.toLowerCase()){case"nearest":return function(e,t,r,n,i){const o=t/n,s=r/i;return e.map((e=>{const a=Te(e,n,i);for(let l=0;l<i;++l){const i=Math.min(Math.round(s*l),r-1);for(let r=0;r<n;++r){const s=Math.min(Math.round(o*r),t-1),c=e[i*t+s];a[l*n+r]=c}}return a}))}(e,t,r,n,i);case"bilinear":case"linear":return function(e,t,r,n,i){const o=t/n,s=r/i;return e.map((e=>{const a=Te(e,n,i);for(let l=0;l<i;++l){const i=s*l,c=Math.floor(i),u=Math.min(Math.ceil(i),r-1);for(let r=0;r<n;++r){const s=o*r,h=s%1,d=Math.floor(s),f=Math.min(Math.ceil(s),t-1),p=e[c*t+d],m=e[c*t+f],g=e[u*t+d],y=e[u*t+f],v=Pe(Pe(p,m,h),Pe(g,y,h),i%1);a[l*n+r]=v}}return a}))}(e,t,r,n,i);default:throw new Error(`Unsupported resampling method: '${o}'`)}}(r,e[2]-e[0],e[3]-e[1],o,s,a),i.width=o,i.height=s,i}return r.width=o||e[2]-e[0],r.height=s||e[3]-e[1],r}async readRasters({window:e,samples:t=[],interleave:r,pool:n=null,width:i,height:o,resampleMethod:s,fillValue:a,signal:c}={}){const u=e||[0,0,this.getWidth(),this.getHeight()];if(u[0]>u[2]||u[1]>u[3])throw new Error("Invalid subsets");const h=(u[2]-u[0])*(u[3]-u[1]),d=this.getSamplesPerPixel();if(t&&t.length){for(let e=0;e<t.length;++e)if(t[e]>=d)return Promise.reject(new RangeError(`Invalid sample index '${t[e]}'.`))}else for(let e=0;e<d;++e)t.push(e);let f;if(r)f=Oe(this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,Math.max.apply(null,this.fileDirectory.BitsPerSample),h*t.length),a&&f.fill(a);else{f=[];for(let e=0;e<t.length;++e){const r=this.getArrayForSample(t[e],h);Array.isArray(a)&&e<a.length?r.fill(a[e]):a&&!Array.isArray(a)&&r.fill(a),f.push(r)}}const p=n||await l(this.fileDirectory);return await this._readRaster(u,t,f,r,p,i,o,s,c)}async readRGB({window:e,interleave:t=!0,pool:r=null,width:n,height:i,resampleMethod:s,enableAlpha:a=!1,signal:l}={}){const c=e||[0,0,this.getWidth(),this.getHeight()];if(c[0]>c[2]||c[1]>c[3])throw new Error("Invalid subsets");const u=this.fileDirectory.PhotometricInterpretation;if(u===o.ub.RGB){let c=[0,1,2];if(this.fileDirectory.ExtraSamples!==o.AC.Unspecified&&a){c=[];for(let e=0;e<this.fileDirectory.BitsPerSample.length;e+=1)c.push(e)}return this.readRasters({window:e,interleave:t,samples:c,pool:r,width:n,height:i,resampleMethod:s,signal:l})}let h;switch(u){case o.ub.WhiteIsZero:case o.ub.BlackIsZero:case o.ub.Palette:h=[0];break;case o.ub.CMYK:h=[0,1,2,3];break;case o.ub.YCbCr:case o.ub.CIELab:h=[0,1,2];break;default:throw new Error("Invalid or unsupported photometric interpretation.")}const d={window:c,interleave:!0,samples:h,pool:r,width:n,height:i,resampleMethod:s,signal:l},{fileDirectory:f}=this,p=await this.readRasters(d),m=2**this.fileDirectory.BitsPerSample[0];let g;switch(u){case o.ub.WhiteIsZero:g=function(e,t){const{width:r,height:n}=e,i=new Uint8Array(r*n*3);let o;for(let r=0,n=0;r<e.length;++r,n+=3)o=256-e[r]/t*256,i[n]=o,i[n+1]=o,i[n+2]=o;return i}(p,m);break;case o.ub.BlackIsZero:g=function(e,t){const{width:r,height:n}=e,i=new Uint8Array(r*n*3);let o;for(let r=0,n=0;r<e.length;++r,n+=3)o=e[r]/t*256,i[n]=o,i[n+1]=o,i[n+2]=o;return i}(p,m);break;case o.ub.Palette:g=function(e,t){const{width:r,height:n}=e,i=new Uint8Array(r*n*3),o=t.length/3,s=t.length/3*2;for(let r=0,n=0;r<e.length;++r,n+=3){const a=e[r];i[n]=t[a]/65536*256,i[n+1]=t[a+o]/65536*256,i[n+2]=t[a+s]/65536*256}return i}(p,f.ColorMap);break;case o.ub.CMYK:g=function(e){const{width:t,height:r}=e,n=new Uint8Array(t*r*3);for(let t=0,r=0;t<e.length;t+=4,r+=3){const i=e[t],o=e[t+1],s=e[t+2],a=e[t+3];n[r]=(255-i)/256*255*((255-a)/256),n[r+1]=(255-o)/256*255*((255-a)/256),n[r+2]=(255-s)/256*255*((255-a)/256)}return n}(p);break;case o.ub.YCbCr:g=function(e){const{width:t,height:r}=e,n=new Uint8ClampedArray(t*r*3);for(let t=0,r=0;t<e.length;t+=3,r+=3){const i=e[t],o=e[t+1],s=e[t+2];n[r]=i+1.402*(s-128),n[r+1]=i-.34414*(o-128)-.71414*(s-128),n[r+2]=i+1.772*(o-128)}return n}(p);break;case o.ub.CIELab:g=function(e){const{width:t,height:r}=e,n=new Uint8Array(t*r*3);for(let t=0,r=0;t<e.length;t+=3,r+=3){let i,o,s,a=(e[t+0]+16)/116,l=(e[t+1]<<24>>24)/500+a,c=a-(e[t+2]<<24>>24)/200;l=.95047*(l*l*l>.008856?l*l*l:(l-16/116)/7.787),a=1*(a*a*a>.008856?a*a*a:(a-16/116)/7.787),c=1.08883*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),i=3.2406*l+-1.5372*a+-.4986*c,o=-.9689*l+1.8758*a+.0415*c,s=.0557*l+-.204*a+1.057*c,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,n[r]=255*Math.max(0,Math.min(1,i)),n[r+1]=255*Math.max(0,Math.min(1,o)),n[r+2]=255*Math.max(0,Math.min(1,s))}return n}(p);break;default:throw new Error("Unsupported photometric interpretation.")}if(!t){const e=new Uint8Array(g.length/3),t=new Uint8Array(g.length/3),r=new Uint8Array(g.length/3);for(let n=0,i=0;n<g.length;n+=3,++i)e[i]=g[n],t[i]=g[n+1],r[i]=g[n+2];g=[e,t,r]}return g.width=p.width,g.height=p.height,g}getTiePoints(){if(!this.fileDirectory.ModelTiepoint)return[];const e=[];for(let 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}getGDALMetadata(e=null){const t={};if(!this.fileDirectory.GDAL_METADATA)return null;const r=this.fileDirectory.GDAL_METADATA;let n=Ae()(r,"Item");n=null===e?n.filter((e=>void 0===xe()(e,"sample"))):n.filter((t=>Number(xe()(t,"sample"))===e));for(let e=0;e<n.length;++e){const r=n[e];t[xe()(r,"name")]=r.inner}return t}getGDALNoData(){if(!this.fileDirectory.GDAL_NODATA)return null;const e=this.fileDirectory.GDAL_NODATA;return Number(e.substring(0,e.length-1))}getOrigin(){const 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.")}getResolution(e=null){const t=this.fileDirectory.ModelPixelScale,r=this.fileDirectory.ModelTransformation;if(t)return[t[0],-t[1],t[2]];if(r)return 0===r[1]&&0===r[4]?[r[0],-r[5],r[10]]:[Math.sqrt(r[0]*r[0]+r[4]*r[4]),-Math.sqrt(r[1]*r[1]+r[5]*r[5]),r[10]];if(e){const[t,r,n]=e.getResolution();return[t*e.getWidth()/this.getWidth(),r*e.getHeight()/this.getHeight(),n*e.getWidth()/this.getWidth()]}throw new Error("The image does not have an affine transformation.")}pixelIsArea(){return 1===this.geoKeys.GTRasterTypeGeoKey}getBoundingBox(e=!1){const t=this.getHeight(),r=this.getWidth();if(this.fileDirectory.ModelTransformation&&!e){const[e,n,i,o,s,a,l,c]=this.fileDirectory.ModelTransformation,u=[[0,0],[0,t],[r,0],[r,t]].map((([t,r])=>[o+e*t+n*r,c+s*t+a*r])),h=u.map((e=>e[0])),d=u.map((e=>e[1]));return[Math.min(...h),Math.min(...d),Math.max(...h),Math.max(...d)]}{const e=this.getOrigin(),n=this.getResolution(),i=e[0],o=e[1],s=i+n[0]*r,a=o+n[1]*t;return[Math.min(i,s),Math.min(o,a),Math.max(i,s),Math.max(o,a)]}}};class De{constructor(e){this._dataView=new DataView(e)}get buffer(){return this._dataView.buffer}getUint64(e,t){const r=this.getUint32(e,t),n=this.getUint32(e+4,t);let i;if(t){if(i=r+2**32*n,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}if(i=2**32*r+n,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}getInt64(e,t){let r=0;const n=(128&this._dataView.getUint8(e+(t?7:0)))>0;let i=!0;for(let o=0;o<8;o++){let s=this._dataView.getUint8(e+(t?o:7-o));n&&(i?0!==s&&(s=255&~(s-1),i=!1):s=255&~s),r+=s*256**o}return n&&(r=-r),r}getUint8(e,t){return this._dataView.getUint8(e,t)}getInt8(e,t){return this._dataView.getInt8(e,t)}getUint16(e,t){return this._dataView.getUint16(e,t)}getInt16(e,t){return this._dataView.getInt16(e,t)}getUint32(e,t){return this._dataView.getUint32(e,t)}getInt32(e,t){return this._dataView.getInt32(e,t)}getFloat16(e,t){return we(this._dataView,e,t)}getFloat32(e,t){return this._dataView.getFloat32(e,t)}getFloat64(e,t){return this._dataView.getFloat64(e,t)}}class Ie{constructor(e,t,r,n){this._dataView=new DataView(e),this._sliceOffset=t,this._littleEndian=r,this._bigTiff=n}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(e,t){return this.sliceOffset<=e&&this.sliceTop>=e+t}readUint8(e){return this._dataView.getUint8(e-this._sliceOffset,this._littleEndian)}readInt8(e){return this._dataView.getInt8(e-this._sliceOffset,this._littleEndian)}readUint16(e){return this._dataView.getUint16(e-this._sliceOffset,this._littleEndian)}readInt16(e){return this._dataView.getInt16(e-this._sliceOffset,this._littleEndian)}readUint32(e){return this._dataView.getUint32(e-this._sliceOffset,this._littleEndian)}readInt32(e){return this._dataView.getInt32(e-this._sliceOffset,this._littleEndian)}readFloat32(e){return this._dataView.getFloat32(e-this._sliceOffset,this._littleEndian)}readFloat64(e){return this._dataView.getFloat64(e-this._sliceOffset,this._littleEndian)}readUint64(e){const t=this.readUint32(e),r=this.readUint32(e+4);let n;if(this._littleEndian){if(n=t+2**32*r,!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=2**32*t+r,!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}readInt64(e){let t=0;const r=(128&this._dataView.getUint8(e+(this._littleEndian?7:0)))>0;let n=!0;for(let i=0;i<8;i++){let o=this._dataView.getUint8(e+(this._littleEndian?i:7-i));r&&(n?0!==o&&(o=255&~(o-1),n=!1):o=255&~o),t+=o*256**i}return r&&(t=-t),t}readOffset(e){return this._bigTiff?this.readUint64(e):this.readUint32(e)}}function ke(e){if(void 0!==Object.fromEntries)return Object.fromEntries(e);const t={};for(const[r,n]of e)t[r.toLowerCase()]=n;return t}function Fe(e){return ke(e.split("\r\n").map((e=>{const t=e.split(":").map((e=>e.trim()));return t[0]=t[0].toLowerCase(),t})))}function je(e){let t,r,n;return e&&([,t,r,n]=e.match(/bytes (\d+)-(\d+)\/(\d+)/),t=parseInt(t,10),r=parseInt(r,10),n=parseInt(n,10)),{start:t,end:r,total:n}}class Le{async fetch(e,t=void 0){return Promise.all(e.map((e=>this.fetchSlice(e,t))))}async fetchSlice(e){throw new Error(`fetching of slice ${e} not possible, not implemented`)}get fileSize(){return null}async close(){}}class Me extends Map{constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if("function"==typeof this.onEviction)for(const[t,r]of e)this.onEviction(t,r.value)}_deleteIfExpired(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.onEviction&&this.onEviction(e,t.value),this.delete(e))}_getOrDeleteIfExpired(e,t){if(!1===this._deleteIfExpired(e,t))return t.value}_getItemValue(e,t){return t.expiry?this._getOrDeleteIfExpired(e,t):t.value}_peek(e,t){const r=t.get(e);return this._getItemValue(e,r)}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,t){this.oldCache.delete(e),this._set(e,t)}*_entriesAscending(){for(const e of this.oldCache){const[t,r]=e;this.cache.has(t)||!1===this._deleteIfExpired(t,r)&&(yield e)}for(const e of this.cache){const[t,r]=e;!1===this._deleteIfExpired(t,r)&&(yield e)}}get(e){if(this.cache.has(e)){const t=this.cache.get(e);return this._getItemValue(e,t)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);if(!1===this._deleteIfExpired(e,t))return this._moveToRecent(e,t),t.value}}set(e,t,{maxAge:r=this.maxAge}={}){const n="number"==typeof r&&r!==Number.POSITIVE_INFINITY?Date.now()+r:void 0;return this.cache.has(e)?this.cache.set(e,{value:t,expiry:n}):this._set(e,{value:t,expiry:n}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):!!this.oldCache.has(e)&&!this._deleteIfExpired(e,this.oldCache.get(e))}peek(e){return this.cache.has(e)?this._peek(e,this.cache):this.oldCache.has(e)?this._peek(e,this.oldCache):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this._entriesAscending()],r=t.length-e;r<0?(this.cache=new Map(t),this.oldCache=new Map,this._size=t.length):(r>0&&this._emitEvictions(t.slice(0,r)),this.oldCache=new Map(t.slice(r)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache){const[t,r]=e;!1===this._deleteIfExpired(t,r)&&(yield[t,r.value])}for(const e of this.oldCache){const[t,r]=e;this.cache.has(t)||!1===this._deleteIfExpired(t,r)&&(yield[t,r.value])}}*entriesDescending(){let e=[...this.cache];for(let t=e.length-1;t>=0;--t){const r=e[t],[n,i]=r;!1===this._deleteIfExpired(n,i)&&(yield[n,i.value])}e=[...this.oldCache];for(let t=e.length-1;t>=0;--t){const r=e[t],[n,i]=r;this.cache.has(n)||!1===this._deleteIfExpired(n,i)&&(yield[n,i.value])}}*entriesAscending(){for(const[e,t]of this._entriesAscending())yield[e,t.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e,t=this){for(const[r,n]of this.entriesAscending())e.call(t,n,r,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class Ne extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,Ne),this.name="AbortError"}}class $e extends Error{constructor(e,t){super(t),this.errors=e,this.message=t,this.name="AggregateError"}}const Ge=$e;class ze{constructor(e,t,r=null){this.offset=e,this.length=t,this.data=r}get top(){return this.offset+this.length}}class Ue{constructor(e,t,r){this.offset=e,this.length=t,this.blockIds=r}}class Be extends Le{constructor(e,{blockSize:t=65536,cacheSize:r=100}={}){super(),this.source=e,this.blockSize=t,this.blockCache=new Me({maxSize:r,onEviction:(e,t)=>{this.evictedBlocks.set(e,t)}}),this.evictedBlocks=new Map,this.blockRequests=new Map,this.blockIdsToFetch=new Set,this.abortedBlockIds=new Set}get fileSize(){return this.source.fileSize}async fetch(e,t){const r=[],n=[],i=[];this.evictedBlocks.clear();for(const{offset:t,length:o}of e){let e=t+o;const{fileSize:s}=this;null!==s&&(e=Math.min(e,s));for(let o=Math.floor(t/this.blockSize)*this.blockSize;o<e;o+=this.blockSize){const e=Math.floor(o/this.blockSize);this.blockCache.has(e)||this.blockRequests.has(e)||(this.blockIdsToFetch.add(e),n.push(e)),this.blockRequests.has(e)&&r.push(this.blockRequests.get(e)),i.push(e)}}await async function(){return new Promise((e=>setTimeout(e,undefined)))}(),this.fetchBlocks(t);const o=[];for(const e of n)this.blockRequests.has(e)&&o.push(this.blockRequests.get(e));await Promise.allSettled(r),await Promise.allSettled(o);const s=[],a=i.filter((e=>this.abortedBlockIds.has(e)||!this.blockCache.has(e)));if(a.forEach((e=>this.blockIdsToFetch.add(e))),a.length>0&&t&&!t.aborted){this.fetchBlocks(null);for(const e of a){const t=this.blockRequests.get(e);if(!t)throw new Error(`Block ${e} is not in the block requests`);s.push(t)}await Promise.allSettled(s)}if(t&&t.aborted)throw new Ne("Request was aborted");const l=i.map((e=>this.blockCache.get(e)||this.evictedBlocks.get(e))),c=l.filter((e=>!e));if(c.length)throw new Ge(c,"Request failed");const u=new Map(function(e,t){const r=Array.isArray(e)?e:Array.from(e),n=Array.isArray(t)?t:Array.from(t);return r.map(((e,t)=>[e,n[t]]))}(i,l));return this.readSliceData(e,u)}fetchBlocks(e){if(this.blockIdsToFetch.size>0){const t=this.groupBlocks(this.blockIdsToFetch),r=this.source.fetch(t,e);for(let n=0;n<t.length;++n){const i=t[n];for(const t of i.blockIds)this.blockRequests.set(t,(async()=>{try{const e=(await r)[n],i=t*this.blockSize,o=i-e.offset,s=Math.min(o+this.blockSize,e.data.byteLength),a=e.data.slice(o,s),l=new ze(i,a.byteLength,a,t);this.blockCache.set(t,l),this.abortedBlockIds.delete(t)}catch(r){if("AbortError"!==r.name)throw r;r.signal=e,this.blockCache.delete(t),this.abortedBlockIds.add(t)}finally{this.blockRequests.delete(t)}})())}this.blockIdsToFetch.clear()}}groupBlocks(e){const t=Array.from(e).sort(((e,t)=>e-t));if(0===t.length)return[];let r=[],n=null;const i=[];for(const e of t)null===n||n+1===e?(r.push(e),n=e):(i.push(new Ue(r[0]*this.blockSize,r.length*this.blockSize,r)),r=[e],n=e);return i.push(new Ue(r[0]*this.blockSize,r.length*this.blockSize,r)),i}readSliceData(e,t){return e.map((e=>{let r=e.offset+e.length;null!==this.fileSize&&(r=Math.min(this.fileSize,r));const n=Math.floor(e.offset/this.blockSize),i=Math.floor(r/this.blockSize),o=new ArrayBuffer(e.length),s=new Uint8Array(o);for(let o=n;o<=i;++o){const n=t.get(o),i=n.offset-e.offset;let a,l=0,c=0;i<0?l=-i:i>0&&(c=i),a=n.top-r<0?n.length-l:r-n.offset-l;const u=new Uint8Array(n.data,l,a);s.set(u,c)}return o}))}}class Ve{get ok(){return this.status>=200&&this.status<=299}get status(){throw new Error("not implemented")}getHeader(e){throw new Error("not implemented")}async getData(){throw new Error("not implemented")}}class Ke{constructor(e){this.url=e}async request({headers:e,signal:t}={}){throw new Error("request is not implemented")}}class qe extends Ve{constructor(e){super(),this.response=e}get status(){return this.response.status}getHeader(e){return this.response.headers.get(e)}async getData(){return this.response.arrayBuffer?await this.response.arrayBuffer():(await this.response.buffer()).buffer}}class We extends Ke{constructor(e,t){super(e),this.credentials=t}async request({headers:e,signal:t}={}){const r=await fetch(this.url,{headers:e,credentials:this.credentials,signal:t});return new qe(r)}}class He extends Ve{constructor(e,t){super(),this.xhr=e,this.data=t}get status(){return this.xhr.status}getHeader(e){return this.xhr.getResponseHeader(e)}async getData(){return this.data}}class Ye extends Ke{constructRequest(e,t){return new Promise(((r,n)=>{const i=new XMLHttpRequest;i.open("GET",this.url),i.responseType="arraybuffer";for(const[t,r]of Object.entries(e))i.setRequestHeader(t,r);i.onload=()=>{const e=i.response;r(new He(i,e))},i.onerror=n,i.onabort=()=>n(new Ne("Request aborted")),i.send(),t&&(t.aborted&&i.abort(),t.addEventListener("abort",(()=>i.abort())))}))}async request({headers:e,signal:t}={}){return await this.constructRequest(e,t)}}var Xe=r(80432),Ze=r.n(Xe),Je=r(85787),Qe=r.n(Je),et=r(93907),tt=r.n(et);class rt extends Ve{constructor(e,t){super(),this.response=e,this.dataPromise=t}get status(){return this.response.statusCode}getHeader(e){return this.response.headers[e]}async getData(){return await this.dataPromise}}class nt extends Ke{constructor(e){super(e),this.parsedUrl=tt().parse(this.url),this.httpApi="http:"===this.parsedUrl.protocol?Ze():Qe()}constructRequest(e,t){return new Promise(((r,n)=>{const i=this.httpApi.get({...this.parsedUrl,headers:e},(e=>{const t=new Promise((t=>{const r=[];e.on("data",(e=>{r.push(e)})),e.on("end",(()=>{const e=Buffer.concat(r).buffer;t(e)})),e.on("error",n)}));r(new rt(e,t))}));i.on("error",n),t&&(t.aborted&&i.destroy(new Ne("Request aborted")),t.addEventListener("abort",(()=>i.destroy(new Ne("Request aborted")))))}))}async request({headers:e,signal:t}={}){return await this.constructRequest(e,t)}}class it extends Le{constructor(e,t,r,n){super(),this.client=e,this.headers=t,this.maxRanges=r,this.allowFullFile=n,this._fileSize=null}async fetch(e,t){return this.maxRanges>=e.length?this.fetchSlices(e,t):(this.maxRanges>0&&e.length,Promise.all(e.map((e=>this.fetchSlice(e,t)))))}async fetchSlices(e,t){const r=await this.client.request({headers:{...this.headers,Range:`bytes=${e.map((({offset:e,length:t})=>`${e}-${e+t}`)).join(",")}`},signal:t});if(r.ok){if(206===r.status){const{type:n,params:i}=function(e){const[t,...r]=e.split(";").map((e=>e.trim()));return{type:t,params:ke(r.map((e=>e.split("="))))}}(r.getHeader("content-type"));if("multipart/byteranges"===n){const e=function(e,t){let r=null;const n=new TextDecoder("ascii"),i=[],o=`--${t}`,s=`${o}--`;for(let t=0;t<10;++t)n.decode(new Uint8Array(e,t,o.length))===o&&(r=t);if(null===r)throw new Error("Could not find initial boundary");for(;r<e.byteLength;){const t=n.decode(new Uint8Array(e,r,Math.min(o.length+1024,e.byteLength-r)));if(0===t.length||t.startsWith(s))break;if(!t.startsWith(o))throw new Error("Part does not start with boundary");const a=t.substr(o.length+2);if(0===a.length)break;const l=a.indexOf("\r\n\r\n"),c=Fe(a.substr(0,l)),{start:u,end:h,total:d}=je(c["content-range"]),f=r+o.length+l+4,p=parseInt(h,10)+1-parseInt(u,10);i.push({headers:c,data:e.slice(f,f+p),offset:u,length:p,fileSize:d}),r=f+p+4}return i}(await r.getData(),i.boundary);return this._fileSize=e[0].fileSize||null,e}const o=await r.getData(),{start:s,end:a,total:l}=je(r.getHeader("content-range"));this._fileSize=l||null;const c=[{data:o,offset:s,length:a-s}];if(e.length>1){const r=await Promise.all(e.slice(1).map((e=>this.fetchSlice(e,t))));return c.concat(r)}return c}{if(!this.allowFullFile)throw new Error("Server responded with full file");const e=await r.getData();return this._fileSize=e.byteLength,[{data:e,offset:0,length:e.byteLength}]}}throw new Error("Error fetching data.")}async fetchSlice(e,t){const{offset:r,length:n}=e,i=await this.client.request({headers:{...this.headers,Range:`bytes=${r}-${r+n}`},signal:t});if(i.ok){if(206===i.status){const e=await i.getData(),{total:t}=je(i.getHeader("content-range"));return this._fileSize=t||null,{data:e,offset:r,length:n}}{if(!this.allowFullFile)throw new Error("Server responded with full file");const e=await i.getData();return this._fileSize=e.byteLength,{data:e,offset:0,length:e.byteLength}}}throw new Error("Error fetching data.")}get fileSize(){return this._fileSize}}function ot(e,{blockSize:t,cacheSize:r}){return null===t?e:new Be(e,{blockSize:t,cacheSize:r})}function st(e,{forceXHR:t=!1,...r}={}){return"function"!=typeof fetch||t?"undefined"!=typeof XMLHttpRequest?function(e,{headers:t={},maxRanges:r=0,allowFullFile:n=!1,...i}={}){const o=new Ye(e);return ot(new it(o,t,r,n),i)}(e,r):function(e,{headers:t={},maxRanges:r=0,allowFullFile:n=!1,...i}={}){const o=new nt(e);return ot(new it(o,t,r,n),i)}(e,r):function(e,{headers:t={},credentials:r,maxRanges:n=0,allowFullFile:i=!1,...o}={}){const s=new We(e,r);return ot(new it(s,t,n,i),o)}(e,r)}class at extends Le{constructor(e){super(),this.file=e}async fetchSlice(e,t){return new Promise(((r,n)=>{const i=this.file.slice(e.offset,e.offset+e.length),o=new FileReader;o.onload=e=>r(e.target.result),o.onerror=n,o.onabort=n,o.readAsArrayBuffer(i),t&&t.addEventListener("abort",(()=>o.abort()))}))}}function lt(e){switch(e){case o.s$.BYTE:case o.s$.ASCII:case o.s$.SBYTE:case o.s$.UNDEFINED:return 1;case o.s$.SHORT:case o.s$.SSHORT:return 2;case o.s$.LONG:case o.s$.SLONG:case o.s$.FLOAT:case o.s$.IFD:return 4;case o.s$.RATIONAL:case o.s$.SRATIONAL:case o.s$.DOUBLE:case o.s$.LONG8:case o.s$.SLONG8:case o.s$.IFD8:return 8;default:throw new RangeError(`Invalid field type: ${e}`)}}function ct(e,t,r,n){let i=null,s=null;const a=lt(t);switch(t){case o.s$.BYTE:case o.s$.ASCII:case o.s$.UNDEFINED:i=new Uint8Array(r),s=e.readUint8;break;case o.s$.SBYTE:i=new Int8Array(r),s=e.readInt8;break;case o.s$.SHORT:i=new Uint16Array(r),s=e.readUint16;break;case o.s$.SSHORT:i=new Int16Array(r),s=e.readInt16;break;case o.s$.LONG:case o.s$.IFD:i=new Uint32Array(r),s=e.readUint32;break;case o.s$.SLONG:i=new Int32Array(r),s=e.readInt32;break;case o.s$.LONG8:case o.s$.IFD8:i=new Array(r),s=e.readUint64;break;case o.s$.SLONG8:i=new Array(r),s=e.readInt64;break;case o.s$.RATIONAL:i=new Uint32Array(2*r),s=e.readUint32;break;case o.s$.SRATIONAL:i=new Int32Array(2*r),s=e.readInt32;break;case o.s$.FLOAT:i=new Float32Array(r),s=e.readFloat32;break;case o.s$.DOUBLE:i=new Float64Array(r),s=e.readFloat64;break;default:throw new RangeError(`Invalid field type: ${t}`)}if(t!==o.s$.RATIONAL&&t!==o.s$.SRATIONAL)for(let t=0;t<r;++t)i[t]=s.call(e,n+t*a);else for(let t=0;t<r;t+=2)i[t]=s.call(e,n+t*a),i[t+1]=s.call(e,n+(t*a+4));return t===o.s$.ASCII?new TextDecoder("utf-8").decode(i):i}class ut{constructor(e,t,r){this.fileDirectory=e,this.geoKeyDirectory=t,this.nextIFDByteOffset=r}}class ht extends Error{constructor(e){super(`No image at index ${e}`),this.index=e}}class dt{async readRasters(e={}){const{window:t,width:r,height:n}=e;let{resX:i,resY:o,bbox:s}=e;const a=await this.getImage();let l=a;const c=await this.getImageCount(),u=a.getBoundingBox();if(t&&s)throw new Error('Both "bbox" and "window" passed.');if(r||n){if(t){const[e,r]=a.getOrigin(),[n,i]=a.getResolution();s=[e+t[0]*n,r+t[1]*i,e+t[2]*n,r+t[3]*i]}const e=s||u;if(r){if(i)throw new Error("Both width and resX passed");i=(e[2]-e[0])/r}if(n){if(o)throw new Error("Both width and resY passed");o=(e[3]-e[1])/n}}if(i||o){const e=[];for(let t=0;t<c;++t){const r=await this.getImage(t),{SubfileType:n,NewSubfileType:i}=r.fileDirectory;(0===t||2===n||1&i)&&e.push(r)}e.sort(((e,t)=>e.getWidth()-t.getWidth()));for(let t=0;t<e.length;++t){const r=e[t],n=(u[2]-u[0])/r.getWidth(),s=(u[3]-u[1])/r.getHeight();if(l=r,i&&i>n||o&&o>s)break}}let h=t;if(s){const[e,t]=a.getOrigin(),[r,n]=l.getResolution(a);h=[Math.round((s[0]-e)/r),Math.round((s[1]-t)/n),Math.round((s[2]-e)/r),Math.round((s[3]-t)/n)],h=[Math.min(h[0],h[2]),Math.min(h[1],h[3]),Math.max(h[0],h[2]),Math.max(h[1],h[3])]}return l.readRasters({...e,window:h})}}class ft extends dt{constructor(e,t,r,n,i={}){super(),this.source=e,this.littleEndian=t,this.bigTiff=r,this.firstIFDOffset=n,this.cache=i.cache||!1,this.ifdRequests=[],this.ghostValues=null}async getSlice(e,t){const r=this.bigTiff?4048:1024;return new Ie((await this.source.fetch([{offset:e,length:void 0!==t?t:r}]))[0],e,this.littleEndian,this.bigTiff)}async parseFileDirectoryAt(e){const t=this.bigTiff?20:12,r=this.bigTiff?8:2;let n=await this.getSlice(e);const i=this.bigTiff?n.readUint64(e):n.readUint16(e),s=i*t+(this.bigTiff?16:6);n.covers(e,s)||(n=await this.getSlice(e,s));const a={};let l=e+(this.bigTiff?8:2);for(let e=0;e<i;l+=t,++e){const e=n.readUint16(l),t=n.readUint16(l+2),r=this.bigTiff?n.readUint64(l+4):n.readUint32(l+4);let i,s;const c=lt(t),u=l+(this.bigTiff?12:8);if(c*r<=(this.bigTiff?8:4))i=ct(n,t,r,u);else{const e=n.readOffset(u),o=lt(t)*r;i=n.covers(e,o)?ct(n,t,r,e):ct(await this.getSlice(e,o),t,r,e)}s=1===r&&-1===o.NZ.indexOf(e)&&t!==o.s$.RATIONAL&&t!==o.s$.SRATIONAL?i[0]:i,a[o.$[e]]=s}const c=function(e){const t=e.GeoKeyDirectory;if(!t)return null;const r={};for(let n=4;n<=4*t[3];n+=4){const i=o.Hm[t[n]],s=t[n+1]?o.$[t[n+1]]:null,a=t[n+2],l=t[n+3];let c=null;if(s){if(c=e[s],null==c)throw new Error(`Could not get value of geoKey '${i}'.`);"string"==typeof c?c=c.substring(l,l+a-1):c.subarray&&(c=c.subarray(l,l+a),1===a&&(c=c[0]))}else c=l;r[i]=c}return r}(a),u=n.readOffset(e+r+t*i);return new ut(a,c,u)}async requestIFD(e){if(this.ifdRequests[e])return this.ifdRequests[e];if(0===e)return this.ifdRequests[e]=this.parseFileDirectoryAt(this.firstIFDOffset),this.ifdRequests[e];if(!this.ifdRequests[e-1])try{this.ifdRequests[e-1]=this.requestIFD(e-1)}catch(t){if(t instanceof ht)throw new ht(e);throw t}return this.ifdRequests[e]=(async()=>{const t=await this.ifdRequests[e-1];if(0===t.nextIFDByteOffset)throw new ht(e);return this.parseFileDirectoryAt(t.nextIFDByteOffset)})(),this.ifdRequests[e]}async getImage(e=0){const t=await this.requestIFD(e);return new Re(t.fileDirectory,t.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)}async getImageCount(){let e=0,t=!0;for(;t;)try{await this.requestIFD(e),++e}catch(e){if(!(e instanceof ht))throw e;t=!1}return e}async getGhostValues(){const e=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;let t=await this.getSlice(e,130);if("GDAL_STRUCTURAL_METADATA_SIZE="===ct(t,o.s$.ASCII,30,e)){const r=ct(t,o.s$.ASCII,130,e).split("\n")[0],n=Number(r.split("=")[1].split(" ")[0])+r.length;n>130&&(t=await this.getSlice(e,n));const i=ct(t,o.s$.ASCII,n,e);this.ghostValues={},i.split("\n").filter((e=>e.length>0)).map((e=>e.split("="))).forEach((([e,t])=>{this.ghostValues[e]=t}))}return this.ghostValues}static async fromSource(e,t,r){const n=(await e.fetch([{offset:0,length:1024}],r))[0],i=new De(n),o=i.getUint16(0,0);let s;if(18761===o)s=!0;else{if(19789!==o)throw new TypeError("Invalid byte order value.");s=!1}const a=i.getUint16(2,s);let l;if(42===a)l=!1;else{if(43!==a)throw new TypeError("Invalid magic number.");if(l=!0,8!==i.getUint16(4,s))throw new Error("Unsupported offset byte-size.")}const c=l?i.getUint64(8,s):i.getUint32(4,s);return new ft(e,s,l,c,t)}close(){return"function"==typeof this.source.close&&this.source.close()}}class pt extends dt{constructor(e,t){super(),this.mainFile=e,this.overviewFiles=t,this.imageFiles=[e].concat(t),this.fileDirectoriesPerFile=null,this.fileDirectoriesPerFileParsing=null,this.imageCount=null}async parseFileDirectoriesPerFile(){const e=[this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)].concat(this.overviewFiles.map((e=>e.parseFileDirectoryAt(e.firstIFDOffset))));return this.fileDirectoriesPerFile=await Promise.all(e),this.fileDirectoriesPerFile}async getImage(e=0){await this.getImageCount(),await this.parseFileDirectoriesPerFile();let t=0,r=0;for(let n=0;n<this.imageFiles.length;n++){const i=this.imageFiles[n];for(let o=0;o<this.imageCounts[n];o++){if(e===t){const e=await i.requestIFD(r);return new Re(e.fileDirectory,e.geoKeyDirectory,i.dataView,i.littleEndian,i.cache,i.source)}t++,r++}r=0}throw new RangeError("Invalid image index")}async getImageCount(){if(null!==this.imageCount)return this.imageCount;const e=[this.mainFile.getImageCount()].concat(this.overviewFiles.map((e=>e.getImageCount())));return this.imageCounts=await Promise.all(e),this.imageCount=this.imageCounts.reduce(((e,t)=>e+t),0),this.imageCount}}var mt=r(12940),gt=r(72475),yt=r(44509),vt=r(96372),_t=r(82410);function bt(e,t){if(!e)return!1;if(!0===e)return!0;if(3!==t.getSamplesPerPixel())return!1;const r=t.fileDirectory.PhotometricInterpretation,n=o.ub;return r===n.CMYK||r===n.YCbCr||r===n.CIELab||r===n.ICCLab}const wt="STATISTICS_MAXIMUM",Et="STATISTICS_MINIMUM";let xt;function St(){return xt||(xt=new u),xt}function At(e){try{return e.getBoundingBox()}catch(t){return[0,0,e.getWidth(),e.getHeight()]}}function Tt(e){try{return e.getOrigin().slice(0,2)}catch(t){return[0,e.getHeight()]}}function Pt(e,t){try{return e.getResolution(t)}catch(r){return[t.getWidth()/e.getWidth(),t.getHeight()/e.getHeight()]}}function Ct(e){const t=e.geoKeys;if(!t)return null;if(t.ProjectedCSTypeGeoKey&&32767!==t.ProjectedCSTypeGeoKey){const e="EPSG:"+t.ProjectedCSTypeGeoKey;let r=(0,mt.Jt)(e);if(!r){const n=(0,_t.q)(t.ProjLinearUnitsGeoKey);n&&(r=new mt.MF({code:e,units:n}))}return r}if(t.GeographicTypeGeoKey&&32767!==t.GeographicTypeGeoKey){const e="EPSG:"+t.GeographicTypeGeoKey;let r=(0,mt.Jt)(e);if(!r){const n=(0,_t.q)(t.GeogAngularUnitsGeoKey);n&&(r=new mt.MF({code:e,units:n}))}return r}return null}function Ot(e){return e.getImageCount().then((function(t){const r=new Array(t);for(let n=0;n<t;++n)r[n]=e.getImage(n);return Promise.all(r)}))}function Rt(e,t){let r;return r=e.blob?async function(e,t){return ft.fromSource(new at(e),t)}(e.blob):e.overviews?async function(e,t=[],r={},n){const i=await ft.fromSource(st(e,r),n),o=await Promise.all(t.map((e=>ft.fromSource(st(e,r)))));return new pt(i,o)}(e.url,e.overviews,t):async function(e,t={},r){return ft.fromSource(st(e,t),r)}(e.url,t),r.then(Ot)}function Dt(e,t,r,n,i){if(Array.isArray(e)){const o=e.length;if(!Array.isArray(t)||o!=t.length){const e=new Error(n);throw i(e),e}for(let s=0;s<o;++s)Dt(e[s],t[s],r,n,i)}else if(Math.abs(e-t)>r*e)throw new Error(n)}function It(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}class kt extends n.A{constructor(e){super({state:"loading",tileGrid:null,projection:e.projection||null,transition:e.transition,interpolate:!1!==e.interpolate,wrapX:e.wrapX}),this.sourceInfo_=e.sources;const t=this.sourceInfo_.length;this.sourceOptions_=e.sourceOptions,this.sourceImagery_=new Array(t),this.sourceMasks_=new Array(t),this.resolutionFactors_=new Array(t),this.samplesPerPixel_,this.nodataValues_,this.metadata_,this.normalize_=!1!==e.normalize,this.addAlpha_=!1,this.error_=null,this.convertToRGB_=e.convertToRGB||!1,this.setKey(this.sourceInfo_.map((e=>e.url)).join(","));const r=this,n=new Array(t);for(let e=0;e<t;++e)n[e]=Rt(this.sourceInfo_[e],this.sourceOptions_);Promise.all(n).then((function(e){r.configure_(e)})).catch((function(e){(0,vt.z3)(e),r.error_=e,r.setState("error")}))}getError(){return this.error_}determineProjection(e){const t=e[0];for(let e=t.length-1;e>=0;--e){const r=Ct(t[e]);if(r){this.projection=r;break}}}configure_(e){let t,r,n,o,s;const a=new Array(e.length),l=new Array(e.length),c=new Array(e.length);let u=0;const h=e.length;for(let i=0;i<h;++i){const h=[],d=[];e[i].forEach((e=>{4&~(e.fileDirectory.NewSubfileType||0)?h.push(e):d.push(e)}));const f=h.length;if(d.length>0&&d.length!==f)throw new Error(`Expected one mask per image found ${d.length} masks and ${f} images`);let p,m;const g=new Array(f),y=new Array(f),v=new Array(f);l[i]=new Array(f),c[i]=new Array(f);for(let e=0;e<f;++e){const t=h[e],r=t.getGDALNoData();c[i][e]=t.getGDALMetadata(0),l[i][e]=r;const n=this.sourceInfo_[i].bands;a[i]=n?n.length:t.getSamplesPerPixel();const o=f-(e+1);p||(p=At(t)),m||(m=Tt(t));const s=Pt(t,h[0]);v[o]=s[0];const u=[t.getTileWidth(),t.getTileHeight()];u[0]!==u[1]&&u[1]<256&&(u[0]=256,u[1]=256),g[o]=u;const d=s[0]/Math.abs(s[1]);y[o]=[u[0],u[1]/d]}if(t?(0,yt._N)(t,p,t):t=p,r?Dt(r,m,0,`Origin mismatch for source ${i}, got [${m}] but expected [${r}]`,this.viewRejector):r=m,s){s.length-u>v.length&&(u=s.length-v.length);const e=s[s.length-1]/v[v.length-1];this.resolutionFactors_[i]=e;const t=v.map((t=>t*e)),r=`Resolution mismatch for source ${i}, got [${t}] but expected [${s}]`;Dt(s.slice(u,s.length),t,.02,r,this.viewRejector)}else s=v,this.resolutionFactors_[i]=1;n?Dt(n.slice(u,n.length),y,.01,`Tile size mismatch for source ${i}`,this.viewRejector):n=y,o?Dt(o.slice(u,o.length),g,0,`Tile size mismatch for source ${i}`,this.viewRejector):o=g,this.sourceImagery_[i]=h.reverse(),this.sourceMasks_[i]=d.reverse()}for(let e=0,t=this.sourceImagery_.length;e<t;++e){const t=this.sourceImagery_[e];for(;t.length<s.length;)t.unshift(void 0)}this.getProjection()||this.determineProjection(e),this.samplesPerPixel_=a,this.nodataValues_=l,this.metadata_=c;e:for(let e=0;e<h;++e){if(void 0!==this.sourceInfo_[e].nodata){this.addAlpha_=!0;break}if(this.sourceMasks_[e].length){this.addAlpha_=!0;break}const t=l[e],r=this.sourceInfo_[e].bands;if(r){for(let e=0;e<r.length;++e)if(null!==t[r[e]-1]){this.addAlpha_=!0;break e}}else for(let e=0;e<t.length;++e)if(null!==t[e]){this.addAlpha_=!0;break e}}let d=this.addAlpha_?1:0;for(let e=0;e<h;++e)d+=a[e];this.bandCount=d;const f=new i.A({extent:t,minZoom:u,origin:r,resolutions:s,tileSizes:n});this.tileGrid=f,this.setTileSizes(o),this.setLoader(this.loadTile_.bind(this)),this.setState("ready"),2===s.length?s=[s[0],s[1],s[1]/2]:1===s.length&&(s=[2*s[0],s[0],s[0]/2]),this.viewResolver({showFullExtent:!0,projection:this.projection,resolutions:s,center:(0,mt.te)((0,yt.q1)(t),this.projection),extent:(0,mt.JR)(t,this.projection),zoom:1})}loadTile_(e,t,r,n){const i=this.getTileSize(e),o=this.sourceImagery_.length,s=new Array(2*o),a=this.nodataValues_,l=this.sourceInfo_,c=St();for(let u=0;u<o;++u){const h=l[u],d=this.resolutionFactors_[u],f=[Math.round(t*(i[0]*d)),Math.round(r*(i[1]*d)),Math.round((t+1)*(i[0]*d)),Math.round((r+1)*(i[1]*d))],p=this.sourceImagery_[u][e];let m,g;h.bands&&(m=h.bands.map((function(e){return e-1}))),g="nodata"in h&&null!==h.nodata?h.nodata:m?m.map((function(e){return a[u][e]})):a[u];const y={window:f,width:i[0],height:i[1],samples:m,fillValue:g,pool:c,interleave:!1,signal:n.signal};bt(this.convertToRGB_,p)?s[u]=p.readRGB(y):s[u]=p.readRasters(y);const v=o+u,_=this.sourceMasks_[u][e];s[v]=_?_.readRasters({window:f,width:i[0],height:i[1],samples:[0],pool:c,interleave:!1}):Promise.resolve(null)}return Promise.all(s).then(this.composeTile_.bind(this,i)).catch((function(e){throw(0,vt.z3)(e),e}))}composeTile_(e,t){const r=this.metadata_,n=this.sourceInfo_,i=this.sourceImagery_.length,o=this.bandCount,s=this.samplesPerPixel_,a=this.nodataValues_,l=this.normalize_,c=this.addAlpha_,u=e[0]*e[1],h=u*o;let d;d=l?new Uint8Array(h):new Float32Array(h);let f=0;for(let e=0;e<u;++e){let o=c;for(let u=0;u<i;++u){const h=n[u];let m,g,y=h.min,v=h.max;if(l){const e=r[u][0];void 0===y&&(y=e&&Et in e?parseFloat(e[Et]):(p=t[u][0])instanceof Int8Array?-128:p instanceof Int16Array?-32768:p instanceof Int32Array?-2147483648:p instanceof Float32Array?12e-39:0),void 0===v&&(v=e&&wt in e?parseFloat(e[wt]):It(t[u][0])),m=255/(v-y),g=-y*m}for(let r=0;r<s[u];++r){const n=t[u][r][e];let i;if(i=l?(0,gt.qE)(m*n+g,0,255):n,c){let e=h.nodata;if(void 0===e){let t;t=h.bands?h.bands[r]-1:r,e=a[u][t]}const t=isNaN(e);(!t&&n!==e||t&&!isNaN(n))&&(o=!1,d[f]=i)}else d[f]=i;f++}if(!o){const r=t[i+u];r&&!r[0][e]&&(o=!0)}}c&&(o||(d[f]=255),f++)}var p;return d}}kt.prototype.getView;const Ft=kt},39895:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(24187),i=r(37283),o=r(39915),s=r(77032),a=r(35035),l=r(14695),c=r(2175);function u(e){return Array.isArray(e)?Math.min(...e):e}var h=r(44509),d=r(94456);class f extends s.Ay{constructor(e,t,r,n,i,s,u){let d=e.getExtent();d&&e.canWrapX()&&(d=d.slice(),d[0]=-1/0,d[2]=1/0);let f=t.getExtent();f&&t.canWrapX()&&(f=f.slice(),f[0]=-1/0,f[2]=1/0);const p=f?(0,h._N)(r,f):r,m=(0,h.q1)(p),g=(0,c.KQ)(e,t,m,n),y=a.l,v=new l.A(e,t,p,d,g*y,n),_=v.calculateSourceExtent(),b=(0,h.Im)(_)?null:s(_,g,i),w=b?o.A.IDLE:o.A.EMPTY,E=b?b.getPixelRatio():1;super(r,n,E,w),this.targetProj_=t,this.maxSourceExtent_=d,this.triangulation_=v,this.targetResolution_=n,this.targetExtent_=r,this.sourceImage_=b,this.sourcePixelRatio_=E,this.interpolate_=u,this.canvas_=null,this.sourceListenerKey_=null}disposeInternal(){this.state==o.A.LOADING&&this.unlistenSource_(),super.disposeInternal()}getImage(){return this.canvas_}getProjection(){return this.targetProj_}reproject_(){const e=this.sourceImage_.getState();if(e==o.A.LOADED){const e=(0,h.RG)(this.targetExtent_)/this.targetResolution_,t=(0,h.Oq)(this.targetExtent_)/this.targetResolution_;this.canvas_=(0,c.XX)(e,t,this.sourcePixelRatio_,u(this.sourceImage_.getResolution()),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_,!0)}this.state=e,this.changed()}load(){if(this.state==o.A.IDLE){this.state=o.A.LOADING,this.changed();const e=this.sourceImage_.getState();e==o.A.LOADED||e==o.A.ERROR?this.reproject_():(this.sourceListenerKey_=(0,d.KT)(this.sourceImage_,n.A.CHANGE,(e=>{const t=this.sourceImage_.getState();t!=o.A.LOADED&&t!=o.A.ERROR||(this.unlistenSource_(),this.reproject_())})),this.sourceImage_.load())}}unlistenSource_(){(0,d.JH)(this.sourceListenerKey_),this.sourceListenerKey_=null}}const p=f;var m=r(31274),g=r(72475),y=r(12940),v=r(30444);class _ extends i.Ay{constructor(e,t){super(e),this.image=t}}class b extends m.A{constructor(e){super({attributions:e.attributions,projection:e.projection,state:e.state,interpolate:void 0===e.interpolate||e.interpolate}),this.on,this.once,this.un,this.loader=e.loader||null,this.resolutions_=void 0!==e.resolutions?e.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0,this.image=null,this.wantedExtent_,this.wantedResolution_,this.static_=!!e.loader&&0===e.loader.length,this.wantedProjection_=null}getResolutions(){return this.resolutions_}setResolutions(e){this.resolutions_=e}findNearestResolution(e){const t=this.getResolutions();return t&&(e=t[(0,v.FT)(t,e,0)]),e}getImage(e,t,r,n){const i=this.getProjection();if(!i||!n||(0,y.tI)(i,n))return i&&(n=i),this.getImageInternal(e,t,r,n);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&(0,y.tI)(this.reprojectedImage_.getProjection(),n)&&this.reprojectedImage_.getResolution()==t&&(0,h.aI)(this.reprojectedImage_.getExtent(),e))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new p(i,n,e,t,r,((e,t,r)=>this.getImageInternal(e,t,r,i)),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}getImageInternal(e,t,r,i){if(this.loader){const o=function(e,t,r){const n=t/r,i=(0,h.q1)(e),o=(0,g.mk)((0,h.RG)(e)/n,4),s=(0,g.mk)((0,h.Oq)(e)/n,4),a=o+2*(0,g.mk)(0*o/2,4),l=s+2*(0,g.mk)(0*s/2,4);return(0,h.Bg)(i,n,0,[a,l])}(e,t,r),a=this.findNearestResolution(t);if(this.image&&(this.static_||this.wantedProjection_===i&&(this.wantedExtent_&&(0,h.ms)(this.wantedExtent_,o)||(0,h.ms)(this.image.getExtent(),o))&&(this.wantedResolution_&&u(this.wantedResolution_)===a||u(this.image.getResolution())===a)))return this.image;this.wantedProjection_=i,this.wantedExtent_=o,this.wantedResolution_=a,this.image=new s.Ay(o,a,r,this.loader),this.image.addEventListener(n.A.CHANGE,this.handleImageChange.bind(this))}return this.image}handleImageChange(e){const t=e.target;let r;switch(t.getState()){case o.A.LOADING:this.loading=!0,r="imageloadstart";break;case o.A.LOADED:this.loading=!1,r="imageloadend";break;case o.A.ERROR:this.loading=!1,r="imageloaderror";break;default:return}this.hasListener(r)&&this.dispatchEvent(new _(r,t))}}function w(e,t){e.getImage().src=t}const E=b,x=class extends E{constructor(e){const t=void 0!==e.crossOrigin?e.crossOrigin:null,r=void 0!==e.imageLoadFunction?e.imageLoadFunction:w;super({attributions:e.attributions,interpolate:e.interpolate,projection:(0,y.Jt)(e.projection)}),this.url_=e.url,this.imageExtent_=e.imageExtent,this.image=null,this.image=new s.Ay(this.imageExtent_,void 0,1,function(e){const t=e.load||s.D4,r=e.imageExtent,n=e.crossOrigin??null;return()=>{const i=new Image;return i.crossOrigin=n,t(i,e.url).then((e=>{const t=(0,h.RG)(r)/e.width,n=(0,h.Oq)(r)/e.height;return{image:e,extent:r,resolution:t!==n?[t,n]:n,pixelRatio:1}}))}}({url:e.url,imageExtent:e.imageExtent,crossOrigin:t,load:(e,t)=>(this.image.setImage(e),r(this.image,t),(0,s.D4)(e))})),this.image.addEventListener(n.A.CHANGE,this.handleImageChange.bind(this))}getImageExtent(){return this.imageExtent_}getImageInternal(e,t,r,n){return(0,h.HY)(e,this.image.getExtent())?this.image:null}getUrl(){return this.url_}}},83486:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(15159),i=r(44095);const o=new Error("Image failed to load");function s(e,t,r,n,s){return new Promise(((a,l)=>{const c=new Image;c.crossOrigin=s.crossOrigin??null,c.addEventListener("load",(()=>a(c))),c.addEventListener("error",(()=>l(o))),c.src=(0,i.M)(e,t,r,n,s.maxY)}))}function a(e){return function(t,r,n,o){return s((0,i.de)(e,t,r,n),t,r,n,o)}}function l(e){let t;if(Array.isArray(e))t=a(e);else if("string"==typeof e)t=a((0,i.Uu)(e));else{if("function"!=typeof e)throw new Error("The url option must be a single template, an array of templates, or a function for getting a URL");r=e,t=function(e,t,n,i){return s(r(e,t,n,i),e,t,n,i)}}var r;return t}let c=0;function u(e){return Array.isArray(e)?e.join("\n"):"string"==typeof e?e:(++c,"url-function-key-"+c)}class h extends n.A{constructor(e){let t,r=(e=e||{}).loader;e.url&&(r=l(e.url),t=u(e.url));const n=r?e.state:"loading",i=void 0===e.wrapX||e.wrapX;super({loader:r,key:t,attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize,gutter:e.gutter,maxResolution:e.maxResolution,projection:e.projection,tileGrid:e.tileGrid,state:n,wrapX:i,transition:e.transition,interpolate:!1!==e.interpolate,crossOrigin:e.crossOrigin})}setUrl(e){const t=l(e);this.setLoader(t),this.setKey(u(e)),"ready"!==this.getState()&&this.setState("ready")}}const d=h},31274:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(72614),i=r(12940);class o extends n.A{constructor(e){super(),this.projection=(0,i.Jt)(e.projection),this.attributions_=s(e.attributions),this.attributionsCollapsible_=e.attributionsCollapsible??!0,this.loading=!1,this.state_=void 0!==e.state?e.state:"ready",this.wrapX_=void 0!==e.wrapX&&e.wrapX,this.interpolate_=!!e.interpolate,this.viewResolver=null,this.viewRejector=null;const t=this;this.viewPromise_=new Promise((function(e,r){t.viewResolver=e,t.viewRejector=r}))}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(e){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(e){this.attributions_=s(e),this.changed()}setState(e){this.state_=e,this.changed()}}function s(e){return e?"function"==typeof e?e:(Array.isArray(e)||(e=[e]),t=>e):null}const a=o},17903:(e,t,r)=>{"use strict";r.d(t,{A:()=>p,c:()=>f});var n=r(37283),i=r(31274),o=r(35999),s=r(98629),a=r(30878),l=r(12940),c=r(32077),u=r(53908),h=r(80996);class d extends i.A{constructor(e){super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate}),this.on,this.once,this.un,this.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,this.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;this.tileGrid&&(0,u.xq)(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),[256,256]),this.tileCache=new o.A(e.cacheSize||0),this.tmpSize=[0,0],this.key_=e.key||"",this.tileOptions={transition:e.transition,interpolate:e.interpolate},this.zDirection=e.zDirection?e.zDirection:0}canExpireCache(){return this.tileCache.canExpireCache()}expireCache(e,t){const r=this.getTileCacheForProjection(e);r&&r.expireCache(t)}getGutterForProjection(e){return 0}getKey(){return this.key_}setKey(e){this.key_!==e&&(this.key_=e,this.changed())}getResolutions(e){const t=e?this.getTileGridForProjection(e):this.tileGrid;return t?t.getResolutions():null}getTile(e,t,r,n,i){return(0,s.b0)()}getTileGrid(){return this.tileGrid}getTileGridForProjection(e){return this.tileGrid?this.tileGrid:(0,c.pr)(e)}getTileCacheForProjection(e){const t=this.getProjection();return(0,a.v)(null===t||(0,l.tI)(t,e),"A VectorTile source can only be rendered if it has a projection compatible with the view projection."),this.tileCache}getTilePixelRatio(e){return this.tilePixelRatio_}getTilePixelSize(e,t,r){const n=this.getTileGridForProjection(r),i=this.getTilePixelRatio(t),o=(0,u.xq)(n.getTileSize(e),this.tmpSize);return 1==i?o:(0,u.hs)(o,i,this.tmpSize)}getTileCoordForTileUrlFunction(e,t){t=void 0!==t?t:this.getProjection();const r=this.getTileGridForProjection(t);return this.getWrapX()&&t.isGlobal()&&(e=(0,c.Li)(r,e,t)),(0,h.N5)(e,r)?e:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}useTile(e,t,r,n){}}class f extends n.Ay{constructor(e,t){super(e),this.tile=t}}const p=d},67663:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"}},27948:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(67663),i=r(17903),o=r(20884),s=r(72475),a=r(44095),l=r(80996);function c(e,t){return function(r,n,i){if(!r)return;let o;const s=r[0];if(t){const e=t.getFullTileRange(s);e&&(o=e.getHeight()-1)}return(0,a.M)(e,s,r[1],r[2],o)}}var u=r(98629);class h extends i.A{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===h.prototype.tileUrlFunction,this.tileLoadFunction=e.tileLoadFunction,e.tileUrlFunction&&(this.tileUrlFunction=e.tileUrlFunction),this.urls=null,e.urls?this.setUrls(e.urls):e.url&&this.setUrl(e.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(e){const t=e.target,r=(0,u.v6)(t),s=t.getState();let a;s==o.A.LOADING?(this.tileLoadingKeys_[r]=!0,a=n.A.TILELOADSTART):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],a=s==o.A.ERROR?n.A.TILELOADERROR:s==o.A.LOADED?n.A.TILELOADEND:void 0),null!=a&&this.dispatchEvent(new i.c(a,t))}setTileLoadFunction(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()}setTileUrlFunction(e,t){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),void 0!==t?this.setKey(t):this.changed()}setUrl(e){const t=(0,a.Uu)(e);this.urls=t,this.setUrls(t)}setUrls(e){this.urls=e;const t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(e,t){const r=e.length,n=new Array(r);for(let i=0;i<r;++i)n[i]=c(e[i],t);return function(e){return 1===e.length?e[0]:function(t,r,n){if(!t)return;const i=(0,l.tW)(t),o=(0,s.xP)(i,e.length);return e[o](t,r,n)}}(n)}(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,r){}useTile(e,t,r){const n=(0,l.dp)(e,t,r);this.tileCache.containsKey(n)&&this.tileCache.get(n)}}const d=h},90693:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(20489),i=r(45981),o=r(37283),s=r(24187),a=r(56644),l=r(44663),c=r(44509),u=r(98629),h=r(82048);const d=class{constructor(e){this.rbush_=new l.A(e),this.items_={}}insert(e,t){const r={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(r),this.items_[(0,u.v6)(t)]=r}load(e,t){const r=new Array(t.length);for(let n=0,i=t.length;n<i;n++){const i=e[n],o=t[n],s={minX:i[0],minY:i[1],maxX:i[2],maxY:i[3],value:o};r[n]=s,this.items_[(0,u.v6)(o)]=s}this.rbush_.load(r)}remove(e){const t=(0,u.v6)(e),r=this.items_[t];return delete this.items_[t],null!==this.rbush_.remove(r)}update(e,t){const r=this.items_[(0,u.v6)(t)],n=[r.minX,r.minY,r.maxX,r.maxY];(0,c.aI)(n,e)||(this.remove(t),this.insert(e,t))}getAll(){return this.rbush_.all().map((function(e){return e.value}))}getInExtent(e){const t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this.rbush_.search(t).map((function(e){return e.value}))}forEach(e){return this.forEach_(this.getAll(),e)}forEachInExtent(e,t){return this.forEach_(this.getInExtent(e),t)}forEach_(e,t){let r;for(let n=0,i=e.length;n<i;n++)if(r=t(e[n]),r)return r;return r}isEmpty(){return(0,h.p)(this.items_)}clear(){this.rbush_.clear(),this.items_={}}getExtent(e){const t=this.rbush_.toJSON();return(0,c.N)(t.minX,t.minY,t.maxX,t.maxY,e)}concat(e){this.rbush_.load(e.rbush_.all());for(const t in e.items_)this.items_[t]=e.items_[t]}};var f=r(28528),p=r(31274);const m="addfeature",g="removefeature";var y=r(97440);function v(e,t){return[[-1/0,-1/0,1/0,1/0]]}r(12940);var _=r(30878),b=r(30444),w=r(94456),E=r(64272);class x extends o.Ay{constructor(e,t,r){super(e),this.feature=t,this.features=r}}class S extends p.A{constructor(e){super({attributions:(e=e||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===e.wrapX||e.wrapX}),this.on,this.once,this.un,this.loader_=y.tV,this.format_=e.format||null,this.overlaps_=void 0===e.overlaps||e.overlaps,this.url_=e.url,void 0!==e.loader?this.loader_=e.loader:void 0!==this.url_&&((0,_.v)(this.format_,"`format` must be set when `url` is set"),this.loader_=(0,E.nF)(this.url_,this.format_)),this.strategy_=void 0!==e.strategy?e.strategy:v;const t=void 0===e.useSpatialIndex||e.useSpatialIndex;let r,i;this.featuresRtree_=t?new d:null,this.loadedExtentsRtree_=new d,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(e.features)?i=e.features:e.features&&(r=e.features,i=r.getArray()),t||void 0!==r||(r=new n.A(i)),void 0!==i&&this.addFeaturesInternal(i),void 0!==r&&this.bindFeaturesCollection_(r)}addFeature(e){this.addFeatureInternal(e),this.changed()}addFeatureInternal(e){const t=(0,u.v6)(e);if(!this.addToIndex_(t,e))return void(this.featuresCollection_&&this.featuresCollection_.remove(e));this.setupChangeEvents_(t,e);const r=e.getGeometry();if(r){const t=r.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(t,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new x(m,e))}setupChangeEvents_(e,t){t instanceof f.Ay||(this.featureChangeKeys_[e]=[(0,w.KT)(t,s.A.CHANGE,this.handleFeatureChange_,this),(0,w.KT)(t,a.A.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(e,t){let r=!0;if(void 0!==t.getId()){const e=String(t.getId());if(e in this.idIndex_)if(t instanceof f.Ay){const n=this.idIndex_[e];n instanceof f.Ay?Array.isArray(n)?n.push(t):this.idIndex_[e]=[n,t]:r=!1}else r=!1;else this.idIndex_[e]=t}return r&&((0,_.v)(!(e in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[e]=t),r}addFeatures(e){this.addFeaturesInternal(e),this.changed()}addFeaturesInternal(e){const t=[],r=[],n=[];for(let t=0,n=e.length;t<n;t++){const n=e[t],i=(0,u.v6)(n);this.addToIndex_(i,n)&&r.push(n)}for(let e=0,i=r.length;e<i;e++){const i=r[e],o=(0,u.v6)(i);this.setupChangeEvents_(o,i);const s=i.getGeometry();if(s){const e=s.getExtent();t.push(e),n.push(i)}else this.nullGeometryFeatures_[o]=i}if(this.featuresRtree_&&this.featuresRtree_.load(t,n),this.hasListener(m))for(let e=0,t=r.length;e<t;e++)this.dispatchEvent(new x(m,r[e]))}bindFeaturesCollection_(e){let t=!1;this.addEventListener(m,(function(r){t||(t=!0,e.push(r.feature),t=!1)})),this.addEventListener(g,(function(r){t||(t=!0,e.remove(r.feature),t=!1)})),e.addEventListener(i.A.ADD,(e=>{t||(t=!0,this.addFeature(e.element),t=!1)})),e.addEventListener(i.A.REMOVE,(e=>{t||(t=!0,this.removeFeature(e.element),t=!1)})),this.featuresCollection_=e}clear(e){if(e){for(const e in this.featureChangeKeys_)this.featureChangeKeys_[e].forEach(w.JH);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const e=e=>{this.removeFeatureInternal(e)};this.featuresRtree_.forEach(e);for(const e in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[e])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const t=new x("clear");this.dispatchEvent(t),this.changed()}forEachFeature(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureAtCoordinateDirect(e,t){const r=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(r,(function(r){const n=r.getGeometry();if(n instanceof f.Ay||n.intersectsCoordinate(e))return t(r)}))}forEachFeatureInExtent(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureIntersectingExtent(e,t){return this.forEachFeatureInExtent(e,(function(r){const n=r.getGeometry();if(n instanceof f.Ay||n.intersectsExtent(e)){const e=t(r);if(e)return e}}))}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),(0,h.p)(this.nullGeometryFeatures_)||(0,b.X$)(e,Object.values(this.nullGeometryFeatures_))),e}getFeaturesAtCoordinate(e){const t=[];return this.forEachFeatureAtCoordinateDirect(e,(function(e){t.push(e)})),t}getFeaturesInExtent(e,t){if(this.featuresRtree_){if(!(t&&t.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(e);const r=(0,c.QJ)(e,t);return[].concat(...r.map((e=>this.featuresRtree_.getInExtent(e))))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(e,t){const r=e[0],n=e[1];let i=null;const o=[NaN,NaN];let s=1/0;const a=[-1/0,-1/0,1/0,1/0];return t=t||y.rT,this.featuresRtree_.forEachInExtent(a,(function(e){if(t(e)){const t=e.getGeometry(),l=s;if(s=t instanceof f.Ay?0:t.closestPointXY(r,n,o,s),s<l){i=e;const t=Math.sqrt(s);a[0]=r-t,a[1]=n-t,a[2]=r+t,a[3]=n+t}}})),i}getExtent(e){return this.featuresRtree_.getExtent(e)}getFeatureById(e){const t=this.idIndex_[e.toString()];return void 0!==t?t:null}getFeatureByUid(e){const t=this.uidIndex_[e];return void 0!==t?t:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(e){const t=e.target,r=(0,u.v6)(t),n=t.getGeometry();if(n){const e=n.getExtent();r in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[r],this.featuresRtree_&&this.featuresRtree_.insert(e,t)):this.featuresRtree_&&this.featuresRtree_.update(e,t)}else r in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(t),this.nullGeometryFeatures_[r]=t);const i=t.getId();if(void 0!==i){const e=i.toString();this.idIndex_[e]!==t&&(this.removeFromIdIndex_(t),this.idIndex_[e]=t)}else this.removeFromIdIndex_(t),this.uidIndex_[r]=t;this.changed(),this.dispatchEvent(new x("changefeature",t))}hasFeature(e){const t=e.getId();return void 0!==t?t in this.idIndex_:(0,u.v6)(e)in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,h.p)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}loadFeatures(e,t,r){const n=this.loadedExtentsRtree_,i=this.strategy_(e,t,r);for(let e=0,o=i.length;e<o;++e){const o=i[e];n.forEachInExtent(o,(function(e){return(0,c.ms)(e.extent,o)}))||(++this.loadingExtentsCount_,this.dispatchEvent(new x("featuresloadstart")),this.loader_.call(this,o,t,r,(e=>{--this.loadingExtentsCount_,this.dispatchEvent(new x("featuresloadend",void 0,e))}),(()=>{--this.loadingExtentsCount_,this.dispatchEvent(new x("featuresloaderror"))})),n.insert(o,{extent:o.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(e){const t=this.loadedExtentsRtree_;let r;t.forEachInExtent(e,(function(t){if((0,c.aI)(t.extent,e))return r=t,!0})),r&&t.remove(r)}removeFeatures(e){let t=!1;for(let r=0,n=e.length;r<n;++r)t=this.removeFeatureInternal(e[r])||t;t&&this.changed()}removeFeature(e){e&&this.removeFeatureInternal(e)&&this.changed()}removeFeatureInternal(e){const t=(0,u.v6)(e);if(!(t in this.uidIndex_))return!1;t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e);const r=this.featureChangeKeys_[t];r?.forEach(w.JH),delete this.featureChangeKeys_[t];const n=e.getId();if(void 0!==n){const t=n.toString(),r=this.idIndex_[t];r===e?delete this.idIndex_[t]:Array.isArray(r)&&(r.splice(r.indexOf(e),1),1===r.length&&(this.idIndex_[t]=r[0]))}return delete this.uidIndex_[t],this.hasListener(g)&&this.dispatchEvent(new x(g,e)),!0}removeFromIdIndex_(e){for(const t in this.idIndex_)if(this.idIndex_[t]===e){delete this.idIndex_[t];break}}setLoader(e){this.loader_=e}setUrl(e){(0,_.v)(this.format_,"`format` must be set when `url` is set"),this.url_=e,this.setLoader((0,E.nF)(e,this.format_))}}const A=S},34633:(e,t,r)=>{"use strict";r.d(t,{A:()=>S});var n=r(24187),i=r(76741),o=r(20884);class s extends i.A{constructor(e,t,r,n,i,o){super(e,t,o),this.extent=null,this.format_=n,this.features_=null,this.loader_,this.projection=null,this.resolution,this.tileLoadFunction_=i,this.url_=r,this.key=r}getFormat(){return this.format_}getFeatures(){return this.features_}load(){this.state==o.A.IDLE&&(this.setState(o.A.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))}onLoad(e,t){this.setFeatures(e)}onError(){this.setState(o.A.ERROR)}setFeatures(e){this.features_=e,this.setState(o.A.LOADED)}setLoader(e){this.loader_=e}}const a=s;var l=r(35999),c=r(17668),u=r(27948),h=r(83085),d=r(98629);const f=[];class p extends i.A{constructor(e,t,r,n){super(e,t,{transition:0}),this.context_=null,this.executorGroups=[],this.loadingSourceTiles=0,this.hitDetectionImageData={},this.replayState_={},this.sourceTiles=[],this.errorTileKeys={},this.wantedResolution,this.getSourceTiles=n.bind(void 0,this),this.wrappedTileCoord=r}getContext(){return this.context_||(this.context_=(0,h.Y)(1,1,f)),this.context_}hasContext(){return!!this.context_}getImage(){return this.hasContext()?this.getContext().canvas:null}getReplayState(e){const t=(0,d.v6)(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]}load(){this.getSourceTiles()}release(){(0,h.Yg)(this.context_),f.push(this.context_.canvas),this.context_=null,super.release()}}const m=p;var g=r(75961),y=r(44509),v=r(32077),_=r(80996),b=r(82048),w=r(64272),E=r(53908);class x extends u.A{constructor(e){const t=e.projection||"EPSG:3857",r=e.extent||(0,v.kZ)(t),n=e.tileGrid||(0,v.EN)({extent:r,maxResolution:e.maxResolution,maxZoom:void 0!==e.maxZoom?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:n,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:A,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:void 0===e.zDirection?1:e.zDirection}),this.format_=e.format?e.format:null,this.sourceTileCache_=new l.A(128),this.overlaps_=null==e.overlaps||e.overlaps,this.tileClass=e.tileClass?e.tileClass:a,this.tileGrids_={}}getOverlaps(){return this.overlaps_}clear(){this.sourceTileCache_.clear()}expireCache(e,t){const r=this.getTileCacheForProjection(e),n=Object.keys(t).reduce(((e,t)=>{const n=(0,_.gr)(t),i=r.peek(n);if(i){const t=i.sourceTiles;for(let r=0,n=t.length;r<n;++r)e[t[r].getKey()]=!0}return e}),{});super.expireCache(e,t),this.sourceTileCache_.expireCache(n)}getSourceTiles(e,t,r){if(r.getState()===o.A.IDLE){r.setState(o.A.LOADING);const i=r.wrappedTileCoord,s=this.getTileGridForProjection(t),a=s.getTileCoordExtent(i),l=i[0],c=s.getResolution(l);(0,y.r)(a,-c,a);const u=this.tileGrid,h=u.getExtent();h&&(0,y._N)(a,h,a);const d=u.getZForResolution(c,this.zDirection);u.forEachTileCoord(a,d,(i=>{const s=this.tileUrlFunction(i,e,t),a=this.sourceTileCache_.containsKey(s)?this.sourceTileCache_.get(s):new this.tileClass(i,s?o.A.IDLE:o.A.EMPTY,s,this.format_,this.tileLoadFunction);r.sourceTiles.push(a);const l=a.getState();if(l<o.A.LOADED){const e=t=>{this.handleTileChange(t);const i=a.getState();if(i===o.A.LOADED||i===o.A.ERROR){const t=a.getKey();t in r.errorTileKeys?a.getState()===o.A.LOADED&&delete r.errorTileKeys[t]:r.loadingSourceTiles--,i===o.A.ERROR?r.errorTileKeys[t]=!0:a.removeEventListener(n.A.CHANGE,e),0===r.loadingSourceTiles&&r.setState((0,b.p)(r.errorTileKeys)?o.A.LOADED:o.A.ERROR)}};a.addEventListener(n.A.CHANGE,e),r.loadingSourceTiles++}l===o.A.IDLE&&(a.extent=u.getTileCoordExtent(i),a.projection=t,a.resolution=u.getResolution(i[0]),this.sourceTileCache_.set(s,a),a.load())})),r.loadingSourceTiles||r.setState(r.sourceTiles.some((e=>e.getState()===o.A.ERROR))?o.A.ERROR:o.A.LOADED)}return r.sourceTiles}getTile(e,t,r,n,i){const s=[e,t,r];let a=this.getTileCoordForTileUrlFunction(s,i);const l=this.getTileGrid().getExtent(),c=this.getTileGridForProjection(i);if(a&&l){const t=c.getTileCoordExtent(a);(0,y.r)(t,-c.getResolution(e),t),(0,y.HY)(l,t)||(a=null)}let u=!0;if(null!==a){const t=this.tileGrid,r=c.getResolution(e),o=t.getZForResolution(r,1),s=c.getTileCoordExtent(a);(0,y.r)(s,-r,s),t.forEachTileCoord(s,o,(e=>{u=u&&!this.tileUrlFunction(e,n,i)}))}const h=new m(s,u?o.A.EMPTY:o.A.IDLE,a,this.getSourceTiles.bind(this,n,i));return h.key=this.getKey(),h}getTileGridForProjection(e){const t=e.getCode();let r=this.tileGrids_[t];if(!r){const e=this.tileGrid,n=e.getResolutions().slice(),i=n.map((function(t,r){return e.getOrigin(r)})),o=n.map((function(t,r){return e.getTileSize(r)})),s=g.L+1;for(let e=n.length;e<s;++e)n.push(n[e-1]/2),i.push(i[e-1]),o.push(o[e-1]);r=new c.A({extent:e.getExtent(),origins:i,resolutions:n,tileSizes:o}),this.tileGrids_[t]=r}return r}getTilePixelRatio(e){return e}getTilePixelSize(e,t,r){const n=this.getTileGridForProjection(r),i=(0,E.xq)(n.getTileSize(e),this.tmpSize);return[Math.round(i[0]*t),Math.round(i[1]*t)]}}const S=x;function A(e,t){e.setLoader((function(r,n,i){(0,w.m8)(t,e.getFormat(),r,n,i,e.onLoad.bind(e),e.onError.bind(e))}))}},61691:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(24187),i=r(67564),o=r(84562),s=r(35999),a=r(20884),l=r(27948),c=r(12940),u=r(80996),h=r(32077),d=r(98629);class f extends l.A{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:p,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:void 0===e.interpolate||e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,this.tileClass=void 0!==e.tileClass?e.tileClass:i.A,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}canExpireCache(){if(this.tileCache.canExpireCache())return!0;for(const e in this.tileCacheForProjection)if(this.tileCacheForProjection[e].canExpireCache())return!0;return!1}expireCache(e,t){const r=this.getTileCacheForProjection(e);this.tileCache.expireCache(this.tileCache==r?t:{});for(const e in this.tileCacheForProjection){const n=this.tileCacheForProjection[e];n.expireCache(n==r?t:{})}}getGutterForProjection(e){return this.getProjection()&&e&&!(0,c.tI)(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||(0,c.tI)(t,e)))return this.tileGrid;const r=(0,d.v6)(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=(0,h.pr)(e)),this.tileGridForProjection[r]}getTileCacheForProjection(e){const t=this.getProjection();if(!t||(0,c.tI)(t,e))return this.tileCache;const r=(0,d.v6)(e);return r in this.tileCacheForProjection||(this.tileCacheForProjection[r]=new s.A(this.tileCache.highWaterMark)),this.tileCacheForProjection[r]}createTile_(e,t,r,i,o,s){const l=[e,t,r],c=this.getTileCoordForTileUrlFunction(l,o),u=c?this.tileUrlFunction(c,i,o):void 0,h=new this.tileClass(l,void 0!==u?a.A.IDLE:a.A.EMPTY,void 0!==u?u:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=s,h.addEventListener(n.A.CHANGE,this.handleTileChange.bind(this)),h}getTile(e,t,r,n,i){const s=this.getProjection();if(!s||!i||(0,c.tI)(s,i))return this.getTileInternal(e,t,r,n,s||i);const a=this.getTileCacheForProjection(i),l=[e,t,r];let h;const d=(0,u.i7)(l);a.containsKey(d)&&(h=a.get(d));const f=this.getKey();if(h&&h.key==f)return h;const p=this.getTileGridForProjection(s),m=this.getTileGridForProjection(i),g=this.getTileCoordForTileUrlFunction(l,i),y=new o.A(s,p,i,m,l,g,this.getTilePixelRatio(n),this.getGutter(),((e,t,r,n)=>this.getTileInternal(e,t,r,n,s)),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return y.key=f,h?a.replace(d,y):a.set(d,y),y}getTileInternal(e,t,r,n,i){const o=(0,u.dp)(e,t,r),s=this.getKey();if(!this.tileCache.containsKey(o)){const a=this.createTile_(e,t,r,n,i,s);return this.tileCache.set(o,a),a}let a=this.tileCache.get(o);return a.key!=s&&(a=this.createTile_(e,t,r,n,i,s),this.tileCache.replace(o,a)),a}setRenderReprojectionEdges(e){if(this.renderReprojectionEdges_!=e){this.renderReprojectionEdges_=e;for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}}setTileGridForProjection(e,t){const r=(0,c.Jt)(e);if(r){const e=(0,d.v6)(r);e in this.tileGridForProjection||(this.tileGridForProjection[e]=t)}}clear(){super.clear();for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear()}}function p(e,t){e.getImage().src=t}const m=f,g=class extends m{constructor(e){const t=void 0!==(e=e||{}).projection?e.projection:"EPSG:3857",r=void 0!==e.tileGrid?e.tileGrid:(0,h.EN)({extent:(0,h.kZ)(t),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:t,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:r,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=void 0!==e.gutter?e.gutter:0}getGutter(){return this.gutter_}}},98063:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(30878);const i=class{constructor(e){this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(e){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(e){return this.entries_.hasOwnProperty(e)}forEach(e){let t=this.oldest_;for(;t;)e(t.value_,t.key_,this),t=t.newer}get(e,t){const r=this.entries_[e];return(0,n.v)(void 0!==r,"Tried to get a value for a key that does not exist in the cache"),r===this.newest_||(r===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(r.newer.older=r.older,r.older.newer=r.newer),r.newer=null,r.older=this.newest_,this.newest_.newer=r,this.newest_=r),r.value_}remove(e){const t=this.entries_[e];return(0,n.v)(void 0!==t,"Tried to get a value for a key that does not exist in the cache"),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_}getCount(){return this.count_}getKeys(){const e=new Array(this.count_);let t,r=0;for(t=this.newest_;t;t=t.older)e[r++]=t.key_;return e}getValues(){const e=new Array(this.count_);let t,r=0;for(t=this.newest_;t;t=t.older)e[r++]=t.value_;return e}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(e){return this.entries_[e]?.value_}pop(){const 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_}replace(e,t){this.get(e),this.entries_[e].value_=t}set(e,t){(0,n.v)(!(e in this.entries_),"Tried to set a value for a key that is used already");const r={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[e]=r,++this.count_}setSize(e){this.highWaterMark=e}}},58471:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(89910);class i extends n.A{constructor(e){super({points:1/0,fill:(e=e||{radius:5}).fill,radius:e.radius,stroke:e.stroke,scale:void 0!==e.scale?e.scale:1,rotation:void 0!==e.rotation?e.rotation:0,rotateWithView:void 0!==e.rotateWithView&&e.rotateWithView,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode})}clone(){const e=this.getScale(),t=new i({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 t.setOpacity(this.getOpacity()),t}setRadius(e){this.radius=e,this.render()}}const o=i},21590:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(39915),i=r(98525);class o{constructor(e){e=e||{},this.patternImage_=null,this.color_=null,void 0!==e.color&&this.setColor(e.color)}clone(){const e=this.getColor();return new o({color:Array.isArray(e)?e.slice():e||void 0})}getColor(){return this.color_}setColor(e){if(null!==e&&"object"==typeof e&&"src"in e){const t=(0,i.J)(null,e.src,"anonymous",void 0,e.offset?null:e.color?e.color:null,!(e.offset&&e.size));t.ready().then((()=>{this.patternImage_=null})),t.getImageState()===n.A.IDLE&&t.load(),t.getImageState()===n.A.LOADING&&(this.patternImage_=t)}this.color_=e}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}const s=o},25174:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(24187),i=r(39915),o=r(51386),s=r(41009),a=r(30878),l=r(98525),c=r(98629);function u(e,t,r,n){return void 0!==r&&void 0!==n?[r/e,n/t]:void 0!==r?r/e:void 0!==n?n/t:1}class h extends o.A{constructor(e){const t=void 0!==(e=e||{}).opacity?e.opacity:1,r=void 0!==e.rotation?e.rotation:0,n=void 0!==e.scale?e.scale:1,o=void 0!==e.rotateWithView&&e.rotateWithView;super({opacity:t,rotation:r,scale:n,displacement:void 0!==e.displacement?e.displacement:[0,0],rotateWithView:o,declutterMode:e.declutterMode}),this.anchor_=void 0!==e.anchor?e.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==e.anchorOrigin?e.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==e.anchorXUnits?e.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==e.anchorYUnits?e.anchorYUnits:"fraction",this.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null;const h=void 0!==e.img?e.img:null;let d,f=e.src;if((0,a.v)(!(void 0!==f&&h),"`image` and `src` cannot be provided at the same time"),void 0!==f&&0!==f.length||!h||(f=h.src||(0,c.v6)(h)),(0,a.v)(void 0!==f&&f.length>0,"A defined and non-empty `src` or `image` must be provided"),(0,a.v)(!((void 0!==e.width||void 0!==e.height)&&void 0!==e.scale),"`width` or `height` cannot be provided together with `scale`"),void 0!==e.src?d=i.A.IDLE:void 0!==h&&(d="complete"in h?h.complete?h.src?i.A.LOADED:i.A.IDLE:i.A.LOADING:i.A.LOADED),this.color_=void 0!==e.color?(0,s._j)(e.color):null,this.iconImage_=(0,l.J)(h,f,this.crossOrigin_,d,this.color_),this.offset_=void 0!==e.offset?e.offset:[0,0],this.offsetOrigin_=void 0!==e.offsetOrigin?e.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==e.size?e.size:null,this.initialOptions_,void 0!==e.width||void 0!==e.height){let t,r;if(e.size)[t,r]=e.size;else{const n=this.getImage(1);if(n.width&&n.height)t=n.width,r=n.height;else if(n instanceof HTMLImageElement){this.initialOptions_=e;const t=()=>{if(this.unlistenImageChange(t),!this.initialOptions_)return;const r=this.iconImage_.getSize();this.setScale(u(r[0],r[1],e.width,e.height))};return void this.listenImageChange(t)}}void 0!==t&&this.setScale(u(t,r,e.width,e.height))}}clone(){let e,t,r;return this.initialOptions_?(t=this.initialOptions_.width,r=this.initialOptions_.height):(e=this.getScale(),e=Array.isArray(e)?e.slice():e),new h({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_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:e,width:t,height:r,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let e=this.normalizedAnchor_;if(!e){e=this.anchor_;const t=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!t)return null;e=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(e[0]*=t[0]),"fraction"==this.anchorYUnits_&&(e[1]*=t[1])}if("top-left"!=this.anchorOrigin_){if(!t)return null;e===this.anchor_&&(e=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(e[0]=-e[0]+t[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(e[1]=-e[1]+t[1])}this.normalizedAnchor_=e}const t=this.getDisplacement(),r=this.getScaleArray();return[e[0]-t[0]/r[0],e[1]+t[1]/r[1]]}setAnchor(e){this.anchor_=e,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(e){return this.iconImage_.getImage(e)}getPixelRatio(e){return this.iconImage_.getPixelRatio(e)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let e=this.offset_;if("top-left"!=this.offsetOrigin_){const t=this.getSize(),r=this.iconImage_.getSize();if(!t||!r)return null;e=e.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(e[0]=r[0]-t[0]-e[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(e[1]=r[1]-t[1]-e[1])}return this.origin_=e,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const e=this.getScaleArray();return this.size_?this.size_[0]*e[0]:this.iconImage_.getImageState()==i.A.LOADED?this.iconImage_.getSize()[0]*e[0]:void 0}getHeight(){const e=this.getScaleArray();return this.size_?this.size_[1]*e[1]:this.iconImage_.getImageState()==i.A.LOADED?this.iconImage_.getSize()[1]*e[1]:void 0}setScale(e){delete this.initialOptions_,super.setScale(e)}listenImageChange(e){this.iconImage_.addEventListener(n.A.CHANGE,e)}load(){this.iconImage_.load()}unlistenImageChange(e){this.iconImage_.removeEventListener(n.A.CHANGE,e)}ready(){return this.iconImage_.ready()}}const d=h},98525:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var n=r(91086),i=r(24187),o=r(39915),s=r(41009),a=r(83085),l=r(77032),c=r(67031);let u=null;class h extends n.A{constructor(e,t,r,n,i){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=r,this.canvas_={},this.color_=i,this.imageState_=void 0===n?o.A.IDLE:n,this.size_=e&&e.width&&e.height?[e.width,e.height]:null,this.src_=t,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===o.A.LOADED){u||(u=(0,a.Y)(1,1,void 0,{willReadFrequently:!0})),u.drawImage(this.image_,0,0);try{u.getImageData(0,0,1,1),this.tainted_=!1}catch(e){u=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(i.A.CHANGE)}handleImageError_(){this.imageState_=o.A.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=o.A.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(e){return this.image_||this.initializeImage_(),this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}getPixelRatio(e){return this.replaceColor_(e),this.canvas_[e]?e:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const e=this.size_[0],t=this.size_[1],r=(0,a.Y)(e,t);r.fillRect(0,0,e,t),this.hitDetectionImage_=r.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===o.A.IDLE){this.image_||this.initializeImage_(),this.imageState_=o.A.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch(e){this.handleImageError_()}this.image_ instanceof HTMLImageElement&&(0,l.RA)(this.image_,this.src_).then((e=>{this.image_=e,this.handleImageLoad_()})).catch(this.handleImageError_.bind(this))}}replaceColor_(e){if(!this.color_||this.canvas_[e]||this.imageState_!==o.A.LOADED)return;const t=this.image_,r=document.createElement("canvas");r.width=Math.ceil(t.width*e),r.height=Math.ceil(t.height*e);const n=r.getContext("2d");n.scale(e,e),n.drawImage(t,0,0),n.globalCompositeOperation="multiply",n.fillStyle=(0,s.oJ)(this.color_),n.fillRect(0,0,r.width/e,r.height/e),n.globalCompositeOperation="destination-in",n.drawImage(t,0,0),this.canvas_[e]=r}ready(){return this.ready_||(this.ready_=new Promise((e=>{if(this.imageState_===o.A.LOADED||this.imageState_===o.A.ERROR)e();else{const t=()=>{this.imageState_!==o.A.LOADED&&this.imageState_!==o.A.ERROR||(this.removeEventListener(i.A.CHANGE,t),e())};this.addEventListener(i.A.CHANGE,t)}}))),this.ready_}}function d(e,t,r,n,i,o){let s=void 0===t?void 0:c.ue.get(t,r,i);return s||(s=new h(e,e&&"src"in e?e.src||void 0:t,r,n,i),c.ue.set(t,r,i,s,o)),o&&s&&!c.ue.getPattern(t,r,i)&&c.ue.set(t,r,i,s,o),s}},67031:(e,t,r)=>{"use strict";r.d(t,{ue:()=>a});var n=r(39915),i=r(41009),o=r(83085);function s(e,t,r){return t+":"+e+":"+(r?(0,i._j)(r):"null")}const a=new class{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const t in this.cache_){const r=this.cache_[t];3&e++||r.hasListener()||(delete this.cache_[t],delete this.patternCache_[t],--this.cacheSize_)}}}get(e,t,r){const n=s(e,t,r);return n in this.cache_?this.cache_[n]:null}getPattern(e,t,r){const n=s(e,t,r);return n in this.patternCache_?this.patternCache_[n]:null}set(e,t,r,i,a){const l=s(e,t,r),c=l in this.cache_;this.cache_[l]=i,a&&(i.getImageState()===n.A.IDLE&&i.load(),i.getImageState()===n.A.LOADING?i.ready().then((()=>{this.patternCache_[l]=(0,o.lr)().createPattern(i.getImage(1),"repeat")})):this.patternCache_[l]=(0,o.lr)().createPattern(i.getImage(1),"repeat")),c||++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}}},51386:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(98629),i=r(53908);class o{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=(0,i.xq)(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new o({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return(0,n.b0)()}getImage(e){return(0,n.b0)()}getHitDetectionImage(){return(0,n.b0)()}getPixelRatio(e){return 1}getImageState(){return(0,n.b0)()}getImageSize(){return(0,n.b0)()}getOrigin(){return(0,n.b0)()}getSize(){return(0,n.b0)()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=(0,i.xq)(e)}listenImageChange(e){(0,n.b0)()}load(){(0,n.b0)()}unlistenImageChange(e){(0,n.b0)()}ready(){return Promise.resolve()}}const s=o},89910:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(39915),i=r(51386),o=r(41009),s=r(67029),a=r(83085),l=r(33976);class c extends i.A{constructor(e){super({opacity:1,rotateWithView:void 0!==e.rotateWithView&&e.rotateWithView,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode}),this.canvases_,this.hitDetectionCanvas_=null,this.fill_=void 0!==e.fill?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=void 0!==e.angle?e.angle:0,this.stroke_=void 0!==e.stroke?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?n.A.LOADING:n.A.LOADED,this.imageState_===n.A.LOADING&&this.ready().then((()=>this.imageState_=n.A.LOADED)),this.render()}clone(){const e=this.getScale(),t=new c({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 t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),r=this.getScaleArray();return[e[0]/2-t[0]/r[0],e[1]/2+t[1]/r[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){let t=this.canvases_[e];if(!t){const r=this.renderOptions_,n=(0,a.Y)(r.size*e,r.size*e);this.draw_(r,n,e),t=n.canvas,this.canvases_[e]=t}return t}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,r){if(0===t||this.points_===1/0||"bevel"!==e&&"miter"!==e)return t;let n=this.radius,i=void 0===this.radius2_?n:this.radius2_;if(n<i){const e=n;n=i,i=e}const o=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/o,a=i*Math.sin(s),l=n-Math.sqrt(i*i-a*a),c=Math.sqrt(a*a+l*l),u=c/a;if("miter"===e&&u<=r)return u*t;const h=t/2/u,d=t/2*(l/c),f=Math.sqrt((n+h)*(n+h)+d*d)-n;if(void 0===this.radius2_||"bevel"===e)return 2*f;const p=n*Math.sin(s),m=i-Math.sqrt(n*n-p*p),g=Math.sqrt(p*p+m*m)/p;if(g<=r){const e=g*t/2-i-n;return 2*Math.max(f,e)}return 2*f}createRenderOptions(){let e,t=l._m,r=l._K,n=0,i=null,o=0,a=0;this.stroke_&&(e=(0,s.F)(this.stroke_.getColor()??l.NT),a=this.stroke_.getWidth()??l.aq,i=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset()??0,r=this.stroke_.getLineJoin()??l._K,t=this.stroke_.getLineCap()??l._m,n=this.stroke_.getMiterLimit()??l.eL);const c=this.calculateLineJoinSize_(r,a,n),u=Math.max(this.radius,this.radius2_||0);return{strokeStyle:e,strokeWidth:a,size:Math.ceil(2*u+c),lineCap:t,lineDash:i,lineDashOffset:o,lineJoin:r,miterLimit:n}}render(){this.renderOptions_=this.createRenderOptions();const e=this.renderOptions_.size;this.canvases_={},this.hitDetectionCanvas_=null,this.size_=[e,e]}draw_(e,t,r){if(t.scale(r,r),t.translate(e.size/2,e.size/2),this.createPath_(t),this.fill_){let e=this.fill_.getColor();null===e&&(e=l.qY),t.fillStyle=(0,s.F)(e),t.fill()}e.strokeStyle&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())}createHitDetectionCanvas_(e){let t;if(this.fill_){let r=this.fill_.getColor(),n=0;"string"==typeof r&&(r=(0,o._j)(r)),null===r?n=1:Array.isArray(r)&&(n=4===r.length?r[3]:1),0===n&&(t=(0,a.Y)(e.size,e.size),this.drawHitDetectionCanvas_(e,t))}return t?t.canvas:this.getImage(1)}createPath_(e){let t=this.points_;const r=this.radius;if(t===1/0)e.arc(0,0,r,0,2*Math.PI);else{const n=void 0===this.radius2_?r:this.radius2_;void 0!==this.radius2_&&(t*=2);const i=this.angle_-Math.PI/2,o=2*Math.PI/t;for(let s=0;s<t;s++){const t=i+s*o,a=s%2==0?r:n;e.lineTo(a*Math.cos(t),a*Math.sin(t))}e.closePath()}}drawHitDetectionCanvas_(e,t){t.translate(e.size/2,e.size/2),this.createPath_(t),t.fillStyle=l.qY,t.fill(),e.strokeStyle&&(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())}ready(){return this.fill_?this.fill_.ready():Promise.resolve()}}const u=c},50207:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});class n{constructor(e){e=e||{},this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}clone(){const e=this.getColor();return new n({color:Array.isArray(e)?e.slice():e||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()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(e){this.color_=e}setLineCap(e){this.lineCap_=e}setLineDash(e){this.lineDash_=e}setLineDashOffset(e){this.lineDashOffset_=e}setLineJoin(e){this.lineJoin_=e}setMiterLimit(e){this.miterLimit_=e}setWidth(e){this.width_=e}}const i=n},78882:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d,d1:()=>u,mC:()=>l});var n=r(58471),i=r(21590),o=r(50207),s=r(30878);class a{constructor(e){e=e||{},this.geometry_=null,this.geometryFunction_=h,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}clone(){let e=this.getGeometry();return e&&"object"==typeof e&&(e=e.clone()),new a({geometry:e??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(e){this.renderer_=e}setHitDetectionRenderer(e){this.hitDetectionRenderer_=e}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(e){this.fill_=e}getImage(){return this.image_}setImage(e){this.image_=e}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e}getText(){return this.text_}setText(e){this.text_=e}getZIndex(){return this.zIndex_}setGeometry(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}setZIndex(e){this.zIndex_=e}}function l(e){let t;if("function"==typeof e)t=e;else{let r;Array.isArray(e)?r=e:((0,s.v)("function"==typeof e.getZIndex,"Expected an `Style` or an array of `Style`"),r=[e]),t=function(){return r}}return t}let c=null;function u(e,t){if(!c){const e=new i.A({color:"rgba(255,255,255,0.4)"}),t=new o.A({color:"#3399CC",width:1.25});c=[new a({image:new n.A({fill:e,stroke:t,radius:5}),fill:e,stroke:t})]}return c}function h(e){return e.getGeometry()}const d=a},80996:(e,t,r)=>{"use strict";function n(e,t,r,n){return void 0!==n?(n[0]=e,n[1]=t,n[2]=r,n):[e,t,r]}function i(e,t,r){return e+"/"+t+"/"+r}function o(e){return i(e[0],e[1],e[2])}function s(e){const[t,r,n]=e.substring(e.lastIndexOf("/")+1,e.length).split(",").map(Number);return i(t,r,n)}function a(e){return e.split("/").map(Number)}function l(e){return c(e[0],e[1],e[2])}function c(e,t,r){return(t<<e)+r}function u(e,t){const r=e[0],n=e[1],i=e[2];if(t.getMinZoom()>r||r>t.getMaxZoom())return!1;const o=t.getFullTileRange(r);return!o||o.containsXY(n,i)}r.d(t,{K:()=>a,N:()=>n,N5:()=>u,_T:()=>c,dp:()=>i,gr:()=>s,i7:()=>o,tW:()=>l})},32077:(e,t,r)=>{"use strict";r.d(t,{EN:()=>u,Li:()=>c,kZ:()=>d,pr:()=>l});var n=r(17668),i=r(75961),o=r(12940),s=r(44509),a=r(53908);function l(e){let t=e.getDefaultTileGrid();return t||(t=function(e){return function(e,t,r,i){i=void 0!==i?i:"top-left";const o=h(e,t,r);return new n.A({extent:e,origin:(0,s.qF)(e,i),resolutions:o,tileSize:r})}(d(e),void 0,void 0,void 0)}(e),e.setDefaultTileGrid(t)),t}function c(e,t,r){const n=t[0],i=e.getTileCoordCenter(t),o=d(r);if(!(0,s.Ym)(o,i)){const t=(0,s.RG)(o),r=Math.ceil((o[0]-i[0])/t);return i[0]+=t*r,e.getTileCoordForCoordAndZ(i,n)}return t}function u(e){const t=e||{},r=t.extent||(0,o.Jt)("EPSG:3857").getExtent(),i={extent:r,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:h(r,t.maxZoom,t.tileSize,t.maxResolution)};return new n.A(i)}function h(e,t,r,n){t=void 0!==t?t:i.L,r=(0,a.xq)(void 0!==r?r:i.R);const o=(0,s.Oq)(e),l=(0,s.RG)(e);n=n>0?n:Math.max(l/r[0],o/r[1]);const c=t+1,u=new Array(c);for(let e=0;e<c;++e)u[e]=n/Math.pow(2,e);return u}function d(e){let t=(e=(0,o.Jt)(e)).getExtent();if(!t){const r=180*o.Ig.degrees/e.getMetersPerUnit();t=(0,s.N)(-r,-r,r,r)}return t}},17668:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(64444),i=r(75961),o=r(30878),s=r(72475),a=r(44509),l=r(80996),c=r(78096),u=r(30444),h=r(53908);const d=[0,0,0],f=class{constructor(e){let t;if(this.minZoom=void 0!==e.minZoom?e.minZoom:0,this.resolutions_=e.resolutions,(0,o.v)((0,u.WC)(this.resolutions_,((e,t)=>t-e),!0),"`resolutions` must be sorted in descending order"),!e.origins)for(let e=0,r=this.resolutions_.length-1;e<r;++e)if(t){if(this.resolutions_[e]/this.resolutions_[e+1]!==t){t=void 0;break}}else t=this.resolutions_[e]/this.resolutions_[e+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,(0,o.v)(this.origins_.length==this.resolutions_.length,"Number of `origins` and `resolutions` must be equal"));const r=e.extent;void 0===r||this.origin_||this.origins_||(this.origin_=(0,a.Py)(r)),(0,o.v)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,"Either `origin` or `origins` must be configured, never both"),this.tileSizes_=null,void 0!==e.tileSizes&&(this.tileSizes_=e.tileSizes,(0,o.v)(this.tileSizes_.length==this.resolutions_.length,"Number of `tileSizes` and `resolutions` must be equal")),this.tileSize_=void 0!==e.tileSize?e.tileSize:this.tileSizes_?null:i.R,(0,o.v)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,"Either `tileSize` or `tileSizes` must be configured, never both"),this.extent_=void 0!==r?r:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==e.sizes?this.fullTileRanges_=e.sizes.map(((e,t)=>{const i=new n.A(Math.min(0,e[0]),Math.max(e[0]-1,-1),Math.min(0,e[1]),Math.max(e[1]-1,-1));if(r){const e=this.getTileRangeForExtentAndZ(r,t);i.minX=Math.max(e.minX,i.minX),i.maxX=Math.min(e.maxX,i.maxX),i.minY=Math.max(e.minY,i.minY),i.maxY=Math.min(e.maxY,i.maxY)}return i})):r&&this.calculateTileRanges_(r)}forEachTileCoord(e,t,r){const n=this.getTileRangeForExtentAndZ(e,t);for(let e=n.minX,i=n.maxX;e<=i;++e)for(let i=n.minY,o=n.maxY;i<=o;++i)r([t,e,i])}forEachTileCoordParentTileRange(e,t,r,i){let o,s,a,l=null,c=e[0]-1;for(2===this.zoomFactor_?(s=e[1],a=e[2]):l=this.getTileCoordExtent(e,i);c>=this.minZoom;){if(void 0!==s&&void 0!==a?(s=Math.floor(s/2),a=Math.floor(a/2),o=(0,n.N)(s,s,a,a,r)):o=this.getTileRangeForExtentAndZ(l,c,r),t(c,o))return!0;--c}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(e){return this.origin_?this.origin_:this.origins_[e]}getResolution(e){return this.resolutions_[e]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(e,t,r){if(e[0]<this.maxZoom){if(2===this.zoomFactor_){const r=2*e[1],i=2*e[2];return(0,n.N)(r,r+1,i,i+1,t)}const i=this.getTileCoordExtent(e,r||this.tmpExtent_);return this.getTileRangeForExtentAndZ(i,e[0]+1,t)}return null}getTileRangeForTileCoordAndZ(e,t,r){if(t>this.maxZoom||t<this.minZoom)return null;const i=e[0],o=e[1],s=e[2];if(t===i)return(0,n.N)(o,s,o,s,r);if(this.zoomFactor_){const e=Math.pow(this.zoomFactor_,t-i),a=Math.floor(o*e),l=Math.floor(s*e);if(t<i)return(0,n.N)(a,a,l,l,r);const c=Math.floor(e*(o+1))-1,u=Math.floor(e*(s+1))-1;return(0,n.N)(a,c,l,u,r)}const a=this.getTileCoordExtent(e,this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,t,r)}getTileRangeForExtentAndZ(e,t,r){this.getTileCoordForXYAndZ_(e[0],e[3],t,!1,d);const i=d[1],o=d[2];this.getTileCoordForXYAndZ_(e[2],e[1],t,!0,d);const s=d[1],a=d[2];return(0,n.N)(i,s,o,a,r)}getTileCoordCenter(e){const t=this.getOrigin(e[0]),r=this.getResolution(e[0]),n=(0,h.xq)(this.getTileSize(e[0]),this.tmpSize_);return[t[0]+(e[1]+.5)*n[0]*r,t[1]-(e[2]+.5)*n[1]*r]}getTileCoordExtent(e,t){const r=this.getOrigin(e[0]),n=this.getResolution(e[0]),i=(0,h.xq)(this.getTileSize(e[0]),this.tmpSize_),o=r[0]+e[1]*i[0]*n,s=r[1]-(e[2]+1)*i[1]*n,l=o+i[0]*n,c=s+i[1]*n;return(0,a.N)(o,s,l,c,t)}getTileCoordForCoordAndResolution(e,t,r){return this.getTileCoordForXYAndResolution_(e[0],e[1],t,!1,r)}getTileCoordForXYAndResolution_(e,t,r,n,i){const o=this.getZForResolution(r),a=r/this.getResolution(o),c=this.getOrigin(o),u=(0,h.xq)(this.getTileSize(o),this.tmpSize_);let d=a*(e-c[0])/r/u[0],f=a*(c[1]-t)/r/u[1];return n?(d=(0,s.mk)(d,5)-1,f=(0,s.mk)(f,5)-1):(d=(0,s.RI)(d,5),f=(0,s.RI)(f,5)),(0,l.N)(o,d,f,i)}getTileCoordForXYAndZ_(e,t,r,n,i){const o=this.getOrigin(r),a=this.getResolution(r),c=(0,h.xq)(this.getTileSize(r),this.tmpSize_);let u=(e-o[0])/a/c[0],d=(o[1]-t)/a/c[1];return n?(u=(0,s.mk)(u,5)-1,d=(0,s.mk)(d,5)-1):(u=(0,s.RI)(u,5),d=(0,s.RI)(d,5)),(0,l.N)(r,u,d,i)}getTileCoordForCoordAndZ(e,t,r){return this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,r)}getTileCoordResolution(e){return this.resolutions_[e[0]]}getTileSize(e){return this.tileSize_?this.tileSize_:this.tileSizes_[e]}getFullTileRange(e){return this.fullTileRanges_?this.fullTileRanges_[e]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,e):null}getZForResolution(e,t){const r=(0,u.FT)(this.resolutions_,e,t||0);return(0,s.qE)(r,this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(e,t){return(0,c.sj)(t,0,t.length,2,this.getTileCoordExtent(e))}calculateTileRanges_(e){const t=this.resolutions_.length,r=new Array(t);for(let n=this.minZoom;n<t;++n)r[n]=this.getTileRangeForExtentAndZ(e,n);this.fullTileRanges_=r}}},75961:(e,t,r)=>{"use strict";r.d(t,{L:()=>n,R:()=>i});const n=42,i=256},37377:(e,t,r)=>{"use strict";r.d(t,{Bb:()=>u,T9:()=>m,Tl:()=>f,Zz:()=>p,cL:()=>s,dI:()=>y,e$:()=>h,hs:()=>d,k3:()=>c,lw:()=>a,vt:()=>o});var n=r(30878);const i=new Array(6);function o(){return[1,0,0,1,0,0]}function s(e){return l(e,1,0,0,1,0,0)}function a(e,t){const r=e[0],n=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=t[0],c=t[1],u=t[2],h=t[3],d=t[4],f=t[5];return e[0]=r*l+i*c,e[1]=n*l+o*c,e[2]=r*u+i*h,e[3]=n*u+o*h,e[4]=r*d+i*f+s,e[5]=n*d+o*f+a,e}function l(e,t,r,n,i,o,s){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=o,e[5]=s,e}function c(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 u(e,t){const r=t[0],n=t[1];return t[0]=e[0]*r+e[2]*n+e[4],t[1]=e[1]*r+e[3]*n+e[5],t}function h(e,t){const r=Math.cos(t),n=Math.sin(t);return a(e,l(i,r,n,-n,r,0,0))}function d(e,t,r){return a(e,l(i,t,0,0,r,0,0))}function f(e,t,r){return a(e,l(i,1,0,0,1,t,r))}function p(e,t,r,n,i,o,s,a){const l=Math.sin(o),c=Math.cos(o);return e[0]=n*c,e[1]=i*l,e[2]=-n*l,e[3]=i*c,e[4]=s*n*c-a*n*l+t,e[5]=s*i*l+a*i*c+r,e}function m(e,t){const r=(i=t)[0]*i[3]-i[1]*i[2];var i;(0,n.v)(0!==r,"Transformation matrix cannot be inverted");const o=t[0],s=t[1],a=t[2],l=t[3],c=t[4],u=t[5];return e[0]=l/r,e[1]=-s/r,e[2]=-a/r,e[3]=o/r,e[4]=(a*u-l*c)/r,e[5]=-(o*u-s*c)/r,e}const g=[1e6,1e6,1e6,1e6,2,2];function y(e){return"matrix("+e.map(((e,t)=>Math.round(e*g[t])/g[t])).join(", ")+")"}},44095:(e,t,r)=>{"use strict";r.d(t,{M:()=>c,Uu:()=>h,de:()=>u});var n=r(80996),i=r(72475);const o=/\{z\}/g,s=/\{x\}/g,a=/\{y\}/g,l=/\{-y\}/g;function c(e,t,r,n,i){return e.replace(o,t.toString()).replace(s,r.toString()).replace(a,n.toString()).replace(l,(function(){if(void 0===i)throw new Error("If the URL template has a {-y} placeholder, the grid extent must be known");return(i-n).toString()}))}function u(e,t,r,o){const s=(0,n._T)(t,r,o);return e[(0,i.xP)(s,e.length)]}function h(e){const t=[];let r=/\{([a-z])-([a-z])\}/.exec(e);if(r){const n=r[1].charCodeAt(0),i=r[2].charCodeAt(0);let o;for(o=n;o<=i;++o)t.push(e.replace(r[0],String.fromCharCode(o)));return t}if(r=/\{(\d+)-(\d+)\}/.exec(e),r){const n=parseInt(r[2],10);for(let i=parseInt(r[1],10);i<=n;i++)t.push(e.replace(r[0],i.toString()));return t}return t.push(e),t}},98629:(e,t,r)=>{"use strict";function n(){throw new Error("Unimplemented abstract method.")}r.d(t,{b0:()=>n,v6:()=>o});let i=0;function o(e){return e.ol_uid||(e.ol_uid=String(++i))}},38286:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});const n=4294967296,i=1/n,o="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");class s{constructor(e=new Uint8Array(16)){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer),this.pos=0,this.type=0,this.length=this.buf.length}readFields(e,t,r=this.length){for(;this.pos<r;){const r=this.readVarint(),n=r>>3,i=this.pos;this.type=7&r,e(n,t,this),this.pos===i&&this.skip(r)}return t}readMessage(e,t){return this.readFields(e,t,this.readVarint()+this.pos)}readFixed32(){const e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){const e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){const e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*n;return this.pos+=8,e}readSFixed64(){const e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*n;return this.pos+=8,e}readFloat(){const e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){const e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){const t=this.buf;let r,n;return n=t[this.pos++],r=127&n,n<128?r:(n=t[this.pos++],r|=(127&n)<<7,n<128?r:(n=t[this.pos++],r|=(127&n)<<14,n<128?r:(n=t[this.pos++],r|=(127&n)<<21,n<128?r:(n=t[this.pos],r|=(15&n)<<28,function(e,t,r){const n=r.buf;let i,o;if(o=n[r.pos++],i=(112&o)>>4,o<128)return a(e,i,t);if(o=n[r.pos++],i|=(127&o)<<3,o<128)return a(e,i,t);if(o=n[r.pos++],i|=(127&o)<<10,o<128)return a(e,i,t);if(o=n[r.pos++],i|=(127&o)<<17,o<128)return a(e,i,t);if(o=n[r.pos++],i|=(127&o)<<24,o<128)return a(e,i,t);if(o=n[r.pos++],i|=(1&o)<<31,o<128)return a(e,i,t);throw new Error("Expected varint not more than 10 bytes")}(r,e,this)))))}readVarint64(){return this.readVarint(!0)}readSVarint(){const e=this.readVarint();return e%2==1?(e+1)/-2:e/2}readBoolean(){return Boolean(this.readVarint())}readString(){const e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&o?o.decode(this.buf.subarray(t,e)):function(e,t,r){let n="",i=t;for(;i<r;){const t=e[i];let o,s,a,l=null,c=t>239?4:t>223?3:t>191?2:1;if(i+c>r)break;1===c?t<128&&(l=t):2===c?(o=e[i+1],128==(192&o)&&(l=(31&t)<<6|63&o,l<=127&&(l=null))):3===c?(o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(l=(15&t)<<12|(63&o)<<6|63&s,(l<=2047||l>=55296&&l<=57343)&&(l=null))):4===c&&(o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&t)<<18|(63&o)<<12|(63&s)<<6|63&a,(l<=65535||l>=1114112)&&(l=null))),null===l?(l=65533,c=1):l>65535&&(l-=65536,n+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),n+=String.fromCharCode(l),i+=c}return n}(this.buf,t,e)}readBytes(){const e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t}readPackedVarint(e=[],t){const r=this.readPackedEnd();for(;this.pos<r;)e.push(this.readVarint(t));return e}readPackedSVarint(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readSVarint());return e}readPackedBoolean(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readBoolean());return e}readPackedFloat(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readFloat());return e}readPackedDouble(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readDouble());return e}readPackedFixed32(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readFixed32());return e}readPackedSFixed32(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readSFixed32());return e}readPackedFixed64(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readFixed64());return e}readPackedSFixed64(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readSFixed64());return e}readPackedEnd(){return 2===this.type?this.readVarint()+this.pos:this.pos+1}skip(e){const t=7&e;if(0===t)for(;this.buf[this.pos++]>127;);else if(2===t)this.pos=this.readVarint()+this.pos;else if(5===t)this.pos+=4;else{if(1!==t)throw new Error(`Unimplemented type: ${t}`);this.pos+=8}}writeTag(e,t){this.writeVarint(e<<3|t)}realloc(e){let t=this.length||16;for(;t<this.pos+e;)t*=2;if(t!==this.length){const e=new Uint8Array(t);e.set(this.buf),this.buf=e,this.dataView=new DataView(e.buffer),this.length=t}}finish(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)}writeFixed32(e){this.realloc(4),this.dataView.setInt32(this.pos,e,!0),this.pos+=4}writeSFixed32(e){this.realloc(4),this.dataView.setInt32(this.pos,e,!0),this.pos+=4}writeFixed64(e){this.realloc(8),this.dataView.setInt32(this.pos,-1&e,!0),this.dataView.setInt32(this.pos+4,Math.floor(e*i),!0),this.pos+=8}writeSFixed64(e){this.realloc(8),this.dataView.setInt32(this.pos,-1&e,!0),this.dataView.setInt32(this.pos+4,Math.floor(e*i),!0),this.pos+=8}writeVarint(e){(e=+e||0)>268435455||e<0?function(e,t){let r,n;if(e>=0?(r=e%4294967296|0,n=e/4294967296|0):(r=~(-e%4294967296),n=~(-e/4294967296),4294967295^r?r=r+1|0:(r=0,n=n+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,r){r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos]=127&e}(r,0,t),function(e,t){const r=(7&e)<<4;t.buf[t.pos++]|=r|((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)))))}(n,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(e){this.writeVarint(e<0?2*-e-1:2*e)}writeBoolean(e){this.writeVarint(+e)}writeString(e){e=String(e),this.realloc(4*e.length),this.pos++;const t=this.pos;this.pos=function(e,t,r){for(let n,i,o=0;o<t.length;o++){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!i){n>56319||o+1===t.length?(e[r++]=239,e[r++]=191,e[r++]=189):i=n;continue}if(n<56320){e[r++]=239,e[r++]=191,e[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(e[r++]=239,e[r++]=191,e[r++]=189,i=null);n<128?e[r++]=n:(n<2048?e[r++]=n>>6|192:(n<65536?e[r++]=n>>12|224:(e[r++]=n>>18|240,e[r++]=n>>12&63|128),e[r++]=n>>6&63|128),e[r++]=63&n|128)}return r}(this.buf,e,this.pos);const r=this.pos-t;r>=128&&l(t,r,this),this.pos=t-1,this.writeVarint(r),this.pos+=r}writeFloat(e){this.realloc(4),this.dataView.setFloat32(this.pos,e,!0),this.pos+=4}writeDouble(e){this.realloc(8),this.dataView.setFloat64(this.pos,e,!0),this.pos+=8}writeBytes(e){const t=e.length;this.writeVarint(t),this.realloc(t);for(let r=0;r<t;r++)this.buf[this.pos++]=e[r]}writeRawMessage(e,t){this.pos++;const r=this.pos;e(t,this);const n=this.pos-r;n>=128&&l(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n}writeMessage(e,t,r){this.writeTag(e,2),this.writeRawMessage(t,r)}writePackedVarint(e,t){t.length&&this.writeMessage(e,c,t)}writePackedSVarint(e,t){t.length&&this.writeMessage(e,u,t)}writePackedBoolean(e,t){t.length&&this.writeMessage(e,f,t)}writePackedFloat(e,t){t.length&&this.writeMessage(e,h,t)}writePackedDouble(e,t){t.length&&this.writeMessage(e,d,t)}writePackedFixed32(e,t){t.length&&this.writeMessage(e,p,t)}writePackedSFixed32(e,t){t.length&&this.writeMessage(e,m,t)}writePackedFixed64(e,t){t.length&&this.writeMessage(e,g,t)}writePackedSFixed64(e,t){t.length&&this.writeMessage(e,y,t)}writeBytesField(e,t){this.writeTag(e,2),this.writeBytes(t)}writeFixed32Field(e,t){this.writeTag(e,5),this.writeFixed32(t)}writeSFixed32Field(e,t){this.writeTag(e,5),this.writeSFixed32(t)}writeFixed64Field(e,t){this.writeTag(e,1),this.writeFixed64(t)}writeSFixed64Field(e,t){this.writeTag(e,1),this.writeSFixed64(t)}writeVarintField(e,t){this.writeTag(e,0),this.writeVarint(t)}writeSVarintField(e,t){this.writeTag(e,0),this.writeSVarint(t)}writeStringField(e,t){this.writeTag(e,2),this.writeString(t)}writeFloatField(e,t){this.writeTag(e,5),this.writeFloat(t)}writeDoubleField(e,t){this.writeTag(e,1),this.writeDouble(t)}writeBooleanField(e,t){this.writeVarintField(e,+t)}}function a(e,t,r){return r?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function l(e,t,r){const n=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));r.realloc(n);for(let t=r.pos-1;t>=e;t--)r.buf[t+n]=r.buf[t]}function c(e,t){for(let r=0;r<e.length;r++)t.writeVarint(e[r])}function u(e,t){for(let r=0;r<e.length;r++)t.writeSVarint(e[r])}function h(e,t){for(let r=0;r<e.length;r++)t.writeFloat(e[r])}function d(e,t){for(let r=0;r<e.length;r++)t.writeDouble(e[r])}function f(e,t){for(let r=0;r<e.length;r++)t.writeBoolean(e[r])}function p(e,t){for(let r=0;r<e.length;r++)t.writeFixed32(e[r])}function m(e,t){for(let r=0;r<e.length;r++)t.writeSFixed32(e[r])}function g(e,t){for(let r=0;r<e.length;r++)t.writeFixed64(e[r])}function y(e,t){for(let r=0;r<e.length;r++)t.writeSFixed64(e[r])}},39907:e=>{var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var a,l=[],c=!1,u=-1;function h(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&d())}function d(){if(!c){var e=s(h);c=!0;for(var t=l.length;t;){for(a=l,l=[];++u<t;)a&&a[u].run();u=-1,t=l.length}a=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return 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 p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||c||s(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},36999:(e,t,r)=>{"use strict";var n=r(36848);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},39067:(e,t,r)=>{e.exports=r(36999)()},36848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44663:(e,t,r)=>{"use strict";function n(e,t,r=0,s=e.length-1,a=o){for(;s>r;){if(s-r>600){const i=s-r+1,o=t-r+1,l=Math.log(i),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(i-c)/i)*(o-i/2<0?-1:1);n(e,t,Math.max(r,Math.floor(t-o*c/i+u)),Math.min(s,Math.floor(t+(i-o)*c/i+u)),a)}const o=e[t];let l=r,c=s;for(i(e,r,t),a(e[s],o)>0&&i(e,r,s);l<c;){for(i(e,l,c),l++,c--;a(e[l],o)<0;)l++;for(;a(e[c],o)>0;)c--}0===a(e[r],o)?i(e,r,c):(c++,i(e,c,s)),c<=t&&(r=c+1),t<=c&&(s=c-1)}}function i(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function o(e,t){return e<t?-1:e>t?1:0}r.d(t,{A:()=>s});class s{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const r=[];if(!y(e,t))return r;const n=this.toBBox,i=[];for(;t;){for(let o=0;o<t.children.length;o++){const s=t.children[o],a=t.leaf?n(s):s;y(e,a)&&(t.leaf?r.push(s):g(e,a)?this._all(s,r):i.push(s))}t=i.pop()}return r}collides(e){let t=this.data;if(!y(e,t))return!1;const r=[];for(;t;){for(let n=0;n<t.children.length;n++){const i=t.children[n],o=t.leaf?this.toBBox(i):i;if(y(e,o)){if(t.leaf||g(e,o))return!0;r.push(i)}}t=r.pop()}return!1}load(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(let t=0;t<e.length;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){const e=this.data;this.data=t,t=e}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this}insert(e){return e&&this._insert(e,this.data.height-1),this}clear(){return this.data=v([]),this}remove(e,t){if(!e)return this;let r=this.data;const n=this.toBBox(e),i=[],o=[];let s,l,c;for(;r||i.length;){if(r||(r=i.pop(),l=i[i.length-1],s=o.pop(),c=!0),r.leaf){const n=a(e,r.children,t);if(-1!==n)return r.children.splice(n,1),i.push(r),this._condense(i),this}c||r.leaf||!g(r,n)?l?(s++,r=l.children[s],c=!1):r=null:(i.push(r),o.push(s),s=0,l=r,r=r.children[0])}return this}toBBox(e){return e}compareMinX(e,t){return e.minX-t.minX}compareMinY(e,t){return e.minY-t.minY}toJSON(){return this.data}fromJSON(e){return this.data=e,this}_all(e,t){const r=[];for(;e;)e.leaf?t.push(...e.children):r.push(...e.children),e=r.pop();return t}_build(e,t,r,n){const i=r-t+1;let o,s=this._maxEntries;if(i<=s)return o=v(e.slice(t,r+1)),l(o,this.toBBox),o;n||(n=Math.ceil(Math.log(i)/Math.log(s)),s=Math.ceil(i/Math.pow(s,n-1))),o=v([]),o.leaf=!1,o.height=n;const a=Math.ceil(i/s),c=a*Math.ceil(Math.sqrt(s));_(e,t,r,c,this.compareMinX);for(let i=t;i<=r;i+=c){const t=Math.min(i+c-1,r);_(e,i,t,a,this.compareMinY);for(let r=i;r<=t;r+=a){const i=Math.min(r+a-1,t);o.children.push(this._build(e,r,i,n-1))}}return l(o,this.toBBox),o}_chooseSubtree(e,t,r,n){for(;n.push(t),!t.leaf&&n.length-1!==r;){let r,n=1/0,s=1/0;for(let a=0;a<t.children.length;a++){const l=t.children[a],c=f(l),u=(i=e,o=l,(Math.max(o.maxX,i.maxX)-Math.min(o.minX,i.minX))*(Math.max(o.maxY,i.maxY)-Math.min(o.minY,i.minY))-c);u<s?(s=u,n=c<n?c:n,r=l):u===s&&c<n&&(n=c,r=l)}t=r||t.children[0]}var i,o;return t}_insert(e,t,r){const n=r?e:this.toBBox(e),i=[],o=this._chooseSubtree(n,this.data,t,i);for(o.children.push(e),u(o,n);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(n,i,t)}_split(e,t){const r=e[t],n=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,n);const o=this._chooseSplitIndex(r,i,n),s=v(r.children.splice(o,r.children.length-o));s.height=r.height,s.leaf=r.leaf,l(r,this.toBBox),l(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(r,s)}_splitRoot(e,t){this.data=v([e,t]),this.data.height=e.height+1,this.data.leaf=!1,l(this.data,this.toBBox)}_chooseSplitIndex(e,t,r){let n,i=1/0,o=1/0;for(let s=t;s<=r-t;s++){const t=c(e,0,s,this.toBBox),a=c(e,s,r,this.toBBox),l=m(t,a),u=f(t)+f(a);l<i?(i=l,n=s,o=u<o?u:o):l===i&&u<o&&(o=u,n=s)}return n||r-t}_chooseSplitAxis(e,t,r){const n=e.leaf?this.compareMinX:h,i=e.leaf?this.compareMinY:d;this._allDistMargin(e,t,r,n)<this._allDistMargin(e,t,r,i)&&e.children.sort(n)}_allDistMargin(e,t,r,n){e.children.sort(n);const i=this.toBBox,o=c(e,0,t,i),s=c(e,r-t,r,i);let a=p(o)+p(s);for(let n=t;n<r-t;n++){const t=e.children[n];u(o,e.leaf?i(t):t),a+=p(o)}for(let n=r-t-1;n>=t;n--){const t=e.children[n];u(s,e.leaf?i(t):t),a+=p(s)}return a}_adjustParentBBoxes(e,t,r){for(let n=r;n>=0;n--)u(t[n],e)}_condense(e){for(let t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children,t.splice(t.indexOf(e[r]),1)):this.clear():l(e[r],this.toBBox)}}function a(e,t,r){if(!r)return t.indexOf(e);for(let n=0;n<t.length;n++)if(r(e,t[n]))return n;return-1}function l(e,t){c(e,0,e.children.length,t,e)}function c(e,t,r,n,i){i||(i=v(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let o=t;o<r;o++){const t=e.children[o];u(i,e.leaf?n(t):t)}return i}function u(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 h(e,t){return e.minX-t.minX}function d(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function m(e,t){const r=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,i-r)*Math.max(0,o-n)}function g(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function y(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function v(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(e,t,r,i,o){const s=[t,r];for(;s.length;){if((r=s.pop())-(t=s.pop())<=i)continue;const a=t+Math.ceil((r-t)/i/2)*i;n(e,a,t,r,o),s.push(t,a,a,r)}}},90320:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=(r&&Symbol.for("react.suspense_list"),r?Symbol.for("react.memo"):60115),m=r?Symbol.for("react.lazy"):60116;r&&Symbol.for("react.block"),r&&Symbol.for("react.fundamental"),r&&Symbol.for("react.responder"),r&&Symbol.for("react.scope");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case h:case o:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case p:case l:return e;default:return t}}case i:return t}}}t.isForwardRef=function(e){return g(e)===d},t.isMemo=function(e){return g(e)===p}},524:(e,t,r)=>{"use strict";e.exports=r(90320)},10646:e=>{"use strict";e.exports=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},43225:e=>{"use strict";e.exports=function(e){return"function"==typeof e}},50709:(e,t,r)=>{"use strict";var n=r(10646),i=r(70925);e.exports=function(e){var t;if(!n(e))return!1;if(!(t=e.length))return!1;for(var r=0;r<t;r++)if(!i(e[r]))return!1;return!0}},70925:(e,t,r)=>{"use strict";var n=r(72100);e.exports=function(e){return n(e)&&e%1==0}},72100:e=>{"use strict";e.exports=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()}},670:e=>{function t(e,t){const r=new RegExp(t,"g"),n=e.match(r);return n?n.length:0}e.exports=t,e.exports.default=t},34687:(e,t,r)=>{const n=r(31197),i=r(21453),o=r(670);function s(e,t,r){const s=r&&r.debug||!1,a=!(r&&!1===typeof r.nested),l=r&&r.startIndex||0;s&&console.log("[xml-utils] starting findTagByName with",t," and ",r);const c=n(e,`<${t}[ \n>/]`,l);if(s&&console.log("[xml-utils] start:",c),-1===c)return;const u=e.slice(c+t.length);let h=i(u,"^[^<]*[ /]>",0);const d=-1!==h&&"/"===u[h-1];if(s&&console.log("[xml-utils] selfClosing:",d),!1===d)if(a){let e=0,r=1,n=0;for(;-1!==(h=i(u,"[ /]"+t+">",e));){const i=u.substring(e,h+1);if(r+=o(i,"<"+t+"[ \n\t>]"),n+=o(i,"</"+t+">"),n>=r)break;e=h}}else h=i(u,"[ /]"+t+">",0);const f=c+t.length+h+1;if(s&&console.log("[xml-utils] end:",f),-1===f)return;const p=e.slice(c,f);let m;return m=d?null:p.slice(p.indexOf(">")+1,p.lastIndexOf("<")),{inner:m,outer:p,start:c,end:f}}e.exports=s,e.exports.default=s},91818:(e,t,r)=>{const n=r(34687);function i(e,t,r){const i=[],o=r&&r.debug||!1,s=!r||"boolean"!=typeof r.nested||r.nested;let a,l=r&&r.startIndex||0;for(;a=n(e,t,{debug:o,startIndex:l});)l=s?a.start+1+t.length:a.end,i.push(a);return o&&console.log("findTagsByName found",i.length,"tags"),i}e.exports=i,e.exports.default=i},96682:e=>{function t(e,t,r){const n=r&&r.debug||!1;n&&console.log("[xml-utils] getting "+t+" in "+e);const i="object"==typeof e?e.outer:e,o=i.slice(0,i.indexOf(">")+1),s=['"',"'"];for(let e=0;e<s.length;e++){const r=s[e],i=t+"\\="+r+"([^"+r+"]*)"+r;n&&console.log("[xml-utils] pattern:",i);const a=new RegExp(i).exec(o);if(n&&console.log("[xml-utils] match:",a),a)return a[1]}}e.exports=t,e.exports.default=t},21453:e=>{function t(e,t,r){const n=new RegExp(t).exec(e.slice(r));return n?r+n.index+n[0].length-1:-1}e.exports=t,e.exports.default=t},31197:e=>{function t(e,t,r){const n=new RegExp(t).exec(e.slice(r));return n?r+n.index:-1}e.exports=t,e.exports.default=t},32193:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=r(97719),i=r(38159),o=r(91944),s=r(34376),a=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends n.default{_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=r(55087);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var h=r(6394);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return h._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return h.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return h.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return h.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return h.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return h.CodeGen}});var d=r(99079);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=r(96516);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})},57213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class i extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let n=0;for(;n<t.length;)l(r,t[n]),r.push(e[++n]);return new i(r)}t._Code=i,t.nil=new i(""),t._=o;const s=new i("+");function a(e,...t){const r=[u(e[0])];let n=0;for(;n<t.length;)r.push(s),l(r,t[n]),r.push(s,u(e[++n]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===s){const r=c(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new i(r)}function l(e,t){var r;t instanceof i?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:u(Array.isArray(r)?r.join(","):r))}function c(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof n||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof n?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=a,t.addCodeArg=l,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:a`${e}${t}`},t.stringify=function(e){return new i(u(e))},t.safeStringify=u,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new i(`.${e}`):o`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new i(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new i(e.toString())}},6394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=r(57213),i=r(47314);var o=r(57213);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var s=r(47314);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class l extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const r=e?i.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=D(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class c extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=D(this.rhs,e,t),this}get names(){return R(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class u extends c{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class h extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=D(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class m extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const i=r[n];i.optimizeNames(e,t)||(I(e,i.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>O(e,t.names)),{})}}class g extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends m{}class v extends g{}v.kind="else";class _ extends g{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof _?t:t.nodes:this.nodes.length?this:new _(k(e),t instanceof _?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=D(this.condition,e,t),this}get names(){const e=super.names;return R(e,this.condition),this.else&&O(e,this.else.names),e}}_.kind="if";class b extends g{}b.kind="for";class w extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=D(this.iteration,e,t),this}get names(){return O(super.names,this.iteration.names)}}class E extends b{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:r,from:n,to:o}=this;return`for(${t} ${r}=${n}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){const e=R(super.names,this.from);return R(e,this.to)}}class x extends b{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=D(this.iterable,e,t),this}get names(){return O(super.names,this.iterable.names)}}class S extends g{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}S.kind="func";class A extends m{render(e){return"return "+super.render(e)}}A.kind="return";class T extends g{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&O(e,this.catch.names),this.finally&&O(e,this.finally.names),e}}class P extends g{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}P.kind="catch";class C extends g{render(e){return"finally"+super.render(e)}}function O(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function R(e,t){return t instanceof n._CodeOrName?O(e,t.names):e}function D(e,t,r){return e instanceof n.Name?o(e):(i=e)instanceof n._Code&&i._items.some((e=>e instanceof n.Name&&1===t[e.str]&&void 0!==r[e.str]))?new n._Code(e._items.reduce(((e,t)=>(t instanceof n.Name&&(t=o(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function I(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function k(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:n._`!${M(e)}`}C.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const i=this._scope.toName(t);return void 0!==r&&n&&(this._constants[i.str]=r),this._leafNode(new l(e,i,r)),i}const(e,t,r){return this._def(i.varKinds.const,e,t,r)}let(e,t,r){return this._def(i.varKinds.let,e,t,r)}var(e,t,r){return this._def(i.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new c(e,t,r))}add(e,r){return this._leafNode(new u(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new p(e)),this}object(...e){const t=["{"];for(const[r,i]of e)t.length>1&&t.push(","),t.push(r),(r!==i||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,i));return t.push("}"),new n._Code(t)}if(e,t,r){if(this._blockNode(new _(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new _(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(_,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new w(e),t)}forRange(e,t,r,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const s=this._scope.toName(e);return this._for(new E(o,s,t,r),(()=>n(s)))}forOf(e,t,r,o=i.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,n._`${e}.length`,(t=>{this.var(s,n._`${e}[${t}]`),r(s)}))}return this._for(new x("of",o,s,t),(()=>r(s)))}forIn(e,t,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,n._`Object.keys(${t})`,r);const s=this._scope.toName(e);return this._for(new x("in",o,s,t),(()=>r(s)))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new h(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new A;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(A)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new T;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new P(e),t(e)}return r&&(this._currNode=n.finally=new C,this.code(r)),this._endBlockNode(P,C)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,r,i){return this._blockNode(new S(e,t,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=k;const F=L(t.operators.AND);t.and=function(...e){return e.reduce(F)};const j=L(t.operators.OR);function L(e){return(t,r)=>t===n.nil?r:r===n.nil?t:n._`${M(t)} ${e} ${M(r)}`}function M(e){return e instanceof n.Name?e:n._`(${e})`}t.or=function(...e){return e.reduce(j)}},47314:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=r(57213);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o||(t.UsedValueState=o={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class s{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=s;class a extends n.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=n._`.${new n.Name(t)}[${r}]`}}t.ValueScopeName=a;const l=n._`\n`;t.ValueScope=class extends s{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?l:n.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:i}=n,o=null!==(r=t.key)&&void 0!==r?r:t.ref;let s=this._values[i];if(s){const e=s.get(o);if(e)return e}else s=this._values[i]=new Map;s.set(o,n);const a=this._scope[i]||(this._scope[i]=[]),l=a.length;return a[l]=t.ref,n.setValue(t,{property:i,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return n._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,s={},a){let l=n.nil;for(const c in e){const u=e[c];if(!u)continue;const h=s[c]=s[c]||new Map;u.forEach((e=>{if(h.has(e))return;h.set(e,o.Started);let s=r(e);if(s){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;l=n._`${l}${r} ${e} = ${s};${this.opts._n}`}else{if(!(s=null==a?void 0:a(e)))throw new i(e);l=n._`${l}${s}${this.opts._n}`}h.set(e,o.Completed)}))}return l}}},78705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=r(6394),i=r(88938),o=r(44);function s(e,t){const r=e.const("err",t);e.if(n._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,n._`[${r}]`)),n._`${o.default.vErrors}.push(${r})`),e.code(n._`${o.default.errors}++`)}function a(e,t){const{gen:r,validateName:i,schemaEnv:o}=e;o.$async?r.throw(n._`new ${e.ValidationError}(${t})`):(r.assign(n._`${i}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>n.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?n.str`"${e}" keyword must be ${t} ($data)`:n.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,i,o){const{it:l}=e,{gen:u,compositeRule:h,allErrors:d}=l,f=c(e,r,i);(null!=o?o:h||d)?s(u,f):a(l,n._`[${f}]`)},t.reportExtraError=function(e,r=t.keywordError,n){const{it:i}=e,{gen:l,compositeRule:u,allErrors:h}=i;s(l,c(e,r,n)),u||h||a(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(n._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(n._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:i,errsCount:s,it:a}){if(void 0===s)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",s,o.default.errors,(s=>{e.const(l,n._`${o.default.vErrors}[${s}]`),e.if(n._`${l}.instancePath === undefined`,(()=>e.assign(n._`${l}.instancePath`,(0,n.strConcat)(o.default.instancePath,a.errorPath)))),e.assign(n._`${l}.schemaPath`,n.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(n._`${l}.schema`,r),e.assign(n._`${l}.data`,i))}))};const l={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function c(e,t,r){const{createErrors:i}=e.it;return!1===i?n._`{}`:function(e,t,r={}){const{gen:i,it:s}=e,a=[u(s,r),h(e,r)];return function(e,{params:t,message:r},i){const{keyword:s,data:a,schemaValue:c,it:u}=e,{opts:h,propertyName:d,topSchemaRef:f,schemaPath:p}=u;i.push([l.keyword,s],[l.params,"function"==typeof t?t(e):t||n._`{}`]),h.messages&&i.push([l.message,"function"==typeof r?r(e):r]),h.verbose&&i.push([l.schema,c],[l.parentSchema,n._`${f}${p}`],[o.default.data,a]),d&&i.push([l.propertyName,d])}(e,t,a),i.object(...a)}(e,t,r)}function u({errorPath:e},{instancePath:t}){const r=t?n.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,r)]}function h({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:o}){let s=o?t:n.str`${t}/${e}`;return r&&(s=n.str`${s}${(0,i.getErrorPath)(r,i.Type.Str)}`),[l.schemaPath,s]}},13312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=r(6394),i=r(99079),o=r(44),s=r(51512),a=r(88938),l=r(55087);class c{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,s.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function u(e){const t=d.call(this,e);if(t)return t;const r=(0,s.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:c}=this.opts.code,{ownProperties:u}=this.opts,h=new n.CodeGen(this.scope,{es5:a,lines:c,ownProperties:u});let f;e.$async&&(f=h.scopeValue("Error",{ref:i.default,code:n._`require("ajv/dist/runtime/validation_error").default`}));const p=h.scopeName("validate");e.validateName=p;const m={gen:h,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:h.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:p,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:n._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(e),(0,l.validateFunctionCode)(m),h.optimize(this.opts.code.optimize);const t=h.toString();g=`${h.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(g=this.opts.code.process(g,e));const r=new Function(`${o.default.self}`,`${o.default.scope}`,g)(this,this.scope.get());if(this.scope.value(p,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:p,validateCode:t,scopeValues:h._values}),this.opts.unevaluated){const{props:e,items:t}=m;r.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},r.source&&(r.source.evaluated=(0,n.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),t}finally{this._compilations.delete(e)}}function h(e){return(0,s.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function d(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function f(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||p.call(this,e,t)}function p(e,t){const r=this.opts.uriResolver.parse(t),n=(0,s._getFullPath)(this.opts.uriResolver,r);let i=(0,s.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return g.call(this,r,e);const o=(0,s.normalizeId)(n),a=this.refs[o]||this.schemas[o];if("string"==typeof a){const t=p.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return g.call(this,r,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||u.call(this,a),o===(0,s.normalizeId)(t)){const{schema:t}=a,{schemaId:r}=this.opts,n=t[r];return n&&(i=(0,s.resolveUrl)(this.opts.uriResolver,i,n)),new c({schema:t,schemaId:r,root:e,baseId:i})}return g.call(this,r,a)}}t.SchemaEnv=c,t.compileSchema=u,t.resolveRef=function(e,t,r){var n;r=(0,s.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=f.call(this,e,r);if(void 0===o){const i=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:s}=this.opts;i&&(o=new c({schema:i,schemaId:s,root:e,baseId:t}))}return void 0!==o?e.refs[r]=h.call(this,o):void 0},t.getCompilingSchema=d,t.resolveSchema=p;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(e,{baseId:t,schema:r,root:n}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,a.unescapeFragment)(n)];if(void 0===e)return;const i="object"==typeof(r=e)&&r[this.opts.schemaId];!m.has(n)&&i&&(t=(0,s.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof r&&r.$ref&&!(0,a.schemaHasRulesButRef)(r,this.RULES)){const e=(0,s.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=p.call(this,n,e)}const{schemaId:l}=this.opts;return o=o||new c({schema:r,schemaId:l,root:n,baseId:t}),o.schema!==o.root.schema?o:void 0}},44:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=i},96516:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(51512);class i extends Error{constructor(e,t,r,i){super(i||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=i},51512:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=r(88938),i=r(38792),o=r(1645),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!l(e):!!t&&c(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(e){for(const t in e){if(a.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(l))return!0;if("object"==typeof r&&l(r))return!0}return!1}function c(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!s.has(r)&&("object"==typeof e[r]&&(0,n.eachItem)(e[r],(e=>t+=c(e))),t===1/0))return 1/0}return t}function u(e,t="",r){!1!==r&&(t=f(t));const n=e.parse(t);return h(e,n)}function h(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=h;const d=/#\/?$/;function f(e){return e?e.replace(d,""):""}t.normalizeId=f,t.resolveUrl=function(e,t,r){return r=f(r),e.resolve(t,r)};const p=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,s=f(e[r]||t),a={"":s},l=u(n,s,!1),c={},h=new Set;return o(e,{allKeys:!0},((e,t,n,i)=>{if(void 0===i)return;const o=l+t;let s=a[i];function u(t){const r=this.opts.uriResolver.resolve;if(t=f(s?r(s,t):t),h.has(t))throw m(t);h.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?d(e,n.schema,t):t!==f(o)&&("#"===t[0]?(d(e,c[t],t),c[t]=e):this.refs[t]=o),t}function g(e){if("string"==typeof e){if(!p.test(e))throw new Error(`invalid anchor "${e}"`);u.call(this,`#${e}`)}}"string"==typeof e[r]&&(s=u.call(this,e[r])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),a[t]=s})),c;function d(e,t,r){if(void 0!==t&&!i(e,t))throw m(r)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},78399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},88938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=r(6394),i=r(57213);function o(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const i=n.RULES.keywords;for(const r in t)i[r]||p(e,`unknown keyword: "${r}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function l(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function c({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:i}){return(o,s,a,l)=>{const c=void 0===a?s:a instanceof n.Name?(s instanceof n.Name?e(o,s,a):t(o,s,a),a):s instanceof n.Name?(t(o,a,s),s):r(s,a);return l!==n.Name||c instanceof n.Name?c:i(o,c)}}function u(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",n._`{}`);return void 0!==t&&h(e,r,t),r}function h(e,t,r){Object.keys(r).forEach((r=>e.assign(n._`${t}${(0,n.getProperty)(r)}`,!0)))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!s(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=s,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,i,o){if(!o){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return n._`${r}`}return n._`${e}${t}${(0,n.getProperty)(i)}`},t.unescapeFragment=function(e){return l(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.escapeJsonPointer=a,t.unescapeJsonPointer=l,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:c({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>{e.if(n._`${t} === true`,(()=>e.assign(r,!0)),(()=>e.assign(r,n._`${r} || {}`).code(n._`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>{!0===t?e.assign(r,!0):(e.assign(r,n._`${r} || {}`),h(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:c({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,n._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>e.assign(r,!0===t||n._`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=h;const d={};var f;function p(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:d[t.code]||(d[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(f||(t.Type=f={})),t.getErrorPath=function(e,t,r){if(e instanceof n.Name){const i=t===f.Num;return r?i?n._`"[" + ${e} + "]"`:n._`"['" + ${e} + "']"`:i?n._`"/" + ${e}`:n._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,n.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=p},27670:(e,t)=>{"use strict";function r(e,t){return t.rules.some((t=>n(e,t)))}function n(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},n){const i=t.RULES.types[n];return i&&!0!==i&&r(e,i)},t.shouldUseGroup=r,t.shouldUseRule=n},38012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=r(78705),i=r(6394),o=r(44),s={message:"boolean schema is false"};function a(e,t){const{gen:r,data:i}=e,o={gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,n.reportError)(o,s,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:n}=e;!1===r?a(e,!1):"object"==typeof r&&!0===r.$async?t.return(o.default.data):(t.assign(i._`${n}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),a(e)):r.var(t,!0)}},14939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=r(78399),i=r(27670),o=r(78705),s=r(6394),a=r(88938);var l;function c(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(l||(t.DataType=l={})),t.getSchemaTypes=function(e){const t=c(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=c,t.coerceAndCheckDataType=function(e,t){const{gen:r,data:n,opts:o}=e,a=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),c=t.length>0&&!(0===a.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(c){const i=d(t,n,o.strictNumbers,l.Wrong);r.if(i,(()=>{a.length?function(e,t,r){const{gen:n,data:i,opts:o}=e,a=n.let("dataType",s._`typeof ${i}`),l=n.let("coerced",s._`undefined`);"array"===o.coerceTypes&&n.if(s._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>n.assign(i,s._`${i}[0]`).assign(a,s._`typeof ${i}`).if(d(t,i,o.strictNumbers),(()=>n.assign(l,i))))),n.if(s._`${l} !== undefined`);for(const e of r)(u.has(e)||"array"===e&&"array"===o.coerceTypes)&&c(e);function c(e){switch(e){case"string":return void n.elseIf(s._`${a} == "number" || ${a} == "boolean"`).assign(l,s._`"" + ${i}`).elseIf(s._`${i} === null`).assign(l,s._`""`);case"number":return void n.elseIf(s._`${a} == "boolean" || ${i} === null
3
- || (${a} == "string" && ${i} && ${i} == +${i})`).assign(l,s._`+${i}`);case"integer":return void n.elseIf(s._`${a} === "boolean" || ${i} === null
4
- || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(l,s._`+${i}`);case"boolean":return void n.elseIf(s._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(l,!1).elseIf(s._`${i} === "true" || ${i} === 1`).assign(l,!0);case"null":return n.elseIf(s._`${i} === "" || ${i} === 0 || ${i} === false`),void n.assign(l,null);case"array":n.elseIf(s._`${a} === "string" || ${a} === "number"
5
- || ${a} === "boolean" || ${i} === null`).assign(l,s._`[${i}]`)}}n.else(),p(e),n.endIf(),n.if(s._`${l} !== undefined`,(()=>{n.assign(i,l),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(s._`${t} !== undefined`,(()=>e.assign(s._`${t}[${r}]`,n)))}(e,l)}))}(e,t,a):p(e)}))}return c};const u=new Set(["string","number","integer","boolean","null"]);function h(e,t,r,n=l.Correct){const i=n===l.Correct?s.operators.EQ:s.operators.NEQ;let o;switch(e){case"null":return s._`${t} ${i} null`;case"array":o=s._`Array.isArray(${t})`;break;case"object":o=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return s._`typeof ${t} ${i} ${e}`}return n===l.Correct?o:(0,s.not)(o);function a(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,r?s._`isFinite(${t})`:s.nil)}}function d(e,t,r,n){if(1===e.length)return h(e[0],t,r,n);let i;const o=(0,a.toHash)(e);if(o.array&&o.object){const e=s._`typeof ${t} != "object"`;i=o.null?e:s._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=s.nil;o.number&&delete o.integer;for(const e in o)i=(0,s.and)(i,h(e,t,r,n));return i}t.checkDataType=h,t.checkDataTypes=d;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function p(e){const t=function(e){const{gen:t,data:r,schema:n}=e,i=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}(e);(0,o.reportError)(t,f)}t.reportTypeError=p},63385:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const n=r(6394),i=r(88938);function o(e,t,r){const{gen:o,compositeRule:s,data:a,opts:l}=e;if(void 0===r)return;const c=n._`${a}${(0,n.getProperty)(t)}`;if(s)return void(0,i.checkStrictMode)(e,`default is ignored for: ${c}`);let u=n._`${c} === undefined`;"empty"===l.useDefaults&&(u=n._`${u} || ${c} === null || ${c} === ""`),o.if(u,n._`${c} = ${(0,n.stringify)(r)}`)}t.assignDefaults=function(e,t){const{properties:r,items:n}=e.schema;if("object"===t&&r)for(const t in r)o(e,t,r[t].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>o(e,r,t.default)))}},55087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=r(38012),i=r(14939),o=r(27670),s=r(14939),a=r(63385),l=r(39444),c=r(33210),u=r(6394),h=r(44),d=r(51512),f=r(88938),p=r(78705);function m({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,u._`${h.default.data}, ${h.default.valCxt}`,n.$async,(()=>{e.code(u._`"use strict"; ${g(r,i)}`),function(e,t){e.if(h.default.valCxt,(()=>{e.var(h.default.instancePath,u._`${h.default.valCxt}.${h.default.instancePath}`),e.var(h.default.parentData,u._`${h.default.valCxt}.${h.default.parentData}`),e.var(h.default.parentDataProperty,u._`${h.default.valCxt}.${h.default.parentDataProperty}`),e.var(h.default.rootData,u._`${h.default.valCxt}.${h.default.rootData}`),t.dynamicRef&&e.var(h.default.dynamicAnchors,u._`${h.default.valCxt}.${h.default.dynamicAnchors}`)}),(()=>{e.var(h.default.instancePath,u._`""`),e.var(h.default.parentData,u._`undefined`),e.var(h.default.parentDataProperty,u._`undefined`),e.var(h.default.rootData,h.default.data),t.dynamicRef&&e.var(h.default.dynamicAnchors,u._`{}`)}))}(e,i),e.code(o)})):e.func(t,u._`${h.default.data}, ${function(e){return u._`{${h.default.instancePath}="", ${h.default.parentData}, ${h.default.parentDataProperty}, ${h.default.rootData}=${h.default.data}${e.dynamicRef?u._`, ${h.default.dynamicAnchors}={}`:u.nil}}={}`}(i)}`,n.$async,(()=>e.code(g(r,i)).code(o)))}function g(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?u._`/*# sourceURL=${r} */`:u.nil}function y({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function _(e){(0,f.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function b(e,t){if(e.opts.jtd)return E(e,[],!1,t);const r=(0,i.getSchemaTypes)(e.schema);E(e,r,!(0,i.coerceAndCheckDataType)(e,r),t)}function w({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(!0===i.$comment)e.code(u._`${h.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const r=u.str`${n}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(u._`${h.default.self}.opts.$comment(${o}, ${r}, ${i}.schema)`)}}function E(e,t,r,n){const{gen:i,schema:a,data:l,allErrors:c,opts:d,self:p}=e,{RULES:m}=p;function g(f){(0,o.shouldUseGroup)(a,f)&&(f.type?(i.if((0,s.checkDataType)(f.type,l,d.strictNumbers)),x(e,f),1===t.length&&t[0]===f.type&&r&&(i.else(),(0,s.reportTypeError)(e)),i.endIf()):x(e,f),c||i.if(u._`${h.default.errors} === ${n||0}`))}!a.$ref||!d.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(a,m)?(d.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{S(e.dataTypes,t)||A(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)S(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&A(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:r}=i.definition;r.length&&!r.some((e=>{return n=e,(r=t).includes(n)||"number"===n&&r.includes("integer");var r,n}))&&A(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes))}(e,t),i.block((()=>{for(const e of m.rules)g(e);g(m.post)}))):i.block((()=>P(e,"$ref",m.all.$ref.definition)))}function x(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,a.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,o.shouldUseRule)(n,r)&&P(e,r.keyword,r.definition,t.type)}))}function S(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function A(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,f.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(_(e),y(e))?function(e){const{schema:t,opts:r,gen:n}=e;m(e,(()=>{r.$comment&&t.$comment&&w(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,f.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(h.default.vErrors,null),n.let(h.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",u._`${r}.evaluated`),t.if(u._`${e.evaluated}.dynamicProps`,(()=>t.assign(u._`${e.evaluated}.props`,u._`undefined`))),t.if(u._`${e.evaluated}.dynamicItems`,(()=>t.assign(u._`${e.evaluated}.items`,u._`undefined`)))}(e),b(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if(u._`${h.default.errors} === 0`,(()=>t.return(h.default.data)),(()=>t.throw(u._`new ${i}(${h.default.vErrors})`))):(t.assign(u._`${n}.errors`,h.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof u.Name&&e.assign(u._`${t}.props`,r),n instanceof u.Name&&e.assign(u._`${t}.items`,n)}(e),t.return(u._`${h.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,n.topBoolOrEmptySchema)(e)))};class T{constructor(e,t,r){if((0,l.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",R(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,l.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",h.default.errors))}result(e,t,r){this.failResult((0,u.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,u.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(u._`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=u.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:i,def:o}=this;r.if((0,u.or)(u._`${n} === undefined`,t)),e!==u.nil&&r.assign(e,!0),(i.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:i}=this;return(0,u.or)(function(){if(r.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return u._`${(0,s.checkDataTypes)(e,t,i.opts.strictNumbers,s.DataType.Wrong)}`}return u.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return u._`!${r}(${t})`}return u.nil}())}subschema(e,t){const r=(0,c.getSubschema)(this.it,e);(0,c.extendSubschemaData)(r,this.it,e),(0,c.extendSubschemaMode)(r,e);const i={...this.it,...r,items:void 0,props:void 0};return function(e,t){v(e)&&(_(e),y(e))?function(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&w(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=n.const("_errs",h.default.errors);b(e,o),n.var(t,u._`${o} === ${h.default.errors}`)}(e,t):(0,n.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=f.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=f.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function P(e,t,r,n){const i=new T(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,l.funcKeywordCode)(i,r):"macro"in r?(0,l.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,l.funcKeywordCode)(i,r)}t.KeywordCxt=T;const C=/^\/(?:[^~]|~0|~1)*$/,O=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function R(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(""===e)return h.default.rootData;if("/"===e[0]){if(!C.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=h.default.rootData}else{const s=O.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+s[1];if(i=s[2],"#"===i){if(a>=t)throw new Error(l("property/index",a));return n[t-a]}if(a>t)throw new Error(l("data",a));if(o=r[t-a],!i)return o}let s=o;const a=i.split("/");for(const e of a)e&&(o=u._`${o}${(0,u.getProperty)((0,f.unescapeJsonPointer)(e))}`,s=u._`${s} && ${o}`);return s;function l(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=R},39444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=r(6394),i=r(44),o=r(85154),s=r(78705);function a(e){const{gen:t,data:r,it:i}=e;t.if(i.parentData,(()=>t.assign(r,n._`${i.parentData}[${i.parentDataProperty}]`)))}function l(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:i,schema:o,parentSchema:s,it:a}=e,c=t.macro.call(a.self,o,s,a),u=l(r,i,c);!1!==a.opts.validateSchema&&a.self.validateSchema(c,!0);const h=r.name("valid");e.subschema({schema:c,schemaPath:n.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:u,compositeRule:!0},h),e.pass(h,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var r;const{gen:c,keyword:u,schema:h,parentSchema:d,$data:f,it:p}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(p,t);const m=!f&&t.compile?t.compile.call(p.self,h,d,p):t.validate,g=l(c,u,m),y=c.let("valid");function v(r=(t.async?n._`await `:n.nil)){const s=p.opts.passContext?i.default.this:i.default.self,a=!("compile"in t&&!f||!1===t.schema);c.assign(y,n._`${r}${(0,o.callValidateCode)(e,g,s,a)}`,t.modifying)}function _(e){var r;c.if((0,n.not)(null!==(r=t.valid)&&void 0!==r?r:y),e)}e.block$data(y,(function(){if(!1===t.errors)v(),t.modifying&&a(e),_((()=>e.error()));else{const r=t.async?function(){const e=c.let("ruleErrs",null);return c.try((()=>v(n._`await `)),(t=>c.assign(y,!1).if(n._`${t} instanceof ${p.ValidationError}`,(()=>c.assign(e,n._`${t}.errors`)),(()=>c.throw(t))))),e}():function(){const e=n._`${g}.errors`;return c.assign(e,null),v(n.nil),e}();t.modifying&&a(e),_((()=>function(e,t){const{gen:r}=e;r.if(n._`Array.isArray(${t})`,(()=>{r.assign(i.default.vErrors,n._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,n._`${i.default.vErrors}.length`),(0,s.extendErrors)(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:y)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(null==s?void 0:s.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},33210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=r(6394),i=r(88938);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:o,schemaPath:s,errSchemaPath:a,topSchemaRef:l}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===r?{schema:o,schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(r)}`}}if(void 0!==o){if(void 0===s||void 0===a||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:s,topSchemaRef:l,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:o,data:s,dataTypes:a,propertyName:l}){if(void 0!==s&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=t;if(void 0!==r){const{errorPath:s,dataPathArr:a,opts:l}=t;u(c.let("data",n._`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=n.str`${s}${(0,i.getErrorPath)(r,o,l.jsPropertySyntax)}`,e.parentDataProperty=n._`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}function u(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}void 0!==s&&(u(s instanceof n.Name?s:c.let("data",s,!0)),void 0!==l&&(e.propertyName=l)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){void 0!==n&&(e.compositeRule=n),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}},97719:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(55087);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var i=r(6394);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const o=r(99079),s=r(96516),a=r(78399),l=r(13312),c=r(6394),u=r(51512),h=r(14939),d=r(88938),f=r(69962),p=r(80655),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function b(e){var t,r,n,i,o,s,a,l,c,u,h,d,f,g,y,v,_,b,w,E,x,S,A,T,P;const C=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,R=!0===O||void 0===O?1:O||0,D=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:m,I=null!==(i=e.uriResolver)&&void 0!==i?i:p.default;return{strictSchema:null===(s=null!==(o=e.strictSchema)&&void 0!==o?o:C)||void 0===s||s,strictNumbers:null===(l=null!==(a=e.strictNumbers)&&void 0!==a?a:C)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:C)&&void 0!==u?u:"log",strictTuples:null!==(d=null!==(h=e.strictTuples)&&void 0!==h?h:C)&&void 0!==d?d:"log",strictRequired:null!==(g=null!==(f=e.strictRequired)&&void 0!==f?f:C)&&void 0!==g&&g,code:e.code?{...e.code,optimize:R,regExp:D}:{optimize:R,regExp:D},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(_=e.meta)||void 0===_||_,messages:null===(b=e.messages)||void 0===b||b,inlineRefs:null===(w=e.inlineRefs)||void 0===w||w,schemaId:null!==(E=e.schemaId)&&void 0!==E?E:"$id",addUsedSchema:null===(x=e.addUsedSchema)||void 0===x||x,validateSchema:null===(S=e.validateSchema)||void 0===S||S,validateFormats:null===(A=e.validateFormats)||void 0===A||A,unicodeRegExp:null===(T=e.unicodeRegExp)||void 0===T||T,int32range:null===(P=e.int32range)||void 0===P||P,uriResolver:I}}class w{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:y,es5:t,lines:r}),this.logger=function(e){if(!1===e)return C;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),E.call(this,v,e,"NOT SUPPORTED"),E.call(this,_,e,"DEPRECATED","warn"),this._metaOpts=P.call(this),e.formats&&A.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&T.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=f;"id"===r&&(n={...f},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await i.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||o.call(this,r)}async function i(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof s.default))throw t;return a.call(this,t),await l.call(this,t.missingSchema),o.call(this,e)}}function a({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await c.call(this,e);this.refs[e]||await i.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new l.SchemaEnv({schema:{},schemaId:r});if(t=l.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=x.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,u.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(R.call(this,r,t),!t)return(0,d.eachItem)(r,(e=>D.call(this,e))),this;k.call(this,t);const n={...t,type:(0,h.getJSONTypes)(t.type),schemaType:(0,h.getJSONTypes)(t.schemaType)};return(0,d.eachItem)(r,0===n.type.length?e=>D.call(this,e,n):e=>n.type.forEach((t=>D.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,o=i[e];n&&o&&(i[e]=j(o))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:s}=this.opts;if("object"==typeof e)o=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;r=(0,u.normalizeId)(o||r);const c=u.getSchemaRefs.call(this,e,r);return a=new l.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:c}),this._cache.set(a.schema,a),i&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=a),n&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):l.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,e)}finally{this.opts=t}}}function E(e,t,r,n="error"){for(const i in e){const o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}function x(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function A(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function T(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function P(){const e={...this.opts};for(const t of g)delete e[t];return e}w.ValidationError=o.default,w.MissingRefError=s.default,t.default=w;const C={log(){},warn(){},error(){}},O=/^[a-z_$][a-z0-9_$:-]*$/i;function R(e,t){const{RULES:r}=this;if((0,d.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function D(e,t,r){var n;const i=null==t?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let s=i?o.post:o.rules.find((({type:e})=>e===r));if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,h.getJSONTypes)(t.type),schemaType:(0,h.getJSONTypes)(t.schemaType)}};t.before?I.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function I(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function k(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=j(t)),e.validateSchema=this.compile(t,!0))}const F={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function j(e){return{anyOf:[e,F]}}},79781:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(38792);n.code='require("ajv/dist/runtime/equal").default',t.default=n},83252:(e,t)=>{"use strict";function r(e){const t=e.length;let r,n=0,i=0;for(;i<t;)n++,r=e.charCodeAt(i++),r>=55296&&r<=56319&&i<t&&(r=e.charCodeAt(i),56320==(64512&r)&&i++);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.code='require("ajv/dist/runtime/ucs2length").default'},80655:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(79639);n.code='require("ajv/dist/runtime/uri").default',t.default=n},99079:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},62338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const n=r(6394),i=r(88938),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?s(e,n):(0,i.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(e,t){const{gen:r,schema:o,data:s,keyword:a,it:l}=e;l.items=!0;const c=r.const("len",n._`${s}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(n._`${c} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(l,o)){const o=r.var("valid",n._`${c} <= ${t.length}`);r.if((0,n.not)(o),(()=>function(o){r.forRange("i",t.length,c,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:i.Type.Num},o),l.allErrors||r.if((0,n.not)(o),(()=>r.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=s,t.default=o},9865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(85154),i=r(6394),o=r(44),s=r(88938),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:a,data:l,errsCount:c,it:u}=e;if(!c)throw new Error("ajv implementation error");const{allErrors:h,opts:d}=u;if(u.props=!0,"all"!==d.removeAdditional&&(0,s.alwaysValidSchema)(u,r))return;const f=(0,n.allSchemaProperties)(a.properties),p=(0,n.allSchemaProperties)(a.patternProperties);function m(e){t.code(i._`delete ${l}[${e}]`)}function g(n){if("all"===d.removeAdditional||d.removeAdditional&&!1===r)m(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(h||t.break());if("object"==typeof r&&!(0,s.alwaysValidSchema)(u,r)){const r=t.name("valid");"failing"===d.removeAdditional?(y(n,r,!1),t.if((0,i.not)(r),(()=>{e.reset(),m(n)}))):(y(n,r),h||t.if((0,i.not)(r),(()=>t.break())))}}}function y(t,r,n){const i={keyword:"additionalProperties",dataProp:t,dataPropType:s.Type.Str};!1===n&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,r)}t.forIn("key",l,(r=>{f.length||p.length?t.if(function(r){let o;if(f.length>8){const e=(0,s.schemaRefOrVal)(u,a.properties,"properties");o=(0,n.isOwnProperty)(t,e,r)}else o=f.length?(0,i.or)(...f.map((e=>i._`${r} === ${e}`))):i.nil;return p.length&&(o=(0,i.or)(o,...p.map((t=>i._`${(0,n.usePattern)(e,t)}.test(${r})`)))),(0,i.not)(o)}(r),(()=>g(r))):g(r)})),e.ok(i._`${c} === ${o.default.errors}`)}};t.default=a},39051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(88938),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(i,t))return;const s=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(s)}))}};t.default=i},58326:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(85154).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=n},38108:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i=r(88938),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?n.str`must contain at least ${e} valid item(s)`:n.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?n._`{minContains: ${e}}`:n._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:o,data:s,it:a}=e;let l,c;const{minContains:u,maxContains:h}=o;a.opts.next?(l=void 0===u?1:u,c=h):l=1;const d=t.const("len",n._`${s}.length`);if(e.setParams({min:l,max:c}),void 0===c&&0===l)return void(0,i.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==c&&l>c)return(0,i.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(a,r)){let t=n._`${d} >= ${l}`;return void 0!==c&&(t=n._`${t} && ${d} <= ${c}`),void e.pass(t)}a.items=!0;const f=t.name("valid");function p(){const e=t.name("_valid"),r=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(n._`${e}++`),void 0===c?t.if(n._`${e} >= ${l}`,(()=>t.assign(f,!0).break())):(t.if(n._`${e} > ${c}`,(()=>t.assign(f,!1).break())),1===l?t.assign(f,!0):t.if(n._`${e} >= ${l}`,(()=>t.assign(f,!0))))}(r)))))}function m(r,n){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},r),n()}))}void 0===c&&1===l?m(f,(()=>t.if(f,(()=>t.break())))):0===l?(t.let(f,!0),void 0!==c&&t.if(n._`${s}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,(()=>e.reset()))}};t.default=o},64076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=r(6394),i=r(88938),o=r(85154);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const i=1===t?"property":"properties";return n.str`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:i}})=>n._`{property: ${e},
6
- missingProperty: ${i},
7
- depsCount: ${t},
8
- deps: ${r}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e)"__proto__"!==n&&((Array.isArray(e[n])?t:r)[n]=e[n]);return[t,r]}(e);a(e,t),l(e,r)}};function a(e,t=e.schema){const{gen:r,data:i,it:s}=e;if(0===Object.keys(t).length)return;const a=r.let("missing");for(const l in t){const c=t[l];if(0===c.length)continue;const u=(0,o.propertyInData)(r,i,l,s.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),s.allErrors?r.if(u,(()=>{for(const t of c)(0,o.checkReportMissingProp)(e,t)})):(r.if(n._`${u} && (${(0,o.checkMissingProp)(e,c,a)})`),(0,o.reportMissingProp)(e,a),r.else())}}function l(e,t=e.schema){const{gen:r,data:n,keyword:s,it:a}=e,l=r.name("valid");for(const c in t)(0,i.alwaysValidSchema)(a,t[c])||(r.if((0,o.propertyInData)(r,n,c,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:s,schemaProp:c},l);e.mergeValidEvaluated(t,l)}),(()=>r.var(l,!0))),e.ok(l))}t.validatePropertyDeps=a,t.validateSchemaDeps=l,t.default=s},254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i=r(88938),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>n.str`must match "${e.ifClause}" schema`,params:({params:e})=>n._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:o}=e;void 0===r.then&&void 0===r.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const a=s(o,"then"),l=s(o,"else");if(!a&&!l)return;const c=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),a&&l){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(u,h("then",r),h("else",r))}else a?t.if(u,h("then")):t.if((0,n.not)(u),h("else"));function h(r,i){return()=>{const o=e.subschema({keyword:r},u);t.assign(c,u),e.mergeValidEvaluated(o,c),i?t.assign(i,n._`${r}`):e.setParams({ifClause:r})}}e.pass(c,(()=>e.error(!0)))}};function s(e,t){const r=e.schema[t];return void 0!==r&&!(0,i.alwaysValidSchema)(e,r)}t.default=o},36481:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62338),i=r(68981),o=r(74761),s=r(6297),a=r(38108),l=r(64076),c=r(77998),u=r(9865),h=r(53052),d=r(74950),f=r(9900),p=r(58326),m=r(8192),g=r(39051),y=r(254),v=r(34167);t.default=function(e=!1){const t=[f.default,p.default,m.default,g.default,y.default,v.default,c.default,u.default,l.default,h.default,d.default];return e?t.push(i.default,s.default):t.push(n.default,o.default),t.push(a.default),t}},74761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const n=r(6394),i=r(88938),o=r(85154),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return a(e,"additionalItems",t);r.items=!0,(0,i.alwaysValidSchema)(r,t)||e.ok((0,o.validateArray)(e))}};function a(e,t,r=e.schema){const{gen:o,parentSchema:s,data:a,keyword:l,it:c}=e;!function(e){const{opts:n,errSchemaPath:o}=c,s=r.length,a=s===e.minItems&&(s===e.maxItems||!1===e[t]);if(n.strictTuples&&!a){const e=`"${l}" is ${s}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(c,e,n.strictTuples)}}(s),c.opts.unevaluated&&r.length&&!0!==c.items&&(c.items=i.mergeEvaluated.items(o,r.length,c.items));const u=o.name("valid"),h=o.const("len",n._`${a}.length`);r.forEach(((t,r)=>{(0,i.alwaysValidSchema)(c,t)||(o.if(n._`${h} > ${r}`,(()=>e.subschema({keyword:l,schemaProp:r,dataProp:r},u))),e.ok(u))}))}t.validateTuple=a,t.default=s},6297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i=r(88938),o=r(85154),s=r(62338),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:a}=r;n.items=!0,(0,i.alwaysValidSchema)(n,t)||(a?(0,s.validateAdditionalItems)(e,a):e.ok((0,o.validateArray)(e)))}};t.default=a},9900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(88938),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:i}=e;if((0,n.alwaysValidSchema)(i,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},8192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i=r(88938),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>n._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:o,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&o.discriminator)return;const a=r,l=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block((function(){a.forEach(((r,o)=>{let a;(0,i.alwaysValidSchema)(s,r)?t.var(u,!0):a=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},u),o>0&&t.if(n._`${u} && ${l}`).assign(l,!1).assign(c,n._`[${c}, ${o}]`).else(),t.if(u,(()=>{t.assign(l,!0),t.assign(c,o),a&&e.mergeEvaluated(a,n.Name)}))}))})),e.result(l,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},74950:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(85154),i=r(6394),o=r(88938),s=r(88938),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:a,parentSchema:l,it:c}=e,{opts:u}=c,h=(0,n.allSchemaProperties)(r),d=h.filter((e=>(0,o.alwaysValidSchema)(c,r[e])));if(0===h.length||d.length===h.length&&(!c.opts.unevaluated||!0===c.props))return;const f=u.strictSchema&&!u.allowMatchingProperties&&l.properties,p=t.name("valid");!0===c.props||c.props instanceof i.Name||(c.props=(0,s.evaluatedPropsToName)(t,c.props));const{props:m}=c;function g(e){for(const t in f)new RegExp(e).test(t)&&(0,o.checkStrictMode)(c,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(r){t.forIn("key",a,(o=>{t.if(i._`${(0,n.usePattern)(e,r)}.test(${o})`,(()=>{const n=d.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:o,dataPropType:s.Type.Str},p),c.opts.unevaluated&&!0!==m?t.assign(i._`${m}[${o}]`,!0):n||c.allErrors||t.if((0,i.not)(p),(()=>t.break()))}))}))}!function(){for(const e of h)f&&g(e),c.allErrors?y(e):(t.var(p,!0),y(e),t.if(p))}()}};t.default=a},68981:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(74761),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t.default=i},53052:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(55087),i=r(85154),o=r(88938),s=r(9865),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:a,data:l,it:c}=e;"all"===c.opts.removeAdditional&&void 0===a.additionalProperties&&s.default.code(new n.KeywordCxt(c,s.default,"additionalProperties"));const u=(0,i.allSchemaProperties)(r);for(const e of u)c.definedProperties.add(e);c.opts.unevaluated&&u.length&&!0!==c.props&&(c.props=o.mergeEvaluated.props(t,(0,o.toHash)(u),c.props));const h=u.filter((e=>!(0,o.alwaysValidSchema)(c,r[e])));if(0===h.length)return;const d=t.name("valid");for(const r of h)f(r)?p(r):(t.if((0,i.propertyInData)(t,l,r,c.opts.ownProperties)),p(r),c.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(d);function f(e){return c.opts.useDefaults&&!c.compositeRule&&void 0!==r[e].default}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=a},77998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i=r(88938),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>n._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:o,it:s}=e;if((0,i.alwaysValidSchema)(s,r))return;const a=t.name("valid");t.forIn("key",o,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,n.not)(a),(()=>{e.error(!0),s.allErrors||t.break()}))})),e.ok(a)}};t.default=o},34167:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(88938),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t.default=i},85154:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=r(6394),i=r(88938),o=r(44),s=r(88938);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:n._`Object.prototype.hasOwnProperty`})}function l(e,t,r){return n._`${a(e)}.call(${t}, ${r})`}function c(e,t,r,i){const o=n._`${t}${(0,n.getProperty)(r)} === undefined`;return i?(0,n.or)(o,(0,n.not)(l(e,t,r))):o}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:i,it:o}=e;r.if(c(r,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:n._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},i,o){return(0,n.or)(...i.map((i=>(0,n.and)(c(e,t,i,r.ownProperties),n._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=l,t.propertyInData=function(e,t,r,i){const o=n._`${t}${(0,n.getProperty)(r)} !== undefined`;return i?n._`${o} && ${l(e,t,r)}`:o},t.noPropertyInData=c,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((r=>!(0,i.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:s,errorPath:a},it:l},c,u,h){const d=h?n._`${e}, ${t}, ${i}${s}`:t,f=[[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,a)],[o.default.parentData,l.parentData],[o.default.parentDataProperty,l.parentDataProperty],[o.default.rootData,o.default.rootData]];l.opts.dynamicRef&&f.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const p=n._`${d}, ${r.object(...f)}`;return u!==n.nil?n._`${c}.call(${u}, ${p})`:n._`${c}(${p})`};const h=n._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(r,i);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:n._`${"new RegExp"===o.code?h:(0,s.useFunc)(e,o)}(${r}, ${i})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:o,it:s}=e,a=t.name("valid");if(s.allErrors){const e=t.let("valid",!0);return l((()=>t.assign(e,!1))),e}return t.var(a,!0),l((()=>t.break())),a;function l(s){const l=t.const("len",n._`${r}.length`);t.forRange("i",0,l,(r=>{e.subschema({keyword:o,dataProp:r,dataPropType:i.Type.Num},a),t.if((0,n.not)(a),s)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:o,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,i.alwaysValidSchema)(s,e)))&&!s.opts.unevaluated)return;const a=t.let("valid",!1),l=t.name("_valid");t.block((()=>r.forEach(((r,i)=>{const s=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},l);t.assign(a,n._`${a} || ${l}`),e.mergeValidEvaluated(s,l)||t.if((0,n.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},68202:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},17615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(68202),i=r(31658),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,i.default];t.default=o},31658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const n=r(96516),i=r(85154),o=r(6394),s=r(44),a=r(13312),l=r(88938),c={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:i}=e,{baseId:s,schemaEnv:l,validateName:c,opts:d,self:f}=i,{root:p}=l;if(("#"===r||"#/"===r)&&s===p.baseId)return function(){if(l===p)return h(e,c,l,l.$async);const r=t.scopeValue("root",{ref:p});return h(e,o._`${r}.validate`,p,p.$async)}();const m=a.resolveRef.call(f,p,s,r);if(void 0===m)throw new n.default(i.opts.uriResolver,s,r);return m instanceof a.SchemaEnv?function(t){const r=u(e,t);h(e,r,t,t.$async)}(m):function(n){const i=t.scopeValue("schema",!0===d.code.source?{ref:n,code:(0,o.stringify)(n)}:{ref:n}),s=t.name("valid"),a=e.subschema({schema:n,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:r},s);e.mergeEvaluated(a),e.ok(s)}(m)}};function u(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):o._`${r.scopeValue("wrapper",{ref:t})}.validate`}function h(e,t,r,n){const{gen:a,it:c}=e,{allErrors:u,schemaEnv:h,opts:d}=c,f=d.passContext?s.default.this:o.nil;function p(e){const t=o._`${e}.errors`;a.assign(s.default.vErrors,o._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),a.assign(s.default.errors,o._`${s.default.vErrors}.length`)}function m(e){var t;if(!c.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==c.props)if(n&&!n.dynamicProps)void 0!==n.props&&(c.props=l.mergeEvaluated.props(a,n.props,c.props));else{const t=a.var("props",o._`${e}.evaluated.props`);c.props=l.mergeEvaluated.props(a,t,c.props,o.Name)}if(!0!==c.items)if(n&&!n.dynamicItems)void 0!==n.items&&(c.items=l.mergeEvaluated.items(a,n.items,c.items));else{const t=a.var("items",o._`${e}.evaluated.items`);c.items=l.mergeEvaluated.items(a,t,c.items,o.Name)}}n?function(){if(!h.$async)throw new Error("async schema referenced by sync schema");const r=a.let("valid");a.try((()=>{a.code(o._`await ${(0,i.callValidateCode)(e,t,f)}`),m(t),u||a.assign(r,!0)}),(e=>{a.if(o._`!(${e} instanceof ${c.ValidationError})`,(()=>a.throw(e))),p(e),u||a.assign(r,!1)})),e.ok(r)}():e.result((0,i.callValidateCode)(e,t,f),(()=>m(t)),(()=>p(t)))}t.getValidate=u,t.callRef=h,t.default=c},91944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i=r(50253),o=r(13312),s=r(96516),a=r(88938),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>n._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:l,parentSchema:c,it:u}=e,{oneOf:h}=c;if(!u.opts.discriminator)throw new Error("discriminator: requires discriminator option");const d=l.propertyName;if("string"!=typeof d)throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!h)throw new Error("discriminator: requires oneOf keyword");const f=t.let("valid",!1),p=t.const("tag",n._`${r}${(0,n.getProperty)(d)}`);function m(r){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},i);return e.mergeEvaluated(o,n.Name),i}t.if(n._`typeof ${p} == "string"`,(()=>function(){const r=function(){var e;const t={},r=i(c);let n=!0;for(let t=0;t<h.length;t++){let c=h[t];if((null==c?void 0:c.$ref)&&!(0,a.schemaHasRulesButRef)(c,u.self.RULES)){const e=c.$ref;if(c=o.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,e),c instanceof o.SchemaEnv&&(c=c.schema),void 0===c)throw new s.default(u.opts.uriResolver,u.baseId,e)}const f=null===(e=null==c?void 0:c.properties)||void 0===e?void 0:e[d];if("object"!=typeof f)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${d}"`);n=n&&(r||i(c)),l(f,t)}if(!n)throw new Error(`discriminator: "${d}" must be required`);return t;function i({required:e}){return Array.isArray(e)&&e.includes(d)}function l(e,t){if(e.const)f(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${d}" must have "const" or "enum"`);for(const r of e.enum)f(r,t)}}function f(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${d}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(n._`${p} === ${e}`),t.assign(f,m(r[e]));t.else(),e.error(!1,{discrError:i.DiscrError.Mapping,tag:p,tagName:d}),t.endIf()}()),(()=>e.error(!1,{discrError:i.DiscrError.Tag,tag:p,tagName:d}))),e.ok(f)}};t.default=l},50253:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(r||(t.DiscrError=r={}))},38159:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(17615),i=r(19915),o=r(36481),s=r(85083),a=r(98034),l=[n.default,i.default,(0,o.default)(),s.default,a.metadataVocabulary,a.contentVocabulary];t.default=l},6752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match format "${e}"`,params:({schemaCode:e})=>n._`{format: ${e}}`},code(e,t){const{gen:r,data:i,$data:o,schema:s,schemaCode:a,it:l}=e,{opts:c,errSchemaPath:u,schemaEnv:h,self:d}=l;c.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:c.code.formats}),s=r.const("fDef",n._`${o}[${a}]`),l=r.let("fType"),u=r.let("format");r.if(n._`typeof ${s} == "object" && !(${s} instanceof RegExp)`,(()=>r.assign(l,n._`${s}.type || "string"`).assign(u,n._`${s}.validate`)),(()=>r.assign(l,n._`"string"`).assign(u,s))),e.fail$data((0,n.or)(!1===c.strictSchema?n.nil:n._`${a} && !${u}`,function(){const e=h.$async?n._`(${s}.async ? await ${u}(${i}) : ${u}(${i}))`:n._`${u}(${i})`,r=n._`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return n._`${u} && ${u} !== true && ${l} === ${t} && !${r}`}()))}():function(){const o=d.formats[s];if(!o)return void function(){if(!1!==c.strictSchema)throw new Error(e());function e(){return`unknown format "${s}" ignored in schema at path "${u}"`}d.logger.warn(e())}();if(!0===o)return;const[a,l,f]=function(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):c.code.formats?n._`${c.code.formats}${(0,n.getProperty)(s)}`:void 0,i=r.scopeValue("formats",{key:s,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,n._`${i}.validate`]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!h.$async)throw new Error("async format in sync schema");return n._`await ${f}(${i})`}return"function"==typeof l?n._`${f}(${i})`:n._`${f}.test(${i})`}())}())}};t.default=i},85083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=[r(6752).default];t.default=n},98034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},2736:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i=r(88938),o=r(79781),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>n._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:s,schemaCode:a,schema:l}=e;s||l&&"object"==typeof l?e.fail$data(n._`!${(0,i.useFunc)(t,o.default)}(${r}, ${a})`):e.fail(n._`${l} !== ${r}`)}};t.default=s},43510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i=r(88938),o=r(79781),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>n._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:s,schema:a,schemaCode:l,it:c}=e;if(!s&&0===a.length)throw new Error("enum must have non-empty array");const u=a.length>=c.opts.loopEnum;let h;const d=()=>null!=h?h:h=(0,i.useFunc)(t,o.default);let f;if(u||s)f=t.let("valid"),e.block$data(f,(function(){t.assign(f,!1),t.forOf("v",l,(e=>t.if(n._`${d()}(${r}, ${e})`,(()=>t.assign(f,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",l);f=(0,n.or)(...a.map(((t,i)=>function(e,t){const i=a[t];return"object"==typeof i&&null!==i?n._`${d()}(${r}, ${e}[${t}])`:n._`${r} === ${i}`}(e,i))))}e.pass(f)}};t.default=s},19915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(67005),i=r(30206),o=r(42192),s=r(67709),a=r(58005),l=r(87882),c=r(32910),u=r(28298),h=r(2736),d=r(43510),f=[n.default,i.default,o.default,s.default,a.default,l.default,c.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},h.default,d.default];t.default=f},32910:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:i}=e,o="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`${r}.length ${o} ${i}`)}};t.default=i},42192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i=r(88938),o=r(83252),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:s,it:a}=e,l="maxLength"===t?n.operators.GT:n.operators.LT,c=!1===a.opts.unicode?n._`${r}.length`:n._`${(0,i.useFunc)(e.gen,o.default)}(${r})`;e.fail$data(n._`${c} ${l} ${s}`)}};t.default=s},67005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i=n.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},s={message:({keyword:e,schemaCode:t})=>n.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${o[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{keyword:t,data:r,schemaCode:i}=e;e.fail$data(n._`${r} ${o[t].fail} ${i} || isNaN(${r})`)}};t.default=a},58005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:i}=e,o="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`Object.keys(${r}).length ${o} ${i}`)}};t.default=i},30206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6394),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>n.str`must be multiple of ${e}`,params:({schemaCode:e})=>n._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:i,it:o}=e,s=o.opts.multipleOfPrecision,a=t.let("res"),l=s?n._`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:n._`${a} !== parseInt(${a})`;e.fail$data(n._`(${i} === 0 || (${a} = ${r}/${i}, ${l}))`)}};t.default=i},67709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(85154),i=r(6394),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:o,schemaCode:s,it:a}=e,l=a.opts.unicodeRegExp?"u":"",c=r?i._`(new RegExp(${s}, ${l}))`:(0,n.usePattern)(e,o);e.fail$data(i._`!${c}.test(${t})`)}};t.default=o},87882:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(85154),i=r(6394),o=r(88938),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:s,data:a,$data:l,it:c}=e,{opts:u}=c;if(!l&&0===r.length)return;const h=r.length>=u.loopRequired;if(c.allErrors?function(){if(h||l)e.block$data(i.nil,d);else for(const t of r)(0,n.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(h||l){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,o){e.setParams({missingProperty:r}),t.forOf(r,s,(()=>{t.assign(o,(0,n.propertyInData)(t,a,r,u.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,r))),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,o)),(0,n.reportMissingProp)(e,o),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${c.schemaEnv.baseId+c.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(c,t,c.opts.strictRequired)}}function d(){t.forOf("prop",s,(r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,a,r,u.ownProperties),(()=>e.error()))}))}}};t.default=s},28298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(14939),i=r(6394),o=r(88938),s=r(79781),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:a,schema:l,parentSchema:c,schemaCode:u,it:h}=e;if(!a&&!l)return;const d=t.let("valid"),f=c.items?(0,n.getSchemaTypes)(c.items):[];function p(o,s){const a=t.name("item"),l=(0,n.checkDataTypes)(f,a,h.opts.strictNumbers,n.DataType.Wrong),c=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(a,i._`${r}[${o}]`),t.if(l,i._`continue`),f.length>1&&t.if(i._`typeof ${a} == "string"`,i._`${a} += "_"`),t.if(i._`typeof ${c}[${a}] == "number"`,(()=>{t.assign(s,i._`${c}[${a}]`),e.error(),t.assign(d,!1).break()})).code(i._`${c}[${a}] = ${o}`)}))}function m(n,a){const l=(0,o.useFunc)(t,s.default),c=t.name("outer");t.label(c).for(i._`;${n}--;`,(()=>t.for(i._`${a} = ${n}; ${a}--;`,(()=>t.if(i._`${l}(${r}[${n}], ${r}[${a}])`,(()=>{e.error(),t.assign(d,!1).break(c)}))))))}e.block$data(d,(function(){const n=t.let("i",i._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(d,!0),t.if(i._`${n} > 1`,(()=>(f.length>0&&!f.some((e=>"object"===e||"array"===e))?p:m)(n,o)))}),i._`${u} === false`),e.ok(d)}};t.default=a},80185:(e,t,r)=>{"use strict";var n;r.d(t,{A:()=>u});var i=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}const s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var a=[],l=0;l<256;++l)a.push((l+256).toString(16).substr(1));const c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&s.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},u=function(e,t,r){var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return c(n)}},32604:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},42710:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},34639:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://geojson.org/schema/GeoJSON.json","title":"GeoJSON","oneOf":[{"title":"GeoJSON Point","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"number"}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON LineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["LineString"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON Polygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiPoint","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiPoint"]},"coordinates":{"type":"array","items":{"type":"array","minItems":2,"items":{"type":"number"}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiLineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiLineString"]},"coordinates":{"type":"array","items":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiPolygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON GeometryCollection","type":"object","required":["type","geometries"],"properties":{"type":{"type":"string","enum":["GeometryCollection"]},"geometries":{"type":"array","items":{"oneOf":[{"title":"GeoJSON Point","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"number"}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON LineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["LineString"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON Polygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiPoint","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiPoint"]},"coordinates":{"type":"array","items":{"type":"array","minItems":2,"items":{"type":"number"}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiLineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiLineString"]},"coordinates":{"type":"array","items":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiPolygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}}]}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON Feature","type":"object","required":["type","properties","geometry"],"properties":{"type":{"type":"string","enum":["Feature"]},"id":{"oneOf":[{"type":"number"},{"type":"string"}]},"properties":{"oneOf":[{"type":"null"},{"type":"object"}]},"geometry":{"oneOf":[{"type":"null"},{"title":"GeoJSON Point","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"number"}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON LineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["LineString"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON Polygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiPoint","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiPoint"]},"coordinates":{"type":"array","items":{"type":"array","minItems":2,"items":{"type":"number"}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiLineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiLineString"]},"coordinates":{"type":"array","items":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiPolygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON GeometryCollection","type":"object","required":["type","geometries"],"properties":{"type":{"type":"string","enum":["GeometryCollection"]},"geometries":{"type":"array","items":{"oneOf":[{"title":"GeoJSON Point","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"number"}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON LineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["LineString"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON Polygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiPoint","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiPoint"]},"coordinates":{"type":"array","items":{"type":"array","minItems":2,"items":{"type":"number"}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiLineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiLineString"]},"coordinates":{"type":"array","items":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiPolygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}}]}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}}]},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON FeatureCollection","type":"object","required":["type","features"],"properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"type":"array","items":{"title":"GeoJSON Feature","type":"object","required":["type","properties","geometry"],"properties":{"type":{"type":"string","enum":["Feature"]},"id":{"oneOf":[{"type":"number"},{"type":"string"}]},"properties":{"oneOf":[{"type":"null"},{"type":"object"}]},"geometry":{"oneOf":[{"type":"null"},{"title":"GeoJSON Point","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"number"}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON LineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["LineString"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON Polygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiPoint","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiPoint"]},"coordinates":{"type":"array","items":{"type":"array","minItems":2,"items":{"type":"number"}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiLineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiLineString"]},"coordinates":{"type":"array","items":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiPolygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON GeometryCollection","type":"object","required":["type","geometries"],"properties":{"type":{"type":"string","enum":["GeometryCollection"]},"geometries":{"type":"array","items":{"oneOf":[{"title":"GeoJSON Point","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"number"}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON LineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["LineString"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON Polygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiPoint","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiPoint"]},"coordinates":{"type":"array","items":{"type":"array","minItems":2,"items":{"type":"number"}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiLineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiLineString"]},"coordinates":{"type":"array","items":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}},{"title":"GeoJSON MultiPolygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}}]}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}}]},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}}]}')},69962:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},34376:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}}]);