@entryscape/rdforms 10.11.1 → 10.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rdforms.bmd.js +1 -1
- package/dist/rdforms.bootstrap.js +1 -1
- package/dist/rdforms.react.js +1 -1
- package/package.json +1 -1
- package/src/view/bmd/Selectize.js +1 -1
- package/src/view/bootstrap/Select2.js +1 -0
- package/src/view/bootstrap/Select2QueryAdapter.js +1 -1
- package/src/view/react/choiceEditors/ChoiceLookupAndInlineSearch.js +1 -1
|
@@ -106,4 +106,4 @@ var e,r,n;t&&t.requirejs||(t?r=t:t={},function(t){var o,i,a,s,l={},c={},d={},u={
|
|
|
106
106
|
* @author Louis-Dominique Dubeau
|
|
107
107
|
* @license MIT
|
|
108
108
|
* @copyright Louis-Dominique Dubeau
|
|
109
|
-
*/function r(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(t,"__esModule",{value:!0}),t.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",t.NC_NAME_CHAR="-"+t.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.NC_NAME_START_CHAR_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]$","u"),t.NC_NAME_CHAR_RE=new RegExp("^["+t.NC_NAME_CHAR+"]$","u"),t.NC_NAME_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]["+t.NC_NAME_CHAR+"]*$","u"),t.isNCNameStartChar=r,t.isNCNameChar=function(e){return r(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},2134:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAN1wAADdcBQiibeAAAAAd0SU1FB9sHEgk6F1W2ZXkAAAMkSURBVDjLhZNfSN11GMY/7/f7O+eox+W/CGbptmTJGptTWgwGmWW6xQKtga2g0U30D5rdSEFFN60RbQV1IURd9GeuiyWxShd6JtO8ydha5i6WJNtkarGcHc8539/v+3u7EF1d9Vy9D8/zPvDC+8C/8GTPGP+H93sH/sNldTjwyhjHD+8GoO3ZwZfqNt56MJ1ONqgii0vL5yenrnw6/tljRwE6Dp2iu3Mdzc3NKwGryw89M9C0pX79xM6mDaRLUhhjsEZIJIRcPmIw8wvXLk+393/Qdfq19wZobSxGut48w4k37mfPc983NTXUTmzdUo33XkFk+6YURoSLsxHJhNV16ZQMnZ1ifubXAx+9tb/v61NDN094/sg5bWqoxXuv1hoCazjYWg7AidG/MUYwRriltFiO94/z6iP5OzbvePCqBejozhzatrVmj/eqcYzEqpJ3scwshHLxipNsPhZVFVXEhZFurLlNPj45WXd+7Mu+AKCqovQpjcG5SKw1asTIw/eWs7Ts1YjIxKUczolaG4u3hlQqQbK0fK/qTyUGwFizreA8Bee14Dy5fKRjF27ojroStt9ZrGHkNQw9zsXqnCd0Hq+pZDiX3RQAeB9LGHpEkDhW4lj4c9GhqgCEYYyqICbGeoMYQxzHZAsmHQAUXPhzwflGI2CtahCI5AVAFFRc6IkVNcaINaoiRix5kkHp9QAgm13+PJd3jYmEVRsrPhbN5b2AAuhfNxxFSYuxqoEVsrmIitTybEl1/bQB6D/W+u7CwnWiSMWFEQaVlx+vQUQQEXmhs1pACV0kiGH8x0n2N1f0imz0wbFPTtP9dBtlqaX2+T/MYFVFuWRzkX4ztiDGCCKi1qx8YjKR0B8mfpN9jX7qrvXB22tdeKJnkC+OtNPzznddl+aK+srKK0kmAgIrWGswYgi9Z3rmdzp36tSj91U+ULVh17Xh4eGVgJGREUYuFHj9xTamJ4dvP3oy9+FiLrF3uWCSCqRTIdXlbrZjd1lvfU3R4craXWEmk6GlpeVmLYeGhvjq2zNrXPVccTQ/evfi5bP3ZK+Oblads6taJpNZ8/0Dy3R3nlDQL+wAAAAASUVORK5CYII="},3348:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABuwAAAbsBOuzj4gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAG6SURBVDiNpZI9a1NRHIefc+45J0l7E1NaF4cE0cHMClYQRRCh38DNIfoBxMXFFl06CRb0CxTBSQdBRAcXsUN9AUGQijaggihe01ybmzT3vDiIIpirFv/r7+Hh/yZCCPxPyaLgwurZ68dutwbH7+xLll8tXSviRFEHJ+/N+bndJ8TIDXmePLFXD9/U2+rg6cfHwushpYri5cYLVcQVBrl3fN3KEFIycq4I+ykQQATYH4F1nnQ0QCDI7W8CBTggKID23fZiJ+2ce/ThoTKRwqgIHUmyfIgUgi2XM3urGSpaUzGa/TsP2UatefnM3oXzIoSAXtSfTx84NU3kCJFHSPFd4FOkENRVHSkVJWKSfo80+0I+uZ7cOPpsRgFYa1lPOiij0OWIWilGS0HfbRJJ0EGTjTLWkjf0BgOmTJUZM/plB575+68fXEGhUaCVxEQRs80Wk8aw8naVslaUlKIaK7RJc2vVPPzhD8pLOhzZ02JqosxKZ4137Z4YxxX+gfOe3OVIAbn3fz3jWMGnzR5BeKzbtuCibMT18L7bFd1+Tmx32PFc4QgL/uB0dRkY7ppobNR87VKRoHCJ/1rfAF8ir6zXPA5QAAAAAElFTkSuQmCC"},9636:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABuwAAAbsBOuzj4gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIXSURBVDiNpZM9aBNxGMafN80Rm49ekktS83H5IMHSUjscFcGCtQg1iRA1OAtOgmBHiVvq1EEIFB0c0r0IpVwWFx0MOIggaIci2FaTq2LtqW1MyeV6f6cLZ9pF+oz/931+PC8Pf2KM4SSyncjdD1ghkt7cvvV9leNy/YurHJf78OB+c4VIOhawTCT5J8denRkdC0aLWfkZUdYyy4Wz03I8GIyevjJdX7ZAegANWEpOnncdNLcRS47aw/lLtSpRvkJ0zXn5Qk0cmbC3txrIzOadGrBk+uwWQGmt/rKWHD9nB7MhEE7ZNy625F3DoNlExqY2FAw4Hfj24r2uASXTR9YWnhJlh0eickzMcIbGYPO6ccAMODsGHIkItt6+7irvPhbuMPb8WAAALBJlI5lhORKMcocagRwO6KyDr8qn7s6XX4U5i/mfE0x1AGhaF/r6OvSfbRCAAZ8TzHMKnf7l/gQLRFkxIcjj+x0OagttvxsEYFBtAX431jyD3cbnnULJkqLXwjxRTkxF5KmWzglqCy7Biyc8zxZ5L3MFfBDUFqb+HHJiOi4v8PzVIwAWDz2eGfJyod3fcAf8qHh5Q9hUir7N5s0KzxvuoIDQDxUzniGOF8VHvdiMMTDGUAakaiK2p0hnWTmd0ueA6+bsLlCcT6d0RZpg1URsrwxI5qwHMCEPM9GNe8AN67sJqedz21YzY+xojf+rE//Gv3sS6xhM1kjhAAAAAElFTkSuQmCC"},5230:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAQAAAAEABcxq3DAAACGUlEQVQ4y52TTUhUcRTFf//3n/FjZsxmQsOvmtJF5VQ6i3IsaaJcVIs24UKIIKRNuGrboihaRWQptbVtmLvCWgyZWJRlNimUaKajMH1gWprzfO/dFiYozgR54WzuPedwOZcL/6jDtXjq68hlPRXejRqM0TPwhK51Gdy6QoNM5oqTyHFaLnP8v8TRCFmJPobly0GRZI2MvSBeX4dOxzXSNZsaaS4pLqrA8IMuYOuWwtDpUzSl46pohOxohGhVJdVlxVQHNlJdVuorN7L3GSjvEkt+4iy8sscTc8PTM7ydmKJ/YIg3sV6eqjvXOH+uUbWii8EVBJUPKu22IBbILFgjYCdpa5czem6eeHiXOlAQcG8TXY7gQkRlgEbEjZhj9MdTD1vbuajHEljjkzwI7zSP+H2zJaiiJbLDWtgOznwfQx9+dF+66Zzs6ialAYbHMJNf6QzvSJ3I81iFqELEUWtg/37PyGjy9dU251jnY36tukJHl3yP9cpd23SwLZUepkPPS27ffyQzyzrXyow2bTBKbcuLs6iWU1s+1t8Mvfh9RtlKzSqDgE8HHdsDpiDmFJL6BBio7CAqqwixPPi9OpjRINdlBBdnP4OM8G16Yep53GpR4K7dO9gcyB/djDLIcRmZDcQy8sYn5j8+G1i83hEz7/W+s1MANSF9o+GoffZQlfuCWIYv4w9EQq78PRXayDQPbdd6f6XesLL3By3z9hHiEQ65AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDEwLTAyLTExVDAxOjIwOjIxLTA2OjAwtZnToAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAwNi0xMC0wMVQwMDo1NjoyNi0wNTowMJWSAJ0AAAAASUVORK5CYII="},8388:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACJUlEQVQ4jaWTO2hVQRCGv5k959yb+zg3MUQNEt+QwlejkCIRAhEhBGxSWAkWksLGgKWNjTYqEhDS24qgQoJWNhGxMWBjIxYKQTQPE9HknrM7FucmxiiiON0u/3z8/8wu/GfJ5sPA+VQP9pVPlyu6/cu8f3L30se5vwacGu+o9hwpPYoTBuNEiBP5bLkN3x6de/YngAIMjLXXOvfFU1nTBrMmZJmRZ9bQWKbH73f3r4vP3exMJl7vHrs2s+vA+l0E0LEnnsianAQrbImgYqiSxiWZvvywe3jhXf6it690L3gbad/pXgFHNwDNNRsxAzMBDFFQFdSBi6glZZnqOZzMGtLvYsECe3+K0FzjbdY08szIM/AZ5Dn43AjBKJWlJkJ/z35HvaEEozZ6pcNtAL4u+bGsyUKeFU3eG8EbwcO2LkfvsZhDxxMqNUUdmCFtdU03AM8nF2dXl/2QDzbvAwQPIUAwqDaErAmihWXnAINyTX4AAGbuLL5cWwlDwKdiHoXYabEVn7cyu2LU5bo2fgIAPL21MEuwIVHWAJKStGYB3lsLKgjQVvsNACBK9IIIJRGI4laUYFhoOVBAoJJq+gvgzPWuq6JcFCmEqlI0tiIVbwRUoNIoHESbAS4SFyeF9aQkrH4zPrz3LC8IlXqgmipRDC4CdazAls8EcOJsfUdbXTsqqaa1dm1U2zVNO7WRdro07dK0rapp5HjzeHJ58sGNJdva/8/1HRdPyP0VYmT/AAAAAElFTkSuQmCC"},2777:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACnklEQVQ4jY2SX0hTYRjG39VEQl2RN2UXZQRFd0EIEUH/BhVBZCSEeFMpQSgVjc3/VhSCXUSBWSG5bipDU1IoCVEa6JTUzvGsZrP5Z9NtHre5qZubO0/fNylqDOqFh8P5OO/vfb73PES8UjYQnagh0g2TSi9kkF7Qkl7MZc9slV4kKuogyj5IyYs35xtJZRA16wxiQ3qlFNY+s+NM0wR21loVdm5Wl4o5HE67jycBHL7Bp2rYh8PFbU74l6NYjSlxxRQFraIfmbcsoZQyUUvX+4nSMhMA7JA1N/DmSHQVzkAMdp+C6QUF7kUF4WgM/ROLSCkbdTOHGjpQmADQf8ngtueDYXyXoxhxrcLiiWFsPgabl8NicXDBqymoDEIRnXuYCBC0x56MI7gUQvePFZgmV2B2RDA0E8HIbDQud2AFxgEZbLHP6UJjIkDMPd04DtkfRItlCR3WZXTZOCyEHvua7PIyXn+e44DmJAAhe/u9r4rP70ezuADjSAAvhSDejDKgFESrJQiXN4DyTgcH1FB+UwJAN8RdmF/0OWF1yKg3e/Go34fHAz48HfRh0O6F7PVj7/0xsCWWsIFE+/P/AJx9wF3kbKqWQh+EGUzPuGEac6PX6oHN4YHLI6NdWkDdJy82VlsiDJL3N0STRXS1m2VB1KpLR915RhvqeybRZJqCrs2OPXVW3O6WUWvyoeKjjIykkM07iC63cycadp2i+Lb5wvid9WKJhjXdfO+BrmsOJZ1upFdJHHI+ns7fpVpPtOsI0VEd0ak7azrJdK2f7ygvvcoSudLuwiWmi29nkVohhdnArCTZTqht+1hazXFIWqUUKWhxovDdLLbe/cb+inDo34AESGq5FN7Cmw1iH3tX/x/gF6S4l+K2+WS9oOah+glT18LOvPJgZQAAAABJRU5ErkJggg=="},9700:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 width=%278%27 height=%278%27 viewBox=%270 0 8 8%27%3e%3cpath d=%27M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z%27/%3e%3c/svg%3e"},4104:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 width=%278%27 height=%278%27 viewBox=%270 0 8 8%27%3e%3cpath d=%27M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z%27/%3e%3c/svg%3e"},1024:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27 viewBox=%270 0 12 12%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e"},7263:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%23fff%27/%3e%3c/svg%3e"},1380:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2730%27 height=%2730%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%280, 0, 0, 0.5%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},9242:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2730%27 height=%2730%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.5%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},4231:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%274%27 height=%274%27 viewBox=%270 0 4 4%27%3e%3cpath stroke=%27%23fff%27 d=%27M0 2h4%27/%3e%3c/svg%3e"},4576:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%274%27 height=%275%27 viewBox=%270 0 4 5%27%3e%3cpath fill=%27%23343a40%27 d=%27M2 0L0 2h4zm0 5L0 3h4z%27/%3e%3c/svg%3e"},7211:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%278%27 height=%278%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%2328a745%27 d=%27M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e"},9653:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%278%27 height=%278%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23fff%27 d=%27M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z%27/%3e%3c/svg%3e"},509:(e,t,r)=>{"use strict";var n=r(9985),o=r(3691),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},2655:(e,t,r)=>{"use strict";var n=r(9429),o=r(3691),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a constructor")}},3550:(e,t,r)=>{"use strict";var n=r(598),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},7370:(e,t,r)=>{"use strict";var n=r(4201),o=r(5391),i=r(2560).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},1514:(e,t,r)=>{"use strict";var n=r(730).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},767:(e,t,r)=>{"use strict";var n=r(3622),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},5027:(e,t,r)=>{"use strict";var n=r(8999),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},1655:(e,t,r)=>{"use strict";var n=r(3689);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},7612:(e,t,r)=>{"use strict";var n=r(2960).forEach,o=r(6834)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},1055:(e,t,r)=>{"use strict";var n=r(4071),o=r(2615),i=r(690),a=r(1228),s=r(3292),l=r(9429),c=r(6310),d=r(6522),u=r(5185),f=r(1664),p=Array;e.exports=function(e){var t=i(e),r=l(this),h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m;g&&(m=n(m,h>2?arguments[2]:void 0));var b,v,y,w,x,_,k=f(t),S=0;if(!k||this===p&&s(k))for(b=c(t),v=r?new this(b):p(b);b>S;S++)_=g?m(t[S],S):t[S],d(v,S,_);else for(x=(w=u(t,k)).next,v=r?new this:[];!(y=o(x,w)).done;S++)_=g?a(w,m,[y.value,S],!0):y.value,d(v,S,_);return v.length=S,v}},4328:(e,t,r)=>{"use strict";var n=r(5290),o=r(7578),i=r(6310),a=function(e){return function(t,r,a){var s,l=n(t),c=i(l),d=o(a,c);if(e&&r!=r){for(;c>d;)if((s=l[d++])!=s)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===r)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2960:(e,t,r)=>{"use strict";var n=r(4071),o=r(8844),i=r(4413),a=r(690),s=r(6310),l=r(7120),c=o([].push),d=function(e){var t=1===e,r=2===e,o=3===e,d=4===e,u=6===e,f=7===e,p=5===e||u;return function(h,m,g,b){for(var v,y,w=a(h),x=i(w),_=s(x),k=n(m,g),S=0,E=b||l,T=t?E(h,_):r||f?E(h,0):void 0;_>S;S++)if((p||S in x)&&(y=k(v=x[S],S,w),e))if(t)T[S]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:c(T,v)}else switch(e){case 4:return!1;case 7:c(T,v)}return u?-1:o||d?d:T}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},9042:(e,t,r)=>{"use strict";var n=r(3689),o=r(4201),i=r(3615),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},6834:(e,t,r)=>{"use strict";var n=r(3689);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},5649:(e,t,r)=>{"use strict";var n=r(7697),o=r(2297),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},6004:(e,t,r)=>{"use strict";var n=r(8844);e.exports=n([].slice)},382:(e,t,r)=>{"use strict";var n=r(6004),o=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var a,s,l=1;l<r;){for(s=l,a=e[l];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==l++&&(e[s]=a)}else for(var c=o(r/2),d=i(n(e,0,c),t),u=i(n(e,c),t),f=d.length,p=u.length,h=0,m=0;h<f||m<p;)e[h+m]=h<f&&m<p?t(d[h],u[m])<=0?d[h++]:u[m++]:h<f?d[h++]:u[m++];return e};e.exports=i},5271:(e,t,r)=>{"use strict";var n=r(2297),o=r(9429),i=r(8999),a=r(4201)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},7120:(e,t,r)=>{"use strict";var n=r(5271);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},1228:(e,t,r)=>{"use strict";var n=r(5027),o=r(2125);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},6431:(e,t,r)=>{"use strict";var n=r(4201)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},6648:(e,t,r)=>{"use strict";var n=r(8844),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},926:(e,t,r)=>{"use strict";var n=r(3043),o=r(9985),i=r(6648),a=r(4201)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:l?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},800:(e,t,r)=>{"use strict";var n=r(5391),o=r(2148),i=r(6045),a=r(4071),s=r(767),l=r(981),c=r(8734),d=r(1934),u=r(7807),f=r(4241),p=r(7697),h=r(5375).fastKey,m=r(618),g=m.set,b=m.getterFor;e.exports={getConstructor:function(e,t,r,d){var u=e((function(e,o){s(e,f),g(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),p||(e.size=0),l(o)||c(o,e[d],{that:e,AS_ENTRIES:r})})),f=u.prototype,m=b(t),v=function(e,t,r){var n,o,i=m(e),a=y(e,t);return a?a.value=r:(i.last=a={index:o=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},y=function(e,t){var r,n=m(e),o=h(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===t)return r};return i(f,{clear:function(){for(var e=m(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=n(null),p?e.size=0:this.size=0},delete:function(e){var t=m(this),r=y(this,e);if(r){var n=r.next,o=r.previous;delete t.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),t.first===r&&(t.first=n),t.last===r&&(t.last=o),p?t.size--:this.size--}return!!r},forEach:function(e){for(var t,r=m(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(f,r?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),p&&o(f,"size",{configurable:!0,get:function(){return m(this).size}}),u},setStrong:function(e,t,r){var n=t+" Iterator",o=b(t),i=b(n);d(e,t,(function(e,t){g(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?u("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,u(void 0,!0))}),r?"entries":"values",!r,!0),f(t)}}},319:(e,t,r)=>{"use strict";var n=r(9989),o=r(9037),i=r(8844),a=r(5266),s=r(1880),l=r(5375),c=r(8734),d=r(767),u=r(9985),f=r(981),p=r(8999),h=r(3689),m=r(6431),g=r(5997),b=r(3457);e.exports=function(e,t,r){var v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),w=v?"set":"add",x=o[e],_=x&&x.prototype,k=x,S={},E=function(e){var t=i(_[e]);s(_,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!p(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!u(x)||!(y||_.forEach&&!h((function(){(new x).entries().next()})))))k=r.getConstructor(t,e,v,w),l.enable();else if(a(e,!0)){var T=new k,C=T[w](y?{}:-0,1)!==T,A=h((function(){T.has(1)})),O=m((function(e){new x(e)})),D=!y&&h((function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)}));O||((k=t((function(e,t){d(e,_);var r=b(new x,e,k);return f(t)||c(t,r[w],{that:r,AS_ENTRIES:v}),r}))).prototype=_,_.constructor=k),(A||D)&&(E("delete"),E("has"),v&&E("get")),(D||C)&&E(w),y&&_.clear&&delete _.clear}return S[e]=k,n({global:!0,constructor:!0,forced:k!==x},S),g(k,e),y||r.setStrong(k,e,v),k}},8758:(e,t,r)=>{"use strict";var n=r(6812),o=r(9152),i=r(2474),a=r(2560);e.exports=function(e,t,r){for(var s=o(t),l=a.f,c=i.f,d=0;d<s.length;d++){var u=s[d];n(e,u)||r&&n(r,u)||l(e,u,c(t,u))}}},7413:(e,t,r)=>{"use strict";var n=r(4201)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},1748:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7807:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},5773:(e,t,r)=>{"use strict";var n=r(7697),o=r(2560),i=r(5684);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},5684:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6522:(e,t,r)=>{"use strict";var n=r(8360),o=r(2560),i=r(5684);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},1797:(e,t,r)=>{"use strict";var n=r(5027),o=r(5899),i=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},2148:(e,t,r)=>{"use strict";var n=r(8702),o=r(2560);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},1880:(e,t,r)=>{"use strict";var n=r(9985),o=r(2560),i=r(8702),a=r(5014);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(n(r)&&i(r,c,s),s.global)l?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6045:(e,t,r)=>{"use strict";var n=r(1880);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},5014:(e,t,r)=>{"use strict";var n=r(9037),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},8494:(e,t,r)=>{"use strict";var n=r(3691),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+n(t)+" of "+n(e))}},7697:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6420:(e,t,r)=>{"use strict";var n=r(9037),o=r(8999),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},5565:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},6338:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},3265:(e,t,r)=>{"use strict";var n=r(6420)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},7365:(e,t,r)=>{"use strict";var n=r(71).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},2532:(e,t,r)=>{"use strict";var n=r(8563),o=r(806);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},8563:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},7298:(e,t,r)=>{"use strict";var n=r(71);e.exports=/MSIE|Trident/.test(n)},3221:(e,t,r)=>{"use strict";var n=r(71);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},4764:(e,t,r)=>{"use strict";var n=r(71);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},806:(e,t,r)=>{"use strict";var n=r(9037),o=r(6648);e.exports="process"===o(n.process)},7486:(e,t,r)=>{"use strict";var n=r(71);e.exports=/web0s(?!.*chrome)/i.test(n)},71:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:(e,t,r)=>{"use strict";var n,o,i=r(9037),a=r(71),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,d=c&&c.v8;d&&(o=(n=d.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},7922:(e,t,r)=>{"use strict";var n=r(71).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},2739:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9989:(e,t,r)=>{"use strict";var n=r(9037),o=r(2474).f,i=r(5773),a=r(1880),s=r(5014),l=r(8758),c=r(5266);e.exports=function(e,t){var r,d,u,f,p,h=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[h]||s(h,{}):n[h]&&n[h].prototype)for(d in t){if(f=t[d],u=e.dontCallGetSet?(p=o(r,d))&&p.value:r[d],!c(m?d:h+(g?".":"#")+d,e.forced)&&void 0!==u){if(typeof f==typeof u)continue;l(f,u)}(e.sham||u&&u.sham)&&i(f,"sham",!0),a(r,d,f,e)}}},3689:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},8678:(e,t,r)=>{"use strict";r(4043);var n=r(2615),o=r(1880),i=r(6308),a=r(3689),s=r(4201),l=r(5773),c=s("species"),d=RegExp.prototype;e.exports=function(e,t,r,u){var f=s(e),p=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),h=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return t=!0,null},r[f](""),!t}));if(!p||!h||r){var m=/./[f],g=t(f,""[e],(function(e,t,r,o,a){var s=t.exec;return s===i||s===d.exec?p&&!a?{done:!0,value:n(m,t,r,o)}:{done:!0,value:n(e,r,t,o)}:{done:!1}}));o(String.prototype,e,g[0]),o(d,f,g[1])}u&&l(d[f],"sham",!0)}},1594:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},1735:(e,t,r)=>{"use strict";var n=r(7215),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},4071:(e,t,r)=>{"use strict";var n=r(6576),o=r(509),i=r(7215),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},7215:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6761:(e,t,r)=>{"use strict";var n=r(8844),o=r(509),i=r(8999),a=r(6812),s=r(6004),l=r(7215),c=Function,d=n([].concat),u=n([].join),f={},p=function(e,t,r){if(!a(f,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";f[t]=c("C,a","return new C("+u(n,",")+")")}return f[t](e,r)};e.exports=l?c.bind:function(e){var t=o(this),r=t.prototype,n=s(arguments,1),a=function(){var r=d(n,s(arguments));return this instanceof a?p(t,r.length,r):t.apply(e,r)};return i(r)&&(a.prototype=r),a}},2615:(e,t,r)=>{"use strict";var n=r(7215),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},1236:(e,t,r)=>{"use strict";var n=r(7697),o=r(6812),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},2743:(e,t,r)=>{"use strict";var n=r(8844),o=r(509);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},6576:(e,t,r)=>{"use strict";var n=r(6648),o=r(8844);e.exports=function(e){if("Function"===n(e))return o(e)}},8844:(e,t,r)=>{"use strict";var n=r(7215),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},6058:(e,t,r)=>{"use strict";var n=r(9037),o=r(9985),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},1664:(e,t,r)=>{"use strict";var n=r(926),o=r(4849),i=r(981),a=r(9478),s=r(4201)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[n(e)]}},5185:(e,t,r)=>{"use strict";var n=r(2615),o=r(509),i=r(5027),a=r(3691),s=r(1664),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw new l(a(e)+" is not iterable")}},2643:(e,t,r)=>{"use strict";var n=r(8844),o=r(2297),i=r(9985),a=r(6648),s=r(4327),l=n([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,r=[],n=0;n<t;n++){var c=e[n];"string"==typeof c?l(r,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(r,s(c))}var d=r.length,u=!0;return function(e,t){if(u)return u=!1,t;if(o(this))return t;for(var n=0;n<d;n++)if(r[n]===e)return t}}}},4849:(e,t,r)=>{"use strict";var n=r(509),o=r(981);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},7017:(e,t,r)=>{"use strict";var n=r(8844),o=r(690),i=Math.floor,a=n("".charAt),s=n("".replace),l=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,u,f){var p=r+e.length,h=n.length,m=d;return void 0!==u&&(u=o(u),m=c),s(f,m,(function(o,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,r);case"'":return l(t,p);case"<":c=u[l(s,1,-1)];break;default:var d=+s;if(0===d)return o;if(d>h){var f=i(d/10);return 0===f?o:f<=h?void 0===n[f-1]?a(s,1):n[f-1]+a(s,1):o}c=n[d-1]}return void 0===c?"":c}))}},9037: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")()},6812:(e,t,r)=>{"use strict";var n=r(8844),o=r(690),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},7248:e=>{"use strict";e.exports={}},920:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},2688:(e,t,r)=>{"use strict";var n=r(6058);e.exports=n("document","documentElement")},8506:(e,t,r)=>{"use strict";var n=r(7697),o=r(3689),i=r(6420);e.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},4413:(e,t,r)=>{"use strict";var n=r(8844),o=r(3689),i=r(6648),a=Object,s=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},3457:(e,t,r)=>{"use strict";var n=r(9985),o=r(8999),i=r(9385);e.exports=function(e,t,r){var a,s;return i&&n(a=t.constructor)&&a!==r&&o(s=a.prototype)&&s!==r.prototype&&i(e,s),e}},6738:(e,t,r)=>{"use strict";var n=r(8844),o=r(9985),i=r(4091),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},5375:(e,t,r)=>{"use strict";var n=r(9989),o=r(8844),i=r(7248),a=r(8999),s=r(6812),l=r(2560).f,c=r(2741),d=r(6062),u=r(7049),f=r(4630),p=r(1594),h=!1,m=f("meta"),g=0,b=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},h=!0;var e=c.f,t=o([].splice),r={};r[m]=1,e(r).length&&(c.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===m){t(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!u(e))return"F";if(!t)return"E";b(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!u(e))return!0;if(!t)return!1;b(e)}return e[m].weakData},onFreeze:function(e){return p&&h&&u(e)&&!s(e,m)&&b(e),e}};i[m]=!0},618:(e,t,r)=>{"use strict";var n,o,i,a=r(9834),s=r(9037),l=r(8999),c=r(5773),d=r(6812),u=r(4091),f=r(2713),p=r(7248),h=s.TypeError,m=s.WeakMap;if(a||u.state){var g=u.state||(u.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new h("Object already initialized");return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var b=f("state");p[b]=!0,n=function(e,t){if(d(e,b))throw new h("Object already initialized");return t.facade=e,c(e,b,t),t},o=function(e){return d(e,b)?e[b]:{}},i=function(e){return d(e,b)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=o(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}},3292:(e,t,r)=>{"use strict";var n=r(4201),o=r(9478),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},2297:(e,t,r)=>{"use strict";var n=r(6648);e.exports=Array.isArray||function(e){return"Array"===n(e)}},9985: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}},9429:(e,t,r)=>{"use strict";var n=r(8844),o=r(3689),i=r(9985),a=r(926),s=r(6058),l=r(6738),c=function(){},d=s("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=n(u.exec),p=!u.test(c),h=function(e){if(!i(e))return!1;try{return d(c,[],e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(u,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!d||o((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?m:h},6251:(e,t,r)=>{"use strict";var n=r(6812);e.exports=function(e){return void 0!==e&&(n(e,"value")||n(e,"writable"))}},5266:(e,t,r)=>{"use strict";var n=r(3689),o=r(9985),i=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===d||r!==c&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",d=a.POLYFILL="P";e.exports=a},981:e=>{"use strict";e.exports=function(e){return null==e}},8999:(e,t,r)=>{"use strict";var n=r(9985);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},598:(e,t,r)=>{"use strict";var n=r(8999);e.exports=function(e){return n(e)||null===e}},3931:e=>{"use strict";e.exports=!1},1245:(e,t,r)=>{"use strict";var n=r(8999),o=r(6648),i=r(4201)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},734:(e,t,r)=>{"use strict";var n=r(6058),o=r(9985),i=r(3622),a=r(9525),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},8734:(e,t,r)=>{"use strict";var n=r(4071),o=r(2615),i=r(5027),a=r(3691),s=r(3292),l=r(6310),c=r(3622),d=r(5185),u=r(1664),f=r(2125),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,r){var g,b,v,y,w,x,_,k=r&&r.that,S=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),T=!(!r||!r.IS_ITERATOR),C=!(!r||!r.INTERRUPTED),A=n(t,k),O=function(e){return g&&f(g,"normal",e),new h(!0,e)},D=function(e){return S?(i(e),C?A(e[0],e[1],O):A(e[0],e[1])):C?A(e,O):A(e)};if(E)g=e.iterator;else if(T)g=e;else{if(!(b=u(e)))throw new p(a(e)+" is not iterable");if(s(b)){for(v=0,y=l(e);y>v;v++)if((w=D(e[v]))&&c(m,w))return w;return new h(!1)}g=d(e,b)}for(x=E?e.next:g.next;!(_=o(x,g)).done;){try{w=D(_.value)}catch(e){f(g,"throw",e)}if("object"==typeof w&&w&&c(m,w))return w}return new h(!1)}},2125:(e,t,r)=>{"use strict";var n=r(2615),o=r(5027),i=r(4849);e.exports=function(e,t,r){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return o(a),r}},974:(e,t,r)=>{"use strict";var n=r(2013).IteratorPrototype,o=r(5391),i=r(5684),a=r(5997),s=r(9478),l=function(){return this};e.exports=function(e,t,r,c){var d=t+" Iterator";return e.prototype=o(n,{next:i(+!c,r)}),a(e,d,!1,!0),s[d]=l,e}},1934:(e,t,r)=>{"use strict";var n=r(9989),o=r(2615),i=r(3931),a=r(1236),s=r(9985),l=r(974),c=r(1868),d=r(9385),u=r(5997),f=r(5773),p=r(1880),h=r(4201),m=r(9478),g=r(2013),b=a.PROPER,v=a.CONFIGURABLE,y=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=h("iterator"),_=function(){return this};e.exports=function(e,t,r,a,h,g,k){l(r,t,a);var S,E,T,C=function(e){if(e===h&&P)return P;if(!w&&e&&e in D)return D[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},A=t+" Iterator",O=!1,D=e.prototype,j=D[x]||D["@@iterator"]||h&&D[h],P=!w&&j||C(h),R="Array"===t&&D.entries||j;if(R&&(S=c(R.call(new e)))!==Object.prototype&&S.next&&(i||c(S)===y||(d?d(S,y):s(S[x])||p(S,x,_)),u(S,A,!0,!0),i&&(m[A]=_)),b&&"values"===h&&j&&"values"!==j.name&&(!i&&v?f(D,"name","values"):(O=!0,P=function(){return o(j,this)})),h)if(E={values:C("values"),keys:g?P:C("keys"),entries:C("entries")},k)for(T in E)(w||O||!(T in D))&&p(D,T,E[T]);else n({target:t,proto:!0,forced:w||O},E);return i&&!k||D[x]===P||p(D,x,P,{name:h}),m[t]=P,E}},2013:(e,t,r)=>{"use strict";var n,o,i,a=r(3689),s=r(9985),l=r(8999),c=r(5391),d=r(1868),u=r(1880),f=r(4201),p=r(3931),h=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=d(d(i)))!==Object.prototype&&(n=o):m=!0),!l(n)||a((function(){var e={};return n[h].call(e)!==e}))?n={}:p&&(n=c(n)),s(n[h])||u(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},9478:e=>{"use strict";e.exports={}},6310:(e,t,r)=>{"use strict";var n=r(3126);e.exports=function(e){return n(e.length)}},8702:(e,t,r)=>{"use strict";var n=r(8844),o=r(3689),i=r(9985),a=r(6812),s=r(7697),l=r(1236).CONFIGURABLE,c=r(6738),d=r(618),u=d.enforce,f=d.get,p=String,h=Object.defineProperty,m=n("".slice),g=n("".replace),b=n([].join),v=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=u(e);return a(n,"source")||(n.source=b(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||c(this)}),"toString")},8828: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)}},231:(e,t,r)=>{"use strict";var n,o,i,a,s,l=r(9037),c=r(517),d=r(4071),u=r(9886).set,f=r(4410),p=r(4764),h=r(3221),m=r(7486),g=r(806),b=l.MutationObserver||l.WebKitMutationObserver,v=l.document,y=l.process,w=l.Promise,x=c("queueMicrotask");if(!x){var _=new f,k=function(){var e,t;for(g&&(e=y.domain)&&e.exit();t=_.get();)try{t()}catch(e){throw _.head&&n(),e}e&&e.enter()};p||g||m||!b||!v?!h&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=d(a.then,a),n=function(){s(k)}):g?n=function(){y.nextTick(k)}:(u=d(u,l),n=function(){u(k)}):(o=!0,i=v.createTextNode(""),new b(k).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),x=function(e){_.head||n(),_.add(e)}}e.exports=x},8742:(e,t,r)=>{"use strict";var n=r(509),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},2124:(e,t,r)=>{"use strict";var n=r(1245),o=TypeError;e.exports=function(e){if(n(e))throw new o("The method doesn't accept regular expressions");return e}},7897:(e,t,r)=>{"use strict";var n=r(9037),o=r(3689),i=r(8844),a=r(4327),s=r(1435).trim,l=r(6350),c=n.parseInt,d=n.Symbol,u=d&&d.iterator,f=/^[+-]?0x/i,p=i(f.exec),h=8!==c(l+"08")||22!==c(l+"0x16")||u&&!o((function(){c(Object(u))}));e.exports=h?function(e,t){var r=s(a(e));return c(r,t>>>0||(p(f,r)?16:10))}:c},5394:(e,t,r)=>{"use strict";var n=r(7697),o=r(8844),i=r(2615),a=r(3689),s=r(300),l=r(7518),c=r(9556),d=r(690),u=r(4413),f=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!f||a((function(){if(n&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection");return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==f({},e)[r]||"abcdefghijklmnopqrst"!==s(f({},t)).join("")}))?function(e,t){for(var r=d(e),o=arguments.length,a=1,f=l.f,p=c.f;o>a;)for(var m,g=u(arguments[a++]),b=f?h(s(g),f(g)):s(g),v=b.length,y=0;v>y;)m=b[y++],n&&!i(p,g,m)||(r[m]=g[m]);return r}:f},5391:(e,t,r)=>{"use strict";var n,o=r(5027),i=r(8920),a=r(2739),s=r(7248),l=r(2688),c=r(6420),d=r(2713),u=d("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&n?h(n):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(n);for(var r=a.length;r--;)delete m.prototype[a[r]];return m()};s[u]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=o(e),r=new f,f.prototype=null,r[u]=e):r=m(),void 0===t?r:i.f(r,t)}},8920:(e,t,r)=>{"use strict";var n=r(7697),o=r(5648),i=r(2560),a=r(5027),s=r(5290),l=r(300);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),o=l(t),c=o.length,d=0;c>d;)i.f(e,r=o[d++],n[r]);return e}},2560:(e,t,r)=>{"use strict";var n=r(7697),o=r(8506),i=r(5648),a=r(5027),s=r(8360),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor;t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=d(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=s(t),a(r),o)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}},2474:(e,t,r)=>{"use strict";var n=r(7697),o=r(2615),i=r(9556),a=r(5684),s=r(5290),l=r(8360),c=r(6812),d=r(8506),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=s(e),t=l(t),d)try{return u(e,t)}catch(e){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},6062:(e,t,r)=>{"use strict";var n=r(6648),o=r(5290),i=r(2741).f,a=r(6004),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},2741:(e,t,r)=>{"use strict";var n=r(4948),o=r(2739).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},7518:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},1868:(e,t,r)=>{"use strict";var n=r(6812),o=r(9985),i=r(690),a=r(2713),s=r(1748),l=a("IE_PROTO"),c=Object,d=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(n(t,l))return t[l];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?d:null}},7049:(e,t,r)=>{"use strict";var n=r(3689),o=r(8999),i=r(6648),a=r(1655),s=Object.isExtensible,l=n((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},3622:(e,t,r)=>{"use strict";var n=r(8844);e.exports=n({}.isPrototypeOf)},4948:(e,t,r)=>{"use strict";var n=r(8844),o=r(6812),i=r(5290),a=r(4328).indexOf,s=r(7248),l=n([].push);e.exports=function(e,t){var r,n=i(e),c=0,d=[];for(r in n)!o(s,r)&&o(n,r)&&l(d,r);for(;t.length>c;)o(n,r=t[c++])&&(~a(d,r)||l(d,r));return d}},300:(e,t,r)=>{"use strict";var n=r(4948),o=r(2739);e.exports=Object.keys||function(e){return n(e,o)}},9556:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},9385:(e,t,r)=>{"use strict";var n=r(2743),o=r(5027),i=r(3550);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},9419:(e,t,r)=>{"use strict";var n=r(7697),o=r(3689),i=r(8844),a=r(1868),s=r(300),l=r(5290),c=i(r(9556).f),d=i([].push),u=n&&o((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),f=function(e){return function(t){for(var r,o=l(t),i=s(o),f=u&&null===a(o),p=i.length,h=0,m=[];p>h;)r=i[h++],n&&!(f?r in o:c(o,r))||d(m,e?[r,o[r]]:o[r]);return m}};e.exports={entries:f(!0),values:f(!1)}},5073:(e,t,r)=>{"use strict";var n=r(3043),o=r(926);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},5899:(e,t,r)=>{"use strict";var n=r(2615),o=r(9985),i=r(8999),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},9152:(e,t,r)=>{"use strict";var n=r(6058),o=r(8844),i=r(2741),a=r(7518),s=r(5027),l=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?l(t,r(e)):t}},496:(e,t,r)=>{"use strict";var n=r(9037);e.exports=n},9302:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},7073:(e,t,r)=>{"use strict";var n=r(9037),o=r(7919),i=r(9985),a=r(5266),s=r(6738),l=r(4201),c=r(2532),d=r(8563),u=r(3931),f=r(3615),p=o&&o.prototype,h=l("species"),m=!1,g=i(n.PromiseRejectionEvent),b=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===f)return!0;if(u&&(!p.catch||!p.finally))return!0;if(!f||f<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(m=r.then((function(){}))instanceof n))return!0}return!t&&(c||d)&&!g}));e.exports={CONSTRUCTOR:b,REJECTION_EVENT:g,SUBCLASSING:m}},7919:(e,t,r)=>{"use strict";var n=r(9037);e.exports=n.Promise},2945:(e,t,r)=>{"use strict";var n=r(5027),o=r(8999),i=r(8742);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},562:(e,t,r)=>{"use strict";var n=r(7919),o=r(6431),i=r(7073).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},8055:(e,t,r)=>{"use strict";var n=r(2560).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},4410:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},6100:(e,t,r)=>{"use strict";var n=r(2615),o=r(5027),i=r(9985),a=r(6648),s=r(6308),l=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var c=n(r,e,t);return null!==c&&o(c),c}if("RegExp"===a(e))return n(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},6308:(e,t,r)=>{"use strict";var n,o,i=r(2615),a=r(8844),s=r(4327),l=r(9633),c=r(7901),d=r(3430),u=r(5391),f=r(618).get,p=r(2100),h=r(6422),m=d("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,b=g,v=a("".charAt),y=a("".indexOf),w=a("".replace),x=a("".slice),_=(o=/b*/g,i(g,n=/a/,"a"),i(g,o,"a"),0!==n.lastIndex||0!==o.lastIndex),k=c.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(_||S||k||p||h)&&(b=function(e){var t,r,n,o,a,c,d,p=this,h=f(p),E=s(e),T=h.raw;if(T)return T.lastIndex=p.lastIndex,t=i(b,T,E),p.lastIndex=T.lastIndex,t;var C=h.groups,A=k&&p.sticky,O=i(l,p),D=p.source,j=0,P=E;if(A&&(O=w(O,"y",""),-1===y(O,"g")&&(O+="g"),P=x(E,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==v(E,p.lastIndex-1))&&(D="(?: "+D+")",P=" "+P,j++),r=new RegExp("^(?:"+D+")",O)),S&&(r=new RegExp("^"+D+"$(?!\\s)",O)),_&&(n=p.lastIndex),o=i(g,A?r:p,P),A?o?(o.input=x(o.input,j),o[0]=x(o[0],j),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:_&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),S&&o&&o.length>1&&i(m,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&C)for(o.groups=c=u(null),a=0;a<C.length;a++)c[(d=C[a])[0]]=o[d[1]];return o}),e.exports=b},9633:(e,t,r)=>{"use strict";var n=r(5027);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},3477:(e,t,r)=>{"use strict";var n=r(2615),o=r(6812),i=r(3622),a=r(9633),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:n(a,e)}},7901:(e,t,r)=>{"use strict";var n=r(3689),o=r(9037).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),s=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},2100:(e,t,r)=>{"use strict";var n=r(3689),o=r(9037).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},6422:(e,t,r)=>{"use strict";var n=r(3689),o=r(9037).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},4684:(e,t,r)=>{"use strict";var n=r(981),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},517:(e,t,r)=>{"use strict";var n=r(9037),o=r(7697),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var t=i(n,e);return t&&t.value}},953:e=>{"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},4241:(e,t,r)=>{"use strict";var n=r(6058),o=r(2148),i=r(4201),a=r(7697),s=i("species");e.exports=function(e){var t=n(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},5997:(e,t,r)=>{"use strict";var n=r(2560).f,o=r(6812),i=r(4201)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},2713:(e,t,r)=>{"use strict";var n=r(3430),o=r(4630),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},4091:(e,t,r)=>{"use strict";var n=r(9037),o=r(5014),i=n["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},3430:(e,t,r)=>{"use strict";var n=r(3931),o=r(4091);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6373:(e,t,r)=>{"use strict";var n=r(5027),o=r(2655),i=r(981),a=r(4201)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||i(r=n(s)[a])?t:o(r)}},730:(e,t,r)=>{"use strict";var n=r(8844),o=r(8700),i=r(4327),a=r(4684),s=n("".charAt),l=n("".charCodeAt),c=n("".slice),d=function(e){return function(t,r){var n,d,u=i(a(t)),f=o(r),p=u.length;return f<0||f>=p?e?"":void 0:(n=l(u,f))<55296||n>56319||f+1===p||(d=l(u,f+1))<56320||d>57343?e?s(u,f):n:e?c(u,f,f+2):d-56320+(n-55296<<10)+65536}};e.exports={codeAt:d(!1),charAt:d(!0)}},5984:(e,t,r)=>{"use strict";var n=r(1236).PROPER,o=r(3689),i=r(6350);e.exports=function(e){return o((function(){return!!i[e]()||"
"!=="
"[e]()||n&&i[e].name!==e}))}},1435:(e,t,r)=>{"use strict";var n=r(8844),o=r(4684),i=r(4327),a=r(6350),s=n("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),d=function(e){return function(t){var r=i(o(t));return 1&e&&(r=s(r,l,"")),2&e&&(r=s(r,c,"$1")),r}};e.exports={start:d(1),end:d(2),trim:d(3)}},146:(e,t,r)=>{"use strict";var n=r(3615),o=r(3689),i=r(9037).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3032:(e,t,r)=>{"use strict";var n=r(2615),o=r(6058),i=r(4201),a=r(1880);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return n(r,this)}),{arity:1})}},6549:(e,t,r)=>{"use strict";var n=r(146);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},9886:(e,t,r)=>{"use strict";var n,o,i,a,s=r(9037),l=r(1735),c=r(4071),d=r(9985),u=r(6812),f=r(3689),p=r(2688),h=r(6004),m=r(6420),g=r(1500),b=r(4764),v=r(806),y=s.setImmediate,w=s.clearImmediate,x=s.process,_=s.Dispatch,k=s.Function,S=s.MessageChannel,E=s.String,T=0,C={};f((function(){n=s.location}));var A=function(e){if(u(C,e)){var t=C[e];delete C[e],t()}},O=function(e){return function(){A(e)}},D=function(e){A(e.data)},j=function(e){s.postMessage(E(e),n.protocol+"//"+n.host)};y&&w||(y=function(e){g(arguments.length,1);var t=d(e)?e:k(e),r=h(arguments,1);return C[++T]=function(){l(t,void 0,r)},o(T),T},w=function(e){delete C[e]},v?o=function(e){x.nextTick(O(e))}:_&&_.now?o=function(e){_.now(O(e))}:S&&!b?(a=(i=new S).port2,i.port1.onmessage=D,o=c(a.postMessage,a)):s.addEventListener&&d(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(j)?(o=j,s.addEventListener("message",D,!1)):o="onreadystatechange"in m("script")?function(e){p.appendChild(m("script")).onreadystatechange=function(){p.removeChild(this),A(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:y,clear:w}},3648:(e,t,r)=>{"use strict";var n=r(8844);e.exports=n(1..valueOf)},7578:(e,t,r)=>{"use strict";var n=r(8700),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},5290:(e,t,r)=>{"use strict";var n=r(4413),o=r(4684);e.exports=function(e){return n(o(e))}},8700:(e,t,r)=>{"use strict";var n=r(8828);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},3126:(e,t,r)=>{"use strict";var n=r(8700),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},690:(e,t,r)=>{"use strict";var n=r(4684),o=Object;e.exports=function(e){return o(n(e))}},8732:(e,t,r)=>{"use strict";var n=r(2615),o=r(8999),i=r(734),a=r(4849),s=r(5899),l=r(4201),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,l=a(e,d);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!o(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},8360:(e,t,r)=>{"use strict";var n=r(8732),o=r(734);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},3043:(e,t,r)=>{"use strict";var n={};n[r(4201)("toStringTag")]="z",e.exports="[object z]"===String(n)},4327:(e,t,r)=>{"use strict";var n=r(926),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},3691:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},4630:(e,t,r)=>{"use strict";var n=r(8844),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},9525:(e,t,r)=>{"use strict";var n=r(146);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5648:(e,t,r)=>{"use strict";var n=r(7697),o=r(3689);e.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1500:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},9834:(e,t,r)=>{"use strict";var n=r(9037),o=r(9985),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},5405:(e,t,r)=>{"use strict";var n=r(496),o=r(6812),i=r(6145),a=r(2560).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},6145:(e,t,r)=>{"use strict";var n=r(4201);t.f=n},4201:(e,t,r)=>{"use strict";var n=r(9037),o=r(3430),i=r(6812),a=r(4630),s=r(146),l=r(9525),c=n.Symbol,d=o("wks"),u=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(d,e)||(d[e]=s&&i(c,e)?c[e]:u("Symbol."+e)),d[e]}},6350:e=>{"use strict";e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},4338:(e,t,r)=>{"use strict";var n=r(9989),o=r(3689),i=r(2297),a=r(8999),s=r(690),l=r(6310),c=r(5565),d=r(6522),u=r(7120),f=r(9042),p=r(4201),h=r(3615),m=p("isConcatSpreadable"),g=h>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),b=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!g||!f("concat")},{concat:function(e){var t,r,n,o,i,a=s(this),f=u(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(b(i=-1===t?a:arguments[t]))for(o=l(i),c(p+o),r=0;r<o;r++,p++)r in i&&d(f,p,i[r]);else c(p+1),d(f,p++,i);return f.length=p,f}})},8077:(e,t,r)=>{"use strict";var n=r(9989),o=r(2960).filter;n({target:"Array",proto:!0,forced:!r(9042)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},5728:(e,t,r)=>{"use strict";var n=r(9989),o=r(2960).find,i=r(7370),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},4418:(e,t,r)=>{"use strict";var n=r(9989),o=r(1055);n({target:"Array",stat:!0,forced:!r(6431)((function(e){Array.from(e)}))},{from:o})},6801:(e,t,r)=>{"use strict";var n=r(9989),o=r(4328).includes,i=r(3689),a=r(7370);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},752:(e,t,r)=>{"use strict";var n=r(5290),o=r(7370),i=r(9478),a=r(618),s=r(2560).f,l=r(1934),c=r(7807),d=r(3931),u=r(7697),f=a.set,p=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!d&&u&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(e){}},6203:(e,t,r)=>{"use strict";var n=r(9989),o=r(8844),i=r(4413),a=r(5290),s=r(6834),l=o([].join);n({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},886:(e,t,r)=>{"use strict";var n=r(9989),o=r(2960).map;n({target:"Array",proto:!0,forced:!r(9042)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},9730:(e,t,r)=>{"use strict";var n=r(9989),o=r(2297),i=r(9429),a=r(8999),s=r(7578),l=r(6310),c=r(5290),d=r(6522),u=r(4201),f=r(9042),p=r(6004),h=f("slice"),m=u("species"),g=Array,b=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,u,f=c(this),h=l(f),v=s(e,h),y=s(void 0===t?h:t,h);if(o(f)&&(r=f.constructor,(i(r)&&(r===g||o(r.prototype))||a(r)&&null===(r=r[m]))&&(r=void 0),r===g||void 0===r))return p(f,v,y);for(n=new(void 0===r?g:r)(b(y-v,0)),u=0;v<y;v++,u++)v in f&&d(n,u,f[v]);return n.length=u,n}})},5137:(e,t,r)=>{"use strict";var n=r(9989),o=r(8844),i=r(509),a=r(690),s=r(6310),l=r(8494),c=r(4327),d=r(3689),u=r(382),f=r(6834),p=r(7365),h=r(7298),m=r(3615),g=r(7922),b=[],v=o(b.sort),y=o(b.push),w=d((function(){b.sort(void 0)})),x=d((function(){b.sort(null)})),_=f("sort"),k=!d((function(){if(m)return m<70;if(!(p&&p>3)){if(h)return!0;if(g)return g<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)b.push({k:t+n,v:r})}for(b.sort((function(e,t){return t.v-e.v})),n=0;n<b.length;n++)t=b[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));n({target:"Array",proto:!0,forced:w||!x||!_||!k},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(k)return void 0===e?v(t):v(t,e);var r,n,o=[],d=s(t);for(n=0;n<d;n++)n in t&&y(o,t[n]);for(u(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:c(t)>c(r)?1:-1}}(e)),r=s(o),n=0;n<r;)t[n]=o[n++];for(;n<d;)l(t,n++);return t}})},2506:(e,t,r)=>{"use strict";var n=r(9989),o=r(690),i=r(7578),a=r(8700),s=r(6310),l=r(5649),c=r(5565),d=r(7120),u=r(6522),f=r(8494),p=r(9042)("splice"),h=Math.max,m=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var r,n,p,g,b,v,y=o(this),w=s(y),x=i(e,w),_=arguments.length;for(0===_?r=n=0:1===_?(r=0,n=w-x):(r=_-2,n=m(h(a(t),0),w-x)),c(w+r-n),p=d(y,n),g=0;g<n;g++)(b=x+g)in y&&u(p,g,y[b]);if(p.length=n,r<n){for(g=x;g<w-n;g++)v=g+r,(b=g+n)in y?y[v]=y[b]:f(y,v);for(g=w;g>w-n+r;g--)f(y,g-1)}else if(r>n)for(g=w-n;g>x;g--)v=g+r-1,(b=g+n-1)in y?y[v]=y[b]:f(y,v);for(g=0;g<r;g++)y[g+x]=arguments[g+2];return l(y,w-n+r),p}})},9903:(e,t,r)=>{"use strict";var n=r(6812),o=r(1880),i=r(1797),a=r(4201)("toPrimitive"),s=Date.prototype;n(s,a)||o(s,a,i)},4284:(e,t,r)=>{"use strict";var n=r(7697),o=r(1236).EXISTS,i=r(8844),a=r(2148),s=Function.prototype,l=i(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,d=i(c.exec);n&&!o&&a(s,"name",{configurable:!0,get:function(){try{return d(c,l(this))[1]}catch(e){return""}}})},5398:(e,t,r)=>{"use strict";var n=r(9989),o=r(9037);n({global:!0,forced:o.globalThis!==o},{globalThis:o})},8324:(e,t,r)=>{"use strict";var n=r(9989),o=r(6058),i=r(1735),a=r(2615),s=r(8844),l=r(3689),c=r(9985),d=r(734),u=r(6004),f=r(2643),p=r(146),h=String,m=o("JSON","stringify"),g=s(/./.exec),b=s("".charAt),v=s("".charCodeAt),y=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,S=!p||l((function(){var e=o("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),E=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),T=function(e,t){var r=u(arguments),n=f(t);if(c(n)||void 0!==e&&!d(e))return r[1]=function(e,t){if(c(n)&&(t=a(n,this,h(e),t)),!d(t))return t},i(m,null,r)},C=function(e,t,r){var n=b(r,t-1),o=b(r,t+1);return g(_,e)&&!g(k,o)||g(k,e)&&!g(_,n)?"\\u"+w(v(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:S||E},{stringify:function(e,t,r){var n=u(arguments),o=i(S?T:m,null,n);return E&&"string"==typeof o?y(o,x,C):o}})},7629:(e,t,r)=>{"use strict";var n=r(9037);r(5997)(n.JSON,"JSON",!0)},9322:(e,t,r)=>{"use strict";r(319)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(800))},6646:(e,t,r)=>{"use strict";r(9322)},7509:(e,t,r)=>{"use strict";r(5997)(Math,"Math",!0)},9288:(e,t,r)=>{"use strict";var n=r(9989),o=r(3931),i=r(7697),a=r(9037),s=r(496),l=r(8844),c=r(5266),d=r(6812),u=r(3457),f=r(3622),p=r(734),h=r(8732),m=r(3689),g=r(2741).f,b=r(2474).f,v=r(2560).f,y=r(3648),w=r(1435).trim,x=a.Number,_=s.Number,k=x.prototype,S=a.TypeError,E=l("".slice),T=l("".charCodeAt),C=function(e){var t=h(e,"number");return"bigint"==typeof t?t:A(t)},A=function(e){var t,r,n,o,i,a,s,l,c=h(e,"number");if(p(c))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(t=T(c,0))||45===t){if(88===(r=T(c,2))||120===r)return NaN}else if(48===t){switch(T(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=E(c,2)).length,s=0;s<a;s++)if((l=T(i,s))<48||l>o)return NaN;return parseInt(i,n)}return+c},O=c("Number",!x(" 0o1")||!x("0b1")||x("+0x1")),D=function(e){return f(k,e)&&m((function(){y(e)}))},j=function(e){var t=arguments.length<1?0:x(C(e));return D(this)?u(Object(t),this,j):t};j.prototype=k,O&&!o&&(k.constructor=j),n({global:!0,constructor:!0,wrap:!0,forced:O},{Number:j});var P=function(e,t){for(var r,n=i?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)d(t,r=n[o])&&!d(e,r)&&v(e,r,b(t,r))};o&&_&&P(s.Number,_),(O||o)&&P(s.Number,x)},1552:(e,t,r)=>{"use strict";var n=r(9989),o=r(7897);n({target:"Number",stat:!0,forced:Number.parseInt!==o},{parseInt:o})},429:(e,t,r)=>{"use strict";var n=r(9989),o=r(5394);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},1919:(e,t,r)=>{"use strict";var n=r(9989),o=r(3689),i=r(5290),a=r(2474).f,s=r(7697);n({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},9434:(e,t,r)=>{"use strict";var n=r(9989),o=r(146),i=r(3689),a=r(7518),s=r(690);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},8052:(e,t,r)=>{"use strict";var n=r(9989),o=r(3689),i=r(690),a=r(1868),s=r(1748);n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},9358:(e,t,r)=>{"use strict";var n=r(9989),o=r(690),i=r(300);n({target:"Object",stat:!0,forced:r(3689)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},228:(e,t,r)=>{"use strict";var n=r(3043),o=r(1880),i=r(5073);n||o(Object.prototype,"toString",i,{unsafe:!0})},6466:(e,t,r)=>{"use strict";var n=r(9989),o=r(9419).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},1692:(e,t,r)=>{"use strict";var n=r(9989),o=r(2615),i=r(509),a=r(8742),s=r(9302),l=r(8734);n({target:"Promise",stat:!0,forced:r(562)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,c=r.reject,d=s((function(){var r=i(t.resolve),a=[],s=0,d=1;l(e,(function(e){var i=s++,l=!1;d++,o(r,t,e).then((function(e){l||(l=!0,a[i]=e,--d||n(a))}),c)})),--d||n(a)}));return d.error&&c(d.value),r.promise}})},5089:(e,t,r)=>{"use strict";var n=r(9989),o=r(3931),i=r(7073).CONSTRUCTOR,a=r(7919),s=r(6058),l=r(9985),c=r(1880),d=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&l(a)){var u=s("Promise").prototype.catch;d.catch!==u&&c(d,"catch",u,{unsafe:!0})}},6697:(e,t,r)=>{"use strict";var n,o,i,a=r(9989),s=r(3931),l=r(806),c=r(9037),d=r(2615),u=r(1880),f=r(9385),p=r(5997),h=r(4241),m=r(509),g=r(9985),b=r(8999),v=r(767),y=r(6373),w=r(9886).set,x=r(231),_=r(920),k=r(9302),S=r(4410),E=r(618),T=r(7919),C=r(7073),A=r(8742),O=C.CONSTRUCTOR,D=C.REJECTION_EVENT,j=C.SUBCLASSING,P=E.getterFor("Promise"),R=E.set,I=T&&T.prototype,N=T,L=I,M=c.TypeError,F=c.document,B=c.process,U=A.f,V=U,$=!!(F&&F.createEvent&&c.dispatchEvent),H=function(e){var t;return!(!b(e)||!g(t=e.then))&&t},W=function(e,t){var r,n,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&X(t),t.rejection=1),!0===s?r=i:(u&&u.enter(),r=s(i),u&&(u.exit(),o=!0)),r===e.promise?c(new M("Promise-chain cycle")):(n=H(r))?d(n,r,l,c):l(r)):c(i)}catch(e){u&&!o&&u.exit(),c(e)}},z=function(e,t){e.notified||(e.notified=!0,x((function(){for(var r,n=e.reactions;r=n.get();)W(r,e);e.notified=!1,t&&!e.rejection&&G(e)})))},Y=function(e,t,r){var n,o;$?((n=F.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!D&&(o=c["on"+e])?o(n):"unhandledrejection"===e&&_("Unhandled promise rejection",r)},G=function(e){d(w,c,(function(){var t,r=e.facade,n=e.value;if(q(e)&&(t=k((function(){l?B.emit("unhandledRejection",n,r):Y("unhandledrejection",r,n)})),e.rejection=l||q(e)?2:1,t.error))throw t.value}))},q=function(e){return 1!==e.rejection&&!e.parent},X=function(e){d(w,c,(function(){var t=e.facade;l?B.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)}))},Q=function(e,t,r){return function(n){e(t,n,r)}},Z=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,z(e,!0))},K=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new M("Promise can't be resolved itself");var n=H(t);n?x((function(){var r={done:!1};try{d(n,t,Q(K,r,e),Q(Z,r,e))}catch(t){Z(r,t,e)}})):(e.value=t,e.state=1,z(e,!1))}catch(t){Z({done:!1},t,e)}}};if(O&&(L=(N=function(e){v(this,L),m(e),d(n,this);var t=P(this);try{e(Q(K,t),Q(Z,t))}catch(e){Z(t,e)}}).prototype,(n=function(e){R(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=u(L,"then",(function(e,t){var r=P(this),n=U(y(this,N));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=l?B.domain:void 0,0===r.state?r.reactions.add(n):x((function(){W(n,r)})),n.promise})),o=function(){var e=new n,t=P(e);this.promise=e,this.resolve=Q(K,t),this.reject=Q(Z,t)},A.f=U=function(e){return e===N||void 0===e?new o(e):V(e)},!s&&g(T)&&I!==Object.prototype)){i=I.then,j||u(I,"then",(function(e,t){var r=this;return new N((function(e,t){d(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete I.constructor}catch(e){}f&&f(I,L)}a({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:N}),p(N,"Promise",!1,!0),h("Promise")},3964:(e,t,r)=>{"use strict";r(6697),r(1692),r(5089),r(8829),r(2092),r(7905)},8829:(e,t,r)=>{"use strict";var n=r(9989),o=r(2615),i=r(509),a=r(8742),s=r(9302),l=r(8734);n({target:"Promise",stat:!0,forced:r(562)},{race:function(e){var t=this,r=a.f(t),n=r.reject,c=s((function(){var a=i(t.resolve);l(e,(function(e){o(a,t,e).then(r.resolve,n)}))}));return c.error&&n(c.value),r.promise}})},2092:(e,t,r)=>{"use strict";var n=r(9989),o=r(8742);n({target:"Promise",stat:!0,forced:r(7073).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},7905:(e,t,r)=>{"use strict";var n=r(9989),o=r(6058),i=r(3931),a=r(7919),s=r(7073).CONSTRUCTOR,l=r(2945),c=o("Promise"),d=i&&!s;n({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(d&&this===c?a:this,e)}})},50:(e,t,r)=>{"use strict";var n=r(9989),o=r(6058),i=r(1735),a=r(6761),s=r(2655),l=r(5027),c=r(8999),d=r(5391),u=r(3689),f=o("Reflect","construct"),p=Object.prototype,h=[].push,m=u((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),g=!u((function(){f((function(){}))})),b=m||g;n({target:"Reflect",stat:!0,forced:b,sham:b},{construct:function(e,t){s(e),l(t);var r=arguments.length<3?e:s(arguments[2]);if(g&&!m)return f(e,t,r);if(e===r){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])}var n=[null];return i(h,n,t),new(i(a,e,n))}var o=r.prototype,u=d(c(o)?o:p),b=i(e,u,t);return c(b)?b:u}})},2349:(e,t,r)=>{"use strict";var n=r(9989),o=r(2615),i=r(8999),a=r(5027),s=r(6251),l=r(2474),c=r(1868);n({target:"Reflect",stat:!0},{get:function e(t,r){var n,d,u=arguments.length<3?t:arguments[2];return a(t)===u?t[r]:(n=l.f(t,r))?s(n)?n.value:void 0===n.get?void 0:o(n.get,u):i(d=c(t))?e(d,r,u):void 0}})},2003:(e,t,r)=>{"use strict";var n=r(7697),o=r(9037),i=r(8844),a=r(5266),s=r(3457),l=r(5773),c=r(5391),d=r(2741).f,u=r(3622),f=r(1245),p=r(4327),h=r(3477),m=r(7901),g=r(8055),b=r(1880),v=r(3689),y=r(6812),w=r(618).enforce,x=r(4241),_=r(4201),k=r(2100),S=r(6422),E=_("match"),T=o.RegExp,C=T.prototype,A=o.SyntaxError,O=i(C.exec),D=i("".charAt),j=i("".replace),P=i("".indexOf),R=i("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,N=/a/g,L=/a/g,M=new T(N)!==N,F=m.MISSED_STICKY,B=m.UNSUPPORTED_Y,U=n&&(!M||F||k||S||v((function(){return L[E]=!1,T(N)!==N||T(L)===L||"/a/i"!==String(T(N,"i"))})));if(a("RegExp",U)){for(var V=function(e,t){var r,n,o,i,a,d,m=u(C,this),g=f(e),b=void 0===t,v=[],x=e;if(!m&&g&&b&&e.constructor===V)return e;if((g||u(C,e))&&(e=e.source,b&&(t=h(x))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),x=e,k&&"dotAll"in N&&(n=!!t&&P(t,"s")>-1)&&(t=j(t,/s/g,"")),r=t,F&&"sticky"in N&&(o=!!t&&P(t,"y")>-1)&&B&&(t=j(t,/y/g,"")),S&&(e=(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a=c(null),s=!1,l=!1,d=0,u="";n<=r;n++){if("\\"===(t=D(e,n)))t+=D(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:O(I,R(e,n+1))&&(n+=2,l=!0),o+=t,d++;continue;case">"===t&&l:if(""===u||y(a,u))throw new A("Invalid capture group name");a[u]=!0,i[i.length]=[u,d],l=!1,u="";continue}l?u+=t:o+=t}return[o,i]}(e))[0],v=i[1]),a=s(T(e,t),m?this:C,V),(n||o||v.length)&&(d=w(a),n&&(d.dotAll=!0,d.raw=V(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=D(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+D(e,++n);return o}(e),r)),o&&(d.sticky=!0),v.length&&(d.groups=v)),e!==x)try{l(a,"source",""===x?"(?:)":x)}catch(e){}return a},$=d(T),H=0;$.length>H;)g(V,T,$[H++]);C.constructor=V,V.prototype=C,b(o,"RegExp",V,{constructor:!0})}x("RegExp")},4043:(e,t,r)=>{"use strict";var n=r(9989),o=r(6308);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},2826:(e,t,r)=>{"use strict";var n=r(1236).PROPER,o=r(1880),i=r(5027),a=r(4327),s=r(3689),l=r(3477),c=RegExp.prototype,d=c.toString,u=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),f=n&&"toString"!==d.name;(u||f)&&o(c,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},7985:(e,t,r)=>{"use strict";r(319)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(800))},9649:(e,t,r)=>{"use strict";r(7985)},3843:(e,t,r)=>{"use strict";var n=r(9989),o=r(8844),i=r(2124),a=r(4684),s=r(4327),l=r(7413),c=o("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},1694:(e,t,r)=>{"use strict";var n=r(730).charAt,o=r(4327),i=r(618),a=r(1934),s=r(7807),l=i.set,c=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=c(this),r=t.string,o=t.index;return o>=r.length?s(void 0,!0):(e=n(r,o),t.index+=e.length,s(e,!1))}))},2462:(e,t,r)=>{"use strict";var n=r(2615),o=r(8678),i=r(5027),a=r(981),s=r(3126),l=r(4327),c=r(4684),d=r(4849),u=r(1514),f=r(6100);o("match",(function(e,t,r){return[function(t){var r=c(this),o=a(t)?void 0:d(t,e);return o?n(o,t,r):new RegExp(t)[e](l(r))},function(e){var n=i(this),o=l(e),a=r(t,n,o);if(a.done)return a.value;if(!n.global)return f(n,o);var c=n.unicode;n.lastIndex=0;for(var d,p=[],h=0;null!==(d=f(n,o));){var m=l(d[0]);p[h]=m,""===m&&(n.lastIndex=u(o,s(n.lastIndex),c)),h++}return 0===h?null:p}]}))},7267:(e,t,r)=>{"use strict";var n=r(1735),o=r(2615),i=r(8844),a=r(8678),s=r(3689),l=r(5027),c=r(9985),d=r(981),u=r(8700),f=r(3126),p=r(4327),h=r(4684),m=r(1514),g=r(4849),b=r(7017),v=r(6100),y=r(4201)("replace"),w=Math.max,x=Math.min,_=i([].concat),k=i([].push),S=i("".indexOf),E=i("".slice),T="$0"==="a".replace(/./,"$0"),C=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(e,t,r){var i=C?"$":"$0";return[function(e,r){var n=h(this),i=d(e)?void 0:g(e,y);return i?o(i,e,n,r):o(t,p(n),e,r)},function(e,o){var a=l(this),s=p(e);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var d=r(t,a,s,o);if(d.done)return d.value}var h=c(o);h||(o=p(o));var g,y=a.global;y&&(g=a.unicode,a.lastIndex=0);for(var T,C=[];null!==(T=v(a,s))&&(k(C,T),y);){""===p(T[0])&&(a.lastIndex=m(s,f(a.lastIndex),g))}for(var A,O="",D=0,j=0;j<C.length;j++){for(var P,R=p((T=C[j])[0]),I=w(x(u(T.index),s.length),0),N=[],L=1;L<T.length;L++)k(N,void 0===(A=T[L])?A:String(A));var M=T.groups;if(h){var F=_([R],N,I,s);void 0!==M&&k(F,M),P=p(n(o,void 0,F))}else P=b(R,s,I,N,M,o);I>=D&&(O+=E(s,D,I)+P,D=I+R.length)}return O+E(s,D)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!T||C)},7872:(e,t,r)=>{"use strict";var n=r(2615),o=r(8678),i=r(5027),a=r(981),s=r(4684),l=r(953),c=r(4327),d=r(4849),u=r(6100);o("search",(function(e,t,r){return[function(t){var r=s(this),o=a(t)?void 0:d(t,e);return o?n(o,t,r):new RegExp(t)[e](c(r))},function(e){var n=i(this),o=c(e),a=r(t,n,o);if(a.done)return a.value;var s=n.lastIndex;l(s,0)||(n.lastIndex=0);var d=u(n,o);return l(n.lastIndex,s)||(n.lastIndex=s),null===d?-1:d.index}]}))},268:(e,t,r)=>{"use strict";var n,o=r(9989),i=r(6576),a=r(2474).f,s=r(3126),l=r(4327),c=r(2124),d=r(4684),u=r(7413),f=r(3931),p=i("".slice),h=Math.min,m=u("startsWith");o({target:"String",proto:!0,forced:!!(f||m||(n=a(String.prototype,"startsWith"),!n||n.writable))&&!m},{startsWith:function(e){var t=l(d(this));c(e);var r=s(h(arguments.length>1?arguments[1]:void 0,t.length)),n=l(e);return p(t,r,r+n.length)===n}})},8436:(e,t,r)=>{"use strict";var n=r(9989),o=r(1435).trim;n({target:"String",proto:!0,forced:r(5984)("trim")},{trim:function(){return o(this)}})},8373:(e,t,r)=>{"use strict";r(5405)("asyncIterator")},7855:(e,t,r)=>{"use strict";var n=r(9989),o=r(9037),i=r(2615),a=r(8844),s=r(3931),l=r(7697),c=r(146),d=r(3689),u=r(6812),f=r(3622),p=r(5027),h=r(5290),m=r(8360),g=r(4327),b=r(5684),v=r(5391),y=r(300),w=r(2741),x=r(6062),_=r(7518),k=r(2474),S=r(2560),E=r(8920),T=r(9556),C=r(1880),A=r(2148),O=r(3430),D=r(2713),j=r(7248),P=r(4630),R=r(4201),I=r(6145),N=r(5405),L=r(3032),M=r(5997),F=r(618),B=r(2960).forEach,U=D("hidden"),V=F.set,$=F.getterFor("Symbol"),H=Object.prototype,W=o.Symbol,z=W&&W.prototype,Y=o.RangeError,G=o.TypeError,q=o.QObject,X=k.f,Q=S.f,Z=x.f,K=T.f,J=a([].push),ee=O("symbols"),te=O("op-symbols"),re=O("wks"),ne=!q||!q.prototype||!q.prototype.findChild,oe=function(e,t,r){var n=X(H,t);n&&delete H[t],Q(e,t,r),n&&e!==H&&Q(H,t,n)},ie=l&&d((function(){return 7!==v(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?oe:Q,ae=function(e,t){var r=ee[e]=v(z);return V(r,{type:"Symbol",tag:e,description:t}),l||(r.description=t),r},se=function(e,t,r){e===H&&se(te,t,r),p(e);var n=m(t);return p(r),u(ee,n)?(r.enumerable?(u(e,U)&&e[U][n]&&(e[U][n]=!1),r=v(r,{enumerable:b(0,!1)})):(u(e,U)||Q(e,U,b(1,v(null))),e[U][n]=!0),ie(e,n,r)):Q(e,n,r)},le=function(e,t){p(e);var r=h(t),n=y(r).concat(fe(r));return B(n,(function(t){l&&!i(ce,r,t)||se(e,t,r[t])})),e},ce=function(e){var t=m(e),r=i(K,this,t);return!(this===H&&u(ee,t)&&!u(te,t))&&(!(r||!u(this,t)||!u(ee,t)||u(this,U)&&this[U][t])||r)},de=function(e,t){var r=h(e),n=m(t);if(r!==H||!u(ee,n)||u(te,n)){var o=X(r,n);return!o||!u(ee,n)||u(r,U)&&r[U][n]||(o.enumerable=!0),o}},ue=function(e){var t=Z(h(e)),r=[];return B(t,(function(e){u(ee,e)||u(j,e)||J(r,e)})),r},fe=function(e){var t=e===H,r=Z(t?te:h(e)),n=[];return B(r,(function(e){!u(ee,e)||t&&!u(H,e)||J(n,ee[e])})),n};c||(C(z=(W=function(){if(f(z,this))throw new G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=P(e),r=function(e){var n=void 0===this?o:this;n===H&&i(r,te,e),u(n,U)&&u(n[U],t)&&(n[U][t]=!1);var a=b(1,e);try{ie(n,t,a)}catch(e){if(!(e instanceof Y))throw e;oe(n,t,a)}};return l&&ne&&ie(H,t,{configurable:!0,set:r}),ae(t,e)}).prototype,"toString",(function(){return $(this).tag})),C(W,"withoutSetter",(function(e){return ae(P(e),e)})),T.f=ce,S.f=se,E.f=le,k.f=de,w.f=x.f=ue,_.f=fe,I.f=function(e){return ae(R(e),e)},l&&(A(z,"description",{configurable:!0,get:function(){return $(this).description}}),s||C(H,"propertyIsEnumerable",ce,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),B(y(re),(function(e){N(e)})),n({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?v(e):le(v(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:de}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue}),L(),M(W,"Symbol"),j[U]=!0},6544:(e,t,r)=>{"use strict";var n=r(9989),o=r(7697),i=r(9037),a=r(8844),s=r(6812),l=r(9985),c=r(3622),d=r(4327),u=r(2148),f=r(8758),p=i.Symbol,h=p&&p.prototype;if(o&&l(p)&&(!("description"in h)||void 0!==p().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:d(arguments[0]),t=c(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};f(g,p),g.prototype=h,h.constructor=g;var b="Symbol(description detection)"===String(p("description detection")),v=a(h.valueOf),y=a(h.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),_=a("".slice);u(h,"description",{configurable:!0,get:function(){var e=v(this);if(s(m,e))return"";var t=y(e),r=b?_(t,7,-1):x(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},3975:(e,t,r)=>{"use strict";var n=r(9989),o=r(6058),i=r(6812),a=r(4327),s=r(3430),l=r(6549),c=s("string-to-symbol-registry"),d=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(c,t))return c[t];var r=o("Symbol")(t);return c[t]=r,d[r]=t,r}})},4254:(e,t,r)=>{"use strict";r(5405)("iterator")},9749:(e,t,r)=>{"use strict";r(7855),r(3975),r(1445),r(8324),r(9434)},1445:(e,t,r)=>{"use strict";var n=r(9989),o=r(6812),i=r(734),a=r(3691),s=r(3430),l=r(6549),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(o(c,e))return c[e]}})},9373:(e,t,r)=>{"use strict";var n=r(5405),o=r(3032);n("toPrimitive"),o()},6793:(e,t,r)=>{"use strict";var n=r(6058),o=r(5405),i=r(5997);o("toStringTag"),i(n("Symbol"),"Symbol")},8832:(e,t,r)=>{"use strict";r(5398)},7522:(e,t,r)=>{"use strict";var n=r(9037),o=r(6338),i=r(3265),a=r(7612),s=r(5773),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in o)o[c]&&l(n[c]&&n[c].prototype);l(i)},6265:(e,t,r)=>{"use strict";var n=r(9037),o=r(6338),i=r(3265),a=r(752),s=r(5773),l=r(5997),c=r(4201)("iterator"),d=a.values,u=function(e,t){if(e){if(e[c]!==d)try{s(e,c,d)}catch(t){e[c]=d}if(l(e,t,!0),o[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var f in o)u(n[f]&&n[f].prototype,f);u(i,"DOMTokenList")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.b=document.baseURI||self.location.href,r.nc=void 0;var n={};return(()=>{"use strict";r.r(n),r.d(n,{Editor:()=>cs,ItemStore:()=>td,LevelEditor:()=>ec,Presenter:()=>Ka,ValidationPresenter:()=>Ql,bundleLoader:()=>dd,engine:()=>Ta,renderingContext:()=>ro,system:()=>Hn,utils:()=>Vn,validate:()=>Ma});r(3734);var e=r(9755),t=r.n(e);r(2506),r(8077),r(228),r(9749),r(6544),r(4254),r(752),r(1694),r(6265),r(5728),r(9358),r(7522),r(886),r(6801),r(3843),r(9373),r(9903),r(9288),r(8832),r(4338);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})(e)}"__rdfjson_namespaces"in globalThis||(globalThis.__rdfjson_namespaces={ical:"http://www.w3.org/2002/12/cal/ical#",vcard:"http://www.w3.org/2006/vcard/ns#",dcterms:"http://purl.org/dc/terms/",skos:"http://www.w3.org/2004/02/skos/core#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",owl:"http://www.w3.org/2002/07/owl#",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",foaf:"http://xmlns.com/foaf/0.1/",wot:"http://xmlns.com/wot/0.1/",dc:"http://purl.org/dc/elements/1.1/",xsd:"http://www.w3.org/2001/XMLSchema#",dcat:"http://www.w3.org/ns/dcat#",org:"http://www.w3.org/ns/org#",gn:"http://www.geonames.org/ontology#",locn:"http://www.w3.org/ns/locn#",schema:"http://schema.org/",ex:"http://example.com/",gsp:"http://www.opengis.net/ont/geosparql#",odrs:"http://schema.theodi.org/odrs#"});var i=globalThis.__rdfjson_namespaces,a=0,l=function(e,t,r){return i[e]||(i[e]=t),{abbrev:e,ns:t,localname:r,full:t+r,pretty:"".concat(e,":").concat(r)}},c=function(e){var t=Object.keys(i).find((function(t){return 0===e.indexOf(i[t])}));if(t)return l(t,i[t],e.substring(i[t].length));var r=e.lastIndexOf("/"),n=e.lastIndexOf("#");return n>r&&(r=n),l("ns".concat(a+=1),e.substring(0,r+1),e.substring(r+1))};const d=function(e){var t=Object.keys(i).find((function(t){return 0===e.indexOf(i[t])}));return t?l(t,i[t],e.substring(i[t].length)).pretty:e},u=function(e){return c(e).pretty},f=function(e){var t=e.split(":");return 2===t.length&&i.hasOwnProperty(t[0])?i[t[0]]+t[1]:e},p=function(e,t){"string"==typeof e?i[e]=t:"object"===o(e)&&Object.keys(e).forEach((function(t){i[t]=e[t]}))};r(8373),r(6793),r(7629),r(7509),r(8052),r(4284),r(9730),r(3964),r(6466),r(2826),r(9649);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var m=function(e){return void 0!==e&&(null===e||"object"===h(e)||Array.isArray(e)||"function"==typeof e)},g=function(e){return"string"==typeof e||e instanceof String},b=function(e,t,r){0===e[t][r].length&&(delete e[t][r],0===Object.keys(e[t]).length&&delete e[t])},v=function(e){if(!m(e[0]))throw new Error("Graph is not a object.");if(!g(e[1]))throw new Error("Subject is not a string.");if(!g(e[2]))throw new Error("Predicate is not a string.");if(!m(e[3]))throw new Error("Object is not a object.");if(void 0===e[3].type)throw new Error("Object has no type attribute, must be one of 'uri', 'literal', or 'bnode'");if(void 0===e[3].value)throw new Error("Object has no value attribute corresponding to the lexical value of the object.")},y=function(e,t){return e===t||null==e&&e===t||(g(e)?g(t)?e===t:e===t.value:g(t)?e.value===t:e.type===t.type&&e.value===t.value&&e.lang===t.lang&&e.datatype===t.datatype)},w=function(e){var t={type:e.type,value:e.value};return null!=e.ng&&(t.ng=e.ng),null!=e.lang&&(t.lang=e.lang),null!=e.datatype&&(t.datatype=e.datatype),t},x=function(e){return"".concat(e.value).concat(e.type).concat(e.lang||"").concat(e.datatype||"").concat(e.ng||"")};const _={isObject:m,isString:g,isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},statementEquals:function(e,t){return e.s===t.s&&e.p===t.p&&y(e.o,t.o)},add:function(e,t,r,n,o){if(v([e,t,r,n]),void 0===e[t])return e[t]={},e[t][r]=[n],n;if(void 0===e[t][r])return e[t][r]=[n],n;var i,a=e[t][r];if(!o)for(i=a.length-1;i>=0;i--)if(y(n,a[i]))return a[i];return a.push(n),n},remove:function(e,t,r,n){if(v([e,t,r,n]),void 0!==e[t]&&void 0!==e[t][r]){var o,i=e[t][r];for(o=i.length-1;o>=0;o--)if(y(n,i[o])){var a=i[o];return i.splice(o,1),b(e,t,r),a}}},contains:function(e,t,r,n){if(v([e,t,r,n]),void 0!==e[t]&&void 0!==e[t][r]){var o,i=e[t][r];for(o=i.length-1;o>=0;o--)if(y(n,i[o]))return i[o]}},cleanup:b,checkForWrongArgs:v,objectEquals:y,findDirectOrRDFValue:function(e,t,r){var n=e.find(t,r);if(n.length>0)return"bnode"!==n[0].getType()?n[0].getValue():e.findFirstValue(n[0].getValue(),"http://www.w3.org/1999/02/22-rdf-syntax-ns#value")},clone:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={};return Object.keys(e).forEach((function(n){var o=e[n];r[n]={},Object.keys(o).forEach((function(e){var i=o[e];if(1===i.length)r[n][e]=[w(i[0])];else if(t){var a=[],s=new Set;r[n][e]=a,o[e].forEach((function(e){var t=w(e),r=x(t);s.has(r)||(s.add(r),a.push(t))}))}else{var l=[];r[n][e]=l,o[e].forEach((function(e){l.push(w(e))}))}}))})),r}};function k(e){return(k="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 S(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,E(n.key),n)}}function E(e){var t=function(e,t){if("object"!=k(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==k(t)?t:String(t)}var T=function(){function e(t,r,n,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._graph=t,this._s=r,this._p=n,this._o=o,this._o._statement=this,this._asserted=i}var t,r,n;return t=e,(r=[{key:"getGraph",value:function(){return this._graph}},{key:"setAsserted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e!==this._asserted&&(e?this._graph.add(this,void 0,void 0,this._silentValue,t):this._graph.remove(this,this._silentValue),this._asserted=e)}},{key:"isAsserted",value:function(){return this._asserted}},{key:"getSubject",value:function(){return this._s}},{key:"isSubjectBlank",value:function(){return!0!==this._sIsBlank&&!1!==this._sIsBlank&&(this._sIsBlank=0===this._s.indexOf("_:")),this._sIsBlank}},{key:"isObjectBlank",value:function(){return"bnode"===this.getType()}},{key:"setSubject",value:function(e){this._silentValue=!1;var t=f(e);this._asserted?(this._graph.remove(this),this._s=t,this._graph.add(this),delete this._sIsBlank):this._s=t}},{key:"getPredicate",value:function(){return this._p}},{key:"setPredicate",value:function(e){this._silentValue=!1;var t=f(e);this._asserted?(this._graph.remove(this),this._p=t,this._graph.add(this)):this._p=t}},{key:"getNamedGraph",value:function(){return this._o.ng}},{key:"setNamedGraph",value:function(e){this._o.ng=e}},{key:"getObject",value:function(){return this._o}},{key:"getCleanObject",value:function(){var e=this._o,t={value:e.value,type:e.type};return this._o.ng&&(t.ng=e.ng),e.lang&&(t.lang=e.lang),this._o.datatype&&(t.datatype=e.datatype),t}},{key:"getType",value:function(){return this._o.type}},{key:"setType",value:function(e){throw new Error("Changing the type of an object is not supported, create a new statement instead.")}},{key:"getValue",value:function(){return this._o.value}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._silentValue=!0===t,e!==this._o.value&&(this._o.value=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}},{key:"getLanguage",value:function(){return this._o.lang}},{key:"setLanguage",value:function(e,t){if(this._silentValue=!0===t,"literal"!==this._o.type)throw new Error("Cannot set the language for a resource, has to be a literal");this._o.lang!==e&&(this._o.lang=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}},{key:"getDatatype",value:function(){return this._o.datatype}},{key:"setDatatype",value:function(e,t){if(this._silentValue=!0===t,"literal"!==this._o.type||null!=this._o.lang)throw new Error("Cannot set the datatype for a resource, has to be a literal");this._o.datatype!==e&&(this._o.datatype=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}}])&&S(t.prototype,r),n&&S(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),C=(r(5137),r(6203),r(2568));const A=function(e,t){var r=[],n=new Set((t||[]).map((function(e){return f(e)}))),o=[],i={},a=function(e){var t=e.getValue();e.getLanguage()&&(t+="@".concat(e.getLanguage()));var r=e.getDatatype();return r&&"http://www.w3.org/2001/XMLSchema#string"!==r&&"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"!==r&&(t+="^^".concat(r)),t},s=function(e,t){var r=i[e]||{rels:[]};i[e]=r,r.rels.push(t)};return e.find().forEach((function(e){var t=e.getSubject(),i=e.getPredicate();if(!n.has(i)){var l="bnode"===e.getType(),c=e.isSubjectBlank();if(c||l)return o.push(e),c&&s(e.getSubject(),l?i:i+a(e)),void("bnode"===e.getType()&&s(e.getValue(),c?i:t+i));r.push(t+i+a(e))}})),Object.values(i).forEach((function(e){e.rels.sort(),e.hash=C(e.rels.join(""))})),o.forEach((function(e){var t=[];t.push(e.isSubjectBlank()?i[e.getSubject()].hash:e.getSubject()),t.push(e.getPredicate()),t.push("bnode"===e.getType()?i[e.getValue()].hash:a(e)),r.push(t.join(""))})),r.sort(),C(r.join(""))};class O{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}O.prototype.termType="BlankNode";const D=O;class j{equals(e){return!!e&&e.termType===this.termType}}j.prototype.termType="DefaultGraph",j.prototype.value="";const P=j;const R=function(e,t){if(!t)return null;if("BlankNode"===t.termType)return e.blankNode(t.value);if("DefaultGraph"===t.termType)return e.defaultGraph();if("Literal"===t.termType)return e.literal(t.value,t.language||e.namedNode(t.datatype.value));if("NamedNode"===t.termType)return e.namedNode(t.value);if("Quad"===t.termType){const r=e.fromTerm(t.subject),n=e.fromTerm(t.predicate),o=e.fromTerm(t.object),i=e.fromTerm(t.graph);return e.quad(r,n,o,i)}if("Variable"===t.termType)return e.variable(t.value);throw new Error("unknown termType "+t.termType)};class I{constructor(e,t,r){this.value=e,this.language=t,this.datatype=r}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}}I.prototype.termType="Literal";const N=I;class L{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}L.prototype.termType="NamedNode";const M=L;class F{constructor(e,t,r,n){this.subject=e,this.predicate=t,this.object=r,this.graph=n}equals(e){return!!e&&("Quad"===e.termType||!e.termType)&&e.subject.equals(this.subject)&&e.predicate.equals(this.predicate)&&e.object.equals(this.object)&&e.graph.equals(this.graph)}}F.prototype.termType="Quad",F.prototype.value="";const B=F;class U{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}U.prototype.termType="Variable";const V=U,$=new M("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),H=new M("http://www.w3.org/2001/XMLSchema#string");class W{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new P}}namedNode(e){return new M(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new D(e)}literal(e,t){return"string"==typeof t?new N(e,t,$):new N(e,"",t||H)}variable(e){return new V(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,r,n=this.defaultGraph()){return new B(e,t,r,n)}fromTerm(e){return R(this,e)}fromQuad(e){return R(this,e)}}W.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const z=new W;var Y=function(e){return 0===e.indexOf("_:")?e.substring(2):e},G=function(e){return e.find().map((function(e){var t=e.getSubject(),r=e.getPredicate(),n=function(e){if(e.value)switch(e.type){case"literal":if(e.lang)return z.literal(e.value,e.lang);if(e.datatype){var t=z.namedNode(e.datatype);return z.literal(e.value,t)}return z.literal(e.value);case"uri":return z.namedNode(e.value);case"blank":return z.blankNode(Y(e.value))}}(e.getObject()),o=e.getNamedGraph()?z.namedNode(e.getNamedGraph()):void 0;return z.quad(e.isSubjectBlank()?z.blankNode(Y(t)):z.namedNode(t),z.namedNode(r),n,o)}))},q=function(e){return 0===e.indexOf("_:")?e:"_:".concat(e)},X=function(e,t){var r=t||new Graph,n=function(e){var t=function(e){switch(e.termType){case"NamedNode":return{value:e.value,type:"uri"};case"BlankNode":return{value:q(e.value),type:"bnode"};case"Literal":return e.language?{value:e.value,type:"literal",lang:e.language}:e.datatype?{value:e.value,type:"literal",datatype:e.datatype.value}:{value:e.value,type:"literal"}}}(e.object||e._object);return"DefaultGraph"!==e.graph.termType&&(t.ng=e.graph.value),t};e.forEach((function(e){r.add("BlankNode"===e.subject.termType?q(e.subject.value):e.subject.value,"BlankNode"===e.predicate.termType?q(e.predicate.value):e.predicate.value,n(e))}))};function Q(e){return(Q="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 Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,J(n.key),n)}}function J(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Q(t)?t:String(t)}var ee=function(e){return 0===e.length?e:[e[0]]},te=function e(t,r,n){return{object:function(o){for(var i=0;i<r.length;i++){var a=void 0;if(n)a=r[i].getSubject();else{var s=r[i].getType();if("uri"===s||"bnode"===s)continue;a=r[i].getValue()}var l=t.find(a,o);l.length>0&&e(t,[l[0]])}return e(t,[])},objects:function(o){var i,a=[];if(!0===n)for(i=0;i<r.length;i++)a=a.concat(t.find(r[i].getSubject(),o));else for(i=0;i<r.length;i++){var s=r[i].getType();"uri"!==s&&"bnode"!==s||(a=a.concat(t.find(r[i].getValue(),o)))}return e(t,a)},constr:function(o,i){var a=i;_.isString(a)&&(a={type:"uri",value:a});for(var s=[],l=0;l<r.length;l++){var c=n?r[l].getSubject():r[l].getValue();t.find(c,o,a).length>0&&s.push(r[l])}return e(t,s,n)},each:function(o,i){if(!0===n)for(var a=0;a<r.length;a++){var s="_:"===r[a].getSubject().substring(0,2)?"bnode":"uri";null!=i&&i!==s||o(e(t,r[a],n))}else for(var l=0;l<r.length;l++)o(e(t,r[l],n))},statements:function(){return r},nodes:function(e){var t=[];if(!0===n)for(var o=0;o<r.length;o++){var i="_:"===r[o].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push({type:i,value:r[o].getSubject()})}else for(var a=0;a<r.length;a++)null!=e&&e!==r[a].getType()||t.push(r[a].getObject());return t},values:function(e){var t=[];if(!0===n)for(var o=0;o<r.length;o++){var i="_:"===r[o].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push(r[o].getSubject())}else for(var a=0;a<r.length;a++)null!=e&&e!==r[a].getType()||t.push(r[a].getValue());return t},firstValue:function(e){if(!0===n)for(var t=0;t<r.length;t++){var o="_:"===r[t].getSubject().substring(0,2)?"bnode":"uri";if(null==e||e===o)return r[t].getSubject()}else for(var i=0;i<r.length;i++)if(null==e||e===r[i].getType())return r[i].getValue()}}},re=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;Z(this,e),this._graph=t||{},this._bnodes={},this._bnodesIndexed=!1,!1!==r&&this.validate(),this._changed=!1}var t,r,n;return t=e,(r=[{key:"addQuads",value:function(e){return X(e,this),this}},{key:"toQuads",value:function(){return G(this)}},{key:"isEmpty",value:function(){var e=this;return!Object.keys(this._graph).find((function(t){var r=e._graph[t];return Object.keys(r).find((function(e){return r[e].find((function(e){return null==e._statement||e._statement.isAsserted()}))}))}))}},{key:"onChange",value:function(){}},{key:"setChanged",value:function(e){this._changed=!(!0!==e&&null!=e),this._changed&&this.onChange()}},{key:"isChanged",value:function(){return this._changed}},{key:"addAll",value:function(e,t){for(var r,n={},o=e.find(),i=0;i<o.length;i++){var a=o[i],s=a.getSubject(),l=a.getPredicate(),c=a.getCleanObject();t&&(c.ng=t),0===s.indexOf("_:")&&(r=n[s]||this._newBNode(),n[s]=r,s=r),0===l.indexOf("_:")&&(r=n[l]||this._newBNode(),n[l]=r,l=r),"bnode"===c.type&&(r=n[c.value]||this._newBNode(),n[c.value]=r,c.value=r),this.add(s,l,c)}}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(e instanceof T){var i=e.getPredicate(),a=e.getObject(),s=e.getSubject();this._trackBNodes(s,i,a);var l=this._graphObject(a),c=_.add(this._graph,s,i,l,o);return!0!==n&&this.setChanged(),this._get(s,i,c,!0)}return this.create(e,t,r,!0,n,o)}},{key:"addL",value:function(e,t,r,n){var o={type:"literal",value:r};return"string"==typeof n&&(o.lang=n),this.create(e,t,o,!0)}},{key:"addD",value:function(e,t,r,n){var o={type:"literal",value:r};return"string"==typeof n&&(o.datatype=f(n)),this.create(e,t,o,!0)}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=e,s=t,l=r;if(a=null==a?this._newBNode():f(a),s=null==s?this._newBNode():f(s),null==l?l={type:"bnode",value:this._newBNode()}:_.isString(l)?l={type:"uri",value:f(l)}:"object"!==Q(l)||Array.isArray(l)?l={type:"uri",value:"".concat(l)}:("uri"===(l={type:l.type,value:l.value,lang:l.lang,datatype:l.datatype,ng:l.ng}).type&&null!=l.value&&(l.value=f(l.value)),l.datatype&&(l.datatype=f(l.datatype))),!1!==n){var c=_.add(this._graph,a,s,l,i);return!0!==o&&this.setChanged(),this._getOrCreate(a,s,c,!0)}return new T(this,a,s,l,!1)}},{key:"findAndRemove",value:function(e,t,r){for(var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.find(e,t,r),i=0;i<o.length;i++)this.remove(o[i],n)}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.getSubject(),n=e.getPredicate(),o=e.getObject();this._trackBNodes(r,n,o),null!=_.remove(this._graph,r,n,o)&&!0!==t&&this.setChanged()}},{key:"find",value:function(e,t,r){var n=e,o=t,i=r;if("string"==typeof n&&(n=f(n)),"string"==typeof o&&(o=f(o)),"object"===Q(i)&&null!==i&&"uri"===i.type?i.value=f(i.value):"string"==typeof i&&(i={type:"uri",value:f(i)}),null==i)return null==o?null==n?this._find():this._findS(n):null==n?this._findP(o):this._findSP(n,o);if(null==o)return null==n?this._findO(i):this._findSO(n,i);if(null==n)return this._findPO(o,i);var a=this._get(n,o,_.contains(this._graph,n,o,i),!0);return null==a?[]:[a]}},{key:"findFirstValue",value:function(e,t){var r=this.find(e,t);if(r.length>0)return r[0].getValue()}},{key:"projection",value:function(e,t,r){var n=this,o={};return Object.keys(t).forEach((function(i){var a=t[i],s=Array.isArray(a)?n.findPath(e,a):n.find(e,a);if(s.length>0)switch("*"===i[0]?o[i.substr(1)]=s.map((function(e){return e.getValue()})):o[i]=s[0].getValue(),r||"none"){case"statement":o["*".concat(i)]=s;break;case"objects":o["*".concat(i)]=s.map((function(e){return e.getCleanObject()}));break;case"values":o["*".concat(i)]=s.map((function(e){return e.getValue()}))}})),o}},{key:"subjects",value:function(e,t){return te(this,this.find(null,e,t),!0)}},{key:"subject",value:function(e,t){return te(this,ee(this.find(null,e,t)),!0)}},{key:"objects",value:function(e,t){return te(this,this.find(e,t,null))}},{key:"object",value:function(e,t){return te(this,ee(this.find(e,t,null)))}},{key:"findPath",value:function(e,t){return t.slice(1).reduce((function(e,t){return e.objects(t)}),this.objects(e,t[0])).statements()}},{key:"addList",value:function(e){return this._addList(e,"add")}},{key:"addListL",value:function(e,t){return this._addList(e,"addL",t)}},{key:"addListD",value:function(e,t){return this._addList(e,"addD",t)}},{key:"_addList",value:function(e,t,r){var n,o=this;if(Array.isArray(e)&&0!==e.length){var i=n=this._newBNode(),a=e.length-1;e.forEach((function(e,n){o[t](i,"rdf:first",e,r),n!==a?i=o.add(i,"rdf:rest").getValue():o.add(i,"rdf:rest","rdf:nil")}))}else n=f("rdf:nil");return n}},{key:"removeList",value:function(e){var t=!1,r="object"===Q(e)?e.value:e;try{var n=f("rdf:nil");for(t=r===n;r!==n&&null!=r;){var o=this.findFirstValue(r,"rdf:rest");this.findAndRemove(r),t=null!=(r=o)}}catch(e){return console.warn("Invalid list for object: ".concat(r)),!1}return t}},{key:"getList",value:function(e){var t="object"===Q(e)?e.value:f(e),r=[];try{for(var n=f("rdf:nil");t!==n&&null!=t;)r.push(this.find(t,"rdf:first")[0].getObject()),t=this.findFirstValue(t,"rdf:rest")}catch(e){console.warn("Invalid list for object: ".concat(t))}return r}},{key:"findFirstListAsValues",value:function(e,t){return this.getList(this.findFirstValue(e,t)).map((function(e){return e.value}))}},{key:"findAndRemoveLists",value:function(e,t){var r=this,n=!1;return this.find(e,t).forEach((function(e){r.removeList(e.getValue())&&(r.remove(e),n=!0)})),n}},{key:"exportRDFJSON",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._graph,_.clone(this._graph,e)}},{key:"replaceSubject",value:function(e,t){return this.replaceURI(e,t)}},{key:"replaceURI",value:function(e,t){var r=this._graph;if(r.hasOwnProperty(e)){if(r.hasOwnProperty(t))throw new Error("Cannot replace subject with target URI since it already exists.");r[t]=r[e],delete r[e]}return this.forEach((function(r,n,o){"uri"===o.type&&o.value===e&&(o.value=t),r===t&&o._statement&&(o._statement._s=t)})),this}},{key:"replaceBlankWithURI",value:function(e,t,r){var n=this._graph;if(n.hasOwnProperty(e)){if(n.hasOwnProperty(t)){if(!r)throw new Error("Cannot replace subject with target URI since it already exists.");var o=n[t],i=n[e];Object.keys(i).forEach((function(e){if(o.hasOwnProperty(e)){var t=o[e],r=i[e].filter((function(e){return!t.find((function(t){return _.objectEquals(t,e)}))}));o[e]=t.concat(r)}else o[e]=i[e]})),delete n[e]}else n[t]=n[e],delete n[e];this.forEach((function(r,n,o){"bnode"===o.type&&o.value===e&&(o.value=t,o.type="uri"),r===t&&o._statement&&(o._statement._s=t)}))}return delete this._bnodes[e],this}},{key:"clone",value:function(){return new e(this.exportRDFJSON(!1))}},{key:"findProperties",value:function(e){return Object.keys(this._graph[e]||{})}},{key:"validate",value:function(){if(this.report=this._validate(),!this.report.valid)throw this.report;return this.report}},{key:"registerBNode",value:function(e){this._bnodes[e]=!0}},{key:"forEach",value:function(e){var t=this._graph;Object.keys(t).forEach((function(r){var n=t[r];Object.keys(n).forEach((function(t){n[t].forEach((function(n){e(r,t,n)}))}))}))}},{key:"map",value:function(e){var t=[];return this.forEach((function(r){t.push(e(r))})),t}},{key:"equals",value:function(e,t){return A(this,t)===A(e,t)}},{key:"size",value:function(){var e=0;return Object.values(this._graph).forEach((function(t){Object.values(t).forEach((function(t){e+=t.length}))})),e}},{key:"_get",value:function(e,t,r,n){if(null!=r)return this._getOrCreate(e,t,r,n)}},{key:"_getOrCreate",value:function(e,t,r,n){return null==r._statement&&(r._statement=new T(this,e,t,r,n)),r._statement}},{key:"_graphObject",value:function(e){return null==e._statement||e._statement._graph===this?e:{type:e.type,value:e.value,lang:e.lang,datatype:e.datatype}}},{key:"_findSP",value:function(e,t){var r=this;return null==this._graph[e]||null==this._graph[e][t]?[]:this._graph[e][t].map((function(n){return r._get(e,t,n,!0)}))}},{key:"_findS",value:function(e){var t=this,r=this._graph[e],n=Object.keys(r||{}).map((function(r){return t._findSP(e,r)}));return Array.prototype.concat.apply([],n)}},{key:"_find",value:function(){var e=this,t=[];return this.forEach((function(r,n,o){t.push(e._get(r,n,o,!0))})),t}},{key:"_findP",value:function(e){var t=this,r=[];return this.forEach((function(n,o,i){e===o&&r.push(t._get(n,o,i,!0))})),r}},{key:"_findO",value:function(e){var t=this,r=[];return this.forEach((function(n,o,i){_.objectEquals(e,i)&&r.push(t._get(n,o,i,!0))})),r}},{key:"_findSO",value:function(e,t){var r=this,n=[];return this.forEach((function(o,i,a){e===o&&_.objectEquals(t,a)&&n.push(r._get(o,i,a,!0))})),n}},{key:"_findPO",value:function(e,t){var r=this,n=[];return this.forEach((function(o,i,a){e===i&&_.objectEquals(t,a)&&n.push(r._get(o,i,a,!0))})),n}},{key:"_validate",value:function(){var e=this._graph,t={valid:!0,errors:[],nr:0};return Object.keys(e).forEach((function(r){var n=e[r];_.isObject(n)?Object.keys(n).forEach((function(e){var o=n[e];Array.isArray(o)?o.forEach((function(n,o){_.isObject(n)?null!=n.type?_.isString(n.value)?t.nr+=1:(t.errors.push({s:r,p:e,oindex:o+1,message:"Object ".concat(o+1," in object array must have the 'value' attribute pointing to a string.")}),t.valid=!1):(t.errors.push({s:r,p:e,oindex:o+1,message:"Object ".concat(o+1," in object array lacks the attribute type, must be either 'literal', 'resource' or 'bnode'.")}),t.valid=!1):(t.errors.push({s:r,p:e,oindex:o+1,message:"Element ".concat(o+1," in object array is not an object.")}),t.valid=!1)})):(t.errors.push({s:r,p:e,message:"Predicate must point to an array of objects."}),t.valid=!1)})):(t.errors.push({s:r,message:"Subject must point to an object."}),t.valid=!1)})),t}},{key:"_newBNode",value:function(){var e,t,r;for(this._indexBNodes(),e=1;e<20;e++)for(t=1;t<=e;t++)if(r="_:".concat(Math.floor(Math.random()*(Math.pow(10,e)+1))),!0!==this._bnodes[r])return this._bnodes[r]=!0,r;throw new Error("Failed creating a new blank node, increadible unprobable...")}},{key:"_indexBNodes",value:function(){var e=this;if(!this._bnodesIndexed){var t=this._graph;Object.keys(t).forEach((function(r){0===r.indexOf("_:")&&(e._bnodes[r]=!0);var n=t[r];Object.keys(n).forEach((function(t){0===t.indexOf("_:")&&(e._bnodes[t]=!0),n[t].forEach((function(t){"bnode"===t.type&&(e._bnodes[t.value]=!0)}))}))})),this._bnodesIndexed=!0}}},{key:"_trackBNodes",value:function(e,t,r){0===e.indexOf("_:")&&(this._bnodes[e]=!0),0===t.indexOf("_:")&&(this._bnodes[t]=!0),"bnode"===r.type&&(this._bnodes[r.value]=!0)}}])&&K(t.prototype,r),n&&K(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();r(4043),r(7267);r(268),r(50),r(6646),r(5787);function ne(e){return("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 oe(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,ie(n.key),n)}}function ie(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:String(t)}function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function se(e,t,r){return fe(t),function(e,t){if(t&&("object"===ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,de()?Reflect.construct(t,r||[],fe(e).constructor):t.apply(e,r))}function le(e){var t="function"==typeof Map?new Map:void 0;return function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ce(e,arguments,fe(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ue(r,e)}(e)}function ce(e,t,r){if(de())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&ue(o,r.prototype),o}function de(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}function ue(e,t){return(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fe(e){return(Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Error;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})(e)}function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(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,be(n.key),n)}}function ge(e,t,r){return t&&me(e.prototype,t),r&&me(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function be(e){var t=function(e,t){if("object"!=pe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pe(t)?t:String(t)}var ve={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",owl:"http://www.w3.org/2002/07/owl#"},ye={rdftype:"".concat(ve.rdf,"type"),rdfssco:"".concat(ve.rdfs,"subClassOf"),rdfsdomain:"".concat(ve.rdfs,"domain"),rdfsrange:"".concat(ve.rdfs,"range"),rdfsspo:"".concat(ve.rdfs,"subPropertyOf"),rdfsClass:"".concat(ve.rdfs,"Class"),owlClass:"".concat(ve.owl,"Class"),owlObjectProperty:"".concat(ve.owl,"ObjectProperty"),owlDatatypeProperty:"".concat(ve.owl,"DatatypeProperty"),rdfProperty:"".concat(ve.rdf,"Property")},we=function(e,t,r){for(var n={},o=!1,i=e.find(t,r),a=0;a<i.length;a++){var s=i[a];"literal"===s.getType()&&(n[s.getLanguage()||""]=s.getValue()||"",o=!0)}if(o)return null==n.en&&null!=n[""]&&(n.en=n[""],delete n[""]),n},xe=function(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n];r[o]||(t.push(o),r[o]=!0)}return t},_e=function(){function e(t,r){he(this,e),this._uri=t,this._parents=[],this._children=[],this._graph=r}return ge(e,[{key:"getURI",value:function(){return this._uri}},{key:"getLabel",value:function(){var e=this.getLabels();if(null!=e.en)return e.en;var t=Object.objects(e);return t.length>0?t[0]:""}},{key:"getLabels",value:function(){return null==this._labels&&(this._labels=we(this._graph,this._uri,"".concat(ve.rdfs,"label")),null==this._labels&&(this._labels={en:this._uri.substr(this._uri.lastIndexOf("/")+1)})),this._labels}},{key:"getComment",value:function(){var e=this.getComments();return null!=e?null!=e.en?e.en:Object.objects(e)[0]:""}},{key:"getComments",value:function(){return null==this._comments&&(this._comments=we(this._graph,this._uri,"".concat(ve.rdfs,"comment"))),this._comments}},{key:"addParent",value:function(e){this._parents.push(e),e._children.push(this)}},{key:"getDirectParents",value:function(){return this._parents}},{key:"getParents",value:function(){if(this._parentLock)return[];if(this._parentLock=!0,null==this._allParents){this._allParents=[];for(var e=0;e<this._parents.length;e++)this._allParents=this._allParents.concat(this._parents[e].getParents()),this._allParents.push(this._parents[e])}return delete this._parentLock,this._allParents}},{key:"getChildren",value:function(){if(this._childLock)return[];if(this._childLock=!0,null==this._allChildren){this._allChildren=[];for(var e=0;e<this._children.length;e++)this._allChildren=this._allChildren.concat(this._children[e].getChildren()),this._allChildren.push(this._children[e])}return delete this._childLock,this._allChildren}},{key:"setRange",value:function(e){null==this._range&&(this._range=[]),this._range.push(e)}},{key:"setDomain",value:function(e){null==this._domain&&(this._domain=[]),this._domain.push(e),e.setDomainOf(this)}},{key:"getRange",value:function(){if(null==this._allRange){this._allRange=this._range||[];for(var e=0;e<this._parents.length;e++)this._allRange=this._allRange.concat(this._parents[e].getRange());this._allRange=xe(this._allRange)}return this._allRange}},{key:"getDomain",value:function(){if(null==this._allDomain){this._allDomain=this._domain||[];for(var e=0;e<this._parents.length;e++)this._allDomain=this._allDomain.concat(this._parents[e].getDomain());this._allDomain=xe(this._allDomain)}return this._allDomain}},{key:"setDomainOf",value:function(e){null==this._domainOf&&(this._domainOf=[]),this._domainOf.push(e)}},{key:"getDomainOf",value:function(){return this._domainOf}},{key:"getAllDomainOf",value:function(){if(this._domainOfLock)return[];if(this._domainOfLock=!0,null==this._allDomainOf){var e=this._domainOf||[];this._allDomainOf=this._domainOf||[];for(var t=0;t<e.length;t++)this._allDomainOf=this._allDomainOf.concat(e[t].getChildren());for(var r=0;r<this._parents.length;r++)this._allDomainOf=this._allDomainOf.concat(this._parents[r].getAllDomainOf())}return delete this._domainOfLock,this._allDomainOf}}]),e}(),ke=function(e,t,r,n){for(var o=0;o<r.length;o++){var i=r[o],a=i.getSubject(),s=e[a];if(s||(s=new _e(a,i.getGraph()),e[a]=s,t.push(s)),n){var l=i.getValue(),c=e[l];c||(c=new _e(l,i.getGraph()),e[l]=c,t.push(c)),s.addParent(c)}}},Se=function(){function e(){he(this,e),this._cidx={},this._carr=[],this._pidx={},this._parr=[]}return ge(e,[{key:"addGraph",value:function(e){ke(this._cidx,this._carr,e.find(null,ye.rdftype,ye.rdfsClass)),ke(this._cidx,this._carr,e.find(null,ye.rdftype,ye.owlClass)),ke(this._cidx,this._carr,e.find(null,ye.rdfssco,null),!0),ke(this._pidx,this._parr,e.find(null,ye.rdftype,ye.rdfProperty)),ke(this._pidx,this._parr,e.find(null,ye.rdfsspo,null),!0),ke(this._pidx,this._parr,e.find(null,ye.rdftype,ye.owlDatatypeProperty)),ke(this._pidx,this._parr,e.find(null,ye.rdftype,ye.owlObjectProperty)),function(e,t,r){for(var n,o,i,a=e.find(null,ye.rdfsdomain,null),s=0;s<a.length;s++)n=t[(i=a[s]).getSubject()],o=r[i.getValue()],null!=n&&null!=o&&n.setDomain(o);a=e.find(null,ye.rdfsrange,null);for(var l=0;l<a.length;l++)n=t[(i=a[l]).getSubject()],o=i.getValue(),null!=n&&null!=o&&n.setRange(o)}(e,this._pidx,this._cidx)}},{key:"addThing",value:function(){var e="http://www.w3.org/2002/07/owl#Thing",t=this._cidx[e],r=!1;t||(t=new _e(e,new re),this._cidx[e]=t,this._carr.push(t),r=!0);for(var n=0;n<this._carr.length;n++){var o=this._carr[n];(r&&o!==t||-1===o.getParents().indexOf(t)&&o!==t)&&o.addParent(t)}}},{key:"getClasses",value:function(){return this._carr}},{key:"getProperties",value:function(){return this._parr}},{key:"isClass",value:function(e){return null!=this._cidx[e]}},{key:"isProperty",value:function(e){return null!=this._pidx[e]}},{key:"getClass",value:function(e){return this._cidx[e]}},{key:"getProperty",value:function(e){return this._pidx[e]}}],[{key:"getInstances",value:function(e){for(var t=[],r=[e].concat(e.getChildren()),n=0;n<r.length;n++)for(var o=r[n],i=o.getGraph.find(null,ye.rdftype,o.getURI()),a=0;a<i.length;a++)t.push(i[a].getSubject());return t}}]),e}();Se.prototype.ns=ve,Se.prototype.terms=ye,Se.global=new Se;function Ee(e){return(Ee="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 Te(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,Ce(n.key),n)}}function Ce(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ee(t)?t:String(t)}var Ae=function(e){this.filterObj={},this.registry=e};Ae.prototype.register=function(e){this.registry.register(this.filterObj,e)},["itemtype","choices","nodetype","datatype","rdftype","constraint","predicate","style","item","check"].forEach((function(e){Ae.prototype[e]=function(t){var r={};switch(e){case"constraint":Object.keys(t).forEach((function(e){var n=t[e];Array.isArray(n)?r[f(e)]=n.map((function(e){return f(e)})):r[f(e)]=f(n)})),this.filterObj[e]=r;break;case"predicate":case"rdftype":case"datatype":this.filterObj[e]=f(t);break;default:this.filterObj[e]=t||!0}return this}}));var Oe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.components=[],this.priorities={CHECK:1,ITEMTYPE:2,CHOICES:4,NODETYPE:8,DATATYPE:16,RDFTYPE:32,CONSTRAINT:64,PREDICATE:128,STYLE:256,ITEM:512}}var t,r,n;return t=e,(r=[{key:"calculatePriority",value:function(e,t){var r=0;if(t.itemtype&&(r+=this.priorities.ITEMTYPE,e.getType()!==t.itemtype))return-1;if(t.choices)switch(r+=this.priorities.CHOICES,t.choices){case"static":if(!e.hasStaticChoices())return-1;break;case"dynamic":if(!e.hasChoices()||e.hasStaticChoices())return-1;break;case"none":if(e.hasChoices())return-1;break;case"any":default:if(!e.hasChoices())return-1}if(t.nodetype&&(r+=this.priorities.NODETYPE,e.getNodetype()!==t.nodetype))return-1;if(t.datatype){r+=this.priorities.DATATYPE;var n=e.getDatatype(),o=!0;if(n&&(o=Array.isArray(n)?!n.includes(t.datatype):n!==t.datatype),o)return-1}return t.rdftype&&(r+=this.priorities.RDFTYPE,!function(e,t){var r=e.getConstraints();return null!=r&&r[rdfType]===t}(e,t.rdftype))||t.constraint&&(r+=this.priorities.CONSTRAINT,!function(e,t){if(null==t)return!0;var r=e.getConstraints(),n=!0;return null!=r&&(Object.keys(r).find((function(e){var o=t[e];return""!==o&&"*"!==o&&o!==r[e]&&(n=!1,!0)})),n)}(e,t.constraint))||t.predicate&&(r+=this.priorities.PREDICATE,e.getProperty()!==t.predicate)||t.style&&(r+=this.priorities.STYLE,!e.hasStyle(t.style))?-1:!t.item||(r+=this.priorities.ITEM,e===t.item||t.item.getId&&e.getId()===t.item.getId())?t.check&&!t.check(e)?-1:r:-1}},{key:"getPriority",value:function(e,t){for(var r=0;r<this.components.length;r++)if(this.components[r].component===t){var n=this.calculatePriority(e,this.components[r].filter);if(n>=0)return n}return 0}},{key:"getComponentBefore",value:function(e,t){var r=this.getPriority(e,t);return this.getComponent(e,r)}},{key:"getComponent",value:function(e,t){for(var r,n,o,i=-1,a=0;a<this.components.length;a++)o=this.components[a],(n=this.calculatePriority(e,o.filter))>i&&(void 0===t||n<t)&&(r=o,i=n);if(r)return r.component}},{key:"register",value:function(e,t){this.components.push({component:t,filter:e})}},{key:"itemtype",value:function(e){return new Ae(this).itemtype(e)}},{key:"choices",value:function(e){return new Ae(this).choices(e)}},{key:"nodetype",value:function(e){return new Ae(this).nodetype(e)}},{key:"datatype",value:function(e){return new Ae(this).datatype(e)}},{key:"rdftype",value:function(e){return new Ae(this).rdftype(e)}},{key:"constraint",value:function(e){return new Ae(this).constraint(e)}},{key:"predicate",value:function(e){return new Ae(this).predicate(e)}},{key:"style",value:function(e){return new Ae(this).style(e)}},{key:"item",value:function(e){return new Ae(this).item(e)}},{key:"check",value:function(e){return new Ae(this).check(e)}}])&&Te(t.prototype,r),n&&Te(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const De=function(){this.__data__=[],this.size=0};const je=function(e,t){return e===t||e!=e&&t!=t};const Pe=function(e,t){for(var r=e.length;r--;)if(je(e[r][0],t))return r;return-1};var Re=Array.prototype.splice;const Ie=function(e){var t=this.__data__,r=Pe(t,e);return!(r<0)&&(r==t.length-1?t.pop():Re.call(t,r,1),--this.size,!0)};const Ne=function(e){var t=this.__data__,r=Pe(t,e);return r<0?void 0:t[r][1]};const Le=function(e){return Pe(this.__data__,e)>-1};const Me=function(e,t){var r=this.__data__,n=Pe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Fe(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])}}Fe.prototype.clear=De,Fe.prototype.delete=Ie,Fe.prototype.get=Ne,Fe.prototype.has=Le,Fe.prototype.set=Me;const Be=Fe;const Ue=function(){this.__data__=new Be,this.size=0};const Ve=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};const $e=function(e){return this.__data__.get(e)};const He=function(e){return this.__data__.has(e)};const We="object"==typeof global&&global&&global.Object===Object&&global;var ze="object"==typeof self&&self&&self.Object===Object&&self;const Ye=We||ze||Function("return this")();const Ge=Ye.Symbol;var qe=Object.prototype,Xe=qe.hasOwnProperty,Qe=qe.toString,Ze=Ge?Ge.toStringTag:void 0;const Ke=function(e){var t=Xe.call(e,Ze),r=e[Ze];try{e[Ze]=void 0;var n=!0}catch(e){}var o=Qe.call(e);return n&&(t?e[Ze]=r:delete e[Ze]),o};var Je=Object.prototype.toString;const et=function(e){return Je.call(e)};var tt=Ge?Ge.toStringTag:void 0;const rt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tt&&tt in Object(e)?Ke(e):et(e)};const nt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const ot=function(e){if(!nt(e))return!1;var t=rt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const it=Ye["__core-js_shared__"];var at,st=(at=/[^.]+$/.exec(it&&it.keys&&it.keys.IE_PROTO||""))?"Symbol(src)_1."+at:"";const lt=function(e){return!!st&&st in e};var ct=Function.prototype.toString;const dt=function(e){if(null!=e){try{return ct.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var ut=/^\[object .+?Constructor\]$/,ft=Function.prototype,pt=Object.prototype,ht=ft.toString,mt=pt.hasOwnProperty,gt=RegExp("^"+ht.call(mt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const bt=function(e){return!(!nt(e)||lt(e))&&(ot(e)?gt:ut).test(dt(e))};const vt=function(e,t){return null==e?void 0:e[t]};const yt=function(e,t){var r=vt(e,t);return bt(r)?r:void 0};const wt=yt(Ye,"Map");const xt=yt(Object,"create");const _t=function(){this.__data__=xt?xt(null):{},this.size=0};const kt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var St=Object.prototype.hasOwnProperty;const Et=function(e){var t=this.__data__;if(xt){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return St.call(t,e)?t[e]:void 0};var Tt=Object.prototype.hasOwnProperty;const Ct=function(e){var t=this.__data__;return xt?void 0!==t[e]:Tt.call(t,e)};const At=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xt&&void 0===t?"__lodash_hash_undefined__":t,this};function Ot(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])}}Ot.prototype.clear=_t,Ot.prototype.delete=kt,Ot.prototype.get=Et,Ot.prototype.has=Ct,Ot.prototype.set=At;const Dt=Ot;const jt=function(){this.size=0,this.__data__={hash:new Dt,map:new(wt||Be),string:new Dt}};const Pt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const Rt=function(e,t){var r=e.__data__;return Pt(t)?r["string"==typeof t?"string":"hash"]:r.map};const It=function(e){var t=Rt(this,e).delete(e);return this.size-=t?1:0,t};const Nt=function(e){return Rt(this,e).get(e)};const Lt=function(e){return Rt(this,e).has(e)};const Mt=function(e,t){var r=Rt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Ft(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])}}Ft.prototype.clear=jt,Ft.prototype.delete=It,Ft.prototype.get=Nt,Ft.prototype.has=Lt,Ft.prototype.set=Mt;const Bt=Ft;const Ut=function(e,t){var r=this.__data__;if(r instanceof Be){var n=r.__data__;if(!wt||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Bt(n)}return r.set(e,t),this.size=r.size,this};function Vt(e){var t=this.__data__=new Be(e);this.size=t.size}Vt.prototype.clear=Ue,Vt.prototype.delete=Ve,Vt.prototype.get=$e,Vt.prototype.has=He,Vt.prototype.set=Ut;const $t=Vt;const Ht=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e};const Wt=function(){try{var e=yt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const zt=function(e,t,r){"__proto__"==t&&Wt?Wt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var Yt=Object.prototype.hasOwnProperty;const Gt=function(e,t,r){var n=e[t];Yt.call(e,t)&&je(n,r)&&(void 0!==r||t in e)||zt(e,t,r)};const qt=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?zt(r,s,l):Gt(r,s,l)}return r};const Xt=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};const Qt=function(e){return null!=e&&"object"==typeof e};const Zt=function(e){return Qt(e)&&"[object Arguments]"==rt(e)};var Kt=Object.prototype,Jt=Kt.hasOwnProperty,er=Kt.propertyIsEnumerable;const tr=Zt(function(){return arguments}())?Zt:function(e){return Qt(e)&&Jt.call(e,"callee")&&!er.call(e,"callee")};const rr=Array.isArray;const nr=function(){return!1};var or="object"==typeof exports&&exports&&!exports.nodeType&&exports,ir=or&&"object"==typeof module&&module&&!module.nodeType&&module,ar=ir&&ir.exports===or?Ye.Buffer:void 0;const sr=(ar?ar.isBuffer:void 0)||nr;var lr=/^(?:0|[1-9]\d*)$/;const cr=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&lr.test(e))&&e>-1&&e%1==0&&e<t};const dr=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var ur={};ur["[object Float32Array]"]=ur["[object Float64Array]"]=ur["[object Int8Array]"]=ur["[object Int16Array]"]=ur["[object Int32Array]"]=ur["[object Uint8Array]"]=ur["[object Uint8ClampedArray]"]=ur["[object Uint16Array]"]=ur["[object Uint32Array]"]=!0,ur["[object Arguments]"]=ur["[object Array]"]=ur["[object ArrayBuffer]"]=ur["[object Boolean]"]=ur["[object DataView]"]=ur["[object Date]"]=ur["[object Error]"]=ur["[object Function]"]=ur["[object Map]"]=ur["[object Number]"]=ur["[object Object]"]=ur["[object RegExp]"]=ur["[object Set]"]=ur["[object String]"]=ur["[object WeakMap]"]=!1;const fr=function(e){return Qt(e)&&dr(e.length)&&!!ur[rt(e)]};const pr=function(e){return function(t){return e(t)}};var hr="object"==typeof exports&&exports&&!exports.nodeType&&exports,mr=hr&&"object"==typeof module&&module&&!module.nodeType&&module,gr=mr&&mr.exports===hr&&We.process;const br=function(){try{var e=mr&&mr.require&&mr.require("util").types;return e||gr&&gr.binding&&gr.binding("util")}catch(e){}}();var vr=br&&br.isTypedArray;const yr=vr?pr(vr):fr;var wr=Object.prototype.hasOwnProperty;const xr=function(e,t){var r=rr(e),n=!r&&tr(e),o=!r&&!n&&sr(e),i=!r&&!n&&!o&&yr(e),a=r||n||o||i,s=a?Xt(e.length,String):[],l=s.length;for(var c in e)!t&&!wr.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||cr(c,l))||s.push(c);return s};var _r=Object.prototype;const kr=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||_r)};const Sr=function(e,t){return function(r){return e(t(r))}};const Er=Sr(Object.keys,Object);var Tr=Object.prototype.hasOwnProperty;const Cr=function(e){if(!kr(e))return Er(e);var t=[];for(var r in Object(e))Tr.call(e,r)&&"constructor"!=r&&t.push(r);return t};const Ar=function(e){return null!=e&&dr(e.length)&&!ot(e)};const Or=function(e){return Ar(e)?xr(e):Cr(e)};const Dr=function(e,t){return e&&qt(t,Or(t),e)};const jr=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var Pr=Object.prototype.hasOwnProperty;const Rr=function(e){if(!nt(e))return jr(e);var t=kr(e),r=[];for(var n in e)("constructor"!=n||!t&&Pr.call(e,n))&&r.push(n);return r};const Ir=function(e){return Ar(e)?xr(e,!0):Rr(e)};const Nr=function(e,t){return e&&qt(t,Ir(t),e)};var Lr="object"==typeof exports&&exports&&!exports.nodeType&&exports,Mr=Lr&&"object"==typeof module&&module&&!module.nodeType&&module,Fr=Mr&&Mr.exports===Lr?Ye.Buffer:void 0,Br=Fr?Fr.allocUnsafe:void 0;const Ur=function(e,t){if(t)return e.slice();var r=e.length,n=Br?Br(r):new e.constructor(r);return e.copy(n),n};const Vr=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};const $r=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i};const Hr=function(){return[]};var Wr=Object.prototype.propertyIsEnumerable,zr=Object.getOwnPropertySymbols;const Yr=zr?function(e){return null==e?[]:(e=Object(e),$r(zr(e),(function(t){return Wr.call(e,t)})))}:Hr;const Gr=function(e,t){return qt(e,Yr(e),t)};const qr=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e};const Xr=Sr(Object.getPrototypeOf,Object);const Qr=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)qr(t,Yr(e)),e=Xr(e);return t}:Hr;const Zr=function(e,t){return qt(e,Qr(e),t)};const Kr=function(e,t,r){var n=t(e);return rr(e)?n:qr(n,r(e))};const Jr=function(e){return Kr(e,Or,Yr)};const en=function(e){return Kr(e,Ir,Qr)};const tn=yt(Ye,"DataView");const rn=yt(Ye,"Promise");const nn=yt(Ye,"Set");const on=yt(Ye,"WeakMap");var an=dt(tn),sn=dt(wt),ln=dt(rn),cn=dt(nn),dn=dt(on),un=rt;(tn&&"[object DataView]"!=un(new tn(new ArrayBuffer(1)))||wt&&"[object Map]"!=un(new wt)||rn&&"[object Promise]"!=un(rn.resolve())||nn&&"[object Set]"!=un(new nn)||on&&"[object WeakMap]"!=un(new on))&&(un=function(e){var t=rt(e),r="[object Object]"==t?e.constructor:void 0,n=r?dt(r):"";if(n)switch(n){case an:return"[object DataView]";case sn:return"[object Map]";case ln:return"[object Promise]";case cn:return"[object Set]";case dn:return"[object WeakMap]"}return t});const fn=un;var pn=Object.prototype.hasOwnProperty;const hn=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&pn.call(e,"index")&&(r.index=e.index,r.input=e.input),r};const mn=Ye.Uint8Array;const gn=function(e){var t=new e.constructor(e.byteLength);return new mn(t).set(new mn(e)),t};const bn=function(e,t){var r=t?gn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var vn=/\w*$/;const yn=function(e){var t=new e.constructor(e.source,vn.exec(e));return t.lastIndex=e.lastIndex,t};var wn=Ge?Ge.prototype:void 0,xn=wn?wn.valueOf:void 0;const _n=function(e){return xn?Object(xn.call(e)):{}};const kn=function(e,t){var r=t?gn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};const Sn=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return gn(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return bn(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 kn(e,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return yn(e);case"[object Set]":return new n;case"[object Symbol]":return _n(e)}};var En=Object.create;const Tn=function(){function e(){}return function(t){if(!nt(t))return{};if(En)return En(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Cn=function(e){return"function"!=typeof e.constructor||kr(e)?{}:Tn(Xr(e))};const An=function(e){return Qt(e)&&"[object Map]"==fn(e)};var On=br&&br.isMap;const Dn=On?pr(On):An;const jn=function(e){return Qt(e)&&"[object Set]"==fn(e)};var Pn=br&&br.isSet;const Rn=Pn?pr(Pn):jn;var In={};In["[object Arguments]"]=In["[object Array]"]=In["[object ArrayBuffer]"]=In["[object DataView]"]=In["[object Boolean]"]=In["[object Date]"]=In["[object Float32Array]"]=In["[object Float64Array]"]=In["[object Int8Array]"]=In["[object Int16Array]"]=In["[object Int32Array]"]=In["[object Map]"]=In["[object Number]"]=In["[object Object]"]=In["[object RegExp]"]=In["[object Set]"]=In["[object String]"]=In["[object Symbol]"]=In["[object Uint8Array]"]=In["[object Uint8ClampedArray]"]=In["[object Uint16Array]"]=In["[object Uint32Array]"]=!0,In["[object Error]"]=In["[object Function]"]=In["[object WeakMap]"]=!1;const Nn=function e(t,r,n,o,i,a){var s,l=1&r,c=2&r,d=4&r;if(n&&(s=i?n(t,o,i,a):n(t)),void 0!==s)return s;if(!nt(t))return t;var u=rr(t);if(u){if(s=hn(t),!l)return Vr(t,s)}else{var f=fn(t),p="[object Function]"==f||"[object GeneratorFunction]"==f;if(sr(t))return Ur(t,l);if("[object Object]"==f||"[object Arguments]"==f||p&&!i){if(s=c||p?{}:Cn(t),!l)return c?Zr(t,Nr(s,t)):Gr(t,Dr(s,t))}else{if(!In[f])return i?t:{};s=Sn(t,f,l)}}a||(a=new $t);var h=a.get(t);if(h)return h;a.set(t,s),Rn(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,a))})):Dn(t)&&t.forEach((function(o,i){s.set(i,e(o,r,n,i,t,a))}));var m=u?void 0:(d?c?en:Jr:c?Ir:Or)(t);return Ht(m||t,(function(o,i){m&&(o=t[i=o]),Gt(s,i,e(o,r,n,i,t,a))})),s};const Ln=function(e){return Nn(e,5)};r(2003),r(2462);var Mn=r(381),Fn=r.n(Mn),Bn=function(e){var t=Fn().locale();if(null==e)return{precision:"none"};if("string"==typeof e)return{value:e,precision:"nolang",lang:""};if(e.hasOwnProperty(t))return{value:e[t],precision:"exact",lang:t};if(t.indexOf("_")>-1&&e.hasOwnProperty(t.substr(0,2)))return{value:e[t.substr(0,2)],precision:"coarsen",lang:t.substr(0,2)};if(e.hasOwnProperty("en"))return{value:e.en,precision:"default",lang:"en"};if(e.hasOwnProperty(""))return{value:e[""],precision:"nolang",lang:""};var r=Object.keys(e);return r.length>0?{value:e[r[0]],precision:"any",lang:r[0]}:{precision:"none"}},Un=function(e,t,r){var n=e.find(t,r);if(n.length>0){for(var o={},i=0;i<n.length;i++)o[n[i].getLanguage()||""]=n[i].getValue();return o}};const Vn={getLocalizedValue:Bn,getLocalizedMap:function(e,t,r){var n,o=t,i=r;e.getItem?(n=e.getGraph(),o=e.getValue(),i=e.getItem().getURIValueLabelProperties()):n=e,null!=i&&0!==i.length||(i=Hn.labelProperties);for(var a=0;a<i.length;a++){var s=i[a];if(Array.isArray(s)){for(var l=[],c=0;c<s.length;c++){var d=Un(n,o,s[c]);d&&l.push(Bn(d).value)}if(l.length>0)return{"":l.join(" ")}}else{var u=Un(n,o,s);if(u)return u}}},cloneArrayWithLabels:function(e,t){for(var r=[],n=0;n<e.length;n++){var o=e[n],i=Bn(o.label),a={value:o.value,label:i.value||o.value||""};!0===o.top&&(a.top=!0),null!=o.children&&(a.children=Ln(o.children)),!1===o.selectable?a.selectable=!1:a.selectable=!0,r.push(a)}return!0!==t&&r.sort((function(e,t){return e.label>t.label?1:-1})),r},extractGist:function(e,t){var r=t;if(r){-1===r.indexOf("$1")&&(r+="$1");var n="".concat(r).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1").replace("\\$1","(.*)"),o=new RegExp(n).exec(e);if(null!=o)return o[1]}return e},findFirstValue:function(e,t,r,n){var o=e.findFirstValueBinding(e.match(t,r,n),!1);if(o)return o.getChoice?Bn(o.getChoice().label).value:o.getGist()},generateUUID:function(){var e=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?r:3&r|8).toString(16)}))}};var $n=function(e,t,r,n){if("URI"===e.getNodetype()||"RESOURCE"===e.getNodetype()){var o=Vn.getLocalizedMap(n,t,e.getURIValueLabelProperties());if(!o){var i=t.lastIndexOf("#"),a=t.lastIndexOf("/");o=i>0||a>0?{"":decodeURIComponent(t.substring(1+(i>a?i:a)))}:{"":t}}return{value:t,label:o}}return{value:t,label:t}};const Hn={hasDnDSupport:function(e){return!1},addDnD:function(e,t,r){return{}},attachExternalLinkBehaviour:function(){return!1},attachLinkBehaviour:function(e,t){return!1},openChoiceSelector:function(e,t){alert('This alert is a placeholder for a search dialog that should be provided as part of the integration of RDForms into a wider system.\nSimply override the methods "getChoices" and "openChoiceSelector" in the system module.'),t({value:"http://example.com/choice1",label:{en:"First choice",sv:"Första valet"}})},getChoice:function(e,t,r,n){return $n(e,t,0,n)},getFallbackChoice:$n,labelProperties:["http://www.w3.org/2000/01/rdf-schema#label","http://purl.org/dc/terms/title","http://purl.org/dc/elements/1.1/title","http://www.w3.org/2004/02/skos/core#prefLabel","http://xmlns.com/foaf/0.1/name","http://xmlns.com/foaf/name"],createURI:function(e,t){for(var r=t.getChildrenRootUri(),n=r.lastIndexOf("#"),o=-1===n?"".concat(r,"#"):r.substring(0,n+1),i=t.getGraph()._graph;;){var a=o+"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);if(null==i[a])return a}}},Wn=JSON.parse('{"edit_add":"Add","edit_remove":"Remove","edit_clear":"Clear","edit_browse":"Browse and select","edit_browse_create":"Browse and select or create","edit_expand":"Expand","edit_upgrade":"Provide additional information for this web address","info_label":"Label","info_property":"Property","info_description":"Description","info_missing":"No information","address_label":"Address","validation_min_required_one":"at least one value is required","validation_min_required_more":"a minimum of $1 values is required","validation_min_recommended_one":"at least one value is recommended","validation_min_recommended_more":"a minimum of $1 values is recommended","validation_max_one":"at most one value is allowed","validation_max_more":"a maximum of $1 values are allowed","validation_at_most_one_child":"A maximum of one value is allowed","validation_at_least_one_child":"A minimum of one value is required","validation_exactly_one_child":"Exactly one value is required","validation_deprecated":"This field is deprecated","validation_nodetype":"Wrong nodetype","validation_value":"Wrong value","validation_datatype":"Wrong datatype","validation_constraints":"Missing constraints","validation_pattern":"Value does not follow pattern","validation_language":"A language code is required","date_date":"Date","date_time":"Time","date_year":"Year","date_date_and_time":"Date and time","date_year_and_month":"Year and month","date_month_and_day":"Month and day","date_openDatePicker":"Open date picker dialog","date_openTimePicker":"Open time picker dialog","date_openYearPicker":"Open year picker dialog","date_nextMonth":"Next month","date_previousMonth":"Previous month","duration_years":"Years","duration_months":"Months","duration_days":"Days","duration_hours":"Hours","duration_minutes":"Minutes","mandatoryLabel":"Mandatory","recommendedLabel":"Recommended","optionalLabel":"Optional","today":"Today","mandatoryMark":"*","recommendedMark":"(Recommended)","optionalMark":"(Optional)","deprecatedField":"This field has been deprecated, please remove it.","missingValueField":"This field is required, please provide a value.","dependencyField":"This field depends on another field, please review the field it depends on or remove this value.","wrongValueField":"This is an invalid value, please change or remove it.","wrongDatatypeField":"The value has an invalid datatype, please change or remove it.","openLinkExternally":"Open link externally","showMore":"Show more","showLess":"Show less"}');function zn(e){return(zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Yn,Gn,qn,Xn,Qn,Zn="body",Kn=[{value:"",label:{en:""}},{value:"bg",label:{en:"Bulgarian",bg:"български"}},{value:"es",label:{en:"Spanish",es:"Español"}},{value:"cs",label:{en:"Czech",cs:"čeština"}},{value:"da",label:{en:"Danish",da:"Dansk"}},{value:"no",label:{en:"Norwegian",no:"Norsk",nb:"Norsk",nn:"Norsk nynorsk"}},{value:"nb",label:{en:"Norwegian (bokmål)",nb:"Norsk bokmål",no:"Norsk bokmål",nn:"Norsk bokmål"}},{value:"nn",label:{en:"Norwegian (nynorsk)",nb:"Norsk nynorsk",no:"Norsk nynorsk",nn:"Norsk nynorsk"}},{value:"de",label:{en:"German",de:"Deutsch"}},{value:"et",label:{en:"Estonian",et:"Eesti keel"}},{value:"el",label:{en:"Greek",el:"ελληνικά"}},{value:"en",label:{en:"English"}},{value:"fr",label:{en:"French",fr:"Français"}},{value:"ga",label:{en:"Irish",ga:"Gaeilge"}},{value:"hr",label:{en:"Croatian",hr:"Hrvatski"}},{value:"it",label:{en:"Italian",it:"Italiano"}},{value:"lv",label:{en:"Latvian",lv:"Latviešu valoda"}},{value:"lt",label:{en:"Lithuanian",lt:"Lietuvių kalba"}},{value:"hu",label:{en:"Hungarian",hu:"Magyar"}},{value:"mt",label:{en:"Maltese",mt:"Malti"}},{value:"nl",label:{en:"Dutch",nl:"Nederlands"}},{value:"pl",label:{en:"Polish",pl:"Polski"}},{value:"pt",label:{en:"Portuguese",pt:"Português"}},{value:"ro",label:{en:"Romanian",ro:"Română"}},{value:"sk",label:{en:"Slovak",sk:"Slovenčina"}},{value:"sl",label:{en:"Slovenian",sl:"Slovenščina"}},{value:"fi",label:{en:"Finnish",fi:"Suomi"}},{value:"sv",label:{en:"Swedish",sv:"Svenska"}}],Jn={domQuery:function(){},domCreate:function(){},domCreateAfter:function(){},domClassToggle:function(){},domSetAttr:function(){},domText:function(){},createDomNode:function(e){return e instanceof Node?e:"string"==typeof e?document.getElementById(e):document.createElement("div")},destroyDomNode:function(){},presenterRegistry:new Oe,editorRegistry:new Oe,chooserRegistry:new Oe,renderPresenter:function(e,t,r){var n=Jn.presenterRegistry.getComponent(t.getItem());n&&(Jn.prePresenterRenderer(e,t,r),n(e,t,r),Jn.postPresenterRenderer(e,t,r))},renderEditor:function(e,t,r){var n=Jn.editorRegistry.getComponent(t.getItem());n&&(Jn.preEditorRenderer(e,t,r),n(e,t,r),Jn.postEditorRenderer(e,t,r))},renderValidationMessage:function(e,t,r){},renderSelect:function(){},getChoice:function(e,t){var r=Jn.chooserRegistry.getComponent(e);if(null==r)throw new Error("Error, no chooser available to retrieve a choice for item: ".concat(e.getId()));return r.getChoice(e,t)},hasOpenChoiceSelector:function(e){return null!=Jn.chooserRegistry.getComponent(e.getItem())},openChoiceSelector:function(e,t,r){var n=Jn.chooserRegistry.getComponent(e.getItem());if(null!=n&&n&&n.getChoice)n.show(e,t,r);else{var o=e.getItem();alert("Error, no chooser available to open a choice selector for: ".concat(o))}},getExtLinkClass:function(){return""},setMessages:function(e){Yn=e},getMessages:function(){return Yn||Wn},getLanguageList:function(){return Gn||Kn},getPrimaryLanguageList:function(){if(!Xn){for(var e,t=Jn.getLanguageList(),r=qn||[],n=[],o=0;o<t.length;o++){var i=t[o].value,a=r.indexOf(i);""===i&&(e=t[o]),-1!==a&&(n[a]=t[o])}Xn=[];for(var s=0;s<n.length;s++)"object"===zn(n[s])&&Xn.push(n[s]);Xn.length>0&&e&&Xn.splice(0,0,e)}return Xn},getNonPrimaryLanguageList:function(){if(!Qn){var e=Jn.getPrimaryLanguageList().length>0,t=Jn.getLanguageList(),r=qn||[];Qn=[];for(var n=0;n<t.length;n++){var o=t[n].value;-1===r.indexOf(o)&&(e&&""===o||Qn.push(t[n]))}}return Qn},setPrimaryLanguageCodes:function(e){Qn=null,Xn=null,qn=e},setLanguageList:function(e){Gn=e},filterTranslations:function(e,t,r){for(var n={},o=0;o<e.length;o++){var i=e[o].getLanguage();""===i||null==i?n.noLanguage=!0:i===t?n.best=!0:-1!==i.indexOf(t)||-1!==t.indexOf(i)?n.close=!0:0===i.indexOf(r)&&(n.defaultLanguage=!0)}return n.best?e.filter((function(e){return e.getLanguage()===t})):n.close?e.filter((function(e){var r=e.getLanguage();return r&&(-1!==r.indexOf(t)||-1!==t.indexOf(r))})):n.defaultLanguage?e.filter((function(e){var t=e.getLanguage();return t&&0===t.indexOf(r)})):e},setPopoverContainer:function(e){Zn=e},getPopoverContainer:function(){return Zn},preEditorViewRenderer:function(e,t){},prePresenterViewRenderer:function(e,t){},preEditorRenderer:function(){},postEditorRenderer:function(){},prePresenterRenderer:function(){},postPresenterRenderer:function(){},renderEditorLabel:function(){},renderEditorLabelScopeEnd:function(){},renderPresenterLabel:function(){},attachItemInfo:function(){},addCreateChildButton:function(){},addGroupButtons:function(){},addExpandButton:function(){},addRemoveButton:function(){},addPresenterTable:function(){},fillPresenterTable:function(){},addEditorTable:function(){},fillEditorTable:function(){},addTruncateControl:function(){}};Hn.getChoice=Jn.getChoice;var eo=function(e,t,r){new(0,r.view.constructor)({parentView:r.view,messages:r.view.messages,binding:t,topLevel:!1,compact:r.view.compact,showLanguage:r.view.showLanguage,showDescription:r.view.showDescription,defaultLanguage:r.view.defaultLanguage,filterTranslations:r.view.filterTranslations,truncate:r.view.truncate,truncateLimit:r.view.truncateLimit,includeLevel:r.view.includeLevel},e)};Jn.presenterRegistry.itemtype("group").register(eo),Jn.presenterRegistry.itemtype("propertygroup").register(eo);var to=function(e,t,r){var n=new(0,r.view.constructor)({parentView:r.view,messages:r.view.messages,languages:r.view.languages,binding:t,topLevel:!1,compact:r.view.compact,showDescription:r.view.showDescription,truncate:r.view.truncate,truncateLimit:r.view.truncateLimit,includeLevel:r.view.includeLevel},e);r.view._subEditors.push(n)};Jn.editorRegistry.itemtype("group").register(to),Jn.editorRegistry.itemtype("propertygroup").register(to);const ro=Jn;r(2349),r(1919),r(4418);function no(e){return(no="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 oo(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,io(n.key),n)}}function io(e){var t=function(e,t){if("object"!=no(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=no(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==no(t)?t:String(t)}var ao=0,so=function(){function e(t){var r=t.item,n=t.statement,o=t.graph,i=t.matchingCode;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=r,this._statement=n,this._graph=o,this._ancestorValid=!0,this._cardinalityTracker=null,this._hash="b_".concat(ao),this._matchingCode=i||"correct",ao+=1}var t,r,n;return t=e,(r=[{key:"getGraph",value:function(){return this._graph||(this._statement?this._graph=this._statement.getGraph():this._parent&&(this._graph=this._parent.getGraph())),this._graph}},{key:"isReadOnly",value:function(){if(!("_readOnly"in this)){var e=this.getParent();e&&e._readOnly?this._readyOnly=!0:this._readOnly=!(!this._statement||!this._statement.getNamedGraph())}return this._readOnly}},{key:"remove",value:function(){}},{key:"setSubject",value:function(e){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(e,t){}},{key:"getGist",value:function(){return Vn.extractGist(this.getValue(),this.getItem().getValueTemplate())}},{key:"setGist",value:function(e,t){var r=e,n=this.getItem().getValueTemplate();n&&r.length>0&&(-1===n.indexOf("$1")&&(n+="$1"),r=n.replace("$1",r)),this.setValue(r,t)}},{key:"getCardinalityTracker",value:function(){return this._cardinalityTracker}},{key:"setCardinalityTracker",value:function(e){this._cardinalityTracker=e}},{key:"getItem",value:function(){return this._item}},{key:"getStatement",value:function(){return this._statement}},{key:"getParent",value:function(){return this._parent}},{key:"setParent",value:function(e){this._parent=e}},{key:"isValid",value:function(){}},{key:"getMatchingCode",value:function(){return this._matchingCode}},{key:"setMatchingCode",value:function(e){this._matchingCode=e}},{key:"setAncestorValid",value:function(e){this._ancestorValid=e,this.updateAssertions()}},{key:"updateAssertions",value:function(){}},{key:"getHash",value:function(){return this._hash}},{key:"addListener",value:function(e){this._listeners||(this._listeners=[]),this._listeners.push(e)}},{key:"removeListener",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"bindingChange",value:function(e){if(this._listeners)for(var t=0;t<this._listeners.length;t++)this._listeners[t](e);this._parent&&this._parent.bindingChange(e),this._cardinalityTracker&&this._cardinalityTracker.touch()}},{key:"_isValidObjectValue",value:function(e){var t=e;if("string"!=typeof t&&null!==t)throw new Error("In a binding every object value need to be a string!");var r=this._item.getPattern();return r?null!=(t=Vn.extractGist(t,this.getItem().getValueTemplate()))&&""!==t&&new RegExp("^".concat(r,"$")).test(t):null!=t&&""!==t}},{key:"_isValidPredicateValue",value:function(e){if("string"!=typeof e&&null!==e)throw new Error("In a binding every predicate need to be a string!");return null!=e&&""!==e}}])&&oo(t.prototype,r),n&&oo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const lo={UNKNOWN:"unknown",OK:"correct",TOO_FEW_VALUES:"few",TOO_FEW_VALUES_MIN:"min",TOO_FEW_VALUES_PREF:"pref",TOO_MANY_VALUES:"many",AT_MOST_ONE_CHILD:"atmostonechild",AT_LEAST_ONE_CHILD:"atleastonechild",EXACTLY_ONE_CHILD:"exactlyonechild",WRONG_VALUE:"value",WRONG_PATTERN:"pattern",WRONG_NODETYPE:"nodetype",WRONG_DATATYPE:"datatype",MISSING_LANGUAGE:"language",MISSING_CONSTRAINTS:"constraints"};function co(e){return(co="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 uo(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,fo(n.key),n)}}function fo(e){var t=function(e,t){if("object"!=co(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==co(t)?t:String(t)}var po=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._listener=[],this._limits=t.getCardinality()||{},this._counter=0,this._depsOk=!0,this._listeners=[],this._code=0}var t,r,n;return t=e,(r=[{key:"addListener",value:function(e){return this._listeners.push(e),e}},{key:"removeListener",value:function(e){this._listeners.splice(this._listeners.indexOf(e),1)}},{key:"cardinalityChanged",value:function(){this._listeners.forEach((function(e){return e()}))}},{key:"getCardinality",value:function(){return this._counter}},{key:"isMax",value:function(){return null!=this._limits.max&&this._counter>=this._limits.max}},{key:"isMin",value:function(){return null!=this._limits.min&&this._counter<=this._limits.min}},{key:"isFine",value:function(){return this._fine}},{key:"isDepsOk",value:function(){return this._depsOk}},{key:"getCode",value:function(){return this._code}},{key:"setCode",value:function(e){this._code!==e&&(this._code=e,this.cardinalityChanged())}},{key:"setDepsOk",value:function(e){this._depsOk!==e&&(this._code=lo.UNKNOWN,this._depsOk=e,this.cardinalityChanged())}},{key:"increment",value:function(){this._counter+=1,this._code=lo.UNKNOWN,this._checkCounter()}},{key:"decrement",value:function(){this._counter-=1,this._code=lo.UNKNOWN,this._checkCounter()}},{key:"getCounter",value:function(){return this._counter}},{key:"checkCardinality",value:function(){this._checkCounter()}},{key:"touch",value:function(){this._code=lo.UNKNOWN,this.cardinalityChanged()}},{key:"_checkCounter",value:function(){null!=this._limits.max&&this._counter===this._limits.max?this._fine=!0:null!=this._limits.max&&this._counter>this._limits.max?this._fine=!1:null!=this._limits.min&&this._counter===this._limits.min?this._fine=!0:null!=this._limits.min&&this._counter<this._limits.min&&(this._fine=!1),this.cardinalityChanged()}}])&&uo(t.prototype,r),n&&uo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ho(e){return(ho="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 mo(e){return function(e){if(Array.isArray(e))return go(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return go(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return go(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function go(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 bo(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,vo(n.key),n)}}function vo(e){var t=function(e,t){if("object"!=ho(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ho(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ho(t)?t:String(t)}function yo(e,t,r){return t=_o(t),function(e,t){if(t&&("object"===ho(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],_o(e).constructor):t.apply(e,r))}function wo(){return(wo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=xo(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function xo(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_o(e)););return e}function _o(e){return(_o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ko(e,t){return(ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var So=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=yo(this,t,[e]);var n=e.constraints,o=void 0===n?[]:n,i=e.childrenRootUri,a=void 0===i?null:i;return r._constraints=o,r._childBindings=r._item.getChildren().map((function(){return[]})),r._rootUri=a,r._validPredicate=!0,r._validObject=!0,r._statement&&(r._validPredicate=r._isValidPredicateValue(r._statement.getPredicate()),r._validObject=r._isValidObjectValue(r._statement.getValue(),r._statement.getType())),r._cachedChildBindings=null,r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ko(e,t)}(t,e),r=t,(n=[{key:"getValue",value:function(){return this._statement&&this._statement.isObjectBlank()?"":this._statement&&this._statement.getValue()}},{key:"oneChildValidityChanged",value:function(e){return e!==this._oneValidChild&&!(!e&&(delete this._oneValidChild,this.isValid()))&&(this._oneValidChild=e,this._notifyValidityChange(e&&this._validPredicate&&this._validObject),this._validPredicate&&this._validObject)}},{key:"setSubject",value:function(e){this._statement?this._statement.setSubject(e):this.getChildBindings().forEach((function(t){return t.setSubject(e)}))}},{key:"getChildrenRootUri",value:function(){return this._statement?this._statement.getValue():null!=this._rootUri?this._rootUri:null!=this._parent?this._parent.getChildrenRootUri():void 0}},{key:"addChildBinding",value:function(e){this.addChildBindings([e])}},{key:"addChildBindings",value:function(e){var t=this;if(this._cachedChildBindings=null,Array.isArray(e)&&0!==e.length)for(var r=e[0].getItem(),n=this._item.getChildren(),o=function(){if(r===n[i]){var o=t._childBindings[i].length>0?t._childBindings[i][0].getCardinalityTracker():new po(r);return t._childBindings[i]=t._childBindings[i].concat(e),e.forEach((function(e){e.setParent(t),e.setCardinalityTracker(o),o.increment()}),t),1}},i=n.length;i>=0&&!o();i--);}},{key:"removeChildBinding",value:function(e){this._cachedChildBindings=null;for(var t=this._item.getChildren(),r=t.length;r>=0;r--)if(e.getItem()===t[r]){this._childBindings[r].splice(this._childBindings[r].indexOf(e),1),delete e._parent,e.getCardinalityTracker().decrement();break}this.oneChildValidityChanged(),this.bindingChange(e)}},{key:"getChildBindingsFor",value:function(e){for(var t=this._item.getChildren(),r=t.length;r>=0;r--)if(e===t[r])return this._childBindings[r]}},{key:"getItemGroupedChildBindings",value:function(){return this._childBindings}},{key:"getChildBindings",value:function(){var e;return null==this._cachedChildBindings&&(this._childBindings&&this._childBindings.length>0?this._cachedChildBindings=(e=[]).concat.apply(e,mo(this._childBindings)):this._cachedChildBindings=[]),this._cachedChildBindings}},{key:"setPredicate",value:function(e){var t=this._validPredicate;this._isValidPredicateValue(e)?(this._statement.setPredicate(e),this._validPredicate=!0,!0!==t&&this._validObject&&("URI"===this.getItem().getNodetype()||this._oneValidChild)&&this._notifyValidityChange(!0)):(this._validPredicate=!1,!1!==t&&this._validObject&&("URI"===this.getItem().getNodetype()||this._oneValidChild)&&this._notifyValidityChange(!1)),this.updateAssertions()}},{key:"setValue",value:function(e){if("URI"!==this.getItem().getNodetype()||!this._statement)throw new Error("Cannot change the value of a group unless its nodetype is URI and also that it corresponds to a statement");var t=this._validObject;this._isValidObjectValue(e,"uri")?(this._validObject=!0,this._statement._o.type="uri",this._statement.setValue(e),this._constraints.forEach((function(t){return t.setSubject(e)})),this.getChildBindings().forEach((function(t){return t.setSubject(e)})),!t&&this._validPredicate&&this._notifyValidityChange(!0)):(this._validObject=!1,t&&this._validPredicate&&this._notifyValidityChange(!1))}},{key:"getPredicate",value:function(){return this._statement?this._statement.getPredicate():void 0}},{key:"remove",value:function(){this._oneValidChild=!1,this.setAncestorValid(!1),null!=this._parent&&this._parent.removeChildBinding(this),wo(_o(t.prototype),"remove",this).call(this,arguments)}},{key:"_isValid",value:function(){return"URI"===this.getItem().getNodetype()?this._validObject&&this._validPredicate:this._oneValidChild&&this._validPredicate&&this._validObject}},{key:"isValid",value:function(){return null==this._oneValidChild&&(this._oneValidChild=this._forceOneValidChildCheck()),this._isValid()}},{key:"setAncestorValid",value:function(e){var t=this;this._ancestorValid=e,this.updateAssertions(),this._childBindings.forEach((function(r){return r.forEach((function(r){return r.setAncestorValid(e&&t._isValid())}),t)}),this)}},{key:"updateAssertions",value:function(){null==this._oneValidChild&&this.isValid();var e=this._ancestorValid&&this._isValid();null!=this._statement&&this._statement.setAsserted(e),this._constraints.forEach((function(t){return t.setAsserted(e)})),this.getChildBindings().forEach((function(e){return e.updateAssertions()}))}},{key:"_forceOneValidChildCheck",value:function(){return this._childBindings.some((function(e){return e.some((function(e){return e.isValid()}))}))}},{key:"_notifyValidityChange",value:function(e){this._parent&&this._parent.oneChildValidityChanged(e)||(this.updateAssertions(),this._childBindings.forEach((function(t){return t.forEach((function(t){return t.setAncestorValid(e)}))})))}},{key:"_isValidObjectValue",value:function(e,r){return("URI"!==this.getItem().getNodetype()||"uri"===r)&&wo(_o(t.prototype),"_isValidObjectValue",this).call(this,e)}}])&&bo(r.prototype,n),o&&bo(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(so);function Eo(e){return(Eo="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 To(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,Co(n.key),n)}}function Co(e){var t=function(e,t){if("object"!=Eo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Eo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Eo(t)?t:String(t)}var Ao=0,Oo=function(e,t,r){null==r||""===r||Array.isArray(r)&&0===r.length?delete e[t]:e[t]=r},Do=function(){function e(t){var r=t.source,n=void 0===r?{}:r,o=t.bundle,i=t.itemStore;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._itemStore=i,this._source=n,this._bundle=o,Ao+=1,this._internalId=Ao,this._styles=["heading","invisible","invisibleGroup","stars","commentOn","multiline","horizontalRadioButtons","verticalRadioButtons","horizontalCheckBoxes","verticalCheckBoxes","nonEditable","expandable","compact","nonCompact","dropDown","table","firstcolumnfixedtable","tree","externalLink","internalLink","noLink","image","label","tooltip","strictmatch","relaxedDatatypeMatch","viewAllTranslations","filterTranslations","email","atLeastOneChild","atMostOneChild","exactlyOneChild","noLabelInPresent","autoInitDate","autoUpdateDate","autoUUID","autoValue","showURI","showLink","showValue","showDescriptionInPresent","showDescriptionInEdit","textAsChoice","preserveOrderOfChoices","linkWithLabel","deprecated","inline","truncate","noTruncate","card","cardInPresent","cardInEdit"],this._getLocalizedValue=Vn.getLocalizedValue}var t,r,n;return t=e,(r=[{key:"getId",value:function(){var e=this.getSource(!0);return e.id||e["@id"]}},{key:"setId",value:function(e){Oo(this.getSource(!0),"id",e),delete s["@id"]}},{key:"getType",value:function(e){var t=this.getSource(e);return t.type||t["@type"]}},{key:"setType",value:function(e){Oo(this.getSource(!0),"type",e),delete s["@type"],this.refreshExtends()}},{key:"getExtends",value:function(){return this.getSource(!0).extends||""}},{key:"refreshExtends",value:function(){this.isExtention&&this.setExtends(this.getExtends())}},{key:"setExtends",value:function(e){var t=this.getSource(!0),r=this._itemStore.getItem(e);this._source=null==r?t:this._itemStore.createExtendedSource(r.getSource(),t),""===e||null==e?delete t.extends:t.extends=e}},{key:"isExtention",value:function(){return null!=this.getExtends()}},{key:"_getText",value:function(e,t,r){var n=this.getSource(r);return t?Vn.getLocalizedValue(n[e]):Vn.getLocalizedValue(n[e]).value}},{key:"_setText",value:function(e,t,r){var n=this.getSource(!0);n[e]=this._setLangHash(n[e],t,r),this.refreshExtends()}},{key:"_setTextMap",value:function(e,t){Oo(this.getSource(!0),e,t),this.refreshExtends()}},{key:"getLabel",value:function(e,t){return this._getText("label",e,t)}},{key:"setLabel",value:function(e,t){this._setText("label",e,t)}},{key:"getLabelMap",value:function(e){return this.getSource(e).label}},{key:"setLabelMap",value:function(e){this._setTextMap("label",e)}},{key:"getEditLabel",value:function(e,t){return this._getText("editlabel",e,t)}},{key:"setEditLabel",value:function(e,t){this._setText("editlabel",e,t)}},{key:"getEditLabelMap",value:function(e){return this.getSource(e).editlabel}},{key:"setEditLabelMap",value:function(e){this._setTextMap("editlabel",e)}},{key:"getDescription",value:function(e,t){return this._getText("description",e,t)}},{key:"setDescription",value:function(e,t){this._setText("description",e,t)}},{key:"getDescriptionMap",value:function(e){return this.getSource(e).description}},{key:"setDescriptionMap",value:function(e){this._setTextMap("description",e)}},{key:"getEditDescription",value:function(e,t){return this._getText("editdescription",e,t)}},{key:"setEditDescription",value:function(e,t){this._setText("editdescription",e,t)}},{key:"getEditDescriptionMap",value:function(e){return this.getSource(e).editdescription}},{key:"setEditDescriptionMap",value:function(e){this._setTextMap("editdescription",e)}},{key:"getHelp",value:function(e,t){return this._getText("help",e,t)}},{key:"setHelp",value:function(e,t){this._setText("help",e,t)}},{key:"getHelpMap",value:function(e){return this.getSource(e).help}},{key:"setHelpMap",value:function(e){this._setTextMap("help",e)}},{key:"getPlaceholder",value:function(e,t){return this._getText("placeholder",e,t)}},{key:"setPlaceholder",value:function(e,t){this._setText("placeholder",e,t)}},{key:"getPlaceholderMap",value:function(e){return this.getSource(e).placeholder}},{key:"setPlaceholderMap",value:function(e){this._setTextMap("placeholder",e)}},{key:"getPurpose",value:function(e,t){return this._getText("purpose",e,t)}},{key:"setPurpose",value:function(e,t){this._setText("purpose",e,t)}},{key:"getPurposeMap",value:function(e){return this.getSource(e).purpose}},{key:"setPurposeMap",value:function(e){this._setTextMap("purpose",e)}},{key:"getSpecification",value:function(e,t){return this._getText("specification",e,t)}},{key:"setSpecification",value:function(e,t){this._setText("specification",e,t)}},{key:"getSpecificationMap",value:function(e){return this.getSource(e).specification}},{key:"setSpecificationMap",value:function(e){this._setTextMap("specification",e)}},{key:"getText",value:function(e,t,r){var n=this.getSource(r).text||{};return t?Vn.getLocalizedValue(n[e]):Vn.getLocalizedValue(n[e]).value}},{key:"setText",value:function(e,t,r){var n=this.getSource(!0),o=n.text=n.text||{};o[e]=this._setLangHash(o[e],t,r),this.refreshExtends()}},{key:"setTextMap",value:function(e,t){var r=this.getSource(!0),n=r.text=r.text||{};Oo(n,e,t),this.refreshExtends()}},{key:"getProperty",value:function(e){var t=null,r=this.getSource(e);return r&&null!=(t=r.property)&&""!==t&&(t=f(t)),t}},{key:"setProperty",value:function(e){Oo(this.getSource(!0),"property",e),this.refreshExtends()}},{key:"getURIValueLabelProperties",value:function(e){var t=this.getSource(e).uriValueLabelProperties;return null!=t?t.map((function(e){return f(e)})):t}},{key:"setURIValueLabelProperties",value:function(e){Oo(this.getSource(!0),"uriValueLabelProperties",e),this.refreshExtends()}},{key:"getConstraints",value:function(e){var t=this.getSource(e).constraints;if(null!=t){var r={};return Object.keys(t).forEach((function(e){var n=t[e];Array.isArray(n)?r[f(e)]=n.map((function(e){return f(e)})):r[f(e)]=f(n)})),r}return t}},{key:"setConstraints",value:function(e){Oo(this.getSource(!0),"constraints",e),this.refreshExtends()}},{key:"getDeps",value:function(e){var t=this.getSource(e).deps;return null!=t?t.map((function(e){return"*"!==e&&".."!==e?f(e):e})):t}},{key:"setDeps",value:function(e){Oo(this.getSource(!0),"deps",e),this.refreshExtends()}},{key:"getDatatype",value:function(e){var t=this.getSource(e).datatype;return null!=t&&""!==t?Array.isArray(t)?t.map((function(e){return f(e)})):f(t):t}},{key:"setDatatype",value:function(e){Oo(this.getSource(!0),"datatype",e),this.refreshExtends()}},{key:"getPattern",value:function(e){return this.getSource(e).pattern}},{key:"setPattern",value:function(e){Oo(this.getSource(!0),"pattern",e),this.refreshExtends()}},{key:"getLanguage",value:function(e){return this.getSource(e).language}},{key:"setLanguage",value:function(e){Oo(this.getSource(!0),"language",e),this.refreshExtends()}},{key:"getMember",value:function(e){return this.getSource(e).member}},{key:"setMember",value:function(e){Oo(this.getSource(!0),"member",e),this.refreshExtends()}},{key:"getNodetype",value:function(e){var t=this.getSource(e);return t.nodetype||t.nodeType}},{key:"setNodetype",value:function(e){Oo(this.getSource(!0),"nodetype",e),this.refreshExtends()}},{key:"getValue",value:function(e){return this.getSource(e).value}},{key:"setValue",value:function(e){Oo(this.getSource(!0),"value",e),this.refreshExtends()}},{key:"getValueTemplate",value:function(e){return this.getSource(e).valueTemplate}},{key:"setValueTemplate",value:function(e){Oo(this.getSource(!0),"valueTemplate",e),this.refreshExtends()}},{key:"getCardinality",value:function(e){if(!this.getProperty()&&"text"===this.getType())return{min:1,max:1};var t=this.getSource(e);return t&&"cardinality"in t?t.cardinality:this.getProperty()?{}:{max:1}}},{key:"setCardinality",value:function(e){Oo(this.getSource(!0),"cardinality",e),this.refreshExtends()}},{key:"isEnabled",value:function(e){var t=this.getSource(e);return null==t.enabled||t.enabled}},{key:"setEnabled",value:function(e){var t=this.getSource(!0);e?delete t.enabled:t.enabled=e,this.refreshExtends()}},{key:"getClasses",value:function(e){var t=this.getSource(e);return t&&"cls"in t?t.cls:[]}},{key:"setClasses",value:function(e){Oo(this.getSource(!0),"cls",e),this.refreshExtends()}},{key:"hasClass",value:function(e,t){var r=this.getSource(t);return!!this.hasStyle(e,t)||null!=r.cls&&r.cls.some((function(t){return t.toLowerCase()===e.toLowerCase()}))}},{key:"getAvailableStyles",value:function(){return this._styles}},{key:"getStyles",value:function(e){return this.getSource(e).styles||[]}},{key:"setStyles",value:function(e){Oo(this.getSource(!0),"styles",e),this.refreshExtends()}},{key:"hasStyle",value:function(e,t){var r=this.getSource(t);return!(!r||!("styles"in r))&&r.styles.some((function(t){return t.toLowerCase()===e.toLowerCase()}))}},{key:"getSource",value:function(e){if(!0===e)return this._source._extendedSource||this._source;if(!1===e){var t=this._itemStore.getItem(this.getExtends());return null==t?this._source:t.getSource()}return this._source}},{key:"getBundle",value:function(){return this._bundle}},{key:"toStringShort",value:function(){return"'".concat(this.getLabel(),"'").concat(this.getId()?" (ID: '".concat(this.getId(),"')"):"")}},{key:"toString",value:function(){var e=[];return this.getId()&&e.push("ID: '".concat(this.getId(),"'")),e.push("TYPE: '".concat(this.getType(),"'")),this.getProperty()&&e.push("PROPERTY: '".concat(this.getProperty(),"'")),this.getExtends()&&e.push("EXTENDS: '".concat(this.getExtends(),"'")),"'".concat(this.getLabel(),"' (").concat(e.join(", "),")")}},{key:"_setLangHash",value:function(e,t,r){var n=e||{};if("string"==typeof t)"string"==typeof r?n[r]=t:n[""]=t;else if("object"===Eo(t)&&null!==t)return t;return n}}])&&To(t.prototype,r),n&&To(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function jo(e){return(jo="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 Po(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,Ro(n.key),n)}}function Ro(e){var t=function(e,t){if("object"!=jo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=jo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jo(t)?t:String(t)}function Io(e,t,r){return t=Mo(t),function(e,t){if(t&&("object"===jo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Mo(e).constructor):t.apply(e,r))}function No(){return(No="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Lo(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Lo(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Mo(e)););return e}function Mo(e){return(Mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fo(e,t){return(Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Bo=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=Io(this,t,[e]))._children=e.children,null!=r._source.content&&(r._source.items=r._source.content,delete r._source.content),r._forceChildrenClones=!1,r._parent=null,r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fo(e,t)}(t,e),r=t,(n=[{key:"getChildren",value:function(e){var t,r=e&&this.isExtention(),n=r?this._ochildren:this._children;return null==n&&(n=this._itemStore.getChildren(this,r),!0===this.getSource().automatic&&this._itemStore.automaticSortAllowed&&((t=n).forEach((function(e){e.__label=(e.getLabel()||"").toLowerCase()})),t.sort((function(e,t){return null!=e._source.priority?null!=t._source.priority?e._source.priority>t._source.priority?-1:e._source.priority<t._source.priority?1:0:e._source.priority>0?-1:1:null!=t._source.priority?t._source.priority>0?1:-1:e.__label>t.__label?1:e.__label<t.__label?-1:0}))),this["_".concat(r?"o":"","children")]=n),n}},{key:"originalChildrenChanged",value:function(){this.isExtention()&&delete this._children}},{key:"setExtends",value:function(e){No(Mo(t.prototype),"setExtends",this).call(this,e),delete this._children,delete this._ochildren}},{key:"getNodetype",value:function(){return No(Mo(t.prototype),"getNodetype",this).call(this)||"RESOURCE"}}])&&Po(r.prototype,n),o&&Po(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Do);function Uo(e){return(Uo="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 Vo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,Ho(n.key),n)}}function Ho(e){var t=function(e,t){if("object"!=Uo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Uo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Uo(t)?t:String(t)}function Wo(e,t,r){return t=Go(t),function(e,t){if(t&&("object"===Uo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Go(e).constructor):t.apply(e,r))}function zo(){return(zo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Yo(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Yo(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Go(e)););return e}function Go(e){return(Go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qo(e,t){return(qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Xo=function(e){function t(){return Vo(this,t),Wo(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qo(e,t)}(t,e),r=t,(n=[{key:"getChildren",value:function(e){if(null==this._delegatedChildren){var r=function(){return{min:1,max:1,pref:1}},n=zo(Go(t.prototype),"getChildren",this).call(this,e)||[];this._delegatedChildren=n.map((function(e){var t=Object.create(e);return t.getCardinality=r,t}))}return this._delegatedChildren}},{key:"getPropertyItem",value:function(){return this.getChildren()[0]}},{key:"getObjectItem",value:function(){return this.getChildren()[1]}}])&&$o(r.prototype,n),o&&$o(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Bo);function Qo(e){return(Qo="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 Zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ko(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,Jo(n.key),n)}}function Jo(e){var t=function(e,t){if("object"!=Qo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Qo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qo(t)?t:String(t)}function ei(e,t,r){return t=ti(t),function(e,t){if(t&&("object"===Qo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],ti(e).constructor):t.apply(e,r))}function ti(e){return(ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ri(e,t){return(ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ni=function(e){function t(){return Zo(this,t),ei(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ri(e,t)}(t,e),r=t,(n=[{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties}}])&&Ko(r.prototype,n),o&&Ko(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Do);function oi(e){return(oi="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 ii(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,ai(n.key),n)}}function ai(e){var t=function(e,t){if("object"!=oi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=oi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oi(t)?t:String(t)}function si(e,t,r){return t=di(t),function(e,t){if(t&&("object"===oi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],di(e).constructor):t.apply(e,r))}function li(){return(li="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=ci(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function ci(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=di(e)););return e}function di(e){return(di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ui(e,t){return(ui=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var fi=function(e){null!=e&&e.forEach((function(e){e.value=f(e.value)}))},pi=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=si(this,t,[e]))._ontologyStore=e.ontologyStore,r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ui(e,t)}(t,e),r=t,(n=[{key:"getChoices",value:function(e){return this.getStaticChoices(e)||this.getDynamicChoices(e)||[]}},{key:"hasChoices",value:function(e){var t=this.getSource(e);return null!=t.ontologyUrl||null!=t.choices}},{key:"hasStaticChoices",value:function(e){return null!=this.getSource(e).choices}},{key:"getStaticChoices",value:function(e){var t=this.getSource(e);if(t.choices){var r=-1===this.getNodetype().indexOf("LITERAL");e&&this.isExtention()?this._origStaticIsSorted||(r&&fi(t.choices),this._origStaticIsSorted=!0):this._staticIsSorted||(r&&fi(t.choices),this._staticIsSorted=!0)}return t.choices}},{key:"setStaticChoices",value:function(e){var t=this.getSource(!0);t.choices!==e&&(null!=e&&(this._origStaticIsSorted=!0),t.choices=e,this.refreshExtends())}},{key:"setExtends",value:function(e){li(di(t.prototype),"setExtends",this).call(this,e),delete this._staticIsSorted,delete this._origStaticIsSorted}},{key:"getDynamicChoices",value:function(e){var t=this;if(null==this._dynamicChoices){if(null==e)return this._dynamicChoices=this._ontologyStore.getChoices(this),this._dynamicChoices;this._ontologyStore.getChoices(this,(function(r){t._dynamicChoices=r,null==t._dynamicChoices&&(console.log("Failed lookup of choices for ".concat(t.getLabel())),console.log("OntologyUrl is: ".concat(t._source.ontologyUrl))),e(t._dynamicChoices)}))}else{if(null==e)return this._dynamicChoices;e(this._dynamicChoices)}}},{key:"getOntologyUrl",value:function(e){var t=this.getSource(e).ontologyUrl;return null!=t&&""!==t?f(t):t}},{key:"setOntologyUrl",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.ontologyUrl:t.ontologyUrl=e,this.refreshExtends()}},{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties||["http://www.w3.org/2000/01/rdf-schema#label"]}},{key:"getParentProperty",value:function(e){var t=this.getSource(e).parentProperty;return null!=t&&""!==t?f(t):t}},{key:"setParentProperty",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.parentProperty:t.parentProperty=e,this.refreshExtends()}},{key:"getHierarchyProperty",value:function(e){var t=this.getSource(e).hierarchyProperty;return null!=t&&""!==t?f(t):t}},{key:"setHierarchyProperty",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.hierarchyProperty:t.hierarchyProperty=e,this.refreshExtends()}},{key:"isParentPropertyInverted",value:function(e){return!0===this.getSource(e).isParentPropertyInverted}},{key:"setParentPropertyInverted",value:function(e){var t=this.getSource(!0);!0===e?t.isParentPropertyInverted=!0:delete t.isParentPropertyInverted,this.refreshExtends()}},{key:"isHierarchyPropertyInverted",value:function(e){return!0===this.getSource(e).isHierarchyPropertyInverted}},{key:"setHierarchyPropertyInverted",value:function(e){var t=this.getSource(!0);e?t.isHierarchyPropertyInverted=!0:delete t.isHierarchyPropertyInverted,this.refreshExtends()}}])&&ii(r.prototype,n),o&&ii(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Do);r(8436);function hi(e){return(hi="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 mi(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,gi(n.key),n)}}function gi(e){var t=function(e,t){if("object"!=hi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=hi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hi(t)?t:String(t)}function bi(e,t,r){return t=wi(t),function(e,t){if(t&&("object"===hi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],wi(e).constructor):t.apply(e,r))}function vi(){return(vi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=yi(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function yi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=wi(e)););return e}function wi(e){return(wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xi(e,t){return(xi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var _i=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=bi(this,t,[e]))._validObject=!0,r._validPredicate=!0,r._excludeFromTreeValidityCheck=!1,r._statement&&(r._validPredicate=r._isValidPredicateValue(r._statement.getPredicate(),!0),r._validObject=r._isValidObjectValue(r._statement.getValue())),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xi(e,t)}(t,e),r=t,(n=[{key:"getValue",value:function(){return this._statement.getValue()}},{key:"setValue",value:function(e,t){var r="string"==typeof e?e.trim():e,n=this._validObject;this._isValidObjectValue(r)?(this._statement.setValue(r,t),this._validObject=!0,!0===n||!0!==this._validPredicate||this._excludeFromTreeValidityCheck||this._parent.oneChildValidityChanged(!0)):(""!==r&&null!==r||this._statement.setValue("",t),this._validObject=!1,!1!==n&&!0===this._validPredicate&&this._parent.oneChildValidityChanged(!1)),this.updateAssertions()}},{key:"setSubject",value:function(e){this._statement.setSubject(e)}},{key:"getPredicate",value:function(){return this._statement.getPredicate()}},{key:"setPredicate",value:function(e){var t=this._validPredicate;this._isValidPredicateValue(e)?(this._statement.setPredicate(e),this._validPredicate=!0,!0!==t&&!0===this._validObject&&this._parent.oneChildValidityChanged(!0)):(this._validPredicate=!1,!1!==t&&!0===this._validObject&&this._parent.oneChildValidityChanged(!1)),this.updateAssertions()}},{key:"getLanguage",value:function(){return this._statement.getLanguage()}},{key:"setLanguage",value:function(e,t){this._statement.setLanguage(e,t),t||this.bindingChange(this)}},{key:"getDatatype",value:function(){return this._statement.getDatatype()}},{key:"setDatatype",value:function(e){this._statement.setDatatype(f(e)),this.updateAssertions()}},{key:"setExcludeFromTreeValidityCheck",value:function(e){this._excludeFromTreeValidityCheck=e}},{key:"remove",value:function(){this.setValue(null),this._parent.removeChildBinding(this),vi(wi(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){var e=this._ancestorValid&&this._validObject&&this._validPredicate;this._statement.setAsserted(e,!0),this.bindingChange(this)}},{key:"isValid",value:function(){return this._validObject&&this._validPredicate&&!this._excludeFromTreeValidityCheck}}])&&mi(r.prototype,n),o&&mi(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(so);function ki(e){return(ki="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 Si(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,Ei(n.key),n)}}function Ei(e){var t=function(e,t){if("object"!=ki(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ki(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ki(t)?t:String(t)}function Ti(e,t,r){return t=Oi(t),function(e,t){if(t&&("object"===ki(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Oi(e).constructor):t.apply(e,r))}function Ci(){return(Ci="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Ai(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Ai(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Oi(e)););return e}function Oi(e){return(Oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Di(e,t){return(Di=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ji="http://www.w3.org/2000/01/rdf-schema#label",Pi="http://www.w3.org/2000/01/rdf-schema#seeAlso",Ri=function(e){function t(e){var r,n=e.choice,o=e.item,i=e.statement,a=e.matchingCode;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Ti(this,t,[{choice:n,item:o,statement:i,matchingCode:a}]))._choice=n,r._validPredicate=null!=o.getProperty(),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Di(e,t)}(t,e),r=t,o=[{key:"seeAlso",get:function(){return Pi}}],(n=[{key:"setChoice",value:function(e,t){this._choice=e,null==e?this.setValue(null,null,t):this.getValue()!==e.value&&this.setValue(e.value,e,t),e&&e.mismatch?this.setMatchingCode(lo.WRONG_VALUE):e&&e.mismatch||this.getMatchingCode()!==lo.WRONG_VALUE||this.setMatchingCode(lo.OK)}},{key:"getChoice",value:function(){return this._choice}},{key:"setValue",value:function(e,r,n){var o=this.getValue();Ci(Oi(t.prototype),"setValue",this).call(this,e,r,n);var i=this._statement.getGraph();if(i.findAndRemove(o,ji,void 0,n),i.findAndRemove(o,Pi,void 0,n),null!=e&&null!=r&&(r.seeAlso&&r.inlineSeeAlso&&i.create(e,Pi,r.seeAlso,!0,n),!0===r.inlineLabel)){var a=r.label||{};Object.keys(a).forEach((function(t){return i.create(e,ji,{value:a[t],lang:t,type:"literal"},!0,n)}))}}}])&&Si(r.prototype,n),o&&Si(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(_i);function Ii(e){return(Ii="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 Ni(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,Li(n.key),n)}}function Li(e){var t=function(e,t){if("object"!=Ii(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ii(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ii(t)?t:String(t)}function Mi(e,t,r){return t=Fi(t),function(e,t){if(t&&("object"===Ii(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Fi(e).constructor):t.apply(e,r))}function Fi(e){return(Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bi(e,t){return(Bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ui=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=Mi(this,t,[e]))._objectBinding=e.objectBinding,r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bi(e,t)}(t,e),r=t,(n=[{key:"remove",value:function(){}},{key:"setValue",value:function(e){this._objectBinding.setPredicate(e)}},{key:"getValue",value:function(){return this._objectBinding.getPredicate()}},{key:"isValid",value:function(){return!1}},{key:"updateAssertions",value:function(){}}])&&Ni(r.prototype,n),o&&Ni(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Ri);function Vi(e){return(Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $i(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,Hi(n.key),n)}}function Hi(e){var t=function(e,t){if("object"!=Vi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Vi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vi(t)?t:String(t)}function Wi(e,t,r){return t=zi(t),function(e,t){if(t&&("object"===Vi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],zi(e).constructor):t.apply(e,r))}function zi(e){return(zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yi(e,t){return(Yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Gi=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=Wi(this,t,[e]);var n=e.statement,o=e.constraints;r._statement=void 0,r._validPredicate=!0,r._constraints=[];var i,a=r._item.getChildren(),s=a[1];i=s instanceof Bo?new So({item:s,statement:n,constraints:o}):s instanceof pi?new Ri({item:s,statement:n}):new _i({item:s,statement:n});var l=new Ui({item:a[0],objectBinding:i});return r.addChildBinding(l),r.addChildBinding(i),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yi(e,t)}(t,e),r=t,(n=[{key:"getPredicateBinding",value:function(){return this._childBindings[0][0]}},{key:"getObjectBinding",value:function(){return this._childBindings[1][0]}},{key:"getGraph",value:function(){return this.getObjectBinding().getGraph()}}])&&$i(r.prototype,n),o&&$i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(So);function qi(e){return(qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qi(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,Zi(n.key),n)}}function Zi(e){var t=function(e,t){if("object"!=qi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=qi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qi(t)?t:String(t)}function Ki(e,t,r){return t=ta(t),function(e,t){if(t&&("object"===qi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],ta(e).constructor):t.apply(e,r))}function Ji(){return(Ji="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=ea(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function ea(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ta(e)););return e}function ta(e){return(ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ra(e,t){return(ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var na,oa,ia,aa,sa,la=function(e){function t(){return Xi(this,t),Ki(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ra(e,t)}(t,e),r=t,(n=[{key:"getValue",value:function(){return this._parent.getValue()}},{key:"setValue",value:function(e){return this._parent.setValue(e)}},{key:"getGist",value:function(){return this._parent.getGist()}},{key:"setGist",value:function(e,t){return this._parent.setGist(e,t)}},{key:"setSubject",value:function(e){}},{key:"getPredicate",value:function(){return this._parent.getPredicate()}},{key:"remove",value:function(){this._parent.removeChildBinding(this),Ji(ta(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){}},{key:"isValid",value:function(){return!0}}])&&Qi(r.prototype,n),o&&Qi(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(_i);function ca(e){return(ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var da,ua,fa,pa,ha,ma,ga=!1,ba=function(e,t,r){var n=new So({item:r,childrenRootUri:t,graph:e});return na(n),oa(n),n},va=function(e,t,r){var n=new So({item:r,childrenRootUri:t,graph:e});return na(n),ga=!0,na(n),ga=!1,oa(n),n},ya=function(e,t,r,n){var o=e.findProperties(t),i=[],a={};if(null!=n){var s=function(e){null!=e&&(!function e(t){null!=t.getProperty()?a[t.getProperty()]=!0:t instanceof Bo&&t.getChildren().forEach(e)}(e),i.push(e))};n.forEach((function(e){var t=r.getItem(e);null!=t?t instanceof Bo&&null==t.getProperty()?t.getChildren().forEach(s):s(t):(t=r.getItemByProperty(e))?s(t):console.warn("Warning, when autodetecting a template: Required item '".concat(e,"' is neither an id for a loaded item or a property for a loaded item, ignoring."))}))}return o.forEach((function(e){if(!a[e]){var t=r.getItemByProperty(e);null!=t&&i.push(t)}}),void 0),r.createTemplateFromChildren(i)},wa=function(e){return Array.isArray(e.getDatatype())?e.getDatatype()[0]:e.getDatatype()},xa=function(e,t){var r,n,o=t.getChildren()[1],i=e.getGraph();o instanceof Bo?(r=i.create(e.getChildrenRootUri(),"",null,!1),n=sa(i,r.getSubject(),o)):r=o instanceof pi?i.create(e.getChildrenRootUri(),"",{type:"uri",value:""},!1):i.create(e.getChildrenRootUri(),"",{type:"literal",value:""},!1);var a=new Gi({item:t,statement:r,constraints:n});return e.addChildBinding(a),o instanceof Bo&&o.getChildren().forEach((function(e){_a(a.getObjectBinding(),e)})),a},_a=function(e,t,r){return t instanceof ni?function(e,t){if(!t.getProperty()){var r=new la({item:t,statement:null,matchingCode:lo.OK});return e.addChildBinding(r),r}var n=e.getGraph(),o=t.getNodetype(),i={value:"",type:"literal"};"URI"===o?i.type="uri":"DATATYPE_LITERAL"===o&&(i.datatype=wa(t));var a=t.getValue();if(null!=a&&0===e.getChildBindingsFor(t).length){i.value=a;var s=t.getLanguage();null!=s&&(i.lang=s)}var l=n.create(e.getChildrenRootUri(),t.getProperty(),i,!1),c=new _i({item:t,statement:l});return e.addChildBinding(c),c}(e,t):t instanceof Xo?xa(e,t):t instanceof Bo?function(e,t,r){var n,o;if(void 0!==t.getProperty()){var i=e.getGraph();n=(t.getNodetype(),i.create(e.getChildrenRootUri(),t.getProperty(),null,!1)),o=sa(i,n.getValue(),t)}var a=new So({item:t,statement:n,constraints:o});e.addChildBinding(a);var s=t._source["@id"];if(s){if(r[s])return a;r[s]=!0}return a}(e,t,r||{}):t instanceof pi?function(e,t){var r=e.getGraph(),n=t.getNodetype(),o={type:"literal",value:""};"DATATYPE_LITERAL"===n?o.datatype=wa(t):"RESOURCE"!==n&&"URI"!==n||(o.type="uri");var i=r.create(e.getChildrenRootUri(),t.getProperty(),o,!1),a=new Ri({item:t,statement:i});e.addChildBinding(a);var s=t.getValue(),l=a.getCardinalityTracker();return null!=s&&1===l.getCounter()&&a.setChoice(ha(t,s,r),!0),a}(e,t):void 0};na=function(e){ga&&e.getChildBindings().forEach((function(e){"group"===e.getItem().getType()&&na(e)})),e.getItem().getChildren().forEach((function(t){ga?void 0!==t.getProperty()&&da(e,t):da(e,t)}))};da=function(e,t){t instanceof pi?function(e,t){if(null!=t.getProperty()){var r=[];e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(ia(e)){var n=ua(t,e),o=fa(t,e),i=pa(t,e);if(n&&o&&i||ga){var a=ha(t,e.getValue(),e.getGraph());if(void 0!==a){aa(e);var s=n?lo.OK:lo.WRONG_NODETYPE;o?i?a.mismatch&&(s=lo.WRONG_VALUE):s=lo.WRONG_PATTERN:s=lo.WRONG_DATATYPE,r.push(new Ri({item:t,statement:e,choice:a,matchingCode:s}))}}}})),r.length>0&&e.addChildBindings(r)}}(e,t):t instanceof Xo?function(e,t){var r,n,o,i,a=t.getPropertyItem(),s=t.getObjectItem(),l=e.getGraph(),c=[];l.find(e.getChildrenRootUri()).forEach((function(e){ia(e)&&ua(s,e)&&pa(s,e)&&void 0!==(o=ha(a,e.getPredicate(),e.getGraph()))&&(n=null,s instanceof Bo?void 0!==(r=ma(l,e.getValue(),s))&&(aa(e),n=new Gi({item:t,statement:e,constraints:r}),na(n.getObjectBinding())):s instanceof pi?void 0!==(i=ha(s,e.getValue(),e.getGraph()))&&(aa(e),(n=new Gi({item:t,statement:e})).getObjectBinding().setChoice(i)):(aa(e),n=new Gi({item:t,statement:e})),null!==n&&(n.getPredicateBinding().setChoice(o),c.push(n)))})),c.length>0&&e.addChildBindings(c)}(e,t):t instanceof Bo?function(e,t){var r,n,o,i,a=e.getGraph();void 0!==t.getProperty()?(r=a.find(e.getChildrenRootUri(),t.getProperty())).length>0&&(n=[],r.forEach((function(e){if(ia(e)){var r=pa(t,e),s=ua(t,e);if((r&&s||ga)&&(void 0!==(o=ma(a,e.getValue(),t))||ga)){var l=s?lo.OK:lo.WRONG_NODETYPE;r?void 0===o&&(l=lo.MISSING_CONSTRAINTS):l=lo.WRONG_PATTERN,aa(e),i=new So({item:t,statement:e,constraints:o,matchingCode:l}),n.push(i),l===lo.OK&&na(i)}}})),e.addChildBindings(n)):(i=new So({item:t}),e.addChildBindings([i]),na(i))}(e,t):t instanceof ni&&function(e,t){var r=[];null==t.getProperty()?r.push(new la({item:t,statement:null,matchingCode:lo.OK})):e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(ia(e)&&pa(t,e)){var n=ua(t,e),o=fa(t,e);if(n&&(o||t.hasStyle("relaxedDatatypeMatch"))||ga){aa(e);var i=n?lo.OK:lo.WRONG_NODETYPE;o||(i=lo.WRONG_DATATYPE),r.push(new _i({item:t,statement:e,matchingCode:i}))}}})),r.length>0&&e.addChildBindings(r)}(e,t)},ua=function(e,t){var r=t.getType();switch(e.getNodetype()){case"LITERAL":case"ONLY_LITERAL":case"PLAIN_LITERAL":case"LANGUAGE_LITERAL":case"DATATYPE_LITERAL":return"literal"===r;case"RESOURCE":return"uri"===r||"bnode"===r;case"URI":return"uri"===r;case"BLANK":return"bnode"===r}return!1},fa=function(e,t){var r="DATATYPE_LITERAL"===e.getNodetype()&&e.getDatatype()||null;return null==r||(Array.isArray(r)?-1!==r.indexOf(t.getDatatype()):t.getDatatype()===r)},pa=function(e,t){var r=e.getPattern(),n=Vn.extractGist(t.getValue(),e.getValueTemplate());if(void 0!==r)try{return new RegExp("^".concat(r,"$")).test(n)}catch(e){return!0}return!0},ma=function(e,t,r){var n,o=r.getConstraints(),i=[],a=function(r,o){if(1!==(n=e.find(t,r,{type:"uri",value:o})).length)return!1;i.push(n[0])};if("object"===ca(o)&&null!==o){for(var s,l=Object.keys(o),c=function(){var e=l[d],t=o[e];if(t instanceof Array){var r=!0;if(t.forEach((function(t){!1!==a(e,t)&&(r=!1)})),r)return{v:void 0}}else if(!1===a(e,t))return{v:void 0}},d=0;d<l.length;d++)if(s=c())return s.v;return i}return[]},sa=function(e,t,r){var n=[],o=r.getConstraints();return"object"===ca(o)&&null!==o&&Object.keys(o).forEach((function(r){var i=o[r];Array.isArray(i)?n.push(e.create(t,r,{type:"uri",value:i[0]},!1)):n.push(e.create(t,r,{type:"uri",value:i},!1))})),n},ha=function(e,t,r){var n,o;if(e.hasChoices()){for(o=e.getChoices(),n=0;n<o.length;n++)if(o[n].value===t)return o[n];if(!e.hasStyle("strictmatch")||ga)return{value:t,label:{"":t},mismatch:!0}}else{var i=Vn.getLocalizedMap(r,t,e.getLabelProperties());null==i&&ga&&(i={"":t,mismatch:!0});var a=r.findFirstValue(t,Ri.seeAlso);if(null!=i){var s={label:i,value:t};return a&&(s.seeAlso=a),s}if(null!=Hn.getChoice)return Hn.getChoice(e,t,a,r)}},aa=function(e){e._dibbs=!0},ia=function(e){return!0!==e._dibbs},oa=function(e){var t,r,n,o=e.getItemGroupedChildBindings()||[];for(t=0;t<o.length;t++)for(n=o[t],r=0;r<n.length;r++){var i=n[r];i._statement&&delete i._statement._dibbs,(i instanceof So||i instanceof Gi)&&oa(i)}};var ka=function e(t,r){for(var n="/"===r[0]?r.slice(1):r,o=t.getItemGroupedChildBindings(),i=n[0],a=0;a<o.length;a++)for(var s=o[a],l=void 0,c=0;c<s.length;c++){var d=s[c],u=d.getItem();if(u instanceof pi&&void 0===u.getProperty()&&i===u.getId()&&2===n.length&&n[1]===d.getValue())return d;if(d.isValid()){if("propertygroup"===u.getType())u=(d=d.getObjectBinding()).getItem();else if(void 0===u.getProperty()&&(l=e(d,n)))return l;if("*"===i||i===d.getPredicate())if("group"===u.getType()){if(l=e(d,n.slice(1)))return l}else if(1===n.length||"*"===n[1]||n[1]===d.getValue())return d}}},Sa=function(e,t){var r=t[0],n=e;if("/"===r){for(;n.getParent();)n=n.getParent();return n}if(".."===r){for(var o=0;o<t.length;o++){if(".."!==t[o]||!n.getParent())return n;n=n.getParent()}return n}return e},Ea=function(e,t){var r=e.getId(),n={},o={};e.getChoices().forEach((function(e){n[e.value]=0,o[e.value]=e}));t.getChildBindings().forEach((function(e){var t=e.getItem().getDeps();if(t&&(t[0]===r||"/"===t[0]&&t[1]===r)){var o="/"===t[0]?t[2]:t[1],i=n[o];void 0!==i&&(n[o]=i+1)}}));var i,a=0;return Object.keys(n).forEach((function(e){(!i||n[e]>a)&&(i=e,a=n[e])})),o[i]};const Ta={detectLevel:function(e){if(e.mandatory>0){if(0===e.recommended&&0===e.optional)return"mandatory";if(0===e.optional)return"mixed_mandatory_recommended";if(0===e.recommended)return"mixed_mandatory_optional"}else{if(e.recommended>0)return 0===e.optional?"recommended":"mixed_recommended_optional";if(0===e.recommended&&e.recommended>0&&0===e.optional)return"optional"}return"mixed_all"},levelProfile:function(e){var t=function e(t,r,n){var o=r.getCardinality();return n&&"group"===r.getType()||(null!=o?o.min>0?t.mandatory+=1:o.pref>0?t.recommended+=1:t.optional+=1:t.optional+=1),"group"===r.getType()&&r.getChildren().forEach((function(r){return e(t,r)})),t}({mandatory:0,recommended:0,optional:0},e,!0);return t.itemCount=t.mandatory+t.recommended+t.optional,t},findFirstValueBinding:function e(t,r){if(t instanceof _i)return t;for(var n=t.getItemGroupedChildBindings(),o=Fn().locale(),i=0;i<n.length;i++){var a=n[i],s=t.getItem().getChildren()[i];if(0!==a.length){if(!(s instanceof ni))return e(a[0]);if("LANGUAGE_LITERAL"===s.getNodetype()){for(var l={firstValue:a[0]},c=0;c<a.length;c++){var d=a[c].getLanguage();null==d?l.emptyLanguageValue=a[c]:d===o?l.perfectLocaleLanguageValue=a[c]:d.substring(0,1)===o.substring(0,1)?l.localeLanguageValue=a[c]:-1!==d.indexOf("en")?l.defaultLanguageValue=a[c]:l.anyLanguageValue=a[c]}return l.perfectLocaleLanguageValue||l.localeLanguageValue||l.defaultLanguageValue||l.anyLanguageValue||l.firstValue}return a[0]}if(r){var u=_a(t,s,{});return u instanceof _i?(u.setLanguage(o),u):e(u,!0)}}},create:_a,constructTemplate:ya,findPopularChoice:Ea,match:ba,fuzzyMatch:va,matchPathBelowBinding:ka,findBindingRelativeToParentBinding:Sa,CODES:lo};var Ca=function(e,t){var r=t;return null==r?r={errors:[],warnings:[],deprecated:[]}:(r.errors=r.errors||[],r.warnings=r.warnings||[],r.deprecated=r.deprecated||[]),ja(e,r,!0)},Aa=function(e){for(var t=0,r=0;r<e.length;r++)e[r].isValid()&&(t+=1);return t},Oa=function(e,t){e.length>0&&e[0].getCardinalityTracker().setCode(t)},Da=function(e,t){if(t.hasStyle("deprecated"))return!0;var r=t.getDeps();if(r){var n=Sa(e,r);if(!ka(n,r))return!0}return!1},ja=function e(t,r,n){if(t.getMatchingCode()===lo.OK){var o=t.getItem();if(!0===n||t.isValid()||null==o.getProperty()||o.hasStyle("atLeastOneChild")||o.hasStyle("exactlyOneChild")){var i=o.getChildren();if(o.hasStyle("disjoint")||o.hasStyle("atMostOneChild")||o.hasStyle("atLeastOneChild")||o.hasStyle("exactlyOneChild")){var a,s=t.getChildBindings(),l=Aa(s);l>1&&(o.hasStyle("disjoint")||o.hasStyle("atMostOneChild"))?a=lo.AT_MOST_ONE_CHILD:1!==l&&o.hasStyle("exactlyOneChild")?a=lo.EXACTLY_ONE_CHILD:0===l&&o.hasStyle("atLeastOneChild")&&(a=lo.AT_LEAST_ONE_CHILD),a&&(Oa([t],a),i.length>0&&r.errors.push({parentBinding:t,item:i[0],code:a}))}else t.getItemGroupedChildBindings().forEach((function(e,n){var o=i[n];if(!Da(t,o)&&null!=o.getProperty()){var a=Aa(e),s=o.getCardinality();null!=s.min&&s.min>a?(r.errors.push({parentBinding:t,item:o,code:lo.TOO_FEW_VALUES_MIN}),Oa(e,lo.TOO_FEW_VALUES_MIN)):null!=s.pref&&s.pref>a&&r.warnings.push({parentBinding:t,item:o,code:lo.TOO_FEW_VALUES_PREF}),null!=s.max&&s.max<a&&(r.errors.push({parentBinding:t,item:o,code:lo.TOO_MANY_VALUES}),Oa(e,lo.TOO_MANY_VALUES))}}),void 0);t.getChildBindings().forEach((function(n){var o=n.getItem();n.getMatchingCode()!==lo.OK&&r.errors.push({parentBinding:n,item:o,code:n.getMatchingCode()}),o.hasStyle("deprecated")&&r.deprecated.push(n),Da(t,o)||"group"===o.getType()&&e(n,r)}))}return r}},Pa=function(e,t){return e.find(null,"rdf:type",t).map((function(e){return e.getSubject()}))},Ra=function(e,t,r){for(var n=e;;){var o=n.getChildrenRootUri?n.getChildrenRootUri():n.getParent().getChildrenRootUri();if(o===t)return!0;if(r[o])return!1;n=n.getParent()}},Ia=function(e,t){var r=e,n=[];for(null!=t.getProperty()&&r.getItem()!==t&&n.push(u(t.getProperty()));null!=r.getItem().getProperty()&&n.push(u(r.getItem().getProperty())),null!=r.getParent();)r=r.getParent();return n.reverse(),n.join(" > ")},Na=function(e){var t=e.errors,r=e.warnings,n=e.deprecated;e.errors=t.map((function(e){return{path:Ia(e.parentBinding,e.item),code:e.code}})),e.warnings=r.map((function(e){return{path:Ia(e.parentBinding,e.item),code:e.code}})),e.deprecated=n.map((function(e){return function(e){return"".concat(Ia(e.getParent(),e.getItem())," > ").concat(e.getValue())}(e)}))},La=function(e,t,r,n){var o=va(t,e,r),i=Ca(o);return function(e,t,r){var n=e.errors,o=e.warnings,i=e.deprecated;e.errors=n.filter((function(e){return Ra(e.parentBinding,t,r)})),e.warnings=o.filter((function(e){return Ra(e.parentBinding,t,r)})),e.deprecated=i.filter((function(e){return Ra(e,t,r)}))}(i,e,n||{}),Na(i),i};const Ma={graphReport:function(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={},a={},s={errors:0,warnings:0,deprecated:0,resources:[]};Object.keys(t).forEach((function(t){var r=Pa(e,t);i[t]=r,r.forEach((function(e){a[e]=!0}))})),Object.keys(i).forEach((function(o){r=t[o],i[o].forEach((function(t){(n=La(t,e,r,a)).uri=t,n.type=o,n.template=r.getId(),s.resources.push(n),s.errors+=n.errors.length,s.warnings+=n.warnings.length,s.deprecated+=n.deprecated.length}))}));var l=[];return o.forEach((function(e){0===i[e].length&&l.push(e)})),l.length>0&&(s.mandatoryError=l,s.errors+=l.length),s},bindingReport:Ca};function Fa(e){return(Fa="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 Ba(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,Ua(n.key),n)}}function Ua(e){var t=function(e,t){if("object"!=Fa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fa(t)?t:String(t)}var Va=0;function $a(e){return($a="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 Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wa(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,za(n.key),n)}}function za(e){var t=function(e,t){if("object"!=$a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=$a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$a(t)?t:String(t)}function Ya(e,t,r){return t=Xa(t),function(e,t){if(t&&("object"===$a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Xa(e).constructor):t.apply(e,r))}function Ga(){return(Ga="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=qa(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function qa(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Xa(e)););return e}function Xa(e){return(Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qa(e,t){return(Qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Za=function(e,t,r){if(0===r.length||t.hasStyle("invisible"))return!1;if(t.getProperty())return!e.filterItem(t);if("group"===t.getType()){var n=t.getChildren();return 0===n.length||!!r[0].getItemGroupedChildBindings().find((function(t,r){return Za(e,n[r],t)}))}return!0},Ka=function(e){function t(){return Ha(this,t),Ya(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qa(e,t)}(t,e),r=t,(n=[{key:"_handleParams",value:function(e){this.showLanguage=!1!==e.showLanguage,this.filterTranslations=!1!==e.filterTranslations,this.defaultLanguage=e.defaultLanguage,this.styleCls=e.styleCls||"rdformsPresenter",Ga(Xa(t.prototype),"_handleParams",this).call(this,e)}},{key:"showNow",value:function(e,t){return Za(this,e,t)}},{key:"skipBinding",value:function(e){var t=e.getItem(),r="group"===t.getType();return!(!t.getProperty()&&r&&0===t.getChildren().length)&&r&&0===e.getChildBindings().length}},{key:"prepareBindings",value:function(e,t){return e.hasStyle("filterTranslations")||this.filterTranslations&&"LANGUAGE_LITERAL"===e.getNodetype()&&!e.hasStyle("viewAllTranslations")?ro.filterTranslations(t,Fn().locale(),this.defaultLanguage):t}},{key:"addLabel",value:function(e,t,r){r.hasStyle("noLabelInPresent")?ro.domClassToggle(e,"rdformsInvisibleGroup",!0):ro.renderPresenterLabel(e,t,r,this.context)}},{key:"addTable",value:function(e,t){return ro.addPresenterTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){return ro.fillPresenterTable(e,t,{view:this})}},{key:"preRenderView",value:function(){ro.prePresenterViewRenderer(this.domNode,this.binding,{view:this,topLevel:this.topLevel})}},{key:"addComponent",value:function(e,t){ro.renderPresenter(e,t,this.context)}},{key:"truncateAt",value:function(e,t){return"group"!==e.getType()&&t&&t.length>this.truncateLimit&&(this.truncate||e.hasStyle("truncate"))&&!e.hasStyle("noTruncate")?this.truncateLimit:-1}}])&&Wa(r.prototype,n),o&&Wa(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewId=Va,Va+=1,this.parentView=t.parentView,this.srcNodeRef=r,this.binding=t.binding||null,this.template=t.template||null,this.graph=t.graph||null,this.resource=t.resource||"",this.topLevel=!1!==t.topLevel,this.compact=!1!==t.compact,this.showDescription=!0===t.showDescription,this.styleCls=t.styleCls||"",this.truncateLimit=void 0!==t.truncateLimit?t.truncateLimit:10,this.truncate=void 0!==t.truncate&&t.truncate,Array.isArray(t.filterPredicates)?this.filterPredicates=t.filterPredicates.reduce((function(e,t){return e[t]=!0,e}),{}):"object"===Fa(t.filterPredicates)?this.filterPredicates=t.filterPredicates:"string"==typeof t.filterPredicates?this.filterPredicates=t.filterPredicates.split(",").reduce((function(e,t){return e[t]=!0,e}),{}):this.filterPredicates=null,this.restrictToItem=t.restrictToItem,this.fuzzy=!0===t.fuzzy,this.markOrigin=!1!==t.markOrigin,this._handleParams(t),this._labelIndex={},this.domNode=ro.createDomNode(r,this),ro.domClassToggle(this.domNode,"rdforms",!0),ro.domClassToggle(this.domNode,this.styleCls,!0),this.render()}var t,r,n;return t=e,(r=[{key:"getParentView",value:function(){return this.parentView}},{key:"getNamedGraphId",value:function(e){if(this.markOrigin){this.namedGraphs||(this.namedGraphs={},this.namedGraphCounter=65);var t=this.namedGraphs[e];return void 0===t&&(t=String.fromCharCode(this.namedGraphCounter),this.namedGraphs[e]=t,this.namedGraphCounter+=1),t}}},{key:"getNamedGraphFromId",value:function(e){var t=this;return this.namedGraphs?Object.keys(this.namedGraphs).find((function(r){return t.namedGraphs[r]===e})):void 0}},{key:"destroy",value:function(){ro.destroyDomNode(this.domNode,this)}},{key:"getBinding",value:function(){return this.binding}},{key:"_handleParams",value:function(e){if(e.binding)this.binding=e.binding;else{if(this.template=e.template||this.template,this.graph=e.graph||this.graph,this.resource=e.resource||this.resource,null==this.graph||null==this.resource||null==this.template)return;this.fuzzy?(this.binding=va(this.graph,this.resource,this.template),Ca(this.binding)):this.binding=ba(this.graph,this.resource,this.template)}}},{key:"showNow",value:function(){return!0}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(){}},{key:"addTable",value:function(){}},{key:"fillTable",value:function(){}},{key:"addLabel",value:function(){}},{key:"addComponent",value:function(){}},{key:"showAsTable",value:function(e){return"group"===e.getType()&&(e.hasStyle("table")||e.hasClass("rdformsTable"))}},{key:"show",value:function(e){this._handleParams(e),this.render()}},{key:"render",value:function(){if(ro.domText(this.domNode,""),null!=this.binding){var e=ro.getMessages();if(this.messages=e,null!=this.binding){var t,r,n,o,i,a=this.binding.getItem().getChildren(),s=this.binding.getItemGroupedChildBindings();for(this._binding2node={},!this.compact&&!this.binding.getItem().hasStyle("compact")||this.binding.getItem().hasStyle("nonCompact")?ro.domClassToggle(this.domNode,"compact",!1):ro.domClassToggle(this.domNode,"compact",!0),this.preRenderView(),t=0;t<s.length;t++)if(o=s[t],i=a[t],(!this.restrictToItem||this.restrictToItem===i)&&this.showNow(i,o)){if(o=this.prepareBindings(i,o),this.showAsTable(i))this.context={view:this},n=this.createRowNode(n,o[0],i),o.length>0&&(r=this.addTable(n,o[0],i),this.fillTable(r,o));else if(o.length>0)if(this.isMultiValued(i))this.context={view:this},n=this.addRow(n,o[0],!0);else{for(var l=this.truncateAt(i,o),c=0;c<o.length;c++)this.context={view:this},n=this.addRow(n,o[c],0===c||o[c]instanceof So,c,l);if(-1!==l){var d=ro.domQuery(".rdformsFields",n);d&&ro.addTruncateControl(d,this.context)}}else this.context={view:this},n=this.createRowNode(n,null,i);o.length>0&&o[0].getCardinalityTracker().checkCardinality()}}}}},{key:"addRow",value:function(e,t,r,n,o){var i,a,s=r,l=t.getItem();if(!this.skipBinding(t)){if(null==s&&(s=t instanceof So),!0===s){a=this.createRowNode(e,t,l);var c=ro.domCreate("div",a);ro.domClassToggle(c,"rdformsFields",!0),-1!==o&&ro.domClassToggle(c,"rdformsTruncated",!0),l.hasStyle("inline")&&ro.domClassToggle(c,"rdformsInline",!0),i=ro.domCreate("div",c),this.createEndOfRowNode(a,t,l)}else{var d=ro.domQuery(".rdformsFields",e);if(null!=d)i=ro.domCreate("div",d),ro.domClassToggle(i,"rdformsRepeatedValue",!0),-1!==o&&n>=o&&ro.domClassToggle(i,"rdformsMaybeTruncated",!0);else{var u=ro.domCreate("div",e);ro.domClassToggle(u,"rdformsFields",!0),l.hasStyle("inline")&&ro.domClassToggle(u,"rdformsInline",!0),i=ro.domCreate("div",u),this.createEndOfRowNode(a,t,l)}}if(this.markOrigin){var f=this.getNamedGraphId(t);f?(ro.domClassToggle(i,"rdformsOrigin",!0),ro.domClassToggle(i,"rdformsOrigin_".concat(f),!0)):(ro.domClassToggle(i,"rdformsOrigin",!0),ro.domClassToggle(i,"rdformsOrigin_default",!0))}return"group"===l.getType()?ro.domClassToggle(i,"rdformsGroup",!0):ro.domClassToggle(i,"rdformsField",!0),this._binding2node[t.getHash()]=i,this.addComponent(i,t),l.hasStyle("invisible")&&ro.domClassToggle(a||e,"rdformsInvisible",!0),a||e}}},{key:"createRowNode",value:function(e,t,r){var n;n=null==e?ro.domCreate("div",this.domNode,t?this.getRowIndex(t):void 0):ro.domCreateAfter("div",e,t?this.getRowIndex(t):void 0),r.getClasses().forEach((function(e){ro.domClassToggle(n,e,!0)})),ro.domClassToggle(n,"rdformsRow",!0),ro.domClassToggle(n,"rdformsTopLevel",this.topLevel),ro.domClassToggle(n,"rdformsInvisibleGroup",r.hasStyle("invisibleGroup")),ro.domClassToggle(n,"rdformsHeading",r.hasStyle("heading")),ro.domClassToggle(n,"notCompact","group"===r.getType()||r.hasStyle("nonCompact")),ro.domClassToggle(n,"rdformsCompactItem",r.hasStyle("compact")),this.addLabel(n,t,r),t&&this.filterBinding(t)&&ro.domClassToggle(n,"hiddenProperty",!0);var o=void 0!==this._subEditors;return(r.hasStyle("card")||r.hasStyle("cardInEdit")&&o||r.hasStyle("cardInPresent")&&!o)&&ro.domClassToggle(n,"rdformsCard",!0),n}},{key:"createEndOfRowNode",value:function(e,t,r){}},{key:"_getFilterPredicates",value:function(){return this.parentView?this.parentView._getFilterPredicates():this.filterPredicates}},{key:"filterBinding",value:function(e){return this.filterItem(e.getItem())}},{key:"filterItem",value:function(e){var t=this,r=this._getFilterPredicates();return!!r&&function e(r,n){var o=r.getId();if(o&&Object.keys(n).includes(o))return!0;var i=r.getProperty();if(i){for(var a=!0,s=t;s.parentView;)s.getBinding().getItem().getProperty()&&(a=!1),s=s.parentView;var l=d(i);return a?!0===n[i]||!0===n[l]||!0===n["*".concat(i)]||!0===n["".concat(l)]:!0===n["*".concat(i)]||!0===n["*".concat(l)]}if("group"===r.getType()){var c=r.getChildren()||[],u=!1;return c.forEach((function(t){e(t,n)||(u=!0)})),!u}return!1}(e,r)}},{key:"filterProperty",value:function(e){return!0===(this._getFilterPredicates()||{})[e]}},{key:"getLabelIndex",value:function(e){var t,r=this;return e.getParent().getChildBindingsFor(e.getItem()).reverse().find((function(e){return void 0!==(t=r._labelIndex[e.getHash()])})),void 0!==t?t:this.parentView?this.parentView.getLabelIndex(e.getParent()):""}},{key:"createLabelIndex",value:function(e){var t="".concat(e.getHash(),"_").concat(this._viewId,"_label");return this._labelIndex[e.getHash()]=t,t}},{key:"getRowIndex",value:function(e){return"".concat(e.getHash(),"_").concat(this._viewId,"_row")}},{key:"isMultiValued",value:function(e){return!1}},{key:"truncateAt",value:function(e,t){return-1}}])&&Ba(t.prototype,r),n&&Ba(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}());function Ja(e){return(Ja="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 es(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ts(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,rs(n.key),n)}}function rs(e){var t=function(e,t){if("object"!=Ja(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ja(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ja(t)?t:String(t)}function ns(e,t,r){return t=as(t),function(e,t){if(t&&("object"===Ja(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],as(e).constructor):t.apply(e,r))}function os(){return(os="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=is(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function is(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=as(e)););return e}function as(e){return(as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ss(e,t){return(ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ls=function(e,t,r,n){if(t.hasStyle("presenterOnly"))return!1;if(t.hasStyle("deprecated")&&0===r.length)return!1;var o=t.getProperty();if(r.length>0){if(o)return!e.filterItem(t);if("group"!==t.getType())return!0;var i=t.getChildren();if(0===i.length)return!0;if(t.hasStyle("atLeastOneChild")||t.hasStyle("exactlyOneChild"))return!0;if(r[0].getItemGroupedChildBindings().find((function(t,r){return ls(e,i[r],t,n)})))return!0;if(!o)return!1}var a=t.getCardinality();switch(n){case"mandatory":return a&&a.min>=1;case"recommended":return a&&(a.min>=1||a.pref>=1);default:return!0}},cs=function(e){function t(){return es(this,t),ns(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ss(e,t)}(t,e),r=t,(n=[{key:"_handleParams",value:function(e){this._subEditors=this._subEditors||[],this.includeLevel=e.includeLevel||"recommended",this.hideAddress=!1!==e.hideAddress,e.styleCls=e.styleCls||"rdformsEditor",e.filterTranslations=void 0!==e.filterTranslations&&e.filterTranslations,os(as(t.prototype),"_handleParams",this).call(this,e)}},{key:"getSubEditorForBinding",value:function(e){return this._subEditors.find((function(t){return t.getBinding()===e}))}},{key:"report",value:function(e){var t=this,r=e||Ca(this.binding);Object.keys(this._binding2node).forEach((function(e){ro.domClassToggle(t._binding2node[e],"errorReport",!1)}));for(var n=function(){var e=r.errors[o];if(e.parentBinding===t.binding)if(e.code===lo.TOO_FEW_VALUES_MIN){var n=e.item,i=n.getCardinality().min;t.binding.getChildBindingsFor(n).find((function(e){return i-=1,e.isValid()||ro.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0),0===i}))}else e.code===lo.AT_MOST_ONE_CHILD&&t.binding.getChildBindings().forEach((function(e){e.getMatchingCode()!==lo.OK&&ro.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0)}))},o=0;o<r.errors.length;o++)n();for(var i=0;i<this._subEditors.length;i++)this._subEditors[i].report(r)}},{key:"getIncludeLevel",value:function(){return this.includeLevel}},{key:"setIncludeLevel",value:function(e){this.includeLevel!==e&&(this.includeLevel=e,null!=this.graph&&null!=this.resource&&null!=this.template&&(this.binding=ba(this.graph,this.resource,this.template),this._subEditors=[],this.render()))}},{key:"show",value:function(e){this._subEditors=[],os(as(t.prototype),"show",this).call(this,e)}},{key:"showNow",value:function(e,t){return ls(this,e,t,this.includeLevel)}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var r,n=t,o=e.getCardinality();if(r=o.pref>0?o.pref:o.min>0?o.min:"propertygroup"===e.getType()?1:"group"===e.getType()?(e.getProperty(),1):1,e.hasStyle("nonEditable")&&!e.hasStyle("autoInitDate")&&!e.hasStyle("autoUpdateDate")&&!e.hasStyle("autoUUID")&&!e.hasStyle("autoValue")&&!e.getValue())return n;if(r>n.length)for(n=n.concat([]);r>n.length;)n.push(_a(this.binding,e));return n}},{key:"addLabel",value:function(e,t,r){ro.renderEditorLabel(e,t,r,this.context)}},{key:"createEndOfRowNode",value:function(e,t,r){ro.renderEditorLabelScopeEnd(e,t,r,this.context)}},{key:"addTable",value:function(e,t){return t.getItem().hasStyle("nonEditable")?this.addComponent(e,t):ro.addEditorTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){ro.fillEditorTable(e,t,{view:this})}},{key:"preRenderView",value:function(){ro.preEditorViewRenderer(this.domNode,this.binding,{view:this,inEditor:!0,topLevel:this.topLevel,hideAddress:this.hideAddress})}},{key:"addComponent",value:function(e,t){this.context.inEditor=!0,t.getItem().hasStyle("nonEditable")?ro.renderPresenter(e,t,this.context):ro.renderEditor(e,t,this.context)}},{key:"createRowNode",value:function(e,r,n){if(null!=r||!n.hasStyle("nonEditable")){var o=os(as(t.prototype),"createRowNode",this).call(this,e,r,n);if("choice"===n.getType()&&void 0===n.getProperty()){var i=Ea(n,r.getParent());i&&r.setChoice(i)}var a=n.getDeps();if(a){var s=function(e){e?(ro.domClassToggle(o,"missingDepsWithValue",!1),ro.domClassToggle(o,"missingDeps",!1)):r.isValid()?ro.domClassToggle(o,"missingDepsWithValue",!0):ro.domClassToggle(o,"missingDeps",!0),r.getCardinalityTracker().setDepsOk(e)},l=Sa(r.getParent(),a);ka(l,a)||s(!1),l.addListener((function e(){r.getParent()?s(ka(l,a)):l.removeListener(e)}))}return this.filterBinding(r)&&ro.domClassToggle(o,"hiddenProperty",!0),n.hasStyle("deprecated")&&ro.domClassToggle(o,"rdformsDeprecated",!0),o}}},{key:"isMultiValued",value:function(e){return ro.multiValueSupport&&(e.hasStyle("horizontalCheckBoxes")||e.hasStyle("verticalCheckBoxes"))}},{key:"truncateAt",value:function(e,t){return-1}}])&&ts(r.prototype,n),o&&ts(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Ka);ro.renderPresenterLabel=function(e,r,n,o,i){var a=o.view instanceof cs&&n.getEditLabel()||n.getLabel();a=null!=a&&""!==a?a.charAt(0).toUpperCase()+a.slice(1):"";var s=n.hasStyle("heading")?t()('<h2 class="rdformsLabel" tabindex="0">').text(a).appendTo(e):t()('<div class="rdformsLabel" tabindex="0">').text(a).appendTo(e);r&&s.attr("id",o.view.createLabelIndex(r)),i&&s.addClass("rdformsLabelRow"),o&&(o.labelNode=s[0]);var l=o.view;if(n.hasStyle("showDescriptionInPresent")||l.showDescription){var c=n.hasStyle("compact")||l.compact&&!n.hasStyle("nonCompact")&&(l.topLevel&&"group"!==n.getType()||l.parentView&&l.parentView.topLevel&&l.binding.getItem().hasStyle("heading")),d=n.getDescription();!c&&d&&t()('<div class="rdformsDescription" tabindex="0">').text(d).appendTo(e)}ro.attachItemInfo(n,s[0],o)},ro.attachItemInfo=function(e,t){if(null!=e&&null!=e.getDescription()){var r=e.getDescription();t.setAttribute("title",r)}};const ds=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&","<":"<",">":">",'"':""","'":"'"});const us=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o};const fs=function(e){return"symbol"==typeof e||Qt(e)&&"[object Symbol]"==rt(e)};var ps=Ge?Ge.prototype:void 0,hs=ps?ps.toString:void 0;const ms=function e(t){if("string"==typeof t)return t;if(rr(t))return us(t,e)+"";if(fs(t))return hs?hs.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};const gs=function(e){return null==e?"":ms(e)};var bs=/[&<>"']/g,vs=RegExp(bs.source);const ys=function(e){return(e=gs(e))&&vs.test(e)?e.replace(bs,ds):e};var ws=function(e){var t,r=function(e){return e&&e.length>1?parseInt(e[0],10):0},n=r(e.match(/([0-9])*Y/)),o=r(e.match(/([0-9])*D/)),i=r(e.match(/([0-9])*H/)),a=0;if(-1===e.indexOf("T"))t=r(e.match(/([0-9])*M/));else{var s=e.split("T");t=r(s[0].match(/([0-9])*M/)),a=r(s[1].match(/([0-9])*M/))}return{years:n,months:t,days:o,hours:i,minutes:a}},xs=function(e){switch(e){case"http://www.w3.org/2001/XMLSchema#dateTime":case"http://purl.org/dc/terms/W3CDTF":return"DateTime";case"http://www.w3.org/2001/XMLSchema#date":return"Date";case"http://www.w3.org/2001/XMLSchema#gYear":return"Year";case"http://www.w3.org/2001/XMLSchema#time":return"Time";case"http://www.w3.org/2001/XMLSchema#gYearMonth":return"YearMonth";case"http://www.w3.org/2001/XMLSchema#gMonthDay":return"MonthDay";default:return}},_s=function(e){var t=e.getValue();if(null!=t&&""!==t){var r=e.getItem(),n=function(e){try{if(e.includes(":")&&!e.includes("T")){var t=(new Date).toISOString().substr(0,11),r=new Date("".concat(t).concat(e));return r.setMinutes(r.getMinutes()+r.getTimezoneOffset()),r}return new Date(e)}catch(e){return null}}(t);if(n){var o=function(e){return e.indexOf("T")>0?"DateTime":e.indexOf(":")>0?"Time":/^\d\d\d\d-\d\d$/.test(e)?"YearMonth":/^\d\d-\d\d$/.test(e)?"MonthDay":e.length>4?"Date":"Year"}(t),i=xs(e.getDatatype()),a=function(e){var t=e.getDatatype();return Array.isArray(t)?xs(t[0]):xs(t)}(r),s=function(e){var t={},r=e.getDatatype();return(Array.isArray(r)?r:[r]).forEach((function(e){var r=xs(e);r&&(t[r]=!0)})),t}(r);return function(e,t){switch(e){case"DateTime":return Fn()(t).format("lll");case"Date":return Fn()(t).format("LL");case"Time":return Fn()(t).format("LT");case"Year":return Fn()(t).format("YYYY");case"YearMonth":return Fn()(t).format("MMMM YYYY");case"MonthDay":return Fn()(t).format("D MMMM");default:return""}}(s[i]?i:s[o]?o:a,n)}}},ks=function(e,t){var r,n=null===(r=e.getStatement()||e.getParent().getStatement())||void 0===r?void 0:r.getNamedGraph();if(n){for(var o=t.view;o.getParentView();)o=o.getParentView();return o.getNamedGraphId(n)}},Ss=r(9755),Es=ro.presenterRegistry;Es.itemtype("text").nodetype("URI").register((function(e,t){var r=Vn.getLocalizedMap(t),n=Ss('<a class="rdformsUrl">').attr("title",t.getValue()).attr("href",t.getValue()).appendTo(e);t.getItem().hasStyle("showValue")?n.text(t.getValue()):r?n.text(Vn.getLocalizedValue(r).value):n.text(t.getGist()),t.getItem().hasStyle("externalLink")?Hn.attachExternalLinkBehaviour(n[0],t):Hn.attachLinkBehaviour(n[0],t)})),Es.itemtype("group").nodetype("URI").style("linkWithLabel").register((function(e,t,r){var n,o=t.getValue(),i=t.getItem().getChildren().find((function(e){return e.hasStyle("label")})),a=i?ro.filterTranslations(t.getChildBindingsFor(i),Fn().locale(),r.view.defaultLanguage):[],s=t.getItem().getChildren().find((function(e){return e.hasStyle("tooltip")})),l=s?ro.filterTranslations(t.getChildBindingsFor(s),Fn().locale(),r.view.defaultLanguage):[],c=l.length>0?l[0].getValue():o,d=Ss('<a class="rdformsUrl">').attr("title",c).attr("href",o).appendTo(e);if(a.length>0)n=a[0].getValue();else{var u=Vn.getLocalizedMap(t);n=t.getItem().hasStyle("showValue")?o:u?Vn.getLocalizedValue(u).value||o:t.getGist()}d.text(n),t.getItem().hasStyle("externalLink")?Hn.attachExternalLinkBehaviour(d[0],t):Hn.attachLinkBehaviour(d[0],t)})),Es.itemtype("text").nodetype("URI").style("image").register((function(e,t){Ss('<img class="rdformsImage">').attr("src",t.getGist()).appendTo(e)})),Es.itemtype("text").register((function(e,t,r){var n=t.getLanguage();r.view.showLanguage&&n&&Ss('<div class="rdformsLanguage">').text(n).appendTo(e);var o=ys(t.getItem().hasStyle("showValue")?t.getValue():t.getGist()).replace(/(\r\n|\r|\n)/g,"\n"),i=t.getParent();if(t.getItem().hasStyle("label")&&!0!==r.view.topLevel&&null!=i&&i.getItem().getChildren()[0]===t.getItem()&&null!=i.getStatement()&&"uri"===i.getStatement().getType()){var a=Ss('<a class="rdformsUrl">').attr("href",i.getStatement().getValue()).html(o).appendTo(e);n&&a.attr("lang",n),Hn.attachLinkBehaviour(a[0],i)}else{var s=Ss("<div>").html(o).appendTo(e);n&&s.attr("lang",n)}t.getItem().hasStyle("multiline")?Ss(e).toggleClass("rdformsMultiline",!0):Ss(e).toggleClass("rdformsSingleline",!0)})),Es.itemtype("text").datatype("xsd:duration").register((function(e,t,r){var n=ws(t.getValue()),o=r.view.messages,i=Ss("<div>").appendTo(e)[0];["years","months","days","hours","minutes"].forEach((function(e){n.hasOwnProperty(e)&&0!==n[e]&&Ss('<span class="durationLabel">'.concat(o["duration_".concat(e)],':</span><span class="durationValue">').concat(n[e],"</span>")).appendTo(i)}))}));var Ts=function(e,t){try{var r=_s(t);Ss("<div>").html(r).appendTo(e)}catch(e){console.warn("Could not present date, expected ISO8601 format in the form 2001-01-01 \n (potentially with time given after a 'T' character as well) but found '".concat(t.getValue(),"' instead."))}};Es.itemtype("text").datatype("xsd:dateTime").register(Ts),Es.itemtype("text").datatype("xsd:date").register(Ts),Es.itemtype("text").datatype("xsd:time").register(Ts),Es.itemtype("text").datatype("xsd:gYear").register(Ts),Es.itemtype("text").datatype("xsd:gYearMonth").register(Ts),Es.itemtype("text").datatype("xsd:gMonthDay").register(Ts),Es.itemtype("text").datatype("dcterms:W3CDTF").register(Ts);var Cs=r(9755),As=ro.presenterRegistry,Os=function(e){return function(t,r){var n,o=r.getChoice();o&&(o.description&&(n=Vn.getLocalizedValue(o.description).value),e(t,r,o,n))}};As.itemtype("choice").style("image").register(Os((function(e,t,r,n){Cs('<img class="rdformsImage">').attr("src",r.value).attr("title",n||r.value).appendTo(e)}))),As.itemtype("choice").style("stars").register(Os((function(e,t,r){isNaN(parseInt(r.value,10))||Cs('<span class="rdformsStar">').appendTo(e)}))),As.itemtype("choice").register(Os((function(e,t,r,n){var o,i=t.getItem(),a=Vn.getLocalizedValue(r.label);i.hasStaticChoices()&&!i.hasStyle("externalLink")||i.hasStyle("noLink")?o=Cs("<div>").attr("title",n||r.seeAlso||r.value).text(Vn.getLocalizedValue(r.label).value).appendTo(e):(o=Cs('<a class="rdformsUrl">').attr("href",r.seeAlso||r.value).attr("title",n||r.seeAlso||r.value).text(a.value).appendTo(e),i.hasStyle("externalLink")?Hn.attachExternalLinkBehaviour(o[0],t):Hn.attachLinkBehaviour(o[0],t)),null!=r.load&&r.load((function(){var e=Vn.getLocalizedValue(r.label);o.text(e.value),e.lang?o.attr("lang",e.lang):o.attr("lang",void 0)})),a.lang&&o.attr("lang",a.lang)}))),ro.addPresenterTable=function(e,r,n){var o=r.getItem(),i=o.getChildren(),a=t()("<table>").addClass("rdformsGroup").appendTo(e);t()("<thead>").appendTo(a);for(var s=t()("<tr>").appendTo(a),l=0;l<i.length;l++){var c=t()("<th>").appendTo(s);ro.attachItemInfo(o,t()("<span>").text(i[l].getLabel()).appendTo(c),n)}return a[0]},ro.fillPresenterTable=function(e,r,n){if(0!==r.length){var o,i,a,s,l=n.view.topLevel;for(n.view.topLevel=!1,o=0;o<r.length;o++)for(a=r[o].getItemGroupedChildBindings(),s=t()("<tr>").appendTo(e),i=0;i<a.length;i++)a[i].length>0?ro.renderPresenter(t()("<td>").appendTo(s),a[i][0],{view:n.view,noCardinalityButtons:!0}):t()("<td>").appendTo(s);n.view.topLevel=l}};var Ds=function(e,t){var r=document.createElement(e);return t&&(r.id=t),r};ro.domQuery=function(e,t){return t.querySelector(e)},ro.domCreate=function(e,t,r){return t.appendChild(Ds(e,r))},ro.domCreateAfter=function(e,t,r){return t.parentNode.insertBefore(Ds(e,r),t.nextSibling)},ro.domSetAttr=function(e,t,r){""===r||null===r?e.removeAttribute(t):e.setAttribute(t,r)},ro.domText=function(e,t){e.innerText=t},ro.domClassToggle=function(e,t,r){t.split(" ").forEach((function(t){r?e.classList.add(t):e.classList.remove(t)}))},ro.prePresenterViewRenderer=ro.preEditorViewRenderer,ro.addTruncateControl=function(e,t){var r=t.view.messages,n=ro.domCreate("button",e);ro.domClassToggle(n,"rdformsShowMore",!0),n.innerText=r.showMore,n.onclick=function(){ro.domClassToggle(e,"rdformsTruncated",!1)};var o=ro.domCreate("button",e);ro.domClassToggle(o,"rdformsShowLess",!0),o.innerText=r.showLess,o.onclick=function(){ro.domClassToggle(e,"rdformsTruncated",!0)}};var js=ro.presenterRegistry,Ps=ro.editorRegistry,Rs=function(e){return function t(r,n,o){var i=n.getValue();o.inEditor&&(null!=i&&""!==i||n.setGist(Vn.generateUUID(),!0)),e.getComponentBefore(n.getItem(),t)(r,n,o)}};js.itemtype("text").style("autoUUID").register(Rs(js)),Ps.itemtype("text").style("autoUUID").register(Rs(Ps));var Is=function(e){return function t(r,n,o){var i=n.getValue(),a=n.getItem();o.inEditor&&(null==i||""===i?(a.hasStyle("autoInitDate")||a.hasStyle("autoUpdateDate"))&&n.setValue((new Date).toISOString(),!0):a.hasStyle("autoUpdateDate")&&n.setValue((new Date).toISOString(),!0)),e.getComponentBefore(n.getItem(),t)(r,n,o)}},Ns=Is(js);js.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(Ns),js.itemtype("text").datatype("xsd:date").style("autoInitDate").register(Ns),js.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(Ns),js.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(Ns);var Ls=Is(Ps);Ps.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(Ls),Ps.itemtype("text").datatype("xsd:date").style("autoInitDate").register(Ls),Ps.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(Ls),Ps.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(Ls);var Ms=function(e){return function t(r,n,o){if(o.inEditor){var i=n.getValue(),a=n.getItem().getDeps();if((null==i||""===i)&&a){var s=Ta.findBindingRelativeToParentBinding(n.getParent(),a),l=function(e){var t=Ta.matchPathBelowBinding(s,a),r=n.getGist(),o=t?t.getValue():"";r!=o&&n.setGist(o,e)};l(!0),s.addListener((function(e){e!=n&&l()}))}}e.getComponentBefore(n.getItem(),t)(r,n,o)}};js.itemtype("text").style("autoValue").register(Ms(js)),Ps.itemtype("text").style("autoValue").register(Ms(Ps)),ro.renderEditorLabel=function(e,r,n,o){if(n.hasStyle("nonEditable")||n.hasStyle("heading"))return ro.renderPresenterLabel(e,r,n,o,!0);var i=n.getEditLabel()||n.getLabel();i=null!=i&&""!==i?i.charAt(0).toUpperCase()+i.slice(1):"";var a=t()('<div class="rdformsLabelRow">').appendTo(e);r&&a.attr("id",o.view.createLabelIndex(r)),o.labelNode=a[0];var s=t()('<span class="rdformsLabel" tabindex="0">').text(i).appendTo(a),l=n.getCardinality(),c=o.view.messages;n.getProperty()&&(l.min>0?t()('<span class="rdformsMark rdformsMandatoryMark">').text(c.mandatoryMark).appendTo(a):l.pref>0?t()('<span class="rdformsMark rdformsRecommendedMark">').text(c.recommendedMark).appendTo(a):t()('<span class="rdformsMark rdformsOptionalMark">').text(c.optionalMark).appendTo(a)),null==r?ro.addExpandButton(e,a[0],n,o):o.view.showAsTable(n)||null!==l.max&&l.max===l.min||("group"===n.getType()?n.getProperty()&&ro.addGroupButtons(e,a[0],r,o):ro.addCreateChildButton(e,a[0],r,o));var d=o.view;if(n.hasStyle("showDescriptionInEdit")||d.showDescription){var u=n.hasStyle("compact")||d.compact&&!n.hasStyle("nonCompact")&&(d.topLevel&&"group"!==n.getType()||d.parentView&&d.parentView.topLevel&&d.binding.getItem().hasStyle("heading")),f=o.view instanceof cs&&n.getEditDescription()||n.getDescription();!u&&f&&t()('<div class="rdformsDescription" tabindex="0">').text(f).appendTo(e)}ro.attachItemInfo(n,s[0],o)},ro.attachItemInfo=function(e,r,n){if(null==e||null==e.getProperty()&&null==e.getDescription()&&null==e.getEditDescription())t()(r).addClass("noPointer");else{var o=n.view instanceof cs&&e.getEditDescription()||e.getDescription()||"",i="";e.getProperty()&&(i='<div class="property"><a target="_blank" href="'.concat(e.getProperty(),'">').concat(e.getProperty(),"</a></div>"));var a=n.view instanceof cs&&e.getEditLabel()||e.getLabel();a=null!=a&&""!==a?a.charAt(0).toUpperCase()+a.slice(1):"";var s={html:!0,container:ro.getPopoverContainer(),placement:"auto",trigger:"focus",title:a,content:'<div class="description">'.concat(o.replace(/(\r\n|\r|\n)/g,"<br/>"),"</div>").concat(i)};t()(r).popover(s).attr("data-toggle","popover")}};r(1552);var Fs=r(9755),Bs=0;var Us=r(9755),Vs=ro.editorRegistry;Vs.itemtype("text").datatype("xsd:duration").register((function(e,t,r){var n=r.view.messages,o=ws(t.getValue()),i=Fs("<div>").addClass("rdformsDuration rdformsFieldInput").appendTo(e),a=ks(t,r)?"disabled":"",s=function(){i.empty(),["years","months","days","hours","minutes"].forEach((function(e){var r=Fs("<div>").appendTo(i),s=Fs("<div>").addClass("input-group").appendTo(r),l="duration_".concat(Bs);Bs+=1,Fs("<span>").addClass("input-group-addon").attr("id",l).text(n["duration_".concat(e)]).appendTo(s);var c=Fs("<input ".concat(a,">")).addClass("form-control").attr("type","number").attr("aria-describedby",l).appendTo(s);o[e]&&c.val(o[e]),c.change((function(){o[e]=Fs(this).val(),t.setValue(function(e){if(e.years||e.months||e.days||e.hours||e.minutes){var t="P".concat(e.years?"".concat(e.years,"Y"):"").concat(e.months?"".concat(e.months,"M"):"").concat(e.days?"".concat(e.days,"D"):"");return(e.hours||e.minutes)&&(t="".concat(t,"T").concat(e.hours?"".concat(e.hours,"H"):"").concat(e.minutes?"".concat(e.minutes,"M"):"")),t}return null}(o))}))}))};s(),r.clear=function(){o={},s()}}));var $s=function(e,t,r,n,o){var i=null,a=function(){i=null;var a=e.val().trim(),s=!0;""===a||!r||r.test(a)?(t.setGist(a),n&&a&&(n.prop("href",t.getValue()),s=!1),o&&o.toggleClass("rdformsHelpActive",!1)):o&&o.toggleClass("rdformsHelpActive",!0),n&&n.toggleClass("rdformsExtLinkDisabled",s),e.toggleClass("rdformsEmpty",""===a)};e.on("keyup paste",(function(){null!=i&&clearTimeout(i),i=setTimeout(a,200)}))},Hs=function(e,t){var r=new RegExp(e);Vs.itemtype("text").datatype(t).register((function(t,n,o){var i=Us('<input type="text" class="form-control rdformsFieldInput"\n placeholder="'.concat(n.getItem().getPlaceholder()||"",'">'));i.val(n.getGist()).attr("pattern",e).appendTo(t);var a,s=n.getItem().getHelp();if(s&&(a=Us('<span class="rdformsHelp">'.concat(s,"</span>"))).appendTo(t),n.getItem().hasStyle("externalLink")){var l=Us('<a class="fas fa-external-link-alt rdformsExtLink '.concat(ro.getExtLinkClass(),'" target="_blank">'));l.appendTo(o.controlDiv),Us(t).addClass("rdformsExtLinkControl"),$s(i,n,r,l,a),i.keyup()}else $s(i,n,r,void 0,a);n.getItem().isEnabled()||i.prop("disabled",!0)}))};Hs("^-?\\d+$","xsd:integer"),Hs("^(\\d+(\\.\\d+)?)$","xsd:decimal"),Vs.itemtype("text").register((function(e,t,r){var n,o=t.getItem(),i=ks(t,r)?"disabled":"";if(o.hasStyle("multiline")){var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:70,r=e.split("\n").length;return r+=Number.parseInt(e.length/t,10)}(t.getGist());(n=Us("<textarea ".concat(i,' class="form-control rdformsFieldInput autoExpand" placeholder="').concat(o.getPlaceholder()||"",'" rows="').concat(a,'">'))).on("input focus",(function(){if(void 0===this.baseScrollHeight){var e=n.height();this.baseScrollHeight=n.innerHeight()-e,this.baseLineHeight=e/a}this.rows=1;var t=1+Math.ceil((this.scrollHeight-this.baseScrollHeight)/this.baseLineHeight);this.rows=t}))}else n=o.hasStyle("email")?Us("<input ".concat(i,' type="email" class="form-control rdformsFieldInput" placeholder="').concat(o.getPlaceholder()||"",'">')):Us("<input ".concat(i,' type="text" class="form-control rdformsFieldInput" placeholder="').concat(o.getPlaceholder()||"",'">'));n.val(t.getGist()).appendTo(e);var s,l=o.getHelp();l&&(s=Us('<span class="rdformsHelp">'.concat(l,"</span>"))).appendTo(e);var c=o.getPattern(),d=null;if(null!=c&&(n.attr("pattern",c),d=new RegExp(c)),o.hasStyle("externalLink")){var u=Us('<a class="fas fa-external-link-alt rdformsExtLink '.concat(ro.getExtLinkClass(),'" target="_blank">'));u.appendTo(r.controlDiv),Us(e).addClass("rdformsExtLinkControl"),$s(n,t,d,u,s),n.keyup()}else $s(n,t,d,void 0,s);var f=o.getNodetype();if("LANGUAGE_LITERAL"===f||"PLAIN_LITERAL"===f){Us(e).addClass("rdformsLangcontrolledfield"),Us(r.controlDiv).addClass("rdformsLangFieldControl");var p=Us("<select ".concat(i,' class="form-control rdformsLanguage">')).appendTo(r.controlDiv),h=ro.getPrimaryLanguageList(),m=ro.getNonPrimaryLanguageList();if(m=Vn.cloneArrayWithLabels(m),0===h.length||((h=Vn.cloneArrayWithLabels(h,!0)).forEach((function(e){Us("<option>").html(e.label).val(e.value).appendTo(p)})),Us("<option>").html("─────").attr("disabled","disabled").appendTo(p)),m.forEach((function(e){Us("<option>").html(e.label).val(e.value).appendTo(p)})),t.isValid())p.val(t.getLanguage());else{var g=Fn().locale();"string"==typeof g&&""!==g&&(p.val(g),t.setLanguage(g))}p.val(t.getLanguage()).change((function(){t.setLanguage(p.val())})),r.clear=function(){p.val(""),n.val("")}}else r.clear=function(){n.val("")}}));var Ws=r(9755);function zs(e){return(zs="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 Ys(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,Gs(n.key),n)}}function Gs(e){var t=function(e,t){if("object"!=zs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=zs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zs(t)?t:String(t)}var qs=0,Xs=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.binding=t.binding,this.item=this.binding.getItem(),this.choices=this.item.getChoices().map((function(e){return{label:e.editlabel||e.label,description:e.description,value:e.value,text:n.item._getLocalizedValue(e.editlabel||e.label).value,choice:e}})),this.item.hasStyle("preserveOrderOfChoices")||this.choices.sort((function(e,t){return e.text<t.text?-1:1})),this.choice=this.binding.getChoice(),this.context=t.context,this.context.clear=this.clear.bind(this),this.domNode=r,this.buildRendering()}var t,r,n;return t=e,(r=[{key:"clear",value:function(){Ws(this.domNode).find("input").prop("checked",!1)}},{key:"buildRendering",value:function(){var e=this;null!=this.choice&&this.choice.mismatch&&this.choices.push(this.choice);for(var t=this.binding.getValue(),r=function(){var r,o=e.choices[n],i=Ws('<div class="radio form-check">').appendTo(e.domNode);r=e.item.hasStyle("verticalRadioButtons")?Ws("<label>").appendTo(i):Ws('<label class="form-check-label">').appendTo(i),o.description&&r.attr("title",e.item._getLocalizedValue(o.editdescription||o.description).value||o.seeAlso||o.value);var a=ks(e.binding,e.context)?"disabled":"",s=Ws("<input ".concat(a,' type="radio">')).val(o.value).attr("checked",o.value===t).attr("name","rdformsRadio_".concat(qs)).appendTo(r);r.append(e.item._getLocalizedValue(o.editlabel||o.label).value),o.mismatch?(r.addClass("mismatch disabled"),s.attr("disabled",!0)):r.click((function(){e.binding.setValue(s.val())}))},n=0;n<this.choices.length;n++)r();qs+=1}}])&&Ys(t.prototype,r),n&&Ys(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Qs=r(9755),Zs=ro.editorRegistry;Zs.itemtype("choice").choices().check((function(e){var t=e.getChoices();return!(e.getHierarchyProperty()||e.hasStyle("tree"))&&1===e.getCardinality().max&&!e.hasStyle("dropDown")&&(null!=t&&t.length<5||e.hasStyle("verticalRadioButtons")||e.hasStyle("horizontalRadioButtons"))})).register((function(e,t,r){new Xs({binding:t,context:r},e)})),Zs.itemtype("choice").choices().register((function(e,t,r){var n=t.getItem(),o=n.getChoices().map((function(e){return{id:e.value,text:n._getLocalizedValue(e.editlabel||e.label).value,choice:e}}));n.hasStyle("preserveOrderOfChoices")||o.sort((function(e,t){return e.text<t.text?-1:1})),r.choices=o,ro.renderSelect(e,t,r);var i=r.setValue,a=t.getChoice();a&&(null!=a.load?a.load((function(){i(a)})):i(a))})),Zs.itemtype("choice").choices("none").register((function(e,t,r){r.chooser=ro.chooserRegistry.getComponent(t.getItem()),r.choices=void 0;var n=ks(t,r)?"disabled":"",o=function(){ro.renderSelect(e,t,r);var o=r.setValue,i=Qs("<button ".concat(n,' class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm browseChoices" type="button">')).attr("title",r.view.messages.edit_browse).appendTo(e);if(r.chooser&&r.chooser.supportsInlineCreate&&r.chooser.supportsInlineCreate(t)){var a=Qs('<span class="fa-stack">').appendTo(i);Qs('<span class="fas fa-search fa-stack-1x" aria-hidden="true">').appendTo(a),Qs('<span class="fas fa-plus fa-stack-1x" aria-hidden="true">').appendTo(a)}else Qs('<span class="fas fa-search" aria-hidden="true">').appendTo(i);var s=function(e){e?(t.setChoice(e),null!=e.load?e.load((function(){o(e)})):o(e)):t.setChoice(null)};r.chooser&&"function"==typeof r.chooser.show?i.click((function(){ro.openChoiceSelector(t,s)})):i.addClass("disabled"),Hn.hasDnDSupport(t)&&Hn.addDnD(t,cNode,s)},i=t.getChoice();if(i)if(null!=i.load){var a=Qs('<div class="form-group rdforms-upgrade">').appendTo(e);Qs('<input type="text" disabled class="form-control rdformsFieldInput">').val(i.value).appendTo(a),i.load((function(){if(i.upgrade){var e=Qs("<button ".concat(n,' class="btn btn-default bmd-btn-fab bmd-btn-fab-sm')+' browseChoices" type="button">').attr("title",r.view.messages.edit_upgrade).click((function(){i.upgrade(t,(function(n){a.remove(),e.remove(),o(),r.setValue(n),t.setChoice(n)}))})).insertAfter(a);Qs('<span class="fas fa-magic" aria-hidden="true">').appendTo(e)}else a.remove(),o(),r.setValue(i)}))}else o(),r.setValue(i);else o()}));var Ks=r(9755);ro.addRemoveButton=function(e,t,r){var n=ks(t,r)?"disabled":"",o=Ks("<button ".concat(n,' class="fas fa-times action rdformsActionButton">')).attr("title",r.view.messages.edit_remove).appendTo(r.controlDiv),i=t.getCardinalityTracker(),a=i.addListener((function(){}));o.click((function(){if(!i.isMin()||!i.isDepsOk()||1===i.getCardinality())if(1===i.getCardinality()){"choice"===t.getItem().getType()?t.setChoice(null):t.setValue("");var n=t.getItem().getNodetype();"LANGUAGE_LITERAL"!==n&&"PLAIN_LITERAL"!==n||t.setLanguage(""),r.clear?r.clear():Ks(e).find("input").val("")}else i.removeListener(a),o.unbind("click"),t.remove(),Ks(e).remove()}))},ro.addExpandButton=function(e,t,r,n){var o=Ks('<button class="fas fa-plus action rdformsActionButton">').attr("title",n.view.messages.edit_expand).appendTo(t).click((function(){var i=_a(n.view.binding,r);if(n.view.showAsTable(r)){var a=n.view.addTable(e,i,r);n.view.fillTable(a,[i])}else n.view.addRow(e,i,!1),ro.addGroupButtons(e,t,i,n);o.unbind("click").remove()}))},ro.addGroupButtons=function(e,t,r,n){var o,i=r.getParent(),a=r.getItem(),s=r.getCardinalityTracker(),l=a.getCardinality();1!==l.max&&(o=Ks('<button class="action fas fa-plus rdformsActionButton">').attr("title",n.view.messages.edit_add).appendTo(t)).click((function(){if(!s.isMax()){var t=_a(i,a);n.view.addRow(e,t)}}));var c=ks(r,n)?"disabled":"",d=Ks("<button ".concat(c,' class="action fas fa-times rdformsActionButton">')).attr("title",n.view.messages.edit_remove).appendTo(t);1===l.max&&d.addClass("indentRemove");var u=s.addListener((function(){o&&o.toggleClass("disabled",s.isMax()),d.toggleClass("disabled",s.isMin()&&s.isDepsOk())}));d.click((function(){if(!s.isMin()||!s.isDepsOk())if(n.clear&&n.clear(),1===s.getCardinality()){if(s.removeListener(u),o&&o.unbind("click"),d.unbind("click"),r.remove(),n.view.showNow(a,[])){var t=n.view.prepareBindings(a,[]);t.length>0&&n.view.addRow(e,t[0])}Ks(e).remove()}else s.removeListener(u),o&&o.unbind("click"),d.unbind("click"),r.remove(),Ks(e).remove()}))},ro.addCreateChildButton=function(e,t,r,n){var o=r.getParent(),i=r.getItem(),a=r.getCardinalityTracker(),s=Ks('<button class="action fas fa-plus rdformsActionButton">').attr("title",n.view.messages.edit_add).appendTo(t).click((function(){if(!a.isMax()){var t=_a(o,i);n.view.addRow(e,t)}}));a.addListener((function(){s.toggleClass("disabled",a.isMax())}))};var Js=function e(r,n,o){var i=n.getItem().getChildren(),a=n.getItemGroupedChildBindings(),s=t()("<tr>").appendTo(r);if(a.forEach((function(e,t){0!==e.length||i[t].hasStyle("nonEditable")||_a(n,i[t])})),a.forEach((function(e){e.length>0&&ro.renderEditor(t()("<td>").appendTo(s)[0],e[0],{view:o.view,noCardinalityButtons:!0})})),!n.getItem().hasStyle("firstcolumnfixedtable")){var l=t()("<td>").addClass("rdformsTableControl").appendTo(s),c=t()("<span>").addClass("action editDelete").attr("title",o.view.messages.edit_remove).appendTo(l),d=n.getCardinalityTracker(),u=d.addListener((function(){c.toggleClass("disabled",d.isMin())}));c.click((function(){if(!d.isMin()){if(1===d.getCardinality()){var t=n.getParent(),i=n.getItem(),a=_a(t,i);e(r,a,o)}d.removeListener(u),removeConnect.remove(),n.remove(),s.remove()}}))}};ro.addEditorTable=function(e,r,n){var o=r.getItem(),i=o.getChildren(),a=t()("<table>").appendTo(e);t()(a).addClass("rdformsGroup");var s=t()("<thead>").appendTo(a),l=t()("<tbody>").appendTo(a),c=t()("<tr>").appendTo(s);for(colInd=0;colInd<i.length;colInd++){var d=t()("<th>").appendTo(c);t()(d).addClass("rdformsColumnHeader".concat(colInd));var u=i[colInd],f=n.view instanceof cs&&u.getEditLabel()||u.getLabel();ro.attachItemInfo(o,t()("<span>").text(f).appendTo(d)[0],n)}if(!r.getItem().hasStyle("firstcolumnfixedtable")){var p=t()("<th>").addClass("rdformsTableControl").appendTo(c),h=r.getParent(),m=r.getCardinalityTracker(),g=t()("<span>").addClass("action editAdd").attr("title",n.view.messages.edit_add).appendTo(p).click((function(){if(!m.isMax()){var e=_a(h,o);Js(l[0],e,n)}}));m.addListener((function(){g.toggleClass("disabled",m.isMax())}))}return l},ro.fillEditorTable=function(e,t,r){var n=t;if(0!==n.length){var o=n[0].getItem();if(o.hasStyle("nonEditable"))return ro.renderEditor(e,n,r);o.hasStyle("firstcolumnfixedtable")&&(n=function(e){var t=[],r=e[0].getItem(),n=r.getChildren()[0],o=n.getChoices();(o=Vn.cloneArrayWithLabels(o)).sort((function(e,t){return e.label>t.label?1:e.label<t.label?-1:0}));var i={};(e||[]).forEach((function(e){var t=e.getItemGroupedChildBindings();if(t.length>0&&t[0].length>0){var r=t[0][0];i[r.getValue()]=e}}));var a=e[0].getParent();return(o||[]).forEach((function(e){if(null!=i[e.value])t.push(i[e.value]);else{var o=_a(a,r),s=_a(o,n);s.setExcludeFromTreeValidityCheck(!0),s.setAncestorValid(!1),s.setChoice(e),t.push(o)}})),t}(n)),n.forEach((function(t){Js(e,t,r)}))}},ro.preEditorRenderer=function(e,r,n){n.$controlDiv=t()('<div class="rdformsFieldControl">'),n.controlDiv=n.$controlDiv[0],"group"!==r.getItem().getType()&&!0!==n.noCardinalityButtons&&ro.addRemoveButton(e,r,n)},ro.preEditorViewRenderer=function(e,r,n){var o,i=r.getItem();if(!n.hideAddress&&(i.hasStyle("showURI")?o=t()('<div class="rdformsField rdformsGroupURI">').text(r.getValue()):i.hasStyle("showLink")&&(o=t()('<a class="rdformsField rdformsGroupURI rdformsUrl">').text(r.getValue()).attr("href",r.getValue()),Hn.attachExternalLinkBehaviour(o[0],r)),o)){var a=t()('<div class="rdformsRow">').appendTo(e);n.topLevel&&a.addClass("rdformsTopLevel"),t()('<div class="rdformsLabel">').text(n.view.messages.address_label).appendTo(a),o.appendTo(t()('<div class="rdformsFields">').appendTo(a))}},ro.postEditorRenderer=function(e,t,r){r.$controlDiv.appendTo(e)};var el={error:"exclamation-triangle",warning:"exclamation-circle",deprecated:"question-circle"};ro.renderValidationMessage=function(e,t,r){var n=el[t],o=ro.domCreate("div",e);ro.domClassToggle(o,"rdformsValidationMessageWrapper",!0);var i=ro.domCreate("i",o);ro.domClassToggle(i,"fas fa-".concat(n),!0);var a=ro.domCreate("span",o);ro.domClassToggle(a,"rdformsValidationMessage",!0),ro.domText(a,r)};r(7872);var tl=r(4363),rl=r.n(tl),nl=(r(686),r(4190)),ol=function(e,t){rl().__super__.constructor.call(this,e,t),this.rdformsItem=t.options.rdformsItem,this.chooser=t.options.chooser};r.n(nl)().Extend(ol,rl()),ol.prototype.query=function(e,t){var r=this,n=function(){r.chooser.search(r.rdformsItem,e.term).then((function(e){t({results:e.map((function(e){return{id:e.value,text:Vn.getLocalizedValue(e.label).value||"",choice:e}}))})}))};""!==e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(n,300)):n()};const il=ol;var al=r(9755);ro.renderSelect=function(e,t,r){var n=r.choices,o=ks(t,r)?"disabled":"",i=al("<select ".concat(o,">")).appendTo(e).append("<option></option>"),a={placeholder:t.getItem().getPlaceholder()||"",rdformsItem:t.getItem(),chooser:r.chooser};n&&n.length>0?(a.data=n,a.dataAdapter=rl()):(a.dataAdapter=il,i.prop("disabled",!r.chooser||"function"!=typeof r.chooser.search)),i.select2(a),r.clear=function(){i.val(null).trigger("change")},r.setValue=function(e){i.toggleClass("mismatch",!0===e.mismatch);var t=Vn.getLocalizedValue(e.label).value||"";0===i.find("option[value='".concat(e.value,"']")).length?(i.append(new Option(t,e.value,!0,!0)).trigger("change"),i.trigger({type:"select2:select",params:{data:{id:e.val,text:t,choice:e}}})):i.val(e.value).trigger("change")},i.on("select2:select",(function(e){var r=e.params.data.choice;t.setChoice(r),i.toggleClass("mismatch",r.mismatch);var n=i.next().find(".select2-selection__rendered");r.description&&n.attr("title",Vn.getLocalizedValue(r.description).value)}))};r(4728);var sl=r(9755);function ll(e){return(ll="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 cl(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,dl(n.key),n)}}function dl(e){var t=function(e,t){if("object"!=ll(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ll(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ll(t)?t:String(t)}var ul=function(){function e(t,r){var n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.binding=t.binding,this.context=t.context,this.item=this.binding.getItem(),this.allowedOptions=(n=this.item,o={},i=n.getDatatype(),(Array.isArray(i)?i:[i]).forEach((function(e){var t=function(e){switch(e){case"http://www.w3.org/2001/XMLSchema#dateTime":case"http://purl.org/dc/terms/W3CDTF":return"Datetime";case"http://www.w3.org/2001/XMLSchema#date":return"Date";case"http://www.w3.org/2001/XMLSchema#gYear":return"Year";default:return}}(e);t&&(o[t]=!0)})),o),this._date=null,this._valid=!1,this._excludeTime=!0,this.domNode=r,this.buildUI(),this.initDatePicker(),this.initialize()}var t,r,n;return t=e,(r=[{key:"includeDateOption",value:function(){return this.allowedOptions.Date}},{key:"includeDateTimeOption",value:function(){return this.allowedOptions.Datetime}},{key:"includeYearOption",value:function(){return this.allowedOptions.Year}},{key:"buildUI",value:function(){}},{key:"initDatePicker",value:function(){}},{key:"initialize",value:function(){var e=this;this.$timeInput=sl(this.timeInput).attr("pattern","^([0-1][0-9]|2[0-3]):[0-5][0-9]$").change((function(){var t=e.$timeInput.val();if("function"==typeof e.$timeInput[0].checkValidity){if(!e.$timeInput[0].checkValidity())return}else if(new RegExp("^([0-1][0-9]|2[0-3]):[0-5][0-9]$").test(t))return;e._date.setHours(parseInt(t.substr(0,2),10),parseInt(t.substr(3,2),10)),e.binding.setValue(e._date.toISOString())})),this.$yearInput=sl(this.yearInput).attr("pattern","^-?[0-9][0-9][0-9][0-9]$").change((function(){var t=e.$yearInput.val();e._date.setYear(parseInt(t,10)),e.binding.setValue(t)})),this.$dateControl=sl(this.dateControl).change((function(){var t=e.$dateControl.val();e["_show".concat(t)]()})),this._binding2Gui()}},{key:"setDateInPicker",value:function(){}},{key:"setDateInBinding",value:function(e){this._valid=!0,this._date.setFullYear(e.getFullYear(),e.getMonth(),e.getDate());var t=Fn()(e).toISOString();this._excludeTime?this.binding.setValue(t.substring(0,t.indexOf("T"))):(this.binding.setValue(t),this.$timeInput.prop("disabled",!1))}},{key:"clear",value:function(){this._valid=!1,sl(this.domNode).find("input").val("")}},{key:"_binding2Gui",value:function(){this._firstTime=!0;var e=this.binding.getValue();this._valid=null!=e&&""!==e,this._valid&&(this._date=new Date(e),this._valid=null!=this._date),this._date=this._date||new Date("2000"),this._valid?/^\d{4}$/.test(e)?(this.$dateControl.val("Year"),this._showYear()):/T/.test(e)&&-1===e.indexOf("T00:00:00")?(this.$dateControl.val("DateTime"),this._showDateTime()):(this.$dateControl.val("Date"),this._showDate()):this._showDate(),this._firstTime=!1}},{key:"_showDate",value:function(){if(this._excludeTime=!0,this.$yearInput.parent().hide(),this.$timeInput.parent().hide(),this.$datepicker.parent().show(),this._valid){this.setDateInPicker(this._date);var e=this._date.toISOString();this._firstTime||(this.binding.setValue(e.substring(0,e.indexOf("T"))),this.binding.setDatatype("xsd:date"))}else this.setDateInPicker(null)}},{key:"_showDateTime",value:function(){if(this._excludeTime=!1,this.$yearInput.parent().hide(),this.$timeInput.parent().show(),this.$datepicker.parent().show(),this._valid){if(0!==this._date.getHours()||0!==this._date.getMinutes()){var e=this._date.getHours();e=e<=9?"0".concat(e):e;var t=this._date.getMinutes();t=t<=9?"0".concat(t):t,this.$timeInput.val("".concat(e,":").concat(t))}else this.$timeInput.val("");this.setDateInPicker(this._date),this._firstTime||(this.binding.setValue(this._date.toISOString()),this.binding.setDatatype("xsd:dateTime"))}else this.setDateInPicker(null),this.$timeInput.val("")}},{key:"_showYear",value:function(){this.$yearInput.parent().show(),this.$timeInput.parent().hide(),this.$datepicker.parent().hide(),this._valid?(this.$yearInput.val(this._date.getFullYear()),this._firstTime||(this.binding.setValue("".concat(this._date.getFullYear())),this.binding.setDatatype("xsd:gYear"))):this.$yearInput.val("")}},{key:"_setValueAttr",value:function(e){this.binding.setValue(e)}}])&&cl(t.prototype,r),n&&cl(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function fl(e){return(fl="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 pl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hl(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,ml(n.key),n)}}function ml(e){var t=function(e,t){if("object"!=fl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fl(t)?t:String(t)}function gl(e,t,r){return t=bl(t),function(e,t){if(t&&("object"===fl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],bl(e).constructor):t.apply(e,r))}function bl(e){return(bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vl(e,t){return(vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}ul.register=function(e){var t=function(t,r,n){var o=new e({messages:n.view.messages,binding:r,context:n},sl("<div>").appendTo(t)[0]);n.clear=function(){o.clear()}},r=ro.editorRegistry;r.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#date").register(t),r.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#dateTime").register(t),r.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYear").register(t),r.itemtype("text").datatype("http://purl.org/dc/terms/W3CDTF").register(t)};var yl=function(e){function r(){return pl(this,r),gl(this,r,arguments)}var n,o,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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vl(e,t)}(r,e),n=r,(o=[{key:"buildUI",value:function(){var e=ks(this.binding,this.context)?"disabled":"",r=this.context.view.messages,n=this.includeYearOption()?'<option value="Year">'.concat(r.date_year,"</option>"):"",o=this.includeDateOption()?'<option value="Date" selected="true">'.concat(r.date_date,"</option>"):"",i=this.includeDateTimeOption()?'<option value="DateTime">'.concat(r.date_date_and_time,"</option>"):"";this.domNode.innerHTML='<div class="rdformsDateValue rdformsFieldInput" xmlns="http://www.w3.org/1999/html">\n <div class="rdformsDatepicker datepicker">\n <div class="input-group date">\n <input '.concat(e,' type="text" class="form-control">\n <div class="input-group-append">\n <span class="input-group-text">\n <i class="fas fa-calendar"></i>\n </span>\n </div>\n </div>\n </div>\n <span style="display: none">\n <input ').concat(e,' type="text" class="form-control timeInput" placeholder="HH:MM"/>\n </span>\n <span style="display: none">\n <input ').concat(e,' type="text" class="form-control yearInput" placeholder="YYYY"/>\n </span>\n <select ').concat(e,' class="form-control dateControl">\n ').concat(n,"\n ").concat(o,"\n ").concat(i,"\n </select>\n</div>"),this.cal=t()(this.domNode).find(".date")[0],this.timeInput=t()(this.domNode).find(".timeInput")[0],this.yearInput=t()(this.domNode).find(".yearInput")[0],this.dateControl=t()(this.domNode).find(".dateControl")[0]}},{key:"initDatePicker",value:function(){var e=this;this.$datepicker=t()(this.cal).datepicker({autoclose:!0}),this.$datepicker.on("changeDate",(function(){var t=e.$datepicker.datepicker("getDate"),r=new Date(t.getFullYear(),t.getMonth(),t.getDate(),e._date.getHours(),e._date.getMinutes(),e._date.getSeconds(),e._date.getMilliseconds());e.setDateInBinding(r)})),this.item.isEnabled()||this.$datepicker.datepicker("disabled")}},{key:"setDateInPicker",value:function(e){this.$datepicker.datepicker("update",e)}}])&&hl(n.prototype,o),i&&hl(n,i),Object.defineProperty(n,"prototype",{writable:!1}),r}(ul);ul.register(yl);r(450),r(1271);var wl=r(3379),xl=r.n(wl),_l=r(7795),kl=r.n(_l),Sl=r(569),El=r.n(Sl),Tl=r(3565),Cl=r.n(Tl),Al=r(9216),Ol=r.n(Al),Dl=r(4589),jl=r.n(Dl),Pl=r(4666),Rl={};Rl.styleTagTransform=jl(),Rl.setAttributes=Cl(),Rl.insert=El().bind(null,"head"),Rl.domAPI=kl(),Rl.insertStyleElement=Ol();xl()(Pl.Z,Rl);Pl.Z&&Pl.Z.locals&&Pl.Z.locals;var Il=r(6931),Nl={};Nl.styleTagTransform=jl(),Nl.setAttributes=Cl(),Nl.insert=El().bind(null,"head"),Nl.domAPI=kl(),Nl.insertStyleElement=Ol();xl()(Il.Z,Nl);Il.Z&&Il.Z.locals&&Il.Z.locals;var Ll=r(4348),Ml={};Ml.styleTagTransform=jl(),Ml.setAttributes=Cl(),Ml.insert=El().bind(null,"head"),Ml.domAPI=kl(),Ml.insertStyleElement=Ol();xl()(Ll.Z,Ml);Ll.Z&&Ll.Z.locals&&Ll.Z.locals;var Fl=r(8089),Bl={};Bl.styleTagTransform=jl(),Bl.setAttributes=Cl(),Bl.insert=El().bind(null,"head"),Bl.domAPI=kl(),Bl.insertStyleElement=Ol();xl()(Fl.Z,Bl);Fl.Z&&Fl.Z.locals&&Fl.Z.locals;function Ul(e){return(Ul="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 Vl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $l(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,Hl(n.key),n)}}function Hl(e){var t=function(e,t){if("object"!=Ul(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ul(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ul(t)?t:String(t)}function Wl(e,t,r){return t=Gl(t),function(e,t){if(t&&("object"===Ul(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Gl(e).constructor):t.apply(e,r))}function zl(){return(zl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Yl(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Yl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Gl(e)););return e}function Gl(e){return(Gl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ql(e,t){return(ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Xl=function(e,t,r){return 1===r?e["".concat(t,"_one")]:e["".concat(t,"_more")].replace("$1",r)},Ql=function(e){function t(){return Vl(this,t),Wl(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ql(e,t)}(t,e),r=t,(n=[{key:"_handleParams",value:function(e){e.showLanguage=!1!==e.showLanguage,e.filterTranslations=!1,e.styleCls=e.styleCls||"rdformsPresenter rdformsValidator",this.fuzzy=!1!==e.fuzzy,zl(Gl(t.prototype),"_handleParams",this).call(this,e),this.binding&&Ca(this.binding)}},{key:"showNow",value:function(e,t){if(e.hasStyle("invisible"))return!1;if(t.length>0)return!0;if(e.hasStyle("deprecated"))return!1;if(e.hasStyle("atLeastOneChild")||e.hasStyle("exactlyOneChild"))return!0;if(e.hasStyle("atLeastOneChild")||e.hasStyle("exactlyOneChild"))return!0;var r=this.binding.getMatchingCode();if(r===lo.MISSING_CONSTRAINTS||r===lo.WRONG_NODETYPE)return!1;var n=e.getCardinality();switch(this.includeLevel){case"mandatory":return n&&n.min>=1;case"recommended":default:return n&&(n.min>=1||n.pref>=1)}}},{key:"showAsTable",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var r,n=t,o=e.getCardinality(),i=null!=o.min?o.min:0,a=null!=o.pref?o.pref:0;r=o.pref>0?o.pref:o.min>0?o.min:"propertygroup"===e.getType()?0:"group"===e.getType()&&null==e.getProperty()?1:0;var s=this.binding.getMatchingCode(),l=!(this.binding.getItem().hasStyle("atleastOneChild")||this.binding.getItem().hasStyle("atMostOneChild")||this.binding.getItem().hasStyle("disjoint")||this.binding.getItem().hasStyle("exactlyOneChild"))||s===lo.TOO_FEW_VALUES_MIN||s===lo.TOO_FEW_VALUES_PREF,c=s===lo.MISSING_CONSTRAINTS||s===lo.WRONG_NODETYPE;if(r>n.length&&l&&!c)for(n=n.concat([]);r>n.length;){var d=_a(this.binding,e);n.length<i?d.setMatchingCode(lo.TOO_FEW_VALUES_MIN):n.length<a&&d.setMatchingCode(lo.TOO_FEW_VALUES_PREF),n.push(d)}return n}},{key:"skipBinding",value:function(){return!1}},{key:"addValidationMarker",value:function(e,t){var r,n,o=t.getItem(),i=o.getCardinality(),a=null!=i.min?i.min:0,s=null!=i.pref?i.pref:0,l="group"===o.getType()?null===(r=t.getCardinalityTracker())||void 0===r?void 0:r.getCode():void 0,c=l&&l!==lo.OK&&l!==lo.UNKNOWN?l:t.getMatchingCode(),d=c===lo.TOO_FEW_VALUES_PREF;if(c!==lo.TOO_FEW_VALUES_PREF&&c!==lo.OK)return ro.domClassToggle(e,"error",!0),c===lo.TOO_FEW_VALUES_MIN?n=Xl(this.messages,"validation_min_required",a):c===lo.TOO_MANY_VALUES?n=Xl(this.messages,"validation_max",i.max||1):c===lo.AT_MOST_ONE_CHILD?n=this.messages.validation_at_most_one_child:c===lo.AT_LEAST_ONE_CHILD?n=this.messages.validation_at_least_one_child:c===lo.EXACTLY_ONE_CHILD?n=this.messages.validation_exactly_one_child:c===lo.WRONG_NODETYPE?n=this.messages.validation_nodetype:c===lo.WRONG_VALUE?n=this.messages.validation_value:c===lo.WRONG_DATATYPE?n=this.messages.validation_datatype:c===lo.MISSING_CONSTRAINTS?n=this.messages.validation_constraints:c===lo.WRONG_PATTERN?n=this.messages.validation_pattern:c===lo.MISSING_LANGUAGE&&(n=this.messages.validation_language),ro.renderValidationMessage(e,"error",n),!0;if(d){ro.domClassToggle(e,"warning",!0);var u=Xl(this.messages,"validation_min_recommended",s);return ro.renderValidationMessage(e,"warning",u),!0}return!!o.hasStyle("deprecated")&&(ro.domClassToggle(e,"deprecated",!0),ro.renderValidationMessage(e,"deprecated",this.messages.validation_deprecated),!0)}},{key:"addComponent",value:function(e,r){zl(Gl(t.prototype),"addComponent",this).call(this,e,r),this.addValidationMarker(e,r)}}])&&$l(r.prototype,n),o&&$l(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Ka);function Zl(e){return(Zl="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 Kl(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,Jl(n.key),n)}}function Jl(e){var t=function(e,t){if("object"!=Zl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Zl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zl(t)?t:String(t)}var ec=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r instanceof Node?this.domNode=r:this.domNode="string"==typeof r?document.getElementById(r):document.createElement("div"),this.template=t.template,this.resource=t.resource,this.graph=t.graph,this.compact=void 0===t.compact||t.compact,this.includeLevel=t.includeLevel||"mandatory",this.includeLevelControllsVisible=void 0===t.includeLevelControllsVisible||t.includeLevelControllsVisible,this.externalEditor=void 0!==t.externalEditor&&t.externalEditor,this.messages=t.messages,this.render()}var r,n,o;return r=e,(n=[{key:"render",value:function(){this.domNode.innerHTML='<div class="cardinality" style="display: none;">\n <div class="btn-group" role="group">\n <button type="button" class="btn btn-secondary btn-lg active mandatory">Mandatory</button>\n <button type="button" class="btn btn-secondary btn-lg active recommended">Recommended</button>\n <button type="button" class="btn btn-secondary btn-lg optional">Optional</button>\n </div>\n <div class="rdformsLevelNode"></div>',this._cardinalityNode=t()(this.domNode).find(".cardinality")[0],this._mandatoryButton=t()(this.domNode).find(".mandatory").click(this._mandatoryClick.bind(this))[0],this._recommendedButton=t()(this.domNode).find(".recommended").click(this._recommendedClick.bind(this))[0],this._optionalButton=t()(this.domNode).find(".optional").click(this._optionalClick.bind(this))[0],this._rdformsNode=t()(this.domNode).find(".rdformsLevelNode")[0],this.includeLevelControllsVisible&&(this._cardinalityNode.style.display=""),this.setIncludeLevel(this.includeLevel),this.externalEditor||(this._editor=new cs({includeLevel:this.includeLevel,compact:this.compact},this._rdformsNode),this.show())}},{key:"show",value:function(e,t,r){this.resource=e||this.resource,this.graph=t||this.graph,this.template=r||this.template,this._editor&&this._editor.show({resource:this.resource,graph:this.graph,template:this.template,includeLevel:this.includeLevel}),this.localize()}},{key:"setIncludeLevel",value:function(e){if(null==this._editor||this._editor.getIncludeLevel()!==e)switch(this.includeLevel=e,e){case"mandatory":this._mandatoryClick();break;case"recommended":this._recommendedClick();break;case"optional":this._optionalClick()}}},{key:"disableLevel",value:function(e){switch(e){case"mandatory":this._mandatoryLabel.setAttribute("disabled",!0);break;case"recommended":this._recommendedLabel.setAttribute("disabled",!0);break;case"optional":this._optionalLabel.setAttribute("disabled",!0)}}},{key:"localize",value:function(){var e=ro.getMessages();ro.domText(this._mandatoryButton,e.mandatoryLabel),ro.domText(this._recommendedButton,e.recommendedLabel),ro.domText(this._optionalButton,e.optionalLabel)}},{key:"setExternalEditor",value:function(e){e.getIncludeLevel()!==this.includeLevel&&e.setIncludeLevel(this.includeLevel),this._editor=e,this.show()}},{key:"_mandatoryClick",value:function(e){this._mandatoryButton.getAttribute("disabled")||(ro.domClassToggle(this._mandatoryButton,"active",!0),ro.domClassToggle(this._recommendedButton,"active",!1),ro.domClassToggle(this._optionalButton,"active",!1),this._updateEditor("mandatory")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_recommendedClick",value:function(e){this._recommendedButton.getAttribute("disabled")||(ro.domClassToggle(this._mandatoryButton,"active",!0),ro.domClassToggle(this._recommendedButton,"active",!0),ro.domClassToggle(this._optionalButton,"active",!1),this._updateEditor("recommended")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_optionalClick",value:function(e){this._optionalButton.getAttribute("disabled")||(ro.domClassToggle(this._mandatoryButton,"active",!0),ro.domClassToggle(this._recommendedButton,"active",!0),ro.domClassToggle(this._optionalButton,"active",!0),this._updateEditor("optional")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_updateEditor",value:function(e){this._editor&&this._editor.setIncludeLevel(e)}}])&&Kl(r.prototype,n),o&&Kl(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(),tc="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},rc="URLSearchParams"in tc,nc="Symbol"in tc&&"iterator"in Symbol,oc="FileReader"in tc&&"Blob"in tc&&function(){try{return new Blob,!0}catch(e){return!1}}(),ic="FormData"in tc,ac="ArrayBuffer"in tc;if(ac)var sc=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],lc=ArrayBuffer.isView||function(e){return e&&sc.indexOf(Object.prototype.toString.call(e))>-1};function cc(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function dc(e){return"string"!=typeof e&&(e=String(e)),e}function uc(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return nc&&(t[Symbol.iterator]=function(){return t}),t}function fc(e){this.map={},e instanceof fc?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function pc(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function hc(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function mc(e){var t=new FileReader,r=hc(t);return t.readAsArrayBuffer(e),r}function gc(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function bc(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:oc&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:ic&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:rc&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():ac&&oc&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=gc(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ac&&(ArrayBuffer.prototype.isPrototypeOf(e)||lc(e))?this._bodyArrayBuffer=gc(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):rc&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},oc&&(this.blob=function(){var e=pc(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=pc(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(oc)return this.blob().then(mc);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=pc(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=hc(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8";return t.readAsText(e,o),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},ic&&(this.formData=function(){return this.text().then(wc)}),this.json=function(){return this.text().then(JSON.parse)},this}fc.prototype.append=function(e,t){e=cc(e),t=dc(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},fc.prototype.delete=function(e){delete this.map[cc(e)]},fc.prototype.get=function(e){return e=cc(e),this.has(e)?this.map[e]:null},fc.prototype.has=function(e){return this.map.hasOwnProperty(cc(e))},fc.prototype.set=function(e,t){this.map[cc(e)]=dc(t)},fc.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},fc.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),uc(e)},fc.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),uc(e)},fc.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),uc(e)},nc&&(fc.prototype[Symbol.iterator]=fc.prototype.entries);var vc=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function yc(e,t){if(!(this instanceof yc))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof yc){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new fc(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new fc(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),vc.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in tc)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function wc(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function xc(e,t){if(!(this instanceof xc))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new fc(t.headers),this.url=t.url||"",this._initBody(e)}yc.prototype.clone=function(){return new yc(this,{body:this._bodyInit})},bc.call(yc.prototype),bc.call(xc.prototype),xc.prototype.clone=function(){return new xc(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new fc(this.headers),url:this.url})},xc.error=function(){var e=new xc(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var _c=[301,302,303,307,308];xc.redirect=function(e,t){if(-1===_c.indexOf(t))throw new RangeError("Invalid status code");return new xc(null,{status:t,headers:{location:e}})};var kc=tc.DOMException;try{new kc}catch(e){(kc=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),kc.prototype.constructor=kc}function Sc(e,t){return new Promise((function(r,n){var o=new yc(e,t);if(o.signal&&o.signal.aborted)return n(new kc("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}if(i.onload=function(){var e,t,n={statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new fc,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}})),t)};0===o.url.indexOf("file://")&&(i.status<200||i.status>599)?n.status=200:n.status=i.status,n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var a="response"in i?i.response:i.responseText;setTimeout((function(){r(new xc(a,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},i.onabort=function(){setTimeout((function(){n(new kc("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&tc.location.href?tc.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(oc?i.responseType="blob":ac&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof fc||tc.Headers&&t.headers instanceof tc.Headers)){var s=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){s.push(cc(e)),i.setRequestHeader(e,dc(t.headers[e]))})),o.headers.forEach((function(e,t){-1===s.indexOf(t)&&i.setRequestHeader(t,e)}))}else o.headers.forEach((function(e,t){i.setRequestHeader(t,e)}));o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Sc.polyfill=!0,tc.fetch||(tc.fetch=Sc,tc.Headers=fc,tc.Request=yc,tc.Response=xc);r(429);const Ec=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const Tc=function(e){return this.__data__.has(e)};function Cc(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Bt;++t<r;)this.add(e[t])}Cc.prototype.add=Cc.prototype.push=Ec,Cc.prototype.has=Tc;const Ac=Cc;const Oc=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};const Dc=function(e,t){return e.has(t)};const jc=function(e,t,r,n,o,i){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,p=2&r?new Ac:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var h=e[u],m=t[u];if(n)var g=a?n(m,h,u,t,e,i):n(h,m,u,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!Oc(t,(function(e,t){if(!Dc(p,t)&&(h===e||o(h,e,r,n,i)))return p.push(t)}))){f=!1;break}}else if(h!==m&&!o(h,m,r,n,i)){f=!1;break}}return i.delete(e),i.delete(t),f};const Pc=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};const Rc=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r};var Ic=Ge?Ge.prototype:void 0,Nc=Ic?Ic.valueOf:void 0;const Lc=function(e,t,r,n,o,i,a){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||!i(new mn(e),new mn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return je(+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 s=Pc;case"[object Set]":var l=1&n;if(s||(s=Rc),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var d=jc(s(e),s(t),n,o,i,a);return a.delete(e),d;case"[object Symbol]":if(Nc)return Nc.call(e)==Nc.call(t)}return!1};var Mc=Object.prototype.hasOwnProperty;const Fc=function(e,t,r,n,o,i){var a=1&r,s=Jr(e),l=s.length;if(l!=Jr(t).length&&!a)return!1;for(var c=l;c--;){var d=s[c];if(!(a?d in t:Mc.call(t,d)))return!1}var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<l;){var m=e[d=s[c]],g=t[d];if(n)var b=a?n(g,m,d,t,e,i):n(m,g,d,e,t,i);if(!(void 0===b?m===g||o(m,g,r,n,i):b)){p=!1;break}h||(h="constructor"==d)}if(p&&!h){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(p=!1)}return i.delete(e),i.delete(t),p};var Bc=Object.prototype.hasOwnProperty;const Uc=function(e,t,r,n,o,i){var a=rr(e),s=rr(t),l=a?"[object Array]":fn(e),c=s?"[object Array]":fn(t),d="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),u="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),f=l==c;if(f&&sr(e)){if(!sr(t))return!1;a=!0,d=!1}if(f&&!d)return i||(i=new $t),a||yr(e)?jc(e,t,r,n,o,i):Lc(e,t,l,r,n,o,i);if(!(1&r)){var p=d&&Bc.call(e,"__wrapped__"),h=u&&Bc.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return i||(i=new $t),o(m,g,r,n,i)}}return!!f&&(i||(i=new $t),Fc(e,t,r,n,o,i))};const Vc=function e(t,r,n,o,i){return t===r||(null==t||null==r||!Qt(t)&&!Qt(r)?t!=t&&r!=r:Uc(t,r,n,o,e,i))};const $c=function(e,t){return Vc(e,t)};function Hc(e){return(Hc="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 Wc(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,zc(n.key),n)}}function zc(e){var t=function(e,t){if("object"!=Hc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Hc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hc(t)?t:String(t)}var Yc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._registry={}}var t,r,n;return t=e,(r=[{key:"importRegistry",value:function(e){Object.assign(this._registry,e)}},{key:"getChoices",value:function(e,t){var r=this._findChoices(e);if(null==r);else{if(null==t)return r;t(r)}}},{key:"_findChoices",value:function(e){var t=this._registry[e.getOntologyUrl()];if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];if($c(n.constraints,e.getConstraints())&&e.getParentProperty()===n.parentProperty&&e.getHierarchyProperty()===n.hierarchyProperty&&e.isParentPropertyInverted()===(n.isParentPropertyInverted||!1)&&e.isHierarchyPropertyInverted()===(n.isHierarchyPropertyInverted||!1))return n.choices}}},{key:"_constructLoadUrl",value:function(e){var t=[];if(t.push("constr=".concat(encodeURIComponent(JSON.stringify(e.getConstraints())))),null!=e.getParentProperty()){var r=!0===e.isParentPropertyInverted()?"ipp=":"pp=";t.push(r+encodeURIComponent(e.getParentProperty()))}if(null!=e.getHierarchyProperty()){var n=!0===e.isHierarchyPropertyInverted()?"ihp=":"hp=";t.push(n+encodeURIComponent(e.getHierarchyProperty()))}return"".concat(e.getOntologyUrl(),"?").concat(t.join("&"))}}])&&Wc(t.prototype,r),n&&Wc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Gc(e){return(Gc="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 qc(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,Xc(n.key),n)}}function Xc(e){var t=function(e,t){if("object"!=Gc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Gc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gc(t)?t:String(t)}var Qc=0,Zc=function(){function e(t){var r=t.itemStore,n=t.source,o=t.path,i=t.readOnly,a=void 0!==i&&i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._itemStore=r,this._source=n,this._path=o,this._readOnly=a,this._items=[],Qc+=1,this._id="_bundle_".concat(Qc),this._root=null,this._modified=!1}var t,r,n;return t=e,(r=[{key:"getInternalId",value:function(){return this._id}},{key:"getSource",value:function(){return this._source}},{key:"setRoot",value:function(e){return this._source.root=e,e}},{key:"getRoot",value:function(){if(this._source.root)return this._itemStore.getItem(this._source.root)}},{key:"getItemStore",value:function(){return this._itemStore}},{key:"getPath",value:function(){return this._path}},{key:"getItems",value:function(){return this._items}},{key:"addItem",value:function(e){this._items.push(e)}},{key:"removeItem",value:function(e){this._items.splice(this._items.indexOf(e),1)}},{key:"isModified",value:function(){return this._modified}},{key:"setModified",value:function(e){this._modified=e}},{key:"isReadOnly",value:function(){return this._readOnly||null==this._path}}])&&qc(t.prototype,r),n&&qc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Kc(e){return(Kc="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 Jc(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,ed(n.key),n)}}function ed(e){var t=function(e,t){if("object"!=Kc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Kc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Kc(t)?t:String(t)}var td=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.automaticSortAllowed=!0,this.handleErrorAs="throw",this._bundles=[],this._registry={},this._registryByProperty={},this._ontologyStore=t||new Yc}var t,r,n;return t=e,(r=[{key:"getTemplate",value:function(e){return this.getItem(e)}},{key:"getChildren",value:function(e,t){if(null==e)return[];var r=e.getSource(!0),n=r.content||r.items||[];if(t)return this._createItems(n,e._forceChildrenClones,e.getBundle());var o=this.getItem(r.extends);return o?o.getChildren().concat(e.getChildren(!0)):e.getChildren(!0)}},{key:"getItem",value:function(e){if(null!=e)return this._registry[e]}},{key:"getItems",value:function(){var e=this;return Object.keys(this._registry).map((function(t){return e._registry[t]}))}},{key:"renameItem",value:function(e,t){if(this._registry[t])this._handleError("Cannot rename to ".concat(t," since an item with that id already exists."));else if(""!==t&&null!==t){var r=this._registry[e];r&&(delete this._registry[e],this._registry[t]=r,r.setId(t));for(var n=function r(n){var o=n.content;if(o)for(var i=0;i<o.length;i++){var a=o[i];a.id!==e&&a["@id"]!==e||(a.id=t,delete a["@id"]),a.content&&r(a)}},o=this.getItems(),i=0;i<o.length;i++){var a=o[i];a instanceof Bo&&n(a._source)}}else this._handleError("Cannot give an item an empty string or null as id.")}},{key:"getItemIds",value:function(){return Object.keys(this._registry)}},{key:"getItemByProperty",value:function(e){return this._registryByProperty[e]}},{key:"detectTemplate",value:function(e,t,r){return ya(e,t,this,r)}},{key:"registerBundle",value:function(e){e.itemStore=this;var t=new Zc(e);this._bundles.push(t),e.source&&e.source.namespaces&&p(e.source.namespaces);var r=e.source.templates||e.source.auxilliary;return r instanceof Array&&this._createItems(r,!1,t),"object"===Kc(e.source.cachedChoices)&&this._ontologyStore.importRegistry(e.source.cachedChoices),t}},{key:"getBundles",value:function(){return this._bundles}},{key:"createTemplate",value:function(e){return this.registerBundle({source:e}).getRoot()}},{key:"createTemplateFromChildren",value:function(e){var t=this,r=(e||[]).map((function(e){return"string"==typeof e?t.getItem(e):e}));return new Bo({source:{},children:r,itemStore:this})}},{key:"setPriorities",value:function(e){this.priorities=e}},{key:"createExtendedSource",value:function(e,t){var r=Object.assign(Object.assign({},e),t);return r._extendedSource=t,r.extends=null,delete r.children,r}},{key:"createItem",value:function(e,t,r,n){var o,i=e.id||e["@id"],a=e.type||e["@type"];if(e.extends){var s=this._registry[e.extends];if(null==s&&this._handleError("Cannot find item to extend with id: ".concat(e.extends)),s){var l=this.createExtendedSource(s.getSource(),e);return this.createItem(l,!1,!1,n)}}if(null!=a){switch(a){case"text":o=new ni({source:e,itemStore:this,bundle:n});break;case"choice":o=new pi({source:e,itemStore:this,ontologyStore:this._ontologyStore,bundle:n});break;case"group":o=new Bo({source:e,children:null,itemStore:this,bundle:n});break;case"propertygroup":o=new Xo({source:e,children:null,itemStore:this,bundle:n})}return!0!==r&&(null!=e.property&&(this._registryByProperty[e.property]=o,this.priorities&&null!=this.priorities[e.property]&&(o.priority=this.priorities[e.property])),null!=i&&null==this._registry[i]&&(this._registry[i]=o,null!=n&&n.addItem(o))),o}if(null!=i){if(null!=this._registry[i]){if(!0===t||Object.keys(e).find((function(e){return"id"!==e&&"@id"!==e}))){var c=Object.assign(Object.assign({},this._registry[i]._source),e);return this.createItem(c,!1,!0)}return this._registry[i]}this._handleError("Cannot find referenced subitem using identifier: ".concat(i))}else this._handleError("Cannot create subitem, `type` for creating new or `id` for referencing external are required.")}},{key:"removeItem",value:function(e,t){var r=e.getBundle();null!=r&&r.removeItem(e),null!=e.getId()&&delete this._registry[e.getId()];var n=e.getProperty();null!=n&&this._registryByProperty[n]===e&&delete this._registryByProperty[n]}},{key:"_createItems",value:function(e,t,r){var n=this;return e.map((function(o,i){var a="string"==typeof o?e[i]={id:o}:o;return n.createItem(a,t,!1,r)})).filter((function(e){return e}))}},{key:"_handleError",value:function(e){if("throw"===this.handleErrorAs)throw new Error(e);console[this.handleErrorAs](e)}}])&&Jc(t.prototype,r),n&&Jc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rd(e){return(rd="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 nd(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nd=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new O(n||[]);return o(a,"_invoke",{value:E(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",p="executing",h="completed",m={};function g(){}function b(){}function v(){}var y={};c(y,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(D([])));x&&x!==r&&n.call(x,a)&&(y=x);var _=v.prototype=g.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==rd(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,r,n){var o=f;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?h:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=h,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=u(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(rd(t)+" is not iterable")}return b.prototype=v,o(_,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:b,configurable:!0}),b.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},k(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new S(d(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(_),c(_,l,"Generator"),c(_,a,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=D,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function od(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function id(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){od(i,n,o,a,s,"next",e)}function s(e){od(i,n,o,a,s,"throw",e)}a(void 0)}))}}var ad=function(e,t,r){var n="Fetching template bundle ".concat(r," failed.");if(e===t-1)throw Error("".concat(n," Cannot recover from this, please fix."));console.log("".concat(n," Will try to fetch from a fallback option."))},sd=function(){var e=id(nd().mark((function e(t){var r,n,o,i,a;return nd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.length,i=0;case 2:if(!(i<r)){e.next=34;break}return e.prev=3,e.next=6,fetch(t[i]);case 6:n=e.sent,e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(3),Error("A network error ocurred while trying to fetch bundle ".concat(t[i]));case 12:if(!n||!n.ok){e.next=30;break}if(e.prev=13,!(a=n.headers.has("content-type")&&n.headers.get("content-type"))||!a.includes("application/json")){e.next=22;break}return e.next=18,n.json();case 18:return o=e.sent,e.abrupt("break",34);case 22:throw new Error("Failed fetching template ".concat(t[i],". Expected a JSON file and got ").concat(a));case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(13),ad(i,r,t[i]);case 28:e.next=31;break;case 30:ad(i,r,t[i]);case 31:i++,e.next=2;break;case 34:return e.abrupt("return",o);case 35:case"end":return e.stop()}}),e,null,[[3,9],[13,25]])})));return function(t){return e.apply(this,arguments)}}(),ld=function(e){return e.map((function(e){return e instanceof Array?sd(e):Promise.resolve(e)}))},cd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.map((function(t){return e.registerBundle({source:t})}))};const dd=function(){var e=id(nd().mark((function e(t){var r,n,o,i,a,s=arguments;return nd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:[],n=s.length>2&&void 0!==s[2]?s[2]:function(){},0===r.length&&n&&n([]),o=ld(r),e.next=6,Promise.all(o);case 6:return i=e.sent,a=cd(t,i),n(a),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})(),n})());
|
|
109
|
+
*/function r(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(t,"__esModule",{value:!0}),t.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",t.NC_NAME_CHAR="-"+t.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.NC_NAME_START_CHAR_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]$","u"),t.NC_NAME_CHAR_RE=new RegExp("^["+t.NC_NAME_CHAR+"]$","u"),t.NC_NAME_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]["+t.NC_NAME_CHAR+"]*$","u"),t.isNCNameStartChar=r,t.isNCNameChar=function(e){return r(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},2134:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAN1wAADdcBQiibeAAAAAd0SU1FB9sHEgk6F1W2ZXkAAAMkSURBVDjLhZNfSN11GMY/7/f7O+eox+W/CGbptmTJGptTWgwGmWW6xQKtga2g0U30D5rdSEFFN60RbQV1IURd9GeuiyWxShd6JtO8ydha5i6WJNtkarGcHc8539/v+3u7EF1d9Vy9D8/zPvDC+8C/8GTPGP+H93sH/sNldTjwyhjHD+8GoO3ZwZfqNt56MJ1ONqgii0vL5yenrnw6/tljRwE6Dp2iu3Mdzc3NKwGryw89M9C0pX79xM6mDaRLUhhjsEZIJIRcPmIw8wvXLk+393/Qdfq19wZobSxGut48w4k37mfPc983NTXUTmzdUo33XkFk+6YURoSLsxHJhNV16ZQMnZ1ifubXAx+9tb/v61NDN094/sg5bWqoxXuv1hoCazjYWg7AidG/MUYwRriltFiO94/z6iP5OzbvePCqBejozhzatrVmj/eqcYzEqpJ3scwshHLxipNsPhZVFVXEhZFurLlNPj45WXd+7Mu+AKCqovQpjcG5SKw1asTIw/eWs7Ts1YjIxKUczolaG4u3hlQqQbK0fK/qTyUGwFizreA8Bee14Dy5fKRjF27ojroStt9ZrGHkNQw9zsXqnCd0Hq+pZDiX3RQAeB9LGHpEkDhW4lj4c9GhqgCEYYyqICbGeoMYQxzHZAsmHQAUXPhzwflGI2CtahCI5AVAFFRc6IkVNcaINaoiRix5kkHp9QAgm13+PJd3jYmEVRsrPhbN5b2AAuhfNxxFSYuxqoEVsrmIitTybEl1/bQB6D/W+u7CwnWiSMWFEQaVlx+vQUQQEXmhs1pACV0kiGH8x0n2N1f0imz0wbFPTtP9dBtlqaX2+T/MYFVFuWRzkX4ztiDGCCKi1qx8YjKR0B8mfpN9jX7qrvXB22tdeKJnkC+OtNPzznddl+aK+srKK0kmAgIrWGswYgi9Z3rmdzp36tSj91U+ULVh17Xh4eGVgJGREUYuFHj9xTamJ4dvP3oy9+FiLrF3uWCSCqRTIdXlbrZjd1lvfU3R4craXWEmk6GlpeVmLYeGhvjq2zNrXPVccTQ/evfi5bP3ZK+Oblads6taJpNZ8/0Dy3R3nlDQL+wAAAAASUVORK5CYII="},3348:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABuwAAAbsBOuzj4gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAG6SURBVDiNpZI9a1NRHIefc+45J0l7E1NaF4cE0cHMClYQRRCh38DNIfoBxMXFFl06CRb0CxTBSQdBRAcXsUN9AUGQijaggihe01ybmzT3vDiIIpirFv/r7+Hh/yZCCPxPyaLgwurZ68dutwbH7+xLll8tXSviRFEHJ+/N+bndJ8TIDXmePLFXD9/U2+rg6cfHwushpYri5cYLVcQVBrl3fN3KEFIycq4I+ykQQATYH4F1nnQ0QCDI7W8CBTggKID23fZiJ+2ce/ThoTKRwqgIHUmyfIgUgi2XM3urGSpaUzGa/TsP2UatefnM3oXzIoSAXtSfTx84NU3kCJFHSPFd4FOkENRVHSkVJWKSfo80+0I+uZ7cOPpsRgFYa1lPOiij0OWIWilGS0HfbRJJ0EGTjTLWkjf0BgOmTJUZM/plB575+68fXEGhUaCVxEQRs80Wk8aw8naVslaUlKIaK7RJc2vVPPzhD8pLOhzZ02JqosxKZ4137Z4YxxX+gfOe3OVIAbn3fz3jWMGnzR5BeKzbtuCibMT18L7bFd1+Tmx32PFc4QgL/uB0dRkY7ppobNR87VKRoHCJ/1rfAF8ir6zXPA5QAAAAAElFTkSuQmCC"},9636:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABuwAAAbsBOuzj4gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIXSURBVDiNpZM9aBNxGMafN80Rm49ekktS83H5IMHSUjscFcGCtQg1iRA1OAtOgmBHiVvq1EEIFB0c0r0IpVwWFx0MOIggaIci2FaTq2LtqW1MyeV6f6cLZ9pF+oz/931+PC8Pf2KM4SSyncjdD1ghkt7cvvV9leNy/YurHJf78OB+c4VIOhawTCT5J8denRkdC0aLWfkZUdYyy4Wz03I8GIyevjJdX7ZAegANWEpOnncdNLcRS47aw/lLtSpRvkJ0zXn5Qk0cmbC3txrIzOadGrBk+uwWQGmt/rKWHD9nB7MhEE7ZNy625F3DoNlExqY2FAw4Hfj24r2uASXTR9YWnhJlh0eickzMcIbGYPO6ccAMODsGHIkItt6+7irvPhbuMPb8WAAALBJlI5lhORKMcocagRwO6KyDr8qn7s6XX4U5i/mfE0x1AGhaF/r6OvSfbRCAAZ8TzHMKnf7l/gQLRFkxIcjj+x0OagttvxsEYFBtAX431jyD3cbnnULJkqLXwjxRTkxF5KmWzglqCy7Biyc8zxZ5L3MFfBDUFqb+HHJiOi4v8PzVIwAWDz2eGfJyod3fcAf8qHh5Q9hUir7N5s0KzxvuoIDQDxUzniGOF8VHvdiMMTDGUAakaiK2p0hnWTmd0ueA6+bsLlCcT6d0RZpg1URsrwxI5qwHMCEPM9GNe8AN67sJqedz21YzY+xojf+rE//Gv3sS6xhM1kjhAAAAAElFTkSuQmCC"},5230:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAQAAAAEABcxq3DAAACGUlEQVQ4y52TTUhUcRTFf//3n/FjZsxmQsOvmtJF5VQ6i3IsaaJcVIs24UKIIKRNuGrboihaRWQptbVtmLvCWgyZWJRlNimUaKajMH1gWprzfO/dFiYozgR54WzuPedwOZcL/6jDtXjq68hlPRXejRqM0TPwhK51Gdy6QoNM5oqTyHFaLnP8v8TRCFmJPobly0GRZI2MvSBeX4dOxzXSNZsaaS4pLqrA8IMuYOuWwtDpUzSl46pohOxohGhVJdVlxVQHNlJdVuorN7L3GSjvEkt+4iy8sscTc8PTM7ydmKJ/YIg3sV6eqjvXOH+uUbWii8EVBJUPKu22IBbILFgjYCdpa5czem6eeHiXOlAQcG8TXY7gQkRlgEbEjZhj9MdTD1vbuajHEljjkzwI7zSP+H2zJaiiJbLDWtgOznwfQx9+dF+66Zzs6ialAYbHMJNf6QzvSJ3I81iFqELEUWtg/37PyGjy9dU251jnY36tukJHl3yP9cpd23SwLZUepkPPS27ffyQzyzrXyow2bTBKbcuLs6iWU1s+1t8Mvfh9RtlKzSqDgE8HHdsDpiDmFJL6BBio7CAqqwixPPi9OpjRINdlBBdnP4OM8G16Yep53GpR4K7dO9gcyB/djDLIcRmZDcQy8sYn5j8+G1i83hEz7/W+s1MANSF9o+GoffZQlfuCWIYv4w9EQq78PRXayDQPbdd6f6XesLL3By3z9hHiEQ65AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDEwLTAyLTExVDAxOjIwOjIxLTA2OjAwtZnToAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAwNi0xMC0wMVQwMDo1NjoyNi0wNTowMJWSAJ0AAAAASUVORK5CYII="},8388:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACJUlEQVQ4jaWTO2hVQRCGv5k959yb+zg3MUQNEt+QwlejkCIRAhEhBGxSWAkWksLGgKWNjTYqEhDS24qgQoJWNhGxMWBjIxYKQTQPE9HknrM7FucmxiiiON0u/3z8/8wu/GfJ5sPA+VQP9pVPlyu6/cu8f3L30se5vwacGu+o9hwpPYoTBuNEiBP5bLkN3x6de/YngAIMjLXXOvfFU1nTBrMmZJmRZ9bQWKbH73f3r4vP3exMJl7vHrs2s+vA+l0E0LEnnsianAQrbImgYqiSxiWZvvywe3jhXf6it690L3gbad/pXgFHNwDNNRsxAzMBDFFQFdSBi6glZZnqOZzMGtLvYsECe3+K0FzjbdY08szIM/AZ5Dn43AjBKJWlJkJ/z35HvaEEozZ6pcNtAL4u+bGsyUKeFU3eG8EbwcO2LkfvsZhDxxMqNUUdmCFtdU03AM8nF2dXl/2QDzbvAwQPIUAwqDaErAmihWXnAINyTX4AAGbuLL5cWwlDwKdiHoXYabEVn7cyu2LU5bo2fgIAPL21MEuwIVHWAJKStGYB3lsLKgjQVvsNACBK9IIIJRGI4laUYFhoOVBAoJJq+gvgzPWuq6JcFCmEqlI0tiIVbwRUoNIoHESbAS4SFyeF9aQkrH4zPrz3LC8IlXqgmipRDC4CdazAls8EcOJsfUdbXTsqqaa1dm1U2zVNO7WRdro07dK0rapp5HjzeHJ58sGNJdva/8/1HRdPyP0VYmT/AAAAAElFTkSuQmCC"},2777:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACnklEQVQ4jY2SX0hTYRjG39VEQl2RN2UXZQRFd0EIEUH/BhVBZCSEeFMpQSgVjc3/VhSCXUSBWSG5bipDU1IoCVEa6JTUzvGsZrP5Z9NtHre5qZubO0/fNylqDOqFh8P5OO/vfb73PES8UjYQnagh0g2TSi9kkF7Qkl7MZc9slV4kKuogyj5IyYs35xtJZRA16wxiQ3qlFNY+s+NM0wR21loVdm5Wl4o5HE67jycBHL7Bp2rYh8PFbU74l6NYjSlxxRQFraIfmbcsoZQyUUvX+4nSMhMA7JA1N/DmSHQVzkAMdp+C6QUF7kUF4WgM/ROLSCkbdTOHGjpQmADQf8ngtueDYXyXoxhxrcLiiWFsPgabl8NicXDBqymoDEIRnXuYCBC0x56MI7gUQvePFZgmV2B2RDA0E8HIbDQud2AFxgEZbLHP6UJjIkDMPd04DtkfRItlCR3WZXTZOCyEHvua7PIyXn+e44DmJAAhe/u9r4rP70ezuADjSAAvhSDejDKgFESrJQiXN4DyTgcH1FB+UwJAN8RdmF/0OWF1yKg3e/Go34fHAz48HfRh0O6F7PVj7/0xsCWWsIFE+/P/AJx9wF3kbKqWQh+EGUzPuGEac6PX6oHN4YHLI6NdWkDdJy82VlsiDJL3N0STRXS1m2VB1KpLR915RhvqeybRZJqCrs2OPXVW3O6WUWvyoeKjjIykkM07iC63cycadp2i+Lb5wvid9WKJhjXdfO+BrmsOJZ1upFdJHHI+ns7fpVpPtOsI0VEd0ak7azrJdK2f7ygvvcoSudLuwiWmi29nkVohhdnArCTZTqht+1hazXFIWqUUKWhxovDdLLbe/cb+inDo34AESGq5FN7Cmw1iH3tX/x/gF6S4l+K2+WS9oOah+glT18LOvPJgZQAAAABJRU5ErkJggg=="},9700:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 width=%278%27 height=%278%27 viewBox=%270 0 8 8%27%3e%3cpath d=%27M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z%27/%3e%3c/svg%3e"},4104:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 width=%278%27 height=%278%27 viewBox=%270 0 8 8%27%3e%3cpath d=%27M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z%27/%3e%3c/svg%3e"},1024:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27 viewBox=%270 0 12 12%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e"},7263:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%23fff%27/%3e%3c/svg%3e"},1380:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2730%27 height=%2730%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%280, 0, 0, 0.5%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},9242:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2730%27 height=%2730%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.5%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},4231:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%274%27 height=%274%27 viewBox=%270 0 4 4%27%3e%3cpath stroke=%27%23fff%27 d=%27M0 2h4%27/%3e%3c/svg%3e"},4576:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%274%27 height=%275%27 viewBox=%270 0 4 5%27%3e%3cpath fill=%27%23343a40%27 d=%27M2 0L0 2h4zm0 5L0 3h4z%27/%3e%3c/svg%3e"},7211:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%278%27 height=%278%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%2328a745%27 d=%27M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e"},9653:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%278%27 height=%278%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23fff%27 d=%27M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z%27/%3e%3c/svg%3e"},509:(e,t,r)=>{"use strict";var n=r(9985),o=r(3691),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},2655:(e,t,r)=>{"use strict";var n=r(9429),o=r(3691),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a constructor")}},3550:(e,t,r)=>{"use strict";var n=r(598),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},7370:(e,t,r)=>{"use strict";var n=r(4201),o=r(5391),i=r(2560).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},1514:(e,t,r)=>{"use strict";var n=r(730).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},767:(e,t,r)=>{"use strict";var n=r(3622),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},5027:(e,t,r)=>{"use strict";var n=r(8999),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},1655:(e,t,r)=>{"use strict";var n=r(3689);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},7612:(e,t,r)=>{"use strict";var n=r(2960).forEach,o=r(6834)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},1055:(e,t,r)=>{"use strict";var n=r(4071),o=r(2615),i=r(690),a=r(1228),s=r(3292),l=r(9429),c=r(6310),d=r(6522),u=r(5185),f=r(1664),p=Array;e.exports=function(e){var t=i(e),r=l(this),h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m;g&&(m=n(m,h>2?arguments[2]:void 0));var b,v,y,w,x,_,k=f(t),S=0;if(!k||this===p&&s(k))for(b=c(t),v=r?new this(b):p(b);b>S;S++)_=g?m(t[S],S):t[S],d(v,S,_);else for(x=(w=u(t,k)).next,v=r?new this:[];!(y=o(x,w)).done;S++)_=g?a(w,m,[y.value,S],!0):y.value,d(v,S,_);return v.length=S,v}},4328:(e,t,r)=>{"use strict";var n=r(5290),o=r(7578),i=r(6310),a=function(e){return function(t,r,a){var s,l=n(t),c=i(l),d=o(a,c);if(e&&r!=r){for(;c>d;)if((s=l[d++])!=s)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===r)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2960:(e,t,r)=>{"use strict";var n=r(4071),o=r(8844),i=r(4413),a=r(690),s=r(6310),l=r(7120),c=o([].push),d=function(e){var t=1===e,r=2===e,o=3===e,d=4===e,u=6===e,f=7===e,p=5===e||u;return function(h,m,g,b){for(var v,y,w=a(h),x=i(w),_=s(x),k=n(m,g),S=0,E=b||l,T=t?E(h,_):r||f?E(h,0):void 0;_>S;S++)if((p||S in x)&&(y=k(v=x[S],S,w),e))if(t)T[S]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:c(T,v)}else switch(e){case 4:return!1;case 7:c(T,v)}return u?-1:o||d?d:T}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},9042:(e,t,r)=>{"use strict";var n=r(3689),o=r(4201),i=r(3615),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},6834:(e,t,r)=>{"use strict";var n=r(3689);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},5649:(e,t,r)=>{"use strict";var n=r(7697),o=r(2297),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},6004:(e,t,r)=>{"use strict";var n=r(8844);e.exports=n([].slice)},382:(e,t,r)=>{"use strict";var n=r(6004),o=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var a,s,l=1;l<r;){for(s=l,a=e[l];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==l++&&(e[s]=a)}else for(var c=o(r/2),d=i(n(e,0,c),t),u=i(n(e,c),t),f=d.length,p=u.length,h=0,m=0;h<f||m<p;)e[h+m]=h<f&&m<p?t(d[h],u[m])<=0?d[h++]:u[m++]:h<f?d[h++]:u[m++];return e};e.exports=i},5271:(e,t,r)=>{"use strict";var n=r(2297),o=r(9429),i=r(8999),a=r(4201)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},7120:(e,t,r)=>{"use strict";var n=r(5271);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},1228:(e,t,r)=>{"use strict";var n=r(5027),o=r(2125);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},6431:(e,t,r)=>{"use strict";var n=r(4201)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},6648:(e,t,r)=>{"use strict";var n=r(8844),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},926:(e,t,r)=>{"use strict";var n=r(3043),o=r(9985),i=r(6648),a=r(4201)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:l?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},800:(e,t,r)=>{"use strict";var n=r(5391),o=r(2148),i=r(6045),a=r(4071),s=r(767),l=r(981),c=r(8734),d=r(1934),u=r(7807),f=r(4241),p=r(7697),h=r(5375).fastKey,m=r(618),g=m.set,b=m.getterFor;e.exports={getConstructor:function(e,t,r,d){var u=e((function(e,o){s(e,f),g(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),p||(e.size=0),l(o)||c(o,e[d],{that:e,AS_ENTRIES:r})})),f=u.prototype,m=b(t),v=function(e,t,r){var n,o,i=m(e),a=y(e,t);return a?a.value=r:(i.last=a={index:o=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},y=function(e,t){var r,n=m(e),o=h(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===t)return r};return i(f,{clear:function(){for(var e=m(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=n(null),p?e.size=0:this.size=0},delete:function(e){var t=m(this),r=y(this,e);if(r){var n=r.next,o=r.previous;delete t.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),t.first===r&&(t.first=n),t.last===r&&(t.last=o),p?t.size--:this.size--}return!!r},forEach:function(e){for(var t,r=m(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(f,r?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),p&&o(f,"size",{configurable:!0,get:function(){return m(this).size}}),u},setStrong:function(e,t,r){var n=t+" Iterator",o=b(t),i=b(n);d(e,t,(function(e,t){g(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?u("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,u(void 0,!0))}),r?"entries":"values",!r,!0),f(t)}}},319:(e,t,r)=>{"use strict";var n=r(9989),o=r(9037),i=r(8844),a=r(5266),s=r(1880),l=r(5375),c=r(8734),d=r(767),u=r(9985),f=r(981),p=r(8999),h=r(3689),m=r(6431),g=r(5997),b=r(3457);e.exports=function(e,t,r){var v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),w=v?"set":"add",x=o[e],_=x&&x.prototype,k=x,S={},E=function(e){var t=i(_[e]);s(_,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!p(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!u(x)||!(y||_.forEach&&!h((function(){(new x).entries().next()})))))k=r.getConstructor(t,e,v,w),l.enable();else if(a(e,!0)){var T=new k,C=T[w](y?{}:-0,1)!==T,A=h((function(){T.has(1)})),O=m((function(e){new x(e)})),D=!y&&h((function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)}));O||((k=t((function(e,t){d(e,_);var r=b(new x,e,k);return f(t)||c(t,r[w],{that:r,AS_ENTRIES:v}),r}))).prototype=_,_.constructor=k),(A||D)&&(E("delete"),E("has"),v&&E("get")),(D||C)&&E(w),y&&_.clear&&delete _.clear}return S[e]=k,n({global:!0,constructor:!0,forced:k!==x},S),g(k,e),y||r.setStrong(k,e,v),k}},8758:(e,t,r)=>{"use strict";var n=r(6812),o=r(9152),i=r(2474),a=r(2560);e.exports=function(e,t,r){for(var s=o(t),l=a.f,c=i.f,d=0;d<s.length;d++){var u=s[d];n(e,u)||r&&n(r,u)||l(e,u,c(t,u))}}},7413:(e,t,r)=>{"use strict";var n=r(4201)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},1748:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7807:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},5773:(e,t,r)=>{"use strict";var n=r(7697),o=r(2560),i=r(5684);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},5684:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6522:(e,t,r)=>{"use strict";var n=r(8360),o=r(2560),i=r(5684);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},1797:(e,t,r)=>{"use strict";var n=r(5027),o=r(5899),i=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},2148:(e,t,r)=>{"use strict";var n=r(8702),o=r(2560);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},1880:(e,t,r)=>{"use strict";var n=r(9985),o=r(2560),i=r(8702),a=r(5014);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(n(r)&&i(r,c,s),s.global)l?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6045:(e,t,r)=>{"use strict";var n=r(1880);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},5014:(e,t,r)=>{"use strict";var n=r(9037),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},8494:(e,t,r)=>{"use strict";var n=r(3691),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+n(t)+" of "+n(e))}},7697:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6420:(e,t,r)=>{"use strict";var n=r(9037),o=r(8999),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},5565:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},6338:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},3265:(e,t,r)=>{"use strict";var n=r(6420)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},7365:(e,t,r)=>{"use strict";var n=r(71).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},2532:(e,t,r)=>{"use strict";var n=r(8563),o=r(806);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},8563:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},7298:(e,t,r)=>{"use strict";var n=r(71);e.exports=/MSIE|Trident/.test(n)},3221:(e,t,r)=>{"use strict";var n=r(71);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},4764:(e,t,r)=>{"use strict";var n=r(71);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},806:(e,t,r)=>{"use strict";var n=r(9037),o=r(6648);e.exports="process"===o(n.process)},7486:(e,t,r)=>{"use strict";var n=r(71);e.exports=/web0s(?!.*chrome)/i.test(n)},71:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:(e,t,r)=>{"use strict";var n,o,i=r(9037),a=r(71),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,d=c&&c.v8;d&&(o=(n=d.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},7922:(e,t,r)=>{"use strict";var n=r(71).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},2739:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9989:(e,t,r)=>{"use strict";var n=r(9037),o=r(2474).f,i=r(5773),a=r(1880),s=r(5014),l=r(8758),c=r(5266);e.exports=function(e,t){var r,d,u,f,p,h=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[h]||s(h,{}):n[h]&&n[h].prototype)for(d in t){if(f=t[d],u=e.dontCallGetSet?(p=o(r,d))&&p.value:r[d],!c(m?d:h+(g?".":"#")+d,e.forced)&&void 0!==u){if(typeof f==typeof u)continue;l(f,u)}(e.sham||u&&u.sham)&&i(f,"sham",!0),a(r,d,f,e)}}},3689:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},8678:(e,t,r)=>{"use strict";r(4043);var n=r(2615),o=r(1880),i=r(6308),a=r(3689),s=r(4201),l=r(5773),c=s("species"),d=RegExp.prototype;e.exports=function(e,t,r,u){var f=s(e),p=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),h=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return t=!0,null},r[f](""),!t}));if(!p||!h||r){var m=/./[f],g=t(f,""[e],(function(e,t,r,o,a){var s=t.exec;return s===i||s===d.exec?p&&!a?{done:!0,value:n(m,t,r,o)}:{done:!0,value:n(e,r,t,o)}:{done:!1}}));o(String.prototype,e,g[0]),o(d,f,g[1])}u&&l(d[f],"sham",!0)}},1594:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},1735:(e,t,r)=>{"use strict";var n=r(7215),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},4071:(e,t,r)=>{"use strict";var n=r(6576),o=r(509),i=r(7215),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},7215:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6761:(e,t,r)=>{"use strict";var n=r(8844),o=r(509),i=r(8999),a=r(6812),s=r(6004),l=r(7215),c=Function,d=n([].concat),u=n([].join),f={},p=function(e,t,r){if(!a(f,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";f[t]=c("C,a","return new C("+u(n,",")+")")}return f[t](e,r)};e.exports=l?c.bind:function(e){var t=o(this),r=t.prototype,n=s(arguments,1),a=function(){var r=d(n,s(arguments));return this instanceof a?p(t,r.length,r):t.apply(e,r)};return i(r)&&(a.prototype=r),a}},2615:(e,t,r)=>{"use strict";var n=r(7215),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},1236:(e,t,r)=>{"use strict";var n=r(7697),o=r(6812),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},2743:(e,t,r)=>{"use strict";var n=r(8844),o=r(509);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},6576:(e,t,r)=>{"use strict";var n=r(6648),o=r(8844);e.exports=function(e){if("Function"===n(e))return o(e)}},8844:(e,t,r)=>{"use strict";var n=r(7215),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},6058:(e,t,r)=>{"use strict";var n=r(9037),o=r(9985),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},1664:(e,t,r)=>{"use strict";var n=r(926),o=r(4849),i=r(981),a=r(9478),s=r(4201)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[n(e)]}},5185:(e,t,r)=>{"use strict";var n=r(2615),o=r(509),i=r(5027),a=r(3691),s=r(1664),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw new l(a(e)+" is not iterable")}},2643:(e,t,r)=>{"use strict";var n=r(8844),o=r(2297),i=r(9985),a=r(6648),s=r(4327),l=n([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,r=[],n=0;n<t;n++){var c=e[n];"string"==typeof c?l(r,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(r,s(c))}var d=r.length,u=!0;return function(e,t){if(u)return u=!1,t;if(o(this))return t;for(var n=0;n<d;n++)if(r[n]===e)return t}}}},4849:(e,t,r)=>{"use strict";var n=r(509),o=r(981);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},7017:(e,t,r)=>{"use strict";var n=r(8844),o=r(690),i=Math.floor,a=n("".charAt),s=n("".replace),l=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,u,f){var p=r+e.length,h=n.length,m=d;return void 0!==u&&(u=o(u),m=c),s(f,m,(function(o,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,r);case"'":return l(t,p);case"<":c=u[l(s,1,-1)];break;default:var d=+s;if(0===d)return o;if(d>h){var f=i(d/10);return 0===f?o:f<=h?void 0===n[f-1]?a(s,1):n[f-1]+a(s,1):o}c=n[d-1]}return void 0===c?"":c}))}},9037: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")()},6812:(e,t,r)=>{"use strict";var n=r(8844),o=r(690),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},7248:e=>{"use strict";e.exports={}},920:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},2688:(e,t,r)=>{"use strict";var n=r(6058);e.exports=n("document","documentElement")},8506:(e,t,r)=>{"use strict";var n=r(7697),o=r(3689),i=r(6420);e.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},4413:(e,t,r)=>{"use strict";var n=r(8844),o=r(3689),i=r(6648),a=Object,s=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},3457:(e,t,r)=>{"use strict";var n=r(9985),o=r(8999),i=r(9385);e.exports=function(e,t,r){var a,s;return i&&n(a=t.constructor)&&a!==r&&o(s=a.prototype)&&s!==r.prototype&&i(e,s),e}},6738:(e,t,r)=>{"use strict";var n=r(8844),o=r(9985),i=r(4091),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},5375:(e,t,r)=>{"use strict";var n=r(9989),o=r(8844),i=r(7248),a=r(8999),s=r(6812),l=r(2560).f,c=r(2741),d=r(6062),u=r(7049),f=r(4630),p=r(1594),h=!1,m=f("meta"),g=0,b=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},h=!0;var e=c.f,t=o([].splice),r={};r[m]=1,e(r).length&&(c.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===m){t(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!u(e))return"F";if(!t)return"E";b(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!u(e))return!0;if(!t)return!1;b(e)}return e[m].weakData},onFreeze:function(e){return p&&h&&u(e)&&!s(e,m)&&b(e),e}};i[m]=!0},618:(e,t,r)=>{"use strict";var n,o,i,a=r(9834),s=r(9037),l=r(8999),c=r(5773),d=r(6812),u=r(4091),f=r(2713),p=r(7248),h=s.TypeError,m=s.WeakMap;if(a||u.state){var g=u.state||(u.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new h("Object already initialized");return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var b=f("state");p[b]=!0,n=function(e,t){if(d(e,b))throw new h("Object already initialized");return t.facade=e,c(e,b,t),t},o=function(e){return d(e,b)?e[b]:{}},i=function(e){return d(e,b)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=o(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}},3292:(e,t,r)=>{"use strict";var n=r(4201),o=r(9478),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},2297:(e,t,r)=>{"use strict";var n=r(6648);e.exports=Array.isArray||function(e){return"Array"===n(e)}},9985: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}},9429:(e,t,r)=>{"use strict";var n=r(8844),o=r(3689),i=r(9985),a=r(926),s=r(6058),l=r(6738),c=function(){},d=s("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=n(u.exec),p=!u.test(c),h=function(e){if(!i(e))return!1;try{return d(c,[],e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(u,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!d||o((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?m:h},6251:(e,t,r)=>{"use strict";var n=r(6812);e.exports=function(e){return void 0!==e&&(n(e,"value")||n(e,"writable"))}},5266:(e,t,r)=>{"use strict";var n=r(3689),o=r(9985),i=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===d||r!==c&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",d=a.POLYFILL="P";e.exports=a},981:e=>{"use strict";e.exports=function(e){return null==e}},8999:(e,t,r)=>{"use strict";var n=r(9985);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},598:(e,t,r)=>{"use strict";var n=r(8999);e.exports=function(e){return n(e)||null===e}},3931:e=>{"use strict";e.exports=!1},1245:(e,t,r)=>{"use strict";var n=r(8999),o=r(6648),i=r(4201)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},734:(e,t,r)=>{"use strict";var n=r(6058),o=r(9985),i=r(3622),a=r(9525),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},8734:(e,t,r)=>{"use strict";var n=r(4071),o=r(2615),i=r(5027),a=r(3691),s=r(3292),l=r(6310),c=r(3622),d=r(5185),u=r(1664),f=r(2125),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,r){var g,b,v,y,w,x,_,k=r&&r.that,S=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),T=!(!r||!r.IS_ITERATOR),C=!(!r||!r.INTERRUPTED),A=n(t,k),O=function(e){return g&&f(g,"normal",e),new h(!0,e)},D=function(e){return S?(i(e),C?A(e[0],e[1],O):A(e[0],e[1])):C?A(e,O):A(e)};if(E)g=e.iterator;else if(T)g=e;else{if(!(b=u(e)))throw new p(a(e)+" is not iterable");if(s(b)){for(v=0,y=l(e);y>v;v++)if((w=D(e[v]))&&c(m,w))return w;return new h(!1)}g=d(e,b)}for(x=E?e.next:g.next;!(_=o(x,g)).done;){try{w=D(_.value)}catch(e){f(g,"throw",e)}if("object"==typeof w&&w&&c(m,w))return w}return new h(!1)}},2125:(e,t,r)=>{"use strict";var n=r(2615),o=r(5027),i=r(4849);e.exports=function(e,t,r){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return o(a),r}},974:(e,t,r)=>{"use strict";var n=r(2013).IteratorPrototype,o=r(5391),i=r(5684),a=r(5997),s=r(9478),l=function(){return this};e.exports=function(e,t,r,c){var d=t+" Iterator";return e.prototype=o(n,{next:i(+!c,r)}),a(e,d,!1,!0),s[d]=l,e}},1934:(e,t,r)=>{"use strict";var n=r(9989),o=r(2615),i=r(3931),a=r(1236),s=r(9985),l=r(974),c=r(1868),d=r(9385),u=r(5997),f=r(5773),p=r(1880),h=r(4201),m=r(9478),g=r(2013),b=a.PROPER,v=a.CONFIGURABLE,y=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=h("iterator"),_=function(){return this};e.exports=function(e,t,r,a,h,g,k){l(r,t,a);var S,E,T,C=function(e){if(e===h&&P)return P;if(!w&&e&&e in D)return D[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},A=t+" Iterator",O=!1,D=e.prototype,j=D[x]||D["@@iterator"]||h&&D[h],P=!w&&j||C(h),R="Array"===t&&D.entries||j;if(R&&(S=c(R.call(new e)))!==Object.prototype&&S.next&&(i||c(S)===y||(d?d(S,y):s(S[x])||p(S,x,_)),u(S,A,!0,!0),i&&(m[A]=_)),b&&"values"===h&&j&&"values"!==j.name&&(!i&&v?f(D,"name","values"):(O=!0,P=function(){return o(j,this)})),h)if(E={values:C("values"),keys:g?P:C("keys"),entries:C("entries")},k)for(T in E)(w||O||!(T in D))&&p(D,T,E[T]);else n({target:t,proto:!0,forced:w||O},E);return i&&!k||D[x]===P||p(D,x,P,{name:h}),m[t]=P,E}},2013:(e,t,r)=>{"use strict";var n,o,i,a=r(3689),s=r(9985),l=r(8999),c=r(5391),d=r(1868),u=r(1880),f=r(4201),p=r(3931),h=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=d(d(i)))!==Object.prototype&&(n=o):m=!0),!l(n)||a((function(){var e={};return n[h].call(e)!==e}))?n={}:p&&(n=c(n)),s(n[h])||u(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},9478:e=>{"use strict";e.exports={}},6310:(e,t,r)=>{"use strict";var n=r(3126);e.exports=function(e){return n(e.length)}},8702:(e,t,r)=>{"use strict";var n=r(8844),o=r(3689),i=r(9985),a=r(6812),s=r(7697),l=r(1236).CONFIGURABLE,c=r(6738),d=r(618),u=d.enforce,f=d.get,p=String,h=Object.defineProperty,m=n("".slice),g=n("".replace),b=n([].join),v=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=u(e);return a(n,"source")||(n.source=b(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||c(this)}),"toString")},8828: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)}},231:(e,t,r)=>{"use strict";var n,o,i,a,s,l=r(9037),c=r(517),d=r(4071),u=r(9886).set,f=r(4410),p=r(4764),h=r(3221),m=r(7486),g=r(806),b=l.MutationObserver||l.WebKitMutationObserver,v=l.document,y=l.process,w=l.Promise,x=c("queueMicrotask");if(!x){var _=new f,k=function(){var e,t;for(g&&(e=y.domain)&&e.exit();t=_.get();)try{t()}catch(e){throw _.head&&n(),e}e&&e.enter()};p||g||m||!b||!v?!h&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=d(a.then,a),n=function(){s(k)}):g?n=function(){y.nextTick(k)}:(u=d(u,l),n=function(){u(k)}):(o=!0,i=v.createTextNode(""),new b(k).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),x=function(e){_.head||n(),_.add(e)}}e.exports=x},8742:(e,t,r)=>{"use strict";var n=r(509),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},2124:(e,t,r)=>{"use strict";var n=r(1245),o=TypeError;e.exports=function(e){if(n(e))throw new o("The method doesn't accept regular expressions");return e}},7897:(e,t,r)=>{"use strict";var n=r(9037),o=r(3689),i=r(8844),a=r(4327),s=r(1435).trim,l=r(6350),c=n.parseInt,d=n.Symbol,u=d&&d.iterator,f=/^[+-]?0x/i,p=i(f.exec),h=8!==c(l+"08")||22!==c(l+"0x16")||u&&!o((function(){c(Object(u))}));e.exports=h?function(e,t){var r=s(a(e));return c(r,t>>>0||(p(f,r)?16:10))}:c},5394:(e,t,r)=>{"use strict";var n=r(7697),o=r(8844),i=r(2615),a=r(3689),s=r(300),l=r(7518),c=r(9556),d=r(690),u=r(4413),f=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!f||a((function(){if(n&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection");return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==f({},e)[r]||"abcdefghijklmnopqrst"!==s(f({},t)).join("")}))?function(e,t){for(var r=d(e),o=arguments.length,a=1,f=l.f,p=c.f;o>a;)for(var m,g=u(arguments[a++]),b=f?h(s(g),f(g)):s(g),v=b.length,y=0;v>y;)m=b[y++],n&&!i(p,g,m)||(r[m]=g[m]);return r}:f},5391:(e,t,r)=>{"use strict";var n,o=r(5027),i=r(8920),a=r(2739),s=r(7248),l=r(2688),c=r(6420),d=r(2713),u=d("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&n?h(n):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(n);for(var r=a.length;r--;)delete m.prototype[a[r]];return m()};s[u]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=o(e),r=new f,f.prototype=null,r[u]=e):r=m(),void 0===t?r:i.f(r,t)}},8920:(e,t,r)=>{"use strict";var n=r(7697),o=r(5648),i=r(2560),a=r(5027),s=r(5290),l=r(300);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),o=l(t),c=o.length,d=0;c>d;)i.f(e,r=o[d++],n[r]);return e}},2560:(e,t,r)=>{"use strict";var n=r(7697),o=r(8506),i=r(5648),a=r(5027),s=r(8360),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor;t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=d(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=s(t),a(r),o)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}},2474:(e,t,r)=>{"use strict";var n=r(7697),o=r(2615),i=r(9556),a=r(5684),s=r(5290),l=r(8360),c=r(6812),d=r(8506),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=s(e),t=l(t),d)try{return u(e,t)}catch(e){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},6062:(e,t,r)=>{"use strict";var n=r(6648),o=r(5290),i=r(2741).f,a=r(6004),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},2741:(e,t,r)=>{"use strict";var n=r(4948),o=r(2739).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},7518:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},1868:(e,t,r)=>{"use strict";var n=r(6812),o=r(9985),i=r(690),a=r(2713),s=r(1748),l=a("IE_PROTO"),c=Object,d=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(n(t,l))return t[l];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?d:null}},7049:(e,t,r)=>{"use strict";var n=r(3689),o=r(8999),i=r(6648),a=r(1655),s=Object.isExtensible,l=n((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},3622:(e,t,r)=>{"use strict";var n=r(8844);e.exports=n({}.isPrototypeOf)},4948:(e,t,r)=>{"use strict";var n=r(8844),o=r(6812),i=r(5290),a=r(4328).indexOf,s=r(7248),l=n([].push);e.exports=function(e,t){var r,n=i(e),c=0,d=[];for(r in n)!o(s,r)&&o(n,r)&&l(d,r);for(;t.length>c;)o(n,r=t[c++])&&(~a(d,r)||l(d,r));return d}},300:(e,t,r)=>{"use strict";var n=r(4948),o=r(2739);e.exports=Object.keys||function(e){return n(e,o)}},9556:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},9385:(e,t,r)=>{"use strict";var n=r(2743),o=r(5027),i=r(3550);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},9419:(e,t,r)=>{"use strict";var n=r(7697),o=r(3689),i=r(8844),a=r(1868),s=r(300),l=r(5290),c=i(r(9556).f),d=i([].push),u=n&&o((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),f=function(e){return function(t){for(var r,o=l(t),i=s(o),f=u&&null===a(o),p=i.length,h=0,m=[];p>h;)r=i[h++],n&&!(f?r in o:c(o,r))||d(m,e?[r,o[r]]:o[r]);return m}};e.exports={entries:f(!0),values:f(!1)}},5073:(e,t,r)=>{"use strict";var n=r(3043),o=r(926);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},5899:(e,t,r)=>{"use strict";var n=r(2615),o=r(9985),i=r(8999),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},9152:(e,t,r)=>{"use strict";var n=r(6058),o=r(8844),i=r(2741),a=r(7518),s=r(5027),l=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?l(t,r(e)):t}},496:(e,t,r)=>{"use strict";var n=r(9037);e.exports=n},9302:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},7073:(e,t,r)=>{"use strict";var n=r(9037),o=r(7919),i=r(9985),a=r(5266),s=r(6738),l=r(4201),c=r(2532),d=r(8563),u=r(3931),f=r(3615),p=o&&o.prototype,h=l("species"),m=!1,g=i(n.PromiseRejectionEvent),b=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===f)return!0;if(u&&(!p.catch||!p.finally))return!0;if(!f||f<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(m=r.then((function(){}))instanceof n))return!0}return!t&&(c||d)&&!g}));e.exports={CONSTRUCTOR:b,REJECTION_EVENT:g,SUBCLASSING:m}},7919:(e,t,r)=>{"use strict";var n=r(9037);e.exports=n.Promise},2945:(e,t,r)=>{"use strict";var n=r(5027),o=r(8999),i=r(8742);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},562:(e,t,r)=>{"use strict";var n=r(7919),o=r(6431),i=r(7073).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},8055:(e,t,r)=>{"use strict";var n=r(2560).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},4410:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},6100:(e,t,r)=>{"use strict";var n=r(2615),o=r(5027),i=r(9985),a=r(6648),s=r(6308),l=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var c=n(r,e,t);return null!==c&&o(c),c}if("RegExp"===a(e))return n(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},6308:(e,t,r)=>{"use strict";var n,o,i=r(2615),a=r(8844),s=r(4327),l=r(9633),c=r(7901),d=r(3430),u=r(5391),f=r(618).get,p=r(2100),h=r(6422),m=d("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,b=g,v=a("".charAt),y=a("".indexOf),w=a("".replace),x=a("".slice),_=(o=/b*/g,i(g,n=/a/,"a"),i(g,o,"a"),0!==n.lastIndex||0!==o.lastIndex),k=c.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(_||S||k||p||h)&&(b=function(e){var t,r,n,o,a,c,d,p=this,h=f(p),E=s(e),T=h.raw;if(T)return T.lastIndex=p.lastIndex,t=i(b,T,E),p.lastIndex=T.lastIndex,t;var C=h.groups,A=k&&p.sticky,O=i(l,p),D=p.source,j=0,P=E;if(A&&(O=w(O,"y",""),-1===y(O,"g")&&(O+="g"),P=x(E,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==v(E,p.lastIndex-1))&&(D="(?: "+D+")",P=" "+P,j++),r=new RegExp("^(?:"+D+")",O)),S&&(r=new RegExp("^"+D+"$(?!\\s)",O)),_&&(n=p.lastIndex),o=i(g,A?r:p,P),A?o?(o.input=x(o.input,j),o[0]=x(o[0],j),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:_&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),S&&o&&o.length>1&&i(m,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&C)for(o.groups=c=u(null),a=0;a<C.length;a++)c[(d=C[a])[0]]=o[d[1]];return o}),e.exports=b},9633:(e,t,r)=>{"use strict";var n=r(5027);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},3477:(e,t,r)=>{"use strict";var n=r(2615),o=r(6812),i=r(3622),a=r(9633),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:n(a,e)}},7901:(e,t,r)=>{"use strict";var n=r(3689),o=r(9037).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),s=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},2100:(e,t,r)=>{"use strict";var n=r(3689),o=r(9037).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},6422:(e,t,r)=>{"use strict";var n=r(3689),o=r(9037).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},4684:(e,t,r)=>{"use strict";var n=r(981),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},517:(e,t,r)=>{"use strict";var n=r(9037),o=r(7697),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var t=i(n,e);return t&&t.value}},953:e=>{"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},4241:(e,t,r)=>{"use strict";var n=r(6058),o=r(2148),i=r(4201),a=r(7697),s=i("species");e.exports=function(e){var t=n(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},5997:(e,t,r)=>{"use strict";var n=r(2560).f,o=r(6812),i=r(4201)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},2713:(e,t,r)=>{"use strict";var n=r(3430),o=r(4630),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},4091:(e,t,r)=>{"use strict";var n=r(9037),o=r(5014),i=n["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},3430:(e,t,r)=>{"use strict";var n=r(3931),o=r(4091);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6373:(e,t,r)=>{"use strict";var n=r(5027),o=r(2655),i=r(981),a=r(4201)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||i(r=n(s)[a])?t:o(r)}},730:(e,t,r)=>{"use strict";var n=r(8844),o=r(8700),i=r(4327),a=r(4684),s=n("".charAt),l=n("".charCodeAt),c=n("".slice),d=function(e){return function(t,r){var n,d,u=i(a(t)),f=o(r),p=u.length;return f<0||f>=p?e?"":void 0:(n=l(u,f))<55296||n>56319||f+1===p||(d=l(u,f+1))<56320||d>57343?e?s(u,f):n:e?c(u,f,f+2):d-56320+(n-55296<<10)+65536}};e.exports={codeAt:d(!1),charAt:d(!0)}},5984:(e,t,r)=>{"use strict";var n=r(1236).PROPER,o=r(3689),i=r(6350);e.exports=function(e){return o((function(){return!!i[e]()||"
"!=="
"[e]()||n&&i[e].name!==e}))}},1435:(e,t,r)=>{"use strict";var n=r(8844),o=r(4684),i=r(4327),a=r(6350),s=n("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),d=function(e){return function(t){var r=i(o(t));return 1&e&&(r=s(r,l,"")),2&e&&(r=s(r,c,"$1")),r}};e.exports={start:d(1),end:d(2),trim:d(3)}},146:(e,t,r)=>{"use strict";var n=r(3615),o=r(3689),i=r(9037).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3032:(e,t,r)=>{"use strict";var n=r(2615),o=r(6058),i=r(4201),a=r(1880);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return n(r,this)}),{arity:1})}},6549:(e,t,r)=>{"use strict";var n=r(146);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},9886:(e,t,r)=>{"use strict";var n,o,i,a,s=r(9037),l=r(1735),c=r(4071),d=r(9985),u=r(6812),f=r(3689),p=r(2688),h=r(6004),m=r(6420),g=r(1500),b=r(4764),v=r(806),y=s.setImmediate,w=s.clearImmediate,x=s.process,_=s.Dispatch,k=s.Function,S=s.MessageChannel,E=s.String,T=0,C={};f((function(){n=s.location}));var A=function(e){if(u(C,e)){var t=C[e];delete C[e],t()}},O=function(e){return function(){A(e)}},D=function(e){A(e.data)},j=function(e){s.postMessage(E(e),n.protocol+"//"+n.host)};y&&w||(y=function(e){g(arguments.length,1);var t=d(e)?e:k(e),r=h(arguments,1);return C[++T]=function(){l(t,void 0,r)},o(T),T},w=function(e){delete C[e]},v?o=function(e){x.nextTick(O(e))}:_&&_.now?o=function(e){_.now(O(e))}:S&&!b?(a=(i=new S).port2,i.port1.onmessage=D,o=c(a.postMessage,a)):s.addEventListener&&d(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(j)?(o=j,s.addEventListener("message",D,!1)):o="onreadystatechange"in m("script")?function(e){p.appendChild(m("script")).onreadystatechange=function(){p.removeChild(this),A(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:y,clear:w}},3648:(e,t,r)=>{"use strict";var n=r(8844);e.exports=n(1..valueOf)},7578:(e,t,r)=>{"use strict";var n=r(8700),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},5290:(e,t,r)=>{"use strict";var n=r(4413),o=r(4684);e.exports=function(e){return n(o(e))}},8700:(e,t,r)=>{"use strict";var n=r(8828);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},3126:(e,t,r)=>{"use strict";var n=r(8700),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},690:(e,t,r)=>{"use strict";var n=r(4684),o=Object;e.exports=function(e){return o(n(e))}},8732:(e,t,r)=>{"use strict";var n=r(2615),o=r(8999),i=r(734),a=r(4849),s=r(5899),l=r(4201),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,l=a(e,d);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!o(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},8360:(e,t,r)=>{"use strict";var n=r(8732),o=r(734);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},3043:(e,t,r)=>{"use strict";var n={};n[r(4201)("toStringTag")]="z",e.exports="[object z]"===String(n)},4327:(e,t,r)=>{"use strict";var n=r(926),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},3691:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},4630:(e,t,r)=>{"use strict";var n=r(8844),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},9525:(e,t,r)=>{"use strict";var n=r(146);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5648:(e,t,r)=>{"use strict";var n=r(7697),o=r(3689);e.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1500:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},9834:(e,t,r)=>{"use strict";var n=r(9037),o=r(9985),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},5405:(e,t,r)=>{"use strict";var n=r(496),o=r(6812),i=r(6145),a=r(2560).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},6145:(e,t,r)=>{"use strict";var n=r(4201);t.f=n},4201:(e,t,r)=>{"use strict";var n=r(9037),o=r(3430),i=r(6812),a=r(4630),s=r(146),l=r(9525),c=n.Symbol,d=o("wks"),u=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(d,e)||(d[e]=s&&i(c,e)?c[e]:u("Symbol."+e)),d[e]}},6350:e=>{"use strict";e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},4338:(e,t,r)=>{"use strict";var n=r(9989),o=r(3689),i=r(2297),a=r(8999),s=r(690),l=r(6310),c=r(5565),d=r(6522),u=r(7120),f=r(9042),p=r(4201),h=r(3615),m=p("isConcatSpreadable"),g=h>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),b=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!g||!f("concat")},{concat:function(e){var t,r,n,o,i,a=s(this),f=u(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(b(i=-1===t?a:arguments[t]))for(o=l(i),c(p+o),r=0;r<o;r++,p++)r in i&&d(f,p,i[r]);else c(p+1),d(f,p++,i);return f.length=p,f}})},8077:(e,t,r)=>{"use strict";var n=r(9989),o=r(2960).filter;n({target:"Array",proto:!0,forced:!r(9042)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},5728:(e,t,r)=>{"use strict";var n=r(9989),o=r(2960).find,i=r(7370),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},4418:(e,t,r)=>{"use strict";var n=r(9989),o=r(1055);n({target:"Array",stat:!0,forced:!r(6431)((function(e){Array.from(e)}))},{from:o})},6801:(e,t,r)=>{"use strict";var n=r(9989),o=r(4328).includes,i=r(3689),a=r(7370);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},752:(e,t,r)=>{"use strict";var n=r(5290),o=r(7370),i=r(9478),a=r(618),s=r(2560).f,l=r(1934),c=r(7807),d=r(3931),u=r(7697),f=a.set,p=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!d&&u&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(e){}},6203:(e,t,r)=>{"use strict";var n=r(9989),o=r(8844),i=r(4413),a=r(5290),s=r(6834),l=o([].join);n({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},886:(e,t,r)=>{"use strict";var n=r(9989),o=r(2960).map;n({target:"Array",proto:!0,forced:!r(9042)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},9730:(e,t,r)=>{"use strict";var n=r(9989),o=r(2297),i=r(9429),a=r(8999),s=r(7578),l=r(6310),c=r(5290),d=r(6522),u=r(4201),f=r(9042),p=r(6004),h=f("slice"),m=u("species"),g=Array,b=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,u,f=c(this),h=l(f),v=s(e,h),y=s(void 0===t?h:t,h);if(o(f)&&(r=f.constructor,(i(r)&&(r===g||o(r.prototype))||a(r)&&null===(r=r[m]))&&(r=void 0),r===g||void 0===r))return p(f,v,y);for(n=new(void 0===r?g:r)(b(y-v,0)),u=0;v<y;v++,u++)v in f&&d(n,u,f[v]);return n.length=u,n}})},5137:(e,t,r)=>{"use strict";var n=r(9989),o=r(8844),i=r(509),a=r(690),s=r(6310),l=r(8494),c=r(4327),d=r(3689),u=r(382),f=r(6834),p=r(7365),h=r(7298),m=r(3615),g=r(7922),b=[],v=o(b.sort),y=o(b.push),w=d((function(){b.sort(void 0)})),x=d((function(){b.sort(null)})),_=f("sort"),k=!d((function(){if(m)return m<70;if(!(p&&p>3)){if(h)return!0;if(g)return g<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)b.push({k:t+n,v:r})}for(b.sort((function(e,t){return t.v-e.v})),n=0;n<b.length;n++)t=b[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));n({target:"Array",proto:!0,forced:w||!x||!_||!k},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(k)return void 0===e?v(t):v(t,e);var r,n,o=[],d=s(t);for(n=0;n<d;n++)n in t&&y(o,t[n]);for(u(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:c(t)>c(r)?1:-1}}(e)),r=s(o),n=0;n<r;)t[n]=o[n++];for(;n<d;)l(t,n++);return t}})},2506:(e,t,r)=>{"use strict";var n=r(9989),o=r(690),i=r(7578),a=r(8700),s=r(6310),l=r(5649),c=r(5565),d=r(7120),u=r(6522),f=r(8494),p=r(9042)("splice"),h=Math.max,m=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var r,n,p,g,b,v,y=o(this),w=s(y),x=i(e,w),_=arguments.length;for(0===_?r=n=0:1===_?(r=0,n=w-x):(r=_-2,n=m(h(a(t),0),w-x)),c(w+r-n),p=d(y,n),g=0;g<n;g++)(b=x+g)in y&&u(p,g,y[b]);if(p.length=n,r<n){for(g=x;g<w-n;g++)v=g+r,(b=g+n)in y?y[v]=y[b]:f(y,v);for(g=w;g>w-n+r;g--)f(y,g-1)}else if(r>n)for(g=w-n;g>x;g--)v=g+r-1,(b=g+n-1)in y?y[v]=y[b]:f(y,v);for(g=0;g<r;g++)y[g+x]=arguments[g+2];return l(y,w-n+r),p}})},9903:(e,t,r)=>{"use strict";var n=r(6812),o=r(1880),i=r(1797),a=r(4201)("toPrimitive"),s=Date.prototype;n(s,a)||o(s,a,i)},4284:(e,t,r)=>{"use strict";var n=r(7697),o=r(1236).EXISTS,i=r(8844),a=r(2148),s=Function.prototype,l=i(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,d=i(c.exec);n&&!o&&a(s,"name",{configurable:!0,get:function(){try{return d(c,l(this))[1]}catch(e){return""}}})},5398:(e,t,r)=>{"use strict";var n=r(9989),o=r(9037);n({global:!0,forced:o.globalThis!==o},{globalThis:o})},8324:(e,t,r)=>{"use strict";var n=r(9989),o=r(6058),i=r(1735),a=r(2615),s=r(8844),l=r(3689),c=r(9985),d=r(734),u=r(6004),f=r(2643),p=r(146),h=String,m=o("JSON","stringify"),g=s(/./.exec),b=s("".charAt),v=s("".charCodeAt),y=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,S=!p||l((function(){var e=o("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),E=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),T=function(e,t){var r=u(arguments),n=f(t);if(c(n)||void 0!==e&&!d(e))return r[1]=function(e,t){if(c(n)&&(t=a(n,this,h(e),t)),!d(t))return t},i(m,null,r)},C=function(e,t,r){var n=b(r,t-1),o=b(r,t+1);return g(_,e)&&!g(k,o)||g(k,e)&&!g(_,n)?"\\u"+w(v(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:S||E},{stringify:function(e,t,r){var n=u(arguments),o=i(S?T:m,null,n);return E&&"string"==typeof o?y(o,x,C):o}})},7629:(e,t,r)=>{"use strict";var n=r(9037);r(5997)(n.JSON,"JSON",!0)},9322:(e,t,r)=>{"use strict";r(319)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(800))},6646:(e,t,r)=>{"use strict";r(9322)},7509:(e,t,r)=>{"use strict";r(5997)(Math,"Math",!0)},9288:(e,t,r)=>{"use strict";var n=r(9989),o=r(3931),i=r(7697),a=r(9037),s=r(496),l=r(8844),c=r(5266),d=r(6812),u=r(3457),f=r(3622),p=r(734),h=r(8732),m=r(3689),g=r(2741).f,b=r(2474).f,v=r(2560).f,y=r(3648),w=r(1435).trim,x=a.Number,_=s.Number,k=x.prototype,S=a.TypeError,E=l("".slice),T=l("".charCodeAt),C=function(e){var t=h(e,"number");return"bigint"==typeof t?t:A(t)},A=function(e){var t,r,n,o,i,a,s,l,c=h(e,"number");if(p(c))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(t=T(c,0))||45===t){if(88===(r=T(c,2))||120===r)return NaN}else if(48===t){switch(T(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=E(c,2)).length,s=0;s<a;s++)if((l=T(i,s))<48||l>o)return NaN;return parseInt(i,n)}return+c},O=c("Number",!x(" 0o1")||!x("0b1")||x("+0x1")),D=function(e){return f(k,e)&&m((function(){y(e)}))},j=function(e){var t=arguments.length<1?0:x(C(e));return D(this)?u(Object(t),this,j):t};j.prototype=k,O&&!o&&(k.constructor=j),n({global:!0,constructor:!0,wrap:!0,forced:O},{Number:j});var P=function(e,t){for(var r,n=i?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)d(t,r=n[o])&&!d(e,r)&&v(e,r,b(t,r))};o&&_&&P(s.Number,_),(O||o)&&P(s.Number,x)},1552:(e,t,r)=>{"use strict";var n=r(9989),o=r(7897);n({target:"Number",stat:!0,forced:Number.parseInt!==o},{parseInt:o})},429:(e,t,r)=>{"use strict";var n=r(9989),o=r(5394);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},1919:(e,t,r)=>{"use strict";var n=r(9989),o=r(3689),i=r(5290),a=r(2474).f,s=r(7697);n({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},9434:(e,t,r)=>{"use strict";var n=r(9989),o=r(146),i=r(3689),a=r(7518),s=r(690);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},8052:(e,t,r)=>{"use strict";var n=r(9989),o=r(3689),i=r(690),a=r(1868),s=r(1748);n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},9358:(e,t,r)=>{"use strict";var n=r(9989),o=r(690),i=r(300);n({target:"Object",stat:!0,forced:r(3689)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},228:(e,t,r)=>{"use strict";var n=r(3043),o=r(1880),i=r(5073);n||o(Object.prototype,"toString",i,{unsafe:!0})},6466:(e,t,r)=>{"use strict";var n=r(9989),o=r(9419).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},1692:(e,t,r)=>{"use strict";var n=r(9989),o=r(2615),i=r(509),a=r(8742),s=r(9302),l=r(8734);n({target:"Promise",stat:!0,forced:r(562)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,c=r.reject,d=s((function(){var r=i(t.resolve),a=[],s=0,d=1;l(e,(function(e){var i=s++,l=!1;d++,o(r,t,e).then((function(e){l||(l=!0,a[i]=e,--d||n(a))}),c)})),--d||n(a)}));return d.error&&c(d.value),r.promise}})},5089:(e,t,r)=>{"use strict";var n=r(9989),o=r(3931),i=r(7073).CONSTRUCTOR,a=r(7919),s=r(6058),l=r(9985),c=r(1880),d=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&l(a)){var u=s("Promise").prototype.catch;d.catch!==u&&c(d,"catch",u,{unsafe:!0})}},6697:(e,t,r)=>{"use strict";var n,o,i,a=r(9989),s=r(3931),l=r(806),c=r(9037),d=r(2615),u=r(1880),f=r(9385),p=r(5997),h=r(4241),m=r(509),g=r(9985),b=r(8999),v=r(767),y=r(6373),w=r(9886).set,x=r(231),_=r(920),k=r(9302),S=r(4410),E=r(618),T=r(7919),C=r(7073),A=r(8742),O=C.CONSTRUCTOR,D=C.REJECTION_EVENT,j=C.SUBCLASSING,P=E.getterFor("Promise"),R=E.set,I=T&&T.prototype,N=T,L=I,M=c.TypeError,F=c.document,B=c.process,U=A.f,V=U,$=!!(F&&F.createEvent&&c.dispatchEvent),H=function(e){var t;return!(!b(e)||!g(t=e.then))&&t},W=function(e,t){var r,n,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&X(t),t.rejection=1),!0===s?r=i:(u&&u.enter(),r=s(i),u&&(u.exit(),o=!0)),r===e.promise?c(new M("Promise-chain cycle")):(n=H(r))?d(n,r,l,c):l(r)):c(i)}catch(e){u&&!o&&u.exit(),c(e)}},z=function(e,t){e.notified||(e.notified=!0,x((function(){for(var r,n=e.reactions;r=n.get();)W(r,e);e.notified=!1,t&&!e.rejection&&G(e)})))},Y=function(e,t,r){var n,o;$?((n=F.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!D&&(o=c["on"+e])?o(n):"unhandledrejection"===e&&_("Unhandled promise rejection",r)},G=function(e){d(w,c,(function(){var t,r=e.facade,n=e.value;if(q(e)&&(t=k((function(){l?B.emit("unhandledRejection",n,r):Y("unhandledrejection",r,n)})),e.rejection=l||q(e)?2:1,t.error))throw t.value}))},q=function(e){return 1!==e.rejection&&!e.parent},X=function(e){d(w,c,(function(){var t=e.facade;l?B.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)}))},Q=function(e,t,r){return function(n){e(t,n,r)}},Z=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,z(e,!0))},K=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new M("Promise can't be resolved itself");var n=H(t);n?x((function(){var r={done:!1};try{d(n,t,Q(K,r,e),Q(Z,r,e))}catch(t){Z(r,t,e)}})):(e.value=t,e.state=1,z(e,!1))}catch(t){Z({done:!1},t,e)}}};if(O&&(L=(N=function(e){v(this,L),m(e),d(n,this);var t=P(this);try{e(Q(K,t),Q(Z,t))}catch(e){Z(t,e)}}).prototype,(n=function(e){R(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=u(L,"then",(function(e,t){var r=P(this),n=U(y(this,N));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=l?B.domain:void 0,0===r.state?r.reactions.add(n):x((function(){W(n,r)})),n.promise})),o=function(){var e=new n,t=P(e);this.promise=e,this.resolve=Q(K,t),this.reject=Q(Z,t)},A.f=U=function(e){return e===N||void 0===e?new o(e):V(e)},!s&&g(T)&&I!==Object.prototype)){i=I.then,j||u(I,"then",(function(e,t){var r=this;return new N((function(e,t){d(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete I.constructor}catch(e){}f&&f(I,L)}a({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:N}),p(N,"Promise",!1,!0),h("Promise")},3964:(e,t,r)=>{"use strict";r(6697),r(1692),r(5089),r(8829),r(2092),r(7905)},8829:(e,t,r)=>{"use strict";var n=r(9989),o=r(2615),i=r(509),a=r(8742),s=r(9302),l=r(8734);n({target:"Promise",stat:!0,forced:r(562)},{race:function(e){var t=this,r=a.f(t),n=r.reject,c=s((function(){var a=i(t.resolve);l(e,(function(e){o(a,t,e).then(r.resolve,n)}))}));return c.error&&n(c.value),r.promise}})},2092:(e,t,r)=>{"use strict";var n=r(9989),o=r(8742);n({target:"Promise",stat:!0,forced:r(7073).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},7905:(e,t,r)=>{"use strict";var n=r(9989),o=r(6058),i=r(3931),a=r(7919),s=r(7073).CONSTRUCTOR,l=r(2945),c=o("Promise"),d=i&&!s;n({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(d&&this===c?a:this,e)}})},50:(e,t,r)=>{"use strict";var n=r(9989),o=r(6058),i=r(1735),a=r(6761),s=r(2655),l=r(5027),c=r(8999),d=r(5391),u=r(3689),f=o("Reflect","construct"),p=Object.prototype,h=[].push,m=u((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),g=!u((function(){f((function(){}))})),b=m||g;n({target:"Reflect",stat:!0,forced:b,sham:b},{construct:function(e,t){s(e),l(t);var r=arguments.length<3?e:s(arguments[2]);if(g&&!m)return f(e,t,r);if(e===r){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])}var n=[null];return i(h,n,t),new(i(a,e,n))}var o=r.prototype,u=d(c(o)?o:p),b=i(e,u,t);return c(b)?b:u}})},2349:(e,t,r)=>{"use strict";var n=r(9989),o=r(2615),i=r(8999),a=r(5027),s=r(6251),l=r(2474),c=r(1868);n({target:"Reflect",stat:!0},{get:function e(t,r){var n,d,u=arguments.length<3?t:arguments[2];return a(t)===u?t[r]:(n=l.f(t,r))?s(n)?n.value:void 0===n.get?void 0:o(n.get,u):i(d=c(t))?e(d,r,u):void 0}})},2003:(e,t,r)=>{"use strict";var n=r(7697),o=r(9037),i=r(8844),a=r(5266),s=r(3457),l=r(5773),c=r(5391),d=r(2741).f,u=r(3622),f=r(1245),p=r(4327),h=r(3477),m=r(7901),g=r(8055),b=r(1880),v=r(3689),y=r(6812),w=r(618).enforce,x=r(4241),_=r(4201),k=r(2100),S=r(6422),E=_("match"),T=o.RegExp,C=T.prototype,A=o.SyntaxError,O=i(C.exec),D=i("".charAt),j=i("".replace),P=i("".indexOf),R=i("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,N=/a/g,L=/a/g,M=new T(N)!==N,F=m.MISSED_STICKY,B=m.UNSUPPORTED_Y,U=n&&(!M||F||k||S||v((function(){return L[E]=!1,T(N)!==N||T(L)===L||"/a/i"!==String(T(N,"i"))})));if(a("RegExp",U)){for(var V=function(e,t){var r,n,o,i,a,d,m=u(C,this),g=f(e),b=void 0===t,v=[],x=e;if(!m&&g&&b&&e.constructor===V)return e;if((g||u(C,e))&&(e=e.source,b&&(t=h(x))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),x=e,k&&"dotAll"in N&&(n=!!t&&P(t,"s")>-1)&&(t=j(t,/s/g,"")),r=t,F&&"sticky"in N&&(o=!!t&&P(t,"y")>-1)&&B&&(t=j(t,/y/g,"")),S&&(e=(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a=c(null),s=!1,l=!1,d=0,u="";n<=r;n++){if("\\"===(t=D(e,n)))t+=D(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:O(I,R(e,n+1))&&(n+=2,l=!0),o+=t,d++;continue;case">"===t&&l:if(""===u||y(a,u))throw new A("Invalid capture group name");a[u]=!0,i[i.length]=[u,d],l=!1,u="";continue}l?u+=t:o+=t}return[o,i]}(e))[0],v=i[1]),a=s(T(e,t),m?this:C,V),(n||o||v.length)&&(d=w(a),n&&(d.dotAll=!0,d.raw=V(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=D(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+D(e,++n);return o}(e),r)),o&&(d.sticky=!0),v.length&&(d.groups=v)),e!==x)try{l(a,"source",""===x?"(?:)":x)}catch(e){}return a},$=d(T),H=0;$.length>H;)g(V,T,$[H++]);C.constructor=V,V.prototype=C,b(o,"RegExp",V,{constructor:!0})}x("RegExp")},4043:(e,t,r)=>{"use strict";var n=r(9989),o=r(6308);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},2826:(e,t,r)=>{"use strict";var n=r(1236).PROPER,o=r(1880),i=r(5027),a=r(4327),s=r(3689),l=r(3477),c=RegExp.prototype,d=c.toString,u=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),f=n&&"toString"!==d.name;(u||f)&&o(c,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},7985:(e,t,r)=>{"use strict";r(319)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(800))},9649:(e,t,r)=>{"use strict";r(7985)},3843:(e,t,r)=>{"use strict";var n=r(9989),o=r(8844),i=r(2124),a=r(4684),s=r(4327),l=r(7413),c=o("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},1694:(e,t,r)=>{"use strict";var n=r(730).charAt,o=r(4327),i=r(618),a=r(1934),s=r(7807),l=i.set,c=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=c(this),r=t.string,o=t.index;return o>=r.length?s(void 0,!0):(e=n(r,o),t.index+=e.length,s(e,!1))}))},2462:(e,t,r)=>{"use strict";var n=r(2615),o=r(8678),i=r(5027),a=r(981),s=r(3126),l=r(4327),c=r(4684),d=r(4849),u=r(1514),f=r(6100);o("match",(function(e,t,r){return[function(t){var r=c(this),o=a(t)?void 0:d(t,e);return o?n(o,t,r):new RegExp(t)[e](l(r))},function(e){var n=i(this),o=l(e),a=r(t,n,o);if(a.done)return a.value;if(!n.global)return f(n,o);var c=n.unicode;n.lastIndex=0;for(var d,p=[],h=0;null!==(d=f(n,o));){var m=l(d[0]);p[h]=m,""===m&&(n.lastIndex=u(o,s(n.lastIndex),c)),h++}return 0===h?null:p}]}))},7267:(e,t,r)=>{"use strict";var n=r(1735),o=r(2615),i=r(8844),a=r(8678),s=r(3689),l=r(5027),c=r(9985),d=r(981),u=r(8700),f=r(3126),p=r(4327),h=r(4684),m=r(1514),g=r(4849),b=r(7017),v=r(6100),y=r(4201)("replace"),w=Math.max,x=Math.min,_=i([].concat),k=i([].push),S=i("".indexOf),E=i("".slice),T="$0"==="a".replace(/./,"$0"),C=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(e,t,r){var i=C?"$":"$0";return[function(e,r){var n=h(this),i=d(e)?void 0:g(e,y);return i?o(i,e,n,r):o(t,p(n),e,r)},function(e,o){var a=l(this),s=p(e);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var d=r(t,a,s,o);if(d.done)return d.value}var h=c(o);h||(o=p(o));var g,y=a.global;y&&(g=a.unicode,a.lastIndex=0);for(var T,C=[];null!==(T=v(a,s))&&(k(C,T),y);){""===p(T[0])&&(a.lastIndex=m(s,f(a.lastIndex),g))}for(var A,O="",D=0,j=0;j<C.length;j++){for(var P,R=p((T=C[j])[0]),I=w(x(u(T.index),s.length),0),N=[],L=1;L<T.length;L++)k(N,void 0===(A=T[L])?A:String(A));var M=T.groups;if(h){var F=_([R],N,I,s);void 0!==M&&k(F,M),P=p(n(o,void 0,F))}else P=b(R,s,I,N,M,o);I>=D&&(O+=E(s,D,I)+P,D=I+R.length)}return O+E(s,D)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!T||C)},7872:(e,t,r)=>{"use strict";var n=r(2615),o=r(8678),i=r(5027),a=r(981),s=r(4684),l=r(953),c=r(4327),d=r(4849),u=r(6100);o("search",(function(e,t,r){return[function(t){var r=s(this),o=a(t)?void 0:d(t,e);return o?n(o,t,r):new RegExp(t)[e](c(r))},function(e){var n=i(this),o=c(e),a=r(t,n,o);if(a.done)return a.value;var s=n.lastIndex;l(s,0)||(n.lastIndex=0);var d=u(n,o);return l(n.lastIndex,s)||(n.lastIndex=s),null===d?-1:d.index}]}))},268:(e,t,r)=>{"use strict";var n,o=r(9989),i=r(6576),a=r(2474).f,s=r(3126),l=r(4327),c=r(2124),d=r(4684),u=r(7413),f=r(3931),p=i("".slice),h=Math.min,m=u("startsWith");o({target:"String",proto:!0,forced:!!(f||m||(n=a(String.prototype,"startsWith"),!n||n.writable))&&!m},{startsWith:function(e){var t=l(d(this));c(e);var r=s(h(arguments.length>1?arguments[1]:void 0,t.length)),n=l(e);return p(t,r,r+n.length)===n}})},8436:(e,t,r)=>{"use strict";var n=r(9989),o=r(1435).trim;n({target:"String",proto:!0,forced:r(5984)("trim")},{trim:function(){return o(this)}})},8373:(e,t,r)=>{"use strict";r(5405)("asyncIterator")},7855:(e,t,r)=>{"use strict";var n=r(9989),o=r(9037),i=r(2615),a=r(8844),s=r(3931),l=r(7697),c=r(146),d=r(3689),u=r(6812),f=r(3622),p=r(5027),h=r(5290),m=r(8360),g=r(4327),b=r(5684),v=r(5391),y=r(300),w=r(2741),x=r(6062),_=r(7518),k=r(2474),S=r(2560),E=r(8920),T=r(9556),C=r(1880),A=r(2148),O=r(3430),D=r(2713),j=r(7248),P=r(4630),R=r(4201),I=r(6145),N=r(5405),L=r(3032),M=r(5997),F=r(618),B=r(2960).forEach,U=D("hidden"),V=F.set,$=F.getterFor("Symbol"),H=Object.prototype,W=o.Symbol,z=W&&W.prototype,Y=o.RangeError,G=o.TypeError,q=o.QObject,X=k.f,Q=S.f,Z=x.f,K=T.f,J=a([].push),ee=O("symbols"),te=O("op-symbols"),re=O("wks"),ne=!q||!q.prototype||!q.prototype.findChild,oe=function(e,t,r){var n=X(H,t);n&&delete H[t],Q(e,t,r),n&&e!==H&&Q(H,t,n)},ie=l&&d((function(){return 7!==v(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?oe:Q,ae=function(e,t){var r=ee[e]=v(z);return V(r,{type:"Symbol",tag:e,description:t}),l||(r.description=t),r},se=function(e,t,r){e===H&&se(te,t,r),p(e);var n=m(t);return p(r),u(ee,n)?(r.enumerable?(u(e,U)&&e[U][n]&&(e[U][n]=!1),r=v(r,{enumerable:b(0,!1)})):(u(e,U)||Q(e,U,b(1,v(null))),e[U][n]=!0),ie(e,n,r)):Q(e,n,r)},le=function(e,t){p(e);var r=h(t),n=y(r).concat(fe(r));return B(n,(function(t){l&&!i(ce,r,t)||se(e,t,r[t])})),e},ce=function(e){var t=m(e),r=i(K,this,t);return!(this===H&&u(ee,t)&&!u(te,t))&&(!(r||!u(this,t)||!u(ee,t)||u(this,U)&&this[U][t])||r)},de=function(e,t){var r=h(e),n=m(t);if(r!==H||!u(ee,n)||u(te,n)){var o=X(r,n);return!o||!u(ee,n)||u(r,U)&&r[U][n]||(o.enumerable=!0),o}},ue=function(e){var t=Z(h(e)),r=[];return B(t,(function(e){u(ee,e)||u(j,e)||J(r,e)})),r},fe=function(e){var t=e===H,r=Z(t?te:h(e)),n=[];return B(r,(function(e){!u(ee,e)||t&&!u(H,e)||J(n,ee[e])})),n};c||(C(z=(W=function(){if(f(z,this))throw new G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=P(e),r=function(e){var n=void 0===this?o:this;n===H&&i(r,te,e),u(n,U)&&u(n[U],t)&&(n[U][t]=!1);var a=b(1,e);try{ie(n,t,a)}catch(e){if(!(e instanceof Y))throw e;oe(n,t,a)}};return l&&ne&&ie(H,t,{configurable:!0,set:r}),ae(t,e)}).prototype,"toString",(function(){return $(this).tag})),C(W,"withoutSetter",(function(e){return ae(P(e),e)})),T.f=ce,S.f=se,E.f=le,k.f=de,w.f=x.f=ue,_.f=fe,I.f=function(e){return ae(R(e),e)},l&&(A(z,"description",{configurable:!0,get:function(){return $(this).description}}),s||C(H,"propertyIsEnumerable",ce,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),B(y(re),(function(e){N(e)})),n({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?v(e):le(v(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:de}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue}),L(),M(W,"Symbol"),j[U]=!0},6544:(e,t,r)=>{"use strict";var n=r(9989),o=r(7697),i=r(9037),a=r(8844),s=r(6812),l=r(9985),c=r(3622),d=r(4327),u=r(2148),f=r(8758),p=i.Symbol,h=p&&p.prototype;if(o&&l(p)&&(!("description"in h)||void 0!==p().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:d(arguments[0]),t=c(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};f(g,p),g.prototype=h,h.constructor=g;var b="Symbol(description detection)"===String(p("description detection")),v=a(h.valueOf),y=a(h.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),_=a("".slice);u(h,"description",{configurable:!0,get:function(){var e=v(this);if(s(m,e))return"";var t=y(e),r=b?_(t,7,-1):x(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},3975:(e,t,r)=>{"use strict";var n=r(9989),o=r(6058),i=r(6812),a=r(4327),s=r(3430),l=r(6549),c=s("string-to-symbol-registry"),d=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(c,t))return c[t];var r=o("Symbol")(t);return c[t]=r,d[r]=t,r}})},4254:(e,t,r)=>{"use strict";r(5405)("iterator")},9749:(e,t,r)=>{"use strict";r(7855),r(3975),r(1445),r(8324),r(9434)},1445:(e,t,r)=>{"use strict";var n=r(9989),o=r(6812),i=r(734),a=r(3691),s=r(3430),l=r(6549),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(o(c,e))return c[e]}})},9373:(e,t,r)=>{"use strict";var n=r(5405),o=r(3032);n("toPrimitive"),o()},6793:(e,t,r)=>{"use strict";var n=r(6058),o=r(5405),i=r(5997);o("toStringTag"),i(n("Symbol"),"Symbol")},8832:(e,t,r)=>{"use strict";r(5398)},7522:(e,t,r)=>{"use strict";var n=r(9037),o=r(6338),i=r(3265),a=r(7612),s=r(5773),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in o)o[c]&&l(n[c]&&n[c].prototype);l(i)},6265:(e,t,r)=>{"use strict";var n=r(9037),o=r(6338),i=r(3265),a=r(752),s=r(5773),l=r(5997),c=r(4201)("iterator"),d=a.values,u=function(e,t){if(e){if(e[c]!==d)try{s(e,c,d)}catch(t){e[c]=d}if(l(e,t,!0),o[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var f in o)u(n[f]&&n[f].prototype,f);u(i,"DOMTokenList")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.b=document.baseURI||self.location.href,r.nc=void 0;var n={};return(()=>{"use strict";r.r(n),r.d(n,{Editor:()=>cs,ItemStore:()=>td,LevelEditor:()=>ec,Presenter:()=>Ka,ValidationPresenter:()=>Ql,bundleLoader:()=>dd,engine:()=>Ta,renderingContext:()=>ro,system:()=>Hn,utils:()=>Vn,validate:()=>Ma});r(3734);var e=r(9755),t=r.n(e);r(2506),r(8077),r(228),r(9749),r(6544),r(4254),r(752),r(1694),r(6265),r(5728),r(9358),r(7522),r(886),r(6801),r(3843),r(9373),r(9903),r(9288),r(8832),r(4338);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})(e)}"__rdfjson_namespaces"in globalThis||(globalThis.__rdfjson_namespaces={ical:"http://www.w3.org/2002/12/cal/ical#",vcard:"http://www.w3.org/2006/vcard/ns#",dcterms:"http://purl.org/dc/terms/",skos:"http://www.w3.org/2004/02/skos/core#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",owl:"http://www.w3.org/2002/07/owl#",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",foaf:"http://xmlns.com/foaf/0.1/",wot:"http://xmlns.com/wot/0.1/",dc:"http://purl.org/dc/elements/1.1/",xsd:"http://www.w3.org/2001/XMLSchema#",dcat:"http://www.w3.org/ns/dcat#",org:"http://www.w3.org/ns/org#",gn:"http://www.geonames.org/ontology#",locn:"http://www.w3.org/ns/locn#",schema:"http://schema.org/",ex:"http://example.com/",gsp:"http://www.opengis.net/ont/geosparql#",odrs:"http://schema.theodi.org/odrs#"});var i=globalThis.__rdfjson_namespaces,a=0,l=function(e,t,r){return i[e]||(i[e]=t),{abbrev:e,ns:t,localname:r,full:t+r,pretty:"".concat(e,":").concat(r)}},c=function(e){var t=Object.keys(i).find((function(t){return 0===e.indexOf(i[t])}));if(t)return l(t,i[t],e.substring(i[t].length));var r=e.lastIndexOf("/"),n=e.lastIndexOf("#");return n>r&&(r=n),l("ns".concat(a+=1),e.substring(0,r+1),e.substring(r+1))};const d=function(e){var t=Object.keys(i).find((function(t){return 0===e.indexOf(i[t])}));return t?l(t,i[t],e.substring(i[t].length)).pretty:e},u=function(e){return c(e).pretty},f=function(e){var t=e.split(":");return 2===t.length&&i.hasOwnProperty(t[0])?i[t[0]]+t[1]:e},p=function(e,t){"string"==typeof e?i[e]=t:"object"===o(e)&&Object.keys(e).forEach((function(t){i[t]=e[t]}))};r(8373),r(6793),r(7629),r(7509),r(8052),r(4284),r(9730),r(3964),r(6466),r(2826),r(9649);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var m=function(e){return void 0!==e&&(null===e||"object"===h(e)||Array.isArray(e)||"function"==typeof e)},g=function(e){return"string"==typeof e||e instanceof String},b=function(e,t,r){0===e[t][r].length&&(delete e[t][r],0===Object.keys(e[t]).length&&delete e[t])},v=function(e){if(!m(e[0]))throw new Error("Graph is not a object.");if(!g(e[1]))throw new Error("Subject is not a string.");if(!g(e[2]))throw new Error("Predicate is not a string.");if(!m(e[3]))throw new Error("Object is not a object.");if(void 0===e[3].type)throw new Error("Object has no type attribute, must be one of 'uri', 'literal', or 'bnode'");if(void 0===e[3].value)throw new Error("Object has no value attribute corresponding to the lexical value of the object.")},y=function(e,t){return e===t||null==e&&e===t||(g(e)?g(t)?e===t:e===t.value:g(t)?e.value===t:e.type===t.type&&e.value===t.value&&e.lang===t.lang&&e.datatype===t.datatype)},w=function(e){var t={type:e.type,value:e.value};return null!=e.ng&&(t.ng=e.ng),null!=e.lang&&(t.lang=e.lang),null!=e.datatype&&(t.datatype=e.datatype),t},x=function(e){return"".concat(e.value).concat(e.type).concat(e.lang||"").concat(e.datatype||"").concat(e.ng||"")};const _={isObject:m,isString:g,isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},statementEquals:function(e,t){return e.s===t.s&&e.p===t.p&&y(e.o,t.o)},add:function(e,t,r,n,o){if(v([e,t,r,n]),void 0===e[t])return e[t]={},e[t][r]=[n],n;if(void 0===e[t][r])return e[t][r]=[n],n;var i,a=e[t][r];if(!o)for(i=a.length-1;i>=0;i--)if(y(n,a[i]))return a[i];return a.push(n),n},remove:function(e,t,r,n){if(v([e,t,r,n]),void 0!==e[t]&&void 0!==e[t][r]){var o,i=e[t][r];for(o=i.length-1;o>=0;o--)if(y(n,i[o])){var a=i[o];return i.splice(o,1),b(e,t,r),a}}},contains:function(e,t,r,n){if(v([e,t,r,n]),void 0!==e[t]&&void 0!==e[t][r]){var o,i=e[t][r];for(o=i.length-1;o>=0;o--)if(y(n,i[o]))return i[o]}},cleanup:b,checkForWrongArgs:v,objectEquals:y,findDirectOrRDFValue:function(e,t,r){var n=e.find(t,r);if(n.length>0)return"bnode"!==n[0].getType()?n[0].getValue():e.findFirstValue(n[0].getValue(),"http://www.w3.org/1999/02/22-rdf-syntax-ns#value")},clone:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={};return Object.keys(e).forEach((function(n){var o=e[n];r[n]={},Object.keys(o).forEach((function(e){var i=o[e];if(1===i.length)r[n][e]=[w(i[0])];else if(t){var a=[],s=new Set;r[n][e]=a,o[e].forEach((function(e){var t=w(e),r=x(t);s.has(r)||(s.add(r),a.push(t))}))}else{var l=[];r[n][e]=l,o[e].forEach((function(e){l.push(w(e))}))}}))})),r}};function k(e){return(k="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 S(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,E(n.key),n)}}function E(e){var t=function(e,t){if("object"!=k(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==k(t)?t:String(t)}var T=function(){function e(t,r,n,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._graph=t,this._s=r,this._p=n,this._o=o,this._o._statement=this,this._asserted=i}var t,r,n;return t=e,(r=[{key:"getGraph",value:function(){return this._graph}},{key:"setAsserted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e!==this._asserted&&(e?this._graph.add(this,void 0,void 0,this._silentValue,t):this._graph.remove(this,this._silentValue),this._asserted=e)}},{key:"isAsserted",value:function(){return this._asserted}},{key:"getSubject",value:function(){return this._s}},{key:"isSubjectBlank",value:function(){return!0!==this._sIsBlank&&!1!==this._sIsBlank&&(this._sIsBlank=0===this._s.indexOf("_:")),this._sIsBlank}},{key:"isObjectBlank",value:function(){return"bnode"===this.getType()}},{key:"setSubject",value:function(e){this._silentValue=!1;var t=f(e);this._asserted?(this._graph.remove(this),this._s=t,this._graph.add(this),delete this._sIsBlank):this._s=t}},{key:"getPredicate",value:function(){return this._p}},{key:"setPredicate",value:function(e){this._silentValue=!1;var t=f(e);this._asserted?(this._graph.remove(this),this._p=t,this._graph.add(this)):this._p=t}},{key:"getNamedGraph",value:function(){return this._o.ng}},{key:"setNamedGraph",value:function(e){this._o.ng=e}},{key:"getObject",value:function(){return this._o}},{key:"getCleanObject",value:function(){var e=this._o,t={value:e.value,type:e.type};return this._o.ng&&(t.ng=e.ng),e.lang&&(t.lang=e.lang),this._o.datatype&&(t.datatype=e.datatype),t}},{key:"getType",value:function(){return this._o.type}},{key:"setType",value:function(e){throw new Error("Changing the type of an object is not supported, create a new statement instead.")}},{key:"getValue",value:function(){return this._o.value}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._silentValue=!0===t,e!==this._o.value&&(this._o.value=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}},{key:"getLanguage",value:function(){return this._o.lang}},{key:"setLanguage",value:function(e,t){if(this._silentValue=!0===t,"literal"!==this._o.type)throw new Error("Cannot set the language for a resource, has to be a literal");this._o.lang!==e&&(this._o.lang=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}},{key:"getDatatype",value:function(){return this._o.datatype}},{key:"setDatatype",value:function(e,t){if(this._silentValue=!0===t,"literal"!==this._o.type||null!=this._o.lang)throw new Error("Cannot set the datatype for a resource, has to be a literal");this._o.datatype!==e&&(this._o.datatype=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}}])&&S(t.prototype,r),n&&S(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),C=(r(5137),r(6203),r(2568));const A=function(e,t){var r=[],n=new Set((t||[]).map((function(e){return f(e)}))),o=[],i={},a=function(e){var t=e.getValue();e.getLanguage()&&(t+="@".concat(e.getLanguage()));var r=e.getDatatype();return r&&"http://www.w3.org/2001/XMLSchema#string"!==r&&"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"!==r&&(t+="^^".concat(r)),t},s=function(e,t){var r=i[e]||{rels:[]};i[e]=r,r.rels.push(t)};return e.find().forEach((function(e){var t=e.getSubject(),i=e.getPredicate();if(!n.has(i)){var l="bnode"===e.getType(),c=e.isSubjectBlank();if(c||l)return o.push(e),c&&s(e.getSubject(),l?i:i+a(e)),void("bnode"===e.getType()&&s(e.getValue(),c?i:t+i));r.push(t+i+a(e))}})),Object.values(i).forEach((function(e){e.rels.sort(),e.hash=C(e.rels.join(""))})),o.forEach((function(e){var t=[];t.push(e.isSubjectBlank()?i[e.getSubject()].hash:e.getSubject()),t.push(e.getPredicate()),t.push("bnode"===e.getType()?i[e.getValue()].hash:a(e)),r.push(t.join(""))})),r.sort(),C(r.join(""))};class O{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}O.prototype.termType="BlankNode";const D=O;class j{equals(e){return!!e&&e.termType===this.termType}}j.prototype.termType="DefaultGraph",j.prototype.value="";const P=j;const R=function(e,t){if(!t)return null;if("BlankNode"===t.termType)return e.blankNode(t.value);if("DefaultGraph"===t.termType)return e.defaultGraph();if("Literal"===t.termType)return e.literal(t.value,t.language||e.namedNode(t.datatype.value));if("NamedNode"===t.termType)return e.namedNode(t.value);if("Quad"===t.termType){const r=e.fromTerm(t.subject),n=e.fromTerm(t.predicate),o=e.fromTerm(t.object),i=e.fromTerm(t.graph);return e.quad(r,n,o,i)}if("Variable"===t.termType)return e.variable(t.value);throw new Error("unknown termType "+t.termType)};class I{constructor(e,t,r){this.value=e,this.language=t,this.datatype=r}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}}I.prototype.termType="Literal";const N=I;class L{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}L.prototype.termType="NamedNode";const M=L;class F{constructor(e,t,r,n){this.subject=e,this.predicate=t,this.object=r,this.graph=n}equals(e){return!!e&&("Quad"===e.termType||!e.termType)&&e.subject.equals(this.subject)&&e.predicate.equals(this.predicate)&&e.object.equals(this.object)&&e.graph.equals(this.graph)}}F.prototype.termType="Quad",F.prototype.value="";const B=F;class U{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}U.prototype.termType="Variable";const V=U,$=new M("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),H=new M("http://www.w3.org/2001/XMLSchema#string");class W{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new P}}namedNode(e){return new M(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new D(e)}literal(e,t){return"string"==typeof t?new N(e,t,$):new N(e,"",t||H)}variable(e){return new V(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,r,n=this.defaultGraph()){return new B(e,t,r,n)}fromTerm(e){return R(this,e)}fromQuad(e){return R(this,e)}}W.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const z=new W;var Y=function(e){return 0===e.indexOf("_:")?e.substring(2):e},G=function(e){return e.find().map((function(e){var t=e.getSubject(),r=e.getPredicate(),n=function(e){if(e.value)switch(e.type){case"literal":if(e.lang)return z.literal(e.value,e.lang);if(e.datatype){var t=z.namedNode(e.datatype);return z.literal(e.value,t)}return z.literal(e.value);case"uri":return z.namedNode(e.value);case"blank":return z.blankNode(Y(e.value))}}(e.getObject()),o=e.getNamedGraph()?z.namedNode(e.getNamedGraph()):void 0;return z.quad(e.isSubjectBlank()?z.blankNode(Y(t)):z.namedNode(t),z.namedNode(r),n,o)}))},q=function(e){return 0===e.indexOf("_:")?e:"_:".concat(e)},X=function(e,t){var r=t||new Graph,n=function(e){var t=function(e){switch(e.termType){case"NamedNode":return{value:e.value,type:"uri"};case"BlankNode":return{value:q(e.value),type:"bnode"};case"Literal":return e.language?{value:e.value,type:"literal",lang:e.language}:e.datatype?{value:e.value,type:"literal",datatype:e.datatype.value}:{value:e.value,type:"literal"}}}(e.object||e._object);return"DefaultGraph"!==e.graph.termType&&(t.ng=e.graph.value),t};e.forEach((function(e){r.add("BlankNode"===e.subject.termType?q(e.subject.value):e.subject.value,"BlankNode"===e.predicate.termType?q(e.predicate.value):e.predicate.value,n(e))}))};function Q(e){return(Q="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 Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,J(n.key),n)}}function J(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Q(t)?t:String(t)}var ee=function(e){return 0===e.length?e:[e[0]]},te=function e(t,r,n){return{object:function(o){for(var i=0;i<r.length;i++){var a=void 0;if(n)a=r[i].getSubject();else{var s=r[i].getType();if("uri"===s||"bnode"===s)continue;a=r[i].getValue()}var l=t.find(a,o);l.length>0&&e(t,[l[0]])}return e(t,[])},objects:function(o){var i,a=[];if(!0===n)for(i=0;i<r.length;i++)a=a.concat(t.find(r[i].getSubject(),o));else for(i=0;i<r.length;i++){var s=r[i].getType();"uri"!==s&&"bnode"!==s||(a=a.concat(t.find(r[i].getValue(),o)))}return e(t,a)},constr:function(o,i){var a=i;_.isString(a)&&(a={type:"uri",value:a});for(var s=[],l=0;l<r.length;l++){var c=n?r[l].getSubject():r[l].getValue();t.find(c,o,a).length>0&&s.push(r[l])}return e(t,s,n)},each:function(o,i){if(!0===n)for(var a=0;a<r.length;a++){var s="_:"===r[a].getSubject().substring(0,2)?"bnode":"uri";null!=i&&i!==s||o(e(t,r[a],n))}else for(var l=0;l<r.length;l++)o(e(t,r[l],n))},statements:function(){return r},nodes:function(e){var t=[];if(!0===n)for(var o=0;o<r.length;o++){var i="_:"===r[o].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push({type:i,value:r[o].getSubject()})}else for(var a=0;a<r.length;a++)null!=e&&e!==r[a].getType()||t.push(r[a].getObject());return t},values:function(e){var t=[];if(!0===n)for(var o=0;o<r.length;o++){var i="_:"===r[o].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push(r[o].getSubject())}else for(var a=0;a<r.length;a++)null!=e&&e!==r[a].getType()||t.push(r[a].getValue());return t},firstValue:function(e){if(!0===n)for(var t=0;t<r.length;t++){var o="_:"===r[t].getSubject().substring(0,2)?"bnode":"uri";if(null==e||e===o)return r[t].getSubject()}else for(var i=0;i<r.length;i++)if(null==e||e===r[i].getType())return r[i].getValue()}}},re=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;Z(this,e),this._graph=t||{},this._bnodes={},this._bnodesIndexed=!1,!1!==r&&this.validate(),this._changed=!1}var t,r,n;return t=e,(r=[{key:"addQuads",value:function(e){return X(e,this),this}},{key:"toQuads",value:function(){return G(this)}},{key:"isEmpty",value:function(){var e=this;return!Object.keys(this._graph).find((function(t){var r=e._graph[t];return Object.keys(r).find((function(e){return r[e].find((function(e){return null==e._statement||e._statement.isAsserted()}))}))}))}},{key:"onChange",value:function(){}},{key:"setChanged",value:function(e){this._changed=!(!0!==e&&null!=e),this._changed&&this.onChange()}},{key:"isChanged",value:function(){return this._changed}},{key:"addAll",value:function(e,t){for(var r,n={},o=e.find(),i=0;i<o.length;i++){var a=o[i],s=a.getSubject(),l=a.getPredicate(),c=a.getCleanObject();t&&(c.ng=t),0===s.indexOf("_:")&&(r=n[s]||this._newBNode(),n[s]=r,s=r),0===l.indexOf("_:")&&(r=n[l]||this._newBNode(),n[l]=r,l=r),"bnode"===c.type&&(r=n[c.value]||this._newBNode(),n[c.value]=r,c.value=r),this.add(s,l,c)}}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(e instanceof T){var i=e.getPredicate(),a=e.getObject(),s=e.getSubject();this._trackBNodes(s,i,a);var l=this._graphObject(a),c=_.add(this._graph,s,i,l,o);return!0!==n&&this.setChanged(),this._get(s,i,c,!0)}return this.create(e,t,r,!0,n,o)}},{key:"addL",value:function(e,t,r,n){var o={type:"literal",value:r};return"string"==typeof n&&(o.lang=n),this.create(e,t,o,!0)}},{key:"addD",value:function(e,t,r,n){var o={type:"literal",value:r};return"string"==typeof n&&(o.datatype=f(n)),this.create(e,t,o,!0)}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=e,s=t,l=r;if(a=null==a?this._newBNode():f(a),s=null==s?this._newBNode():f(s),null==l?l={type:"bnode",value:this._newBNode()}:_.isString(l)?l={type:"uri",value:f(l)}:"object"!==Q(l)||Array.isArray(l)?l={type:"uri",value:"".concat(l)}:("uri"===(l={type:l.type,value:l.value,lang:l.lang,datatype:l.datatype,ng:l.ng}).type&&null!=l.value&&(l.value=f(l.value)),l.datatype&&(l.datatype=f(l.datatype))),!1!==n){var c=_.add(this._graph,a,s,l,i);return!0!==o&&this.setChanged(),this._getOrCreate(a,s,c,!0)}return new T(this,a,s,l,!1)}},{key:"findAndRemove",value:function(e,t,r){for(var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.find(e,t,r),i=0;i<o.length;i++)this.remove(o[i],n)}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.getSubject(),n=e.getPredicate(),o=e.getObject();this._trackBNodes(r,n,o),null!=_.remove(this._graph,r,n,o)&&!0!==t&&this.setChanged()}},{key:"find",value:function(e,t,r){var n=e,o=t,i=r;if("string"==typeof n&&(n=f(n)),"string"==typeof o&&(o=f(o)),"object"===Q(i)&&null!==i&&"uri"===i.type?i.value=f(i.value):"string"==typeof i&&(i={type:"uri",value:f(i)}),null==i)return null==o?null==n?this._find():this._findS(n):null==n?this._findP(o):this._findSP(n,o);if(null==o)return null==n?this._findO(i):this._findSO(n,i);if(null==n)return this._findPO(o,i);var a=this._get(n,o,_.contains(this._graph,n,o,i),!0);return null==a?[]:[a]}},{key:"findFirstValue",value:function(e,t){var r=this.find(e,t);if(r.length>0)return r[0].getValue()}},{key:"projection",value:function(e,t,r){var n=this,o={};return Object.keys(t).forEach((function(i){var a=t[i],s=Array.isArray(a)?n.findPath(e,a):n.find(e,a);if(s.length>0)switch("*"===i[0]?o[i.substr(1)]=s.map((function(e){return e.getValue()})):o[i]=s[0].getValue(),r||"none"){case"statement":o["*".concat(i)]=s;break;case"objects":o["*".concat(i)]=s.map((function(e){return e.getCleanObject()}));break;case"values":o["*".concat(i)]=s.map((function(e){return e.getValue()}))}})),o}},{key:"subjects",value:function(e,t){return te(this,this.find(null,e,t),!0)}},{key:"subject",value:function(e,t){return te(this,ee(this.find(null,e,t)),!0)}},{key:"objects",value:function(e,t){return te(this,this.find(e,t,null))}},{key:"object",value:function(e,t){return te(this,ee(this.find(e,t,null)))}},{key:"findPath",value:function(e,t){return t.slice(1).reduce((function(e,t){return e.objects(t)}),this.objects(e,t[0])).statements()}},{key:"addList",value:function(e){return this._addList(e,"add")}},{key:"addListL",value:function(e,t){return this._addList(e,"addL",t)}},{key:"addListD",value:function(e,t){return this._addList(e,"addD",t)}},{key:"_addList",value:function(e,t,r){var n,o=this;if(Array.isArray(e)&&0!==e.length){var i=n=this._newBNode(),a=e.length-1;e.forEach((function(e,n){o[t](i,"rdf:first",e,r),n!==a?i=o.add(i,"rdf:rest").getValue():o.add(i,"rdf:rest","rdf:nil")}))}else n=f("rdf:nil");return n}},{key:"removeList",value:function(e){var t=!1,r="object"===Q(e)?e.value:e;try{var n=f("rdf:nil");for(t=r===n;r!==n&&null!=r;){var o=this.findFirstValue(r,"rdf:rest");this.findAndRemove(r),t=null!=(r=o)}}catch(e){return console.warn("Invalid list for object: ".concat(r)),!1}return t}},{key:"getList",value:function(e){var t="object"===Q(e)?e.value:f(e),r=[];try{for(var n=f("rdf:nil");t!==n&&null!=t;)r.push(this.find(t,"rdf:first")[0].getObject()),t=this.findFirstValue(t,"rdf:rest")}catch(e){console.warn("Invalid list for object: ".concat(t))}return r}},{key:"findFirstListAsValues",value:function(e,t){return this.getList(this.findFirstValue(e,t)).map((function(e){return e.value}))}},{key:"findAndRemoveLists",value:function(e,t){var r=this,n=!1;return this.find(e,t).forEach((function(e){r.removeList(e.getValue())&&(r.remove(e),n=!0)})),n}},{key:"exportRDFJSON",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._graph,_.clone(this._graph,e)}},{key:"replaceSubject",value:function(e,t){return this.replaceURI(e,t)}},{key:"replaceURI",value:function(e,t){var r=this._graph;if(r.hasOwnProperty(e)){if(r.hasOwnProperty(t))throw new Error("Cannot replace subject with target URI since it already exists.");r[t]=r[e],delete r[e]}return this.forEach((function(r,n,o){"uri"===o.type&&o.value===e&&(o.value=t),r===t&&o._statement&&(o._statement._s=t)})),this}},{key:"replaceBlankWithURI",value:function(e,t,r){var n=this._graph;if(n.hasOwnProperty(e)){if(n.hasOwnProperty(t)){if(!r)throw new Error("Cannot replace subject with target URI since it already exists.");var o=n[t],i=n[e];Object.keys(i).forEach((function(e){if(o.hasOwnProperty(e)){var t=o[e],r=i[e].filter((function(e){return!t.find((function(t){return _.objectEquals(t,e)}))}));o[e]=t.concat(r)}else o[e]=i[e]})),delete n[e]}else n[t]=n[e],delete n[e];this.forEach((function(r,n,o){"bnode"===o.type&&o.value===e&&(o.value=t,o.type="uri"),r===t&&o._statement&&(o._statement._s=t)}))}return delete this._bnodes[e],this}},{key:"clone",value:function(){return new e(this.exportRDFJSON(!1))}},{key:"findProperties",value:function(e){return Object.keys(this._graph[e]||{})}},{key:"validate",value:function(){if(this.report=this._validate(),!this.report.valid)throw this.report;return this.report}},{key:"registerBNode",value:function(e){this._bnodes[e]=!0}},{key:"forEach",value:function(e){var t=this._graph;Object.keys(t).forEach((function(r){var n=t[r];Object.keys(n).forEach((function(t){n[t].forEach((function(n){e(r,t,n)}))}))}))}},{key:"map",value:function(e){var t=[];return this.forEach((function(r){t.push(e(r))})),t}},{key:"equals",value:function(e,t){return A(this,t)===A(e,t)}},{key:"size",value:function(){var e=0;return Object.values(this._graph).forEach((function(t){Object.values(t).forEach((function(t){e+=t.length}))})),e}},{key:"_get",value:function(e,t,r,n){if(null!=r)return this._getOrCreate(e,t,r,n)}},{key:"_getOrCreate",value:function(e,t,r,n){return null==r._statement&&(r._statement=new T(this,e,t,r,n)),r._statement}},{key:"_graphObject",value:function(e){return null==e._statement||e._statement._graph===this?e:{type:e.type,value:e.value,lang:e.lang,datatype:e.datatype}}},{key:"_findSP",value:function(e,t){var r=this;return null==this._graph[e]||null==this._graph[e][t]?[]:this._graph[e][t].map((function(n){return r._get(e,t,n,!0)}))}},{key:"_findS",value:function(e){var t=this,r=this._graph[e],n=Object.keys(r||{}).map((function(r){return t._findSP(e,r)}));return Array.prototype.concat.apply([],n)}},{key:"_find",value:function(){var e=this,t=[];return this.forEach((function(r,n,o){t.push(e._get(r,n,o,!0))})),t}},{key:"_findP",value:function(e){var t=this,r=[];return this.forEach((function(n,o,i){e===o&&r.push(t._get(n,o,i,!0))})),r}},{key:"_findO",value:function(e){var t=this,r=[];return this.forEach((function(n,o,i){_.objectEquals(e,i)&&r.push(t._get(n,o,i,!0))})),r}},{key:"_findSO",value:function(e,t){var r=this,n=[];return this.forEach((function(o,i,a){e===o&&_.objectEquals(t,a)&&n.push(r._get(o,i,a,!0))})),n}},{key:"_findPO",value:function(e,t){var r=this,n=[];return this.forEach((function(o,i,a){e===i&&_.objectEquals(t,a)&&n.push(r._get(o,i,a,!0))})),n}},{key:"_validate",value:function(){var e=this._graph,t={valid:!0,errors:[],nr:0};return Object.keys(e).forEach((function(r){var n=e[r];_.isObject(n)?Object.keys(n).forEach((function(e){var o=n[e];Array.isArray(o)?o.forEach((function(n,o){_.isObject(n)?null!=n.type?_.isString(n.value)?t.nr+=1:(t.errors.push({s:r,p:e,oindex:o+1,message:"Object ".concat(o+1," in object array must have the 'value' attribute pointing to a string.")}),t.valid=!1):(t.errors.push({s:r,p:e,oindex:o+1,message:"Object ".concat(o+1," in object array lacks the attribute type, must be either 'literal', 'resource' or 'bnode'.")}),t.valid=!1):(t.errors.push({s:r,p:e,oindex:o+1,message:"Element ".concat(o+1," in object array is not an object.")}),t.valid=!1)})):(t.errors.push({s:r,p:e,message:"Predicate must point to an array of objects."}),t.valid=!1)})):(t.errors.push({s:r,message:"Subject must point to an object."}),t.valid=!1)})),t}},{key:"_newBNode",value:function(){var e,t,r;for(this._indexBNodes(),e=1;e<20;e++)for(t=1;t<=e;t++)if(r="_:".concat(Math.floor(Math.random()*(Math.pow(10,e)+1))),!0!==this._bnodes[r])return this._bnodes[r]=!0,r;throw new Error("Failed creating a new blank node, increadible unprobable...")}},{key:"_indexBNodes",value:function(){var e=this;if(!this._bnodesIndexed){var t=this._graph;Object.keys(t).forEach((function(r){0===r.indexOf("_:")&&(e._bnodes[r]=!0);var n=t[r];Object.keys(n).forEach((function(t){0===t.indexOf("_:")&&(e._bnodes[t]=!0),n[t].forEach((function(t){"bnode"===t.type&&(e._bnodes[t.value]=!0)}))}))})),this._bnodesIndexed=!0}}},{key:"_trackBNodes",value:function(e,t,r){0===e.indexOf("_:")&&(this._bnodes[e]=!0),0===t.indexOf("_:")&&(this._bnodes[t]=!0),"bnode"===r.type&&(this._bnodes[r.value]=!0)}}])&&K(t.prototype,r),n&&K(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();r(4043),r(7267);r(268),r(50),r(6646),r(5787);function ne(e){return("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 oe(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,ie(n.key),n)}}function ie(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:String(t)}function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function se(e,t,r){return fe(t),function(e,t){if(t&&("object"===ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,de()?Reflect.construct(t,r||[],fe(e).constructor):t.apply(e,r))}function le(e){var t="function"==typeof Map?new Map:void 0;return function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ce(e,arguments,fe(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ue(r,e)}(e)}function ce(e,t,r){if(de())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&ue(o,r.prototype),o}function de(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}function ue(e,t){return(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fe(e){return(Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Error;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})(e)}function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(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,be(n.key),n)}}function ge(e,t,r){return t&&me(e.prototype,t),r&&me(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function be(e){var t=function(e,t){if("object"!=pe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pe(t)?t:String(t)}var ve={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",owl:"http://www.w3.org/2002/07/owl#"},ye={rdftype:"".concat(ve.rdf,"type"),rdfssco:"".concat(ve.rdfs,"subClassOf"),rdfsdomain:"".concat(ve.rdfs,"domain"),rdfsrange:"".concat(ve.rdfs,"range"),rdfsspo:"".concat(ve.rdfs,"subPropertyOf"),rdfsClass:"".concat(ve.rdfs,"Class"),owlClass:"".concat(ve.owl,"Class"),owlObjectProperty:"".concat(ve.owl,"ObjectProperty"),owlDatatypeProperty:"".concat(ve.owl,"DatatypeProperty"),rdfProperty:"".concat(ve.rdf,"Property")},we=function(e,t,r){for(var n={},o=!1,i=e.find(t,r),a=0;a<i.length;a++){var s=i[a];"literal"===s.getType()&&(n[s.getLanguage()||""]=s.getValue()||"",o=!0)}if(o)return null==n.en&&null!=n[""]&&(n.en=n[""],delete n[""]),n},xe=function(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n];r[o]||(t.push(o),r[o]=!0)}return t},_e=function(){function e(t,r){he(this,e),this._uri=t,this._parents=[],this._children=[],this._graph=r}return ge(e,[{key:"getURI",value:function(){return this._uri}},{key:"getLabel",value:function(){var e=this.getLabels();if(null!=e.en)return e.en;var t=Object.objects(e);return t.length>0?t[0]:""}},{key:"getLabels",value:function(){return null==this._labels&&(this._labels=we(this._graph,this._uri,"".concat(ve.rdfs,"label")),null==this._labels&&(this._labels={en:this._uri.substr(this._uri.lastIndexOf("/")+1)})),this._labels}},{key:"getComment",value:function(){var e=this.getComments();return null!=e?null!=e.en?e.en:Object.objects(e)[0]:""}},{key:"getComments",value:function(){return null==this._comments&&(this._comments=we(this._graph,this._uri,"".concat(ve.rdfs,"comment"))),this._comments}},{key:"addParent",value:function(e){this._parents.push(e),e._children.push(this)}},{key:"getDirectParents",value:function(){return this._parents}},{key:"getParents",value:function(){if(this._parentLock)return[];if(this._parentLock=!0,null==this._allParents){this._allParents=[];for(var e=0;e<this._parents.length;e++)this._allParents=this._allParents.concat(this._parents[e].getParents()),this._allParents.push(this._parents[e])}return delete this._parentLock,this._allParents}},{key:"getChildren",value:function(){if(this._childLock)return[];if(this._childLock=!0,null==this._allChildren){this._allChildren=[];for(var e=0;e<this._children.length;e++)this._allChildren=this._allChildren.concat(this._children[e].getChildren()),this._allChildren.push(this._children[e])}return delete this._childLock,this._allChildren}},{key:"setRange",value:function(e){null==this._range&&(this._range=[]),this._range.push(e)}},{key:"setDomain",value:function(e){null==this._domain&&(this._domain=[]),this._domain.push(e),e.setDomainOf(this)}},{key:"getRange",value:function(){if(null==this._allRange){this._allRange=this._range||[];for(var e=0;e<this._parents.length;e++)this._allRange=this._allRange.concat(this._parents[e].getRange());this._allRange=xe(this._allRange)}return this._allRange}},{key:"getDomain",value:function(){if(null==this._allDomain){this._allDomain=this._domain||[];for(var e=0;e<this._parents.length;e++)this._allDomain=this._allDomain.concat(this._parents[e].getDomain());this._allDomain=xe(this._allDomain)}return this._allDomain}},{key:"setDomainOf",value:function(e){null==this._domainOf&&(this._domainOf=[]),this._domainOf.push(e)}},{key:"getDomainOf",value:function(){return this._domainOf}},{key:"getAllDomainOf",value:function(){if(this._domainOfLock)return[];if(this._domainOfLock=!0,null==this._allDomainOf){var e=this._domainOf||[];this._allDomainOf=this._domainOf||[];for(var t=0;t<e.length;t++)this._allDomainOf=this._allDomainOf.concat(e[t].getChildren());for(var r=0;r<this._parents.length;r++)this._allDomainOf=this._allDomainOf.concat(this._parents[r].getAllDomainOf())}return delete this._domainOfLock,this._allDomainOf}}]),e}(),ke=function(e,t,r,n){for(var o=0;o<r.length;o++){var i=r[o],a=i.getSubject(),s=e[a];if(s||(s=new _e(a,i.getGraph()),e[a]=s,t.push(s)),n){var l=i.getValue(),c=e[l];c||(c=new _e(l,i.getGraph()),e[l]=c,t.push(c)),s.addParent(c)}}},Se=function(){function e(){he(this,e),this._cidx={},this._carr=[],this._pidx={},this._parr=[]}return ge(e,[{key:"addGraph",value:function(e){ke(this._cidx,this._carr,e.find(null,ye.rdftype,ye.rdfsClass)),ke(this._cidx,this._carr,e.find(null,ye.rdftype,ye.owlClass)),ke(this._cidx,this._carr,e.find(null,ye.rdfssco,null),!0),ke(this._pidx,this._parr,e.find(null,ye.rdftype,ye.rdfProperty)),ke(this._pidx,this._parr,e.find(null,ye.rdfsspo,null),!0),ke(this._pidx,this._parr,e.find(null,ye.rdftype,ye.owlDatatypeProperty)),ke(this._pidx,this._parr,e.find(null,ye.rdftype,ye.owlObjectProperty)),function(e,t,r){for(var n,o,i,a=e.find(null,ye.rdfsdomain,null),s=0;s<a.length;s++)n=t[(i=a[s]).getSubject()],o=r[i.getValue()],null!=n&&null!=o&&n.setDomain(o);a=e.find(null,ye.rdfsrange,null);for(var l=0;l<a.length;l++)n=t[(i=a[l]).getSubject()],o=i.getValue(),null!=n&&null!=o&&n.setRange(o)}(e,this._pidx,this._cidx)}},{key:"addThing",value:function(){var e="http://www.w3.org/2002/07/owl#Thing",t=this._cidx[e],r=!1;t||(t=new _e(e,new re),this._cidx[e]=t,this._carr.push(t),r=!0);for(var n=0;n<this._carr.length;n++){var o=this._carr[n];(r&&o!==t||-1===o.getParents().indexOf(t)&&o!==t)&&o.addParent(t)}}},{key:"getClasses",value:function(){return this._carr}},{key:"getProperties",value:function(){return this._parr}},{key:"isClass",value:function(e){return null!=this._cidx[e]}},{key:"isProperty",value:function(e){return null!=this._pidx[e]}},{key:"getClass",value:function(e){return this._cidx[e]}},{key:"getProperty",value:function(e){return this._pidx[e]}}],[{key:"getInstances",value:function(e){for(var t=[],r=[e].concat(e.getChildren()),n=0;n<r.length;n++)for(var o=r[n],i=o.getGraph.find(null,ye.rdftype,o.getURI()),a=0;a<i.length;a++)t.push(i[a].getSubject());return t}}]),e}();Se.prototype.ns=ve,Se.prototype.terms=ye,Se.global=new Se;function Ee(e){return(Ee="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 Te(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,Ce(n.key),n)}}function Ce(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ee(t)?t:String(t)}var Ae=function(e){this.filterObj={},this.registry=e};Ae.prototype.register=function(e){this.registry.register(this.filterObj,e)},["itemtype","choices","nodetype","datatype","rdftype","constraint","predicate","style","item","check"].forEach((function(e){Ae.prototype[e]=function(t){var r={};switch(e){case"constraint":Object.keys(t).forEach((function(e){var n=t[e];Array.isArray(n)?r[f(e)]=n.map((function(e){return f(e)})):r[f(e)]=f(n)})),this.filterObj[e]=r;break;case"predicate":case"rdftype":case"datatype":this.filterObj[e]=f(t);break;default:this.filterObj[e]=t||!0}return this}}));var Oe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.components=[],this.priorities={CHECK:1,ITEMTYPE:2,CHOICES:4,NODETYPE:8,DATATYPE:16,RDFTYPE:32,CONSTRAINT:64,PREDICATE:128,STYLE:256,ITEM:512}}var t,r,n;return t=e,(r=[{key:"calculatePriority",value:function(e,t){var r=0;if(t.itemtype&&(r+=this.priorities.ITEMTYPE,e.getType()!==t.itemtype))return-1;if(t.choices)switch(r+=this.priorities.CHOICES,t.choices){case"static":if(!e.hasStaticChoices())return-1;break;case"dynamic":if(!e.hasChoices()||e.hasStaticChoices())return-1;break;case"none":if(e.hasChoices())return-1;break;case"any":default:if(!e.hasChoices())return-1}if(t.nodetype&&(r+=this.priorities.NODETYPE,e.getNodetype()!==t.nodetype))return-1;if(t.datatype){r+=this.priorities.DATATYPE;var n=e.getDatatype(),o=!0;if(n&&(o=Array.isArray(n)?!n.includes(t.datatype):n!==t.datatype),o)return-1}return t.rdftype&&(r+=this.priorities.RDFTYPE,!function(e,t){var r=e.getConstraints();return null!=r&&r[rdfType]===t}(e,t.rdftype))||t.constraint&&(r+=this.priorities.CONSTRAINT,!function(e,t){if(null==t)return!0;var r=e.getConstraints(),n=!0;return null!=r&&(Object.keys(r).find((function(e){var o=t[e];return""!==o&&"*"!==o&&o!==r[e]&&(n=!1,!0)})),n)}(e,t.constraint))||t.predicate&&(r+=this.priorities.PREDICATE,e.getProperty()!==t.predicate)||t.style&&(r+=this.priorities.STYLE,!e.hasStyle(t.style))?-1:!t.item||(r+=this.priorities.ITEM,e===t.item||t.item.getId&&e.getId()===t.item.getId())?t.check&&!t.check(e)?-1:r:-1}},{key:"getPriority",value:function(e,t){for(var r=0;r<this.components.length;r++)if(this.components[r].component===t){var n=this.calculatePriority(e,this.components[r].filter);if(n>=0)return n}return 0}},{key:"getComponentBefore",value:function(e,t){var r=this.getPriority(e,t);return this.getComponent(e,r)}},{key:"getComponent",value:function(e,t){for(var r,n,o,i=-1,a=0;a<this.components.length;a++)o=this.components[a],(n=this.calculatePriority(e,o.filter))>i&&(void 0===t||n<t)&&(r=o,i=n);if(r)return r.component}},{key:"register",value:function(e,t){this.components.push({component:t,filter:e})}},{key:"itemtype",value:function(e){return new Ae(this).itemtype(e)}},{key:"choices",value:function(e){return new Ae(this).choices(e)}},{key:"nodetype",value:function(e){return new Ae(this).nodetype(e)}},{key:"datatype",value:function(e){return new Ae(this).datatype(e)}},{key:"rdftype",value:function(e){return new Ae(this).rdftype(e)}},{key:"constraint",value:function(e){return new Ae(this).constraint(e)}},{key:"predicate",value:function(e){return new Ae(this).predicate(e)}},{key:"style",value:function(e){return new Ae(this).style(e)}},{key:"item",value:function(e){return new Ae(this).item(e)}},{key:"check",value:function(e){return new Ae(this).check(e)}}])&&Te(t.prototype,r),n&&Te(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const De=function(){this.__data__=[],this.size=0};const je=function(e,t){return e===t||e!=e&&t!=t};const Pe=function(e,t){for(var r=e.length;r--;)if(je(e[r][0],t))return r;return-1};var Re=Array.prototype.splice;const Ie=function(e){var t=this.__data__,r=Pe(t,e);return!(r<0)&&(r==t.length-1?t.pop():Re.call(t,r,1),--this.size,!0)};const Ne=function(e){var t=this.__data__,r=Pe(t,e);return r<0?void 0:t[r][1]};const Le=function(e){return Pe(this.__data__,e)>-1};const Me=function(e,t){var r=this.__data__,n=Pe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Fe(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])}}Fe.prototype.clear=De,Fe.prototype.delete=Ie,Fe.prototype.get=Ne,Fe.prototype.has=Le,Fe.prototype.set=Me;const Be=Fe;const Ue=function(){this.__data__=new Be,this.size=0};const Ve=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};const $e=function(e){return this.__data__.get(e)};const He=function(e){return this.__data__.has(e)};const We="object"==typeof global&&global&&global.Object===Object&&global;var ze="object"==typeof self&&self&&self.Object===Object&&self;const Ye=We||ze||Function("return this")();const Ge=Ye.Symbol;var qe=Object.prototype,Xe=qe.hasOwnProperty,Qe=qe.toString,Ze=Ge?Ge.toStringTag:void 0;const Ke=function(e){var t=Xe.call(e,Ze),r=e[Ze];try{e[Ze]=void 0;var n=!0}catch(e){}var o=Qe.call(e);return n&&(t?e[Ze]=r:delete e[Ze]),o};var Je=Object.prototype.toString;const et=function(e){return Je.call(e)};var tt=Ge?Ge.toStringTag:void 0;const rt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tt&&tt in Object(e)?Ke(e):et(e)};const nt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const ot=function(e){if(!nt(e))return!1;var t=rt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const it=Ye["__core-js_shared__"];var at,st=(at=/[^.]+$/.exec(it&&it.keys&&it.keys.IE_PROTO||""))?"Symbol(src)_1."+at:"";const lt=function(e){return!!st&&st in e};var ct=Function.prototype.toString;const dt=function(e){if(null!=e){try{return ct.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var ut=/^\[object .+?Constructor\]$/,ft=Function.prototype,pt=Object.prototype,ht=ft.toString,mt=pt.hasOwnProperty,gt=RegExp("^"+ht.call(mt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const bt=function(e){return!(!nt(e)||lt(e))&&(ot(e)?gt:ut).test(dt(e))};const vt=function(e,t){return null==e?void 0:e[t]};const yt=function(e,t){var r=vt(e,t);return bt(r)?r:void 0};const wt=yt(Ye,"Map");const xt=yt(Object,"create");const _t=function(){this.__data__=xt?xt(null):{},this.size=0};const kt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var St=Object.prototype.hasOwnProperty;const Et=function(e){var t=this.__data__;if(xt){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return St.call(t,e)?t[e]:void 0};var Tt=Object.prototype.hasOwnProperty;const Ct=function(e){var t=this.__data__;return xt?void 0!==t[e]:Tt.call(t,e)};const At=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xt&&void 0===t?"__lodash_hash_undefined__":t,this};function Ot(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])}}Ot.prototype.clear=_t,Ot.prototype.delete=kt,Ot.prototype.get=Et,Ot.prototype.has=Ct,Ot.prototype.set=At;const Dt=Ot;const jt=function(){this.size=0,this.__data__={hash:new Dt,map:new(wt||Be),string:new Dt}};const Pt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const Rt=function(e,t){var r=e.__data__;return Pt(t)?r["string"==typeof t?"string":"hash"]:r.map};const It=function(e){var t=Rt(this,e).delete(e);return this.size-=t?1:0,t};const Nt=function(e){return Rt(this,e).get(e)};const Lt=function(e){return Rt(this,e).has(e)};const Mt=function(e,t){var r=Rt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Ft(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])}}Ft.prototype.clear=jt,Ft.prototype.delete=It,Ft.prototype.get=Nt,Ft.prototype.has=Lt,Ft.prototype.set=Mt;const Bt=Ft;const Ut=function(e,t){var r=this.__data__;if(r instanceof Be){var n=r.__data__;if(!wt||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Bt(n)}return r.set(e,t),this.size=r.size,this};function Vt(e){var t=this.__data__=new Be(e);this.size=t.size}Vt.prototype.clear=Ue,Vt.prototype.delete=Ve,Vt.prototype.get=$e,Vt.prototype.has=He,Vt.prototype.set=Ut;const $t=Vt;const Ht=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e};const Wt=function(){try{var e=yt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const zt=function(e,t,r){"__proto__"==t&&Wt?Wt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var Yt=Object.prototype.hasOwnProperty;const Gt=function(e,t,r){var n=e[t];Yt.call(e,t)&&je(n,r)&&(void 0!==r||t in e)||zt(e,t,r)};const qt=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?zt(r,s,l):Gt(r,s,l)}return r};const Xt=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};const Qt=function(e){return null!=e&&"object"==typeof e};const Zt=function(e){return Qt(e)&&"[object Arguments]"==rt(e)};var Kt=Object.prototype,Jt=Kt.hasOwnProperty,er=Kt.propertyIsEnumerable;const tr=Zt(function(){return arguments}())?Zt:function(e){return Qt(e)&&Jt.call(e,"callee")&&!er.call(e,"callee")};const rr=Array.isArray;const nr=function(){return!1};var or="object"==typeof exports&&exports&&!exports.nodeType&&exports,ir=or&&"object"==typeof module&&module&&!module.nodeType&&module,ar=ir&&ir.exports===or?Ye.Buffer:void 0;const sr=(ar?ar.isBuffer:void 0)||nr;var lr=/^(?:0|[1-9]\d*)$/;const cr=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&lr.test(e))&&e>-1&&e%1==0&&e<t};const dr=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var ur={};ur["[object Float32Array]"]=ur["[object Float64Array]"]=ur["[object Int8Array]"]=ur["[object Int16Array]"]=ur["[object Int32Array]"]=ur["[object Uint8Array]"]=ur["[object Uint8ClampedArray]"]=ur["[object Uint16Array]"]=ur["[object Uint32Array]"]=!0,ur["[object Arguments]"]=ur["[object Array]"]=ur["[object ArrayBuffer]"]=ur["[object Boolean]"]=ur["[object DataView]"]=ur["[object Date]"]=ur["[object Error]"]=ur["[object Function]"]=ur["[object Map]"]=ur["[object Number]"]=ur["[object Object]"]=ur["[object RegExp]"]=ur["[object Set]"]=ur["[object String]"]=ur["[object WeakMap]"]=!1;const fr=function(e){return Qt(e)&&dr(e.length)&&!!ur[rt(e)]};const pr=function(e){return function(t){return e(t)}};var hr="object"==typeof exports&&exports&&!exports.nodeType&&exports,mr=hr&&"object"==typeof module&&module&&!module.nodeType&&module,gr=mr&&mr.exports===hr&&We.process;const br=function(){try{var e=mr&&mr.require&&mr.require("util").types;return e||gr&&gr.binding&&gr.binding("util")}catch(e){}}();var vr=br&&br.isTypedArray;const yr=vr?pr(vr):fr;var wr=Object.prototype.hasOwnProperty;const xr=function(e,t){var r=rr(e),n=!r&&tr(e),o=!r&&!n&&sr(e),i=!r&&!n&&!o&&yr(e),a=r||n||o||i,s=a?Xt(e.length,String):[],l=s.length;for(var c in e)!t&&!wr.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||cr(c,l))||s.push(c);return s};var _r=Object.prototype;const kr=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||_r)};const Sr=function(e,t){return function(r){return e(t(r))}};const Er=Sr(Object.keys,Object);var Tr=Object.prototype.hasOwnProperty;const Cr=function(e){if(!kr(e))return Er(e);var t=[];for(var r in Object(e))Tr.call(e,r)&&"constructor"!=r&&t.push(r);return t};const Ar=function(e){return null!=e&&dr(e.length)&&!ot(e)};const Or=function(e){return Ar(e)?xr(e):Cr(e)};const Dr=function(e,t){return e&&qt(t,Or(t),e)};const jr=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var Pr=Object.prototype.hasOwnProperty;const Rr=function(e){if(!nt(e))return jr(e);var t=kr(e),r=[];for(var n in e)("constructor"!=n||!t&&Pr.call(e,n))&&r.push(n);return r};const Ir=function(e){return Ar(e)?xr(e,!0):Rr(e)};const Nr=function(e,t){return e&&qt(t,Ir(t),e)};var Lr="object"==typeof exports&&exports&&!exports.nodeType&&exports,Mr=Lr&&"object"==typeof module&&module&&!module.nodeType&&module,Fr=Mr&&Mr.exports===Lr?Ye.Buffer:void 0,Br=Fr?Fr.allocUnsafe:void 0;const Ur=function(e,t){if(t)return e.slice();var r=e.length,n=Br?Br(r):new e.constructor(r);return e.copy(n),n};const Vr=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};const $r=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i};const Hr=function(){return[]};var Wr=Object.prototype.propertyIsEnumerable,zr=Object.getOwnPropertySymbols;const Yr=zr?function(e){return null==e?[]:(e=Object(e),$r(zr(e),(function(t){return Wr.call(e,t)})))}:Hr;const Gr=function(e,t){return qt(e,Yr(e),t)};const qr=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e};const Xr=Sr(Object.getPrototypeOf,Object);const Qr=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)qr(t,Yr(e)),e=Xr(e);return t}:Hr;const Zr=function(e,t){return qt(e,Qr(e),t)};const Kr=function(e,t,r){var n=t(e);return rr(e)?n:qr(n,r(e))};const Jr=function(e){return Kr(e,Or,Yr)};const en=function(e){return Kr(e,Ir,Qr)};const tn=yt(Ye,"DataView");const rn=yt(Ye,"Promise");const nn=yt(Ye,"Set");const on=yt(Ye,"WeakMap");var an=dt(tn),sn=dt(wt),ln=dt(rn),cn=dt(nn),dn=dt(on),un=rt;(tn&&"[object DataView]"!=un(new tn(new ArrayBuffer(1)))||wt&&"[object Map]"!=un(new wt)||rn&&"[object Promise]"!=un(rn.resolve())||nn&&"[object Set]"!=un(new nn)||on&&"[object WeakMap]"!=un(new on))&&(un=function(e){var t=rt(e),r="[object Object]"==t?e.constructor:void 0,n=r?dt(r):"";if(n)switch(n){case an:return"[object DataView]";case sn:return"[object Map]";case ln:return"[object Promise]";case cn:return"[object Set]";case dn:return"[object WeakMap]"}return t});const fn=un;var pn=Object.prototype.hasOwnProperty;const hn=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&pn.call(e,"index")&&(r.index=e.index,r.input=e.input),r};const mn=Ye.Uint8Array;const gn=function(e){var t=new e.constructor(e.byteLength);return new mn(t).set(new mn(e)),t};const bn=function(e,t){var r=t?gn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var vn=/\w*$/;const yn=function(e){var t=new e.constructor(e.source,vn.exec(e));return t.lastIndex=e.lastIndex,t};var wn=Ge?Ge.prototype:void 0,xn=wn?wn.valueOf:void 0;const _n=function(e){return xn?Object(xn.call(e)):{}};const kn=function(e,t){var r=t?gn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};const Sn=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return gn(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return bn(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 kn(e,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return yn(e);case"[object Set]":return new n;case"[object Symbol]":return _n(e)}};var En=Object.create;const Tn=function(){function e(){}return function(t){if(!nt(t))return{};if(En)return En(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Cn=function(e){return"function"!=typeof e.constructor||kr(e)?{}:Tn(Xr(e))};const An=function(e){return Qt(e)&&"[object Map]"==fn(e)};var On=br&&br.isMap;const Dn=On?pr(On):An;const jn=function(e){return Qt(e)&&"[object Set]"==fn(e)};var Pn=br&&br.isSet;const Rn=Pn?pr(Pn):jn;var In={};In["[object Arguments]"]=In["[object Array]"]=In["[object ArrayBuffer]"]=In["[object DataView]"]=In["[object Boolean]"]=In["[object Date]"]=In["[object Float32Array]"]=In["[object Float64Array]"]=In["[object Int8Array]"]=In["[object Int16Array]"]=In["[object Int32Array]"]=In["[object Map]"]=In["[object Number]"]=In["[object Object]"]=In["[object RegExp]"]=In["[object Set]"]=In["[object String]"]=In["[object Symbol]"]=In["[object Uint8Array]"]=In["[object Uint8ClampedArray]"]=In["[object Uint16Array]"]=In["[object Uint32Array]"]=!0,In["[object Error]"]=In["[object Function]"]=In["[object WeakMap]"]=!1;const Nn=function e(t,r,n,o,i,a){var s,l=1&r,c=2&r,d=4&r;if(n&&(s=i?n(t,o,i,a):n(t)),void 0!==s)return s;if(!nt(t))return t;var u=rr(t);if(u){if(s=hn(t),!l)return Vr(t,s)}else{var f=fn(t),p="[object Function]"==f||"[object GeneratorFunction]"==f;if(sr(t))return Ur(t,l);if("[object Object]"==f||"[object Arguments]"==f||p&&!i){if(s=c||p?{}:Cn(t),!l)return c?Zr(t,Nr(s,t)):Gr(t,Dr(s,t))}else{if(!In[f])return i?t:{};s=Sn(t,f,l)}}a||(a=new $t);var h=a.get(t);if(h)return h;a.set(t,s),Rn(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,a))})):Dn(t)&&t.forEach((function(o,i){s.set(i,e(o,r,n,i,t,a))}));var m=u?void 0:(d?c?en:Jr:c?Ir:Or)(t);return Ht(m||t,(function(o,i){m&&(o=t[i=o]),Gt(s,i,e(o,r,n,i,t,a))})),s};const Ln=function(e){return Nn(e,5)};r(2003),r(2462);var Mn=r(381),Fn=r.n(Mn),Bn=function(e){var t=Fn().locale();if(null==e)return{precision:"none"};if("string"==typeof e)return{value:e,precision:"nolang",lang:""};if(e.hasOwnProperty(t))return{value:e[t],precision:"exact",lang:t};if(t.indexOf("_")>-1&&e.hasOwnProperty(t.substr(0,2)))return{value:e[t.substr(0,2)],precision:"coarsen",lang:t.substr(0,2)};if(e.hasOwnProperty("en"))return{value:e.en,precision:"default",lang:"en"};if(e.hasOwnProperty(""))return{value:e[""],precision:"nolang",lang:""};var r=Object.keys(e);return r.length>0?{value:e[r[0]],precision:"any",lang:r[0]}:{precision:"none"}},Un=function(e,t,r){var n=e.find(t,r);if(n.length>0){for(var o={},i=0;i<n.length;i++)o[n[i].getLanguage()||""]=n[i].getValue();return o}};const Vn={getLocalizedValue:Bn,getLocalizedMap:function(e,t,r){var n,o=t,i=r;e.getItem?(n=e.getGraph(),o=e.getValue(),i=e.getItem().getURIValueLabelProperties()):n=e,null!=i&&0!==i.length||(i=Hn.labelProperties);for(var a=0;a<i.length;a++){var s=i[a];if(Array.isArray(s)){for(var l=[],c=0;c<s.length;c++){var d=Un(n,o,s[c]);d&&l.push(Bn(d).value)}if(l.length>0)return{"":l.join(" ")}}else{var u=Un(n,o,s);if(u)return u}}},cloneArrayWithLabels:function(e,t){for(var r=[],n=0;n<e.length;n++){var o=e[n],i=Bn(o.label),a={value:o.value,label:i.value||o.value||""};!0===o.top&&(a.top=!0),null!=o.children&&(a.children=Ln(o.children)),!1===o.selectable?a.selectable=!1:a.selectable=!0,r.push(a)}return!0!==t&&r.sort((function(e,t){return e.label>t.label?1:-1})),r},extractGist:function(e,t){var r=t;if(r){-1===r.indexOf("$1")&&(r+="$1");var n="".concat(r).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1").replace("\\$1","(.*)"),o=new RegExp(n).exec(e);if(null!=o)return o[1]}return e},findFirstValue:function(e,t,r,n){var o=e.findFirstValueBinding(e.match(t,r,n),!1);if(o)return o.getChoice?Bn(o.getChoice().label).value:o.getGist()},generateUUID:function(){var e=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?r:3&r|8).toString(16)}))}};var $n=function(e,t,r,n){if("URI"===e.getNodetype()||"RESOURCE"===e.getNodetype()){var o=Vn.getLocalizedMap(n,t,e.getURIValueLabelProperties());if(!o){var i=t.lastIndexOf("#"),a=t.lastIndexOf("/");o=i>0||a>0?{"":decodeURIComponent(t.substring(1+(i>a?i:a)))}:{"":t}}return{value:t,label:o}}return{value:t,label:t}};const Hn={hasDnDSupport:function(e){return!1},addDnD:function(e,t,r){return{}},attachExternalLinkBehaviour:function(){return!1},attachLinkBehaviour:function(e,t){return!1},openChoiceSelector:function(e,t){alert('This alert is a placeholder for a search dialog that should be provided as part of the integration of RDForms into a wider system.\nSimply override the methods "getChoices" and "openChoiceSelector" in the system module.'),t({value:"http://example.com/choice1",label:{en:"First choice",sv:"Första valet"}})},getChoice:function(e,t,r,n){return $n(e,t,0,n)},getFallbackChoice:$n,labelProperties:["http://www.w3.org/2000/01/rdf-schema#label","http://purl.org/dc/terms/title","http://purl.org/dc/elements/1.1/title","http://www.w3.org/2004/02/skos/core#prefLabel","http://xmlns.com/foaf/0.1/name","http://xmlns.com/foaf/name"],createURI:function(e,t){for(var r=t.getChildrenRootUri(),n=r.lastIndexOf("#"),o=-1===n?"".concat(r,"#"):r.substring(0,n+1),i=t.getGraph()._graph;;){var a=o+"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);if(null==i[a])return a}}},Wn=JSON.parse('{"edit_add":"Add","edit_remove":"Remove","edit_clear":"Clear","edit_browse":"Browse and select","edit_browse_create":"Browse and select or create","edit_expand":"Expand","edit_upgrade":"Provide additional information for this web address","info_label":"Label","info_property":"Property","info_description":"Description","info_missing":"No information","address_label":"Address","validation_min_required_one":"at least one value is required","validation_min_required_more":"a minimum of $1 values is required","validation_min_recommended_one":"at least one value is recommended","validation_min_recommended_more":"a minimum of $1 values is recommended","validation_max_one":"at most one value is allowed","validation_max_more":"a maximum of $1 values are allowed","validation_at_most_one_child":"A maximum of one value is allowed","validation_at_least_one_child":"A minimum of one value is required","validation_exactly_one_child":"Exactly one value is required","validation_deprecated":"This field is deprecated","validation_nodetype":"Wrong nodetype","validation_value":"Wrong value","validation_datatype":"Wrong datatype","validation_constraints":"Missing constraints","validation_pattern":"Value does not follow pattern","validation_language":"A language code is required","date_date":"Date","date_time":"Time","date_year":"Year","date_date_and_time":"Date and time","date_year_and_month":"Year and month","date_month_and_day":"Month and day","date_openDatePicker":"Open date picker dialog","date_openTimePicker":"Open time picker dialog","date_openYearPicker":"Open year picker dialog","date_nextMonth":"Next month","date_previousMonth":"Previous month","duration_years":"Years","duration_months":"Months","duration_days":"Days","duration_hours":"Hours","duration_minutes":"Minutes","mandatoryLabel":"Mandatory","recommendedLabel":"Recommended","optionalLabel":"Optional","today":"Today","mandatoryMark":"*","recommendedMark":"(Recommended)","optionalMark":"(Optional)","deprecatedField":"This field has been deprecated, please remove it.","missingValueField":"This field is required, please provide a value.","dependencyField":"This field depends on another field, please review the field it depends on or remove this value.","wrongValueField":"This is an invalid value, please change or remove it.","wrongDatatypeField":"The value has an invalid datatype, please change or remove it.","openLinkExternally":"Open link externally","showMore":"Show more","showLess":"Show less"}');function zn(e){return(zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Yn,Gn,qn,Xn,Qn,Zn="body",Kn=[{value:"",label:{en:""}},{value:"bg",label:{en:"Bulgarian",bg:"български"}},{value:"es",label:{en:"Spanish",es:"Español"}},{value:"cs",label:{en:"Czech",cs:"čeština"}},{value:"da",label:{en:"Danish",da:"Dansk"}},{value:"no",label:{en:"Norwegian",no:"Norsk",nb:"Norsk",nn:"Norsk nynorsk"}},{value:"nb",label:{en:"Norwegian (bokmål)",nb:"Norsk bokmål",no:"Norsk bokmål",nn:"Norsk bokmål"}},{value:"nn",label:{en:"Norwegian (nynorsk)",nb:"Norsk nynorsk",no:"Norsk nynorsk",nn:"Norsk nynorsk"}},{value:"de",label:{en:"German",de:"Deutsch"}},{value:"et",label:{en:"Estonian",et:"Eesti keel"}},{value:"el",label:{en:"Greek",el:"ελληνικά"}},{value:"en",label:{en:"English"}},{value:"fr",label:{en:"French",fr:"Français"}},{value:"ga",label:{en:"Irish",ga:"Gaeilge"}},{value:"hr",label:{en:"Croatian",hr:"Hrvatski"}},{value:"it",label:{en:"Italian",it:"Italiano"}},{value:"lv",label:{en:"Latvian",lv:"Latviešu valoda"}},{value:"lt",label:{en:"Lithuanian",lt:"Lietuvių kalba"}},{value:"hu",label:{en:"Hungarian",hu:"Magyar"}},{value:"mt",label:{en:"Maltese",mt:"Malti"}},{value:"nl",label:{en:"Dutch",nl:"Nederlands"}},{value:"pl",label:{en:"Polish",pl:"Polski"}},{value:"pt",label:{en:"Portuguese",pt:"Português"}},{value:"ro",label:{en:"Romanian",ro:"Română"}},{value:"sk",label:{en:"Slovak",sk:"Slovenčina"}},{value:"sl",label:{en:"Slovenian",sl:"Slovenščina"}},{value:"fi",label:{en:"Finnish",fi:"Suomi"}},{value:"sv",label:{en:"Swedish",sv:"Svenska"}}],Jn={domQuery:function(){},domCreate:function(){},domCreateAfter:function(){},domClassToggle:function(){},domSetAttr:function(){},domText:function(){},createDomNode:function(e){return e instanceof Node?e:"string"==typeof e?document.getElementById(e):document.createElement("div")},destroyDomNode:function(){},presenterRegistry:new Oe,editorRegistry:new Oe,chooserRegistry:new Oe,renderPresenter:function(e,t,r){var n=Jn.presenterRegistry.getComponent(t.getItem());n&&(Jn.prePresenterRenderer(e,t,r),n(e,t,r),Jn.postPresenterRenderer(e,t,r))},renderEditor:function(e,t,r){var n=Jn.editorRegistry.getComponent(t.getItem());n&&(Jn.preEditorRenderer(e,t,r),n(e,t,r),Jn.postEditorRenderer(e,t,r))},renderValidationMessage:function(e,t,r){},renderSelect:function(){},getChoice:function(e,t){var r=Jn.chooserRegistry.getComponent(e);if(null==r)throw new Error("Error, no chooser available to retrieve a choice for item: ".concat(e.getId()));return r.getChoice(e,t)},hasOpenChoiceSelector:function(e){return null!=Jn.chooserRegistry.getComponent(e.getItem())},openChoiceSelector:function(e,t,r){var n=Jn.chooserRegistry.getComponent(e.getItem());if(null!=n&&n&&n.getChoice)n.show(e,t,r);else{var o=e.getItem();alert("Error, no chooser available to open a choice selector for: ".concat(o))}},getExtLinkClass:function(){return""},setMessages:function(e){Yn=e},getMessages:function(){return Yn||Wn},getLanguageList:function(){return Gn||Kn},getPrimaryLanguageList:function(){if(!Xn){for(var e,t=Jn.getLanguageList(),r=qn||[],n=[],o=0;o<t.length;o++){var i=t[o].value,a=r.indexOf(i);""===i&&(e=t[o]),-1!==a&&(n[a]=t[o])}Xn=[];for(var s=0;s<n.length;s++)"object"===zn(n[s])&&Xn.push(n[s]);Xn.length>0&&e&&Xn.splice(0,0,e)}return Xn},getNonPrimaryLanguageList:function(){if(!Qn){var e=Jn.getPrimaryLanguageList().length>0,t=Jn.getLanguageList(),r=qn||[];Qn=[];for(var n=0;n<t.length;n++){var o=t[n].value;-1===r.indexOf(o)&&(e&&""===o||Qn.push(t[n]))}}return Qn},setPrimaryLanguageCodes:function(e){Qn=null,Xn=null,qn=e},setLanguageList:function(e){Gn=e},filterTranslations:function(e,t,r){for(var n={},o=0;o<e.length;o++){var i=e[o].getLanguage();""===i||null==i?n.noLanguage=!0:i===t?n.best=!0:-1!==i.indexOf(t)||-1!==t.indexOf(i)?n.close=!0:0===i.indexOf(r)&&(n.defaultLanguage=!0)}return n.best?e.filter((function(e){return e.getLanguage()===t})):n.close?e.filter((function(e){var r=e.getLanguage();return r&&(-1!==r.indexOf(t)||-1!==t.indexOf(r))})):n.defaultLanguage?e.filter((function(e){var t=e.getLanguage();return t&&0===t.indexOf(r)})):e},setPopoverContainer:function(e){Zn=e},getPopoverContainer:function(){return Zn},preEditorViewRenderer:function(e,t){},prePresenterViewRenderer:function(e,t){},preEditorRenderer:function(){},postEditorRenderer:function(){},prePresenterRenderer:function(){},postPresenterRenderer:function(){},renderEditorLabel:function(){},renderEditorLabelScopeEnd:function(){},renderPresenterLabel:function(){},attachItemInfo:function(){},addCreateChildButton:function(){},addGroupButtons:function(){},addExpandButton:function(){},addRemoveButton:function(){},addPresenterTable:function(){},fillPresenterTable:function(){},addEditorTable:function(){},fillEditorTable:function(){},addTruncateControl:function(){}};Hn.getChoice=Jn.getChoice;var eo=function(e,t,r){new(0,r.view.constructor)({parentView:r.view,messages:r.view.messages,binding:t,topLevel:!1,compact:r.view.compact,showLanguage:r.view.showLanguage,showDescription:r.view.showDescription,defaultLanguage:r.view.defaultLanguage,filterTranslations:r.view.filterTranslations,truncate:r.view.truncate,truncateLimit:r.view.truncateLimit,includeLevel:r.view.includeLevel},e)};Jn.presenterRegistry.itemtype("group").register(eo),Jn.presenterRegistry.itemtype("propertygroup").register(eo);var to=function(e,t,r){var n=new(0,r.view.constructor)({parentView:r.view,messages:r.view.messages,languages:r.view.languages,binding:t,topLevel:!1,compact:r.view.compact,showDescription:r.view.showDescription,truncate:r.view.truncate,truncateLimit:r.view.truncateLimit,includeLevel:r.view.includeLevel},e);r.view._subEditors.push(n)};Jn.editorRegistry.itemtype("group").register(to),Jn.editorRegistry.itemtype("propertygroup").register(to);const ro=Jn;r(2349),r(1919),r(4418);function no(e){return(no="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 oo(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,io(n.key),n)}}function io(e){var t=function(e,t){if("object"!=no(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=no(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==no(t)?t:String(t)}var ao=0,so=function(){function e(t){var r=t.item,n=t.statement,o=t.graph,i=t.matchingCode;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=r,this._statement=n,this._graph=o,this._ancestorValid=!0,this._cardinalityTracker=null,this._hash="b_".concat(ao),this._matchingCode=i||"correct",ao+=1}var t,r,n;return t=e,(r=[{key:"getGraph",value:function(){return this._graph||(this._statement?this._graph=this._statement.getGraph():this._parent&&(this._graph=this._parent.getGraph())),this._graph}},{key:"isReadOnly",value:function(){if(!("_readOnly"in this)){var e=this.getParent();e&&e._readOnly?this._readyOnly=!0:this._readOnly=!(!this._statement||!this._statement.getNamedGraph())}return this._readOnly}},{key:"remove",value:function(){}},{key:"setSubject",value:function(e){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(e,t){}},{key:"getGist",value:function(){return Vn.extractGist(this.getValue(),this.getItem().getValueTemplate())}},{key:"setGist",value:function(e,t){var r=e,n=this.getItem().getValueTemplate();n&&r.length>0&&(-1===n.indexOf("$1")&&(n+="$1"),r=n.replace("$1",r)),this.setValue(r,t)}},{key:"getCardinalityTracker",value:function(){return this._cardinalityTracker}},{key:"setCardinalityTracker",value:function(e){this._cardinalityTracker=e}},{key:"getItem",value:function(){return this._item}},{key:"getStatement",value:function(){return this._statement}},{key:"getParent",value:function(){return this._parent}},{key:"setParent",value:function(e){this._parent=e}},{key:"isValid",value:function(){}},{key:"getMatchingCode",value:function(){return this._matchingCode}},{key:"setMatchingCode",value:function(e){this._matchingCode=e}},{key:"setAncestorValid",value:function(e){this._ancestorValid=e,this.updateAssertions()}},{key:"updateAssertions",value:function(){}},{key:"getHash",value:function(){return this._hash}},{key:"addListener",value:function(e){this._listeners||(this._listeners=[]),this._listeners.push(e)}},{key:"removeListener",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"bindingChange",value:function(e){if(this._listeners)for(var t=0;t<this._listeners.length;t++)this._listeners[t](e);this._parent&&this._parent.bindingChange(e),this._cardinalityTracker&&this._cardinalityTracker.touch()}},{key:"_isValidObjectValue",value:function(e){var t=e;if("string"!=typeof t&&null!==t)throw new Error("In a binding every object value need to be a string!");var r=this._item.getPattern();return r?null!=(t=Vn.extractGist(t,this.getItem().getValueTemplate()))&&""!==t&&new RegExp("^".concat(r,"$")).test(t):null!=t&&""!==t}},{key:"_isValidPredicateValue",value:function(e){if("string"!=typeof e&&null!==e)throw new Error("In a binding every predicate need to be a string!");return null!=e&&""!==e}}])&&oo(t.prototype,r),n&&oo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const lo={UNKNOWN:"unknown",OK:"correct",TOO_FEW_VALUES:"few",TOO_FEW_VALUES_MIN:"min",TOO_FEW_VALUES_PREF:"pref",TOO_MANY_VALUES:"many",AT_MOST_ONE_CHILD:"atmostonechild",AT_LEAST_ONE_CHILD:"atleastonechild",EXACTLY_ONE_CHILD:"exactlyonechild",WRONG_VALUE:"value",WRONG_PATTERN:"pattern",WRONG_NODETYPE:"nodetype",WRONG_DATATYPE:"datatype",MISSING_LANGUAGE:"language",MISSING_CONSTRAINTS:"constraints"};function co(e){return(co="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 uo(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,fo(n.key),n)}}function fo(e){var t=function(e,t){if("object"!=co(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==co(t)?t:String(t)}var po=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._listener=[],this._limits=t.getCardinality()||{},this._counter=0,this._depsOk=!0,this._listeners=[],this._code=0}var t,r,n;return t=e,(r=[{key:"addListener",value:function(e){return this._listeners.push(e),e}},{key:"removeListener",value:function(e){this._listeners.splice(this._listeners.indexOf(e),1)}},{key:"cardinalityChanged",value:function(){this._listeners.forEach((function(e){return e()}))}},{key:"getCardinality",value:function(){return this._counter}},{key:"isMax",value:function(){return null!=this._limits.max&&this._counter>=this._limits.max}},{key:"isMin",value:function(){return null!=this._limits.min&&this._counter<=this._limits.min}},{key:"isFine",value:function(){return this._fine}},{key:"isDepsOk",value:function(){return this._depsOk}},{key:"getCode",value:function(){return this._code}},{key:"setCode",value:function(e){this._code!==e&&(this._code=e,this.cardinalityChanged())}},{key:"setDepsOk",value:function(e){this._depsOk!==e&&(this._code=lo.UNKNOWN,this._depsOk=e,this.cardinalityChanged())}},{key:"increment",value:function(){this._counter+=1,this._code=lo.UNKNOWN,this._checkCounter()}},{key:"decrement",value:function(){this._counter-=1,this._code=lo.UNKNOWN,this._checkCounter()}},{key:"getCounter",value:function(){return this._counter}},{key:"checkCardinality",value:function(){this._checkCounter()}},{key:"touch",value:function(){this._code=lo.UNKNOWN,this.cardinalityChanged()}},{key:"_checkCounter",value:function(){null!=this._limits.max&&this._counter===this._limits.max?this._fine=!0:null!=this._limits.max&&this._counter>this._limits.max?this._fine=!1:null!=this._limits.min&&this._counter===this._limits.min?this._fine=!0:null!=this._limits.min&&this._counter<this._limits.min&&(this._fine=!1),this.cardinalityChanged()}}])&&uo(t.prototype,r),n&&uo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ho(e){return(ho="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 mo(e){return function(e){if(Array.isArray(e))return go(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return go(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return go(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function go(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 bo(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,vo(n.key),n)}}function vo(e){var t=function(e,t){if("object"!=ho(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ho(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ho(t)?t:String(t)}function yo(e,t,r){return t=_o(t),function(e,t){if(t&&("object"===ho(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],_o(e).constructor):t.apply(e,r))}function wo(){return(wo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=xo(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function xo(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_o(e)););return e}function _o(e){return(_o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ko(e,t){return(ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var So=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=yo(this,t,[e]);var n=e.constraints,o=void 0===n?[]:n,i=e.childrenRootUri,a=void 0===i?null:i;return r._constraints=o,r._childBindings=r._item.getChildren().map((function(){return[]})),r._rootUri=a,r._validPredicate=!0,r._validObject=!0,r._statement&&(r._validPredicate=r._isValidPredicateValue(r._statement.getPredicate()),r._validObject=r._isValidObjectValue(r._statement.getValue(),r._statement.getType())),r._cachedChildBindings=null,r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ko(e,t)}(t,e),r=t,(n=[{key:"getValue",value:function(){return this._statement&&this._statement.isObjectBlank()?"":this._statement&&this._statement.getValue()}},{key:"oneChildValidityChanged",value:function(e){return e!==this._oneValidChild&&!(!e&&(delete this._oneValidChild,this.isValid()))&&(this._oneValidChild=e,this._notifyValidityChange(e&&this._validPredicate&&this._validObject),this._validPredicate&&this._validObject)}},{key:"setSubject",value:function(e){this._statement?this._statement.setSubject(e):this.getChildBindings().forEach((function(t){return t.setSubject(e)}))}},{key:"getChildrenRootUri",value:function(){return this._statement?this._statement.getValue():null!=this._rootUri?this._rootUri:null!=this._parent?this._parent.getChildrenRootUri():void 0}},{key:"addChildBinding",value:function(e){this.addChildBindings([e])}},{key:"addChildBindings",value:function(e){var t=this;if(this._cachedChildBindings=null,Array.isArray(e)&&0!==e.length)for(var r=e[0].getItem(),n=this._item.getChildren(),o=function(){if(r===n[i]){var o=t._childBindings[i].length>0?t._childBindings[i][0].getCardinalityTracker():new po(r);return t._childBindings[i]=t._childBindings[i].concat(e),e.forEach((function(e){e.setParent(t),e.setCardinalityTracker(o),o.increment()}),t),1}},i=n.length;i>=0&&!o();i--);}},{key:"removeChildBinding",value:function(e){this._cachedChildBindings=null;for(var t=this._item.getChildren(),r=t.length;r>=0;r--)if(e.getItem()===t[r]){this._childBindings[r].splice(this._childBindings[r].indexOf(e),1),delete e._parent,e.getCardinalityTracker().decrement();break}this.oneChildValidityChanged(),this.bindingChange(e)}},{key:"getChildBindingsFor",value:function(e){for(var t=this._item.getChildren(),r=t.length;r>=0;r--)if(e===t[r])return this._childBindings[r]}},{key:"getItemGroupedChildBindings",value:function(){return this._childBindings}},{key:"getChildBindings",value:function(){var e;return null==this._cachedChildBindings&&(this._childBindings&&this._childBindings.length>0?this._cachedChildBindings=(e=[]).concat.apply(e,mo(this._childBindings)):this._cachedChildBindings=[]),this._cachedChildBindings}},{key:"setPredicate",value:function(e){var t=this._validPredicate;this._isValidPredicateValue(e)?(this._statement.setPredicate(e),this._validPredicate=!0,!0!==t&&this._validObject&&("URI"===this.getItem().getNodetype()||this._oneValidChild)&&this._notifyValidityChange(!0)):(this._validPredicate=!1,!1!==t&&this._validObject&&("URI"===this.getItem().getNodetype()||this._oneValidChild)&&this._notifyValidityChange(!1)),this.updateAssertions()}},{key:"setValue",value:function(e){if("URI"!==this.getItem().getNodetype()||!this._statement)throw new Error("Cannot change the value of a group unless its nodetype is URI and also that it corresponds to a statement");var t=this._validObject;this._isValidObjectValue(e,"uri")?(this._validObject=!0,this._statement._o.type="uri",this._statement.setValue(e),this._constraints.forEach((function(t){return t.setSubject(e)})),this.getChildBindings().forEach((function(t){return t.setSubject(e)})),!t&&this._validPredicate&&this._notifyValidityChange(!0)):(this._validObject=!1,t&&this._validPredicate&&this._notifyValidityChange(!1))}},{key:"getPredicate",value:function(){return this._statement?this._statement.getPredicate():void 0}},{key:"remove",value:function(){this._oneValidChild=!1,this.setAncestorValid(!1),null!=this._parent&&this._parent.removeChildBinding(this),wo(_o(t.prototype),"remove",this).call(this,arguments)}},{key:"_isValid",value:function(){return"URI"===this.getItem().getNodetype()?this._validObject&&this._validPredicate:this._oneValidChild&&this._validPredicate&&this._validObject}},{key:"isValid",value:function(){return null==this._oneValidChild&&(this._oneValidChild=this._forceOneValidChildCheck()),this._isValid()}},{key:"setAncestorValid",value:function(e){var t=this;this._ancestorValid=e,this.updateAssertions(),this._childBindings.forEach((function(r){return r.forEach((function(r){return r.setAncestorValid(e&&t._isValid())}),t)}),this)}},{key:"updateAssertions",value:function(){null==this._oneValidChild&&this.isValid();var e=this._ancestorValid&&this._isValid();null!=this._statement&&this._statement.setAsserted(e),this._constraints.forEach((function(t){return t.setAsserted(e)})),this.getChildBindings().forEach((function(e){return e.updateAssertions()}))}},{key:"_forceOneValidChildCheck",value:function(){return this._childBindings.some((function(e){return e.some((function(e){return e.isValid()}))}))}},{key:"_notifyValidityChange",value:function(e){this._parent&&this._parent.oneChildValidityChanged(e)||(this.updateAssertions(),this._childBindings.forEach((function(t){return t.forEach((function(t){return t.setAncestorValid(e)}))})))}},{key:"_isValidObjectValue",value:function(e,r){return("URI"!==this.getItem().getNodetype()||"uri"===r)&&wo(_o(t.prototype),"_isValidObjectValue",this).call(this,e)}}])&&bo(r.prototype,n),o&&bo(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(so);function Eo(e){return(Eo="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 To(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,Co(n.key),n)}}function Co(e){var t=function(e,t){if("object"!=Eo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Eo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Eo(t)?t:String(t)}var Ao=0,Oo=function(e,t,r){null==r||""===r||Array.isArray(r)&&0===r.length?delete e[t]:e[t]=r},Do=function(){function e(t){var r=t.source,n=void 0===r?{}:r,o=t.bundle,i=t.itemStore;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._itemStore=i,this._source=n,this._bundle=o,Ao+=1,this._internalId=Ao,this._styles=["heading","invisible","invisibleGroup","stars","commentOn","multiline","horizontalRadioButtons","verticalRadioButtons","horizontalCheckBoxes","verticalCheckBoxes","nonEditable","expandable","compact","nonCompact","dropDown","table","firstcolumnfixedtable","tree","externalLink","internalLink","noLink","image","label","tooltip","strictmatch","relaxedDatatypeMatch","viewAllTranslations","filterTranslations","email","atLeastOneChild","atMostOneChild","exactlyOneChild","noLabelInPresent","autoInitDate","autoUpdateDate","autoUUID","autoValue","showURI","showLink","showValue","showDescriptionInPresent","showDescriptionInEdit","textAsChoice","preserveOrderOfChoices","linkWithLabel","deprecated","inline","truncate","noTruncate","card","cardInPresent","cardInEdit"],this._getLocalizedValue=Vn.getLocalizedValue}var t,r,n;return t=e,(r=[{key:"getId",value:function(){var e=this.getSource(!0);return e.id||e["@id"]}},{key:"setId",value:function(e){Oo(this.getSource(!0),"id",e),delete s["@id"]}},{key:"getType",value:function(e){var t=this.getSource(e);return t.type||t["@type"]}},{key:"setType",value:function(e){Oo(this.getSource(!0),"type",e),delete s["@type"],this.refreshExtends()}},{key:"getExtends",value:function(){return this.getSource(!0).extends||""}},{key:"refreshExtends",value:function(){this.isExtention&&this.setExtends(this.getExtends())}},{key:"setExtends",value:function(e){var t=this.getSource(!0),r=this._itemStore.getItem(e);this._source=null==r?t:this._itemStore.createExtendedSource(r.getSource(),t),""===e||null==e?delete t.extends:t.extends=e}},{key:"isExtention",value:function(){return null!=this.getExtends()}},{key:"_getText",value:function(e,t,r){var n=this.getSource(r);return t?Vn.getLocalizedValue(n[e]):Vn.getLocalizedValue(n[e]).value}},{key:"_setText",value:function(e,t,r){var n=this.getSource(!0);n[e]=this._setLangHash(n[e],t,r),this.refreshExtends()}},{key:"_setTextMap",value:function(e,t){Oo(this.getSource(!0),e,t),this.refreshExtends()}},{key:"getLabel",value:function(e,t){return this._getText("label",e,t)}},{key:"setLabel",value:function(e,t){this._setText("label",e,t)}},{key:"getLabelMap",value:function(e){return this.getSource(e).label}},{key:"setLabelMap",value:function(e){this._setTextMap("label",e)}},{key:"getEditLabel",value:function(e,t){return this._getText("editlabel",e,t)}},{key:"setEditLabel",value:function(e,t){this._setText("editlabel",e,t)}},{key:"getEditLabelMap",value:function(e){return this.getSource(e).editlabel}},{key:"setEditLabelMap",value:function(e){this._setTextMap("editlabel",e)}},{key:"getDescription",value:function(e,t){return this._getText("description",e,t)}},{key:"setDescription",value:function(e,t){this._setText("description",e,t)}},{key:"getDescriptionMap",value:function(e){return this.getSource(e).description}},{key:"setDescriptionMap",value:function(e){this._setTextMap("description",e)}},{key:"getEditDescription",value:function(e,t){return this._getText("editdescription",e,t)}},{key:"setEditDescription",value:function(e,t){this._setText("editdescription",e,t)}},{key:"getEditDescriptionMap",value:function(e){return this.getSource(e).editdescription}},{key:"setEditDescriptionMap",value:function(e){this._setTextMap("editdescription",e)}},{key:"getHelp",value:function(e,t){return this._getText("help",e,t)}},{key:"setHelp",value:function(e,t){this._setText("help",e,t)}},{key:"getHelpMap",value:function(e){return this.getSource(e).help}},{key:"setHelpMap",value:function(e){this._setTextMap("help",e)}},{key:"getPlaceholder",value:function(e,t){return this._getText("placeholder",e,t)}},{key:"setPlaceholder",value:function(e,t){this._setText("placeholder",e,t)}},{key:"getPlaceholderMap",value:function(e){return this.getSource(e).placeholder}},{key:"setPlaceholderMap",value:function(e){this._setTextMap("placeholder",e)}},{key:"getPurpose",value:function(e,t){return this._getText("purpose",e,t)}},{key:"setPurpose",value:function(e,t){this._setText("purpose",e,t)}},{key:"getPurposeMap",value:function(e){return this.getSource(e).purpose}},{key:"setPurposeMap",value:function(e){this._setTextMap("purpose",e)}},{key:"getSpecification",value:function(e,t){return this._getText("specification",e,t)}},{key:"setSpecification",value:function(e,t){this._setText("specification",e,t)}},{key:"getSpecificationMap",value:function(e){return this.getSource(e).specification}},{key:"setSpecificationMap",value:function(e){this._setTextMap("specification",e)}},{key:"getText",value:function(e,t,r){var n=this.getSource(r).text||{};return t?Vn.getLocalizedValue(n[e]):Vn.getLocalizedValue(n[e]).value}},{key:"setText",value:function(e,t,r){var n=this.getSource(!0),o=n.text=n.text||{};o[e]=this._setLangHash(o[e],t,r),this.refreshExtends()}},{key:"setTextMap",value:function(e,t){var r=this.getSource(!0),n=r.text=r.text||{};Oo(n,e,t),this.refreshExtends()}},{key:"getProperty",value:function(e){var t=null,r=this.getSource(e);return r&&null!=(t=r.property)&&""!==t&&(t=f(t)),t}},{key:"setProperty",value:function(e){Oo(this.getSource(!0),"property",e),this.refreshExtends()}},{key:"getURIValueLabelProperties",value:function(e){var t=this.getSource(e).uriValueLabelProperties;return null!=t?t.map((function(e){return f(e)})):t}},{key:"setURIValueLabelProperties",value:function(e){Oo(this.getSource(!0),"uriValueLabelProperties",e),this.refreshExtends()}},{key:"getConstraints",value:function(e){var t=this.getSource(e).constraints;if(null!=t){var r={};return Object.keys(t).forEach((function(e){var n=t[e];Array.isArray(n)?r[f(e)]=n.map((function(e){return f(e)})):r[f(e)]=f(n)})),r}return t}},{key:"setConstraints",value:function(e){Oo(this.getSource(!0),"constraints",e),this.refreshExtends()}},{key:"getDeps",value:function(e){var t=this.getSource(e).deps;return null!=t?t.map((function(e){return"*"!==e&&".."!==e?f(e):e})):t}},{key:"setDeps",value:function(e){Oo(this.getSource(!0),"deps",e),this.refreshExtends()}},{key:"getDatatype",value:function(e){var t=this.getSource(e).datatype;return null!=t&&""!==t?Array.isArray(t)?t.map((function(e){return f(e)})):f(t):t}},{key:"setDatatype",value:function(e){Oo(this.getSource(!0),"datatype",e),this.refreshExtends()}},{key:"getPattern",value:function(e){return this.getSource(e).pattern}},{key:"setPattern",value:function(e){Oo(this.getSource(!0),"pattern",e),this.refreshExtends()}},{key:"getLanguage",value:function(e){return this.getSource(e).language}},{key:"setLanguage",value:function(e){Oo(this.getSource(!0),"language",e),this.refreshExtends()}},{key:"getMember",value:function(e){return this.getSource(e).member}},{key:"setMember",value:function(e){Oo(this.getSource(!0),"member",e),this.refreshExtends()}},{key:"getNodetype",value:function(e){var t=this.getSource(e);return t.nodetype||t.nodeType}},{key:"setNodetype",value:function(e){Oo(this.getSource(!0),"nodetype",e),this.refreshExtends()}},{key:"getValue",value:function(e){return this.getSource(e).value}},{key:"setValue",value:function(e){Oo(this.getSource(!0),"value",e),this.refreshExtends()}},{key:"getValueTemplate",value:function(e){return this.getSource(e).valueTemplate}},{key:"setValueTemplate",value:function(e){Oo(this.getSource(!0),"valueTemplate",e),this.refreshExtends()}},{key:"getCardinality",value:function(e){if(!this.getProperty()&&"text"===this.getType())return{min:1,max:1};var t=this.getSource(e);return t&&"cardinality"in t?t.cardinality:this.getProperty()?{}:{max:1}}},{key:"setCardinality",value:function(e){Oo(this.getSource(!0),"cardinality",e),this.refreshExtends()}},{key:"isEnabled",value:function(e){var t=this.getSource(e);return null==t.enabled||t.enabled}},{key:"setEnabled",value:function(e){var t=this.getSource(!0);e?delete t.enabled:t.enabled=e,this.refreshExtends()}},{key:"getClasses",value:function(e){var t=this.getSource(e);return t&&"cls"in t?t.cls:[]}},{key:"setClasses",value:function(e){Oo(this.getSource(!0),"cls",e),this.refreshExtends()}},{key:"hasClass",value:function(e,t){var r=this.getSource(t);return!!this.hasStyle(e,t)||null!=r.cls&&r.cls.some((function(t){return t.toLowerCase()===e.toLowerCase()}))}},{key:"getAvailableStyles",value:function(){return this._styles}},{key:"getStyles",value:function(e){return this.getSource(e).styles||[]}},{key:"setStyles",value:function(e){Oo(this.getSource(!0),"styles",e),this.refreshExtends()}},{key:"hasStyle",value:function(e,t){var r=this.getSource(t);return!(!r||!("styles"in r))&&r.styles.some((function(t){return t.toLowerCase()===e.toLowerCase()}))}},{key:"getSource",value:function(e){if(!0===e)return this._source._extendedSource||this._source;if(!1===e){var t=this._itemStore.getItem(this.getExtends());return null==t?this._source:t.getSource()}return this._source}},{key:"getBundle",value:function(){return this._bundle}},{key:"toStringShort",value:function(){return"'".concat(this.getLabel(),"'").concat(this.getId()?" (ID: '".concat(this.getId(),"')"):"")}},{key:"toString",value:function(){var e=[];return this.getId()&&e.push("ID: '".concat(this.getId(),"'")),e.push("TYPE: '".concat(this.getType(),"'")),this.getProperty()&&e.push("PROPERTY: '".concat(this.getProperty(),"'")),this.getExtends()&&e.push("EXTENDS: '".concat(this.getExtends(),"'")),"'".concat(this.getLabel(),"' (").concat(e.join(", "),")")}},{key:"_setLangHash",value:function(e,t,r){var n=e||{};if("string"==typeof t)"string"==typeof r?n[r]=t:n[""]=t;else if("object"===Eo(t)&&null!==t)return t;return n}}])&&To(t.prototype,r),n&&To(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function jo(e){return(jo="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 Po(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,Ro(n.key),n)}}function Ro(e){var t=function(e,t){if("object"!=jo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=jo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jo(t)?t:String(t)}function Io(e,t,r){return t=Mo(t),function(e,t){if(t&&("object"===jo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Mo(e).constructor):t.apply(e,r))}function No(){return(No="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Lo(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Lo(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Mo(e)););return e}function Mo(e){return(Mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fo(e,t){return(Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Bo=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=Io(this,t,[e]))._children=e.children,null!=r._source.content&&(r._source.items=r._source.content,delete r._source.content),r._forceChildrenClones=!1,r._parent=null,r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fo(e,t)}(t,e),r=t,(n=[{key:"getChildren",value:function(e){var t,r=e&&this.isExtention(),n=r?this._ochildren:this._children;return null==n&&(n=this._itemStore.getChildren(this,r),!0===this.getSource().automatic&&this._itemStore.automaticSortAllowed&&((t=n).forEach((function(e){e.__label=(e.getLabel()||"").toLowerCase()})),t.sort((function(e,t){return null!=e._source.priority?null!=t._source.priority?e._source.priority>t._source.priority?-1:e._source.priority<t._source.priority?1:0:e._source.priority>0?-1:1:null!=t._source.priority?t._source.priority>0?1:-1:e.__label>t.__label?1:e.__label<t.__label?-1:0}))),this["_".concat(r?"o":"","children")]=n),n}},{key:"originalChildrenChanged",value:function(){this.isExtention()&&delete this._children}},{key:"setExtends",value:function(e){No(Mo(t.prototype),"setExtends",this).call(this,e),delete this._children,delete this._ochildren}},{key:"getNodetype",value:function(){return No(Mo(t.prototype),"getNodetype",this).call(this)||"RESOURCE"}}])&&Po(r.prototype,n),o&&Po(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Do);function Uo(e){return(Uo="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 Vo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,Ho(n.key),n)}}function Ho(e){var t=function(e,t){if("object"!=Uo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Uo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Uo(t)?t:String(t)}function Wo(e,t,r){return t=Go(t),function(e,t){if(t&&("object"===Uo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Go(e).constructor):t.apply(e,r))}function zo(){return(zo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Yo(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Yo(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Go(e)););return e}function Go(e){return(Go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qo(e,t){return(qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Xo=function(e){function t(){return Vo(this,t),Wo(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qo(e,t)}(t,e),r=t,(n=[{key:"getChildren",value:function(e){if(null==this._delegatedChildren){var r=function(){return{min:1,max:1,pref:1}},n=zo(Go(t.prototype),"getChildren",this).call(this,e)||[];this._delegatedChildren=n.map((function(e){var t=Object.create(e);return t.getCardinality=r,t}))}return this._delegatedChildren}},{key:"getPropertyItem",value:function(){return this.getChildren()[0]}},{key:"getObjectItem",value:function(){return this.getChildren()[1]}}])&&$o(r.prototype,n),o&&$o(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Bo);function Qo(e){return(Qo="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 Zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ko(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,Jo(n.key),n)}}function Jo(e){var t=function(e,t){if("object"!=Qo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Qo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qo(t)?t:String(t)}function ei(e,t,r){return t=ti(t),function(e,t){if(t&&("object"===Qo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],ti(e).constructor):t.apply(e,r))}function ti(e){return(ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ri(e,t){return(ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ni=function(e){function t(){return Zo(this,t),ei(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ri(e,t)}(t,e),r=t,(n=[{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties}}])&&Ko(r.prototype,n),o&&Ko(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Do);function oi(e){return(oi="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 ii(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,ai(n.key),n)}}function ai(e){var t=function(e,t){if("object"!=oi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=oi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oi(t)?t:String(t)}function si(e,t,r){return t=di(t),function(e,t){if(t&&("object"===oi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],di(e).constructor):t.apply(e,r))}function li(){return(li="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=ci(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function ci(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=di(e)););return e}function di(e){return(di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ui(e,t){return(ui=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var fi=function(e){null!=e&&e.forEach((function(e){e.value=f(e.value)}))},pi=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=si(this,t,[e]))._ontologyStore=e.ontologyStore,r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ui(e,t)}(t,e),r=t,(n=[{key:"getChoices",value:function(e){return this.getStaticChoices(e)||this.getDynamicChoices(e)||[]}},{key:"hasChoices",value:function(e){var t=this.getSource(e);return null!=t.ontologyUrl||null!=t.choices}},{key:"hasStaticChoices",value:function(e){return null!=this.getSource(e).choices}},{key:"getStaticChoices",value:function(e){var t=this.getSource(e);if(t.choices){var r=-1===this.getNodetype().indexOf("LITERAL");e&&this.isExtention()?this._origStaticIsSorted||(r&&fi(t.choices),this._origStaticIsSorted=!0):this._staticIsSorted||(r&&fi(t.choices),this._staticIsSorted=!0)}return t.choices}},{key:"setStaticChoices",value:function(e){var t=this.getSource(!0);t.choices!==e&&(null!=e&&(this._origStaticIsSorted=!0),t.choices=e,this.refreshExtends())}},{key:"setExtends",value:function(e){li(di(t.prototype),"setExtends",this).call(this,e),delete this._staticIsSorted,delete this._origStaticIsSorted}},{key:"getDynamicChoices",value:function(e){var t=this;if(null==this._dynamicChoices){if(null==e)return this._dynamicChoices=this._ontologyStore.getChoices(this),this._dynamicChoices;this._ontologyStore.getChoices(this,(function(r){t._dynamicChoices=r,null==t._dynamicChoices&&(console.log("Failed lookup of choices for ".concat(t.getLabel())),console.log("OntologyUrl is: ".concat(t._source.ontologyUrl))),e(t._dynamicChoices)}))}else{if(null==e)return this._dynamicChoices;e(this._dynamicChoices)}}},{key:"getOntologyUrl",value:function(e){var t=this.getSource(e).ontologyUrl;return null!=t&&""!==t?f(t):t}},{key:"setOntologyUrl",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.ontologyUrl:t.ontologyUrl=e,this.refreshExtends()}},{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties||["http://www.w3.org/2000/01/rdf-schema#label"]}},{key:"getParentProperty",value:function(e){var t=this.getSource(e).parentProperty;return null!=t&&""!==t?f(t):t}},{key:"setParentProperty",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.parentProperty:t.parentProperty=e,this.refreshExtends()}},{key:"getHierarchyProperty",value:function(e){var t=this.getSource(e).hierarchyProperty;return null!=t&&""!==t?f(t):t}},{key:"setHierarchyProperty",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.hierarchyProperty:t.hierarchyProperty=e,this.refreshExtends()}},{key:"isParentPropertyInverted",value:function(e){return!0===this.getSource(e).isParentPropertyInverted}},{key:"setParentPropertyInverted",value:function(e){var t=this.getSource(!0);!0===e?t.isParentPropertyInverted=!0:delete t.isParentPropertyInverted,this.refreshExtends()}},{key:"isHierarchyPropertyInverted",value:function(e){return!0===this.getSource(e).isHierarchyPropertyInverted}},{key:"setHierarchyPropertyInverted",value:function(e){var t=this.getSource(!0);e?t.isHierarchyPropertyInverted=!0:delete t.isHierarchyPropertyInverted,this.refreshExtends()}}])&&ii(r.prototype,n),o&&ii(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Do);r(8436);function hi(e){return(hi="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 mi(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,gi(n.key),n)}}function gi(e){var t=function(e,t){if("object"!=hi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=hi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hi(t)?t:String(t)}function bi(e,t,r){return t=wi(t),function(e,t){if(t&&("object"===hi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],wi(e).constructor):t.apply(e,r))}function vi(){return(vi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=yi(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function yi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=wi(e)););return e}function wi(e){return(wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xi(e,t){return(xi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var _i=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=bi(this,t,[e]))._validObject=!0,r._validPredicate=!0,r._excludeFromTreeValidityCheck=!1,r._statement&&(r._validPredicate=r._isValidPredicateValue(r._statement.getPredicate(),!0),r._validObject=r._isValidObjectValue(r._statement.getValue())),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xi(e,t)}(t,e),r=t,(n=[{key:"getValue",value:function(){return this._statement.getValue()}},{key:"setValue",value:function(e,t){var r="string"==typeof e?e.trim():e,n=this._validObject;this._isValidObjectValue(r)?(this._statement.setValue(r,t),this._validObject=!0,!0===n||!0!==this._validPredicate||this._excludeFromTreeValidityCheck||this._parent.oneChildValidityChanged(!0)):(""!==r&&null!==r||this._statement.setValue("",t),this._validObject=!1,!1!==n&&!0===this._validPredicate&&this._parent.oneChildValidityChanged(!1)),this.updateAssertions()}},{key:"setSubject",value:function(e){this._statement.setSubject(e)}},{key:"getPredicate",value:function(){return this._statement.getPredicate()}},{key:"setPredicate",value:function(e){var t=this._validPredicate;this._isValidPredicateValue(e)?(this._statement.setPredicate(e),this._validPredicate=!0,!0!==t&&!0===this._validObject&&this._parent.oneChildValidityChanged(!0)):(this._validPredicate=!1,!1!==t&&!0===this._validObject&&this._parent.oneChildValidityChanged(!1)),this.updateAssertions()}},{key:"getLanguage",value:function(){return this._statement.getLanguage()}},{key:"setLanguage",value:function(e,t){this._statement.setLanguage(e,t),t||this.bindingChange(this)}},{key:"getDatatype",value:function(){return this._statement.getDatatype()}},{key:"setDatatype",value:function(e){this._statement.setDatatype(f(e)),this.updateAssertions()}},{key:"setExcludeFromTreeValidityCheck",value:function(e){this._excludeFromTreeValidityCheck=e}},{key:"remove",value:function(){this.setValue(null),this._parent.removeChildBinding(this),vi(wi(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){var e=this._ancestorValid&&this._validObject&&this._validPredicate;this._statement.setAsserted(e,!0),this.bindingChange(this)}},{key:"isValid",value:function(){return this._validObject&&this._validPredicate&&!this._excludeFromTreeValidityCheck}}])&&mi(r.prototype,n),o&&mi(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(so);function ki(e){return(ki="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 Si(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,Ei(n.key),n)}}function Ei(e){var t=function(e,t){if("object"!=ki(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ki(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ki(t)?t:String(t)}function Ti(e,t,r){return t=Oi(t),function(e,t){if(t&&("object"===ki(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Oi(e).constructor):t.apply(e,r))}function Ci(){return(Ci="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Ai(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Ai(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Oi(e)););return e}function Oi(e){return(Oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Di(e,t){return(Di=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ji="http://www.w3.org/2000/01/rdf-schema#label",Pi="http://www.w3.org/2000/01/rdf-schema#seeAlso",Ri=function(e){function t(e){var r,n=e.choice,o=e.item,i=e.statement,a=e.matchingCode;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Ti(this,t,[{choice:n,item:o,statement:i,matchingCode:a}]))._choice=n,r._validPredicate=null!=o.getProperty(),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Di(e,t)}(t,e),r=t,o=[{key:"seeAlso",get:function(){return Pi}}],(n=[{key:"setChoice",value:function(e,t){this._choice=e,null==e?this.setValue(null,null,t):this.getValue()!==e.value&&this.setValue(e.value,e,t),e&&e.mismatch?this.setMatchingCode(lo.WRONG_VALUE):e&&e.mismatch||this.getMatchingCode()!==lo.WRONG_VALUE||this.setMatchingCode(lo.OK)}},{key:"getChoice",value:function(){return this._choice}},{key:"setValue",value:function(e,r,n){var o=this.getValue();Ci(Oi(t.prototype),"setValue",this).call(this,e,r,n);var i=this._statement.getGraph();if(i.findAndRemove(o,ji,void 0,n),i.findAndRemove(o,Pi,void 0,n),null!=e&&null!=r&&(r.seeAlso&&r.inlineSeeAlso&&i.create(e,Pi,r.seeAlso,!0,n),!0===r.inlineLabel)){var a=r.label||{};Object.keys(a).forEach((function(t){return i.create(e,ji,{value:a[t],lang:t,type:"literal"},!0,n)}))}}}])&&Si(r.prototype,n),o&&Si(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(_i);function Ii(e){return(Ii="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 Ni(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,Li(n.key),n)}}function Li(e){var t=function(e,t){if("object"!=Ii(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ii(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ii(t)?t:String(t)}function Mi(e,t,r){return t=Fi(t),function(e,t){if(t&&("object"===Ii(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Fi(e).constructor):t.apply(e,r))}function Fi(e){return(Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bi(e,t){return(Bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ui=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=Mi(this,t,[e]))._objectBinding=e.objectBinding,r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bi(e,t)}(t,e),r=t,(n=[{key:"remove",value:function(){}},{key:"setValue",value:function(e){this._objectBinding.setPredicate(e)}},{key:"getValue",value:function(){return this._objectBinding.getPredicate()}},{key:"isValid",value:function(){return!1}},{key:"updateAssertions",value:function(){}}])&&Ni(r.prototype,n),o&&Ni(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Ri);function Vi(e){return(Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $i(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,Hi(n.key),n)}}function Hi(e){var t=function(e,t){if("object"!=Vi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Vi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vi(t)?t:String(t)}function Wi(e,t,r){return t=zi(t),function(e,t){if(t&&("object"===Vi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],zi(e).constructor):t.apply(e,r))}function zi(e){return(zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yi(e,t){return(Yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Gi=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=Wi(this,t,[e]);var n=e.statement,o=e.constraints;r._statement=void 0,r._validPredicate=!0,r._constraints=[];var i,a=r._item.getChildren(),s=a[1];i=s instanceof Bo?new So({item:s,statement:n,constraints:o}):s instanceof pi?new Ri({item:s,statement:n}):new _i({item:s,statement:n});var l=new Ui({item:a[0],objectBinding:i});return r.addChildBinding(l),r.addChildBinding(i),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yi(e,t)}(t,e),r=t,(n=[{key:"getPredicateBinding",value:function(){return this._childBindings[0][0]}},{key:"getObjectBinding",value:function(){return this._childBindings[1][0]}},{key:"getGraph",value:function(){return this.getObjectBinding().getGraph()}}])&&$i(r.prototype,n),o&&$i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(So);function qi(e){return(qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qi(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,Zi(n.key),n)}}function Zi(e){var t=function(e,t){if("object"!=qi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=qi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qi(t)?t:String(t)}function Ki(e,t,r){return t=ta(t),function(e,t){if(t&&("object"===qi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],ta(e).constructor):t.apply(e,r))}function Ji(){return(Ji="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=ea(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function ea(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ta(e)););return e}function ta(e){return(ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ra(e,t){return(ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var na,oa,ia,aa,sa,la=function(e){function t(){return Xi(this,t),Ki(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ra(e,t)}(t,e),r=t,(n=[{key:"getValue",value:function(){return this._parent.getValue()}},{key:"setValue",value:function(e){return this._parent.setValue(e)}},{key:"getGist",value:function(){return this._parent.getGist()}},{key:"setGist",value:function(e,t){return this._parent.setGist(e,t)}},{key:"setSubject",value:function(e){}},{key:"getPredicate",value:function(){return this._parent.getPredicate()}},{key:"remove",value:function(){this._parent.removeChildBinding(this),Ji(ta(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){}},{key:"isValid",value:function(){return!0}}])&&Qi(r.prototype,n),o&&Qi(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(_i);function ca(e){return(ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var da,ua,fa,pa,ha,ma,ga=!1,ba=function(e,t,r){var n=new So({item:r,childrenRootUri:t,graph:e});return na(n),oa(n),n},va=function(e,t,r){var n=new So({item:r,childrenRootUri:t,graph:e});return na(n),ga=!0,na(n),ga=!1,oa(n),n},ya=function(e,t,r,n){var o=e.findProperties(t),i=[],a={};if(null!=n){var s=function(e){null!=e&&(!function e(t){null!=t.getProperty()?a[t.getProperty()]=!0:t instanceof Bo&&t.getChildren().forEach(e)}(e),i.push(e))};n.forEach((function(e){var t=r.getItem(e);null!=t?t instanceof Bo&&null==t.getProperty()?t.getChildren().forEach(s):s(t):(t=r.getItemByProperty(e))?s(t):console.warn("Warning, when autodetecting a template: Required item '".concat(e,"' is neither an id for a loaded item or a property for a loaded item, ignoring."))}))}return o.forEach((function(e){if(!a[e]){var t=r.getItemByProperty(e);null!=t&&i.push(t)}}),void 0),r.createTemplateFromChildren(i)},wa=function(e){return Array.isArray(e.getDatatype())?e.getDatatype()[0]:e.getDatatype()},xa=function(e,t){var r,n,o=t.getChildren()[1],i=e.getGraph();o instanceof Bo?(r=i.create(e.getChildrenRootUri(),"",null,!1),n=sa(i,r.getSubject(),o)):r=o instanceof pi?i.create(e.getChildrenRootUri(),"",{type:"uri",value:""},!1):i.create(e.getChildrenRootUri(),"",{type:"literal",value:""},!1);var a=new Gi({item:t,statement:r,constraints:n});return e.addChildBinding(a),o instanceof Bo&&o.getChildren().forEach((function(e){_a(a.getObjectBinding(),e)})),a},_a=function(e,t,r){return t instanceof ni?function(e,t){if(!t.getProperty()){var r=new la({item:t,statement:null,matchingCode:lo.OK});return e.addChildBinding(r),r}var n=e.getGraph(),o=t.getNodetype(),i={value:"",type:"literal"};"URI"===o?i.type="uri":"DATATYPE_LITERAL"===o&&(i.datatype=wa(t));var a=t.getValue();if(null!=a&&0===e.getChildBindingsFor(t).length){i.value=a;var s=t.getLanguage();null!=s&&(i.lang=s)}var l=n.create(e.getChildrenRootUri(),t.getProperty(),i,!1),c=new _i({item:t,statement:l});return e.addChildBinding(c),c}(e,t):t instanceof Xo?xa(e,t):t instanceof Bo?function(e,t,r){var n,o;if(void 0!==t.getProperty()){var i=e.getGraph();n=(t.getNodetype(),i.create(e.getChildrenRootUri(),t.getProperty(),null,!1)),o=sa(i,n.getValue(),t)}var a=new So({item:t,statement:n,constraints:o});e.addChildBinding(a);var s=t._source["@id"];if(s){if(r[s])return a;r[s]=!0}return a}(e,t,r||{}):t instanceof pi?function(e,t){var r=e.getGraph(),n=t.getNodetype(),o={type:"literal",value:""};"DATATYPE_LITERAL"===n?o.datatype=wa(t):"RESOURCE"!==n&&"URI"!==n||(o.type="uri");var i=r.create(e.getChildrenRootUri(),t.getProperty(),o,!1),a=new Ri({item:t,statement:i});e.addChildBinding(a);var s=t.getValue(),l=a.getCardinalityTracker();return null!=s&&1===l.getCounter()&&a.setChoice(ha(t,s,r),!0),a}(e,t):void 0};na=function(e){ga&&e.getChildBindings().forEach((function(e){"group"===e.getItem().getType()&&na(e)})),e.getItem().getChildren().forEach((function(t){ga?void 0!==t.getProperty()&&da(e,t):da(e,t)}))};da=function(e,t){t instanceof pi?function(e,t){if(null!=t.getProperty()){var r=[];e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(ia(e)){var n=ua(t,e),o=fa(t,e),i=pa(t,e);if(n&&o&&i||ga){var a=ha(t,e.getValue(),e.getGraph());if(void 0!==a){aa(e);var s=n?lo.OK:lo.WRONG_NODETYPE;o?i?a.mismatch&&(s=lo.WRONG_VALUE):s=lo.WRONG_PATTERN:s=lo.WRONG_DATATYPE,r.push(new Ri({item:t,statement:e,choice:a,matchingCode:s}))}}}})),r.length>0&&e.addChildBindings(r)}}(e,t):t instanceof Xo?function(e,t){var r,n,o,i,a=t.getPropertyItem(),s=t.getObjectItem(),l=e.getGraph(),c=[];l.find(e.getChildrenRootUri()).forEach((function(e){ia(e)&&ua(s,e)&&pa(s,e)&&void 0!==(o=ha(a,e.getPredicate(),e.getGraph()))&&(n=null,s instanceof Bo?void 0!==(r=ma(l,e.getValue(),s))&&(aa(e),n=new Gi({item:t,statement:e,constraints:r}),na(n.getObjectBinding())):s instanceof pi?void 0!==(i=ha(s,e.getValue(),e.getGraph()))&&(aa(e),(n=new Gi({item:t,statement:e})).getObjectBinding().setChoice(i)):(aa(e),n=new Gi({item:t,statement:e})),null!==n&&(n.getPredicateBinding().setChoice(o),c.push(n)))})),c.length>0&&e.addChildBindings(c)}(e,t):t instanceof Bo?function(e,t){var r,n,o,i,a=e.getGraph();void 0!==t.getProperty()?(r=a.find(e.getChildrenRootUri(),t.getProperty())).length>0&&(n=[],r.forEach((function(e){if(ia(e)){var r=pa(t,e),s=ua(t,e);if((r&&s||ga)&&(void 0!==(o=ma(a,e.getValue(),t))||ga)){var l=s?lo.OK:lo.WRONG_NODETYPE;r?void 0===o&&(l=lo.MISSING_CONSTRAINTS):l=lo.WRONG_PATTERN,aa(e),i=new So({item:t,statement:e,constraints:o,matchingCode:l}),n.push(i),l===lo.OK&&na(i)}}})),e.addChildBindings(n)):(i=new So({item:t}),e.addChildBindings([i]),na(i))}(e,t):t instanceof ni&&function(e,t){var r=[];null==t.getProperty()?r.push(new la({item:t,statement:null,matchingCode:lo.OK})):e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(ia(e)&&pa(t,e)){var n=ua(t,e),o=fa(t,e);if(n&&(o||t.hasStyle("relaxedDatatypeMatch"))||ga){aa(e);var i=n?lo.OK:lo.WRONG_NODETYPE;o||(i=lo.WRONG_DATATYPE),r.push(new _i({item:t,statement:e,matchingCode:i}))}}})),r.length>0&&e.addChildBindings(r)}(e,t)},ua=function(e,t){var r=t.getType();switch(e.getNodetype()){case"LITERAL":case"ONLY_LITERAL":case"PLAIN_LITERAL":case"LANGUAGE_LITERAL":case"DATATYPE_LITERAL":return"literal"===r;case"RESOURCE":return"uri"===r||"bnode"===r;case"URI":return"uri"===r;case"BLANK":return"bnode"===r}return!1},fa=function(e,t){var r="DATATYPE_LITERAL"===e.getNodetype()&&e.getDatatype()||null;return null==r||(Array.isArray(r)?-1!==r.indexOf(t.getDatatype()):t.getDatatype()===r)},pa=function(e,t){var r=e.getPattern(),n=Vn.extractGist(t.getValue(),e.getValueTemplate());if(void 0!==r)try{return new RegExp("^".concat(r,"$")).test(n)}catch(e){return!0}return!0},ma=function(e,t,r){var n,o=r.getConstraints(),i=[],a=function(r,o){if(1!==(n=e.find(t,r,{type:"uri",value:o})).length)return!1;i.push(n[0])};if("object"===ca(o)&&null!==o){for(var s,l=Object.keys(o),c=function(){var e=l[d],t=o[e];if(t instanceof Array){var r=!0;if(t.forEach((function(t){!1!==a(e,t)&&(r=!1)})),r)return{v:void 0}}else if(!1===a(e,t))return{v:void 0}},d=0;d<l.length;d++)if(s=c())return s.v;return i}return[]},sa=function(e,t,r){var n=[],o=r.getConstraints();return"object"===ca(o)&&null!==o&&Object.keys(o).forEach((function(r){var i=o[r];Array.isArray(i)?n.push(e.create(t,r,{type:"uri",value:i[0]},!1)):n.push(e.create(t,r,{type:"uri",value:i},!1))})),n},ha=function(e,t,r){var n,o;if(e.hasChoices()){for(o=e.getChoices(),n=0;n<o.length;n++)if(o[n].value===t)return o[n];if(!e.hasStyle("strictmatch")||ga)return{value:t,label:{"":t},mismatch:!0}}else{var i=Vn.getLocalizedMap(r,t,e.getLabelProperties());null==i&&ga&&(i={"":t,mismatch:!0});var a=r.findFirstValue(t,Ri.seeAlso);if(null!=i){var s={label:i,value:t};return a&&(s.seeAlso=a),s}if(null!=Hn.getChoice)return Hn.getChoice(e,t,a,r)}},aa=function(e){e._dibbs=!0},ia=function(e){return!0!==e._dibbs},oa=function(e){var t,r,n,o=e.getItemGroupedChildBindings()||[];for(t=0;t<o.length;t++)for(n=o[t],r=0;r<n.length;r++){var i=n[r];i._statement&&delete i._statement._dibbs,(i instanceof So||i instanceof Gi)&&oa(i)}};var ka=function e(t,r){for(var n="/"===r[0]?r.slice(1):r,o=t.getItemGroupedChildBindings(),i=n[0],a=0;a<o.length;a++)for(var s=o[a],l=void 0,c=0;c<s.length;c++){var d=s[c],u=d.getItem();if(u instanceof pi&&void 0===u.getProperty()&&i===u.getId()&&2===n.length&&n[1]===d.getValue())return d;if(d.isValid()){if("propertygroup"===u.getType())u=(d=d.getObjectBinding()).getItem();else if(void 0===u.getProperty()&&(l=e(d,n)))return l;if("*"===i||i===d.getPredicate())if("group"===u.getType()){if(l=e(d,n.slice(1)))return l}else if(1===n.length||"*"===n[1]||n[1]===d.getValue())return d}}},Sa=function(e,t){var r=t[0],n=e;if("/"===r){for(;n.getParent();)n=n.getParent();return n}if(".."===r){for(var o=0;o<t.length;o++){if(".."!==t[o]||!n.getParent())return n;n=n.getParent()}return n}return e},Ea=function(e,t){var r=e.getId(),n={},o={};e.getChoices().forEach((function(e){n[e.value]=0,o[e.value]=e}));t.getChildBindings().forEach((function(e){var t=e.getItem().getDeps();if(t&&(t[0]===r||"/"===t[0]&&t[1]===r)){var o="/"===t[0]?t[2]:t[1],i=n[o];void 0!==i&&(n[o]=i+1)}}));var i,a=0;return Object.keys(n).forEach((function(e){(!i||n[e]>a)&&(i=e,a=n[e])})),o[i]};const Ta={detectLevel:function(e){if(e.mandatory>0){if(0===e.recommended&&0===e.optional)return"mandatory";if(0===e.optional)return"mixed_mandatory_recommended";if(0===e.recommended)return"mixed_mandatory_optional"}else{if(e.recommended>0)return 0===e.optional?"recommended":"mixed_recommended_optional";if(0===e.recommended&&e.recommended>0&&0===e.optional)return"optional"}return"mixed_all"},levelProfile:function(e){var t=function e(t,r,n){var o=r.getCardinality();return n&&"group"===r.getType()||(null!=o?o.min>0?t.mandatory+=1:o.pref>0?t.recommended+=1:t.optional+=1:t.optional+=1),"group"===r.getType()&&r.getChildren().forEach((function(r){return e(t,r)})),t}({mandatory:0,recommended:0,optional:0},e,!0);return t.itemCount=t.mandatory+t.recommended+t.optional,t},findFirstValueBinding:function e(t,r){if(t instanceof _i)return t;for(var n=t.getItemGroupedChildBindings(),o=Fn().locale(),i=0;i<n.length;i++){var a=n[i],s=t.getItem().getChildren()[i];if(0!==a.length){if(!(s instanceof ni))return e(a[0]);if("LANGUAGE_LITERAL"===s.getNodetype()){for(var l={firstValue:a[0]},c=0;c<a.length;c++){var d=a[c].getLanguage();null==d?l.emptyLanguageValue=a[c]:d===o?l.perfectLocaleLanguageValue=a[c]:d.substring(0,1)===o.substring(0,1)?l.localeLanguageValue=a[c]:-1!==d.indexOf("en")?l.defaultLanguageValue=a[c]:l.anyLanguageValue=a[c]}return l.perfectLocaleLanguageValue||l.localeLanguageValue||l.defaultLanguageValue||l.anyLanguageValue||l.firstValue}return a[0]}if(r){var u=_a(t,s,{});return u instanceof _i?(u.setLanguage(o),u):e(u,!0)}}},create:_a,constructTemplate:ya,findPopularChoice:Ea,match:ba,fuzzyMatch:va,matchPathBelowBinding:ka,findBindingRelativeToParentBinding:Sa,CODES:lo};var Ca=function(e,t){var r=t;return null==r?r={errors:[],warnings:[],deprecated:[]}:(r.errors=r.errors||[],r.warnings=r.warnings||[],r.deprecated=r.deprecated||[]),ja(e,r,!0)},Aa=function(e){for(var t=0,r=0;r<e.length;r++)e[r].isValid()&&(t+=1);return t},Oa=function(e,t){e.length>0&&e[0].getCardinalityTracker().setCode(t)},Da=function(e,t){if(t.hasStyle("deprecated"))return!0;var r=t.getDeps();if(r){var n=Sa(e,r);if(!ka(n,r))return!0}return!1},ja=function e(t,r,n){if(t.getMatchingCode()===lo.OK){var o=t.getItem();if(!0===n||t.isValid()||null==o.getProperty()||o.hasStyle("atLeastOneChild")||o.hasStyle("exactlyOneChild")){var i=o.getChildren();if(o.hasStyle("disjoint")||o.hasStyle("atMostOneChild")||o.hasStyle("atLeastOneChild")||o.hasStyle("exactlyOneChild")){var a,s=t.getChildBindings(),l=Aa(s);l>1&&(o.hasStyle("disjoint")||o.hasStyle("atMostOneChild"))?a=lo.AT_MOST_ONE_CHILD:1!==l&&o.hasStyle("exactlyOneChild")?a=lo.EXACTLY_ONE_CHILD:0===l&&o.hasStyle("atLeastOneChild")&&(a=lo.AT_LEAST_ONE_CHILD),a&&(Oa([t],a),i.length>0&&r.errors.push({parentBinding:t,item:i[0],code:a}))}else t.getItemGroupedChildBindings().forEach((function(e,n){var o=i[n];if(!Da(t,o)&&null!=o.getProperty()){var a=Aa(e),s=o.getCardinality();null!=s.min&&s.min>a?(r.errors.push({parentBinding:t,item:o,code:lo.TOO_FEW_VALUES_MIN}),Oa(e,lo.TOO_FEW_VALUES_MIN)):null!=s.pref&&s.pref>a&&r.warnings.push({parentBinding:t,item:o,code:lo.TOO_FEW_VALUES_PREF}),null!=s.max&&s.max<a&&(r.errors.push({parentBinding:t,item:o,code:lo.TOO_MANY_VALUES}),Oa(e,lo.TOO_MANY_VALUES))}}),void 0);t.getChildBindings().forEach((function(n){var o=n.getItem();n.getMatchingCode()!==lo.OK&&r.errors.push({parentBinding:n,item:o,code:n.getMatchingCode()}),o.hasStyle("deprecated")&&r.deprecated.push(n),Da(t,o)||"group"===o.getType()&&e(n,r)}))}return r}},Pa=function(e,t){return e.find(null,"rdf:type",t).map((function(e){return e.getSubject()}))},Ra=function(e,t,r){for(var n=e;;){var o=n.getChildrenRootUri?n.getChildrenRootUri():n.getParent().getChildrenRootUri();if(o===t)return!0;if(r[o])return!1;n=n.getParent()}},Ia=function(e,t){var r=e,n=[];for(null!=t.getProperty()&&r.getItem()!==t&&n.push(u(t.getProperty()));null!=r.getItem().getProperty()&&n.push(u(r.getItem().getProperty())),null!=r.getParent();)r=r.getParent();return n.reverse(),n.join(" > ")},Na=function(e){var t=e.errors,r=e.warnings,n=e.deprecated;e.errors=t.map((function(e){return{path:Ia(e.parentBinding,e.item),code:e.code}})),e.warnings=r.map((function(e){return{path:Ia(e.parentBinding,e.item),code:e.code}})),e.deprecated=n.map((function(e){return function(e){return"".concat(Ia(e.getParent(),e.getItem())," > ").concat(e.getValue())}(e)}))},La=function(e,t,r,n){var o=va(t,e,r),i=Ca(o);return function(e,t,r){var n=e.errors,o=e.warnings,i=e.deprecated;e.errors=n.filter((function(e){return Ra(e.parentBinding,t,r)})),e.warnings=o.filter((function(e){return Ra(e.parentBinding,t,r)})),e.deprecated=i.filter((function(e){return Ra(e,t,r)}))}(i,e,n||{}),Na(i),i};const Ma={graphReport:function(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={},a={},s={errors:0,warnings:0,deprecated:0,resources:[]};Object.keys(t).forEach((function(t){var r=Pa(e,t);i[t]=r,r.forEach((function(e){a[e]=!0}))})),Object.keys(i).forEach((function(o){r=t[o],i[o].forEach((function(t){(n=La(t,e,r,a)).uri=t,n.type=o,n.template=r.getId(),s.resources.push(n),s.errors+=n.errors.length,s.warnings+=n.warnings.length,s.deprecated+=n.deprecated.length}))}));var l=[];return o.forEach((function(e){0===i[e].length&&l.push(e)})),l.length>0&&(s.mandatoryError=l,s.errors+=l.length),s},bindingReport:Ca};function Fa(e){return(Fa="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 Ba(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,Ua(n.key),n)}}function Ua(e){var t=function(e,t){if("object"!=Fa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fa(t)?t:String(t)}var Va=0;function $a(e){return($a="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 Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wa(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,za(n.key),n)}}function za(e){var t=function(e,t){if("object"!=$a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=$a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$a(t)?t:String(t)}function Ya(e,t,r){return t=Xa(t),function(e,t){if(t&&("object"===$a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Xa(e).constructor):t.apply(e,r))}function Ga(){return(Ga="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=qa(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function qa(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Xa(e)););return e}function Xa(e){return(Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qa(e,t){return(Qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Za=function(e,t,r){if(0===r.length||t.hasStyle("invisible"))return!1;if(t.getProperty())return!e.filterItem(t);if("group"===t.getType()){var n=t.getChildren();return 0===n.length||!!r[0].getItemGroupedChildBindings().find((function(t,r){return Za(e,n[r],t)}))}return!0},Ka=function(e){function t(){return Ha(this,t),Ya(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qa(e,t)}(t,e),r=t,(n=[{key:"_handleParams",value:function(e){this.showLanguage=!1!==e.showLanguage,this.filterTranslations=!1!==e.filterTranslations,this.defaultLanguage=e.defaultLanguage,this.styleCls=e.styleCls||"rdformsPresenter",Ga(Xa(t.prototype),"_handleParams",this).call(this,e)}},{key:"showNow",value:function(e,t){return Za(this,e,t)}},{key:"skipBinding",value:function(e){var t=e.getItem(),r="group"===t.getType();return!(!t.getProperty()&&r&&0===t.getChildren().length)&&r&&0===e.getChildBindings().length}},{key:"prepareBindings",value:function(e,t){return e.hasStyle("filterTranslations")||this.filterTranslations&&"LANGUAGE_LITERAL"===e.getNodetype()&&!e.hasStyle("viewAllTranslations")?ro.filterTranslations(t,Fn().locale(),this.defaultLanguage):t}},{key:"addLabel",value:function(e,t,r){r.hasStyle("noLabelInPresent")?ro.domClassToggle(e,"rdformsInvisibleGroup",!0):ro.renderPresenterLabel(e,t,r,this.context)}},{key:"addTable",value:function(e,t){return ro.addPresenterTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){return ro.fillPresenterTable(e,t,{view:this})}},{key:"preRenderView",value:function(){ro.prePresenterViewRenderer(this.domNode,this.binding,{view:this,topLevel:this.topLevel})}},{key:"addComponent",value:function(e,t){ro.renderPresenter(e,t,this.context)}},{key:"truncateAt",value:function(e,t){return"group"!==e.getType()&&t&&t.length>this.truncateLimit&&(this.truncate||e.hasStyle("truncate"))&&!e.hasStyle("noTruncate")?this.truncateLimit:-1}}])&&Wa(r.prototype,n),o&&Wa(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewId=Va,Va+=1,this.parentView=t.parentView,this.srcNodeRef=r,this.binding=t.binding||null,this.template=t.template||null,this.graph=t.graph||null,this.resource=t.resource||"",this.topLevel=!1!==t.topLevel,this.compact=!1!==t.compact,this.showDescription=!0===t.showDescription,this.styleCls=t.styleCls||"",this.truncateLimit=void 0!==t.truncateLimit?t.truncateLimit:10,this.truncate=void 0!==t.truncate&&t.truncate,Array.isArray(t.filterPredicates)?this.filterPredicates=t.filterPredicates.reduce((function(e,t){return e[t]=!0,e}),{}):"object"===Fa(t.filterPredicates)?this.filterPredicates=t.filterPredicates:"string"==typeof t.filterPredicates?this.filterPredicates=t.filterPredicates.split(",").reduce((function(e,t){return e[t]=!0,e}),{}):this.filterPredicates=null,this.restrictToItem=t.restrictToItem,this.fuzzy=!0===t.fuzzy,this.markOrigin=!1!==t.markOrigin,this._handleParams(t),this._labelIndex={},this.domNode=ro.createDomNode(r,this),ro.domClassToggle(this.domNode,"rdforms",!0),ro.domClassToggle(this.domNode,this.styleCls,!0),this.render()}var t,r,n;return t=e,(r=[{key:"getParentView",value:function(){return this.parentView}},{key:"getNamedGraphId",value:function(e){if(this.markOrigin){this.namedGraphs||(this.namedGraphs={},this.namedGraphCounter=65);var t=this.namedGraphs[e];return void 0===t&&(t=String.fromCharCode(this.namedGraphCounter),this.namedGraphs[e]=t,this.namedGraphCounter+=1),t}}},{key:"getNamedGraphFromId",value:function(e){var t=this;return this.namedGraphs?Object.keys(this.namedGraphs).find((function(r){return t.namedGraphs[r]===e})):void 0}},{key:"destroy",value:function(){ro.destroyDomNode(this.domNode,this)}},{key:"getBinding",value:function(){return this.binding}},{key:"_handleParams",value:function(e){if(e.binding)this.binding=e.binding;else{if(this.template=e.template||this.template,this.graph=e.graph||this.graph,this.resource=e.resource||this.resource,null==this.graph||null==this.resource||null==this.template)return;this.fuzzy?(this.binding=va(this.graph,this.resource,this.template),Ca(this.binding)):this.binding=ba(this.graph,this.resource,this.template)}}},{key:"showNow",value:function(){return!0}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(){}},{key:"addTable",value:function(){}},{key:"fillTable",value:function(){}},{key:"addLabel",value:function(){}},{key:"addComponent",value:function(){}},{key:"showAsTable",value:function(e){return"group"===e.getType()&&(e.hasStyle("table")||e.hasClass("rdformsTable"))}},{key:"show",value:function(e){this._handleParams(e),this.render()}},{key:"render",value:function(){if(ro.domText(this.domNode,""),null!=this.binding){var e=ro.getMessages();if(this.messages=e,null!=this.binding){var t,r,n,o,i,a=this.binding.getItem().getChildren(),s=this.binding.getItemGroupedChildBindings();for(this._binding2node={},!this.compact&&!this.binding.getItem().hasStyle("compact")||this.binding.getItem().hasStyle("nonCompact")?ro.domClassToggle(this.domNode,"compact",!1):ro.domClassToggle(this.domNode,"compact",!0),this.preRenderView(),t=0;t<s.length;t++)if(o=s[t],i=a[t],(!this.restrictToItem||this.restrictToItem===i)&&this.showNow(i,o)){if(o=this.prepareBindings(i,o),this.showAsTable(i))this.context={view:this},n=this.createRowNode(n,o[0],i),o.length>0&&(r=this.addTable(n,o[0],i),this.fillTable(r,o));else if(o.length>0)if(this.isMultiValued(i))this.context={view:this},n=this.addRow(n,o[0],!0);else{for(var l=this.truncateAt(i,o),c=0;c<o.length;c++)this.context={view:this},n=this.addRow(n,o[c],0===c||o[c]instanceof So,c,l);if(-1!==l){var d=ro.domQuery(".rdformsFields",n);d&&ro.addTruncateControl(d,this.context)}}else this.context={view:this},n=this.createRowNode(n,null,i);o.length>0&&o[0].getCardinalityTracker().checkCardinality()}}}}},{key:"addRow",value:function(e,t,r,n,o){var i,a,s=r,l=t.getItem();if(!this.skipBinding(t)){if(null==s&&(s=t instanceof So),!0===s){a=this.createRowNode(e,t,l);var c=ro.domCreate("div",a);ro.domClassToggle(c,"rdformsFields",!0),-1!==o&&ro.domClassToggle(c,"rdformsTruncated",!0),l.hasStyle("inline")&&ro.domClassToggle(c,"rdformsInline",!0),i=ro.domCreate("div",c),this.createEndOfRowNode(a,t,l)}else{var d=ro.domQuery(".rdformsFields",e);if(null!=d)i=ro.domCreate("div",d),ro.domClassToggle(i,"rdformsRepeatedValue",!0),-1!==o&&n>=o&&ro.domClassToggle(i,"rdformsMaybeTruncated",!0);else{var u=ro.domCreate("div",e);ro.domClassToggle(u,"rdformsFields",!0),l.hasStyle("inline")&&ro.domClassToggle(u,"rdformsInline",!0),i=ro.domCreate("div",u),this.createEndOfRowNode(a,t,l)}}if(this.markOrigin){var f=this.getNamedGraphId(t);f?(ro.domClassToggle(i,"rdformsOrigin",!0),ro.domClassToggle(i,"rdformsOrigin_".concat(f),!0)):(ro.domClassToggle(i,"rdformsOrigin",!0),ro.domClassToggle(i,"rdformsOrigin_default",!0))}return"group"===l.getType()?ro.domClassToggle(i,"rdformsGroup",!0):ro.domClassToggle(i,"rdformsField",!0),this._binding2node[t.getHash()]=i,this.addComponent(i,t),l.hasStyle("invisible")&&ro.domClassToggle(a||e,"rdformsInvisible",!0),a||e}}},{key:"createRowNode",value:function(e,t,r){var n;n=null==e?ro.domCreate("div",this.domNode,t?this.getRowIndex(t):void 0):ro.domCreateAfter("div",e,t?this.getRowIndex(t):void 0),r.getClasses().forEach((function(e){ro.domClassToggle(n,e,!0)})),ro.domClassToggle(n,"rdformsRow",!0),ro.domClassToggle(n,"rdformsTopLevel",this.topLevel),ro.domClassToggle(n,"rdformsInvisibleGroup",r.hasStyle("invisibleGroup")),ro.domClassToggle(n,"rdformsHeading",r.hasStyle("heading")),ro.domClassToggle(n,"notCompact","group"===r.getType()||r.hasStyle("nonCompact")),ro.domClassToggle(n,"rdformsCompactItem",r.hasStyle("compact")),this.addLabel(n,t,r),t&&this.filterBinding(t)&&ro.domClassToggle(n,"hiddenProperty",!0);var o=void 0!==this._subEditors;return(r.hasStyle("card")||r.hasStyle("cardInEdit")&&o||r.hasStyle("cardInPresent")&&!o)&&ro.domClassToggle(n,"rdformsCard",!0),n}},{key:"createEndOfRowNode",value:function(e,t,r){}},{key:"_getFilterPredicates",value:function(){return this.parentView?this.parentView._getFilterPredicates():this.filterPredicates}},{key:"filterBinding",value:function(e){return this.filterItem(e.getItem())}},{key:"filterItem",value:function(e){var t=this,r=this._getFilterPredicates();return!!r&&function e(r,n){var o=r.getId();if(o&&Object.keys(n).includes(o))return!0;var i=r.getProperty();if(i){for(var a=!0,s=t;s.parentView;)s.getBinding().getItem().getProperty()&&(a=!1),s=s.parentView;var l=d(i);return a?!0===n[i]||!0===n[l]||!0===n["*".concat(i)]||!0===n["".concat(l)]:!0===n["*".concat(i)]||!0===n["*".concat(l)]}if("group"===r.getType()){var c=r.getChildren()||[],u=!1;return c.forEach((function(t){e(t,n)||(u=!0)})),!u}return!1}(e,r)}},{key:"filterProperty",value:function(e){return!0===(this._getFilterPredicates()||{})[e]}},{key:"getLabelIndex",value:function(e){var t,r=this;return e.getParent().getChildBindingsFor(e.getItem()).reverse().find((function(e){return void 0!==(t=r._labelIndex[e.getHash()])})),void 0!==t?t:this.parentView?this.parentView.getLabelIndex(e.getParent()):""}},{key:"createLabelIndex",value:function(e){var t="".concat(e.getHash(),"_").concat(this._viewId,"_label");return this._labelIndex[e.getHash()]=t,t}},{key:"getRowIndex",value:function(e){return"".concat(e.getHash(),"_").concat(this._viewId,"_row")}},{key:"isMultiValued",value:function(e){return!1}},{key:"truncateAt",value:function(e,t){return-1}}])&&Ba(t.prototype,r),n&&Ba(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}());function Ja(e){return(Ja="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 es(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ts(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,rs(n.key),n)}}function rs(e){var t=function(e,t){if("object"!=Ja(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ja(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ja(t)?t:String(t)}function ns(e,t,r){return t=as(t),function(e,t){if(t&&("object"===Ja(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],as(e).constructor):t.apply(e,r))}function os(){return(os="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=is(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function is(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=as(e)););return e}function as(e){return(as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ss(e,t){return(ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ls=function(e,t,r,n){if(t.hasStyle("presenterOnly"))return!1;if(t.hasStyle("deprecated")&&0===r.length)return!1;var o=t.getProperty();if(r.length>0){if(o)return!e.filterItem(t);if("group"!==t.getType())return!0;var i=t.getChildren();if(0===i.length)return!0;if(t.hasStyle("atLeastOneChild")||t.hasStyle("exactlyOneChild"))return!0;if(r[0].getItemGroupedChildBindings().find((function(t,r){return ls(e,i[r],t,n)})))return!0;if(!o)return!1}var a=t.getCardinality();switch(n){case"mandatory":return a&&a.min>=1;case"recommended":return a&&(a.min>=1||a.pref>=1);default:return!0}},cs=function(e){function t(){return es(this,t),ns(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ss(e,t)}(t,e),r=t,(n=[{key:"_handleParams",value:function(e){this._subEditors=this._subEditors||[],this.includeLevel=e.includeLevel||"recommended",this.hideAddress=!1!==e.hideAddress,e.styleCls=e.styleCls||"rdformsEditor",e.filterTranslations=void 0!==e.filterTranslations&&e.filterTranslations,os(as(t.prototype),"_handleParams",this).call(this,e)}},{key:"getSubEditorForBinding",value:function(e){return this._subEditors.find((function(t){return t.getBinding()===e}))}},{key:"report",value:function(e){var t=this,r=e||Ca(this.binding);Object.keys(this._binding2node).forEach((function(e){ro.domClassToggle(t._binding2node[e],"errorReport",!1)}));for(var n=function(){var e=r.errors[o];if(e.parentBinding===t.binding)if(e.code===lo.TOO_FEW_VALUES_MIN){var n=e.item,i=n.getCardinality().min;t.binding.getChildBindingsFor(n).find((function(e){return i-=1,e.isValid()||ro.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0),0===i}))}else e.code===lo.AT_MOST_ONE_CHILD&&t.binding.getChildBindings().forEach((function(e){e.getMatchingCode()!==lo.OK&&ro.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0)}))},o=0;o<r.errors.length;o++)n();for(var i=0;i<this._subEditors.length;i++)this._subEditors[i].report(r)}},{key:"getIncludeLevel",value:function(){return this.includeLevel}},{key:"setIncludeLevel",value:function(e){this.includeLevel!==e&&(this.includeLevel=e,null!=this.graph&&null!=this.resource&&null!=this.template&&(this.binding=ba(this.graph,this.resource,this.template),this._subEditors=[],this.render()))}},{key:"show",value:function(e){this._subEditors=[],os(as(t.prototype),"show",this).call(this,e)}},{key:"showNow",value:function(e,t){return ls(this,e,t,this.includeLevel)}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var r,n=t,o=e.getCardinality();if(r=o.pref>0?o.pref:o.min>0?o.min:"propertygroup"===e.getType()?1:"group"===e.getType()?(e.getProperty(),1):1,e.hasStyle("nonEditable")&&!e.hasStyle("autoInitDate")&&!e.hasStyle("autoUpdateDate")&&!e.hasStyle("autoUUID")&&!e.hasStyle("autoValue")&&!e.getValue())return n;if(r>n.length)for(n=n.concat([]);r>n.length;)n.push(_a(this.binding,e));return n}},{key:"addLabel",value:function(e,t,r){ro.renderEditorLabel(e,t,r,this.context)}},{key:"createEndOfRowNode",value:function(e,t,r){ro.renderEditorLabelScopeEnd(e,t,r,this.context)}},{key:"addTable",value:function(e,t){return t.getItem().hasStyle("nonEditable")?this.addComponent(e,t):ro.addEditorTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){ro.fillEditorTable(e,t,{view:this})}},{key:"preRenderView",value:function(){ro.preEditorViewRenderer(this.domNode,this.binding,{view:this,inEditor:!0,topLevel:this.topLevel,hideAddress:this.hideAddress})}},{key:"addComponent",value:function(e,t){this.context.inEditor=!0,t.getItem().hasStyle("nonEditable")?ro.renderPresenter(e,t,this.context):ro.renderEditor(e,t,this.context)}},{key:"createRowNode",value:function(e,r,n){if(null!=r||!n.hasStyle("nonEditable")){var o=os(as(t.prototype),"createRowNode",this).call(this,e,r,n);if("choice"===n.getType()&&void 0===n.getProperty()){var i=Ea(n,r.getParent());i&&r.setChoice(i)}var a=n.getDeps();if(a){var s=function(e){e?(ro.domClassToggle(o,"missingDepsWithValue",!1),ro.domClassToggle(o,"missingDeps",!1)):r.isValid()?ro.domClassToggle(o,"missingDepsWithValue",!0):ro.domClassToggle(o,"missingDeps",!0),r.getCardinalityTracker().setDepsOk(e)},l=Sa(r.getParent(),a);ka(l,a)||s(!1),l.addListener((function e(){r.getParent()?s(ka(l,a)):l.removeListener(e)}))}return this.filterBinding(r)&&ro.domClassToggle(o,"hiddenProperty",!0),n.hasStyle("deprecated")&&ro.domClassToggle(o,"rdformsDeprecated",!0),o}}},{key:"isMultiValued",value:function(e){return ro.multiValueSupport&&(e.hasStyle("horizontalCheckBoxes")||e.hasStyle("verticalCheckBoxes"))}},{key:"truncateAt",value:function(e,t){return-1}}])&&ts(r.prototype,n),o&&ts(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Ka);ro.renderPresenterLabel=function(e,r,n,o,i){var a=o.view instanceof cs&&n.getEditLabel()||n.getLabel();a=null!=a&&""!==a?a.charAt(0).toUpperCase()+a.slice(1):"";var s=n.hasStyle("heading")?t()('<h2 class="rdformsLabel" tabindex="0">').text(a).appendTo(e):t()('<div class="rdformsLabel" tabindex="0">').text(a).appendTo(e);r&&s.attr("id",o.view.createLabelIndex(r)),i&&s.addClass("rdformsLabelRow"),o&&(o.labelNode=s[0]);var l=o.view;if(n.hasStyle("showDescriptionInPresent")||l.showDescription){var c=n.hasStyle("compact")||l.compact&&!n.hasStyle("nonCompact")&&(l.topLevel&&"group"!==n.getType()||l.parentView&&l.parentView.topLevel&&l.binding.getItem().hasStyle("heading")),d=n.getDescription();!c&&d&&t()('<div class="rdformsDescription" tabindex="0">').text(d).appendTo(e)}ro.attachItemInfo(n,s[0],o)},ro.attachItemInfo=function(e,t){if(null!=e&&null!=e.getDescription()){var r=e.getDescription();t.setAttribute("title",r)}};const ds=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&","<":"<",">":">",'"':""","'":"'"});const us=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o};const fs=function(e){return"symbol"==typeof e||Qt(e)&&"[object Symbol]"==rt(e)};var ps=Ge?Ge.prototype:void 0,hs=ps?ps.toString:void 0;const ms=function e(t){if("string"==typeof t)return t;if(rr(t))return us(t,e)+"";if(fs(t))return hs?hs.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};const gs=function(e){return null==e?"":ms(e)};var bs=/[&<>"']/g,vs=RegExp(bs.source);const ys=function(e){return(e=gs(e))&&vs.test(e)?e.replace(bs,ds):e};var ws=function(e){var t,r=function(e){return e&&e.length>1?parseInt(e[0],10):0},n=r(e.match(/([0-9])*Y/)),o=r(e.match(/([0-9])*D/)),i=r(e.match(/([0-9])*H/)),a=0;if(-1===e.indexOf("T"))t=r(e.match(/([0-9])*M/));else{var s=e.split("T");t=r(s[0].match(/([0-9])*M/)),a=r(s[1].match(/([0-9])*M/))}return{years:n,months:t,days:o,hours:i,minutes:a}},xs=function(e){switch(e){case"http://www.w3.org/2001/XMLSchema#dateTime":case"http://purl.org/dc/terms/W3CDTF":return"DateTime";case"http://www.w3.org/2001/XMLSchema#date":return"Date";case"http://www.w3.org/2001/XMLSchema#gYear":return"Year";case"http://www.w3.org/2001/XMLSchema#time":return"Time";case"http://www.w3.org/2001/XMLSchema#gYearMonth":return"YearMonth";case"http://www.w3.org/2001/XMLSchema#gMonthDay":return"MonthDay";default:return}},_s=function(e){var t=e.getValue();if(null!=t&&""!==t){var r=e.getItem(),n=function(e){try{if(e.includes(":")&&!e.includes("T")){var t=(new Date).toISOString().substr(0,11),r=new Date("".concat(t).concat(e));return r.setMinutes(r.getMinutes()+r.getTimezoneOffset()),r}return new Date(e)}catch(e){return null}}(t);if(n){var o=function(e){return e.indexOf("T")>0?"DateTime":e.indexOf(":")>0?"Time":/^\d\d\d\d-\d\d$/.test(e)?"YearMonth":/^\d\d-\d\d$/.test(e)?"MonthDay":e.length>4?"Date":"Year"}(t),i=xs(e.getDatatype()),a=function(e){var t=e.getDatatype();return Array.isArray(t)?xs(t[0]):xs(t)}(r),s=function(e){var t={},r=e.getDatatype();return(Array.isArray(r)?r:[r]).forEach((function(e){var r=xs(e);r&&(t[r]=!0)})),t}(r);return function(e,t){switch(e){case"DateTime":return Fn()(t).format("lll");case"Date":return Fn()(t).format("LL");case"Time":return Fn()(t).format("LT");case"Year":return Fn()(t).format("YYYY");case"YearMonth":return Fn()(t).format("MMMM YYYY");case"MonthDay":return Fn()(t).format("D MMMM");default:return""}}(s[i]?i:s[o]?o:a,n)}}},ks=function(e,t){var r,n=null===(r=e.getStatement()||e.getParent().getStatement())||void 0===r?void 0:r.getNamedGraph();if(n){for(var o=t.view;o.getParentView();)o=o.getParentView();return o.getNamedGraphId(n)}},Ss=r(9755),Es=ro.presenterRegistry;Es.itemtype("text").nodetype("URI").register((function(e,t){var r=Vn.getLocalizedMap(t),n=Ss('<a class="rdformsUrl">').attr("title",t.getValue()).attr("href",t.getValue()).appendTo(e);t.getItem().hasStyle("showValue")?n.text(t.getValue()):r?n.text(Vn.getLocalizedValue(r).value):n.text(t.getGist()),t.getItem().hasStyle("externalLink")?Hn.attachExternalLinkBehaviour(n[0],t):Hn.attachLinkBehaviour(n[0],t)})),Es.itemtype("group").nodetype("URI").style("linkWithLabel").register((function(e,t,r){var n,o=t.getValue(),i=t.getItem().getChildren().find((function(e){return e.hasStyle("label")})),a=i?ro.filterTranslations(t.getChildBindingsFor(i),Fn().locale(),r.view.defaultLanguage):[],s=t.getItem().getChildren().find((function(e){return e.hasStyle("tooltip")})),l=s?ro.filterTranslations(t.getChildBindingsFor(s),Fn().locale(),r.view.defaultLanguage):[],c=l.length>0?l[0].getValue():o,d=Ss('<a class="rdformsUrl">').attr("title",c).attr("href",o).appendTo(e);if(a.length>0)n=a[0].getValue();else{var u=Vn.getLocalizedMap(t);n=t.getItem().hasStyle("showValue")?o:u?Vn.getLocalizedValue(u).value||o:t.getGist()}d.text(n),t.getItem().hasStyle("externalLink")?Hn.attachExternalLinkBehaviour(d[0],t):Hn.attachLinkBehaviour(d[0],t)})),Es.itemtype("text").nodetype("URI").style("image").register((function(e,t){Ss('<img class="rdformsImage">').attr("src",t.getGist()).appendTo(e)})),Es.itemtype("text").register((function(e,t,r){var n=t.getLanguage();r.view.showLanguage&&n&&Ss('<div class="rdformsLanguage">').text(n).appendTo(e);var o=ys(t.getItem().hasStyle("showValue")?t.getValue():t.getGist()).replace(/(\r\n|\r|\n)/g,"\n"),i=t.getParent();if(t.getItem().hasStyle("label")&&!0!==r.view.topLevel&&null!=i&&i.getItem().getChildren()[0]===t.getItem()&&null!=i.getStatement()&&"uri"===i.getStatement().getType()){var a=Ss('<a class="rdformsUrl">').attr("href",i.getStatement().getValue()).html(o).appendTo(e);n&&a.attr("lang",n),Hn.attachLinkBehaviour(a[0],i)}else{var s=Ss("<div>").html(o).appendTo(e);n&&s.attr("lang",n)}t.getItem().hasStyle("multiline")?Ss(e).toggleClass("rdformsMultiline",!0):Ss(e).toggleClass("rdformsSingleline",!0)})),Es.itemtype("text").datatype("xsd:duration").register((function(e,t,r){var n=ws(t.getValue()),o=r.view.messages,i=Ss("<div>").appendTo(e)[0];["years","months","days","hours","minutes"].forEach((function(e){n.hasOwnProperty(e)&&0!==n[e]&&Ss('<span class="durationLabel">'.concat(o["duration_".concat(e)],':</span><span class="durationValue">').concat(n[e],"</span>")).appendTo(i)}))}));var Ts=function(e,t){try{var r=_s(t);Ss("<div>").html(r).appendTo(e)}catch(e){console.warn("Could not present date, expected ISO8601 format in the form 2001-01-01 \n (potentially with time given after a 'T' character as well) but found '".concat(t.getValue(),"' instead."))}};Es.itemtype("text").datatype("xsd:dateTime").register(Ts),Es.itemtype("text").datatype("xsd:date").register(Ts),Es.itemtype("text").datatype("xsd:time").register(Ts),Es.itemtype("text").datatype("xsd:gYear").register(Ts),Es.itemtype("text").datatype("xsd:gYearMonth").register(Ts),Es.itemtype("text").datatype("xsd:gMonthDay").register(Ts),Es.itemtype("text").datatype("dcterms:W3CDTF").register(Ts);var Cs=r(9755),As=ro.presenterRegistry,Os=function(e){return function(t,r){var n,o=r.getChoice();o&&(o.description&&(n=Vn.getLocalizedValue(o.description).value),e(t,r,o,n))}};As.itemtype("choice").style("image").register(Os((function(e,t,r,n){Cs('<img class="rdformsImage">').attr("src",r.value).attr("title",n||r.value).appendTo(e)}))),As.itemtype("choice").style("stars").register(Os((function(e,t,r){isNaN(parseInt(r.value,10))||Cs('<span class="rdformsStar">').appendTo(e)}))),As.itemtype("choice").register(Os((function(e,t,r,n){var o,i=t.getItem(),a=Vn.getLocalizedValue(r.label);i.hasStaticChoices()&&!i.hasStyle("externalLink")||i.hasStyle("noLink")?o=Cs("<div>").attr("title",n||r.seeAlso||r.value).text(Vn.getLocalizedValue(r.label).value).appendTo(e):(o=Cs('<a class="rdformsUrl">').attr("href",r.seeAlso||r.value).attr("title",n||r.seeAlso||r.value).text(a.value).appendTo(e),i.hasStyle("externalLink")?Hn.attachExternalLinkBehaviour(o[0],t):Hn.attachLinkBehaviour(o[0],t)),null!=r.load&&r.load((function(){var e=Vn.getLocalizedValue(r.label);o.text(e.value),e.lang?o.attr("lang",e.lang):o.attr("lang",void 0)})),a.lang&&o.attr("lang",a.lang)}))),ro.addPresenterTable=function(e,r,n){var o=r.getItem(),i=o.getChildren(),a=t()("<table>").addClass("rdformsGroup").appendTo(e);t()("<thead>").appendTo(a);for(var s=t()("<tr>").appendTo(a),l=0;l<i.length;l++){var c=t()("<th>").appendTo(s);ro.attachItemInfo(o,t()("<span>").text(i[l].getLabel()).appendTo(c),n)}return a[0]},ro.fillPresenterTable=function(e,r,n){if(0!==r.length){var o,i,a,s,l=n.view.topLevel;for(n.view.topLevel=!1,o=0;o<r.length;o++)for(a=r[o].getItemGroupedChildBindings(),s=t()("<tr>").appendTo(e),i=0;i<a.length;i++)a[i].length>0?ro.renderPresenter(t()("<td>").appendTo(s),a[i][0],{view:n.view,noCardinalityButtons:!0}):t()("<td>").appendTo(s);n.view.topLevel=l}};var Ds=function(e,t){var r=document.createElement(e);return t&&(r.id=t),r};ro.domQuery=function(e,t){return t.querySelector(e)},ro.domCreate=function(e,t,r){return t.appendChild(Ds(e,r))},ro.domCreateAfter=function(e,t,r){return t.parentNode.insertBefore(Ds(e,r),t.nextSibling)},ro.domSetAttr=function(e,t,r){""===r||null===r?e.removeAttribute(t):e.setAttribute(t,r)},ro.domText=function(e,t){e.innerText=t},ro.domClassToggle=function(e,t,r){t.split(" ").forEach((function(t){r?e.classList.add(t):e.classList.remove(t)}))},ro.prePresenterViewRenderer=ro.preEditorViewRenderer,ro.addTruncateControl=function(e,t){var r=t.view.messages,n=ro.domCreate("button",e);ro.domClassToggle(n,"rdformsShowMore",!0),n.innerText=r.showMore,n.onclick=function(){ro.domClassToggle(e,"rdformsTruncated",!1)};var o=ro.domCreate("button",e);ro.domClassToggle(o,"rdformsShowLess",!0),o.innerText=r.showLess,o.onclick=function(){ro.domClassToggle(e,"rdformsTruncated",!0)}};var js=ro.presenterRegistry,Ps=ro.editorRegistry,Rs=function(e){return function t(r,n,o){var i=n.getValue();o.inEditor&&(null!=i&&""!==i||n.setGist(Vn.generateUUID(),!0)),e.getComponentBefore(n.getItem(),t)(r,n,o)}};js.itemtype("text").style("autoUUID").register(Rs(js)),Ps.itemtype("text").style("autoUUID").register(Rs(Ps));var Is=function(e){return function t(r,n,o){var i=n.getValue(),a=n.getItem();o.inEditor&&(null==i||""===i?(a.hasStyle("autoInitDate")||a.hasStyle("autoUpdateDate"))&&n.setValue((new Date).toISOString(),!0):a.hasStyle("autoUpdateDate")&&n.setValue((new Date).toISOString(),!0)),e.getComponentBefore(n.getItem(),t)(r,n,o)}},Ns=Is(js);js.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(Ns),js.itemtype("text").datatype("xsd:date").style("autoInitDate").register(Ns),js.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(Ns),js.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(Ns);var Ls=Is(Ps);Ps.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(Ls),Ps.itemtype("text").datatype("xsd:date").style("autoInitDate").register(Ls),Ps.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(Ls),Ps.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(Ls);var Ms=function(e){return function t(r,n,o){if(o.inEditor){var i=n.getValue(),a=n.getItem().getDeps();if((null==i||""===i)&&a){var s=Ta.findBindingRelativeToParentBinding(n.getParent(),a),l=function(e){var t=Ta.matchPathBelowBinding(s,a),r=n.getGist(),o=t?t.getValue():"";r!=o&&n.setGist(o,e)};l(!0),s.addListener((function(e){e!=n&&l()}))}}e.getComponentBefore(n.getItem(),t)(r,n,o)}};js.itemtype("text").style("autoValue").register(Ms(js)),Ps.itemtype("text").style("autoValue").register(Ms(Ps)),ro.renderEditorLabel=function(e,r,n,o){if(n.hasStyle("nonEditable")||n.hasStyle("heading"))return ro.renderPresenterLabel(e,r,n,o,!0);var i=n.getEditLabel()||n.getLabel();i=null!=i&&""!==i?i.charAt(0).toUpperCase()+i.slice(1):"";var a=t()('<div class="rdformsLabelRow">').appendTo(e);r&&a.attr("id",o.view.createLabelIndex(r)),o.labelNode=a[0];var s=t()('<span class="rdformsLabel" tabindex="0">').text(i).appendTo(a),l=n.getCardinality(),c=o.view.messages;n.getProperty()&&(l.min>0?t()('<span class="rdformsMark rdformsMandatoryMark">').text(c.mandatoryMark).appendTo(a):l.pref>0?t()('<span class="rdformsMark rdformsRecommendedMark">').text(c.recommendedMark).appendTo(a):t()('<span class="rdformsMark rdformsOptionalMark">').text(c.optionalMark).appendTo(a)),null==r?ro.addExpandButton(e,a[0],n,o):o.view.showAsTable(n)||null!==l.max&&l.max===l.min||("group"===n.getType()?n.getProperty()&&ro.addGroupButtons(e,a[0],r,o):ro.addCreateChildButton(e,a[0],r,o));var d=o.view;if(n.hasStyle("showDescriptionInEdit")||d.showDescription){var u=n.hasStyle("compact")||d.compact&&!n.hasStyle("nonCompact")&&(d.topLevel&&"group"!==n.getType()||d.parentView&&d.parentView.topLevel&&d.binding.getItem().hasStyle("heading")),f=o.view instanceof cs&&n.getEditDescription()||n.getDescription();!u&&f&&t()('<div class="rdformsDescription" tabindex="0">').text(f).appendTo(e)}ro.attachItemInfo(n,s[0],o)},ro.attachItemInfo=function(e,r,n){if(null==e||null==e.getProperty()&&null==e.getDescription()&&null==e.getEditDescription())t()(r).addClass("noPointer");else{var o=n.view instanceof cs&&e.getEditDescription()||e.getDescription()||"",i="";e.getProperty()&&(i='<div class="property"><a target="_blank" href="'.concat(e.getProperty(),'">').concat(e.getProperty(),"</a></div>"));var a=n.view instanceof cs&&e.getEditLabel()||e.getLabel();a=null!=a&&""!==a?a.charAt(0).toUpperCase()+a.slice(1):"";var s={html:!0,container:ro.getPopoverContainer(),placement:"auto",trigger:"focus",title:a,content:'<div class="description">'.concat(o.replace(/(\r\n|\r|\n)/g,"<br/>"),"</div>").concat(i)};t()(r).popover(s).attr("data-toggle","popover")}};r(1552);var Fs=r(9755),Bs=0;var Us=r(9755),Vs=ro.editorRegistry;Vs.itemtype("text").datatype("xsd:duration").register((function(e,t,r){var n=r.view.messages,o=ws(t.getValue()),i=Fs("<div>").addClass("rdformsDuration rdformsFieldInput").appendTo(e),a=ks(t,r)?"disabled":"",s=function(){i.empty(),["years","months","days","hours","minutes"].forEach((function(e){var r=Fs("<div>").appendTo(i),s=Fs("<div>").addClass("input-group").appendTo(r),l="duration_".concat(Bs);Bs+=1,Fs("<span>").addClass("input-group-addon").attr("id",l).text(n["duration_".concat(e)]).appendTo(s);var c=Fs("<input ".concat(a,">")).addClass("form-control").attr("type","number").attr("aria-describedby",l).appendTo(s);o[e]&&c.val(o[e]),c.change((function(){o[e]=Fs(this).val(),t.setValue(function(e){if(e.years||e.months||e.days||e.hours||e.minutes){var t="P".concat(e.years?"".concat(e.years,"Y"):"").concat(e.months?"".concat(e.months,"M"):"").concat(e.days?"".concat(e.days,"D"):"");return(e.hours||e.minutes)&&(t="".concat(t,"T").concat(e.hours?"".concat(e.hours,"H"):"").concat(e.minutes?"".concat(e.minutes,"M"):"")),t}return null}(o))}))}))};s(),r.clear=function(){o={},s()}}));var $s=function(e,t,r,n,o){var i=null,a=function(){i=null;var a=e.val().trim(),s=!0;""===a||!r||r.test(a)?(t.setGist(a),n&&a&&(n.prop("href",t.getValue()),s=!1),o&&o.toggleClass("rdformsHelpActive",!1)):o&&o.toggleClass("rdformsHelpActive",!0),n&&n.toggleClass("rdformsExtLinkDisabled",s),e.toggleClass("rdformsEmpty",""===a)};e.on("keyup paste",(function(){null!=i&&clearTimeout(i),i=setTimeout(a,200)}))},Hs=function(e,t){var r=new RegExp(e);Vs.itemtype("text").datatype(t).register((function(t,n,o){var i=Us('<input type="text" class="form-control rdformsFieldInput"\n placeholder="'.concat(n.getItem().getPlaceholder()||"",'">'));i.val(n.getGist()).attr("pattern",e).appendTo(t);var a,s=n.getItem().getHelp();if(s&&(a=Us('<span class="rdformsHelp">'.concat(s,"</span>"))).appendTo(t),n.getItem().hasStyle("externalLink")){var l=Us('<a class="fas fa-external-link-alt rdformsExtLink '.concat(ro.getExtLinkClass(),'" target="_blank">'));l.appendTo(o.controlDiv),Us(t).addClass("rdformsExtLinkControl"),$s(i,n,r,l,a),i.keyup()}else $s(i,n,r,void 0,a);n.getItem().isEnabled()||i.prop("disabled",!0)}))};Hs("^-?\\d+$","xsd:integer"),Hs("^(\\d+(\\.\\d+)?)$","xsd:decimal"),Vs.itemtype("text").register((function(e,t,r){var n,o=t.getItem(),i=ks(t,r)?"disabled":"";if(o.hasStyle("multiline")){var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:70,r=e.split("\n").length;return r+=Number.parseInt(e.length/t,10)}(t.getGist());(n=Us("<textarea ".concat(i,' class="form-control rdformsFieldInput autoExpand" placeholder="').concat(o.getPlaceholder()||"",'" rows="').concat(a,'">'))).on("input focus",(function(){if(void 0===this.baseScrollHeight){var e=n.height();this.baseScrollHeight=n.innerHeight()-e,this.baseLineHeight=e/a}this.rows=1;var t=1+Math.ceil((this.scrollHeight-this.baseScrollHeight)/this.baseLineHeight);this.rows=t}))}else n=o.hasStyle("email")?Us("<input ".concat(i,' type="email" class="form-control rdformsFieldInput" placeholder="').concat(o.getPlaceholder()||"",'">')):Us("<input ".concat(i,' type="text" class="form-control rdformsFieldInput" placeholder="').concat(o.getPlaceholder()||"",'">'));n.val(t.getGist()).appendTo(e);var s,l=o.getHelp();l&&(s=Us('<span class="rdformsHelp">'.concat(l,"</span>"))).appendTo(e);var c=o.getPattern(),d=null;if(null!=c&&(n.attr("pattern",c),d=new RegExp(c)),o.hasStyle("externalLink")){var u=Us('<a class="fas fa-external-link-alt rdformsExtLink '.concat(ro.getExtLinkClass(),'" target="_blank">'));u.appendTo(r.controlDiv),Us(e).addClass("rdformsExtLinkControl"),$s(n,t,d,u,s),n.keyup()}else $s(n,t,d,void 0,s);var f=o.getNodetype();if("LANGUAGE_LITERAL"===f||"PLAIN_LITERAL"===f){Us(e).addClass("rdformsLangcontrolledfield"),Us(r.controlDiv).addClass("rdformsLangFieldControl");var p=Us("<select ".concat(i,' class="form-control rdformsLanguage">')).appendTo(r.controlDiv),h=ro.getPrimaryLanguageList(),m=ro.getNonPrimaryLanguageList();if(m=Vn.cloneArrayWithLabels(m),0===h.length||((h=Vn.cloneArrayWithLabels(h,!0)).forEach((function(e){Us("<option>").html(e.label).val(e.value).appendTo(p)})),Us("<option>").html("─────").attr("disabled","disabled").appendTo(p)),m.forEach((function(e){Us("<option>").html(e.label).val(e.value).appendTo(p)})),t.isValid())p.val(t.getLanguage());else{var g=Fn().locale();"string"==typeof g&&""!==g&&(p.val(g),t.setLanguage(g))}p.val(t.getLanguage()).change((function(){t.setLanguage(p.val())})),r.clear=function(){p.val(""),n.val("")}}else r.clear=function(){n.val("")}}));var Ws=r(9755);function zs(e){return(zs="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 Ys(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,Gs(n.key),n)}}function Gs(e){var t=function(e,t){if("object"!=zs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=zs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zs(t)?t:String(t)}var qs=0,Xs=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.binding=t.binding,this.item=this.binding.getItem(),this.choices=this.item.getChoices().map((function(e){return{label:e.editlabel||e.label,description:e.description,value:e.value,text:n.item._getLocalizedValue(e.editlabel||e.label).value,choice:e}})),this.item.hasStyle("preserveOrderOfChoices")||this.choices.sort((function(e,t){return e.text<t.text?-1:1})),this.choice=this.binding.getChoice(),this.context=t.context,this.context.clear=this.clear.bind(this),this.domNode=r,this.buildRendering()}var t,r,n;return t=e,(r=[{key:"clear",value:function(){Ws(this.domNode).find("input").prop("checked",!1)}},{key:"buildRendering",value:function(){var e=this;null!=this.choice&&this.choice.mismatch&&this.choices.push(this.choice);for(var t=this.binding.getValue(),r=function(){var r,o=e.choices[n],i=Ws('<div class="radio form-check">').appendTo(e.domNode);r=e.item.hasStyle("verticalRadioButtons")?Ws("<label>").appendTo(i):Ws('<label class="form-check-label">').appendTo(i),o.description&&r.attr("title",e.item._getLocalizedValue(o.editdescription||o.description).value||o.seeAlso||o.value);var a=ks(e.binding,e.context)?"disabled":"",s=Ws("<input ".concat(a,' type="radio">')).val(o.value).attr("checked",o.value===t).attr("name","rdformsRadio_".concat(qs)).appendTo(r);r.append(e.item._getLocalizedValue(o.editlabel||o.label).value),o.mismatch?(r.addClass("mismatch disabled"),s.attr("disabled",!0)):r.click((function(){e.binding.setValue(s.val())}))},n=0;n<this.choices.length;n++)r();qs+=1}}])&&Ys(t.prototype,r),n&&Ys(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Qs=r(9755),Zs=ro.editorRegistry;Zs.itemtype("choice").choices().check((function(e){var t=e.getChoices();return!(e.getHierarchyProperty()||e.hasStyle("tree"))&&1===e.getCardinality().max&&!e.hasStyle("dropDown")&&(null!=t&&t.length<5||e.hasStyle("verticalRadioButtons")||e.hasStyle("horizontalRadioButtons"))})).register((function(e,t,r){new Xs({binding:t,context:r},e)})),Zs.itemtype("choice").choices().register((function(e,t,r){var n=t.getItem(),o=n.getChoices().map((function(e){return{id:e.value,text:n._getLocalizedValue(e.editlabel||e.label).value,choice:e}}));n.hasStyle("preserveOrderOfChoices")||o.sort((function(e,t){return e.text<t.text?-1:1})),r.choices=o,ro.renderSelect(e,t,r);var i=r.setValue,a=t.getChoice();a&&(null!=a.load?a.load((function(){i(a)})):i(a))})),Zs.itemtype("choice").choices("none").register((function(e,t,r){r.chooser=ro.chooserRegistry.getComponent(t.getItem()),r.choices=void 0;var n=ks(t,r)?"disabled":"",o=function(){ro.renderSelect(e,t,r);var o=r.setValue,i=Qs("<button ".concat(n,' class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm browseChoices" type="button">')).attr("title",r.view.messages.edit_browse).appendTo(e);if(r.chooser&&r.chooser.supportsInlineCreate&&r.chooser.supportsInlineCreate(t)){var a=Qs('<span class="fa-stack">').appendTo(i);Qs('<span class="fas fa-search fa-stack-1x" aria-hidden="true">').appendTo(a),Qs('<span class="fas fa-plus fa-stack-1x" aria-hidden="true">').appendTo(a)}else Qs('<span class="fas fa-search" aria-hidden="true">').appendTo(i);var s=function(e){e?(t.setChoice(e),null!=e.load?e.load((function(){o(e)})):o(e)):t.setChoice(null)};r.chooser&&"function"==typeof r.chooser.show?i.click((function(){ro.openChoiceSelector(t,s)})):i.addClass("disabled"),Hn.hasDnDSupport(t)&&Hn.addDnD(t,cNode,s)},i=t.getChoice();if(i)if(null!=i.load){var a=Qs('<div class="form-group rdforms-upgrade">').appendTo(e);Qs('<input type="text" disabled class="form-control rdformsFieldInput">').val(i.value).appendTo(a),i.load((function(){if(i.upgrade){var e=Qs("<button ".concat(n,' class="btn btn-default bmd-btn-fab bmd-btn-fab-sm')+' browseChoices" type="button">').attr("title",r.view.messages.edit_upgrade).click((function(){i.upgrade(t,(function(n){a.remove(),e.remove(),o(),r.setValue(n),t.setChoice(n)}))})).insertAfter(a);Qs('<span class="fas fa-magic" aria-hidden="true">').appendTo(e)}else a.remove(),o(),r.setValue(i)}))}else o(),r.setValue(i);else o()}));var Ks=r(9755);ro.addRemoveButton=function(e,t,r){var n=ks(t,r)?"disabled":"",o=Ks("<button ".concat(n,' class="fas fa-times action rdformsActionButton">')).attr("title",r.view.messages.edit_remove).appendTo(r.controlDiv),i=t.getCardinalityTracker(),a=i.addListener((function(){}));o.click((function(){if(!i.isMin()||!i.isDepsOk()||1===i.getCardinality())if(1===i.getCardinality()){"choice"===t.getItem().getType()?t.setChoice(null):t.setValue("");var n=t.getItem().getNodetype();"LANGUAGE_LITERAL"!==n&&"PLAIN_LITERAL"!==n||t.setLanguage(""),r.clear?r.clear():Ks(e).find("input").val("")}else i.removeListener(a),o.unbind("click"),t.remove(),Ks(e).remove()}))},ro.addExpandButton=function(e,t,r,n){var o=Ks('<button class="fas fa-plus action rdformsActionButton">').attr("title",n.view.messages.edit_expand).appendTo(t).click((function(){var i=_a(n.view.binding,r);if(n.view.showAsTable(r)){var a=n.view.addTable(e,i,r);n.view.fillTable(a,[i])}else n.view.addRow(e,i,!1),ro.addGroupButtons(e,t,i,n);o.unbind("click").remove()}))},ro.addGroupButtons=function(e,t,r,n){var o,i=r.getParent(),a=r.getItem(),s=r.getCardinalityTracker(),l=a.getCardinality();1!==l.max&&(o=Ks('<button class="action fas fa-plus rdformsActionButton">').attr("title",n.view.messages.edit_add).appendTo(t)).click((function(){if(!s.isMax()){var t=_a(i,a);n.view.addRow(e,t)}}));var c=ks(r,n)?"disabled":"",d=Ks("<button ".concat(c,' class="action fas fa-times rdformsActionButton">')).attr("title",n.view.messages.edit_remove).appendTo(t);1===l.max&&d.addClass("indentRemove");var u=s.addListener((function(){o&&o.toggleClass("disabled",s.isMax()),d.toggleClass("disabled",s.isMin()&&s.isDepsOk())}));d.click((function(){if(!s.isMin()||!s.isDepsOk())if(n.clear&&n.clear(),1===s.getCardinality()){if(s.removeListener(u),o&&o.unbind("click"),d.unbind("click"),r.remove(),n.view.showNow(a,[])){var t=n.view.prepareBindings(a,[]);t.length>0&&n.view.addRow(e,t[0])}Ks(e).remove()}else s.removeListener(u),o&&o.unbind("click"),d.unbind("click"),r.remove(),Ks(e).remove()}))},ro.addCreateChildButton=function(e,t,r,n){var o=r.getParent(),i=r.getItem(),a=r.getCardinalityTracker(),s=Ks('<button class="action fas fa-plus rdformsActionButton">').attr("title",n.view.messages.edit_add).appendTo(t).click((function(){if(!a.isMax()){var t=_a(o,i);n.view.addRow(e,t)}}));a.addListener((function(){s.toggleClass("disabled",a.isMax())}))};var Js=function e(r,n,o){var i=n.getItem().getChildren(),a=n.getItemGroupedChildBindings(),s=t()("<tr>").appendTo(r);if(a.forEach((function(e,t){0!==e.length||i[t].hasStyle("nonEditable")||_a(n,i[t])})),a.forEach((function(e){e.length>0&&ro.renderEditor(t()("<td>").appendTo(s)[0],e[0],{view:o.view,noCardinalityButtons:!0})})),!n.getItem().hasStyle("firstcolumnfixedtable")){var l=t()("<td>").addClass("rdformsTableControl").appendTo(s),c=t()("<span>").addClass("action editDelete").attr("title",o.view.messages.edit_remove).appendTo(l),d=n.getCardinalityTracker(),u=d.addListener((function(){c.toggleClass("disabled",d.isMin())}));c.click((function(){if(!d.isMin()){if(1===d.getCardinality()){var t=n.getParent(),i=n.getItem(),a=_a(t,i);e(r,a,o)}d.removeListener(u),removeConnect.remove(),n.remove(),s.remove()}}))}};ro.addEditorTable=function(e,r,n){var o=r.getItem(),i=o.getChildren(),a=t()("<table>").appendTo(e);t()(a).addClass("rdformsGroup");var s=t()("<thead>").appendTo(a),l=t()("<tbody>").appendTo(a),c=t()("<tr>").appendTo(s);for(colInd=0;colInd<i.length;colInd++){var d=t()("<th>").appendTo(c);t()(d).addClass("rdformsColumnHeader".concat(colInd));var u=i[colInd],f=n.view instanceof cs&&u.getEditLabel()||u.getLabel();ro.attachItemInfo(o,t()("<span>").text(f).appendTo(d)[0],n)}if(!r.getItem().hasStyle("firstcolumnfixedtable")){var p=t()("<th>").addClass("rdformsTableControl").appendTo(c),h=r.getParent(),m=r.getCardinalityTracker(),g=t()("<span>").addClass("action editAdd").attr("title",n.view.messages.edit_add).appendTo(p).click((function(){if(!m.isMax()){var e=_a(h,o);Js(l[0],e,n)}}));m.addListener((function(){g.toggleClass("disabled",m.isMax())}))}return l},ro.fillEditorTable=function(e,t,r){var n=t;if(0!==n.length){var o=n[0].getItem();if(o.hasStyle("nonEditable"))return ro.renderEditor(e,n,r);o.hasStyle("firstcolumnfixedtable")&&(n=function(e){var t=[],r=e[0].getItem(),n=r.getChildren()[0],o=n.getChoices();(o=Vn.cloneArrayWithLabels(o)).sort((function(e,t){return e.label>t.label?1:e.label<t.label?-1:0}));var i={};(e||[]).forEach((function(e){var t=e.getItemGroupedChildBindings();if(t.length>0&&t[0].length>0){var r=t[0][0];i[r.getValue()]=e}}));var a=e[0].getParent();return(o||[]).forEach((function(e){if(null!=i[e.value])t.push(i[e.value]);else{var o=_a(a,r),s=_a(o,n);s.setExcludeFromTreeValidityCheck(!0),s.setAncestorValid(!1),s.setChoice(e),t.push(o)}})),t}(n)),n.forEach((function(t){Js(e,t,r)}))}},ro.preEditorRenderer=function(e,r,n){n.$controlDiv=t()('<div class="rdformsFieldControl">'),n.controlDiv=n.$controlDiv[0],"group"!==r.getItem().getType()&&!0!==n.noCardinalityButtons&&ro.addRemoveButton(e,r,n)},ro.preEditorViewRenderer=function(e,r,n){var o,i=r.getItem();if(!n.hideAddress&&(i.hasStyle("showURI")?o=t()('<div class="rdformsField rdformsGroupURI">').text(r.getValue()):i.hasStyle("showLink")&&(o=t()('<a class="rdformsField rdformsGroupURI rdformsUrl">').text(r.getValue()).attr("href",r.getValue()),Hn.attachExternalLinkBehaviour(o[0],r)),o)){var a=t()('<div class="rdformsRow">').appendTo(e);n.topLevel&&a.addClass("rdformsTopLevel"),t()('<div class="rdformsLabel">').text(n.view.messages.address_label).appendTo(a),o.appendTo(t()('<div class="rdformsFields">').appendTo(a))}},ro.postEditorRenderer=function(e,t,r){r.$controlDiv.appendTo(e)};var el={error:"exclamation-triangle",warning:"exclamation-circle",deprecated:"question-circle"};ro.renderValidationMessage=function(e,t,r){var n=el[t],o=ro.domCreate("div",e);ro.domClassToggle(o,"rdformsValidationMessageWrapper",!0);var i=ro.domCreate("i",o);ro.domClassToggle(i,"fas fa-".concat(n),!0);var a=ro.domCreate("span",o);ro.domClassToggle(a,"rdformsValidationMessage",!0),ro.domText(a,r)};r(7872);var tl=r(4363),rl=r.n(tl),nl=(r(686),r(4190)),ol=function(e,t){rl().__super__.constructor.call(this,e,t),this.rdformsItem=t.options.rdformsItem,this.chooser=t.options.chooser};r.n(nl)().Extend(ol,rl()),ol.prototype.query=function(e,t){var r=this,n=function(){r.chooser.search(r.binding,e.term).then((function(e){t({results:e.map((function(e){return{id:e.value,text:Vn.getLocalizedValue(e.label).value||"",choice:e}}))})}))};""!==e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(n,300)):n()};const il=ol;var al=r(9755);ro.renderSelect=function(e,t,r){var n=r.choices,o=ks(t,r)?"disabled":"",i=al("<select ".concat(o,">")).appendTo(e).append("<option></option>"),a={placeholder:t.getItem().getPlaceholder()||"",rdformsItem:t.getItem(),binding:t,chooser:r.chooser};n&&n.length>0?(a.data=n,a.dataAdapter=rl()):(a.dataAdapter=il,i.prop("disabled",!r.chooser||"function"!=typeof r.chooser.search)),i.select2(a),r.clear=function(){i.val(null).trigger("change")},r.setValue=function(e){i.toggleClass("mismatch",!0===e.mismatch);var t=Vn.getLocalizedValue(e.label).value||"";0===i.find("option[value='".concat(e.value,"']")).length?(i.append(new Option(t,e.value,!0,!0)).trigger("change"),i.trigger({type:"select2:select",params:{data:{id:e.val,text:t,choice:e}}})):i.val(e.value).trigger("change")},i.on("select2:select",(function(e){var r=e.params.data.choice;t.setChoice(r),i.toggleClass("mismatch",r.mismatch);var n=i.next().find(".select2-selection__rendered");r.description&&n.attr("title",Vn.getLocalizedValue(r.description).value)}))};r(4728);var sl=r(9755);function ll(e){return(ll="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 cl(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,dl(n.key),n)}}function dl(e){var t=function(e,t){if("object"!=ll(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ll(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ll(t)?t:String(t)}var ul=function(){function e(t,r){var n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.binding=t.binding,this.context=t.context,this.item=this.binding.getItem(),this.allowedOptions=(n=this.item,o={},i=n.getDatatype(),(Array.isArray(i)?i:[i]).forEach((function(e){var t=function(e){switch(e){case"http://www.w3.org/2001/XMLSchema#dateTime":case"http://purl.org/dc/terms/W3CDTF":return"Datetime";case"http://www.w3.org/2001/XMLSchema#date":return"Date";case"http://www.w3.org/2001/XMLSchema#gYear":return"Year";default:return}}(e);t&&(o[t]=!0)})),o),this._date=null,this._valid=!1,this._excludeTime=!0,this.domNode=r,this.buildUI(),this.initDatePicker(),this.initialize()}var t,r,n;return t=e,(r=[{key:"includeDateOption",value:function(){return this.allowedOptions.Date}},{key:"includeDateTimeOption",value:function(){return this.allowedOptions.Datetime}},{key:"includeYearOption",value:function(){return this.allowedOptions.Year}},{key:"buildUI",value:function(){}},{key:"initDatePicker",value:function(){}},{key:"initialize",value:function(){var e=this;this.$timeInput=sl(this.timeInput).attr("pattern","^([0-1][0-9]|2[0-3]):[0-5][0-9]$").change((function(){var t=e.$timeInput.val();if("function"==typeof e.$timeInput[0].checkValidity){if(!e.$timeInput[0].checkValidity())return}else if(new RegExp("^([0-1][0-9]|2[0-3]):[0-5][0-9]$").test(t))return;e._date.setHours(parseInt(t.substr(0,2),10),parseInt(t.substr(3,2),10)),e.binding.setValue(e._date.toISOString())})),this.$yearInput=sl(this.yearInput).attr("pattern","^-?[0-9][0-9][0-9][0-9]$").change((function(){var t=e.$yearInput.val();e._date.setYear(parseInt(t,10)),e.binding.setValue(t)})),this.$dateControl=sl(this.dateControl).change((function(){var t=e.$dateControl.val();e["_show".concat(t)]()})),this._binding2Gui()}},{key:"setDateInPicker",value:function(){}},{key:"setDateInBinding",value:function(e){this._valid=!0,this._date.setFullYear(e.getFullYear(),e.getMonth(),e.getDate());var t=Fn()(e).toISOString();this._excludeTime?this.binding.setValue(t.substring(0,t.indexOf("T"))):(this.binding.setValue(t),this.$timeInput.prop("disabled",!1))}},{key:"clear",value:function(){this._valid=!1,sl(this.domNode).find("input").val("")}},{key:"_binding2Gui",value:function(){this._firstTime=!0;var e=this.binding.getValue();this._valid=null!=e&&""!==e,this._valid&&(this._date=new Date(e),this._valid=null!=this._date),this._date=this._date||new Date("2000"),this._valid?/^\d{4}$/.test(e)?(this.$dateControl.val("Year"),this._showYear()):/T/.test(e)&&-1===e.indexOf("T00:00:00")?(this.$dateControl.val("DateTime"),this._showDateTime()):(this.$dateControl.val("Date"),this._showDate()):this._showDate(),this._firstTime=!1}},{key:"_showDate",value:function(){if(this._excludeTime=!0,this.$yearInput.parent().hide(),this.$timeInput.parent().hide(),this.$datepicker.parent().show(),this._valid){this.setDateInPicker(this._date);var e=this._date.toISOString();this._firstTime||(this.binding.setValue(e.substring(0,e.indexOf("T"))),this.binding.setDatatype("xsd:date"))}else this.setDateInPicker(null)}},{key:"_showDateTime",value:function(){if(this._excludeTime=!1,this.$yearInput.parent().hide(),this.$timeInput.parent().show(),this.$datepicker.parent().show(),this._valid){if(0!==this._date.getHours()||0!==this._date.getMinutes()){var e=this._date.getHours();e=e<=9?"0".concat(e):e;var t=this._date.getMinutes();t=t<=9?"0".concat(t):t,this.$timeInput.val("".concat(e,":").concat(t))}else this.$timeInput.val("");this.setDateInPicker(this._date),this._firstTime||(this.binding.setValue(this._date.toISOString()),this.binding.setDatatype("xsd:dateTime"))}else this.setDateInPicker(null),this.$timeInput.val("")}},{key:"_showYear",value:function(){this.$yearInput.parent().show(),this.$timeInput.parent().hide(),this.$datepicker.parent().hide(),this._valid?(this.$yearInput.val(this._date.getFullYear()),this._firstTime||(this.binding.setValue("".concat(this._date.getFullYear())),this.binding.setDatatype("xsd:gYear"))):this.$yearInput.val("")}},{key:"_setValueAttr",value:function(e){this.binding.setValue(e)}}])&&cl(t.prototype,r),n&&cl(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function fl(e){return(fl="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 pl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hl(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,ml(n.key),n)}}function ml(e){var t=function(e,t){if("object"!=fl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fl(t)?t:String(t)}function gl(e,t,r){return t=bl(t),function(e,t){if(t&&("object"===fl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],bl(e).constructor):t.apply(e,r))}function bl(e){return(bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vl(e,t){return(vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}ul.register=function(e){var t=function(t,r,n){var o=new e({messages:n.view.messages,binding:r,context:n},sl("<div>").appendTo(t)[0]);n.clear=function(){o.clear()}},r=ro.editorRegistry;r.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#date").register(t),r.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#dateTime").register(t),r.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYear").register(t),r.itemtype("text").datatype("http://purl.org/dc/terms/W3CDTF").register(t)};var yl=function(e){function r(){return pl(this,r),gl(this,r,arguments)}var n,o,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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vl(e,t)}(r,e),n=r,(o=[{key:"buildUI",value:function(){var e=ks(this.binding,this.context)?"disabled":"",r=this.context.view.messages,n=this.includeYearOption()?'<option value="Year">'.concat(r.date_year,"</option>"):"",o=this.includeDateOption()?'<option value="Date" selected="true">'.concat(r.date_date,"</option>"):"",i=this.includeDateTimeOption()?'<option value="DateTime">'.concat(r.date_date_and_time,"</option>"):"";this.domNode.innerHTML='<div class="rdformsDateValue rdformsFieldInput" xmlns="http://www.w3.org/1999/html">\n <div class="rdformsDatepicker datepicker">\n <div class="input-group date">\n <input '.concat(e,' type="text" class="form-control">\n <div class="input-group-append">\n <span class="input-group-text">\n <i class="fas fa-calendar"></i>\n </span>\n </div>\n </div>\n </div>\n <span style="display: none">\n <input ').concat(e,' type="text" class="form-control timeInput" placeholder="HH:MM"/>\n </span>\n <span style="display: none">\n <input ').concat(e,' type="text" class="form-control yearInput" placeholder="YYYY"/>\n </span>\n <select ').concat(e,' class="form-control dateControl">\n ').concat(n,"\n ").concat(o,"\n ").concat(i,"\n </select>\n</div>"),this.cal=t()(this.domNode).find(".date")[0],this.timeInput=t()(this.domNode).find(".timeInput")[0],this.yearInput=t()(this.domNode).find(".yearInput")[0],this.dateControl=t()(this.domNode).find(".dateControl")[0]}},{key:"initDatePicker",value:function(){var e=this;this.$datepicker=t()(this.cal).datepicker({autoclose:!0}),this.$datepicker.on("changeDate",(function(){var t=e.$datepicker.datepicker("getDate"),r=new Date(t.getFullYear(),t.getMonth(),t.getDate(),e._date.getHours(),e._date.getMinutes(),e._date.getSeconds(),e._date.getMilliseconds());e.setDateInBinding(r)})),this.item.isEnabled()||this.$datepicker.datepicker("disabled")}},{key:"setDateInPicker",value:function(e){this.$datepicker.datepicker("update",e)}}])&&hl(n.prototype,o),i&&hl(n,i),Object.defineProperty(n,"prototype",{writable:!1}),r}(ul);ul.register(yl);r(450),r(1271);var wl=r(3379),xl=r.n(wl),_l=r(7795),kl=r.n(_l),Sl=r(569),El=r.n(Sl),Tl=r(3565),Cl=r.n(Tl),Al=r(9216),Ol=r.n(Al),Dl=r(4589),jl=r.n(Dl),Pl=r(4666),Rl={};Rl.styleTagTransform=jl(),Rl.setAttributes=Cl(),Rl.insert=El().bind(null,"head"),Rl.domAPI=kl(),Rl.insertStyleElement=Ol();xl()(Pl.Z,Rl);Pl.Z&&Pl.Z.locals&&Pl.Z.locals;var Il=r(6931),Nl={};Nl.styleTagTransform=jl(),Nl.setAttributes=Cl(),Nl.insert=El().bind(null,"head"),Nl.domAPI=kl(),Nl.insertStyleElement=Ol();xl()(Il.Z,Nl);Il.Z&&Il.Z.locals&&Il.Z.locals;var Ll=r(4348),Ml={};Ml.styleTagTransform=jl(),Ml.setAttributes=Cl(),Ml.insert=El().bind(null,"head"),Ml.domAPI=kl(),Ml.insertStyleElement=Ol();xl()(Ll.Z,Ml);Ll.Z&&Ll.Z.locals&&Ll.Z.locals;var Fl=r(8089),Bl={};Bl.styleTagTransform=jl(),Bl.setAttributes=Cl(),Bl.insert=El().bind(null,"head"),Bl.domAPI=kl(),Bl.insertStyleElement=Ol();xl()(Fl.Z,Bl);Fl.Z&&Fl.Z.locals&&Fl.Z.locals;function Ul(e){return(Ul="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 Vl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $l(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,Hl(n.key),n)}}function Hl(e){var t=function(e,t){if("object"!=Ul(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ul(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ul(t)?t:String(t)}function Wl(e,t,r){return t=Gl(t),function(e,t){if(t&&("object"===Ul(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Gl(e).constructor):t.apply(e,r))}function zl(){return(zl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Yl(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Yl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Gl(e)););return e}function Gl(e){return(Gl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ql(e,t){return(ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Xl=function(e,t,r){return 1===r?e["".concat(t,"_one")]:e["".concat(t,"_more")].replace("$1",r)},Ql=function(e){function t(){return Vl(this,t),Wl(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ql(e,t)}(t,e),r=t,(n=[{key:"_handleParams",value:function(e){e.showLanguage=!1!==e.showLanguage,e.filterTranslations=!1,e.styleCls=e.styleCls||"rdformsPresenter rdformsValidator",this.fuzzy=!1!==e.fuzzy,zl(Gl(t.prototype),"_handleParams",this).call(this,e),this.binding&&Ca(this.binding)}},{key:"showNow",value:function(e,t){if(e.hasStyle("invisible"))return!1;if(t.length>0)return!0;if(e.hasStyle("deprecated"))return!1;if(e.hasStyle("atLeastOneChild")||e.hasStyle("exactlyOneChild"))return!0;if(e.hasStyle("atLeastOneChild")||e.hasStyle("exactlyOneChild"))return!0;var r=this.binding.getMatchingCode();if(r===lo.MISSING_CONSTRAINTS||r===lo.WRONG_NODETYPE)return!1;var n=e.getCardinality();switch(this.includeLevel){case"mandatory":return n&&n.min>=1;case"recommended":default:return n&&(n.min>=1||n.pref>=1)}}},{key:"showAsTable",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var r,n=t,o=e.getCardinality(),i=null!=o.min?o.min:0,a=null!=o.pref?o.pref:0;r=o.pref>0?o.pref:o.min>0?o.min:"propertygroup"===e.getType()?0:"group"===e.getType()&&null==e.getProperty()?1:0;var s=this.binding.getMatchingCode(),l=!(this.binding.getItem().hasStyle("atleastOneChild")||this.binding.getItem().hasStyle("atMostOneChild")||this.binding.getItem().hasStyle("disjoint")||this.binding.getItem().hasStyle("exactlyOneChild"))||s===lo.TOO_FEW_VALUES_MIN||s===lo.TOO_FEW_VALUES_PREF,c=s===lo.MISSING_CONSTRAINTS||s===lo.WRONG_NODETYPE;if(r>n.length&&l&&!c)for(n=n.concat([]);r>n.length;){var d=_a(this.binding,e);n.length<i?d.setMatchingCode(lo.TOO_FEW_VALUES_MIN):n.length<a&&d.setMatchingCode(lo.TOO_FEW_VALUES_PREF),n.push(d)}return n}},{key:"skipBinding",value:function(){return!1}},{key:"addValidationMarker",value:function(e,t){var r,n,o=t.getItem(),i=o.getCardinality(),a=null!=i.min?i.min:0,s=null!=i.pref?i.pref:0,l="group"===o.getType()?null===(r=t.getCardinalityTracker())||void 0===r?void 0:r.getCode():void 0,c=l&&l!==lo.OK&&l!==lo.UNKNOWN?l:t.getMatchingCode(),d=c===lo.TOO_FEW_VALUES_PREF;if(c!==lo.TOO_FEW_VALUES_PREF&&c!==lo.OK)return ro.domClassToggle(e,"error",!0),c===lo.TOO_FEW_VALUES_MIN?n=Xl(this.messages,"validation_min_required",a):c===lo.TOO_MANY_VALUES?n=Xl(this.messages,"validation_max",i.max||1):c===lo.AT_MOST_ONE_CHILD?n=this.messages.validation_at_most_one_child:c===lo.AT_LEAST_ONE_CHILD?n=this.messages.validation_at_least_one_child:c===lo.EXACTLY_ONE_CHILD?n=this.messages.validation_exactly_one_child:c===lo.WRONG_NODETYPE?n=this.messages.validation_nodetype:c===lo.WRONG_VALUE?n=this.messages.validation_value:c===lo.WRONG_DATATYPE?n=this.messages.validation_datatype:c===lo.MISSING_CONSTRAINTS?n=this.messages.validation_constraints:c===lo.WRONG_PATTERN?n=this.messages.validation_pattern:c===lo.MISSING_LANGUAGE&&(n=this.messages.validation_language),ro.renderValidationMessage(e,"error",n),!0;if(d){ro.domClassToggle(e,"warning",!0);var u=Xl(this.messages,"validation_min_recommended",s);return ro.renderValidationMessage(e,"warning",u),!0}return!!o.hasStyle("deprecated")&&(ro.domClassToggle(e,"deprecated",!0),ro.renderValidationMessage(e,"deprecated",this.messages.validation_deprecated),!0)}},{key:"addComponent",value:function(e,r){zl(Gl(t.prototype),"addComponent",this).call(this,e,r),this.addValidationMarker(e,r)}}])&&$l(r.prototype,n),o&&$l(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Ka);function Zl(e){return(Zl="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 Kl(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,Jl(n.key),n)}}function Jl(e){var t=function(e,t){if("object"!=Zl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Zl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zl(t)?t:String(t)}var ec=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r instanceof Node?this.domNode=r:this.domNode="string"==typeof r?document.getElementById(r):document.createElement("div"),this.template=t.template,this.resource=t.resource,this.graph=t.graph,this.compact=void 0===t.compact||t.compact,this.includeLevel=t.includeLevel||"mandatory",this.includeLevelControllsVisible=void 0===t.includeLevelControllsVisible||t.includeLevelControllsVisible,this.externalEditor=void 0!==t.externalEditor&&t.externalEditor,this.messages=t.messages,this.render()}var r,n,o;return r=e,(n=[{key:"render",value:function(){this.domNode.innerHTML='<div class="cardinality" style="display: none;">\n <div class="btn-group" role="group">\n <button type="button" class="btn btn-secondary btn-lg active mandatory">Mandatory</button>\n <button type="button" class="btn btn-secondary btn-lg active recommended">Recommended</button>\n <button type="button" class="btn btn-secondary btn-lg optional">Optional</button>\n </div>\n <div class="rdformsLevelNode"></div>',this._cardinalityNode=t()(this.domNode).find(".cardinality")[0],this._mandatoryButton=t()(this.domNode).find(".mandatory").click(this._mandatoryClick.bind(this))[0],this._recommendedButton=t()(this.domNode).find(".recommended").click(this._recommendedClick.bind(this))[0],this._optionalButton=t()(this.domNode).find(".optional").click(this._optionalClick.bind(this))[0],this._rdformsNode=t()(this.domNode).find(".rdformsLevelNode")[0],this.includeLevelControllsVisible&&(this._cardinalityNode.style.display=""),this.setIncludeLevel(this.includeLevel),this.externalEditor||(this._editor=new cs({includeLevel:this.includeLevel,compact:this.compact},this._rdformsNode),this.show())}},{key:"show",value:function(e,t,r){this.resource=e||this.resource,this.graph=t||this.graph,this.template=r||this.template,this._editor&&this._editor.show({resource:this.resource,graph:this.graph,template:this.template,includeLevel:this.includeLevel}),this.localize()}},{key:"setIncludeLevel",value:function(e){if(null==this._editor||this._editor.getIncludeLevel()!==e)switch(this.includeLevel=e,e){case"mandatory":this._mandatoryClick();break;case"recommended":this._recommendedClick();break;case"optional":this._optionalClick()}}},{key:"disableLevel",value:function(e){switch(e){case"mandatory":this._mandatoryLabel.setAttribute("disabled",!0);break;case"recommended":this._recommendedLabel.setAttribute("disabled",!0);break;case"optional":this._optionalLabel.setAttribute("disabled",!0)}}},{key:"localize",value:function(){var e=ro.getMessages();ro.domText(this._mandatoryButton,e.mandatoryLabel),ro.domText(this._recommendedButton,e.recommendedLabel),ro.domText(this._optionalButton,e.optionalLabel)}},{key:"setExternalEditor",value:function(e){e.getIncludeLevel()!==this.includeLevel&&e.setIncludeLevel(this.includeLevel),this._editor=e,this.show()}},{key:"_mandatoryClick",value:function(e){this._mandatoryButton.getAttribute("disabled")||(ro.domClassToggle(this._mandatoryButton,"active",!0),ro.domClassToggle(this._recommendedButton,"active",!1),ro.domClassToggle(this._optionalButton,"active",!1),this._updateEditor("mandatory")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_recommendedClick",value:function(e){this._recommendedButton.getAttribute("disabled")||(ro.domClassToggle(this._mandatoryButton,"active",!0),ro.domClassToggle(this._recommendedButton,"active",!0),ro.domClassToggle(this._optionalButton,"active",!1),this._updateEditor("recommended")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_optionalClick",value:function(e){this._optionalButton.getAttribute("disabled")||(ro.domClassToggle(this._mandatoryButton,"active",!0),ro.domClassToggle(this._recommendedButton,"active",!0),ro.domClassToggle(this._optionalButton,"active",!0),this._updateEditor("optional")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_updateEditor",value:function(e){this._editor&&this._editor.setIncludeLevel(e)}}])&&Kl(r.prototype,n),o&&Kl(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(),tc="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},rc="URLSearchParams"in tc,nc="Symbol"in tc&&"iterator"in Symbol,oc="FileReader"in tc&&"Blob"in tc&&function(){try{return new Blob,!0}catch(e){return!1}}(),ic="FormData"in tc,ac="ArrayBuffer"in tc;if(ac)var sc=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],lc=ArrayBuffer.isView||function(e){return e&&sc.indexOf(Object.prototype.toString.call(e))>-1};function cc(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function dc(e){return"string"!=typeof e&&(e=String(e)),e}function uc(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return nc&&(t[Symbol.iterator]=function(){return t}),t}function fc(e){this.map={},e instanceof fc?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function pc(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function hc(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function mc(e){var t=new FileReader,r=hc(t);return t.readAsArrayBuffer(e),r}function gc(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function bc(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:oc&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:ic&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:rc&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():ac&&oc&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=gc(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ac&&(ArrayBuffer.prototype.isPrototypeOf(e)||lc(e))?this._bodyArrayBuffer=gc(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):rc&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},oc&&(this.blob=function(){var e=pc(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=pc(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(oc)return this.blob().then(mc);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=pc(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=hc(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8";return t.readAsText(e,o),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},ic&&(this.formData=function(){return this.text().then(wc)}),this.json=function(){return this.text().then(JSON.parse)},this}fc.prototype.append=function(e,t){e=cc(e),t=dc(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},fc.prototype.delete=function(e){delete this.map[cc(e)]},fc.prototype.get=function(e){return e=cc(e),this.has(e)?this.map[e]:null},fc.prototype.has=function(e){return this.map.hasOwnProperty(cc(e))},fc.prototype.set=function(e,t){this.map[cc(e)]=dc(t)},fc.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},fc.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),uc(e)},fc.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),uc(e)},fc.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),uc(e)},nc&&(fc.prototype[Symbol.iterator]=fc.prototype.entries);var vc=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function yc(e,t){if(!(this instanceof yc))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof yc){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new fc(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new fc(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),vc.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in tc)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function wc(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function xc(e,t){if(!(this instanceof xc))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new fc(t.headers),this.url=t.url||"",this._initBody(e)}yc.prototype.clone=function(){return new yc(this,{body:this._bodyInit})},bc.call(yc.prototype),bc.call(xc.prototype),xc.prototype.clone=function(){return new xc(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new fc(this.headers),url:this.url})},xc.error=function(){var e=new xc(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var _c=[301,302,303,307,308];xc.redirect=function(e,t){if(-1===_c.indexOf(t))throw new RangeError("Invalid status code");return new xc(null,{status:t,headers:{location:e}})};var kc=tc.DOMException;try{new kc}catch(e){(kc=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),kc.prototype.constructor=kc}function Sc(e,t){return new Promise((function(r,n){var o=new yc(e,t);if(o.signal&&o.signal.aborted)return n(new kc("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}if(i.onload=function(){var e,t,n={statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new fc,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}})),t)};0===o.url.indexOf("file://")&&(i.status<200||i.status>599)?n.status=200:n.status=i.status,n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var a="response"in i?i.response:i.responseText;setTimeout((function(){r(new xc(a,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},i.onabort=function(){setTimeout((function(){n(new kc("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&tc.location.href?tc.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(oc?i.responseType="blob":ac&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof fc||tc.Headers&&t.headers instanceof tc.Headers)){var s=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){s.push(cc(e)),i.setRequestHeader(e,dc(t.headers[e]))})),o.headers.forEach((function(e,t){-1===s.indexOf(t)&&i.setRequestHeader(t,e)}))}else o.headers.forEach((function(e,t){i.setRequestHeader(t,e)}));o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Sc.polyfill=!0,tc.fetch||(tc.fetch=Sc,tc.Headers=fc,tc.Request=yc,tc.Response=xc);r(429);const Ec=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const Tc=function(e){return this.__data__.has(e)};function Cc(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Bt;++t<r;)this.add(e[t])}Cc.prototype.add=Cc.prototype.push=Ec,Cc.prototype.has=Tc;const Ac=Cc;const Oc=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};const Dc=function(e,t){return e.has(t)};const jc=function(e,t,r,n,o,i){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,p=2&r?new Ac:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var h=e[u],m=t[u];if(n)var g=a?n(m,h,u,t,e,i):n(h,m,u,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!Oc(t,(function(e,t){if(!Dc(p,t)&&(h===e||o(h,e,r,n,i)))return p.push(t)}))){f=!1;break}}else if(h!==m&&!o(h,m,r,n,i)){f=!1;break}}return i.delete(e),i.delete(t),f};const Pc=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};const Rc=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r};var Ic=Ge?Ge.prototype:void 0,Nc=Ic?Ic.valueOf:void 0;const Lc=function(e,t,r,n,o,i,a){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||!i(new mn(e),new mn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return je(+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 s=Pc;case"[object Set]":var l=1&n;if(s||(s=Rc),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var d=jc(s(e),s(t),n,o,i,a);return a.delete(e),d;case"[object Symbol]":if(Nc)return Nc.call(e)==Nc.call(t)}return!1};var Mc=Object.prototype.hasOwnProperty;const Fc=function(e,t,r,n,o,i){var a=1&r,s=Jr(e),l=s.length;if(l!=Jr(t).length&&!a)return!1;for(var c=l;c--;){var d=s[c];if(!(a?d in t:Mc.call(t,d)))return!1}var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<l;){var m=e[d=s[c]],g=t[d];if(n)var b=a?n(g,m,d,t,e,i):n(m,g,d,e,t,i);if(!(void 0===b?m===g||o(m,g,r,n,i):b)){p=!1;break}h||(h="constructor"==d)}if(p&&!h){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(p=!1)}return i.delete(e),i.delete(t),p};var Bc=Object.prototype.hasOwnProperty;const Uc=function(e,t,r,n,o,i){var a=rr(e),s=rr(t),l=a?"[object Array]":fn(e),c=s?"[object Array]":fn(t),d="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),u="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),f=l==c;if(f&&sr(e)){if(!sr(t))return!1;a=!0,d=!1}if(f&&!d)return i||(i=new $t),a||yr(e)?jc(e,t,r,n,o,i):Lc(e,t,l,r,n,o,i);if(!(1&r)){var p=d&&Bc.call(e,"__wrapped__"),h=u&&Bc.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return i||(i=new $t),o(m,g,r,n,i)}}return!!f&&(i||(i=new $t),Fc(e,t,r,n,o,i))};const Vc=function e(t,r,n,o,i){return t===r||(null==t||null==r||!Qt(t)&&!Qt(r)?t!=t&&r!=r:Uc(t,r,n,o,e,i))};const $c=function(e,t){return Vc(e,t)};function Hc(e){return(Hc="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 Wc(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,zc(n.key),n)}}function zc(e){var t=function(e,t){if("object"!=Hc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Hc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hc(t)?t:String(t)}var Yc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._registry={}}var t,r,n;return t=e,(r=[{key:"importRegistry",value:function(e){Object.assign(this._registry,e)}},{key:"getChoices",value:function(e,t){var r=this._findChoices(e);if(null==r);else{if(null==t)return r;t(r)}}},{key:"_findChoices",value:function(e){var t=this._registry[e.getOntologyUrl()];if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];if($c(n.constraints,e.getConstraints())&&e.getParentProperty()===n.parentProperty&&e.getHierarchyProperty()===n.hierarchyProperty&&e.isParentPropertyInverted()===(n.isParentPropertyInverted||!1)&&e.isHierarchyPropertyInverted()===(n.isHierarchyPropertyInverted||!1))return n.choices}}},{key:"_constructLoadUrl",value:function(e){var t=[];if(t.push("constr=".concat(encodeURIComponent(JSON.stringify(e.getConstraints())))),null!=e.getParentProperty()){var r=!0===e.isParentPropertyInverted()?"ipp=":"pp=";t.push(r+encodeURIComponent(e.getParentProperty()))}if(null!=e.getHierarchyProperty()){var n=!0===e.isHierarchyPropertyInverted()?"ihp=":"hp=";t.push(n+encodeURIComponent(e.getHierarchyProperty()))}return"".concat(e.getOntologyUrl(),"?").concat(t.join("&"))}}])&&Wc(t.prototype,r),n&&Wc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Gc(e){return(Gc="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 qc(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,Xc(n.key),n)}}function Xc(e){var t=function(e,t){if("object"!=Gc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Gc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gc(t)?t:String(t)}var Qc=0,Zc=function(){function e(t){var r=t.itemStore,n=t.source,o=t.path,i=t.readOnly,a=void 0!==i&&i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._itemStore=r,this._source=n,this._path=o,this._readOnly=a,this._items=[],Qc+=1,this._id="_bundle_".concat(Qc),this._root=null,this._modified=!1}var t,r,n;return t=e,(r=[{key:"getInternalId",value:function(){return this._id}},{key:"getSource",value:function(){return this._source}},{key:"setRoot",value:function(e){return this._source.root=e,e}},{key:"getRoot",value:function(){if(this._source.root)return this._itemStore.getItem(this._source.root)}},{key:"getItemStore",value:function(){return this._itemStore}},{key:"getPath",value:function(){return this._path}},{key:"getItems",value:function(){return this._items}},{key:"addItem",value:function(e){this._items.push(e)}},{key:"removeItem",value:function(e){this._items.splice(this._items.indexOf(e),1)}},{key:"isModified",value:function(){return this._modified}},{key:"setModified",value:function(e){this._modified=e}},{key:"isReadOnly",value:function(){return this._readOnly||null==this._path}}])&&qc(t.prototype,r),n&&qc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Kc(e){return(Kc="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 Jc(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,ed(n.key),n)}}function ed(e){var t=function(e,t){if("object"!=Kc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Kc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Kc(t)?t:String(t)}var td=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.automaticSortAllowed=!0,this.handleErrorAs="throw",this._bundles=[],this._registry={},this._registryByProperty={},this._ontologyStore=t||new Yc}var t,r,n;return t=e,(r=[{key:"getTemplate",value:function(e){return this.getItem(e)}},{key:"getChildren",value:function(e,t){if(null==e)return[];var r=e.getSource(!0),n=r.content||r.items||[];if(t)return this._createItems(n,e._forceChildrenClones,e.getBundle());var o=this.getItem(r.extends);return o?o.getChildren().concat(e.getChildren(!0)):e.getChildren(!0)}},{key:"getItem",value:function(e){if(null!=e)return this._registry[e]}},{key:"getItems",value:function(){var e=this;return Object.keys(this._registry).map((function(t){return e._registry[t]}))}},{key:"renameItem",value:function(e,t){if(this._registry[t])this._handleError("Cannot rename to ".concat(t," since an item with that id already exists."));else if(""!==t&&null!==t){var r=this._registry[e];r&&(delete this._registry[e],this._registry[t]=r,r.setId(t));for(var n=function r(n){var o=n.content;if(o)for(var i=0;i<o.length;i++){var a=o[i];a.id!==e&&a["@id"]!==e||(a.id=t,delete a["@id"]),a.content&&r(a)}},o=this.getItems(),i=0;i<o.length;i++){var a=o[i];a instanceof Bo&&n(a._source)}}else this._handleError("Cannot give an item an empty string or null as id.")}},{key:"getItemIds",value:function(){return Object.keys(this._registry)}},{key:"getItemByProperty",value:function(e){return this._registryByProperty[e]}},{key:"detectTemplate",value:function(e,t,r){return ya(e,t,this,r)}},{key:"registerBundle",value:function(e){e.itemStore=this;var t=new Zc(e);this._bundles.push(t),e.source&&e.source.namespaces&&p(e.source.namespaces);var r=e.source.templates||e.source.auxilliary;return r instanceof Array&&this._createItems(r,!1,t),"object"===Kc(e.source.cachedChoices)&&this._ontologyStore.importRegistry(e.source.cachedChoices),t}},{key:"getBundles",value:function(){return this._bundles}},{key:"createTemplate",value:function(e){return this.registerBundle({source:e}).getRoot()}},{key:"createTemplateFromChildren",value:function(e){var t=this,r=(e||[]).map((function(e){return"string"==typeof e?t.getItem(e):e}));return new Bo({source:{},children:r,itemStore:this})}},{key:"setPriorities",value:function(e){this.priorities=e}},{key:"createExtendedSource",value:function(e,t){var r=Object.assign(Object.assign({},e),t);return r._extendedSource=t,r.extends=null,delete r.children,r}},{key:"createItem",value:function(e,t,r,n){var o,i=e.id||e["@id"],a=e.type||e["@type"];if(e.extends){var s=this._registry[e.extends];if(null==s&&this._handleError("Cannot find item to extend with id: ".concat(e.extends)),s){var l=this.createExtendedSource(s.getSource(),e);return this.createItem(l,!1,!1,n)}}if(null!=a){switch(a){case"text":o=new ni({source:e,itemStore:this,bundle:n});break;case"choice":o=new pi({source:e,itemStore:this,ontologyStore:this._ontologyStore,bundle:n});break;case"group":o=new Bo({source:e,children:null,itemStore:this,bundle:n});break;case"propertygroup":o=new Xo({source:e,children:null,itemStore:this,bundle:n})}return!0!==r&&(null!=e.property&&(this._registryByProperty[e.property]=o,this.priorities&&null!=this.priorities[e.property]&&(o.priority=this.priorities[e.property])),null!=i&&null==this._registry[i]&&(this._registry[i]=o,null!=n&&n.addItem(o))),o}if(null!=i){if(null!=this._registry[i]){if(!0===t||Object.keys(e).find((function(e){return"id"!==e&&"@id"!==e}))){var c=Object.assign(Object.assign({},this._registry[i]._source),e);return this.createItem(c,!1,!0)}return this._registry[i]}this._handleError("Cannot find referenced subitem using identifier: ".concat(i))}else this._handleError("Cannot create subitem, `type` for creating new or `id` for referencing external are required.")}},{key:"removeItem",value:function(e,t){var r=e.getBundle();null!=r&&r.removeItem(e),null!=e.getId()&&delete this._registry[e.getId()];var n=e.getProperty();null!=n&&this._registryByProperty[n]===e&&delete this._registryByProperty[n]}},{key:"_createItems",value:function(e,t,r){var n=this;return e.map((function(o,i){var a="string"==typeof o?e[i]={id:o}:o;return n.createItem(a,t,!1,r)})).filter((function(e){return e}))}},{key:"_handleError",value:function(e){if("throw"===this.handleErrorAs)throw new Error(e);console[this.handleErrorAs](e)}}])&&Jc(t.prototype,r),n&&Jc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rd(e){return(rd="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 nd(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nd=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new O(n||[]);return o(a,"_invoke",{value:E(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",p="executing",h="completed",m={};function g(){}function b(){}function v(){}var y={};c(y,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(D([])));x&&x!==r&&n.call(x,a)&&(y=x);var _=v.prototype=g.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==rd(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,r,n){var o=f;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?h:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=h,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=u(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(rd(t)+" is not iterable")}return b.prototype=v,o(_,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:b,configurable:!0}),b.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},k(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new S(d(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(_),c(_,l,"Generator"),c(_,a,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=D,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function od(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function id(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){od(i,n,o,a,s,"next",e)}function s(e){od(i,n,o,a,s,"throw",e)}a(void 0)}))}}var ad=function(e,t,r){var n="Fetching template bundle ".concat(r," failed.");if(e===t-1)throw Error("".concat(n," Cannot recover from this, please fix."));console.log("".concat(n," Will try to fetch from a fallback option."))},sd=function(){var e=id(nd().mark((function e(t){var r,n,o,i,a;return nd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.length,i=0;case 2:if(!(i<r)){e.next=34;break}return e.prev=3,e.next=6,fetch(t[i]);case 6:n=e.sent,e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(3),Error("A network error ocurred while trying to fetch bundle ".concat(t[i]));case 12:if(!n||!n.ok){e.next=30;break}if(e.prev=13,!(a=n.headers.has("content-type")&&n.headers.get("content-type"))||!a.includes("application/json")){e.next=22;break}return e.next=18,n.json();case 18:return o=e.sent,e.abrupt("break",34);case 22:throw new Error("Failed fetching template ".concat(t[i],". Expected a JSON file and got ").concat(a));case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(13),ad(i,r,t[i]);case 28:e.next=31;break;case 30:ad(i,r,t[i]);case 31:i++,e.next=2;break;case 34:return e.abrupt("return",o);case 35:case"end":return e.stop()}}),e,null,[[3,9],[13,25]])})));return function(t){return e.apply(this,arguments)}}(),ld=function(e){return e.map((function(e){return e instanceof Array?sd(e):Promise.resolve(e)}))},cd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.map((function(t){return e.registerBundle({source:t})}))};const dd=function(){var e=id(nd().mark((function e(t){var r,n,o,i,a,s=arguments;return nd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:[],n=s.length>2&&void 0!==s[2]?s[2]:function(){},0===r.length&&n&&n([]),o=ld(r),e.next=6,Promise.all(o);case 6:return i=e.sent,a=cd(t,i),n(a),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})(),n})());
|