@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
package/dist/rdforms.bmd.js
CHANGED
|
@@ -73,4 +73,4 @@ var o=n(8764),r=o.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t
|
|
|
73
73
|
* @author Louis-Dominique Dubeau
|
|
74
74
|
* @license MIT
|
|
75
75
|
* @copyright Louis-Dominique Dubeau
|
|
76
|
-
*/function n(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=n,t.isNCNameChar=function(e){return n(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=="},2654:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg viewBox=%270 0 30 30%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath stroke=%27rgba%280, 0, 0, 0.5%29%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},7752:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg viewBox=%270 0 30 30%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.5%29%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},6289:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23f44336%27 viewBox=%27-2 -2 7 7%27%3e%3cpath stroke=%27%23f44336%27 d=%27M0 0l3 3m0-3L0 3%27/%3e%3ccircle r=%27.5%27/%3e%3ccircle cx=%273%27 r=%27.5%27/%3e%3ccircle cy=%273%27 r=%27.5%27/%3e%3ccircle cx=%273%27 cy=%273%27 r=%27.5%27/%3e%3c/svg%3E"},6644:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 viewBox=%270 0 8 8%27%3e%3cpath d=%27M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z%27/%3e%3c/svg%3e"},2764:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 viewBox=%270 0 8 8%27%3e%3cpath d=%27M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z%27/%3e%3c/svg%3e"},2469:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%23fff%27/%3e%3c/svg%3e"},826:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 4 4%27%3e%3cpath stroke=%27%23fff%27 d=%27M0 2h4%27/%3e%3c/svg%3e"},9282:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 4 5%27%3e%3cpath fill=%27%23343a40%27 d=%27M2 0L0 2h4zm0 5L0 3h4z%27/%3e%3c/svg%3e"},5200:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%234caf50%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"},5900:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%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.26 2.974 7.25 8 2.193z%27/%3e%3c/svg%3e"},509:(e,t,n)=>{"use strict";var o=n(9985),r=n(3691),i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not a function")}},2655:(e,t,n)=>{"use strict";var o=n(9429),r=n(3691),i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not a constructor")}},3550:(e,t,n)=>{"use strict";var o=n(598),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw new i("Can't set "+r(e)+" as a prototype")}},7370:(e,t,n)=>{"use strict";var o=n(4201),r=n(5391),i=n(2560).f,a=o("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},1514:(e,t,n)=>{"use strict";var o=n(730).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},767:(e,t,n)=>{"use strict";var o=n(3622),r=TypeError;e.exports=function(e,t){if(o(t,e))return e;throw new r("Incorrect invocation")}},5027:(e,t,n)=>{"use strict";var o=n(8999),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not an object")}},1655:(e,t,n)=>{"use strict";var o=n(3689);e.exports=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},7612:(e,t,n)=>{"use strict";var o=n(2960).forEach,r=n(6834)("forEach");e.exports=r?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}},1055:(e,t,n)=>{"use strict";var o=n(4071),r=n(2615),i=n(690),a=n(1228),s=n(3292),l=n(9429),c=n(6310),d=n(6522),u=n(5185),f=n(1664),b=Array;e.exports=function(e){var t=i(e),n=l(this),p=arguments.length,m=p>1?arguments[1]:void 0,h=void 0!==m;h&&(m=o(m,p>2?arguments[2]:void 0));var g,v,y,w,x,k,_=f(t),E=0;if(!_||this===b&&s(_))for(g=c(t),v=n?new this(g):b(g);g>E;E++)k=h?m(t[E],E):t[E],d(v,E,k);else for(x=(w=u(t,_)).next,v=n?new this:[];!(y=r(x,w)).done;E++)k=h?a(w,m,[y.value,E],!0):y.value,d(v,E,k);return v.length=E,v}},4328:(e,t,n)=>{"use strict";var o=n(5290),r=n(7578),i=n(6310),a=function(e){return function(t,n,a){var s,l=o(t),c=i(l),d=r(a,c);if(e&&n!=n){for(;c>d;)if((s=l[d++])!=s)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2960:(e,t,n)=>{"use strict";var o=n(4071),r=n(8844),i=n(4413),a=n(690),s=n(6310),l=n(7120),c=r([].push),d=function(e){var t=1===e,n=2===e,r=3===e,d=4===e,u=6===e,f=7===e,b=5===e||u;return function(p,m,h,g){for(var v,y,w=a(p),x=i(w),k=s(x),_=o(m,h),E=0,C=g||l,S=t?C(p,k):n||f?C(p,0):void 0;k>E;E++)if((b||E in x)&&(y=_(v=x[E],E,w),e))if(t)S[E]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return E;case 2:c(S,v)}else switch(e){case 4:return!1;case 7:c(S,v)}return u?-1:r||d?d:S}};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,n)=>{"use strict";var o=n(3689),r=n(4201),i=n(3615),a=r("species");e.exports=function(e){return i>=51||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},6834:(e,t,n)=>{"use strict";var o=n(3689);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){return 1},1)}))}},5649:(e,t,n)=>{"use strict";var o=n(7697),r=n(2297),i=TypeError,a=Object.getOwnPropertyDescriptor,s=o&&!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(r(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,n)=>{"use strict";var o=n(8844);e.exports=o([].slice)},382:(e,t,n)=>{"use strict";var o=n(6004),r=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,s,l=1;l<n;){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=r(n/2),d=i(o(e,0,c),t),u=i(o(e,c),t),f=d.length,b=u.length,p=0,m=0;p<f||m<b;)e[p+m]=p<f&&m<b?t(d[p],u[m])<=0?d[p++]:u[m++]:p<f?d[p++]:u[m++];return e};e.exports=i},5271:(e,t,n)=>{"use strict";var o=n(2297),r=n(9429),i=n(8999),a=n(4201)("species"),s=Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(r(t)&&(t===s||o(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},7120:(e,t,n)=>{"use strict";var o=n(5271);e.exports=function(e,t){return new(o(e))(0===t?0:t)}},1228:(e,t,n)=>{"use strict";var o=n(5027),r=n(2125);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){r(e,"throw",t)}}},6431:(e,t,n)=>{"use strict";var o=n(4201)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!r)return!1}catch(e){return!1}var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},6648:(e,t,n)=>{"use strict";var o=n(8844),r=o({}.toString),i=o("".slice);e.exports=function(e){return i(r(e),8,-1)}},926:(e,t,n)=>{"use strict";var o=n(3043),r=n(9985),i=n(6648),a=n(4201)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=o?i:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?i(t):"Object"===(o=i(t))&&r(t.callee)?"Arguments":o}},800:(e,t,n)=>{"use strict";var o=n(5391),r=n(2148),i=n(6045),a=n(4071),s=n(767),l=n(981),c=n(8734),d=n(1934),u=n(7807),f=n(4241),b=n(7697),p=n(5375).fastKey,m=n(618),h=m.set,g=m.getterFor;e.exports={getConstructor:function(e,t,n,d){var u=e((function(e,r){s(e,f),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),b||(e.size=0),l(r)||c(r,e[d],{that:e,AS_ENTRIES:n})})),f=u.prototype,m=g(t),v=function(e,t,n){var o,r,i=m(e),a=y(e,t);return a?a.value=n:(i.last=a={index:r=p(t,!0),key:t,value:n,previous:o=i.last,next:void 0,removed:!1},i.first||(i.first=a),o&&(o.next=a),b?i.size++:e.size++,"F"!==r&&(i.index[r]=a)),e},y=function(e,t){var n,o=m(e),r=p(t);if("F"!==r)return o.index[r];for(n=o.first;n;n=n.next)if(n.key===t)return n};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=o(null),b?e.size=0:this.size=0},delete:function(e){var t=m(this),n=y(this,e);if(n){var o=n.next,r=n.previous;delete t.index[n.index],n.removed=!0,r&&(r.next=o),o&&(o.previous=r),t.first===n&&(t.first=o),t.last===n&&(t.last=r),b?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=m(this),o=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(o(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(f,n?{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)}}),b&&r(f,"size",{configurable:!0,get:function(){return m(this).size}}),u},setStrong:function(e,t,n){var o=t+" Iterator",r=g(t),i=g(o);d(e,t,(function(e,t){h(this,{type:o,target:e,state:r(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?u("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,u(void 0,!0))}),n?"entries":"values",!n,!0),f(t)}}},319:(e,t,n)=>{"use strict";var o=n(9989),r=n(9037),i=n(8844),a=n(5266),s=n(1880),l=n(5375),c=n(8734),d=n(767),u=n(9985),f=n(981),b=n(8999),p=n(3689),m=n(6431),h=n(5997),g=n(3457);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),w=v?"set":"add",x=r[e],k=x&&x.prototype,_=x,E={},C=function(e){var t=i(k[e]);s(k,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!b(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!b(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!b(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!u(x)||!(y||k.forEach&&!p((function(){(new x).entries().next()})))))_=n.getConstructor(t,e,v,w),l.enable();else if(a(e,!0)){var S=new _,T=S[w](y?{}:-0,1)!==S,A=p((function(){S.has(1)})),O=m((function(e){new x(e)})),D=!y&&p((function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)}));O||((_=t((function(e,t){d(e,k);var n=g(new x,e,_);return f(t)||c(t,n[w],{that:n,AS_ENTRIES:v}),n}))).prototype=k,k.constructor=_),(A||D)&&(C("delete"),C("has"),v&&C("get")),(D||T)&&C(w),y&&k.clear&&delete k.clear}return E[e]=_,o({global:!0,constructor:!0,forced:_!==x},E),h(_,e),y||n.setStrong(_,e,v),_}},8758:(e,t,n)=>{"use strict";var o=n(6812),r=n(9152),i=n(2474),a=n(2560);e.exports=function(e,t,n){for(var s=r(t),l=a.f,c=i.f,d=0;d<s.length;d++){var u=s[d];o(e,u)||n&&o(n,u)||l(e,u,c(t,u))}}},7413:(e,t,n)=>{"use strict";var o=n(4201)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(e){}}return!1}},1748:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((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,n)=>{"use strict";var o=n(7697),r=n(2560),i=n(5684);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,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,n)=>{"use strict";var o=n(8360),r=n(2560),i=n(5684);e.exports=function(e,t,n){var a=o(t);a in e?r.f(e,a,i(0,n)):e[a]=n}},1797:(e,t,n)=>{"use strict";var o=n(5027),r=n(5899),i=TypeError;e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return r(this,e)}},2148:(e,t,n)=>{"use strict";var o=n(8702),r=n(2560);e.exports=function(e,t,n){return n.get&&o(n.get,t,{getter:!0}),n.set&&o(n.set,t,{setter:!0}),r.f(e,t,n)}},1880:(e,t,n)=>{"use strict";var o=n(9985),r=n(2560),i=n(8702),a=n(5014);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(o(n)&&i(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6045:(e,t,n)=>{"use strict";var o=n(1880);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},5014:(e,t,n)=>{"use strict";var o=n(9037),r=Object.defineProperty;e.exports=function(e,t){try{r(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},8494:(e,t,n)=>{"use strict";var o=n(3691),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw new r("Cannot delete property "+o(t)+" of "+o(e))}},7697:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6420:(e,t,n)=>{"use strict";var o=n(9037),r=n(8999),i=o.document,a=r(i)&&r(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,n)=>{"use strict";var o=n(6420)("span").classList,r=o&&o.constructor&&o.constructor.prototype;e.exports=r===Object.prototype?void 0:r},7365:(e,t,n)=>{"use strict";var o=n(71).match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},2532:(e,t,n)=>{"use strict";var o=n(8563),r=n(806);e.exports=!o&&!r&&"object"==typeof window&&"object"==typeof document},8563:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},7298:(e,t,n)=>{"use strict";var o=n(71);e.exports=/MSIE|Trident/.test(o)},3221:(e,t,n)=>{"use strict";var o=n(71);e.exports=/ipad|iphone|ipod/i.test(o)&&"undefined"!=typeof Pebble},4764:(e,t,n)=>{"use strict";var o=n(71);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},806:(e,t,n)=>{"use strict";var o=n(9037),r=n(6648);e.exports="process"===r(o.process)},7486:(e,t,n)=>{"use strict";var o=n(71);e.exports=/web0s(?!.*chrome)/i.test(o)},71:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:(e,t,n)=>{"use strict";var o,r,i=n(9037),a=n(71),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,d=c&&c.v8;d&&(r=(o=d.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=+o[1]),e.exports=r},7922:(e,t,n)=>{"use strict";var o=n(71).match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},2739:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9989:(e,t,n)=>{"use strict";var o=n(9037),r=n(2474).f,i=n(5773),a=n(1880),s=n(5014),l=n(8758),c=n(5266);e.exports=function(e,t){var n,d,u,f,b,p=e.target,m=e.global,h=e.stat;if(n=m?o:h?o[p]||s(p,{}):o[p]&&o[p].prototype)for(d in t){if(f=t[d],u=e.dontCallGetSet?(b=r(n,d))&&b.value:n[d],!c(m?d:p+(h?".":"#")+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(n,d,f,e)}}},3689:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},8678:(e,t,n)=>{"use strict";n(4043);var o=n(2615),r=n(1880),i=n(6308),a=n(3689),s=n(4201),l=n(5773),c=s("species"),d=RegExp.prototype;e.exports=function(e,t,n,u){var f=s(e),b=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),p=b&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!b||!p||n){var m=/./[f],h=t(f,""[e],(function(e,t,n,r,a){var s=t.exec;return s===i||s===d.exec?b&&!a?{done:!0,value:o(m,t,n,r)}:{done:!0,value:o(e,n,t,r)}:{done:!1}}));r(String.prototype,e,h[0]),r(d,f,h[1])}u&&l(d[f],"sham",!0)}},1594:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},1735:(e,t,n)=>{"use strict";var o=n(7215),r=Function.prototype,i=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(i):function(){return a.apply(i,arguments)})},4071:(e,t,n)=>{"use strict";var o=n(6576),r=n(509),i=n(7215),a=o(o.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},7215:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6761:(e,t,n)=>{"use strict";var o=n(8844),r=n(509),i=n(8999),a=n(6812),s=n(6004),l=n(7215),c=Function,d=o([].concat),u=o([].join),f={},b=function(e,t,n){if(!a(f,t)){for(var o=[],r=0;r<t;r++)o[r]="a["+r+"]";f[t]=c("C,a","return new C("+u(o,",")+")")}return f[t](e,n)};e.exports=l?c.bind:function(e){var t=r(this),n=t.prototype,o=s(arguments,1),a=function(){var n=d(o,s(arguments));return this instanceof a?b(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},2615:(e,t,n)=>{"use strict";var o=n(7215),r=Function.prototype.call;e.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},1236:(e,t,n)=>{"use strict";var o=n(7697),r=n(6812),i=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!o||o&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},2743:(e,t,n)=>{"use strict";var o=n(8844),r=n(509);e.exports=function(e,t,n){try{return o(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},6576:(e,t,n)=>{"use strict";var o=n(6648),r=n(8844);e.exports=function(e){if("Function"===o(e))return r(e)}},8844:(e,t,n)=>{"use strict";var o=n(7215),r=Function.prototype,i=r.call,a=o&&r.bind.bind(i,i);e.exports=o?a:function(e){return function(){return i.apply(e,arguments)}}},6058:(e,t,n)=>{"use strict";var o=n(9037),r=n(9985),i=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(o[e]):o[e]&&o[e][t]}},1664:(e,t,n)=>{"use strict";var o=n(926),r=n(4849),i=n(981),a=n(9478),s=n(4201)("iterator");e.exports=function(e){if(!i(e))return r(e,s)||r(e,"@@iterator")||a[o(e)]}},5185:(e,t,n)=>{"use strict";var o=n(2615),r=n(509),i=n(5027),a=n(3691),s=n(1664),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return i(o(n,e));throw new l(a(e)+" is not iterable")}},2643:(e,t,n)=>{"use strict";var o=n(8844),r=n(2297),i=n(9985),a=n(6648),s=n(4327),l=o([].push);e.exports=function(e){if(i(e))return e;if(r(e)){for(var t=e.length,n=[],o=0;o<t;o++){var c=e[o];"string"==typeof c?l(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(n,s(c))}var d=n.length,u=!0;return function(e,t){if(u)return u=!1,t;if(r(this))return t;for(var o=0;o<d;o++)if(n[o]===e)return t}}}},4849:(e,t,n)=>{"use strict";var o=n(509),r=n(981);e.exports=function(e,t){var n=e[t];return r(n)?void 0:o(n)}},7017:(e,t,n)=>{"use strict";var o=n(8844),r=n(690),i=Math.floor,a=o("".charAt),s=o("".replace),l=o("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,o,u,f){var b=n+e.length,p=o.length,m=d;return void 0!==u&&(u=r(u),m=c),s(f,m,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,b);case"<":c=u[l(s,1,-1)];break;default:var d=+s;if(0===d)return r;if(d>p){var f=i(d/10);return 0===f?r:f<=p?void 0===o[f-1]?a(s,1):o[f-1]+a(s,1):r}c=o[d-1]}return void 0===c?"":c}))}},9037:function(e,t,n){"use strict";var o=function(e){return e&&e.Math===Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||o("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6812:(e,t,n)=>{"use strict";var o=n(8844),r=n(690),i=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(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,n)=>{"use strict";var o=n(6058);e.exports=o("document","documentElement")},8506:(e,t,n)=>{"use strict";var o=n(7697),r=n(3689),i=n(6420);e.exports=!o&&!r((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},4413:(e,t,n)=>{"use strict";var o=n(8844),r=n(3689),i=n(6648),a=Object,s=o("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},3457:(e,t,n)=>{"use strict";var o=n(9985),r=n(8999),i=n(9385);e.exports=function(e,t,n){var a,s;return i&&o(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},6738:(e,t,n)=>{"use strict";var o=n(8844),r=n(9985),i=n(4091),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},5375:(e,t,n)=>{"use strict";var o=n(9989),r=n(8844),i=n(7248),a=n(8999),s=n(6812),l=n(2560).f,c=n(2741),d=n(6062),u=n(7049),f=n(4630),b=n(1594),p=!1,m=f("meta"),h=0,g=function(e){l(e,m,{value:{objectID:"O"+h++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},p=!0;var e=c.f,t=r([].splice),n={};n[m]=1,e(n).length&&(c.f=function(n){for(var o=e(n),r=0,i=o.length;r<i;r++)if(o[r]===m){t(o,r,1);break}return o},o({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";g(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!u(e))return!0;if(!t)return!1;g(e)}return e[m].weakData},onFreeze:function(e){return b&&p&&u(e)&&!s(e,m)&&g(e),e}};i[m]=!0},618:(e,t,n)=>{"use strict";var o,r,i,a=n(9834),s=n(9037),l=n(8999),c=n(5773),d=n(6812),u=n(4091),f=n(2713),b=n(7248),p=s.TypeError,m=s.WeakMap;if(a||u.state){var h=u.state||(u.state=new m);h.get=h.get,h.has=h.has,h.set=h.set,o=function(e,t){if(h.has(e))throw new p("Object already initialized");return t.facade=e,h.set(e,t),t},r=function(e){return h.get(e)||{}},i=function(e){return h.has(e)}}else{var g=f("state");b[g]=!0,o=function(e,t){if(d(e,g))throw new p("Object already initialized");return t.facade=e,c(e,g,t),t},r=function(e){return d(e,g)?e[g]:{}},i=function(e){return d(e,g)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},3292:(e,t,n)=>{"use strict";var o=n(4201),r=n(9478),i=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},2297:(e,t,n)=>{"use strict";var o=n(6648);e.exports=Array.isArray||function(e){return"Array"===o(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,n)=>{"use strict";var o=n(8844),r=n(3689),i=n(9985),a=n(926),s=n(6058),l=n(6738),c=function(){},d=s("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=o(u.exec),b=!u.test(c),p=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 b||!!f(u,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!d||r((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?m:p},6251:(e,t,n)=>{"use strict";var o=n(6812);e.exports=function(e){return void 0!==e&&(o(e,"value")||o(e,"writable"))}},5266:(e,t,n)=>{"use strict";var o=n(3689),r=n(9985),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===d||n!==c&&(r(t)?o(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,n)=>{"use strict";var o=n(9985);e.exports=function(e){return"object"==typeof e?null!==e:o(e)}},598:(e,t,n)=>{"use strict";var o=n(8999);e.exports=function(e){return o(e)||null===e}},3931:e=>{"use strict";e.exports=!1},1245:(e,t,n)=>{"use strict";var o=n(8999),r=n(6648),i=n(4201)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===r(e))}},734:(e,t,n)=>{"use strict";var o=n(6058),r=n(9985),i=n(3622),a=n(9525),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&i(t.prototype,s(e))}},8734:(e,t,n)=>{"use strict";var o=n(4071),r=n(2615),i=n(5027),a=n(3691),s=n(3292),l=n(6310),c=n(3622),d=n(5185),u=n(1664),f=n(2125),b=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var h,g,v,y,w,x,k,_=n&&n.that,E=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),S=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),A=o(t,_),O=function(e){return h&&f(h,"normal",e),new p(!0,e)},D=function(e){return E?(i(e),T?A(e[0],e[1],O):A(e[0],e[1])):T?A(e,O):A(e)};if(C)h=e.iterator;else if(S)h=e;else{if(!(g=u(e)))throw new b(a(e)+" is not iterable");if(s(g)){for(v=0,y=l(e);y>v;v++)if((w=D(e[v]))&&c(m,w))return w;return new p(!1)}h=d(e,g)}for(x=C?e.next:h.next;!(k=r(x,h)).done;){try{w=D(k.value)}catch(e){f(h,"throw",e)}if("object"==typeof w&&w&&c(m,w))return w}return new p(!1)}},2125:(e,t,n)=>{"use strict";var o=n(2615),r=n(5027),i=n(4849);e.exports=function(e,t,n){var a,s;r(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=o(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return r(a),n}},974:(e,t,n)=>{"use strict";var o=n(2013).IteratorPrototype,r=n(5391),i=n(5684),a=n(5997),s=n(9478),l=function(){return this};e.exports=function(e,t,n,c){var d=t+" Iterator";return e.prototype=r(o,{next:i(+!c,n)}),a(e,d,!1,!0),s[d]=l,e}},1934:(e,t,n)=>{"use strict";var o=n(9989),r=n(2615),i=n(3931),a=n(1236),s=n(9985),l=n(974),c=n(1868),d=n(9385),u=n(5997),f=n(5773),b=n(1880),p=n(4201),m=n(9478),h=n(2013),g=a.PROPER,v=a.CONFIGURABLE,y=h.IteratorPrototype,w=h.BUGGY_SAFARI_ITERATORS,x=p("iterator"),k=function(){return this};e.exports=function(e,t,n,a,p,h,_){l(n,t,a);var E,C,S,T=function(e){if(e===p&&N)return N;if(!w&&e&&e in D)return D[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},A=t+" Iterator",O=!1,D=e.prototype,I=D[x]||D["@@iterator"]||p&&D[p],N=!w&&I||T(p),j="Array"===t&&D.entries||I;if(j&&(E=c(j.call(new e)))!==Object.prototype&&E.next&&(i||c(E)===y||(d?d(E,y):s(E[x])||b(E,x,k)),u(E,A,!0,!0),i&&(m[A]=k)),g&&"values"===p&&I&&"values"!==I.name&&(!i&&v?f(D,"name","values"):(O=!0,N=function(){return r(I,this)})),p)if(C={values:T("values"),keys:h?N:T("keys"),entries:T("entries")},_)for(S in C)(w||O||!(S in D))&&b(D,S,C[S]);else o({target:t,proto:!0,forced:w||O},C);return i&&!_||D[x]===N||b(D,x,N,{name:p}),m[t]=N,C}},2013:(e,t,n)=>{"use strict";var o,r,i,a=n(3689),s=n(9985),l=n(8999),c=n(5391),d=n(1868),u=n(1880),f=n(4201),b=n(3931),p=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(r=d(d(i)))!==Object.prototype&&(o=r):m=!0),!l(o)||a((function(){var e={};return o[p].call(e)!==e}))?o={}:b&&(o=c(o)),s(o[p])||u(o,p,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:m}},9478:e=>{"use strict";e.exports={}},6310:(e,t,n)=>{"use strict";var o=n(3126);e.exports=function(e){return o(e.length)}},8702:(e,t,n)=>{"use strict";var o=n(8844),r=n(3689),i=n(9985),a=n(6812),s=n(7697),l=n(1236).CONFIGURABLE,c=n(6738),d=n(618),u=d.enforce,f=d.get,b=String,p=Object.defineProperty,m=o("".slice),h=o("".replace),g=o([].join),v=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(b(t),0,7)&&(t="["+h(b(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return a(o,"source")||(o.source=g(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,n=Math.floor;e.exports=Math.trunc||function(e){var o=+e;return(o>0?n:t)(o)}},231:(e,t,n)=>{"use strict";var o,r,i,a,s,l=n(9037),c=n(517),d=n(4071),u=n(9886).set,f=n(4410),b=n(4764),p=n(3221),m=n(7486),h=n(806),g=l.MutationObserver||l.WebKitMutationObserver,v=l.document,y=l.process,w=l.Promise,x=c("queueMicrotask");if(!x){var k=new f,_=function(){var e,t;for(h&&(e=y.domain)&&e.exit();t=k.get();)try{t()}catch(e){throw k.head&&o(),e}e&&e.enter()};b||h||m||!g||!v?!p&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=d(a.then,a),o=function(){s(_)}):h?o=function(){y.nextTick(_)}:(u=d(u,l),o=function(){u(_)}):(r=!0,i=v.createTextNode(""),new g(_).observe(i,{characterData:!0}),o=function(){i.data=r=!r}),x=function(e){k.head||o(),k.add(e)}}e.exports=x},8742:(e,t,n)=>{"use strict";var o=n(509),r=TypeError,i=function(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw new r("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new i(e)}},2124:(e,t,n)=>{"use strict";var o=n(1245),r=TypeError;e.exports=function(e){if(o(e))throw new r("The method doesn't accept regular expressions");return e}},7897:(e,t,n)=>{"use strict";var o=n(9037),r=n(3689),i=n(8844),a=n(4327),s=n(1435).trim,l=n(6350),c=o.parseInt,d=o.Symbol,u=d&&d.iterator,f=/^[+-]?0x/i,b=i(f.exec),p=8!==c(l+"08")||22!==c(l+"0x16")||u&&!r((function(){c(Object(u))}));e.exports=p?function(e,t){var n=s(a(e));return c(n,t>>>0||(b(f,n)?16:10))}:c},5394:(e,t,n)=>{"use strict";var o=n(7697),r=n(8844),i=n(2615),a=n(3689),s=n(300),l=n(7518),c=n(9556),d=n(690),u=n(4413),f=Object.assign,b=Object.defineProperty,p=r([].concat);e.exports=!f||a((function(){if(o&&1!==f({b:1},f(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection");return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||"abcdefghijklmnopqrst"!==s(f({},t)).join("")}))?function(e,t){for(var n=d(e),r=arguments.length,a=1,f=l.f,b=c.f;r>a;)for(var m,h=u(arguments[a++]),g=f?p(s(h),f(h)):s(h),v=g.length,y=0;v>y;)m=g[y++],o&&!i(b,h,m)||(n[m]=h[m]);return n}:f},5391:(e,t,n)=>{"use strict";var o,r=n(5027),i=n(8920),a=n(2739),s=n(7248),l=n(2688),c=n(6420),d=n(2713),u=d("IE_PROTO"),f=function(){},b=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(b("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&o?p(o):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(b("document.F=Object")),e.close(),e.F):p(o);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=r(e),n=new f,f.prototype=null,n[u]=e):n=m(),void 0===t?n:i.f(n,t)}},8920:(e,t,n)=>{"use strict";var o=n(7697),r=n(5648),i=n(2560),a=n(5027),s=n(5290),l=n(300);t.f=o&&!r?Object.defineProperties:function(e,t){a(e);for(var n,o=s(t),r=l(t),c=r.length,d=0;c>d;)i.f(e,n=r[d++],o[n]);return e}},2560:(e,t,n)=>{"use strict";var o=n(7697),r=n(8506),i=n(5648),a=n(5027),s=n(8360),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor;t.f=o?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var o=d(e,t);o&&o.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:o.configurable,enumerable:"enumerable"in n?n.enumerable:o.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},2474:(e,t,n)=>{"use strict";var o=n(7697),r=n(2615),i=n(9556),a=n(5684),s=n(5290),l=n(8360),c=n(6812),d=n(8506),u=Object.getOwnPropertyDescriptor;t.f=o?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(!r(i.f,e,t),e[t])}},6062:(e,t,n)=>{"use strict";var o=n(6648),r=n(5290),i=n(2741).f,a=n(6004),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===o(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(r(e))}},2741:(e,t,n)=>{"use strict";var o=n(4948),r=n(2739).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},7518:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},1868:(e,t,n)=>{"use strict";var o=n(6812),r=n(9985),i=n(690),a=n(2713),s=n(1748),l=a("IE_PROTO"),c=Object,d=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(o(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof c?d:null}},7049:(e,t,n)=>{"use strict";var o=n(3689),r=n(8999),i=n(6648),a=n(1655),s=Object.isExtensible,l=o((function(){s(1)}));e.exports=l||a?function(e){return!!r(e)&&((!a||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},3622:(e,t,n)=>{"use strict";var o=n(8844);e.exports=o({}.isPrototypeOf)},4948:(e,t,n)=>{"use strict";var o=n(8844),r=n(6812),i=n(5290),a=n(4328).indexOf,s=n(7248),l=o([].push);e.exports=function(e,t){var n,o=i(e),c=0,d=[];for(n in o)!r(s,n)&&r(o,n)&&l(d,n);for(;t.length>c;)r(o,n=t[c++])&&(~a(d,n)||l(d,n));return d}},300:(e,t,n)=>{"use strict";var o=n(4948),r=n(2739);e.exports=Object.keys||function(e){return o(e,r)}},9556:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!n.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},9385:(e,t,n)=>{"use strict";var o=n(2743),r=n(5027),i=n(3550);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=o(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e(n,o):n.__proto__=o,n}}():void 0)},9419:(e,t,n)=>{"use strict";var o=n(7697),r=n(3689),i=n(8844),a=n(1868),s=n(300),l=n(5290),c=i(n(9556).f),d=i([].push),u=o&&r((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),f=function(e){return function(t){for(var n,r=l(t),i=s(r),f=u&&null===a(r),b=i.length,p=0,m=[];b>p;)n=i[p++],o&&!(f?n in r:c(r,n))||d(m,e?[n,r[n]]:r[n]);return m}};e.exports={entries:f(!0),values:f(!1)}},5073:(e,t,n)=>{"use strict";var o=n(3043),r=n(926);e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},5899:(e,t,n)=>{"use strict";var o=n(2615),r=n(9985),i=n(8999),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!i(s=o(n,e)))return s;if(r(n=e.valueOf)&&!i(s=o(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!i(s=o(n,e)))return s;throw new a("Can't convert object to primitive value")}},9152:(e,t,n)=>{"use strict";var o=n(6058),r=n(8844),i=n(2741),a=n(7518),s=n(5027),l=r([].concat);e.exports=o("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},496:(e,t,n)=>{"use strict";var o=n(9037);e.exports=o},9302:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},7073:(e,t,n)=>{"use strict";var o=n(9037),r=n(7919),i=n(9985),a=n(5266),s=n(6738),l=n(4201),c=n(2532),d=n(8563),u=n(3931),f=n(3615),b=r&&r.prototype,p=l("species"),m=!1,h=i(o.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(r),t=e!==String(r);if(!t&&66===f)return!0;if(u&&(!b.catch||!b.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new r((function(e){e(1)})),o=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=o,!(m=n.then((function(){}))instanceof o))return!0}return!t&&(c||d)&&!h}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:h,SUBCLASSING:m}},7919:(e,t,n)=>{"use strict";var o=n(9037);e.exports=o.Promise},2945:(e,t,n)=>{"use strict";var o=n(5027),r=n(8999),i=n(8742);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},562:(e,t,n)=>{"use strict";var o=n(7919),r=n(6431),i=n(7073).CONSTRUCTOR;e.exports=i||!r((function(e){o.all(e).then(void 0,(function(){}))}))},8055:(e,t,n)=>{"use strict";var o=n(2560).f;e.exports=function(e,t,n){n in e||o(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=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},n=this.tail;n?n.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,n)=>{"use strict";var o=n(2615),r=n(5027),i=n(9985),a=n(6648),s=n(6308),l=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var c=o(n,e,t);return null!==c&&r(c),c}if("RegExp"===a(e))return o(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},6308:(e,t,n)=>{"use strict";var o,r,i=n(2615),a=n(8844),s=n(4327),l=n(9633),c=n(7901),d=n(3430),u=n(5391),f=n(618).get,b=n(2100),p=n(6422),m=d("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,g=h,v=a("".charAt),y=a("".indexOf),w=a("".replace),x=a("".slice),k=(r=/b*/g,i(h,o=/a/,"a"),i(h,r,"a"),0!==o.lastIndex||0!==r.lastIndex),_=c.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(k||E||_||b||p)&&(g=function(e){var t,n,o,r,a,c,d,b=this,p=f(b),C=s(e),S=p.raw;if(S)return S.lastIndex=b.lastIndex,t=i(g,S,C),b.lastIndex=S.lastIndex,t;var T=p.groups,A=_&&b.sticky,O=i(l,b),D=b.source,I=0,N=C;if(A&&(O=w(O,"y",""),-1===y(O,"g")&&(O+="g"),N=x(C,b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&"\n"!==v(C,b.lastIndex-1))&&(D="(?: "+D+")",N=" "+N,I++),n=new RegExp("^(?:"+D+")",O)),E&&(n=new RegExp("^"+D+"$(?!\\s)",O)),k&&(o=b.lastIndex),r=i(h,A?n:b,N),A?r?(r.input=x(r.input,I),r[0]=x(r[0],I),r.index=b.lastIndex,b.lastIndex+=r[0].length):b.lastIndex=0:k&&r&&(b.lastIndex=b.global?r.index+r[0].length:o),E&&r&&r.length>1&&i(m,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&T)for(r.groups=c=u(null),a=0;a<T.length;a++)c[(d=T[a])[0]]=r[d[1]];return r}),e.exports=g},9633:(e,t,n)=>{"use strict";var o=n(5027);e.exports=function(){var e=o(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,n)=>{"use strict";var o=n(2615),r=n(6812),i=n(3622),a=n(9633),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||r(e,"flags")||!i(s,e)?t:o(a,e)}},7901:(e,t,n)=>{"use strict";var o=n(3689),r=n(9037).RegExp,i=o((function(){var e=r("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||o((function(){return!r("a","y").sticky})),s=i||o((function(){var e=r("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},2100:(e,t,n)=>{"use strict";var o=n(3689),r=n(9037).RegExp;e.exports=o((function(){var e=r(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},6422:(e,t,n)=>{"use strict";var o=n(3689),r=n(9037).RegExp;e.exports=o((function(){var e=r("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},4684:(e,t,n)=>{"use strict";var o=n(981),r=TypeError;e.exports=function(e){if(o(e))throw new r("Can't call method on "+e);return e}},517:(e,t,n)=>{"use strict";var o=n(9037),r=n(7697),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!r)return o[e];var t=i(o,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,n)=>{"use strict";var o=n(6058),r=n(2148),i=n(4201),a=n(7697),s=i("species");e.exports=function(e){var t=o(e);a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},5997:(e,t,n)=>{"use strict";var o=n(2560).f,r=n(6812),i=n(4201)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,i)&&o(e,i,{configurable:!0,value:t})}},2713:(e,t,n)=>{"use strict";var o=n(3430),r=n(4630),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},4091:(e,t,n)=>{"use strict";var o=n(9037),r=n(5014),i=o["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=i},3430:(e,t,n)=>{"use strict";var o=n(3931),r=n(4091);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:o?"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,n)=>{"use strict";var o=n(5027),r=n(2655),i=n(981),a=n(4201)("species");e.exports=function(e,t){var n,s=o(e).constructor;return void 0===s||i(n=o(s)[a])?t:r(n)}},730:(e,t,n)=>{"use strict";var o=n(8844),r=n(8700),i=n(4327),a=n(4684),s=o("".charAt),l=o("".charCodeAt),c=o("".slice),d=function(e){return function(t,n){var o,d,u=i(a(t)),f=r(n),b=u.length;return f<0||f>=b?e?"":void 0:(o=l(u,f))<55296||o>56319||f+1===b||(d=l(u,f+1))<56320||d>57343?e?s(u,f):o:e?c(u,f,f+2):d-56320+(o-55296<<10)+65536}};e.exports={codeAt:d(!1),charAt:d(!0)}},5984:(e,t,n)=>{"use strict";var o=n(1236).PROPER,r=n(3689),i=n(6350);e.exports=function(e){return r((function(){return!!i[e]()||"
"!=="
"[e]()||o&&i[e].name!==e}))}},1435:(e,t,n)=>{"use strict";var o=n(8844),r=n(4684),i=n(4327),a=n(6350),s=o("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),d=function(e){return function(t){var n=i(r(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,c,"$1")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},146:(e,t,n)=>{"use strict";var o=n(3615),r=n(3689),i=n(9037).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},3032:(e,t,n)=>{"use strict";var o=n(2615),r=n(6058),i=n(4201),a=n(1880);e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return o(n,this)}),{arity:1})}},6549:(e,t,n)=>{"use strict";var o=n(146);e.exports=o&&!!Symbol.for&&!!Symbol.keyFor},9886:(e,t,n)=>{"use strict";var o,r,i,a,s=n(9037),l=n(1735),c=n(4071),d=n(9985),u=n(6812),f=n(3689),b=n(2688),p=n(6004),m=n(6420),h=n(1500),g=n(4764),v=n(806),y=s.setImmediate,w=s.clearImmediate,x=s.process,k=s.Dispatch,_=s.Function,E=s.MessageChannel,C=s.String,S=0,T={};f((function(){o=s.location}));var A=function(e){if(u(T,e)){var t=T[e];delete T[e],t()}},O=function(e){return function(){A(e)}},D=function(e){A(e.data)},I=function(e){s.postMessage(C(e),o.protocol+"//"+o.host)};y&&w||(y=function(e){h(arguments.length,1);var t=d(e)?e:_(e),n=p(arguments,1);return T[++S]=function(){l(t,void 0,n)},r(S),S},w=function(e){delete T[e]},v?r=function(e){x.nextTick(O(e))}:k&&k.now?r=function(e){k.now(O(e))}:E&&!g?(a=(i=new E).port2,i.port1.onmessage=D,r=c(a.postMessage,a)):s.addEventListener&&d(s.postMessage)&&!s.importScripts&&o&&"file:"!==o.protocol&&!f(I)?(r=I,s.addEventListener("message",D,!1)):r="onreadystatechange"in m("script")?function(e){b.appendChild(m("script")).onreadystatechange=function(){b.removeChild(this),A(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:y,clear:w}},3648:(e,t,n)=>{"use strict";var o=n(8844);e.exports=o(1..valueOf)},7578:(e,t,n)=>{"use strict";var o=n(8700),r=Math.max,i=Math.min;e.exports=function(e,t){var n=o(e);return n<0?r(n+t,0):i(n,t)}},5290:(e,t,n)=>{"use strict";var o=n(4413),r=n(4684);e.exports=function(e){return o(r(e))}},8700:(e,t,n)=>{"use strict";var o=n(8828);e.exports=function(e){var t=+e;return t!=t||0===t?0:o(t)}},3126:(e,t,n)=>{"use strict";var o=n(8700),r=Math.min;e.exports=function(e){var t=o(e);return t>0?r(t,9007199254740991):0}},690:(e,t,n)=>{"use strict";var o=n(4684),r=Object;e.exports=function(e){return r(o(e))}},8732:(e,t,n)=>{"use strict";var o=n(2615),r=n(8999),i=n(734),a=n(4849),s=n(5899),l=n(4201),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,l=a(e,d);if(l){if(void 0===t&&(t="default"),n=o(l,e,t),!r(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},8360:(e,t,n)=>{"use strict";var o=n(8732),r=n(734);e.exports=function(e){var t=o(e,"string");return r(t)?t:t+""}},3043:(e,t,n)=>{"use strict";var o={};o[n(4201)("toStringTag")]="z",e.exports="[object z]"===String(o)},4327:(e,t,n)=>{"use strict";var o=n(926),r=String;e.exports=function(e){if("Symbol"===o(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}},3691:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},4630:(e,t,n)=>{"use strict";var o=n(8844),r=0,i=Math.random(),a=o(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+i,36)}},9525:(e,t,n)=>{"use strict";var o=n(146);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5648:(e,t,n)=>{"use strict";var o=n(7697),r=n(3689);e.exports=o&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1500:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},9834:(e,t,n)=>{"use strict";var o=n(9037),r=n(9985),i=o.WeakMap;e.exports=r(i)&&/native code/.test(String(i))},5405:(e,t,n)=>{"use strict";var o=n(496),r=n(6812),i=n(6145),a=n(2560).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});r(t,e)||a(t,e,{value:i.f(e)})}},6145:(e,t,n)=>{"use strict";var o=n(4201);t.f=o},4201:(e,t,n)=>{"use strict";var o=n(9037),r=n(3430),i=n(6812),a=n(4630),s=n(146),l=n(9525),c=o.Symbol,d=r("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,n)=>{"use strict";var o=n(9989),r=n(3689),i=n(2297),a=n(8999),s=n(690),l=n(6310),c=n(5565),d=n(6522),u=n(7120),f=n(9042),b=n(4201),p=n(3615),m=b("isConcatSpreadable"),h=p>=51||!r((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};o({target:"Array",proto:!0,arity:1,forced:!h||!f("concat")},{concat:function(e){var t,n,o,r,i,a=s(this),f=u(a,0),b=0;for(t=-1,o=arguments.length;t<o;t++)if(g(i=-1===t?a:arguments[t]))for(r=l(i),c(b+r),n=0;n<r;n++,b++)n in i&&d(f,b,i[n]);else c(b+1),d(f,b++,i);return f.length=b,f}})},8077:(e,t,n)=>{"use strict";var o=n(9989),r=n(2960).filter;o({target:"Array",proto:!0,forced:!n(9042)("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},5728:(e,t,n)=>{"use strict";var o=n(9989),r=n(2960).find,i=n(7370),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),o({target:"Array",proto:!0,forced:a},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},4418:(e,t,n)=>{"use strict";var o=n(9989),r=n(1055);o({target:"Array",stat:!0,forced:!n(6431)((function(e){Array.from(e)}))},{from:r})},6801:(e,t,n)=>{"use strict";var o=n(9989),r=n(4328).includes,i=n(3689),a=n(7370);o({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},752:(e,t,n)=>{"use strict";var o=n(5290),r=n(7370),i=n(9478),a=n(618),s=n(2560).f,l=n(1934),c=n(7807),d=n(3931),u=n(7697),f=a.set,b=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:o(e),index:0,kind:t})}),(function(){var e=b(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var p=i.Arguments=i.Array;if(r("keys"),r("values"),r("entries"),!d&&u&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},6203:(e,t,n)=>{"use strict";var o=n(9989),r=n(8844),i=n(4413),a=n(5290),s=n(6834),l=r([].join);o({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},886:(e,t,n)=>{"use strict";var o=n(9989),r=n(2960).map;o({target:"Array",proto:!0,forced:!n(9042)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},9730:(e,t,n)=>{"use strict";var o=n(9989),r=n(2297),i=n(9429),a=n(8999),s=n(7578),l=n(6310),c=n(5290),d=n(6522),u=n(4201),f=n(9042),b=n(6004),p=f("slice"),m=u("species"),h=Array,g=Math.max;o({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,o,u,f=c(this),p=l(f),v=s(e,p),y=s(void 0===t?p:t,p);if(r(f)&&(n=f.constructor,(i(n)&&(n===h||r(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===h||void 0===n))return b(f,v,y);for(o=new(void 0===n?h:n)(g(y-v,0)),u=0;v<y;v++,u++)v in f&&d(o,u,f[v]);return o.length=u,o}})},5137:(e,t,n)=>{"use strict";var o=n(9989),r=n(8844),i=n(509),a=n(690),s=n(6310),l=n(8494),c=n(4327),d=n(3689),u=n(382),f=n(6834),b=n(7365),p=n(7298),m=n(3615),h=n(7922),g=[],v=r(g.sort),y=r(g.push),w=d((function(){g.sort(void 0)})),x=d((function(){g.sort(null)})),k=f("sort"),_=!d((function(){if(m)return m<70;if(!(b&&b>3)){if(p)return!0;if(h)return h<603;var e,t,n,o,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)g.push({k:t+o,v:n})}for(g.sort((function(e,t){return t.v-e.v})),o=0;o<g.length;o++)t=g[o].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));o({target:"Array",proto:!0,forced:w||!x||!k||!_},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(_)return void 0===e?v(t):v(t,e);var n,o,r=[],d=s(t);for(o=0;o<d;o++)o in t&&y(r,t[o]);for(u(r,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=s(r),o=0;o<n;)t[o]=r[o++];for(;o<d;)l(t,o++);return t}})},2506:(e,t,n)=>{"use strict";var o=n(9989),r=n(690),i=n(7578),a=n(8700),s=n(6310),l=n(5649),c=n(5565),d=n(7120),u=n(6522),f=n(8494),b=n(9042)("splice"),p=Math.max,m=Math.min;o({target:"Array",proto:!0,forced:!b},{splice:function(e,t){var n,o,b,h,g,v,y=r(this),w=s(y),x=i(e,w),k=arguments.length;for(0===k?n=o=0:1===k?(n=0,o=w-x):(n=k-2,o=m(p(a(t),0),w-x)),c(w+n-o),b=d(y,o),h=0;h<o;h++)(g=x+h)in y&&u(b,h,y[g]);if(b.length=o,n<o){for(h=x;h<w-o;h++)v=h+n,(g=h+o)in y?y[v]=y[g]:f(y,v);for(h=w;h>w-o+n;h--)f(y,h-1)}else if(n>o)for(h=w-o;h>x;h--)v=h+n-1,(g=h+o-1)in y?y[v]=y[g]:f(y,v);for(h=0;h<n;h++)y[h+x]=arguments[h+2];return l(y,w-o+n),b}})},9903:(e,t,n)=>{"use strict";var o=n(6812),r=n(1880),i=n(1797),a=n(4201)("toPrimitive"),s=Date.prototype;o(s,a)||r(s,a,i)},4284:(e,t,n)=>{"use strict";var o=n(7697),r=n(1236).EXISTS,i=n(8844),a=n(2148),s=Function.prototype,l=i(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,d=i(c.exec);o&&!r&&a(s,"name",{configurable:!0,get:function(){try{return d(c,l(this))[1]}catch(e){return""}}})},5398:(e,t,n)=>{"use strict";var o=n(9989),r=n(9037);o({global:!0,forced:r.globalThis!==r},{globalThis:r})},8324:(e,t,n)=>{"use strict";var o=n(9989),r=n(6058),i=n(1735),a=n(2615),s=n(8844),l=n(3689),c=n(9985),d=n(734),u=n(6004),f=n(2643),b=n(146),p=String,m=r("JSON","stringify"),h=s(/./.exec),g=s("".charAt),v=s("".charCodeAt),y=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,E=!b||l((function(){var e=r("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),C=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),S=function(e,t){var n=u(arguments),o=f(t);if(c(o)||void 0!==e&&!d(e))return n[1]=function(e,t){if(c(o)&&(t=a(o,this,p(e),t)),!d(t))return t},i(m,null,n)},T=function(e,t,n){var o=g(n,t-1),r=g(n,t+1);return h(k,e)&&!h(_,r)||h(_,e)&&!h(k,o)?"\\u"+w(v(e,0),16):e};m&&o({target:"JSON",stat:!0,arity:3,forced:E||C},{stringify:function(e,t,n){var o=u(arguments),r=i(E?S:m,null,o);return C&&"string"==typeof r?y(r,x,T):r}})},7629:(e,t,n)=>{"use strict";var o=n(9037);n(5997)(o.JSON,"JSON",!0)},9322:(e,t,n)=>{"use strict";n(319)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(800))},6646:(e,t,n)=>{"use strict";n(9322)},7509:(e,t,n)=>{"use strict";n(5997)(Math,"Math",!0)},9288:(e,t,n)=>{"use strict";var o=n(9989),r=n(3931),i=n(7697),a=n(9037),s=n(496),l=n(8844),c=n(5266),d=n(6812),u=n(3457),f=n(3622),b=n(734),p=n(8732),m=n(3689),h=n(2741).f,g=n(2474).f,v=n(2560).f,y=n(3648),w=n(1435).trim,x=a.Number,k=s.Number,_=x.prototype,E=a.TypeError,C=l("".slice),S=l("".charCodeAt),T=function(e){var t=p(e,"number");return"bigint"==typeof t?t:A(t)},A=function(e){var t,n,o,r,i,a,s,l,c=p(e,"number");if(b(c))throw new E("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(t=S(c,0))||45===t){if(88===(n=S(c,2))||120===n)return NaN}else if(48===t){switch(S(c,1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+c}for(a=(i=C(c,2)).length,s=0;s<a;s++)if((l=S(i,s))<48||l>r)return NaN;return parseInt(i,o)}return+c},O=c("Number",!x(" 0o1")||!x("0b1")||x("+0x1")),D=function(e){return f(_,e)&&m((function(){y(e)}))},I=function(e){var t=arguments.length<1?0:x(T(e));return D(this)?u(Object(t),this,I):t};I.prototype=_,O&&!r&&(_.constructor=I),o({global:!0,constructor:!0,wrap:!0,forced:O},{Number:I});var N=function(e,t){for(var n,o=i?h(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(","),r=0;o.length>r;r++)d(t,n=o[r])&&!d(e,n)&&v(e,n,g(t,n))};r&&k&&N(s.Number,k),(O||r)&&N(s.Number,x)},1552:(e,t,n)=>{"use strict";var o=n(9989),r=n(7897);o({target:"Number",stat:!0,forced:Number.parseInt!==r},{parseInt:r})},429:(e,t,n)=>{"use strict";var o=n(9989),r=n(5394);o({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},1919:(e,t,n)=>{"use strict";var o=n(9989),r=n(3689),i=n(5290),a=n(2474).f,s=n(7697);o({target:"Object",stat:!0,forced:!s||r((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},9434:(e,t,n)=>{"use strict";var o=n(9989),r=n(146),i=n(3689),a=n(7518),s=n(690);o({target:"Object",stat:!0,forced:!r||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},8052:(e,t,n)=>{"use strict";var o=n(9989),r=n(3689),i=n(690),a=n(1868),s=n(1748);o({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},9358:(e,t,n)=>{"use strict";var o=n(9989),r=n(690),i=n(300);o({target:"Object",stat:!0,forced:n(3689)((function(){i(1)}))},{keys:function(e){return i(r(e))}})},228:(e,t,n)=>{"use strict";var o=n(3043),r=n(1880),i=n(5073);o||r(Object.prototype,"toString",i,{unsafe:!0})},6466:(e,t,n)=>{"use strict";var o=n(9989),r=n(9419).values;o({target:"Object",stat:!0},{values:function(e){return r(e)}})},1692:(e,t,n)=>{"use strict";var o=n(9989),r=n(2615),i=n(509),a=n(8742),s=n(9302),l=n(8734);o({target:"Promise",stat:!0,forced:n(562)},{all:function(e){var t=this,n=a.f(t),o=n.resolve,c=n.reject,d=s((function(){var n=i(t.resolve),a=[],s=0,d=1;l(e,(function(e){var i=s++,l=!1;d++,r(n,t,e).then((function(e){l||(l=!0,a[i]=e,--d||o(a))}),c)})),--d||o(a)}));return d.error&&c(d.value),n.promise}})},5089:(e,t,n)=>{"use strict";var o=n(9989),r=n(3931),i=n(7073).CONSTRUCTOR,a=n(7919),s=n(6058),l=n(9985),c=n(1880),d=a&&a.prototype;if(o({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&l(a)){var u=s("Promise").prototype.catch;d.catch!==u&&c(d,"catch",u,{unsafe:!0})}},6697:(e,t,n)=>{"use strict";var o,r,i,a=n(9989),s=n(3931),l=n(806),c=n(9037),d=n(2615),u=n(1880),f=n(9385),b=n(5997),p=n(4241),m=n(509),h=n(9985),g=n(8999),v=n(767),y=n(6373),w=n(9886).set,x=n(231),k=n(920),_=n(9302),E=n(4410),C=n(618),S=n(7919),T=n(7073),A=n(8742),O=T.CONSTRUCTOR,D=T.REJECTION_EVENT,I=T.SUBCLASSING,N=C.getterFor("Promise"),j=C.set,M=S&&S.prototype,L=S,P=M,R=c.TypeError,z=c.document,F=c.process,B=A.f,$=B,V=!!(z&&z.createEvent&&c.dispatchEvent),U=function(e){var t;return!(!g(e)||!h(t=e.then))&&t},H=function(e,t){var n,o,r,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&&Q(t),t.rejection=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),r=!0)),n===e.promise?c(new R("Promise-chain cycle")):(o=U(n))?d(o,n,l,c):l(n)):c(i)}catch(e){u&&!r&&u.exit(),c(e)}},Y=function(e,t){e.notified||(e.notified=!0,x((function(){for(var n,o=e.reactions;n=o.get();)H(n,e);e.notified=!1,t&&!e.rejection&&G(e)})))},W=function(e,t,n){var o,r;V?((o=z.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),c.dispatchEvent(o)):o={promise:t,reason:n},!D&&(r=c["on"+e])?r(o):"unhandledrejection"===e&&k("Unhandled promise rejection",n)},G=function(e){d(w,c,(function(){var t,n=e.facade,o=e.value;if(q(e)&&(t=_((function(){l?F.emit("unhandledRejection",o,n):W("unhandledrejection",n,o)})),e.rejection=l||q(e)?2:1,t.error))throw t.value}))},q=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){d(w,c,(function(){var t=e.facade;l?F.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)}))},Z=function(e,t,n){return function(o){e(t,o,n)}},X=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Y(e,!0))},K=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new R("Promise can't be resolved itself");var o=U(t);o?x((function(){var n={done:!1};try{d(o,t,Z(K,n,e),Z(X,n,e))}catch(t){X(n,t,e)}})):(e.value=t,e.state=1,Y(e,!1))}catch(t){X({done:!1},t,e)}}};if(O&&(P=(L=function(e){v(this,P),m(e),d(o,this);var t=N(this);try{e(Z(K,t),Z(X,t))}catch(e){X(t,e)}}).prototype,(o=function(e){j(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:0,value:void 0})}).prototype=u(P,"then",(function(e,t){var n=N(this),o=B(y(this,L));return n.parent=!0,o.ok=!h(e)||e,o.fail=h(t)&&t,o.domain=l?F.domain:void 0,0===n.state?n.reactions.add(o):x((function(){H(o,n)})),o.promise})),r=function(){var e=new o,t=N(e);this.promise=e,this.resolve=Z(K,t),this.reject=Z(X,t)},A.f=B=function(e){return e===L||void 0===e?new r(e):$(e)},!s&&h(S)&&M!==Object.prototype)){i=M.then,I||u(M,"then",(function(e,t){var n=this;return new L((function(e,t){d(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete M.constructor}catch(e){}f&&f(M,P)}a({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:L}),b(L,"Promise",!1,!0),p("Promise")},3964:(e,t,n)=>{"use strict";n(6697),n(1692),n(5089),n(8829),n(2092),n(7905)},8829:(e,t,n)=>{"use strict";var o=n(9989),r=n(2615),i=n(509),a=n(8742),s=n(9302),l=n(8734);o({target:"Promise",stat:!0,forced:n(562)},{race:function(e){var t=this,n=a.f(t),o=n.reject,c=s((function(){var a=i(t.resolve);l(e,(function(e){r(a,t,e).then(n.resolve,o)}))}));return c.error&&o(c.value),n.promise}})},2092:(e,t,n)=>{"use strict";var o=n(9989),r=n(8742);o({target:"Promise",stat:!0,forced:n(7073).CONSTRUCTOR},{reject:function(e){var t=r.f(this);return(0,t.reject)(e),t.promise}})},7905:(e,t,n)=>{"use strict";var o=n(9989),r=n(6058),i=n(3931),a=n(7919),s=n(7073).CONSTRUCTOR,l=n(2945),c=r("Promise"),d=i&&!s;o({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(d&&this===c?a:this,e)}})},50:(e,t,n)=>{"use strict";var o=n(9989),r=n(6058),i=n(1735),a=n(6761),s=n(2655),l=n(5027),c=n(8999),d=n(5391),u=n(3689),f=r("Reflect","construct"),b=Object.prototype,p=[].push,m=u((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),h=!u((function(){f((function(){}))})),g=m||h;o({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(h&&!m)return f(e,t,n);if(e===n){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 o=[null];return i(p,o,t),new(i(a,e,o))}var r=n.prototype,u=d(c(r)?r:b),g=i(e,u,t);return c(g)?g:u}})},2349:(e,t,n)=>{"use strict";var o=n(9989),r=n(2615),i=n(8999),a=n(5027),s=n(6251),l=n(2474),c=n(1868);o({target:"Reflect",stat:!0},{get:function e(t,n){var o,d,u=arguments.length<3?t:arguments[2];return a(t)===u?t[n]:(o=l.f(t,n))?s(o)?o.value:void 0===o.get?void 0:r(o.get,u):i(d=c(t))?e(d,n,u):void 0}})},2003:(e,t,n)=>{"use strict";var o=n(7697),r=n(9037),i=n(8844),a=n(5266),s=n(3457),l=n(5773),c=n(5391),d=n(2741).f,u=n(3622),f=n(1245),b=n(4327),p=n(3477),m=n(7901),h=n(8055),g=n(1880),v=n(3689),y=n(6812),w=n(618).enforce,x=n(4241),k=n(4201),_=n(2100),E=n(6422),C=k("match"),S=r.RegExp,T=S.prototype,A=r.SyntaxError,O=i(T.exec),D=i("".charAt),I=i("".replace),N=i("".indexOf),j=i("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,P=/a/g,R=new S(L)!==L,z=m.MISSED_STICKY,F=m.UNSUPPORTED_Y,B=o&&(!R||z||_||E||v((function(){return P[C]=!1,S(L)!==L||S(P)===P||"/a/i"!==String(S(L,"i"))})));if(a("RegExp",B)){for(var $=function(e,t){var n,o,r,i,a,d,m=u(T,this),h=f(e),g=void 0===t,v=[],x=e;if(!m&&h&&g&&e.constructor===$)return e;if((h||u(T,e))&&(e=e.source,g&&(t=p(x))),e=void 0===e?"":b(e),t=void 0===t?"":b(t),x=e,_&&"dotAll"in L&&(o=!!t&&N(t,"s")>-1)&&(t=I(t,/s/g,"")),n=t,z&&"sticky"in L&&(r=!!t&&N(t,"y")>-1)&&F&&(t=I(t,/y/g,"")),E&&(e=(i=function(e){for(var t,n=e.length,o=0,r="",i=[],a=c(null),s=!1,l=!1,d=0,u="";o<=n;o++){if("\\"===(t=D(e,o)))t+=D(e,++o);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:O(M,j(e,o+1))&&(o+=2,l=!0),r+=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:r+=t}return[r,i]}(e))[0],v=i[1]),a=s(S(e,t),m?this:T,$),(o||r||v.length)&&(d=w(a),o&&(d.dotAll=!0,d.raw=$(function(e){for(var t,n=e.length,o=0,r="",i=!1;o<=n;o++)"\\"!==(t=D(e,o))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),r+=t):r+="[\\s\\S]":r+=t+D(e,++o);return r}(e),n)),r&&(d.sticky=!0),v.length&&(d.groups=v)),e!==x)try{l(a,"source",""===x?"(?:)":x)}catch(e){}return a},V=d(S),U=0;V.length>U;)h($,S,V[U++]);T.constructor=$,$.prototype=T,g(r,"RegExp",$,{constructor:!0})}x("RegExp")},4043:(e,t,n)=>{"use strict";var o=n(9989),r=n(6308);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},2826:(e,t,n)=>{"use strict";var o=n(1236).PROPER,r=n(1880),i=n(5027),a=n(4327),s=n(3689),l=n(3477),c=RegExp.prototype,d=c.toString,u=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),f=o&&"toString"!==d.name;(u||f)&&r(c,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},7985:(e,t,n)=>{"use strict";n(319)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(800))},9649:(e,t,n)=>{"use strict";n(7985)},3843:(e,t,n)=>{"use strict";var o=n(9989),r=n(8844),i=n(2124),a=n(4684),s=n(4327),l=n(7413),c=r("".indexOf);o({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,n)=>{"use strict";var o=n(730).charAt,r=n(4327),i=n(618),a=n(1934),s=n(7807),l=i.set,c=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:r(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?s(void 0,!0):(e=o(n,r),t.index+=e.length,s(e,!1))}))},2462:(e,t,n)=>{"use strict";var o=n(2615),r=n(8678),i=n(5027),a=n(981),s=n(3126),l=n(4327),c=n(4684),d=n(4849),u=n(1514),f=n(6100);r("match",(function(e,t,n){return[function(t){var n=c(this),r=a(t)?void 0:d(t,e);return r?o(r,t,n):new RegExp(t)[e](l(n))},function(e){var o=i(this),r=l(e),a=n(t,o,r);if(a.done)return a.value;if(!o.global)return f(o,r);var c=o.unicode;o.lastIndex=0;for(var d,b=[],p=0;null!==(d=f(o,r));){var m=l(d[0]);b[p]=m,""===m&&(o.lastIndex=u(r,s(o.lastIndex),c)),p++}return 0===p?null:b}]}))},7267:(e,t,n)=>{"use strict";var o=n(1735),r=n(2615),i=n(8844),a=n(8678),s=n(3689),l=n(5027),c=n(9985),d=n(981),u=n(8700),f=n(3126),b=n(4327),p=n(4684),m=n(1514),h=n(4849),g=n(7017),v=n(6100),y=n(4201)("replace"),w=Math.max,x=Math.min,k=i([].concat),_=i([].push),E=i("".indexOf),C=i("".slice),S="$0"==="a".replace(/./,"$0"),T=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(e,t,n){var i=T?"$":"$0";return[function(e,n){var o=p(this),i=d(e)?void 0:h(e,y);return i?r(i,e,o,n):r(t,b(o),e,n)},function(e,r){var a=l(this),s=b(e);if("string"==typeof r&&-1===E(r,i)&&-1===E(r,"$<")){var d=n(t,a,s,r);if(d.done)return d.value}var p=c(r);p||(r=b(r));var h,y=a.global;y&&(h=a.unicode,a.lastIndex=0);for(var S,T=[];null!==(S=v(a,s))&&(_(T,S),y);){""===b(S[0])&&(a.lastIndex=m(s,f(a.lastIndex),h))}for(var A,O="",D=0,I=0;I<T.length;I++){for(var N,j=b((S=T[I])[0]),M=w(x(u(S.index),s.length),0),L=[],P=1;P<S.length;P++)_(L,void 0===(A=S[P])?A:String(A));var R=S.groups;if(p){var z=k([j],L,M,s);void 0!==R&&_(z,R),N=b(o(r,void 0,z))}else N=g(j,s,M,L,R,r);M>=D&&(O+=C(s,D,M)+N,D=M+j.length)}return O+C(s,D)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!S||T)},7872:(e,t,n)=>{"use strict";var o=n(2615),r=n(8678),i=n(5027),a=n(981),s=n(4684),l=n(953),c=n(4327),d=n(4849),u=n(6100);r("search",(function(e,t,n){return[function(t){var n=s(this),r=a(t)?void 0:d(t,e);return r?o(r,t,n):new RegExp(t)[e](c(n))},function(e){var o=i(this),r=c(e),a=n(t,o,r);if(a.done)return a.value;var s=o.lastIndex;l(s,0)||(o.lastIndex=0);var d=u(o,r);return l(o.lastIndex,s)||(o.lastIndex=s),null===d?-1:d.index}]}))},268:(e,t,n)=>{"use strict";var o,r=n(9989),i=n(6576),a=n(2474).f,s=n(3126),l=n(4327),c=n(2124),d=n(4684),u=n(7413),f=n(3931),b=i("".slice),p=Math.min,m=u("startsWith");r({target:"String",proto:!0,forced:!!(f||m||(o=a(String.prototype,"startsWith"),!o||o.writable))&&!m},{startsWith:function(e){var t=l(d(this));c(e);var n=s(p(arguments.length>1?arguments[1]:void 0,t.length)),o=l(e);return b(t,n,n+o.length)===o}})},8436:(e,t,n)=>{"use strict";var o=n(9989),r=n(1435).trim;o({target:"String",proto:!0,forced:n(5984)("trim")},{trim:function(){return r(this)}})},8373:(e,t,n)=>{"use strict";n(5405)("asyncIterator")},7855:(e,t,n)=>{"use strict";var o=n(9989),r=n(9037),i=n(2615),a=n(8844),s=n(3931),l=n(7697),c=n(146),d=n(3689),u=n(6812),f=n(3622),b=n(5027),p=n(5290),m=n(8360),h=n(4327),g=n(5684),v=n(5391),y=n(300),w=n(2741),x=n(6062),k=n(7518),_=n(2474),E=n(2560),C=n(8920),S=n(9556),T=n(1880),A=n(2148),O=n(3430),D=n(2713),I=n(7248),N=n(4630),j=n(4201),M=n(6145),L=n(5405),P=n(3032),R=n(5997),z=n(618),F=n(2960).forEach,B=D("hidden"),$=z.set,V=z.getterFor("Symbol"),U=Object.prototype,H=r.Symbol,Y=H&&H.prototype,W=r.RangeError,G=r.TypeError,q=r.QObject,Q=_.f,Z=E.f,X=x.f,K=S.f,J=a([].push),ee=O("symbols"),te=O("op-symbols"),ne=O("wks"),oe=!q||!q.prototype||!q.prototype.findChild,re=function(e,t,n){var o=Q(U,t);o&&delete U[t],Z(e,t,n),o&&e!==U&&Z(U,t,o)},ie=l&&d((function(){return 7!==v(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?re:Z,ae=function(e,t){var n=ee[e]=v(Y);return $(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},se=function(e,t,n){e===U&&se(te,t,n),b(e);var o=m(t);return b(n),u(ee,o)?(n.enumerable?(u(e,B)&&e[B][o]&&(e[B][o]=!1),n=v(n,{enumerable:g(0,!1)})):(u(e,B)||Z(e,B,g(1,v(null))),e[B][o]=!0),ie(e,o,n)):Z(e,o,n)},le=function(e,t){b(e);var n=p(t),o=y(n).concat(fe(n));return F(o,(function(t){l&&!i(ce,n,t)||se(e,t,n[t])})),e},ce=function(e){var t=m(e),n=i(K,this,t);return!(this===U&&u(ee,t)&&!u(te,t))&&(!(n||!u(this,t)||!u(ee,t)||u(this,B)&&this[B][t])||n)},de=function(e,t){var n=p(e),o=m(t);if(n!==U||!u(ee,o)||u(te,o)){var r=Q(n,o);return!r||!u(ee,o)||u(n,B)&&n[B][o]||(r.enumerable=!0),r}},ue=function(e){var t=X(p(e)),n=[];return F(t,(function(e){u(ee,e)||u(I,e)||J(n,e)})),n},fe=function(e){var t=e===U,n=X(t?te:p(e)),o=[];return F(n,(function(e){!u(ee,e)||t&&!u(U,e)||J(o,ee[e])})),o};c||(T(Y=(H=function(){if(f(Y,this))throw new G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,t=N(e),n=function(e){var o=void 0===this?r:this;o===U&&i(n,te,e),u(o,B)&&u(o[B],t)&&(o[B][t]=!1);var a=g(1,e);try{ie(o,t,a)}catch(e){if(!(e instanceof W))throw e;re(o,t,a)}};return l&&oe&&ie(U,t,{configurable:!0,set:n}),ae(t,e)}).prototype,"toString",(function(){return V(this).tag})),T(H,"withoutSetter",(function(e){return ae(N(e),e)})),S.f=ce,E.f=se,C.f=le,_.f=de,w.f=x.f=ue,k.f=fe,M.f=function(e){return ae(j(e),e)},l&&(A(Y,"description",{configurable:!0,get:function(){return V(this).description}}),s||T(U,"propertyIsEnumerable",ce,{unsafe:!0}))),o({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),F(y(ne),(function(e){L(e)})),o({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),o({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}),o({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue}),P(),R(H,"Symbol"),I[B]=!0},6544:(e,t,n)=>{"use strict";var o=n(9989),r=n(7697),i=n(9037),a=n(8844),s=n(6812),l=n(9985),c=n(3622),d=n(4327),u=n(2148),f=n(8758),b=i.Symbol,p=b&&b.prototype;if(r&&l(b)&&(!("description"in p)||void 0!==b().description)){var m={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:d(arguments[0]),t=c(p,this)?new b(e):void 0===e?b():b(e);return""===e&&(m[t]=!0),t};f(h,b),h.prototype=p,p.constructor=h;var g="Symbol(description detection)"===String(b("description detection")),v=a(p.valueOf),y=a(p.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),k=a("".slice);u(p,"description",{configurable:!0,get:function(){var e=v(this);if(s(m,e))return"";var t=y(e),n=g?k(t,7,-1):x(t,w,"$1");return""===n?void 0:n}}),o({global:!0,constructor:!0,forced:!0},{Symbol:h})}},3975:(e,t,n)=>{"use strict";var o=n(9989),r=n(6058),i=n(6812),a=n(4327),s=n(3430),l=n(6549),c=s("string-to-symbol-registry"),d=s("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(c,t))return c[t];var n=r("Symbol")(t);return c[t]=n,d[n]=t,n}})},4254:(e,t,n)=>{"use strict";n(5405)("iterator")},9749:(e,t,n)=>{"use strict";n(7855),n(3975),n(1445),n(8324),n(9434)},1445:(e,t,n)=>{"use strict";var o=n(9989),r=n(6812),i=n(734),a=n(3691),s=n(3430),l=n(6549),c=s("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(r(c,e))return c[e]}})},9373:(e,t,n)=>{"use strict";var o=n(5405),r=n(3032);o("toPrimitive"),r()},6793:(e,t,n)=>{"use strict";var o=n(6058),r=n(5405),i=n(5997);r("toStringTag"),i(o("Symbol"),"Symbol")},8832:(e,t,n)=>{"use strict";n(5398)},7522:(e,t,n)=>{"use strict";var o=n(9037),r=n(6338),i=n(3265),a=n(7612),s=n(5773),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in r)r[c]&&l(o[c]&&o[c].prototype);l(i)},6265:(e,t,n)=>{"use strict";var o=n(9037),r=n(6338),i=n(3265),a=n(752),s=n(5773),l=n(5997),c=n(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),r[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in r)u(o[f]&&o[f].prototype,f);u(i,"DOMTokenList")}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.b=document.baseURI||self.location.href,n.nc=void 0;var o={};return(()=>{"use strict";n.r(o),n.d(o,{Editor:()=>js,ItemStore:()=>Xc,LevelEditor:()=>wc,Presenter:()=>ks,ValidationPresenter:()=>hc,bundleLoader:()=>ad,engine:()=>Za,renderingContext:()=>Cr,system:()=>fr,utils:()=>dr,validate:()=>ss});var e="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},t="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,l="ArrayBuffer"in e;if(l)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function u(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 f(e){return"string"!=typeof e&&(e=String(e)),e}function b(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?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 m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&i&&((n=e)&&DataView.prototype.isPrototypeOf(n))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=v(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):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=m(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=m(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(i)return this.blob().then(g);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=h(t),o=/charset=([A-Za-z0-9_-]+)/.exec(e.type),r=o?o[1]:"utf-8";return t.readAsText(e,r),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=u(e),t=f(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[u(e)]},p.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},p.prototype.set=function(e,t){this.map[u(e)]=f(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),b(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),b(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),b(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function x(t,n){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var o,r,i=(n=n||{}).body;if(t instanceof x){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,n.headers||(this.headers=new p(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new p(n.headers)),this.method=(o=n.method||this.method||"GET",r=o.toUpperCase(),w.indexOf(r)>-1?r:o),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in e)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function k(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(r))}})),t}function _(e,t){if(!(this instanceof _))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 p(t.headers),this.url=t.url||"",this._initBody(e)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},y.call(x.prototype),y.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var E=[301,302,303,307,308];_.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})};var C=e.DOMException;try{new C}catch(e){(C=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),C.prototype.constructor=C}function S(t,n){return new Promise((function(o,r){var a=new x(t,n);if(a.signal&&a.signal.aborted)return r(new C("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}if(s.onload=function(){var e,t,n={statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,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 n=e.split(":"),o=n.shift().trim();if(o){var r=n.join(":").trim();try{t.append(o,r)}catch(e){console.warn("Response "+e.message)}}})),t)};0===a.url.indexOf("file://")&&(s.status<200||s.status>599)?n.status=200:n.status=s.status,n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;setTimeout((function(){o(new _(r,n))}),0)},s.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},s.onabort=function(){setTimeout((function(){r(new C("Aborted","AbortError"))}),0)},s.open(a.method,function(t){try{return""===t&&e.location.href?e.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&(i?s.responseType="blob":l&&(s.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof p||e.Headers&&n.headers instanceof e.Headers)){var d=[];Object.getOwnPropertyNames(n.headers).forEach((function(e){d.push(u(e)),s.setRequestHeader(e,f(n.headers[e]))})),a.headers.forEach((function(e,t){-1===d.indexOf(t)&&s.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){s.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=p,e.Request=x,e.Response=_);n(2506),n(8077),n(228),n(9749),n(6544),n(4254),n(752),n(1694),n(6265),n(5728),n(9358),n(7522),n(886),n(6801),n(3843),n(9373),n(9903),n(9288),n(8832),n(4338);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"__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 A=globalThis.__rdfjson_namespaces,O=0,D=function(e,t,n){return A[e]||(A[e]=t),{abbrev:e,ns:t,localname:n,full:t+n,pretty:"".concat(e,":").concat(n)}},I=function(e){var t=Object.keys(A).find((function(t){return 0===e.indexOf(A[t])}));if(t)return D(t,A[t],e.substring(A[t].length));var n=e.lastIndexOf("/"),o=e.lastIndexOf("#");return o>n&&(n=o),D("ns".concat(O+=1),e.substring(0,n+1),e.substring(n+1))};const N=function(e){var t=Object.keys(A).find((function(t){return 0===e.indexOf(A[t])}));return t?D(t,A[t],e.substring(A[t].length)).pretty:e},j=function(e){return I(e).pretty},M=function(e){var t=e.split(":");return 2===t.length&&A.hasOwnProperty(t[0])?A[t[0]]+t[1]:e},L=function(e,t){"string"==typeof e?A[e]=t:"object"===T(e)&&Object.keys(e).forEach((function(t){A[t]=e[t]}))};n(8373),n(6793),n(7629),n(7509),n(8052),n(4284),n(9730),n(3964),n(6466),n(2826),n(9649);function P(e){return(P="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 R=function(e){return void 0!==e&&(null===e||"object"===P(e)||Array.isArray(e)||"function"==typeof e)},z=function(e){return"string"==typeof e||e instanceof String},F=function(e,t,n){0===e[t][n].length&&(delete e[t][n],0===Object.keys(e[t]).length&&delete e[t])},B=function(e){if(!R(e[0]))throw new Error("Graph is not a object.");if(!z(e[1]))throw new Error("Subject is not a string.");if(!z(e[2]))throw new Error("Predicate is not a string.");if(!R(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.")},$=function(e,t){return e===t||null==e&&e===t||(z(e)?z(t)?e===t:e===t.value:z(t)?e.value===t:e.type===t.type&&e.value===t.value&&e.lang===t.lang&&e.datatype===t.datatype)},V=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},U=function(e){return"".concat(e.value).concat(e.type).concat(e.lang||"").concat(e.datatype||"").concat(e.ng||"")};const H={isObject:R,isString:z,isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},statementEquals:function(e,t){return e.s===t.s&&e.p===t.p&&$(e.o,t.o)},add:function(e,t,n,o,r){if(B([e,t,n,o]),void 0===e[t])return e[t]={},e[t][n]=[o],o;if(void 0===e[t][n])return e[t][n]=[o],o;var i,a=e[t][n];if(!r)for(i=a.length-1;i>=0;i--)if($(o,a[i]))return a[i];return a.push(o),o},remove:function(e,t,n,o){if(B([e,t,n,o]),void 0!==e[t]&&void 0!==e[t][n]){var r,i=e[t][n];for(r=i.length-1;r>=0;r--)if($(o,i[r])){var a=i[r];return i.splice(r,1),F(e,t,n),a}}},contains:function(e,t,n,o){if(B([e,t,n,o]),void 0!==e[t]&&void 0!==e[t][n]){var r,i=e[t][n];for(r=i.length-1;r>=0;r--)if($(o,i[r]))return i[r]}},cleanup:F,checkForWrongArgs:B,objectEquals:$,findDirectOrRDFValue:function(e,t,n){var o=e.find(t,n);if(o.length>0)return"bnode"!==o[0].getType()?o[0].getValue():e.findFirstValue(o[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],n={};return Object.keys(e).forEach((function(o){var r=e[o];n[o]={},Object.keys(r).forEach((function(e){var i=r[e];if(1===i.length)n[o][e]=[V(i[0])];else if(t){var a=[],s=new Set;n[o][e]=a,r[e].forEach((function(e){var t=V(e),n=U(t);s.has(n)||(s.add(n),a.push(t))}))}else{var l=[];n[o][e]=l,r[e].forEach((function(e){l.push(V(e))}))}}))})),n}};function Y(e){return(Y="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 W(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,G(o.key),o)}}function G(e){var t=function(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y(t)?t:String(t)}var q=function(){function e(t,n,o,r,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=n,this._p=o,this._o=r,this._o._statement=this,this._asserted=i}var t,n,o;return t=e,(n=[{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=M(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=M(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())}}])&&W(t.prototype,n),o&&W(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Q=(n(5137),n(6203),n(2568));const Z=function(e,t){var n=[],o=new Set((t||[]).map((function(e){return M(e)}))),r=[],i={},a=function(e){var t=e.getValue();e.getLanguage()&&(t+="@".concat(e.getLanguage()));var n=e.getDatatype();return n&&"http://www.w3.org/2001/XMLSchema#string"!==n&&"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"!==n&&(t+="^^".concat(n)),t},s=function(e,t){var n=i[e]||{rels:[]};i[e]=n,n.rels.push(t)};return e.find().forEach((function(e){var t=e.getSubject(),i=e.getPredicate();if(!o.has(i)){var l="bnode"===e.getType(),c=e.isSubjectBlank();if(c||l)return r.push(e),c&&s(e.getSubject(),l?i:i+a(e)),void("bnode"===e.getType()&&s(e.getValue(),c?i:t+i));n.push(t+i+a(e))}})),Object.values(i).forEach((function(e){e.rels.sort(),e.hash=Q(e.rels.join(""))})),r.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)),n.push(t.join(""))})),n.sort(),Q(n.join(""))};class X{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}X.prototype.termType="BlankNode";const K=X;class J{equals(e){return!!e&&e.termType===this.termType}}J.prototype.termType="DefaultGraph",J.prototype.value="";const ee=J;const te=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 n=e.fromTerm(t.subject),o=e.fromTerm(t.predicate),r=e.fromTerm(t.object),i=e.fromTerm(t.graph);return e.quad(n,o,r,i)}if("Variable"===t.termType)return e.variable(t.value);throw new Error("unknown termType "+t.termType)};class ne{constructor(e,t,n){this.value=e,this.language=t,this.datatype=n}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}}ne.prototype.termType="Literal";const oe=ne;class re{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}re.prototype.termType="NamedNode";const ie=re;class ae{constructor(e,t,n,o){this.subject=e,this.predicate=t,this.object=n,this.graph=o}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)}}ae.prototype.termType="Quad",ae.prototype.value="";const se=ae;class le{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}le.prototype.termType="Variable";const ce=le,de=new ie("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),ue=new ie("http://www.w3.org/2001/XMLSchema#string");class fe{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new ee}}namedNode(e){return new ie(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new K(e)}literal(e,t){return"string"==typeof t?new oe(e,t,de):new oe(e,"",t||ue)}variable(e){return new ce(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,n,o=this.defaultGraph()){return new se(e,t,n,o)}fromTerm(e){return te(this,e)}fromQuad(e){return te(this,e)}}fe.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const be=new fe;var pe=function(e){return 0===e.indexOf("_:")?e.substring(2):e},me=function(e){return e.find().map((function(e){var t=e.getSubject(),n=e.getPredicate(),o=function(e){if(e.value)switch(e.type){case"literal":if(e.lang)return be.literal(e.value,e.lang);if(e.datatype){var t=be.namedNode(e.datatype);return be.literal(e.value,t)}return be.literal(e.value);case"uri":return be.namedNode(e.value);case"blank":return be.blankNode(pe(e.value))}}(e.getObject()),r=e.getNamedGraph()?be.namedNode(e.getNamedGraph()):void 0;return be.quad(e.isSubjectBlank()?be.blankNode(pe(t)):be.namedNode(t),be.namedNode(n),o,r)}))},he=function(e){return 0===e.indexOf("_:")?e:"_:".concat(e)},ge=function(e,t){var n=t||new Graph,o=function(e){var t=function(e){switch(e.termType){case"NamedNode":return{value:e.value,type:"uri"};case"BlankNode":return{value:he(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){n.add("BlankNode"===e.subject.termType?he(e.subject.value):e.subject.value,"BlankNode"===e.predicate.termType?he(e.predicate.value):e.predicate.value,o(e))}))};function ve(e){return(ve="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 ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,xe(o.key),o)}}function xe(e){var t=function(e,t){if("object"!=ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ve(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ve(t)?t:String(t)}var ke=function(e){return 0===e.length?e:[e[0]]},_e=function e(t,n,o){return{object:function(r){for(var i=0;i<n.length;i++){var a=void 0;if(o)a=n[i].getSubject();else{var s=n[i].getType();if("uri"===s||"bnode"===s)continue;a=n[i].getValue()}var l=t.find(a,r);l.length>0&&e(t,[l[0]])}return e(t,[])},objects:function(r){var i,a=[];if(!0===o)for(i=0;i<n.length;i++)a=a.concat(t.find(n[i].getSubject(),r));else for(i=0;i<n.length;i++){var s=n[i].getType();"uri"!==s&&"bnode"!==s||(a=a.concat(t.find(n[i].getValue(),r)))}return e(t,a)},constr:function(r,i){var a=i;H.isString(a)&&(a={type:"uri",value:a});for(var s=[],l=0;l<n.length;l++){var c=o?n[l].getSubject():n[l].getValue();t.find(c,r,a).length>0&&s.push(n[l])}return e(t,s,o)},each:function(r,i){if(!0===o)for(var a=0;a<n.length;a++){var s="_:"===n[a].getSubject().substring(0,2)?"bnode":"uri";null!=i&&i!==s||r(e(t,n[a],o))}else for(var l=0;l<n.length;l++)r(e(t,n[l],o))},statements:function(){return n},nodes:function(e){var t=[];if(!0===o)for(var r=0;r<n.length;r++){var i="_:"===n[r].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push({type:i,value:n[r].getSubject()})}else for(var a=0;a<n.length;a++)null!=e&&e!==n[a].getType()||t.push(n[a].getObject());return t},values:function(e){var t=[];if(!0===o)for(var r=0;r<n.length;r++){var i="_:"===n[r].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push(n[r].getSubject())}else for(var a=0;a<n.length;a++)null!=e&&e!==n[a].getType()||t.push(n[a].getValue());return t},firstValue:function(e){if(!0===o)for(var t=0;t<n.length;t++){var r="_:"===n[t].getSubject().substring(0,2)?"bnode":"uri";if(null==e||e===r)return n[t].getSubject()}else for(var i=0;i<n.length;i++)if(null==e||e===n[i].getType())return n[i].getValue()}}},Ee=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;ye(this,e),this._graph=t||{},this._bnodes={},this._bnodesIndexed=!1,!1!==n&&this.validate(),this._changed=!1}var t,n,o;return t=e,(n=[{key:"addQuads",value:function(e){return ge(e,this),this}},{key:"toQuads",value:function(){return me(this)}},{key:"isEmpty",value:function(){var e=this;return!Object.keys(this._graph).find((function(t){var n=e._graph[t];return Object.keys(n).find((function(e){return n[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 n,o={},r=e.find(),i=0;i<r.length;i++){var a=r[i],s=a.getSubject(),l=a.getPredicate(),c=a.getCleanObject();t&&(c.ng=t),0===s.indexOf("_:")&&(n=o[s]||this._newBNode(),o[s]=n,s=n),0===l.indexOf("_:")&&(n=o[l]||this._newBNode(),o[l]=n,l=n),"bnode"===c.type&&(n=o[c.value]||this._newBNode(),o[c.value]=n,c.value=n),this.add(s,l,c)}}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0;if(e instanceof q){var i=e.getPredicate(),a=e.getObject(),s=e.getSubject();this._trackBNodes(s,i,a);var l=this._graphObject(a),c=H.add(this._graph,s,i,l,r);return!0!==o&&this.setChanged(),this._get(s,i,c,!0)}return this.create(e,t,n,!0,o,r)}},{key:"addL",value:function(e,t,n,o){var r={type:"literal",value:n};return"string"==typeof o&&(r.lang=o),this.create(e,t,r,!0)}},{key:"addD",value:function(e,t,n,o){var r={type:"literal",value:n};return"string"==typeof o&&(r.datatype=M(o)),this.create(e,t,r,!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,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=e,s=t,l=n;if(a=null==a?this._newBNode():M(a),s=null==s?this._newBNode():M(s),null==l?l={type:"bnode",value:this._newBNode()}:H.isString(l)?l={type:"uri",value:M(l)}:"object"!==ve(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=M(l.value)),l.datatype&&(l.datatype=M(l.datatype))),!1!==o){var c=H.add(this._graph,a,s,l,i);return!0!==r&&this.setChanged(),this._getOrCreate(a,s,c,!0)}return new q(this,a,s,l,!1)}},{key:"findAndRemove",value:function(e,t,n){for(var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=this.find(e,t,n),i=0;i<r.length;i++)this.remove(r[i],o)}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getSubject(),o=e.getPredicate(),r=e.getObject();this._trackBNodes(n,o,r),null!=H.remove(this._graph,n,o,r)&&!0!==t&&this.setChanged()}},{key:"find",value:function(e,t,n){var o=e,r=t,i=n;if("string"==typeof o&&(o=M(o)),"string"==typeof r&&(r=M(r)),"object"===ve(i)&&null!==i&&"uri"===i.type?i.value=M(i.value):"string"==typeof i&&(i={type:"uri",value:M(i)}),null==i)return null==r?null==o?this._find():this._findS(o):null==o?this._findP(r):this._findSP(o,r);if(null==r)return null==o?this._findO(i):this._findSO(o,i);if(null==o)return this._findPO(r,i);var a=this._get(o,r,H.contains(this._graph,o,r,i),!0);return null==a?[]:[a]}},{key:"findFirstValue",value:function(e,t){var n=this.find(e,t);if(n.length>0)return n[0].getValue()}},{key:"projection",value:function(e,t,n){var o=this,r={};return Object.keys(t).forEach((function(i){var a=t[i],s=Array.isArray(a)?o.findPath(e,a):o.find(e,a);if(s.length>0)switch("*"===i[0]?r[i.substr(1)]=s.map((function(e){return e.getValue()})):r[i]=s[0].getValue(),n||"none"){case"statement":r["*".concat(i)]=s;break;case"objects":r["*".concat(i)]=s.map((function(e){return e.getCleanObject()}));break;case"values":r["*".concat(i)]=s.map((function(e){return e.getValue()}))}})),r}},{key:"subjects",value:function(e,t){return _e(this,this.find(null,e,t),!0)}},{key:"subject",value:function(e,t){return _e(this,ke(this.find(null,e,t)),!0)}},{key:"objects",value:function(e,t){return _e(this,this.find(e,t,null))}},{key:"object",value:function(e,t){return _e(this,ke(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,n){var o,r=this;if(Array.isArray(e)&&0!==e.length){var i=o=this._newBNode(),a=e.length-1;e.forEach((function(e,o){r[t](i,"rdf:first",e,n),o!==a?i=r.add(i,"rdf:rest").getValue():r.add(i,"rdf:rest","rdf:nil")}))}else o=M("rdf:nil");return o}},{key:"removeList",value:function(e){var t=!1,n="object"===ve(e)?e.value:e;try{var o=M("rdf:nil");for(t=n===o;n!==o&&null!=n;){var r=this.findFirstValue(n,"rdf:rest");this.findAndRemove(n),t=null!=(n=r)}}catch(e){return console.warn("Invalid list for object: ".concat(n)),!1}return t}},{key:"getList",value:function(e){var t="object"===ve(e)?e.value:M(e),n=[];try{for(var o=M("rdf:nil");t!==o&&null!=t;)n.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 n}},{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 n=this,o=!1;return this.find(e,t).forEach((function(e){n.removeList(e.getValue())&&(n.remove(e),o=!0)})),o}},{key:"exportRDFJSON",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._graph,H.clone(this._graph,e)}},{key:"replaceSubject",value:function(e,t){return this.replaceURI(e,t)}},{key:"replaceURI",value:function(e,t){var n=this._graph;if(n.hasOwnProperty(e)){if(n.hasOwnProperty(t))throw new Error("Cannot replace subject with target URI since it already exists.");n[t]=n[e],delete n[e]}return this.forEach((function(n,o,r){"uri"===r.type&&r.value===e&&(r.value=t),n===t&&r._statement&&(r._statement._s=t)})),this}},{key:"replaceBlankWithURI",value:function(e,t,n){var o=this._graph;if(o.hasOwnProperty(e)){if(o.hasOwnProperty(t)){if(!n)throw new Error("Cannot replace subject with target URI since it already exists.");var r=o[t],i=o[e];Object.keys(i).forEach((function(e){if(r.hasOwnProperty(e)){var t=r[e],n=i[e].filter((function(e){return!t.find((function(t){return H.objectEquals(t,e)}))}));r[e]=t.concat(n)}else r[e]=i[e]})),delete o[e]}else o[t]=o[e],delete o[e];this.forEach((function(n,o,r){"bnode"===r.type&&r.value===e&&(r.value=t,r.type="uri"),n===t&&r._statement&&(r._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(n){var o=t[n];Object.keys(o).forEach((function(t){o[t].forEach((function(o){e(n,t,o)}))}))}))}},{key:"map",value:function(e){var t=[];return this.forEach((function(n){t.push(e(n))})),t}},{key:"equals",value:function(e,t){return Z(this,t)===Z(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,n,o){if(null!=n)return this._getOrCreate(e,t,n,o)}},{key:"_getOrCreate",value:function(e,t,n,o){return null==n._statement&&(n._statement=new q(this,e,t,n,o)),n._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 n=this;return null==this._graph[e]||null==this._graph[e][t]?[]:this._graph[e][t].map((function(o){return n._get(e,t,o,!0)}))}},{key:"_findS",value:function(e){var t=this,n=this._graph[e],o=Object.keys(n||{}).map((function(n){return t._findSP(e,n)}));return Array.prototype.concat.apply([],o)}},{key:"_find",value:function(){var e=this,t=[];return this.forEach((function(n,o,r){t.push(e._get(n,o,r,!0))})),t}},{key:"_findP",value:function(e){var t=this,n=[];return this.forEach((function(o,r,i){e===r&&n.push(t._get(o,r,i,!0))})),n}},{key:"_findO",value:function(e){var t=this,n=[];return this.forEach((function(o,r,i){H.objectEquals(e,i)&&n.push(t._get(o,r,i,!0))})),n}},{key:"_findSO",value:function(e,t){var n=this,o=[];return this.forEach((function(r,i,a){e===r&&H.objectEquals(t,a)&&o.push(n._get(r,i,a,!0))})),o}},{key:"_findPO",value:function(e,t){var n=this,o=[];return this.forEach((function(r,i,a){e===i&&H.objectEquals(t,a)&&o.push(n._get(r,i,a,!0))})),o}},{key:"_validate",value:function(){var e=this._graph,t={valid:!0,errors:[],nr:0};return Object.keys(e).forEach((function(n){var o=e[n];H.isObject(o)?Object.keys(o).forEach((function(e){var r=o[e];Array.isArray(r)?r.forEach((function(o,r){H.isObject(o)?null!=o.type?H.isString(o.value)?t.nr+=1:(t.errors.push({s:n,p:e,oindex:r+1,message:"Object ".concat(r+1," in object array must have the 'value' attribute pointing to a string.")}),t.valid=!1):(t.errors.push({s:n,p:e,oindex:r+1,message:"Object ".concat(r+1," in object array lacks the attribute type, must be either 'literal', 'resource' or 'bnode'.")}),t.valid=!1):(t.errors.push({s:n,p:e,oindex:r+1,message:"Element ".concat(r+1," in object array is not an object.")}),t.valid=!1)})):(t.errors.push({s:n,p:e,message:"Predicate must point to an array of objects."}),t.valid=!1)})):(t.errors.push({s:n,message:"Subject must point to an object."}),t.valid=!1)})),t}},{key:"_newBNode",value:function(){var e,t,n;for(this._indexBNodes(),e=1;e<20;e++)for(t=1;t<=e;t++)if(n="_:".concat(Math.floor(Math.random()*(Math.pow(10,e)+1))),!0!==this._bnodes[n])return this._bnodes[n]=!0,n;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(n){0===n.indexOf("_:")&&(e._bnodes[n]=!0);var o=t[n];Object.keys(o).forEach((function(t){0===t.indexOf("_:")&&(e._bnodes[t]=!0),o[t].forEach((function(t){"bnode"===t.type&&(e._bnodes[t.value]=!0)}))}))})),this._bnodesIndexed=!0}}},{key:"_trackBNodes",value:function(e,t,n){0===e.indexOf("_:")&&(this._bnodes[e]=!0),0===t.indexOf("_:")&&(this._bnodes[t]=!0),"bnode"===n.type&&(this._bnodes[n.value]=!0)}}])&&we(t.prototype,n),o&&we(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(4043),n(7267);n(268),n(50),n(6646),n(5787);function Ce(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 Se(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Te(o.key),o)}}function Te(e){var t=function(e,t){if("object"!=Ce(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ce(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ce(t)?t:String(t)}function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oe(e,t,n){return Me(t),function(e,t){if(t&&("object"===Ce(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,Ne()?Reflect.construct(t,n||[],Me(e).constructor):t.apply(e,n))}function De(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,n)}function n(){return Ie(e,arguments,Me(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),je(n,e)}(e)}function Ie(e,t,n){if(Ne())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&je(r,n.prototype),r}function Ne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}function je(e,t){return(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Me(e){return(Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Error;function Le(e){return(Le="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 Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Fe(o.key),o)}}function ze(e,t,n){return t&&Re(e.prototype,t),n&&Re(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fe(e){var t=function(e,t){if("object"!=Le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Le(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Le(t)?t:String(t)}var Be={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#"},$e={rdftype:"".concat(Be.rdf,"type"),rdfssco:"".concat(Be.rdfs,"subClassOf"),rdfsdomain:"".concat(Be.rdfs,"domain"),rdfsrange:"".concat(Be.rdfs,"range"),rdfsspo:"".concat(Be.rdfs,"subPropertyOf"),rdfsClass:"".concat(Be.rdfs,"Class"),owlClass:"".concat(Be.owl,"Class"),owlObjectProperty:"".concat(Be.owl,"ObjectProperty"),owlDatatypeProperty:"".concat(Be.owl,"DatatypeProperty"),rdfProperty:"".concat(Be.rdf,"Property")},Ve=function(e,t,n){for(var o={},r=!1,i=e.find(t,n),a=0;a<i.length;a++){var s=i[a];"literal"===s.getType()&&(o[s.getLanguage()||""]=s.getValue()||"",r=!0)}if(r)return null==o.en&&null!=o[""]&&(o.en=o[""],delete o[""]),o},Ue=function(e){for(var t=[],n={},o=0;o<e.length;o++){var r=e[o];n[r]||(t.push(r),n[r]=!0)}return t},He=function(){function e(t,n){Pe(this,e),this._uri=t,this._parents=[],this._children=[],this._graph=n}return ze(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=Ve(this._graph,this._uri,"".concat(Be.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=Ve(this._graph,this._uri,"".concat(Be.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=Ue(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=Ue(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 n=0;n<this._parents.length;n++)this._allDomainOf=this._allDomainOf.concat(this._parents[n].getAllDomainOf())}return delete this._domainOfLock,this._allDomainOf}}]),e}(),Ye=function(e,t,n,o){for(var r=0;r<n.length;r++){var i=n[r],a=i.getSubject(),s=e[a];if(s||(s=new He(a,i.getGraph()),e[a]=s,t.push(s)),o){var l=i.getValue(),c=e[l];c||(c=new He(l,i.getGraph()),e[l]=c,t.push(c)),s.addParent(c)}}},We=function(){function e(){Pe(this,e),this._cidx={},this._carr=[],this._pidx={},this._parr=[]}return ze(e,[{key:"addGraph",value:function(e){Ye(this._cidx,this._carr,e.find(null,$e.rdftype,$e.rdfsClass)),Ye(this._cidx,this._carr,e.find(null,$e.rdftype,$e.owlClass)),Ye(this._cidx,this._carr,e.find(null,$e.rdfssco,null),!0),Ye(this._pidx,this._parr,e.find(null,$e.rdftype,$e.rdfProperty)),Ye(this._pidx,this._parr,e.find(null,$e.rdfsspo,null),!0),Ye(this._pidx,this._parr,e.find(null,$e.rdftype,$e.owlDatatypeProperty)),Ye(this._pidx,this._parr,e.find(null,$e.rdftype,$e.owlObjectProperty)),function(e,t,n){for(var o,r,i,a=e.find(null,$e.rdfsdomain,null),s=0;s<a.length;s++)o=t[(i=a[s]).getSubject()],r=n[i.getValue()],null!=o&&null!=r&&o.setDomain(r);a=e.find(null,$e.rdfsrange,null);for(var l=0;l<a.length;l++)o=t[(i=a[l]).getSubject()],r=i.getValue(),null!=o&&null!=r&&o.setRange(r)}(e,this._pidx,this._cidx)}},{key:"addThing",value:function(){var e="http://www.w3.org/2002/07/owl#Thing",t=this._cidx[e],n=!1;t||(t=new He(e,new Ee),this._cidx[e]=t,this._carr.push(t),n=!0);for(var o=0;o<this._carr.length;o++){var r=this._carr[o];(n&&r!==t||-1===r.getParents().indexOf(t)&&r!==t)&&r.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=[],n=[e].concat(e.getChildren()),o=0;o<n.length;o++)for(var r=n[o],i=r.getGraph.find(null,$e.rdftype,r.getURI()),a=0;a<i.length;a++)t.push(i[a].getSubject());return t}}]),e}();We.prototype.ns=Be,We.prototype.terms=$e,We.global=new We;function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Qe(o.key),o)}}function Qe(e){var t=function(e,t){if("object"!=Ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ge(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ge(t)?t:String(t)}var Ze=function(e){this.filterObj={},this.registry=e};Ze.prototype.register=function(e){this.registry.register(this.filterObj,e)},["itemtype","choices","nodetype","datatype","rdftype","constraint","predicate","style","item","check"].forEach((function(e){Ze.prototype[e]=function(t){var n={};switch(e){case"constraint":Object.keys(t).forEach((function(e){var o=t[e];Array.isArray(o)?n[M(e)]=o.map((function(e){return M(e)})):n[M(e)]=M(o)})),this.filterObj[e]=n;break;case"predicate":case"rdftype":case"datatype":this.filterObj[e]=M(t);break;default:this.filterObj[e]=t||!0}return this}}));var Xe=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,n,o;return t=e,(n=[{key:"calculatePriority",value:function(e,t){var n=0;if(t.itemtype&&(n+=this.priorities.ITEMTYPE,e.getType()!==t.itemtype))return-1;if(t.choices)switch(n+=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&&(n+=this.priorities.NODETYPE,e.getNodetype()!==t.nodetype))return-1;if(t.datatype){n+=this.priorities.DATATYPE;var o=e.getDatatype(),r=!0;if(o&&(r=Array.isArray(o)?!o.includes(t.datatype):o!==t.datatype),r)return-1}return t.rdftype&&(n+=this.priorities.RDFTYPE,!function(e,t){var n=e.getConstraints();return null!=n&&n[rdfType]===t}(e,t.rdftype))||t.constraint&&(n+=this.priorities.CONSTRAINT,!function(e,t){if(null==t)return!0;var n=e.getConstraints(),o=!0;return null!=n&&(Object.keys(n).find((function(e){var r=t[e];return""!==r&&"*"!==r&&r!==n[e]&&(o=!1,!0)})),o)}(e,t.constraint))||t.predicate&&(n+=this.priorities.PREDICATE,e.getProperty()!==t.predicate)||t.style&&(n+=this.priorities.STYLE,!e.hasStyle(t.style))?-1:!t.item||(n+=this.priorities.ITEM,e===t.item||t.item.getId&&e.getId()===t.item.getId())?t.check&&!t.check(e)?-1:n:-1}},{key:"getPriority",value:function(e,t){for(var n=0;n<this.components.length;n++)if(this.components[n].component===t){var o=this.calculatePriority(e,this.components[n].filter);if(o>=0)return o}return 0}},{key:"getComponentBefore",value:function(e,t){var n=this.getPriority(e,t);return this.getComponent(e,n)}},{key:"getComponent",value:function(e,t){for(var n,o,r,i=-1,a=0;a<this.components.length;a++)r=this.components[a],(o=this.calculatePriority(e,r.filter))>i&&(void 0===t||o<t)&&(n=r,i=o);if(n)return n.component}},{key:"register",value:function(e,t){this.components.push({component:t,filter:e})}},{key:"itemtype",value:function(e){return new Ze(this).itemtype(e)}},{key:"choices",value:function(e){return new Ze(this).choices(e)}},{key:"nodetype",value:function(e){return new Ze(this).nodetype(e)}},{key:"datatype",value:function(e){return new Ze(this).datatype(e)}},{key:"rdftype",value:function(e){return new Ze(this).rdftype(e)}},{key:"constraint",value:function(e){return new Ze(this).constraint(e)}},{key:"predicate",value:function(e){return new Ze(this).predicate(e)}},{key:"style",value:function(e){return new Ze(this).style(e)}},{key:"item",value:function(e){return new Ze(this).item(e)}},{key:"check",value:function(e){return new Ze(this).check(e)}}])&&qe(t.prototype,n),o&&qe(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Ke=function(){this.__data__=[],this.size=0};const Je=function(e,t){return e===t||e!=e&&t!=t};const et=function(e,t){for(var n=e.length;n--;)if(Je(e[n][0],t))return n;return-1};var tt=Array.prototype.splice;const nt=function(e){var t=this.__data__,n=et(t,e);return!(n<0)&&(n==t.length-1?t.pop():tt.call(t,n,1),--this.size,!0)};const ot=function(e){var t=this.__data__,n=et(t,e);return n<0?void 0:t[n][1]};const rt=function(e){return et(this.__data__,e)>-1};const it=function(e,t){var n=this.__data__,o=et(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function at(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}at.prototype.clear=Ke,at.prototype.delete=nt,at.prototype.get=ot,at.prototype.has=rt,at.prototype.set=it;const st=at;const lt=function(){this.__data__=new st,this.size=0};const ct=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const dt=function(e){return this.__data__.get(e)};const ut=function(e){return this.__data__.has(e)};const ft="object"==typeof global&&global&&global.Object===Object&&global;var bt="object"==typeof self&&self&&self.Object===Object&&self;const pt=ft||bt||Function("return this")();const mt=pt.Symbol;var ht=Object.prototype,gt=ht.hasOwnProperty,vt=ht.toString,yt=mt?mt.toStringTag:void 0;const wt=function(e){var t=gt.call(e,yt),n=e[yt];try{e[yt]=void 0;var o=!0}catch(e){}var r=vt.call(e);return o&&(t?e[yt]=n:delete e[yt]),r};var xt=Object.prototype.toString;const kt=function(e){return xt.call(e)};var _t=mt?mt.toStringTag:void 0;const Et=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_t&&_t in Object(e)?wt(e):kt(e)};const Ct=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const St=function(e){if(!Ct(e))return!1;var t=Et(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const Tt=pt["__core-js_shared__"];var At,Ot=(At=/[^.]+$/.exec(Tt&&Tt.keys&&Tt.keys.IE_PROTO||""))?"Symbol(src)_1."+At:"";const Dt=function(e){return!!Ot&&Ot in e};var It=Function.prototype.toString;const Nt=function(e){if(null!=e){try{return It.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var jt=/^\[object .+?Constructor\]$/,Mt=Function.prototype,Lt=Object.prototype,Pt=Mt.toString,Rt=Lt.hasOwnProperty,zt=RegExp("^"+Pt.call(Rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ft=function(e){return!(!Ct(e)||Dt(e))&&(St(e)?zt:jt).test(Nt(e))};const Bt=function(e,t){return null==e?void 0:e[t]};const $t=function(e,t){var n=Bt(e,t);return Ft(n)?n:void 0};const Vt=$t(pt,"Map");const Ut=$t(Object,"create");const Ht=function(){this.__data__=Ut?Ut(null):{},this.size=0};const Yt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Wt=Object.prototype.hasOwnProperty;const Gt=function(e){var t=this.__data__;if(Ut){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Wt.call(t,e)?t[e]:void 0};var qt=Object.prototype.hasOwnProperty;const Qt=function(e){var t=this.__data__;return Ut?void 0!==t[e]:qt.call(t,e)};const Zt=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ut&&void 0===t?"__lodash_hash_undefined__":t,this};function Xt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Xt.prototype.clear=Ht,Xt.prototype.delete=Yt,Xt.prototype.get=Gt,Xt.prototype.has=Qt,Xt.prototype.set=Zt;const Kt=Xt;const Jt=function(){this.size=0,this.__data__={hash:new Kt,map:new(Vt||st),string:new Kt}};const en=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const tn=function(e,t){var n=e.__data__;return en(t)?n["string"==typeof t?"string":"hash"]:n.map};const nn=function(e){var t=tn(this,e).delete(e);return this.size-=t?1:0,t};const on=function(e){return tn(this,e).get(e)};const rn=function(e){return tn(this,e).has(e)};const an=function(e,t){var n=tn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function sn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}sn.prototype.clear=Jt,sn.prototype.delete=nn,sn.prototype.get=on,sn.prototype.has=rn,sn.prototype.set=an;const ln=sn;const cn=function(e,t){var n=this.__data__;if(n instanceof st){var o=n.__data__;if(!Vt||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new ln(o)}return n.set(e,t),this.size=n.size,this};function dn(e){var t=this.__data__=new st(e);this.size=t.size}dn.prototype.clear=lt,dn.prototype.delete=ct,dn.prototype.get=dt,dn.prototype.has=ut,dn.prototype.set=cn;const un=dn;const fn=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};const bn=function(){try{var e=$t(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const pn=function(e,t,n){"__proto__"==t&&bn?bn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var mn=Object.prototype.hasOwnProperty;const hn=function(e,t,n){var o=e[t];mn.call(e,t)&&Je(o,n)&&(void 0!==n||t in e)||pn(e,t,n)};const gn=function(e,t,n,o){var r=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=o?o(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),r?pn(n,s,l):hn(n,s,l)}return n};const vn=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};const yn=function(e){return null!=e&&"object"==typeof e};const wn=function(e){return yn(e)&&"[object Arguments]"==Et(e)};var xn=Object.prototype,kn=xn.hasOwnProperty,_n=xn.propertyIsEnumerable;const En=wn(function(){return arguments}())?wn:function(e){return yn(e)&&kn.call(e,"callee")&&!_n.call(e,"callee")};const Cn=Array.isArray;const Sn=function(){return!1};var Tn="object"==typeof exports&&exports&&!exports.nodeType&&exports,An=Tn&&"object"==typeof module&&module&&!module.nodeType&&module,On=An&&An.exports===Tn?pt.Buffer:void 0;const Dn=(On?On.isBuffer:void 0)||Sn;var In=/^(?:0|[1-9]\d*)$/;const Nn=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&In.test(e))&&e>-1&&e%1==0&&e<t};const jn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Mn={};Mn["[object Float32Array]"]=Mn["[object Float64Array]"]=Mn["[object Int8Array]"]=Mn["[object Int16Array]"]=Mn["[object Int32Array]"]=Mn["[object Uint8Array]"]=Mn["[object Uint8ClampedArray]"]=Mn["[object Uint16Array]"]=Mn["[object Uint32Array]"]=!0,Mn["[object Arguments]"]=Mn["[object Array]"]=Mn["[object ArrayBuffer]"]=Mn["[object Boolean]"]=Mn["[object DataView]"]=Mn["[object Date]"]=Mn["[object Error]"]=Mn["[object Function]"]=Mn["[object Map]"]=Mn["[object Number]"]=Mn["[object Object]"]=Mn["[object RegExp]"]=Mn["[object Set]"]=Mn["[object String]"]=Mn["[object WeakMap]"]=!1;const Ln=function(e){return yn(e)&&jn(e.length)&&!!Mn[Et(e)]};const Pn=function(e){return function(t){return e(t)}};var Rn="object"==typeof exports&&exports&&!exports.nodeType&&exports,zn=Rn&&"object"==typeof module&&module&&!module.nodeType&&module,Fn=zn&&zn.exports===Rn&&ft.process;const Bn=function(){try{var e=zn&&zn.require&&zn.require("util").types;return e||Fn&&Fn.binding&&Fn.binding("util")}catch(e){}}();var $n=Bn&&Bn.isTypedArray;const Vn=$n?Pn($n):Ln;var Un=Object.prototype.hasOwnProperty;const Hn=function(e,t){var n=Cn(e),o=!n&&En(e),r=!n&&!o&&Dn(e),i=!n&&!o&&!r&&Vn(e),a=n||o||r||i,s=a?vn(e.length,String):[],l=s.length;for(var c in e)!t&&!Un.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Nn(c,l))||s.push(c);return s};var Yn=Object.prototype;const Wn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Yn)};const Gn=function(e,t){return function(n){return e(t(n))}};const qn=Gn(Object.keys,Object);var Qn=Object.prototype.hasOwnProperty;const Zn=function(e){if(!Wn(e))return qn(e);var t=[];for(var n in Object(e))Qn.call(e,n)&&"constructor"!=n&&t.push(n);return t};const Xn=function(e){return null!=e&&jn(e.length)&&!St(e)};const Kn=function(e){return Xn(e)?Hn(e):Zn(e)};const Jn=function(e,t){return e&&gn(t,Kn(t),e)};const eo=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var to=Object.prototype.hasOwnProperty;const no=function(e){if(!Ct(e))return eo(e);var t=Wn(e),n=[];for(var o in e)("constructor"!=o||!t&&to.call(e,o))&&n.push(o);return n};const oo=function(e){return Xn(e)?Hn(e,!0):no(e)};const ro=function(e,t){return e&&gn(t,oo(t),e)};var io="object"==typeof exports&&exports&&!exports.nodeType&&exports,ao=io&&"object"==typeof module&&module&&!module.nodeType&&module,so=ao&&ao.exports===io?pt.Buffer:void 0,lo=so?so.allocUnsafe:void 0;const co=function(e,t){if(t)return e.slice();var n=e.length,o=lo?lo(n):new e.constructor(n);return e.copy(o),o};const uo=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t};const fo=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i};const bo=function(){return[]};var po=Object.prototype.propertyIsEnumerable,mo=Object.getOwnPropertySymbols;const ho=mo?function(e){return null==e?[]:(e=Object(e),fo(mo(e),(function(t){return po.call(e,t)})))}:bo;const go=function(e,t){return gn(e,ho(e),t)};const vo=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e};const yo=Gn(Object.getPrototypeOf,Object);const wo=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)vo(t,ho(e)),e=yo(e);return t}:bo;const xo=function(e,t){return gn(e,wo(e),t)};const ko=function(e,t,n){var o=t(e);return Cn(e)?o:vo(o,n(e))};const _o=function(e){return ko(e,Kn,ho)};const Eo=function(e){return ko(e,oo,wo)};const Co=$t(pt,"DataView");const So=$t(pt,"Promise");const To=$t(pt,"Set");const Ao=$t(pt,"WeakMap");var Oo=Nt(Co),Do=Nt(Vt),Io=Nt(So),No=Nt(To),jo=Nt(Ao),Mo=Et;(Co&&"[object DataView]"!=Mo(new Co(new ArrayBuffer(1)))||Vt&&"[object Map]"!=Mo(new Vt)||So&&"[object Promise]"!=Mo(So.resolve())||To&&"[object Set]"!=Mo(new To)||Ao&&"[object WeakMap]"!=Mo(new Ao))&&(Mo=function(e){var t=Et(e),n="[object Object]"==t?e.constructor:void 0,o=n?Nt(n):"";if(o)switch(o){case Oo:return"[object DataView]";case Do:return"[object Map]";case Io:return"[object Promise]";case No:return"[object Set]";case jo:return"[object WeakMap]"}return t});const Lo=Mo;var Po=Object.prototype.hasOwnProperty;const Ro=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Po.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const zo=pt.Uint8Array;const Fo=function(e){var t=new e.constructor(e.byteLength);return new zo(t).set(new zo(e)),t};const Bo=function(e,t){var n=t?Fo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var $o=/\w*$/;const Vo=function(e){var t=new e.constructor(e.source,$o.exec(e));return t.lastIndex=e.lastIndex,t};var Uo=mt?mt.prototype:void 0,Ho=Uo?Uo.valueOf:void 0;const Yo=function(e){return Ho?Object(Ho.call(e)):{}};const Wo=function(e,t){var n=t?Fo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const Go=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return Fo(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return Bo(e,n);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 Wo(e,n);case"[object Map]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return Vo(e);case"[object Set]":return new o;case"[object Symbol]":return Yo(e)}};var qo=Object.create;const Qo=function(){function e(){}return function(t){if(!Ct(t))return{};if(qo)return qo(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Zo=function(e){return"function"!=typeof e.constructor||Wn(e)?{}:Qo(yo(e))};const Xo=function(e){return yn(e)&&"[object Map]"==Lo(e)};var Ko=Bn&&Bn.isMap;const Jo=Ko?Pn(Ko):Xo;const er=function(e){return yn(e)&&"[object Set]"==Lo(e)};var tr=Bn&&Bn.isSet;const nr=tr?Pn(tr):er;var or={};or["[object Arguments]"]=or["[object Array]"]=or["[object ArrayBuffer]"]=or["[object DataView]"]=or["[object Boolean]"]=or["[object Date]"]=or["[object Float32Array]"]=or["[object Float64Array]"]=or["[object Int8Array]"]=or["[object Int16Array]"]=or["[object Int32Array]"]=or["[object Map]"]=or["[object Number]"]=or["[object Object]"]=or["[object RegExp]"]=or["[object Set]"]=or["[object String]"]=or["[object Symbol]"]=or["[object Uint8Array]"]=or["[object Uint8ClampedArray]"]=or["[object Uint16Array]"]=or["[object Uint32Array]"]=!0,or["[object Error]"]=or["[object Function]"]=or["[object WeakMap]"]=!1;const rr=function e(t,n,o,r,i,a){var s,l=1&n,c=2&n,d=4&n;if(o&&(s=i?o(t,r,i,a):o(t)),void 0!==s)return s;if(!Ct(t))return t;var u=Cn(t);if(u){if(s=Ro(t),!l)return uo(t,s)}else{var f=Lo(t),b="[object Function]"==f||"[object GeneratorFunction]"==f;if(Dn(t))return co(t,l);if("[object Object]"==f||"[object Arguments]"==f||b&&!i){if(s=c||b?{}:Zo(t),!l)return c?xo(t,ro(s,t)):go(t,Jn(s,t))}else{if(!or[f])return i?t:{};s=Go(t,f,l)}}a||(a=new un);var p=a.get(t);if(p)return p;a.set(t,s),nr(t)?t.forEach((function(r){s.add(e(r,n,o,r,t,a))})):Jo(t)&&t.forEach((function(r,i){s.set(i,e(r,n,o,i,t,a))}));var m=u?void 0:(d?c?Eo:_o:c?oo:Kn)(t);return fn(m||t,(function(r,i){m&&(r=t[i=r]),hn(s,i,e(r,n,o,i,t,a))})),s};const ir=function(e){return rr(e,5)};n(2003),n(2462);var ar=n(381),sr=n.n(ar),lr=function(e){var t=sr().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 n=Object.keys(e);return n.length>0?{value:e[n[0]],precision:"any",lang:n[0]}:{precision:"none"}},cr=function(e,t,n){var o=e.find(t,n);if(o.length>0){for(var r={},i=0;i<o.length;i++)r[o[i].getLanguage()||""]=o[i].getValue();return r}};const dr={getLocalizedValue:lr,getLocalizedMap:function(e,t,n){var o,r=t,i=n;e.getItem?(o=e.getGraph(),r=e.getValue(),i=e.getItem().getURIValueLabelProperties()):o=e,null!=i&&0!==i.length||(i=fr.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=cr(o,r,s[c]);d&&l.push(lr(d).value)}if(l.length>0)return{"":l.join(" ")}}else{var u=cr(o,r,s);if(u)return u}}},cloneArrayWithLabels:function(e,t){for(var n=[],o=0;o<e.length;o++){var r=e[o],i=lr(r.label),a={value:r.value,label:i.value||r.value||""};!0===r.top&&(a.top=!0),null!=r.children&&(a.children=ir(r.children)),!1===r.selectable?a.selectable=!1:a.selectable=!0,n.push(a)}return!0!==t&&n.sort((function(e,t){return e.label>t.label?1:-1})),n},extractGist:function(e,t){var n=t;if(n){-1===n.indexOf("$1")&&(n+="$1");var o="".concat(n).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1").replace("\\$1","(.*)"),r=new RegExp(o).exec(e);if(null!=r)return r[1]}return e},findFirstValue:function(e,t,n,o){var r=e.findFirstValueBinding(e.match(t,n,o),!1);if(r)return r.getChoice?lr(r.getChoice().label).value:r.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 n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}};var ur=function(e,t,n,o){if("URI"===e.getNodetype()||"RESOURCE"===e.getNodetype()){var r=dr.getLocalizedMap(o,t,e.getURIValueLabelProperties());if(!r){var i=t.lastIndexOf("#"),a=t.lastIndexOf("/");r=i>0||a>0?{"":decodeURIComponent(t.substring(1+(i>a?i:a)))}:{"":t}}return{value:t,label:r}}return{value:t,label:t}};const fr={hasDnDSupport:function(e){return!1},addDnD:function(e,t,n){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,n,o){return ur(e,t,0,o)},getFallbackChoice:ur,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 n=t.getChildrenRootUri(),o=n.lastIndexOf("#"),r=-1===o?"".concat(n,"#"):n.substring(0,o+1),i=t.getGraph()._graph;;){var a=r+"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);if(null==i[a])return a}}},br=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 pr(e){return(pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var mr,hr,gr,vr,yr,wr="body",xr=[{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"}}],kr={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 Xe,editorRegistry:new Xe,chooserRegistry:new Xe,renderPresenter:function(e,t,n){var o=kr.presenterRegistry.getComponent(t.getItem());o&&(kr.prePresenterRenderer(e,t,n),o(e,t,n),kr.postPresenterRenderer(e,t,n))},renderEditor:function(e,t,n){var o=kr.editorRegistry.getComponent(t.getItem());o&&(kr.preEditorRenderer(e,t,n),o(e,t,n),kr.postEditorRenderer(e,t,n))},renderValidationMessage:function(e,t,n){},renderSelect:function(){},getChoice:function(e,t){var n=kr.chooserRegistry.getComponent(e);if(null==n)throw new Error("Error, no chooser available to retrieve a choice for item: ".concat(e.getId()));return n.getChoice(e,t)},hasOpenChoiceSelector:function(e){return null!=kr.chooserRegistry.getComponent(e.getItem())},openChoiceSelector:function(e,t,n){var o=kr.chooserRegistry.getComponent(e.getItem());if(null!=o&&o&&o.getChoice)o.show(e,t,n);else{var r=e.getItem();alert("Error, no chooser available to open a choice selector for: ".concat(r))}},getExtLinkClass:function(){return""},setMessages:function(e){mr=e},getMessages:function(){return mr||br},getLanguageList:function(){return hr||xr},getPrimaryLanguageList:function(){if(!vr){for(var e,t=kr.getLanguageList(),n=gr||[],o=[],r=0;r<t.length;r++){var i=t[r].value,a=n.indexOf(i);""===i&&(e=t[r]),-1!==a&&(o[a]=t[r])}vr=[];for(var s=0;s<o.length;s++)"object"===pr(o[s])&&vr.push(o[s]);vr.length>0&&e&&vr.splice(0,0,e)}return vr},getNonPrimaryLanguageList:function(){if(!yr){var e=kr.getPrimaryLanguageList().length>0,t=kr.getLanguageList(),n=gr||[];yr=[];for(var o=0;o<t.length;o++){var r=t[o].value;-1===n.indexOf(r)&&(e&&""===r||yr.push(t[o]))}}return yr},setPrimaryLanguageCodes:function(e){yr=null,vr=null,gr=e},setLanguageList:function(e){hr=e},filterTranslations:function(e,t,n){for(var o={},r=0;r<e.length;r++){var i=e[r].getLanguage();""===i||null==i?o.noLanguage=!0:i===t?o.best=!0:-1!==i.indexOf(t)||-1!==t.indexOf(i)?o.close=!0:0===i.indexOf(n)&&(o.defaultLanguage=!0)}return o.best?e.filter((function(e){return e.getLanguage()===t})):o.close?e.filter((function(e){var n=e.getLanguage();return n&&(-1!==n.indexOf(t)||-1!==t.indexOf(n))})):o.defaultLanguage?e.filter((function(e){var t=e.getLanguage();return t&&0===t.indexOf(n)})):e},setPopoverContainer:function(e){wr=e},getPopoverContainer:function(){return wr},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(){}};fr.getChoice=kr.getChoice;var _r=function(e,t,n){new(0,n.view.constructor)({parentView:n.view,messages:n.view.messages,binding:t,topLevel:!1,compact:n.view.compact,showLanguage:n.view.showLanguage,showDescription:n.view.showDescription,defaultLanguage:n.view.defaultLanguage,filterTranslations:n.view.filterTranslations,truncate:n.view.truncate,truncateLimit:n.view.truncateLimit,includeLevel:n.view.includeLevel},e)};kr.presenterRegistry.itemtype("group").register(_r),kr.presenterRegistry.itemtype("propertygroup").register(_r);var Er=function(e,t,n){var o=new(0,n.view.constructor)({parentView:n.view,messages:n.view.messages,languages:n.view.languages,binding:t,topLevel:!1,compact:n.view.compact,showDescription:n.view.showDescription,truncate:n.view.truncate,truncateLimit:n.view.truncateLimit,includeLevel:n.view.includeLevel},e);n.view._subEditors.push(o)};kr.editorRegistry.itemtype("group").register(Er),kr.editorRegistry.itemtype("propertygroup").register(Er);const Cr=kr;var Sr=n(9755),Tr=n.n(Sr);n(2349),n(1919),n(4418);function Ar(e){return(Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Or(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Dr(o.key),o)}}function Dr(e){var t=function(e,t){if("object"!=Ar(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ar(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ar(t)?t:String(t)}var Ir=0,Nr=function(){function e(t){var n=t.item,o=t.statement,r=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=n,this._statement=o,this._graph=r,this._ancestorValid=!0,this._cardinalityTracker=null,this._hash="b_".concat(Ir),this._matchingCode=i||"correct",Ir+=1}var t,n,o;return t=e,(n=[{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 dr.extractGist(this.getValue(),this.getItem().getValueTemplate())}},{key:"setGist",value:function(e,t){var n=e,o=this.getItem().getValueTemplate();o&&n.length>0&&(-1===o.indexOf("$1")&&(o+="$1"),n=o.replace("$1",n)),this.setValue(n,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 n=this._item.getPattern();return n?null!=(t=dr.extractGist(t,this.getItem().getValueTemplate()))&&""!==t&&new RegExp("^".concat(n,"$")).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}}])&&Or(t.prototype,n),o&&Or(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();const jr={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 Mr(e){return(Mr="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 Lr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Pr(o.key),o)}}function Pr(e){var t=function(e,t){if("object"!=Mr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Mr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mr(t)?t:String(t)}var Rr=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,n,o;return t=e,(n=[{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=jr.UNKNOWN,this._depsOk=e,this.cardinalityChanged())}},{key:"increment",value:function(){this._counter+=1,this._code=jr.UNKNOWN,this._checkCounter()}},{key:"decrement",value:function(){this._counter-=1,this._code=jr.UNKNOWN,this._checkCounter()}},{key:"getCounter",value:function(){return this._counter}},{key:"checkCardinality",value:function(){this._checkCounter()}},{key:"touch",value:function(){this._code=jr.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()}}])&&Lr(t.prototype,n),o&&Lr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zr(e){return(zr="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 Fr(e){return function(e){if(Array.isArray(e))return Br(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 Br(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Br(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 Br(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function $r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Vr(o.key),o)}}function Vr(e){var t=function(e,t){if("object"!=zr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=zr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zr(t)?t:String(t)}function Ur(e,t,n){return t=Wr(t),function(e,t){if(t&&("object"===zr(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,n||[],Wr(e).constructor):t.apply(e,n))}function Hr(){return(Hr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Yr(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Yr(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Wr(e)););return e}function Wr(e){return(Wr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gr(e,t){return(Gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var qr=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=Ur(this,t,[e]);var o=e.constraints,r=void 0===o?[]:o,i=e.childrenRootUri,a=void 0===i?null:i;return n._constraints=r,n._childBindings=n._item.getChildren().map((function(){return[]})),n._rootUri=a,n._validPredicate=!0,n._validObject=!0,n._statement&&(n._validPredicate=n._isValidPredicateValue(n._statement.getPredicate()),n._validObject=n._isValidObjectValue(n._statement.getValue(),n._statement.getType())),n._cachedChildBindings=null,n}var n,o,r;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&&Gr(e,t)}(t,e),n=t,(o=[{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 n=e[0].getItem(),o=this._item.getChildren(),r=function(){if(n===o[i]){var r=t._childBindings[i].length>0?t._childBindings[i][0].getCardinalityTracker():new Rr(n);return t._childBindings[i]=t._childBindings[i].concat(e),e.forEach((function(e){e.setParent(t),e.setCardinalityTracker(r),r.increment()}),t),1}},i=o.length;i>=0&&!r();i--);}},{key:"removeChildBinding",value:function(e){this._cachedChildBindings=null;for(var t=this._item.getChildren(),n=t.length;n>=0;n--)if(e.getItem()===t[n]){this._childBindings[n].splice(this._childBindings[n].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(),n=t.length;n>=0;n--)if(e===t[n])return this._childBindings[n]}},{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,Fr(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),Hr(Wr(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(n){return n.forEach((function(n){return n.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,n){return("URI"!==this.getItem().getNodetype()||"uri"===n)&&Hr(Wr(t.prototype),"_isValidObjectValue",this).call(this,e)}}])&&$r(n.prototype,o),r&&$r(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Nr);function Qr(e){return(Qr="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 Zr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Xr(o.key),o)}}function Xr(e){var t=function(e,t){if("object"!=Qr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Qr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qr(t)?t:String(t)}var Kr=0,Jr=function(e,t,n){null==n||""===n||Array.isArray(n)&&0===n.length?delete e[t]:e[t]=n},ei=function(){function e(t){var n=t.source,o=void 0===n?{}:n,r=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=o,this._bundle=r,Kr+=1,this._internalId=Kr,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=dr.getLocalizedValue}var t,n,o;return t=e,(n=[{key:"getId",value:function(){var e=this.getSource(!0);return e.id||e["@id"]}},{key:"setId",value:function(e){Jr(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){Jr(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),n=this._itemStore.getItem(e);this._source=null==n?t:this._itemStore.createExtendedSource(n.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,n){var o=this.getSource(n);return t?dr.getLocalizedValue(o[e]):dr.getLocalizedValue(o[e]).value}},{key:"_setText",value:function(e,t,n){var o=this.getSource(!0);o[e]=this._setLangHash(o[e],t,n),this.refreshExtends()}},{key:"_setTextMap",value:function(e,t){Jr(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,n){var o=this.getSource(n).text||{};return t?dr.getLocalizedValue(o[e]):dr.getLocalizedValue(o[e]).value}},{key:"setText",value:function(e,t,n){var o=this.getSource(!0),r=o.text=o.text||{};r[e]=this._setLangHash(r[e],t,n),this.refreshExtends()}},{key:"setTextMap",value:function(e,t){var n=this.getSource(!0),o=n.text=n.text||{};Jr(o,e,t),this.refreshExtends()}},{key:"getProperty",value:function(e){var t=null,n=this.getSource(e);return n&&null!=(t=n.property)&&""!==t&&(t=M(t)),t}},{key:"setProperty",value:function(e){Jr(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 M(e)})):t}},{key:"setURIValueLabelProperties",value:function(e){Jr(this.getSource(!0),"uriValueLabelProperties",e),this.refreshExtends()}},{key:"getConstraints",value:function(e){var t=this.getSource(e).constraints;if(null!=t){var n={};return Object.keys(t).forEach((function(e){var o=t[e];Array.isArray(o)?n[M(e)]=o.map((function(e){return M(e)})):n[M(e)]=M(o)})),n}return t}},{key:"setConstraints",value:function(e){Jr(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?M(e):e})):t}},{key:"setDeps",value:function(e){Jr(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 M(e)})):M(t):t}},{key:"setDatatype",value:function(e){Jr(this.getSource(!0),"datatype",e),this.refreshExtends()}},{key:"getPattern",value:function(e){return this.getSource(e).pattern}},{key:"setPattern",value:function(e){Jr(this.getSource(!0),"pattern",e),this.refreshExtends()}},{key:"getLanguage",value:function(e){return this.getSource(e).language}},{key:"setLanguage",value:function(e){Jr(this.getSource(!0),"language",e),this.refreshExtends()}},{key:"getMember",value:function(e){return this.getSource(e).member}},{key:"setMember",value:function(e){Jr(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){Jr(this.getSource(!0),"nodetype",e),this.refreshExtends()}},{key:"getValue",value:function(e){return this.getSource(e).value}},{key:"setValue",value:function(e){Jr(this.getSource(!0),"value",e),this.refreshExtends()}},{key:"getValueTemplate",value:function(e){return this.getSource(e).valueTemplate}},{key:"setValueTemplate",value:function(e){Jr(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){Jr(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){Jr(this.getSource(!0),"cls",e),this.refreshExtends()}},{key:"hasClass",value:function(e,t){var n=this.getSource(t);return!!this.hasStyle(e,t)||null!=n.cls&&n.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){Jr(this.getSource(!0),"styles",e),this.refreshExtends()}},{key:"hasStyle",value:function(e,t){var n=this.getSource(t);return!(!n||!("styles"in n))&&n.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,n){var o=e||{};if("string"==typeof t)"string"==typeof n?o[n]=t:o[""]=t;else if("object"===Qr(t)&&null!==t)return t;return o}}])&&Zr(t.prototype,n),o&&Zr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ti(e){return(ti="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 n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,oi(o.key),o)}}function oi(e){var t=function(e,t){if("object"!=ti(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ti(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ti(t)?t:String(t)}function ri(e,t,n){return t=si(t),function(e,t){if(t&&("object"===ti(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,n||[],si(e).constructor):t.apply(e,n))}function ii(){return(ii="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=ai(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function ai(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=si(e)););return e}function si(e){return(si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function li(e,t){return(li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ci=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=ri(this,t,[e]))._children=e.children,null!=n._source.content&&(n._source.items=n._source.content,delete n._source.content),n._forceChildrenClones=!1,n._parent=null,n}var n,o,r;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&&li(e,t)}(t,e),n=t,(o=[{key:"getChildren",value:function(e){var t,n=e&&this.isExtention(),o=n?this._ochildren:this._children;return null==o&&(o=this._itemStore.getChildren(this,n),!0===this.getSource().automatic&&this._itemStore.automaticSortAllowed&&((t=o).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(n?"o":"","children")]=o),o}},{key:"originalChildrenChanged",value:function(){this.isExtention()&&delete this._children}},{key:"setExtends",value:function(e){ii(si(t.prototype),"setExtends",this).call(this,e),delete this._children,delete this._ochildren}},{key:"getNodetype",value:function(){return ii(si(t.prototype),"getNodetype",this).call(this)||"RESOURCE"}}])&&ni(n.prototype,o),r&&ni(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ei);function di(e){return(di="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 ui(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,bi(o.key),o)}}function bi(e){var t=function(e,t){if("object"!=di(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=di(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==di(t)?t:String(t)}function pi(e,t,n){return t=gi(t),function(e,t){if(t&&("object"===di(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,n||[],gi(e).constructor):t.apply(e,n))}function mi(){return(mi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=hi(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function hi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=gi(e)););return e}function gi(e){return(gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vi(e,t){return(vi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var yi=function(e){function t(){return ui(this,t),pi(this,t,arguments)}var n,o,r;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&&vi(e,t)}(t,e),n=t,(o=[{key:"getChildren",value:function(e){if(null==this._delegatedChildren){var n=function(){return{min:1,max:1,pref:1}},o=mi(gi(t.prototype),"getChildren",this).call(this,e)||[];this._delegatedChildren=o.map((function(e){var t=Object.create(e);return t.getCardinality=n,t}))}return this._delegatedChildren}},{key:"getPropertyItem",value:function(){return this.getChildren()[0]}},{key:"getObjectItem",value:function(){return this.getChildren()[1]}}])&&fi(n.prototype,o),r&&fi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ci);function wi(e){return(wi="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 ki(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_i(o.key),o)}}function _i(e){var t=function(e,t){if("object"!=wi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=wi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wi(t)?t:String(t)}function Ei(e,t,n){return t=Ci(t),function(e,t){if(t&&("object"===wi(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,n||[],Ci(e).constructor):t.apply(e,n))}function Ci(e){return(Ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Si(e,t){return(Si=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ti=function(e){function t(){return xi(this,t),Ei(this,t,arguments)}var n,o,r;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&&Si(e,t)}(t,e),n=t,(o=[{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties}}])&&ki(n.prototype,o),r&&ki(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ei);function Ai(e){return(Ai="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 Oi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Di(o.key),o)}}function Di(e){var t=function(e,t){if("object"!=Ai(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ai(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ai(t)?t:String(t)}function Ii(e,t,n){return t=Mi(t),function(e,t){if(t&&("object"===Ai(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,n||[],Mi(e).constructor):t.apply(e,n))}function Ni(){return(Ni="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=ji(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function ji(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Mi(e)););return e}function Mi(e){return(Mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Li(e,t){return(Li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Pi=function(e){null!=e&&e.forEach((function(e){e.value=M(e.value)}))},Ri=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Ii(this,t,[e]))._ontologyStore=e.ontologyStore,n}var n,o,r;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&&Li(e,t)}(t,e),n=t,(o=[{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 n=-1===this.getNodetype().indexOf("LITERAL");e&&this.isExtention()?this._origStaticIsSorted||(n&&Pi(t.choices),this._origStaticIsSorted=!0):this._staticIsSorted||(n&&Pi(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){Ni(Mi(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(n){t._dynamicChoices=n,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?M(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?M(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?M(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()}}])&&Oi(n.prototype,o),r&&Oi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ei);n(8436);function zi(e){return(zi="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 Fi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Bi(o.key),o)}}function Bi(e){var t=function(e,t){if("object"!=zi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=zi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zi(t)?t:String(t)}function $i(e,t,n){return t=Hi(t),function(e,t){if(t&&("object"===zi(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,n||[],Hi(e).constructor):t.apply(e,n))}function Vi(){return(Vi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Ui(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Ui(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Hi(e)););return e}function Hi(e){return(Hi=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 Wi=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=$i(this,t,[e]))._validObject=!0,n._validPredicate=!0,n._excludeFromTreeValidityCheck=!1,n._statement&&(n._validPredicate=n._isValidPredicateValue(n._statement.getPredicate(),!0),n._validObject=n._isValidObjectValue(n._statement.getValue())),n}var n,o,r;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),n=t,(o=[{key:"getValue",value:function(){return this._statement.getValue()}},{key:"setValue",value:function(e,t){var n="string"==typeof e?e.trim():e,o=this._validObject;this._isValidObjectValue(n)?(this._statement.setValue(n,t),this._validObject=!0,!0===o||!0!==this._validPredicate||this._excludeFromTreeValidityCheck||this._parent.oneChildValidityChanged(!0)):(""!==n&&null!==n||this._statement.setValue("",t),this._validObject=!1,!1!==o&&!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(M(e)),this.updateAssertions()}},{key:"setExcludeFromTreeValidityCheck",value:function(e){this._excludeFromTreeValidityCheck=e}},{key:"remove",value:function(){this.setValue(null),this._parent.removeChildBinding(this),Vi(Hi(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}}])&&Fi(n.prototype,o),r&&Fi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Nr);function Gi(e){return(Gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Qi(o.key),o)}}function Qi(e){var t=function(e,t){if("object"!=Gi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Gi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gi(t)?t:String(t)}function Zi(e,t,n){return t=Ji(t),function(e,t){if(t&&("object"===Gi(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,n||[],Ji(e).constructor):t.apply(e,n))}function Xi(){return(Xi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Ki(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Ki(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ji(e)););return e}function Ji(e){return(Ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ea(e,t){return(ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ta="http://www.w3.org/2000/01/rdf-schema#label",na="http://www.w3.org/2000/01/rdf-schema#seeAlso",oa=function(e){function t(e){var n,o=e.choice,r=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),(n=Zi(this,t,[{choice:o,item:r,statement:i,matchingCode:a}]))._choice=o,n._validPredicate=null!=r.getProperty(),n}var n,o,r;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&&ea(e,t)}(t,e),n=t,r=[{key:"seeAlso",get:function(){return na}}],(o=[{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(jr.WRONG_VALUE):e&&e.mismatch||this.getMatchingCode()!==jr.WRONG_VALUE||this.setMatchingCode(jr.OK)}},{key:"getChoice",value:function(){return this._choice}},{key:"setValue",value:function(e,n,o){var r=this.getValue();Xi(Ji(t.prototype),"setValue",this).call(this,e,n,o);var i=this._statement.getGraph();if(i.findAndRemove(r,ta,void 0,o),i.findAndRemove(r,na,void 0,o),null!=e&&null!=n&&(n.seeAlso&&n.inlineSeeAlso&&i.create(e,na,n.seeAlso,!0,o),!0===n.inlineLabel)){var a=n.label||{};Object.keys(a).forEach((function(t){return i.create(e,ta,{value:a[t],lang:t,type:"literal"},!0,o)}))}}}])&&qi(n.prototype,o),r&&qi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Wi);function ra(e){return(ra="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 ia(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,aa(o.key),o)}}function aa(e){var t=function(e,t){if("object"!=ra(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ra(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ra(t)?t:String(t)}function sa(e,t,n){return t=la(t),function(e,t){if(t&&("object"===ra(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,n||[],la(e).constructor):t.apply(e,n))}function la(e){return(la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ca(e,t){return(ca=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var da=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=sa(this,t,[e]))._objectBinding=e.objectBinding,n}var n,o,r;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&&ca(e,t)}(t,e),n=t,(o=[{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(){}}])&&ia(n.prototype,o),r&&ia(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(oa);function ua(e){return(ua="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 fa(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ba(o.key),o)}}function ba(e){var t=function(e,t){if("object"!=ua(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ua(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ua(t)?t:String(t)}function pa(e,t,n){return t=ma(t),function(e,t){if(t&&("object"===ua(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,n||[],ma(e).constructor):t.apply(e,n))}function ma(e){return(ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ha(e,t){return(ha=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ga=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=pa(this,t,[e]);var o=e.statement,r=e.constraints;n._statement=void 0,n._validPredicate=!0,n._constraints=[];var i,a=n._item.getChildren(),s=a[1];i=s instanceof ci?new qr({item:s,statement:o,constraints:r}):s instanceof Ri?new oa({item:s,statement:o}):new Wi({item:s,statement:o});var l=new da({item:a[0],objectBinding:i});return n.addChildBinding(l),n.addChildBinding(i),n}var n,o,r;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&&ha(e,t)}(t,e),n=t,(o=[{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()}}])&&fa(n.prototype,o),r&&fa(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(qr);function va(e){return(va="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 ya(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wa(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,xa(o.key),o)}}function xa(e){var t=function(e,t){if("object"!=va(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=va(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==va(t)?t:String(t)}function ka(e,t,n){return t=Ca(t),function(e,t){if(t&&("object"===va(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,n||[],Ca(e).constructor):t.apply(e,n))}function _a(){return(_a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Ea(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Ea(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ca(e)););return e}function Ca(e){return(Ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sa(e,t){return(Sa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ta,Aa,Oa,Da,Ia,Na=function(e){function t(){return ya(this,t),ka(this,t,arguments)}var n,o,r;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&&Sa(e,t)}(t,e),n=t,(o=[{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),_a(Ca(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){}},{key:"isValid",value:function(){return!0}}])&&wa(n.prototype,o),r&&wa(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Wi);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)}var Ma,La,Pa,Ra,za,Fa,Ba=!1,$a=function(e,t,n){var o=new qr({item:n,childrenRootUri:t,graph:e});return Ta(o),Aa(o),o},Va=function(e,t,n){var o=new qr({item:n,childrenRootUri:t,graph:e});return Ta(o),Ba=!0,Ta(o),Ba=!1,Aa(o),o},Ua=function(e,t,n,o){var r=e.findProperties(t),i=[],a={};if(null!=o){var s=function(e){null!=e&&(!function e(t){null!=t.getProperty()?a[t.getProperty()]=!0:t instanceof ci&&t.getChildren().forEach(e)}(e),i.push(e))};o.forEach((function(e){var t=n.getItem(e);null!=t?t instanceof ci&&null==t.getProperty()?t.getChildren().forEach(s):s(t):(t=n.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 r.forEach((function(e){if(!a[e]){var t=n.getItemByProperty(e);null!=t&&i.push(t)}}),void 0),n.createTemplateFromChildren(i)},Ha=function(e){return Array.isArray(e.getDatatype())?e.getDatatype()[0]:e.getDatatype()},Ya=function(e,t){var n,o,r=t.getChildren()[1],i=e.getGraph();r instanceof ci?(n=i.create(e.getChildrenRootUri(),"",null,!1),o=Ia(i,n.getSubject(),r)):n=r instanceof Ri?i.create(e.getChildrenRootUri(),"",{type:"uri",value:""},!1):i.create(e.getChildrenRootUri(),"",{type:"literal",value:""},!1);var a=new ga({item:t,statement:n,constraints:o});return e.addChildBinding(a),r instanceof ci&&r.getChildren().forEach((function(e){Wa(a.getObjectBinding(),e)})),a},Wa=function(e,t,n){return t instanceof Ti?function(e,t){if(!t.getProperty()){var n=new Na({item:t,statement:null,matchingCode:jr.OK});return e.addChildBinding(n),n}var o=e.getGraph(),r=t.getNodetype(),i={value:"",type:"literal"};"URI"===r?i.type="uri":"DATATYPE_LITERAL"===r&&(i.datatype=Ha(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=o.create(e.getChildrenRootUri(),t.getProperty(),i,!1),c=new Wi({item:t,statement:l});return e.addChildBinding(c),c}(e,t):t instanceof yi?Ya(e,t):t instanceof ci?function(e,t,n){var o,r;if(void 0!==t.getProperty()){var i=e.getGraph();o=(t.getNodetype(),i.create(e.getChildrenRootUri(),t.getProperty(),null,!1)),r=Ia(i,o.getValue(),t)}var a=new qr({item:t,statement:o,constraints:r});e.addChildBinding(a);var s=t._source["@id"];if(s){if(n[s])return a;n[s]=!0}return a}(e,t,n||{}):t instanceof Ri?function(e,t){var n=e.getGraph(),o=t.getNodetype(),r={type:"literal",value:""};"DATATYPE_LITERAL"===o?r.datatype=Ha(t):"RESOURCE"!==o&&"URI"!==o||(r.type="uri");var i=n.create(e.getChildrenRootUri(),t.getProperty(),r,!1),a=new oa({item:t,statement:i});e.addChildBinding(a);var s=t.getValue(),l=a.getCardinalityTracker();return null!=s&&1===l.getCounter()&&a.setChoice(za(t,s,n),!0),a}(e,t):void 0};Ta=function(e){Ba&&e.getChildBindings().forEach((function(e){"group"===e.getItem().getType()&&Ta(e)})),e.getItem().getChildren().forEach((function(t){Ba?void 0!==t.getProperty()&&Ma(e,t):Ma(e,t)}))};Ma=function(e,t){t instanceof Ri?function(e,t){if(null!=t.getProperty()){var n=[];e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Oa(e)){var o=La(t,e),r=Pa(t,e),i=Ra(t,e);if(o&&r&&i||Ba){var a=za(t,e.getValue(),e.getGraph());if(void 0!==a){Da(e);var s=o?jr.OK:jr.WRONG_NODETYPE;r?i?a.mismatch&&(s=jr.WRONG_VALUE):s=jr.WRONG_PATTERN:s=jr.WRONG_DATATYPE,n.push(new oa({item:t,statement:e,choice:a,matchingCode:s}))}}}})),n.length>0&&e.addChildBindings(n)}}(e,t):t instanceof yi?function(e,t){var n,o,r,i,a=t.getPropertyItem(),s=t.getObjectItem(),l=e.getGraph(),c=[];l.find(e.getChildrenRootUri()).forEach((function(e){Oa(e)&&La(s,e)&&Ra(s,e)&&void 0!==(r=za(a,e.getPredicate(),e.getGraph()))&&(o=null,s instanceof ci?void 0!==(n=Fa(l,e.getValue(),s))&&(Da(e),o=new ga({item:t,statement:e,constraints:n}),Ta(o.getObjectBinding())):s instanceof Ri?void 0!==(i=za(s,e.getValue(),e.getGraph()))&&(Da(e),(o=new ga({item:t,statement:e})).getObjectBinding().setChoice(i)):(Da(e),o=new ga({item:t,statement:e})),null!==o&&(o.getPredicateBinding().setChoice(r),c.push(o)))})),c.length>0&&e.addChildBindings(c)}(e,t):t instanceof ci?function(e,t){var n,o,r,i,a=e.getGraph();void 0!==t.getProperty()?(n=a.find(e.getChildrenRootUri(),t.getProperty())).length>0&&(o=[],n.forEach((function(e){if(Oa(e)){var n=Ra(t,e),s=La(t,e);if((n&&s||Ba)&&(void 0!==(r=Fa(a,e.getValue(),t))||Ba)){var l=s?jr.OK:jr.WRONG_NODETYPE;n?void 0===r&&(l=jr.MISSING_CONSTRAINTS):l=jr.WRONG_PATTERN,Da(e),i=new qr({item:t,statement:e,constraints:r,matchingCode:l}),o.push(i),l===jr.OK&&Ta(i)}}})),e.addChildBindings(o)):(i=new qr({item:t}),e.addChildBindings([i]),Ta(i))}(e,t):t instanceof Ti&&function(e,t){var n=[];null==t.getProperty()?n.push(new Na({item:t,statement:null,matchingCode:jr.OK})):e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Oa(e)&&Ra(t,e)){var o=La(t,e),r=Pa(t,e);if(o&&(r||t.hasStyle("relaxedDatatypeMatch"))||Ba){Da(e);var i=o?jr.OK:jr.WRONG_NODETYPE;r||(i=jr.WRONG_DATATYPE),n.push(new Wi({item:t,statement:e,matchingCode:i}))}}})),n.length>0&&e.addChildBindings(n)}(e,t)},La=function(e,t){var n=t.getType();switch(e.getNodetype()){case"LITERAL":case"ONLY_LITERAL":case"PLAIN_LITERAL":case"LANGUAGE_LITERAL":case"DATATYPE_LITERAL":return"literal"===n;case"RESOURCE":return"uri"===n||"bnode"===n;case"URI":return"uri"===n;case"BLANK":return"bnode"===n}return!1},Pa=function(e,t){var n="DATATYPE_LITERAL"===e.getNodetype()&&e.getDatatype()||null;return null==n||(Array.isArray(n)?-1!==n.indexOf(t.getDatatype()):t.getDatatype()===n)},Ra=function(e,t){var n=e.getPattern(),o=dr.extractGist(t.getValue(),e.getValueTemplate());if(void 0!==n)try{return new RegExp("^".concat(n,"$")).test(o)}catch(e){return!0}return!0},Fa=function(e,t,n){var o,r=n.getConstraints(),i=[],a=function(n,r){if(1!==(o=e.find(t,n,{type:"uri",value:r})).length)return!1;i.push(o[0])};if("object"===ja(r)&&null!==r){for(var s,l=Object.keys(r),c=function(){var e=l[d],t=r[e];if(t instanceof Array){var n=!0;if(t.forEach((function(t){!1!==a(e,t)&&(n=!1)})),n)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[]},Ia=function(e,t,n){var o=[],r=n.getConstraints();return"object"===ja(r)&&null!==r&&Object.keys(r).forEach((function(n){var i=r[n];Array.isArray(i)?o.push(e.create(t,n,{type:"uri",value:i[0]},!1)):o.push(e.create(t,n,{type:"uri",value:i},!1))})),o},za=function(e,t,n){var o,r;if(e.hasChoices()){for(r=e.getChoices(),o=0;o<r.length;o++)if(r[o].value===t)return r[o];if(!e.hasStyle("strictmatch")||Ba)return{value:t,label:{"":t},mismatch:!0}}else{var i=dr.getLocalizedMap(n,t,e.getLabelProperties());null==i&&Ba&&(i={"":t,mismatch:!0});var a=n.findFirstValue(t,oa.seeAlso);if(null!=i){var s={label:i,value:t};return a&&(s.seeAlso=a),s}if(null!=fr.getChoice)return fr.getChoice(e,t,a,n)}},Da=function(e){e._dibbs=!0},Oa=function(e){return!0!==e._dibbs},Aa=function(e){var t,n,o,r=e.getItemGroupedChildBindings()||[];for(t=0;t<r.length;t++)for(o=r[t],n=0;n<o.length;n++){var i=o[n];i._statement&&delete i._statement._dibbs,(i instanceof qr||i instanceof ga)&&Aa(i)}};var Ga=function e(t,n){for(var o="/"===n[0]?n.slice(1):n,r=t.getItemGroupedChildBindings(),i=o[0],a=0;a<r.length;a++)for(var s=r[a],l=void 0,c=0;c<s.length;c++){var d=s[c],u=d.getItem();if(u instanceof Ri&&void 0===u.getProperty()&&i===u.getId()&&2===o.length&&o[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,o)))return l;if("*"===i||i===d.getPredicate())if("group"===u.getType()){if(l=e(d,o.slice(1)))return l}else if(1===o.length||"*"===o[1]||o[1]===d.getValue())return d}}},qa=function(e,t){var n=t[0],o=e;if("/"===n){for(;o.getParent();)o=o.getParent();return o}if(".."===n){for(var r=0;r<t.length;r++){if(".."!==t[r]||!o.getParent())return o;o=o.getParent()}return o}return e},Qa=function(e,t){var n=e.getId(),o={},r={};e.getChoices().forEach((function(e){o[e.value]=0,r[e.value]=e}));t.getChildBindings().forEach((function(e){var t=e.getItem().getDeps();if(t&&(t[0]===n||"/"===t[0]&&t[1]===n)){var r="/"===t[0]?t[2]:t[1],i=o[r];void 0!==i&&(o[r]=i+1)}}));var i,a=0;return Object.keys(o).forEach((function(e){(!i||o[e]>a)&&(i=e,a=o[e])})),r[i]};const Za={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,n,o){var r=n.getCardinality();return o&&"group"===n.getType()||(null!=r?r.min>0?t.mandatory+=1:r.pref>0?t.recommended+=1:t.optional+=1:t.optional+=1),"group"===n.getType()&&n.getChildren().forEach((function(n){return e(t,n)})),t}({mandatory:0,recommended:0,optional:0},e,!0);return t.itemCount=t.mandatory+t.recommended+t.optional,t},findFirstValueBinding:function e(t,n){if(t instanceof Wi)return t;for(var o=t.getItemGroupedChildBindings(),r=sr().locale(),i=0;i<o.length;i++){var a=o[i],s=t.getItem().getChildren()[i];if(0!==a.length){if(!(s instanceof Ti))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===r?l.perfectLocaleLanguageValue=a[c]:d.substring(0,1)===r.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(n){var u=Wa(t,s,{});return u instanceof Wi?(u.setLanguage(r),u):e(u,!0)}}},create:Wa,constructTemplate:Ua,findPopularChoice:Qa,match:$a,fuzzyMatch:Va,matchPathBelowBinding:Ga,findBindingRelativeToParentBinding:qa,CODES:jr};var Xa=function(e,t){var n=t;return null==n?n={errors:[],warnings:[],deprecated:[]}:(n.errors=n.errors||[],n.warnings=n.warnings||[],n.deprecated=n.deprecated||[]),ts(e,n,!0)},Ka=function(e){for(var t=0,n=0;n<e.length;n++)e[n].isValid()&&(t+=1);return t},Ja=function(e,t){e.length>0&&e[0].getCardinalityTracker().setCode(t)},es=function(e,t){if(t.hasStyle("deprecated"))return!0;var n=t.getDeps();if(n){var o=qa(e,n);if(!Ga(o,n))return!0}return!1},ts=function e(t,n,o){if(t.getMatchingCode()===jr.OK){var r=t.getItem();if(!0===o||t.isValid()||null==r.getProperty()||r.hasStyle("atLeastOneChild")||r.hasStyle("exactlyOneChild")){var i=r.getChildren();if(r.hasStyle("disjoint")||r.hasStyle("atMostOneChild")||r.hasStyle("atLeastOneChild")||r.hasStyle("exactlyOneChild")){var a,s=t.getChildBindings(),l=Ka(s);l>1&&(r.hasStyle("disjoint")||r.hasStyle("atMostOneChild"))?a=jr.AT_MOST_ONE_CHILD:1!==l&&r.hasStyle("exactlyOneChild")?a=jr.EXACTLY_ONE_CHILD:0===l&&r.hasStyle("atLeastOneChild")&&(a=jr.AT_LEAST_ONE_CHILD),a&&(Ja([t],a),i.length>0&&n.errors.push({parentBinding:t,item:i[0],code:a}))}else t.getItemGroupedChildBindings().forEach((function(e,o){var r=i[o];if(!es(t,r)&&null!=r.getProperty()){var a=Ka(e),s=r.getCardinality();null!=s.min&&s.min>a?(n.errors.push({parentBinding:t,item:r,code:jr.TOO_FEW_VALUES_MIN}),Ja(e,jr.TOO_FEW_VALUES_MIN)):null!=s.pref&&s.pref>a&&n.warnings.push({parentBinding:t,item:r,code:jr.TOO_FEW_VALUES_PREF}),null!=s.max&&s.max<a&&(n.errors.push({parentBinding:t,item:r,code:jr.TOO_MANY_VALUES}),Ja(e,jr.TOO_MANY_VALUES))}}),void 0);t.getChildBindings().forEach((function(o){var r=o.getItem();o.getMatchingCode()!==jr.OK&&n.errors.push({parentBinding:o,item:r,code:o.getMatchingCode()}),r.hasStyle("deprecated")&&n.deprecated.push(o),es(t,r)||"group"===r.getType()&&e(o,n)}))}return n}},ns=function(e,t){return e.find(null,"rdf:type",t).map((function(e){return e.getSubject()}))},os=function(e,t,n){for(var o=e;;){var r=o.getChildrenRootUri?o.getChildrenRootUri():o.getParent().getChildrenRootUri();if(r===t)return!0;if(n[r])return!1;o=o.getParent()}},rs=function(e,t){var n=e,o=[];for(null!=t.getProperty()&&n.getItem()!==t&&o.push(j(t.getProperty()));null!=n.getItem().getProperty()&&o.push(j(n.getItem().getProperty())),null!=n.getParent();)n=n.getParent();return o.reverse(),o.join(" > ")},is=function(e){var t=e.errors,n=e.warnings,o=e.deprecated;e.errors=t.map((function(e){return{path:rs(e.parentBinding,e.item),code:e.code}})),e.warnings=n.map((function(e){return{path:rs(e.parentBinding,e.item),code:e.code}})),e.deprecated=o.map((function(e){return function(e){return"".concat(rs(e.getParent(),e.getItem())," > ").concat(e.getValue())}(e)}))},as=function(e,t,n,o){var r=Va(t,e,n),i=Xa(r);return function(e,t,n){var o=e.errors,r=e.warnings,i=e.deprecated;e.errors=o.filter((function(e){return os(e.parentBinding,t,n)})),e.warnings=r.filter((function(e){return os(e.parentBinding,t,n)})),e.deprecated=i.filter((function(e){return os(e,t,n)}))}(i,e,o||{}),is(i),i};const ss={graphReport:function(e,t){var n,o,r=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 n=ns(e,t);i[t]=n,n.forEach((function(e){a[e]=!0}))})),Object.keys(i).forEach((function(r){n=t[r],i[r].forEach((function(t){(o=as(t,e,n,a)).uri=t,o.type=r,o.template=n.getId(),s.resources.push(o),s.errors+=o.errors.length,s.warnings+=o.warnings.length,s.deprecated+=o.deprecated.length}))}));var l=[];return r.forEach((function(e){0===i[e].length&&l.push(e)})),l.length>0&&(s.mandatoryError=l,s.errors+=l.length),s},bindingReport:Xa};function ls(e){return(ls="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 cs(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ds(o.key),o)}}function ds(e){var t=function(e,t){if("object"!=ls(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ls(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ls(t)?t:String(t)}var us=0;function fs(e){return(fs="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 bs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ps(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ms(o.key),o)}}function ms(e){var t=function(e,t){if("object"!=fs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=fs(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fs(t)?t:String(t)}function hs(e,t,n){return t=ys(t),function(e,t){if(t&&("object"===fs(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,n||[],ys(e).constructor):t.apply(e,n))}function gs(){return(gs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=vs(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function vs(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ys(e)););return e}function ys(e){return(ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ws(e,t){return(ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var xs=function(e,t,n){if(0===n.length||t.hasStyle("invisible"))return!1;if(t.getProperty())return!e.filterItem(t);if("group"===t.getType()){var o=t.getChildren();return 0===o.length||!!n[0].getItemGroupedChildBindings().find((function(t,n){return xs(e,o[n],t)}))}return!0},ks=function(e){function t(){return bs(this,t),hs(this,t,arguments)}var n,o,r;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&&ws(e,t)}(t,e),n=t,(o=[{key:"_handleParams",value:function(e){this.showLanguage=!1!==e.showLanguage,this.filterTranslations=!1!==e.filterTranslations,this.defaultLanguage=e.defaultLanguage,this.styleCls=e.styleCls||"rdformsPresenter",gs(ys(t.prototype),"_handleParams",this).call(this,e)}},{key:"showNow",value:function(e,t){return xs(this,e,t)}},{key:"skipBinding",value:function(e){var t=e.getItem(),n="group"===t.getType();return!(!t.getProperty()&&n&&0===t.getChildren().length)&&n&&0===e.getChildBindings().length}},{key:"prepareBindings",value:function(e,t){return e.hasStyle("filterTranslations")||this.filterTranslations&&"LANGUAGE_LITERAL"===e.getNodetype()&&!e.hasStyle("viewAllTranslations")?Cr.filterTranslations(t,sr().locale(),this.defaultLanguage):t}},{key:"addLabel",value:function(e,t,n){n.hasStyle("noLabelInPresent")?Cr.domClassToggle(e,"rdformsInvisibleGroup",!0):Cr.renderPresenterLabel(e,t,n,this.context)}},{key:"addTable",value:function(e,t){return Cr.addPresenterTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){return Cr.fillPresenterTable(e,t,{view:this})}},{key:"preRenderView",value:function(){Cr.prePresenterViewRenderer(this.domNode,this.binding,{view:this,topLevel:this.topLevel})}},{key:"addComponent",value:function(e,t){Cr.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}}])&&ps(n.prototype,o),r&&ps(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewId=us,us+=1,this.parentView=t.parentView,this.srcNodeRef=n,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"===ls(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=Cr.createDomNode(n,this),Cr.domClassToggle(this.domNode,"rdforms",!0),Cr.domClassToggle(this.domNode,this.styleCls,!0),this.render()}var t,n,o;return t=e,(n=[{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(n){return t.namedGraphs[n]===e})):void 0}},{key:"destroy",value:function(){Cr.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),Xa(this.binding)):this.binding=$a(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(Cr.domText(this.domNode,""),null!=this.binding){var e=Cr.getMessages();if(this.messages=e,null!=this.binding){var t,n,o,r,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")?Cr.domClassToggle(this.domNode,"compact",!1):Cr.domClassToggle(this.domNode,"compact",!0),this.preRenderView(),t=0;t<s.length;t++)if(r=s[t],i=a[t],(!this.restrictToItem||this.restrictToItem===i)&&this.showNow(i,r)){if(r=this.prepareBindings(i,r),this.showAsTable(i))this.context={view:this},o=this.createRowNode(o,r[0],i),r.length>0&&(n=this.addTable(o,r[0],i),this.fillTable(n,r));else if(r.length>0)if(this.isMultiValued(i))this.context={view:this},o=this.addRow(o,r[0],!0);else{for(var l=this.truncateAt(i,r),c=0;c<r.length;c++)this.context={view:this},o=this.addRow(o,r[c],0===c||r[c]instanceof qr,c,l);if(-1!==l){var d=Cr.domQuery(".rdformsFields",o);d&&Cr.addTruncateControl(d,this.context)}}else this.context={view:this},o=this.createRowNode(o,null,i);r.length>0&&r[0].getCardinalityTracker().checkCardinality()}}}}},{key:"addRow",value:function(e,t,n,o,r){var i,a,s=n,l=t.getItem();if(!this.skipBinding(t)){if(null==s&&(s=t instanceof qr),!0===s){a=this.createRowNode(e,t,l);var c=Cr.domCreate("div",a);Cr.domClassToggle(c,"rdformsFields",!0),-1!==r&&Cr.domClassToggle(c,"rdformsTruncated",!0),l.hasStyle("inline")&&Cr.domClassToggle(c,"rdformsInline",!0),i=Cr.domCreate("div",c),this.createEndOfRowNode(a,t,l)}else{var d=Cr.domQuery(".rdformsFields",e);if(null!=d)i=Cr.domCreate("div",d),Cr.domClassToggle(i,"rdformsRepeatedValue",!0),-1!==r&&o>=r&&Cr.domClassToggle(i,"rdformsMaybeTruncated",!0);else{var u=Cr.domCreate("div",e);Cr.domClassToggle(u,"rdformsFields",!0),l.hasStyle("inline")&&Cr.domClassToggle(u,"rdformsInline",!0),i=Cr.domCreate("div",u),this.createEndOfRowNode(a,t,l)}}if(this.markOrigin){var f=this.getNamedGraphId(t);f?(Cr.domClassToggle(i,"rdformsOrigin",!0),Cr.domClassToggle(i,"rdformsOrigin_".concat(f),!0)):(Cr.domClassToggle(i,"rdformsOrigin",!0),Cr.domClassToggle(i,"rdformsOrigin_default",!0))}return"group"===l.getType()?Cr.domClassToggle(i,"rdformsGroup",!0):Cr.domClassToggle(i,"rdformsField",!0),this._binding2node[t.getHash()]=i,this.addComponent(i,t),l.hasStyle("invisible")&&Cr.domClassToggle(a||e,"rdformsInvisible",!0),a||e}}},{key:"createRowNode",value:function(e,t,n){var o;o=null==e?Cr.domCreate("div",this.domNode,t?this.getRowIndex(t):void 0):Cr.domCreateAfter("div",e,t?this.getRowIndex(t):void 0),n.getClasses().forEach((function(e){Cr.domClassToggle(o,e,!0)})),Cr.domClassToggle(o,"rdformsRow",!0),Cr.domClassToggle(o,"rdformsTopLevel",this.topLevel),Cr.domClassToggle(o,"rdformsInvisibleGroup",n.hasStyle("invisibleGroup")),Cr.domClassToggle(o,"rdformsHeading",n.hasStyle("heading")),Cr.domClassToggle(o,"notCompact","group"===n.getType()||n.hasStyle("nonCompact")),Cr.domClassToggle(o,"rdformsCompactItem",n.hasStyle("compact")),this.addLabel(o,t,n),t&&this.filterBinding(t)&&Cr.domClassToggle(o,"hiddenProperty",!0);var r=void 0!==this._subEditors;return(n.hasStyle("card")||n.hasStyle("cardInEdit")&&r||n.hasStyle("cardInPresent")&&!r)&&Cr.domClassToggle(o,"rdformsCard",!0),o}},{key:"createEndOfRowNode",value:function(e,t,n){}},{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,n=this._getFilterPredicates();return!!n&&function e(n,o){var r=n.getId();if(r&&Object.keys(o).includes(r))return!0;var i=n.getProperty();if(i){for(var a=!0,s=t;s.parentView;)s.getBinding().getItem().getProperty()&&(a=!1),s=s.parentView;var l=N(i);return a?!0===o[i]||!0===o[l]||!0===o["*".concat(i)]||!0===o["".concat(l)]:!0===o["*".concat(i)]||!0===o["*".concat(l)]}if("group"===n.getType()){var c=n.getChildren()||[],d=!1;return c.forEach((function(t){e(t,o)||(d=!0)})),!d}return!1}(e,n)}},{key:"filterProperty",value:function(e){return!0===(this._getFilterPredicates()||{})[e]}},{key:"getLabelIndex",value:function(e){var t,n=this;return e.getParent().getChildBindingsFor(e.getItem()).reverse().find((function(e){return void 0!==(t=n._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}}])&&cs(t.prototype,n),o&&cs(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}());function _s(e){return(_s="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 Cs(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ss(o.key),o)}}function Ss(e){var t=function(e,t){if("object"!=_s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=_s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_s(t)?t:String(t)}function Ts(e,t,n){return t=Ds(t),function(e,t){if(t&&("object"===_s(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,n||[],Ds(e).constructor):t.apply(e,n))}function As(){return(As="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Os(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Os(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ds(e)););return e}function Ds(e){return(Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Is(e,t){return(Is=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ns=function(e,t,n,o){if(t.hasStyle("presenterOnly"))return!1;if(t.hasStyle("deprecated")&&0===n.length)return!1;var r=t.getProperty();if(n.length>0){if(r)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(n[0].getItemGroupedChildBindings().find((function(t,n){return Ns(e,i[n],t,o)})))return!0;if(!r)return!1}var a=t.getCardinality();switch(o){case"mandatory":return a&&a.min>=1;case"recommended":return a&&(a.min>=1||a.pref>=1);default:return!0}},js=function(e){function t(){return Es(this,t),Ts(this,t,arguments)}var n,o,r;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&&Is(e,t)}(t,e),n=t,(o=[{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,As(Ds(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,n=e||Xa(this.binding);Object.keys(this._binding2node).forEach((function(e){Cr.domClassToggle(t._binding2node[e],"errorReport",!1)}));for(var o=function(){var e=n.errors[r];if(e.parentBinding===t.binding)if(e.code===jr.TOO_FEW_VALUES_MIN){var o=e.item,i=o.getCardinality().min;t.binding.getChildBindingsFor(o).find((function(e){return i-=1,e.isValid()||Cr.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0),0===i}))}else e.code===jr.AT_MOST_ONE_CHILD&&t.binding.getChildBindings().forEach((function(e){e.getMatchingCode()!==jr.OK&&Cr.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0)}))},r=0;r<n.errors.length;r++)o();for(var i=0;i<this._subEditors.length;i++)this._subEditors[i].report(n)}},{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=$a(this.graph,this.resource,this.template),this._subEditors=[],this.render()))}},{key:"show",value:function(e){this._subEditors=[],As(Ds(t.prototype),"show",this).call(this,e)}},{key:"showNow",value:function(e,t){return Ns(this,e,t,this.includeLevel)}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var n,o=t,r=e.getCardinality();if(n=r.pref>0?r.pref:r.min>0?r.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 o;if(n>o.length)for(o=o.concat([]);n>o.length;)o.push(Wa(this.binding,e));return o}},{key:"addLabel",value:function(e,t,n){Cr.renderEditorLabel(e,t,n,this.context)}},{key:"createEndOfRowNode",value:function(e,t,n){Cr.renderEditorLabelScopeEnd(e,t,n,this.context)}},{key:"addTable",value:function(e,t){return t.getItem().hasStyle("nonEditable")?this.addComponent(e,t):Cr.addEditorTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){Cr.fillEditorTable(e,t,{view:this})}},{key:"preRenderView",value:function(){Cr.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")?Cr.renderPresenter(e,t,this.context):Cr.renderEditor(e,t,this.context)}},{key:"createRowNode",value:function(e,n,o){if(null!=n||!o.hasStyle("nonEditable")){var r=As(Ds(t.prototype),"createRowNode",this).call(this,e,n,o);if("choice"===o.getType()&&void 0===o.getProperty()){var i=Qa(o,n.getParent());i&&n.setChoice(i)}var a=o.getDeps();if(a){var s=function(e){e?(Cr.domClassToggle(r,"missingDepsWithValue",!1),Cr.domClassToggle(r,"missingDeps",!1)):n.isValid()?Cr.domClassToggle(r,"missingDepsWithValue",!0):Cr.domClassToggle(r,"missingDeps",!0),n.getCardinalityTracker().setDepsOk(e)},l=qa(n.getParent(),a);Ga(l,a)||s(!1),l.addListener((function e(){n.getParent()?s(Ga(l,a)):l.removeListener(e)}))}return this.filterBinding(n)&&Cr.domClassToggle(r,"hiddenProperty",!0),o.hasStyle("deprecated")&&Cr.domClassToggle(r,"rdformsDeprecated",!0),r}}},{key:"isMultiValued",value:function(e){return Cr.multiValueSupport&&(e.hasStyle("horizontalCheckBoxes")||e.hasStyle("verticalCheckBoxes"))}},{key:"truncateAt",value:function(e,t){return-1}}])&&Cs(n.prototype,o),r&&Cs(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ks);Cr.renderPresenterLabel=function(e,t,n,o,r){var i=o.view instanceof js&&n.getEditLabel()||n.getLabel();i=null!=i&&""!==i?i.charAt(0).toUpperCase()+i.slice(1):"";var a=n.hasStyle("heading")?Tr()('<h2 class="rdformsLabel" tabindex="0">').text(i).appendTo(e):Tr()('<div class="rdformsLabel" tabindex="0">').text(i).appendTo(e);t&&a.attr("id",o.view.createLabelIndex(t)),r&&a.addClass("rdformsLabelRow"),o&&(o.labelNode=a[0]);var s=o.view;if(n.hasStyle("showDescriptionInPresent")||s.showDescription){var l=n.hasStyle("compact")||s.compact&&!n.hasStyle("nonCompact")&&(s.topLevel&&"group"!==n.getType()||s.parentView&&s.parentView.topLevel&&s.binding.getItem().hasStyle("heading")),c=n.getDescription();!l&&c&&Tr()('<div class="rdformsDescription" tabindex="0">').text(c).appendTo(e)}Cr.attachItemInfo(n,a[0],o)},Cr.attachItemInfo=function(e,t){if(null!=e&&null!=e.getDescription()){var n=e.getDescription();t.setAttribute("title",n)}};const Ms=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&","<":"<",">":">",'"':""","'":"'"});const Ls=function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r};const Ps=function(e){return"symbol"==typeof e||yn(e)&&"[object Symbol]"==Et(e)};var Rs=mt?mt.prototype:void 0,zs=Rs?Rs.toString:void 0;const Fs=function e(t){if("string"==typeof t)return t;if(Cn(t))return Ls(t,e)+"";if(Ps(t))return zs?zs.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const Bs=function(e){return null==e?"":Fs(e)};var $s=/[&<>"']/g,Vs=RegExp($s.source);const Us=function(e){return(e=Bs(e))&&Vs.test(e)?e.replace($s,Ms):e};var Hs=function(e){var t,n=function(e){return e&&e.length>1?parseInt(e[0],10):0},o=n(e.match(/([0-9])*Y/)),r=n(e.match(/([0-9])*D/)),i=n(e.match(/([0-9])*H/)),a=0;if(-1===e.indexOf("T"))t=n(e.match(/([0-9])*M/));else{var s=e.split("T");t=n(s[0].match(/([0-9])*M/)),a=n(s[1].match(/([0-9])*M/))}return{years:o,months:t,days:r,hours:i,minutes:a}},Ys=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}},Ws=function(e){var t=e.getValue();if(null!=t&&""!==t){var n=e.getItem(),o=function(e){try{if(e.includes(":")&&!e.includes("T")){var t=(new Date).toISOString().substr(0,11),n=new Date("".concat(t).concat(e));return n.setMinutes(n.getMinutes()+n.getTimezoneOffset()),n}return new Date(e)}catch(e){return null}}(t);if(o){var r=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=Ys(e.getDatatype()),a=function(e){var t=e.getDatatype();return Array.isArray(t)?Ys(t[0]):Ys(t)}(n),s=function(e){var t={},n=e.getDatatype();return(Array.isArray(n)?n:[n]).forEach((function(e){var n=Ys(e);n&&(t[n]=!0)})),t}(n);return function(e,t){switch(e){case"DateTime":return sr()(t).format("lll");case"Date":return sr()(t).format("LL");case"Time":return sr()(t).format("LT");case"Year":return sr()(t).format("YYYY");case"YearMonth":return sr()(t).format("MMMM YYYY");case"MonthDay":return sr()(t).format("D MMMM");default:return""}}(s[i]?i:s[r]?r:a,o)}}},Gs=function(e,t){var n,o=null===(n=e.getStatement()||e.getParent().getStatement())||void 0===n?void 0:n.getNamedGraph();if(o){for(var r=t.view;r.getParentView();)r=r.getParentView();return r.getNamedGraphId(o)}},qs=n(9755),Qs=Cr.presenterRegistry;Qs.itemtype("text").nodetype("URI").register((function(e,t){var n=dr.getLocalizedMap(t),o=qs('<a class="rdformsUrl">').attr("title",t.getValue()).attr("href",t.getValue()).appendTo(e);t.getItem().hasStyle("showValue")?o.text(t.getValue()):n?o.text(dr.getLocalizedValue(n).value):o.text(t.getGist()),t.getItem().hasStyle("externalLink")?fr.attachExternalLinkBehaviour(o[0],t):fr.attachLinkBehaviour(o[0],t)})),Qs.itemtype("group").nodetype("URI").style("linkWithLabel").register((function(e,t,n){var o,r=t.getValue(),i=t.getItem().getChildren().find((function(e){return e.hasStyle("label")})),a=i?Cr.filterTranslations(t.getChildBindingsFor(i),sr().locale(),n.view.defaultLanguage):[],s=t.getItem().getChildren().find((function(e){return e.hasStyle("tooltip")})),l=s?Cr.filterTranslations(t.getChildBindingsFor(s),sr().locale(),n.view.defaultLanguage):[],c=l.length>0?l[0].getValue():r,d=qs('<a class="rdformsUrl">').attr("title",c).attr("href",r).appendTo(e);if(a.length>0)o=a[0].getValue();else{var u=dr.getLocalizedMap(t);o=t.getItem().hasStyle("showValue")?r:u?dr.getLocalizedValue(u).value||r:t.getGist()}d.text(o),t.getItem().hasStyle("externalLink")?fr.attachExternalLinkBehaviour(d[0],t):fr.attachLinkBehaviour(d[0],t)})),Qs.itemtype("text").nodetype("URI").style("image").register((function(e,t){qs('<img class="rdformsImage">').attr("src",t.getGist()).appendTo(e)})),Qs.itemtype("text").register((function(e,t,n){var o=t.getLanguage();n.view.showLanguage&&o&&qs('<div class="rdformsLanguage">').text(o).appendTo(e);var r=Us(t.getItem().hasStyle("showValue")?t.getValue():t.getGist()).replace(/(\r\n|\r|\n)/g,"\n"),i=t.getParent();if(t.getItem().hasStyle("label")&&!0!==n.view.topLevel&&null!=i&&i.getItem().getChildren()[0]===t.getItem()&&null!=i.getStatement()&&"uri"===i.getStatement().getType()){var a=qs('<a class="rdformsUrl">').attr("href",i.getStatement().getValue()).html(r).appendTo(e);o&&a.attr("lang",o),fr.attachLinkBehaviour(a[0],i)}else{var s=qs("<div>").html(r).appendTo(e);o&&s.attr("lang",o)}t.getItem().hasStyle("multiline")?qs(e).toggleClass("rdformsMultiline",!0):qs(e).toggleClass("rdformsSingleline",!0)})),Qs.itemtype("text").datatype("xsd:duration").register((function(e,t,n){var o=Hs(t.getValue()),r=n.view.messages,i=qs("<div>").appendTo(e)[0];["years","months","days","hours","minutes"].forEach((function(e){o.hasOwnProperty(e)&&0!==o[e]&&qs('<span class="durationLabel">'.concat(r["duration_".concat(e)],':</span><span class="durationValue">').concat(o[e],"</span>")).appendTo(i)}))}));var Zs=function(e,t){try{var n=Ws(t);qs("<div>").html(n).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."))}};Qs.itemtype("text").datatype("xsd:dateTime").register(Zs),Qs.itemtype("text").datatype("xsd:date").register(Zs),Qs.itemtype("text").datatype("xsd:time").register(Zs),Qs.itemtype("text").datatype("xsd:gYear").register(Zs),Qs.itemtype("text").datatype("xsd:gYearMonth").register(Zs),Qs.itemtype("text").datatype("xsd:gMonthDay").register(Zs),Qs.itemtype("text").datatype("dcterms:W3CDTF").register(Zs);var Xs=n(9755),Ks=Cr.presenterRegistry,Js=function(e){return function(t,n){var o,r=n.getChoice();r&&(r.description&&(o=dr.getLocalizedValue(r.description).value),e(t,n,r,o))}};Ks.itemtype("choice").style("image").register(Js((function(e,t,n,o){Xs('<img class="rdformsImage">').attr("src",n.value).attr("title",o||n.value).appendTo(e)}))),Ks.itemtype("choice").style("stars").register(Js((function(e,t,n){isNaN(parseInt(n.value,10))||Xs('<span class="rdformsStar">').appendTo(e)}))),Ks.itemtype("choice").register(Js((function(e,t,n,o){var r,i=t.getItem(),a=dr.getLocalizedValue(n.label);i.hasStaticChoices()&&!i.hasStyle("externalLink")||i.hasStyle("noLink")?r=Xs("<div>").attr("title",o||n.seeAlso||n.value).text(dr.getLocalizedValue(n.label).value).appendTo(e):(r=Xs('<a class="rdformsUrl">').attr("href",n.seeAlso||n.value).attr("title",o||n.seeAlso||n.value).text(a.value).appendTo(e),i.hasStyle("externalLink")?fr.attachExternalLinkBehaviour(r[0],t):fr.attachLinkBehaviour(r[0],t)),null!=n.load&&n.load((function(){var e=dr.getLocalizedValue(n.label);r.text(e.value),e.lang?r.attr("lang",e.lang):r.attr("lang",void 0)})),a.lang&&r.attr("lang",a.lang)}))),Cr.addPresenterTable=function(e,t,n){var o=t.getItem(),r=o.getChildren(),i=Tr()("<table>").addClass("rdformsGroup").appendTo(e);Tr()("<thead>").appendTo(i);for(var a=Tr()("<tr>").appendTo(i),s=0;s<r.length;s++){var l=Tr()("<th>").appendTo(a);Cr.attachItemInfo(o,Tr()("<span>").text(r[s].getLabel()).appendTo(l),n)}return i[0]},Cr.fillPresenterTable=function(e,t,n){if(0!==t.length){var o,r,i,a,s=n.view.topLevel;for(n.view.topLevel=!1,o=0;o<t.length;o++)for(i=t[o].getItemGroupedChildBindings(),a=Tr()("<tr>").appendTo(e),r=0;r<i.length;r++)i[r].length>0?Cr.renderPresenter(Tr()("<td>").appendTo(a),i[r][0],{view:n.view,noCardinalityButtons:!0}):Tr()("<td>").appendTo(a);n.view.topLevel=s}};var el=function(e,t){var n=document.createElement(e);return t&&(n.id=t),n};Cr.domQuery=function(e,t){return t.querySelector(e)},Cr.domCreate=function(e,t,n){return t.appendChild(el(e,n))},Cr.domCreateAfter=function(e,t,n){return t.parentNode.insertBefore(el(e,n),t.nextSibling)},Cr.domSetAttr=function(e,t,n){""===n||null===n?e.removeAttribute(t):e.setAttribute(t,n)},Cr.domText=function(e,t){e.innerText=t},Cr.domClassToggle=function(e,t,n){t.split(" ").forEach((function(t){n?e.classList.add(t):e.classList.remove(t)}))},Cr.prePresenterViewRenderer=Cr.preEditorViewRenderer,Cr.addTruncateControl=function(e,t){var n=t.view.messages,o=Cr.domCreate("button",e);Cr.domClassToggle(o,"rdformsShowMore",!0),o.innerText=n.showMore,o.onclick=function(){Cr.domClassToggle(e,"rdformsTruncated",!1)};var r=Cr.domCreate("button",e);Cr.domClassToggle(r,"rdformsShowLess",!0),r.innerText=n.showLess,r.onclick=function(){Cr.domClassToggle(e,"rdformsTruncated",!0)}};var tl=Cr.presenterRegistry,nl=Cr.editorRegistry,ol=function(e){return function t(n,o,r){var i=o.getValue();r.inEditor&&(null!=i&&""!==i||o.setGist(dr.generateUUID(),!0)),e.getComponentBefore(o.getItem(),t)(n,o,r)}};tl.itemtype("text").style("autoUUID").register(ol(tl)),nl.itemtype("text").style("autoUUID").register(ol(nl));var rl=function(e){return function t(n,o,r){var i=o.getValue(),a=o.getItem();r.inEditor&&(null==i||""===i?(a.hasStyle("autoInitDate")||a.hasStyle("autoUpdateDate"))&&o.setValue((new Date).toISOString(),!0):a.hasStyle("autoUpdateDate")&&o.setValue((new Date).toISOString(),!0)),e.getComponentBefore(o.getItem(),t)(n,o,r)}},il=rl(tl);tl.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(il),tl.itemtype("text").datatype("xsd:date").style("autoInitDate").register(il),tl.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(il),tl.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(il);var al=rl(nl);nl.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(al),nl.itemtype("text").datatype("xsd:date").style("autoInitDate").register(al),nl.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(al),nl.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(al);var sl=function(e){return function t(n,o,r){if(r.inEditor){var i=o.getValue(),a=o.getItem().getDeps();if((null==i||""===i)&&a){var s=Za.findBindingRelativeToParentBinding(o.getParent(),a),l=function(e){var t=Za.matchPathBelowBinding(s,a),n=o.getGist(),r=t?t.getValue():"";n!=r&&o.setGist(r,e)};l(!0),s.addListener((function(e){e!=o&&l()}))}}e.getComponentBefore(o.getItem(),t)(n,o,r)}};tl.itemtype("text").style("autoValue").register(sl(tl)),nl.itemtype("text").style("autoValue").register(sl(nl)),Cr.renderEditorLabel=function(e,t,n,o){if(n.hasStyle("nonEditable")||n.hasStyle("heading"))return Cr.renderPresenterLabel(e,t,n,o,!0);var r=n.getEditLabel()||n.getLabel();r=null!=r&&""!==r?r.charAt(0).toUpperCase()+r.slice(1):"";var i=Tr()('<div class="rdformsLabelRow">').appendTo(e);t&&i.attr("id",o.view.createLabelIndex(t)),o.labelNode=i[0];var a=Tr()('<span class="rdformsLabel" tabindex="0">').text(r).appendTo(i),s=n.getCardinality(),l=o.view.messages;n.getProperty()&&(s.min>0?Tr()('<span class="rdformsMark rdformsMandatoryMark">').text(l.mandatoryMark).appendTo(i):s.pref>0?Tr()('<span class="rdformsMark rdformsRecommendedMark">').text(l.recommendedMark).appendTo(i):Tr()('<span class="rdformsMark rdformsOptionalMark">').text(l.optionalMark).appendTo(i)),null==t?Cr.addExpandButton(e,i[0],n,o):o.view.showAsTable(n)||null!==s.max&&s.max===s.min||("group"===n.getType()?n.getProperty()&&Cr.addGroupButtons(e,i[0],t,o):Cr.addCreateChildButton(e,i[0],t,o));var c=o.view;if(n.hasStyle("showDescriptionInEdit")||c.showDescription){var d=n.hasStyle("compact")||c.compact&&!n.hasStyle("nonCompact")&&(c.topLevel&&"group"!==n.getType()||c.parentView&&c.parentView.topLevel&&c.binding.getItem().hasStyle("heading")),u=o.view instanceof js&&n.getEditDescription()||n.getDescription();!d&&u&&Tr()('<div class="rdformsDescription" tabindex="0">').text(u).appendTo(e)}Cr.attachItemInfo(n,a[0],o)},Cr.attachItemInfo=function(e,t,n){if(null==e||null==e.getProperty()&&null==e.getDescription()&&null==e.getEditDescription())Tr()(t).addClass("noPointer");else{var o=n.view instanceof js&&e.getEditDescription()||e.getDescription()||"",r="";e.getProperty()&&(r='<div class="property"><a target="_blank" href="'.concat(e.getProperty(),'">').concat(e.getProperty(),"</a></div>"));var i=n.view instanceof js&&e.getEditLabel()||e.getLabel();i=null!=i&&""!==i?i.charAt(0).toUpperCase()+i.slice(1):"";var a={html:!0,container:Cr.getPopoverContainer(),placement:"auto",trigger:"focus",title:i,content:'<div class="description">'.concat(o.replace(/(\r\n|\r|\n)/g,"<br/>"),"</div>").concat(r)};Tr()(t).popover(a).attr("data-toggle","popover")}};n(1552);var ll=n(9755),cl=0;var dl=n(9755),ul=Cr.editorRegistry;ul.itemtype("text").datatype("xsd:duration").register((function(e,t,n){var o=n.view.messages,r=Hs(t.getValue()),i=ll("<div>").addClass("rdformsDuration rdformsFieldInput").appendTo(e),a=Gs(t,n)?"disabled":"",s=function(){i.empty(),["years","months","days","hours","minutes"].forEach((function(e){var n=ll("<div>").appendTo(i),s=ll("<div>").addClass("input-group").appendTo(n),l="duration_".concat(cl);cl+=1,ll("<span>").addClass("input-group-addon").attr("id",l).text(o["duration_".concat(e)]).appendTo(s);var c=ll("<input ".concat(a,">")).addClass("form-control").attr("type","number").attr("aria-describedby",l).appendTo(s);r[e]&&c.val(r[e]),c.change((function(){r[e]=ll(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}(r))}))}))};s(),n.clear=function(){r={},s()}}));var fl=function(e,t,n,o,r){var i=null,a=function(){i=null;var a=e.val().trim(),s=!0;""===a||!n||n.test(a)?(t.setGist(a),o&&a&&(o.prop("href",t.getValue()),s=!1),r&&r.toggleClass("rdformsHelpActive",!1)):r&&r.toggleClass("rdformsHelpActive",!0),o&&o.toggleClass("rdformsExtLinkDisabled",s),e.toggleClass("rdformsEmpty",""===a)};e.on("keyup paste",(function(){null!=i&&clearTimeout(i),i=setTimeout(a,200)}))},bl=function(e,t){var n=new RegExp(e);ul.itemtype("text").datatype(t).register((function(t,o,r){var i=dl('<input type="text" class="form-control rdformsFieldInput"\n placeholder="'.concat(o.getItem().getPlaceholder()||"",'">'));i.val(o.getGist()).attr("pattern",e).appendTo(t);var a,s=o.getItem().getHelp();if(s&&(a=dl('<span class="rdformsHelp">'.concat(s,"</span>"))).appendTo(t),o.getItem().hasStyle("externalLink")){var l=dl('<a class="fas fa-external-link-alt rdformsExtLink '.concat(Cr.getExtLinkClass(),'" target="_blank">'));l.appendTo(r.controlDiv),dl(t).addClass("rdformsExtLinkControl"),fl(i,o,n,l,a),i.keyup()}else fl(i,o,n,void 0,a);o.getItem().isEnabled()||i.prop("disabled",!0)}))};bl("^-?\\d+$","xsd:integer"),bl("^(\\d+(\\.\\d+)?)$","xsd:decimal"),ul.itemtype("text").register((function(e,t,n){var o,r=t.getItem(),i=Gs(t,n)?"disabled":"";if(r.hasStyle("multiline")){var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:70,n=e.split("\n").length;return n+=Number.parseInt(e.length/t,10)}(t.getGist());(o=dl("<textarea ".concat(i,' class="form-control rdformsFieldInput autoExpand" placeholder="').concat(r.getPlaceholder()||"",'" rows="').concat(a,'">'))).on("input focus",(function(){if(void 0===this.baseScrollHeight){var e=o.height();this.baseScrollHeight=o.innerHeight()-e,this.baseLineHeight=e/a}this.rows=1;var t=1+Math.ceil((this.scrollHeight-this.baseScrollHeight)/this.baseLineHeight);this.rows=t}))}else o=r.hasStyle("email")?dl("<input ".concat(i,' type="email" class="form-control rdformsFieldInput" placeholder="').concat(r.getPlaceholder()||"",'">')):dl("<input ".concat(i,' type="text" class="form-control rdformsFieldInput" placeholder="').concat(r.getPlaceholder()||"",'">'));o.val(t.getGist()).appendTo(e);var s,l=r.getHelp();l&&(s=dl('<span class="rdformsHelp">'.concat(l,"</span>"))).appendTo(e);var c=r.getPattern(),d=null;if(null!=c&&(o.attr("pattern",c),d=new RegExp(c)),r.hasStyle("externalLink")){var u=dl('<a class="fas fa-external-link-alt rdformsExtLink '.concat(Cr.getExtLinkClass(),'" target="_blank">'));u.appendTo(n.controlDiv),dl(e).addClass("rdformsExtLinkControl"),fl(o,t,d,u,s),o.keyup()}else fl(o,t,d,void 0,s);var f=r.getNodetype();if("LANGUAGE_LITERAL"===f||"PLAIN_LITERAL"===f){dl(e).addClass("rdformsLangcontrolledfield"),dl(n.controlDiv).addClass("rdformsLangFieldControl");var b=dl("<select ".concat(i,' class="form-control rdformsLanguage">')).appendTo(n.controlDiv),p=Cr.getPrimaryLanguageList(),m=Cr.getNonPrimaryLanguageList();if(m=dr.cloneArrayWithLabels(m),0===p.length||((p=dr.cloneArrayWithLabels(p,!0)).forEach((function(e){dl("<option>").html(e.label).val(e.value).appendTo(b)})),dl("<option>").html("─────").attr("disabled","disabled").appendTo(b)),m.forEach((function(e){dl("<option>").html(e.label).val(e.value).appendTo(b)})),t.isValid())b.val(t.getLanguage());else{var h=sr().locale();"string"==typeof h&&""!==h&&(b.val(h),t.setLanguage(h))}b.val(t.getLanguage()).change((function(){t.setLanguage(b.val())})),n.clear=function(){b.val(""),o.val("")}}else n.clear=function(){o.val("")}}));var pl=n(9755);function ml(e){return(ml="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 hl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,gl(o.key),o)}}function gl(e){var t=function(e,t){if("object"!=ml(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ml(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ml(t)?t:String(t)}var vl=0,yl=function(){function e(t,n){var o=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:o.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=n,this.buildRendering()}var t,n,o;return t=e,(n=[{key:"clear",value:function(){pl(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(),n=function(){var n,r=e.choices[o],i=pl('<div class="radio form-check">').appendTo(e.domNode);n=e.item.hasStyle("verticalRadioButtons")?pl("<label>").appendTo(i):pl('<label class="form-check-label">').appendTo(i),r.description&&n.attr("title",e.item._getLocalizedValue(r.editdescription||r.description).value||r.seeAlso||r.value);var a=Gs(e.binding,e.context)?"disabled":"",s=pl("<input ".concat(a,' type="radio">')).val(r.value).attr("checked",r.value===t).attr("name","rdformsRadio_".concat(vl)).appendTo(n);n.append(e.item._getLocalizedValue(r.editlabel||r.label).value),r.mismatch?(n.addClass("mismatch disabled"),s.attr("disabled",!0)):n.click((function(){e.binding.setValue(s.val())}))},o=0;o<this.choices.length;o++)n();vl+=1}}])&&hl(t.prototype,n),o&&hl(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),wl=n(9755),xl=Cr.editorRegistry;xl.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,n){new yl({binding:t,context:n},e)})),xl.itemtype("choice").choices().register((function(e,t,n){var o=t.getItem(),r=o.getChoices().map((function(e){return{id:e.value,text:o._getLocalizedValue(e.editlabel||e.label).value,choice:e}}));o.hasStyle("preserveOrderOfChoices")||r.sort((function(e,t){return e.text<t.text?-1:1})),n.choices=r,Cr.renderSelect(e,t,n);var i=n.setValue,a=t.getChoice();a&&(null!=a.load?a.load((function(){i(a)})):i(a))})),xl.itemtype("choice").choices("none").register((function(e,t,n){n.chooser=Cr.chooserRegistry.getComponent(t.getItem()),n.choices=void 0;var o=Gs(t,n)?"disabled":"",r=function(){Cr.renderSelect(e,t,n);var r=n.setValue,i=wl("<button ".concat(o,' class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm browseChoices" type="button">')).attr("title",n.view.messages.edit_browse).appendTo(e);if(n.chooser&&n.chooser.supportsInlineCreate&&n.chooser.supportsInlineCreate(t)){var a=wl('<span class="fa-stack">').appendTo(i);wl('<span class="fas fa-search fa-stack-1x" aria-hidden="true">').appendTo(a),wl('<span class="fas fa-plus fa-stack-1x" aria-hidden="true">').appendTo(a)}else wl('<span class="fas fa-search" aria-hidden="true">').appendTo(i);var s=function(e){e?(t.setChoice(e),null!=e.load?e.load((function(){r(e)})):r(e)):t.setChoice(null)};n.chooser&&"function"==typeof n.chooser.show?i.click((function(){Cr.openChoiceSelector(t,s)})):i.addClass("disabled"),fr.hasDnDSupport(t)&&fr.addDnD(t,cNode,s)},i=t.getChoice();if(i)if(null!=i.load){var a=wl('<div class="form-group rdforms-upgrade">').appendTo(e);wl('<input type="text" disabled class="form-control rdformsFieldInput">').val(i.value).appendTo(a),i.load((function(){if(i.upgrade){var e=wl("<button ".concat(o,' class="btn btn-default bmd-btn-fab bmd-btn-fab-sm')+' browseChoices" type="button">').attr("title",n.view.messages.edit_upgrade).click((function(){i.upgrade(t,(function(o){a.remove(),e.remove(),r(),n.setValue(o),t.setChoice(o)}))})).insertAfter(a);wl('<span class="fas fa-magic" aria-hidden="true">').appendTo(e)}else a.remove(),r(),n.setValue(i)}))}else r(),n.setValue(i);else r()}));var kl=n(9755);Cr.addRemoveButton=function(e,t,n){var o=Gs(t,n)?"disabled":"",r=kl("<button ".concat(o,' class="fas fa-times action rdformsActionButton">')).attr("title",n.view.messages.edit_remove).appendTo(n.controlDiv),i=t.getCardinalityTracker(),a=i.addListener((function(){}));r.click((function(){if(!i.isMin()||!i.isDepsOk()||1===i.getCardinality())if(1===i.getCardinality()){"choice"===t.getItem().getType()?t.setChoice(null):t.setValue("");var o=t.getItem().getNodetype();"LANGUAGE_LITERAL"!==o&&"PLAIN_LITERAL"!==o||t.setLanguage(""),n.clear?n.clear():kl(e).find("input").val("")}else i.removeListener(a),r.unbind("click"),t.remove(),kl(e).remove()}))},Cr.addExpandButton=function(e,t,n,o){var r=kl('<button class="fas fa-plus action rdformsActionButton">').attr("title",o.view.messages.edit_expand).appendTo(t).click((function(){var i=Wa(o.view.binding,n);if(o.view.showAsTable(n)){var a=o.view.addTable(e,i,n);o.view.fillTable(a,[i])}else o.view.addRow(e,i,!1),Cr.addGroupButtons(e,t,i,o);r.unbind("click").remove()}))},Cr.addGroupButtons=function(e,t,n,o){var r,i=n.getParent(),a=n.getItem(),s=n.getCardinalityTracker(),l=a.getCardinality();1!==l.max&&(r=kl('<button class="action fas fa-plus rdformsActionButton">').attr("title",o.view.messages.edit_add).appendTo(t)).click((function(){if(!s.isMax()){var t=Wa(i,a);o.view.addRow(e,t)}}));var c=Gs(n,o)?"disabled":"",d=kl("<button ".concat(c,' class="action fas fa-times rdformsActionButton">')).attr("title",o.view.messages.edit_remove).appendTo(t);1===l.max&&d.addClass("indentRemove");var u=s.addListener((function(){r&&r.toggleClass("disabled",s.isMax()),d.toggleClass("disabled",s.isMin()&&s.isDepsOk())}));d.click((function(){if(!s.isMin()||!s.isDepsOk())if(o.clear&&o.clear(),1===s.getCardinality()){if(s.removeListener(u),r&&r.unbind("click"),d.unbind("click"),n.remove(),o.view.showNow(a,[])){var t=o.view.prepareBindings(a,[]);t.length>0&&o.view.addRow(e,t[0])}kl(e).remove()}else s.removeListener(u),r&&r.unbind("click"),d.unbind("click"),n.remove(),kl(e).remove()}))},Cr.addCreateChildButton=function(e,t,n,o){var r=n.getParent(),i=n.getItem(),a=n.getCardinalityTracker(),s=kl('<button class="action fas fa-plus rdformsActionButton">').attr("title",o.view.messages.edit_add).appendTo(t).click((function(){if(!a.isMax()){var t=Wa(r,i);o.view.addRow(e,t)}}));a.addListener((function(){s.toggleClass("disabled",a.isMax())}))};var _l=function e(t,n,o){var r=n.getItem().getChildren(),i=n.getItemGroupedChildBindings(),a=Tr()("<tr>").appendTo(t);if(i.forEach((function(e,t){0!==e.length||r[t].hasStyle("nonEditable")||Wa(n,r[t])})),i.forEach((function(e){e.length>0&&Cr.renderEditor(Tr()("<td>").appendTo(a)[0],e[0],{view:o.view,noCardinalityButtons:!0})})),!n.getItem().hasStyle("firstcolumnfixedtable")){var s=Tr()("<td>").addClass("rdformsTableControl").appendTo(a),l=Tr()("<span>").addClass("action editDelete").attr("title",o.view.messages.edit_remove).appendTo(s),c=n.getCardinalityTracker(),d=c.addListener((function(){l.toggleClass("disabled",c.isMin())}));l.click((function(){if(!c.isMin()){if(1===c.getCardinality()){var r=n.getParent(),i=n.getItem(),s=Wa(r,i);e(t,s,o)}c.removeListener(d),removeConnect.remove(),n.remove(),a.remove()}}))}};Cr.addEditorTable=function(e,t,n){var o=t.getItem(),r=o.getChildren(),i=Tr()("<table>").appendTo(e);Tr()(i).addClass("rdformsGroup");var a=Tr()("<thead>").appendTo(i),s=Tr()("<tbody>").appendTo(i),l=Tr()("<tr>").appendTo(a);for(colInd=0;colInd<r.length;colInd++){var c=Tr()("<th>").appendTo(l);Tr()(c).addClass("rdformsColumnHeader".concat(colInd));var d=r[colInd],u=n.view instanceof js&&d.getEditLabel()||d.getLabel();Cr.attachItemInfo(o,Tr()("<span>").text(u).appendTo(c)[0],n)}if(!t.getItem().hasStyle("firstcolumnfixedtable")){var f=Tr()("<th>").addClass("rdformsTableControl").appendTo(l),b=t.getParent(),p=t.getCardinalityTracker(),m=Tr()("<span>").addClass("action editAdd").attr("title",n.view.messages.edit_add).appendTo(f).click((function(){if(!p.isMax()){var e=Wa(b,o);_l(s[0],e,n)}}));p.addListener((function(){m.toggleClass("disabled",p.isMax())}))}return s},Cr.fillEditorTable=function(e,t,n){var o=t;if(0!==o.length){var r=o[0].getItem();if(r.hasStyle("nonEditable"))return Cr.renderEditor(e,o,n);r.hasStyle("firstcolumnfixedtable")&&(o=function(e){var t=[],n=e[0].getItem(),o=n.getChildren()[0],r=o.getChoices();(r=dr.cloneArrayWithLabels(r)).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 n=t[0][0];i[n.getValue()]=e}}));var a=e[0].getParent();return(r||[]).forEach((function(e){if(null!=i[e.value])t.push(i[e.value]);else{var r=Wa(a,n),s=Wa(r,o);s.setExcludeFromTreeValidityCheck(!0),s.setAncestorValid(!1),s.setChoice(e),t.push(r)}})),t}(o)),o.forEach((function(t){_l(e,t,n)}))}},Cr.preEditorRenderer=function(e,t,n){n.$controlDiv=Tr()('<div class="rdformsFieldControl">'),n.controlDiv=n.$controlDiv[0],"group"!==t.getItem().getType()&&!0!==n.noCardinalityButtons&&Cr.addRemoveButton(e,t,n)},Cr.preEditorViewRenderer=function(e,t,n){var o,r=t.getItem();if(!n.hideAddress&&(r.hasStyle("showURI")?o=Tr()('<div class="rdformsField rdformsGroupURI">').text(t.getValue()):r.hasStyle("showLink")&&(o=Tr()('<a class="rdformsField rdformsGroupURI rdformsUrl">').text(t.getValue()).attr("href",t.getValue()),fr.attachExternalLinkBehaviour(o[0],t)),o)){var i=Tr()('<div class="rdformsRow">').appendTo(e);n.topLevel&&i.addClass("rdformsTopLevel"),Tr()('<div class="rdformsLabel">').text(n.view.messages.address_label).appendTo(i),o.appendTo(Tr()('<div class="rdformsFields">').appendTo(i))}},Cr.postEditorRenderer=function(e,t,n){n.$controlDiv.appendTo(e)};var El={error:"exclamation-triangle",warning:"exclamation-circle",deprecated:"question-circle"};Cr.renderValidationMessage=function(e,t,n){var o=El[t],r=Cr.domCreate("div",e);Cr.domClassToggle(r,"rdformsValidationMessageWrapper",!0);var i=Cr.domCreate("i",r);Cr.domClassToggle(i,"fas fa-".concat(o),!0);var a=Cr.domCreate("span",r);Cr.domClassToggle(a,"rdformsValidationMessage",!0),Cr.domText(a,n)};n(5640),n(7070),n(5700);var Cl=n(9755);function Sl(e){return(Sl="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 Tl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Al(o.key),o)}}function Al(e){var t=function(e,t){if("object"!=Sl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Sl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sl(t)?t:String(t)}var Ol=function(){function e(t,n){var o,r,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=(o=this.item,r={},i=o.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&&(r[t]=!0)})),r),this._date=null,this._valid=!1,this._excludeTime=!0,this.domNode=n,this.buildUI(),this.initDatePicker(),this.initialize()}var t,n,o;return t=e,(n=[{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=Cl(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=Cl(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=Cl(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=sr()(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,Cl(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)}}])&&Tl(t.prototype,n),o&&Tl(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Dl(e){return(Dl="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 Il(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,jl(o.key),o)}}function jl(e){var t=function(e,t){if("object"!=Dl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Dl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Dl(t)?t:String(t)}function Ml(e,t,n){return t=Ll(t),function(e,t){if(t&&("object"===Dl(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,n||[],Ll(e).constructor):t.apply(e,n))}function Ll(e){return(Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pl(e,t){return(Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Ol.register=function(e){var t=function(t,n,o){var r=new e({messages:o.view.messages,binding:n,context:o},Cl("<div>").appendTo(t)[0]);o.clear=function(){r.clear()}},n=Cr.editorRegistry;n.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#date").register(t),n.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#dateTime").register(t),n.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYear").register(t),n.itemtype("text").datatype("http://purl.org/dc/terms/W3CDTF").register(t)};var Rl=function(e){function t(){return Il(this,t),Ml(this,t,arguments)}var n,o,r;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&&Pl(e,t)}(t,e),n=t,(o=[{key:"buildUI",value:function(){var e=Gs(this.binding,this.context)?"disabled":"";this.tpdate=null,this.dpdate=null;var t=this.context.view.messages,n=this.includeYearOption()?'<option value="Year">'.concat(t.date_year,"</option>"):"",o=this.includeDateOption()?'<option value="Date" selected="true">'.concat(t.date_date,"</option>"):"",r=this.includeDateTimeOption()?'<option value="DateTime">'.concat(t.date_date_and_time,"</option>"):"";this.domNode.innerHTML='<div class="rdformsDateValue rdformsFieldInput" xmlns="http://www.w3.org/1999/html">\n <div class="rdformsDatepicker form-group input" style="padding-right: 15px;">\n <input '.concat(e,' class="form-control dateInput date" type="text" placeholder="YYYY-MM-DD" />\n <span >\n <button ').concat(e,' type="button" class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm dateButton"><span class="fa fa-calendar"></span>\n <div class="ripple-container"></div></button>\n </span>\n </div>\n <div class="form-group input" style="display:none;">\n <input ').concat(e,' type="text" class="form-control timeInput" placeholder="HH:MM"/>\n <span>\n <button ').concat(e,' type="button" class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm timeButton"><span class="fa fa-clock"></span></button>\n </span>\n </div>\n <div class="form-group input" style="display:none;">\n <input ').concat(e,' type="text" class="form-control yearInput" placeholder="YYYY"/>\n </div>\n\n <select ').concat(e,' class="form-control dateControl">\n ').concat(n,"\n ").concat(o,"\n ").concat(r,"\n </select>\n</div>"),this.cal=Tr()(this.domNode).find(".date")[0],this.dateButton=Tr()(this.domNode).find(".dateButton")[0],this.timeInput=Tr()(this.domNode).find(".timeInput")[0],this.timeButton=Tr()(this.domNode).find(".timeButton")[0],this.yearInput=Tr()(this.domNode).find(".yearInput")[0],this.dateControl=Tr()(this.domNode).find(".dateControl")[0]}},{key:"initDatePicker",value:function(){var e=this;this.$datepicker=Tr()(this.cal).bootstrapMaterialDatePicker({time:!1,date:!0,triggerEvent:"none",switchOnClick:!0,lang:sr().locale()}),this.$timepicker=Tr()(this.timeInput).bootstrapMaterialDatePicker({format:"HH:mm",time:!0,date:!1,triggerEvent:"none",switchOnClick:!0,lang:sr().locale()}),Tr()(this.dateButton).click((function(){e.$datepicker.bootstrapMaterialDatePicker("_fireCalendar")})),this.$datepicker.on("change",(function(t,n){var o=n||sr()(t.target.value);if(e.tpdate){var r=sr()(e.tpdate);o.minute(r.minute()),o.hour(r.hour())}e.dpdate=o.toDate(),e.setDateInBinding(e.dpdate)})),this.item.isEnabled()||this.$datepicker.prop("disabled",!0),Tr()(this.timeButton).click((function(){e.$timepicker.bootstrapMaterialDatePicker("_fireCalendar")})),this.$timepicker.on("change",(function(t,n){var o=n||sr()(t.target.value);if(null!=e.dpdate){var r=sr()(e.dpdate);r.minute(o.minute()),r.hour(o.hour()),e.tpdate=r.toDate(),e.setDateInBinding(e.tpdate)}else e.tpdate=o.toDate()})),this.item.isEnabled()||this.$timepicker.prop("disabled",!0)}},{key:"setDateInPicker",value:function(e){this.$datepicker.bootstrapMaterialDatePicker("setDate",e),this.$timepicker.bootstrapMaterialDatePicker("setTime",e),this.dpdate=e,this.tpdate=e}}])&&Nl(n.prototype,o),r&&Nl(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ol);Ol.register(Rl);n(7872),n(8750);var zl=n(9755);Cr.renderSelect=function(e,t,n){var o,r=zl('<div class="form-group selectizeException">').appendTo(e),i=zl('<div class="form-control">').appendTo(r),a=zl('<input type="text">').appendTo(i),s=[];t.getValue()&&s.push(t.getValue());var l={items:s,valueField:"id",labelField:"text",sortField:"text",searchField:"text",allowEmptyOption:!1,preload:"focus",maxItems:1,mode:"single",onChange:function(e){var n=o.options[e];t.setChoice(n?n.choice:null),this.clearCache()}},c=!0;n.choices&&n.choices.length>0?(c=!1,l.options=n.choices):n.chooser&&"function"==typeof n.chooser.search&&(c=!1,l.load=function(e,o){n.chooser.search(t.getItem(),e).then((function(e){o(e.map((function(e){return{id:e.value,text:dr.getLocalizedValue(e.label).value||"",choice:e}})))}))}),o=a.selectize(l)[0].selectize,(c||Gs(t,n))&&o.disable(),n.clear=function(){o.clear()},n.setValue=function(e){a.toggleClass("mismatch",!0===e.mismatch);var t=dr.getLocalizedValue(e.label).value||"";o.options[e.value]||o.addOption({id:e.value,text:t,choice:e}),o.addItem(e.value,!0)}};var Fl=n(3379),Bl=n.n(Fl),$l=n(7795),Vl=n.n($l),Ul=n(569),Hl=n.n(Ul),Yl=n(3565),Wl=n.n(Yl),Gl=n(9216),ql=n.n(Gl),Ql=n(4589),Zl=n.n(Ql),Xl=n(2394),Kl={};Kl.styleTagTransform=Zl(),Kl.setAttributes=Wl(),Kl.insert=Hl().bind(null,"head"),Kl.domAPI=Vl(),Kl.insertStyleElement=ql();Bl()(Xl.Z,Kl);Xl.Z&&Xl.Z.locals&&Xl.Z.locals;var Jl=n(9285),ec={};ec.styleTagTransform=Zl(),ec.setAttributes=Wl(),ec.insert=Hl().bind(null,"head"),ec.domAPI=Vl(),ec.insertStyleElement=ql();Bl()(Jl.Z,ec);Jl.Z&&Jl.Z.locals&&Jl.Z.locals;var tc=n(5987),nc={};nc.styleTagTransform=Zl(),nc.setAttributes=Wl(),nc.insert=Hl().bind(null,"head"),nc.domAPI=Vl(),nc.insertStyleElement=ql();Bl()(tc.Z,nc);tc.Z&&tc.Z.locals&&tc.Z.locals;var oc=n(9755);Cr.postEditorRenderer=function(e,t,n){n.$controlDiv.appendTo(e),oc("body").bootstrapMaterialDesign()};var rc=n(7642),ic={};ic.styleTagTransform=Zl(),ic.setAttributes=Wl(),ic.insert=Hl().bind(null,"head"),ic.domAPI=Vl(),ic.insertStyleElement=ql();Bl()(rc.Z,ic);rc.Z&&rc.Z.locals&&rc.Z.locals;function ac(e){return(ac="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 sc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,cc(o.key),o)}}function cc(e){var t=function(e,t){if("object"!=ac(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ac(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ac(t)?t:String(t)}function dc(e,t,n){return t=bc(t),function(e,t){if(t&&("object"===ac(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,n||[],bc(e).constructor):t.apply(e,n))}function uc(){return(uc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=fc(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function fc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=bc(e)););return e}function bc(e){return(bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pc(e,t){return(pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var mc=function(e,t,n){return 1===n?e["".concat(t,"_one")]:e["".concat(t,"_more")].replace("$1",n)},hc=function(e){function t(){return sc(this,t),dc(this,t,arguments)}var n,o,r;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&&pc(e,t)}(t,e),n=t,(o=[{key:"_handleParams",value:function(e){e.showLanguage=!1!==e.showLanguage,e.filterTranslations=!1,e.styleCls=e.styleCls||"rdformsPresenter rdformsValidator",this.fuzzy=!1!==e.fuzzy,uc(bc(t.prototype),"_handleParams",this).call(this,e),this.binding&&Xa(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 n=this.binding.getMatchingCode();if(n===jr.MISSING_CONSTRAINTS||n===jr.WRONG_NODETYPE)return!1;var o=e.getCardinality();switch(this.includeLevel){case"mandatory":return o&&o.min>=1;case"recommended":default:return o&&(o.min>=1||o.pref>=1)}}},{key:"showAsTable",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var n,o=t,r=e.getCardinality(),i=null!=r.min?r.min:0,a=null!=r.pref?r.pref:0;n=r.pref>0?r.pref:r.min>0?r.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===jr.TOO_FEW_VALUES_MIN||s===jr.TOO_FEW_VALUES_PREF,c=s===jr.MISSING_CONSTRAINTS||s===jr.WRONG_NODETYPE;if(n>o.length&&l&&!c)for(o=o.concat([]);n>o.length;){var d=Wa(this.binding,e);o.length<i?d.setMatchingCode(jr.TOO_FEW_VALUES_MIN):o.length<a&&d.setMatchingCode(jr.TOO_FEW_VALUES_PREF),o.push(d)}return o}},{key:"skipBinding",value:function(){return!1}},{key:"addValidationMarker",value:function(e,t){var n,o,r=t.getItem(),i=r.getCardinality(),a=null!=i.min?i.min:0,s=null!=i.pref?i.pref:0,l="group"===r.getType()?null===(n=t.getCardinalityTracker())||void 0===n?void 0:n.getCode():void 0,c=l&&l!==jr.OK&&l!==jr.UNKNOWN?l:t.getMatchingCode(),d=c===jr.TOO_FEW_VALUES_PREF;if(c!==jr.TOO_FEW_VALUES_PREF&&c!==jr.OK)return Cr.domClassToggle(e,"error",!0),c===jr.TOO_FEW_VALUES_MIN?o=mc(this.messages,"validation_min_required",a):c===jr.TOO_MANY_VALUES?o=mc(this.messages,"validation_max",i.max||1):c===jr.AT_MOST_ONE_CHILD?o=this.messages.validation_at_most_one_child:c===jr.AT_LEAST_ONE_CHILD?o=this.messages.validation_at_least_one_child:c===jr.EXACTLY_ONE_CHILD?o=this.messages.validation_exactly_one_child:c===jr.WRONG_NODETYPE?o=this.messages.validation_nodetype:c===jr.WRONG_VALUE?o=this.messages.validation_value:c===jr.WRONG_DATATYPE?o=this.messages.validation_datatype:c===jr.MISSING_CONSTRAINTS?o=this.messages.validation_constraints:c===jr.WRONG_PATTERN?o=this.messages.validation_pattern:c===jr.MISSING_LANGUAGE&&(o=this.messages.validation_language),Cr.renderValidationMessage(e,"error",o),!0;if(d){Cr.domClassToggle(e,"warning",!0);var u=mc(this.messages,"validation_min_recommended",s);return Cr.renderValidationMessage(e,"warning",u),!0}return!!r.hasStyle("deprecated")&&(Cr.domClassToggle(e,"deprecated",!0),Cr.renderValidationMessage(e,"deprecated",this.messages.validation_deprecated),!0)}},{key:"addComponent",value:function(e,n){uc(bc(t.prototype),"addComponent",this).call(this,e,n),this.addValidationMarker(e,n)}}])&&lc(n.prototype,o),r&&lc(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ks);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 vc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,yc(o.key),o)}}function yc(e){var t=function(e,t){if("object"!=gc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=gc(o))return o;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 wc=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n instanceof Node?this.domNode=n:this.domNode="string"==typeof n?document.getElementById(n):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 t,n,o;return t=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=Tr()(this.domNode).find(".cardinality")[0],this._mandatoryButton=Tr()(this.domNode).find(".mandatory").click(this._mandatoryClick.bind(this))[0],this._recommendedButton=Tr()(this.domNode).find(".recommended").click(this._recommendedClick.bind(this))[0],this._optionalButton=Tr()(this.domNode).find(".optional").click(this._optionalClick.bind(this))[0],this._rdformsNode=Tr()(this.domNode).find(".rdformsLevelNode")[0],this.includeLevelControllsVisible&&(this._cardinalityNode.style.display=""),this.setIncludeLevel(this.includeLevel),this.externalEditor||(this._editor=new js({includeLevel:this.includeLevel,compact:this.compact},this._rdformsNode),this.show())}},{key:"show",value:function(e,t,n){this.resource=e||this.resource,this.graph=t||this.graph,this.template=n||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=Cr.getMessages();Cr.domText(this._mandatoryButton,e.mandatoryLabel),Cr.domText(this._recommendedButton,e.recommendedLabel),Cr.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")||(Cr.domClassToggle(this._mandatoryButton,"active",!0),Cr.domClassToggle(this._recommendedButton,"active",!1),Cr.domClassToggle(this._optionalButton,"active",!1),this._updateEditor("mandatory")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_recommendedClick",value:function(e){this._recommendedButton.getAttribute("disabled")||(Cr.domClassToggle(this._mandatoryButton,"active",!0),Cr.domClassToggle(this._recommendedButton,"active",!0),Cr.domClassToggle(this._optionalButton,"active",!1),this._updateEditor("recommended")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_optionalClick",value:function(e){this._optionalButton.getAttribute("disabled")||(Cr.domClassToggle(this._mandatoryButton,"active",!0),Cr.domClassToggle(this._recommendedButton,"active",!0),Cr.domClassToggle(this._optionalButton,"active",!0),this._updateEditor("optional")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_updateEditor",value:function(e){this._editor&&this._editor.setIncludeLevel(e)}}])&&vc(t.prototype,n),o&&vc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(429);const xc=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const kc=function(e){return this.__data__.has(e)};function _c(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ln;++t<n;)this.add(e[t])}_c.prototype.add=_c.prototype.push=xc,_c.prototype.has=kc;const Ec=_c;const Cc=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};const Sc=function(e,t){return e.has(t)};const Tc=function(e,t,n,o,r,i){var a=1&n,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,b=2&n?new Ec:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var p=e[u],m=t[u];if(o)var h=a?o(m,p,u,t,e,i):o(p,m,u,e,t,i);if(void 0!==h){if(h)continue;f=!1;break}if(b){if(!Cc(t,(function(e,t){if(!Sc(b,t)&&(p===e||r(p,e,n,o,i)))return b.push(t)}))){f=!1;break}}else if(p!==m&&!r(p,m,n,o,i)){f=!1;break}}return i.delete(e),i.delete(t),f};const Ac=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};const Oc=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var Dc=mt?mt.prototype:void 0,Ic=Dc?Dc.valueOf:void 0;const Nc=function(e,t,n,o,r,i,a){switch(n){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 zo(e),new zo(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=Ac;case"[object Set]":var l=1&o;if(s||(s=Oc),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;o|=2,a.set(e,t);var d=Tc(s(e),s(t),o,r,i,a);return a.delete(e),d;case"[object Symbol]":if(Ic)return Ic.call(e)==Ic.call(t)}return!1};var jc=Object.prototype.hasOwnProperty;const Mc=function(e,t,n,o,r,i){var a=1&n,s=_o(e),l=s.length;if(l!=_o(t).length&&!a)return!1;for(var c=l;c--;){var d=s[c];if(!(a?d in t:jc.call(t,d)))return!1}var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var b=!0;i.set(e,t),i.set(t,e);for(var p=a;++c<l;){var m=e[d=s[c]],h=t[d];if(o)var g=a?o(h,m,d,t,e,i):o(m,h,d,e,t,i);if(!(void 0===g?m===h||r(m,h,n,o,i):g)){b=!1;break}p||(p="constructor"==d)}if(b&&!p){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||(b=!1)}return i.delete(e),i.delete(t),b};var Lc=Object.prototype.hasOwnProperty;const Pc=function(e,t,n,o,r,i){var a=Cn(e),s=Cn(t),l=a?"[object Array]":Lo(e),c=s?"[object Array]":Lo(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&&Dn(e)){if(!Dn(t))return!1;a=!0,d=!1}if(f&&!d)return i||(i=new un),a||Vn(e)?Tc(e,t,n,o,r,i):Nc(e,t,l,n,o,r,i);if(!(1&n)){var b=d&&Lc.call(e,"__wrapped__"),p=u&&Lc.call(t,"__wrapped__");if(b||p){var m=b?e.value():e,h=p?t.value():t;return i||(i=new un),r(m,h,n,o,i)}}return!!f&&(i||(i=new un),Mc(e,t,n,o,r,i))};const Rc=function e(t,n,o,r,i){return t===n||(null==t||null==n||!yn(t)&&!yn(n)?t!=t&&n!=n:Pc(t,n,o,r,e,i))};const zc=function(e,t){return Rc(e,t)};function Fc(e){return(Fc="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 Bc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,$c(o.key),o)}}function $c(e){var t=function(e,t){if("object"!=Fc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Fc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fc(t)?t:String(t)}var Vc=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,n,o;return t=e,(n=[{key:"importRegistry",value:function(e){Object.assign(this._registry,e)}},{key:"getChoices",value:function(e,t){var n=this._findChoices(e);if(null==n);else{if(null==t)return n;t(n)}}},{key:"_findChoices",value:function(e){var t=this._registry[e.getOntologyUrl()];if(null!=t)for(var n=0;n<t.length;n++){var o=t[n];if(zc(o.constraints,e.getConstraints())&&e.getParentProperty()===o.parentProperty&&e.getHierarchyProperty()===o.hierarchyProperty&&e.isParentPropertyInverted()===(o.isParentPropertyInverted||!1)&&e.isHierarchyPropertyInverted()===(o.isHierarchyPropertyInverted||!1))return o.choices}}},{key:"_constructLoadUrl",value:function(e){var t=[];if(t.push("constr=".concat(encodeURIComponent(JSON.stringify(e.getConstraints())))),null!=e.getParentProperty()){var n=!0===e.isParentPropertyInverted()?"ipp=":"pp=";t.push(n+encodeURIComponent(e.getParentProperty()))}if(null!=e.getHierarchyProperty()){var o=!0===e.isHierarchyPropertyInverted()?"ihp=":"hp=";t.push(o+encodeURIComponent(e.getHierarchyProperty()))}return"".concat(e.getOntologyUrl(),"?").concat(t.join("&"))}}])&&Bc(t.prototype,n),o&&Bc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Uc(e){return(Uc="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 Hc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Yc(o.key),o)}}function Yc(e){var t=function(e,t){if("object"!=Uc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Uc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Uc(t)?t:String(t)}var Wc=0,Gc=function(){function e(t){var n=t.itemStore,o=t.source,r=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=n,this._source=o,this._path=r,this._readOnly=a,this._items=[],Wc+=1,this._id="_bundle_".concat(Wc),this._root=null,this._modified=!1}var t,n,o;return t=e,(n=[{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}}])&&Hc(t.prototype,n),o&&Hc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qc(e){return(qc="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 n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Zc(o.key),o)}}function Zc(e){var t=function(e,t){if("object"!=qc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=qc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qc(t)?t:String(t)}var Xc=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 Vc}var t,n,o;return t=e,(n=[{key:"getTemplate",value:function(e){return this.getItem(e)}},{key:"getChildren",value:function(e,t){if(null==e)return[];var n=e.getSource(!0),o=n.content||n.items||[];if(t)return this._createItems(o,e._forceChildrenClones,e.getBundle());var r=this.getItem(n.extends);return r?r.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 n=this._registry[e];n&&(delete this._registry[e],this._registry[t]=n,n.setId(t));for(var o=function n(o){var r=o.content;if(r)for(var i=0;i<r.length;i++){var a=r[i];a.id!==e&&a["@id"]!==e||(a.id=t,delete a["@id"]),a.content&&n(a)}},r=this.getItems(),i=0;i<r.length;i++){var a=r[i];a instanceof ci&&o(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,n){return Ua(e,t,this,n)}},{key:"registerBundle",value:function(e){e.itemStore=this;var t=new Gc(e);this._bundles.push(t),e.source&&e.source.namespaces&&L(e.source.namespaces);var n=e.source.templates||e.source.auxilliary;return n instanceof Array&&this._createItems(n,!1,t),"object"===qc(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,n=(e||[]).map((function(e){return"string"==typeof e?t.getItem(e):e}));return new ci({source:{},children:n,itemStore:this})}},{key:"setPriorities",value:function(e){this.priorities=e}},{key:"createExtendedSource",value:function(e,t){var n=Object.assign(Object.assign({},e),t);return n._extendedSource=t,n.extends=null,delete n.children,n}},{key:"createItem",value:function(e,t,n,o){var r,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,o)}}if(null!=a){switch(a){case"text":r=new Ti({source:e,itemStore:this,bundle:o});break;case"choice":r=new Ri({source:e,itemStore:this,ontologyStore:this._ontologyStore,bundle:o});break;case"group":r=new ci({source:e,children:null,itemStore:this,bundle:o});break;case"propertygroup":r=new yi({source:e,children:null,itemStore:this,bundle:o})}return!0!==n&&(null!=e.property&&(this._registryByProperty[e.property]=r,this.priorities&&null!=this.priorities[e.property]&&(r.priority=this.priorities[e.property])),null!=i&&null==this._registry[i]&&(this._registry[i]=r,null!=o&&o.addItem(r))),r}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 n=e.getBundle();null!=n&&n.removeItem(e),null!=e.getId()&&delete this._registry[e.getId()];var o=e.getProperty();null!=o&&this._registryByProperty[o]===e&&delete this._registryByProperty[o]}},{key:"_createItems",value:function(e,t,n){var o=this;return e.map((function(r,i){var a="string"==typeof r?e[i]={id:r}:r;return o.createItem(a,t,!1,n)})).filter((function(e){return e}))}},{key:"_handleError",value:function(e){if("throw"===this.handleErrorAs)throw new Error(e);console[this.handleErrorAs](e)}}])&&Qc(t.prototype,n),o&&Qc(t,o),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(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Jc=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new O(o||[]);return r(a,"_invoke",{value:C(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",b="executing",p="completed",m={};function h(){}function g(){}function v(){}var y={};c(y,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(D([])));x&&x!==n&&o.call(x,a)&&(y=x);var k=v.prototype=h.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(r,i,a,s){var l=u(e[r],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Kc(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function C(t,n,o){var r=f;return function(i,a){if(r===b)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var l=S(s,o);if(l){if(l===m)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===f)throw r=p,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=b;var c=u(t,n,o);if("normal"===c.type){if(r=o.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=p,o.method="throw",o.arg=c.arg)}}}function S(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),m;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Kc(t)+" is not iterable")}return g.prototype=v,r(k,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},_(E.prototype),c(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new E(d(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,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 n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return s.type="throw",s.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:D(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function ed(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function td(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){ed(i,o,r,a,s,"next",e)}function s(e){ed(i,o,r,a,s,"throw",e)}a(void 0)}))}}var nd=function(e,t,n){var o="Fetching template bundle ".concat(n," failed.");if(e===t-1)throw Error("".concat(o," Cannot recover from this, please fix."));console.log("".concat(o," Will try to fetch from a fallback option."))},od=function(){var e=td(Jc().mark((function e(t){var n,o,r,i,a;return Jc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.length,i=0;case 2:if(!(i<n)){e.next=34;break}return e.prev=3,e.next=6,fetch(t[i]);case 6:o=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(!o||!o.ok){e.next=30;break}if(e.prev=13,!(a=o.headers.has("content-type")&&o.headers.get("content-type"))||!a.includes("application/json")){e.next=22;break}return e.next=18,o.json();case 18:return r=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),nd(i,n,t[i]);case 28:e.next=31;break;case 30:nd(i,n,t[i]);case 31:i++,e.next=2;break;case 34:return e.abrupt("return",r);case 35:case"end":return e.stop()}}),e,null,[[3,9],[13,25]])})));return function(t){return e.apply(this,arguments)}}(),rd=function(e){return e.map((function(e){return e instanceof Array?od(e):Promise.resolve(e)}))},id=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.map((function(t){return e.registerBundle({source:t})}))};const ad=function(){var e=td(Jc().mark((function e(t){var n,o,r,i,a,s=arguments;return Jc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:[],o=s.length>2&&void 0!==s[2]?s[2]:function(){},0===n.length&&o&&o([]),r=rd(n),e.next=6,Promise.all(r);case 6:return i=e.sent,a=id(t,i),o(a),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})(),o})());
|
|
76
|
+
*/function n(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=n,t.isNCNameChar=function(e){return n(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=="},2654:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg viewBox=%270 0 30 30%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath stroke=%27rgba%280, 0, 0, 0.5%29%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},7752:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg viewBox=%270 0 30 30%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.5%29%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},6289:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23f44336%27 viewBox=%27-2 -2 7 7%27%3e%3cpath stroke=%27%23f44336%27 d=%27M0 0l3 3m0-3L0 3%27/%3e%3ccircle r=%27.5%27/%3e%3ccircle cx=%273%27 r=%27.5%27/%3e%3ccircle cy=%273%27 r=%27.5%27/%3e%3ccircle cx=%273%27 cy=%273%27 r=%27.5%27/%3e%3c/svg%3E"},6644:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 viewBox=%270 0 8 8%27%3e%3cpath d=%27M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z%27/%3e%3c/svg%3e"},2764:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 viewBox=%270 0 8 8%27%3e%3cpath d=%27M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z%27/%3e%3c/svg%3e"},2469:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%23fff%27/%3e%3c/svg%3e"},826:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 4 4%27%3e%3cpath stroke=%27%23fff%27 d=%27M0 2h4%27/%3e%3c/svg%3e"},9282:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 4 5%27%3e%3cpath fill=%27%23343a40%27 d=%27M2 0L0 2h4zm0 5L0 3h4z%27/%3e%3c/svg%3e"},5200:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%234caf50%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"},5900:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%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.26 2.974 7.25 8 2.193z%27/%3e%3c/svg%3e"},509:(e,t,n)=>{"use strict";var o=n(9985),r=n(3691),i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not a function")}},2655:(e,t,n)=>{"use strict";var o=n(9429),r=n(3691),i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not a constructor")}},3550:(e,t,n)=>{"use strict";var o=n(598),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw new i("Can't set "+r(e)+" as a prototype")}},7370:(e,t,n)=>{"use strict";var o=n(4201),r=n(5391),i=n(2560).f,a=o("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},1514:(e,t,n)=>{"use strict";var o=n(730).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},767:(e,t,n)=>{"use strict";var o=n(3622),r=TypeError;e.exports=function(e,t){if(o(t,e))return e;throw new r("Incorrect invocation")}},5027:(e,t,n)=>{"use strict";var o=n(8999),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not an object")}},1655:(e,t,n)=>{"use strict";var o=n(3689);e.exports=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},7612:(e,t,n)=>{"use strict";var o=n(2960).forEach,r=n(6834)("forEach");e.exports=r?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}},1055:(e,t,n)=>{"use strict";var o=n(4071),r=n(2615),i=n(690),a=n(1228),s=n(3292),l=n(9429),c=n(6310),d=n(6522),u=n(5185),f=n(1664),b=Array;e.exports=function(e){var t=i(e),n=l(this),p=arguments.length,m=p>1?arguments[1]:void 0,h=void 0!==m;h&&(m=o(m,p>2?arguments[2]:void 0));var g,v,y,w,x,k,_=f(t),E=0;if(!_||this===b&&s(_))for(g=c(t),v=n?new this(g):b(g);g>E;E++)k=h?m(t[E],E):t[E],d(v,E,k);else for(x=(w=u(t,_)).next,v=n?new this:[];!(y=r(x,w)).done;E++)k=h?a(w,m,[y.value,E],!0):y.value,d(v,E,k);return v.length=E,v}},4328:(e,t,n)=>{"use strict";var o=n(5290),r=n(7578),i=n(6310),a=function(e){return function(t,n,a){var s,l=o(t),c=i(l),d=r(a,c);if(e&&n!=n){for(;c>d;)if((s=l[d++])!=s)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2960:(e,t,n)=>{"use strict";var o=n(4071),r=n(8844),i=n(4413),a=n(690),s=n(6310),l=n(7120),c=r([].push),d=function(e){var t=1===e,n=2===e,r=3===e,d=4===e,u=6===e,f=7===e,b=5===e||u;return function(p,m,h,g){for(var v,y,w=a(p),x=i(w),k=s(x),_=o(m,h),E=0,C=g||l,S=t?C(p,k):n||f?C(p,0):void 0;k>E;E++)if((b||E in x)&&(y=_(v=x[E],E,w),e))if(t)S[E]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return E;case 2:c(S,v)}else switch(e){case 4:return!1;case 7:c(S,v)}return u?-1:r||d?d:S}};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,n)=>{"use strict";var o=n(3689),r=n(4201),i=n(3615),a=r("species");e.exports=function(e){return i>=51||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},6834:(e,t,n)=>{"use strict";var o=n(3689);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){return 1},1)}))}},5649:(e,t,n)=>{"use strict";var o=n(7697),r=n(2297),i=TypeError,a=Object.getOwnPropertyDescriptor,s=o&&!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(r(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,n)=>{"use strict";var o=n(8844);e.exports=o([].slice)},382:(e,t,n)=>{"use strict";var o=n(6004),r=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,s,l=1;l<n;){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=r(n/2),d=i(o(e,0,c),t),u=i(o(e,c),t),f=d.length,b=u.length,p=0,m=0;p<f||m<b;)e[p+m]=p<f&&m<b?t(d[p],u[m])<=0?d[p++]:u[m++]:p<f?d[p++]:u[m++];return e};e.exports=i},5271:(e,t,n)=>{"use strict";var o=n(2297),r=n(9429),i=n(8999),a=n(4201)("species"),s=Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(r(t)&&(t===s||o(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},7120:(e,t,n)=>{"use strict";var o=n(5271);e.exports=function(e,t){return new(o(e))(0===t?0:t)}},1228:(e,t,n)=>{"use strict";var o=n(5027),r=n(2125);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){r(e,"throw",t)}}},6431:(e,t,n)=>{"use strict";var o=n(4201)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!r)return!1}catch(e){return!1}var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},6648:(e,t,n)=>{"use strict";var o=n(8844),r=o({}.toString),i=o("".slice);e.exports=function(e){return i(r(e),8,-1)}},926:(e,t,n)=>{"use strict";var o=n(3043),r=n(9985),i=n(6648),a=n(4201)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=o?i:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?i(t):"Object"===(o=i(t))&&r(t.callee)?"Arguments":o}},800:(e,t,n)=>{"use strict";var o=n(5391),r=n(2148),i=n(6045),a=n(4071),s=n(767),l=n(981),c=n(8734),d=n(1934),u=n(7807),f=n(4241),b=n(7697),p=n(5375).fastKey,m=n(618),h=m.set,g=m.getterFor;e.exports={getConstructor:function(e,t,n,d){var u=e((function(e,r){s(e,f),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),b||(e.size=0),l(r)||c(r,e[d],{that:e,AS_ENTRIES:n})})),f=u.prototype,m=g(t),v=function(e,t,n){var o,r,i=m(e),a=y(e,t);return a?a.value=n:(i.last=a={index:r=p(t,!0),key:t,value:n,previous:o=i.last,next:void 0,removed:!1},i.first||(i.first=a),o&&(o.next=a),b?i.size++:e.size++,"F"!==r&&(i.index[r]=a)),e},y=function(e,t){var n,o=m(e),r=p(t);if("F"!==r)return o.index[r];for(n=o.first;n;n=n.next)if(n.key===t)return n};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=o(null),b?e.size=0:this.size=0},delete:function(e){var t=m(this),n=y(this,e);if(n){var o=n.next,r=n.previous;delete t.index[n.index],n.removed=!0,r&&(r.next=o),o&&(o.previous=r),t.first===n&&(t.first=o),t.last===n&&(t.last=r),b?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=m(this),o=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(o(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(f,n?{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)}}),b&&r(f,"size",{configurable:!0,get:function(){return m(this).size}}),u},setStrong:function(e,t,n){var o=t+" Iterator",r=g(t),i=g(o);d(e,t,(function(e,t){h(this,{type:o,target:e,state:r(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?u("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,u(void 0,!0))}),n?"entries":"values",!n,!0),f(t)}}},319:(e,t,n)=>{"use strict";var o=n(9989),r=n(9037),i=n(8844),a=n(5266),s=n(1880),l=n(5375),c=n(8734),d=n(767),u=n(9985),f=n(981),b=n(8999),p=n(3689),m=n(6431),h=n(5997),g=n(3457);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),w=v?"set":"add",x=r[e],k=x&&x.prototype,_=x,E={},C=function(e){var t=i(k[e]);s(k,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!b(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!b(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!b(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!u(x)||!(y||k.forEach&&!p((function(){(new x).entries().next()})))))_=n.getConstructor(t,e,v,w),l.enable();else if(a(e,!0)){var S=new _,T=S[w](y?{}:-0,1)!==S,A=p((function(){S.has(1)})),O=m((function(e){new x(e)})),D=!y&&p((function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)}));O||((_=t((function(e,t){d(e,k);var n=g(new x,e,_);return f(t)||c(t,n[w],{that:n,AS_ENTRIES:v}),n}))).prototype=k,k.constructor=_),(A||D)&&(C("delete"),C("has"),v&&C("get")),(D||T)&&C(w),y&&k.clear&&delete k.clear}return E[e]=_,o({global:!0,constructor:!0,forced:_!==x},E),h(_,e),y||n.setStrong(_,e,v),_}},8758:(e,t,n)=>{"use strict";var o=n(6812),r=n(9152),i=n(2474),a=n(2560);e.exports=function(e,t,n){for(var s=r(t),l=a.f,c=i.f,d=0;d<s.length;d++){var u=s[d];o(e,u)||n&&o(n,u)||l(e,u,c(t,u))}}},7413:(e,t,n)=>{"use strict";var o=n(4201)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(e){}}return!1}},1748:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((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,n)=>{"use strict";var o=n(7697),r=n(2560),i=n(5684);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,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,n)=>{"use strict";var o=n(8360),r=n(2560),i=n(5684);e.exports=function(e,t,n){var a=o(t);a in e?r.f(e,a,i(0,n)):e[a]=n}},1797:(e,t,n)=>{"use strict";var o=n(5027),r=n(5899),i=TypeError;e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return r(this,e)}},2148:(e,t,n)=>{"use strict";var o=n(8702),r=n(2560);e.exports=function(e,t,n){return n.get&&o(n.get,t,{getter:!0}),n.set&&o(n.set,t,{setter:!0}),r.f(e,t,n)}},1880:(e,t,n)=>{"use strict";var o=n(9985),r=n(2560),i=n(8702),a=n(5014);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(o(n)&&i(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6045:(e,t,n)=>{"use strict";var o=n(1880);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},5014:(e,t,n)=>{"use strict";var o=n(9037),r=Object.defineProperty;e.exports=function(e,t){try{r(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},8494:(e,t,n)=>{"use strict";var o=n(3691),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw new r("Cannot delete property "+o(t)+" of "+o(e))}},7697:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6420:(e,t,n)=>{"use strict";var o=n(9037),r=n(8999),i=o.document,a=r(i)&&r(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,n)=>{"use strict";var o=n(6420)("span").classList,r=o&&o.constructor&&o.constructor.prototype;e.exports=r===Object.prototype?void 0:r},7365:(e,t,n)=>{"use strict";var o=n(71).match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},2532:(e,t,n)=>{"use strict";var o=n(8563),r=n(806);e.exports=!o&&!r&&"object"==typeof window&&"object"==typeof document},8563:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},7298:(e,t,n)=>{"use strict";var o=n(71);e.exports=/MSIE|Trident/.test(o)},3221:(e,t,n)=>{"use strict";var o=n(71);e.exports=/ipad|iphone|ipod/i.test(o)&&"undefined"!=typeof Pebble},4764:(e,t,n)=>{"use strict";var o=n(71);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},806:(e,t,n)=>{"use strict";var o=n(9037),r=n(6648);e.exports="process"===r(o.process)},7486:(e,t,n)=>{"use strict";var o=n(71);e.exports=/web0s(?!.*chrome)/i.test(o)},71:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:(e,t,n)=>{"use strict";var o,r,i=n(9037),a=n(71),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,d=c&&c.v8;d&&(r=(o=d.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=+o[1]),e.exports=r},7922:(e,t,n)=>{"use strict";var o=n(71).match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},2739:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9989:(e,t,n)=>{"use strict";var o=n(9037),r=n(2474).f,i=n(5773),a=n(1880),s=n(5014),l=n(8758),c=n(5266);e.exports=function(e,t){var n,d,u,f,b,p=e.target,m=e.global,h=e.stat;if(n=m?o:h?o[p]||s(p,{}):o[p]&&o[p].prototype)for(d in t){if(f=t[d],u=e.dontCallGetSet?(b=r(n,d))&&b.value:n[d],!c(m?d:p+(h?".":"#")+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(n,d,f,e)}}},3689:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},8678:(e,t,n)=>{"use strict";n(4043);var o=n(2615),r=n(1880),i=n(6308),a=n(3689),s=n(4201),l=n(5773),c=s("species"),d=RegExp.prototype;e.exports=function(e,t,n,u){var f=s(e),b=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),p=b&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!b||!p||n){var m=/./[f],h=t(f,""[e],(function(e,t,n,r,a){var s=t.exec;return s===i||s===d.exec?b&&!a?{done:!0,value:o(m,t,n,r)}:{done:!0,value:o(e,n,t,r)}:{done:!1}}));r(String.prototype,e,h[0]),r(d,f,h[1])}u&&l(d[f],"sham",!0)}},1594:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},1735:(e,t,n)=>{"use strict";var o=n(7215),r=Function.prototype,i=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(i):function(){return a.apply(i,arguments)})},4071:(e,t,n)=>{"use strict";var o=n(6576),r=n(509),i=n(7215),a=o(o.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},7215:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6761:(e,t,n)=>{"use strict";var o=n(8844),r=n(509),i=n(8999),a=n(6812),s=n(6004),l=n(7215),c=Function,d=o([].concat),u=o([].join),f={},b=function(e,t,n){if(!a(f,t)){for(var o=[],r=0;r<t;r++)o[r]="a["+r+"]";f[t]=c("C,a","return new C("+u(o,",")+")")}return f[t](e,n)};e.exports=l?c.bind:function(e){var t=r(this),n=t.prototype,o=s(arguments,1),a=function(){var n=d(o,s(arguments));return this instanceof a?b(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},2615:(e,t,n)=>{"use strict";var o=n(7215),r=Function.prototype.call;e.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},1236:(e,t,n)=>{"use strict";var o=n(7697),r=n(6812),i=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!o||o&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},2743:(e,t,n)=>{"use strict";var o=n(8844),r=n(509);e.exports=function(e,t,n){try{return o(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},6576:(e,t,n)=>{"use strict";var o=n(6648),r=n(8844);e.exports=function(e){if("Function"===o(e))return r(e)}},8844:(e,t,n)=>{"use strict";var o=n(7215),r=Function.prototype,i=r.call,a=o&&r.bind.bind(i,i);e.exports=o?a:function(e){return function(){return i.apply(e,arguments)}}},6058:(e,t,n)=>{"use strict";var o=n(9037),r=n(9985),i=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(o[e]):o[e]&&o[e][t]}},1664:(e,t,n)=>{"use strict";var o=n(926),r=n(4849),i=n(981),a=n(9478),s=n(4201)("iterator");e.exports=function(e){if(!i(e))return r(e,s)||r(e,"@@iterator")||a[o(e)]}},5185:(e,t,n)=>{"use strict";var o=n(2615),r=n(509),i=n(5027),a=n(3691),s=n(1664),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return i(o(n,e));throw new l(a(e)+" is not iterable")}},2643:(e,t,n)=>{"use strict";var o=n(8844),r=n(2297),i=n(9985),a=n(6648),s=n(4327),l=o([].push);e.exports=function(e){if(i(e))return e;if(r(e)){for(var t=e.length,n=[],o=0;o<t;o++){var c=e[o];"string"==typeof c?l(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(n,s(c))}var d=n.length,u=!0;return function(e,t){if(u)return u=!1,t;if(r(this))return t;for(var o=0;o<d;o++)if(n[o]===e)return t}}}},4849:(e,t,n)=>{"use strict";var o=n(509),r=n(981);e.exports=function(e,t){var n=e[t];return r(n)?void 0:o(n)}},7017:(e,t,n)=>{"use strict";var o=n(8844),r=n(690),i=Math.floor,a=o("".charAt),s=o("".replace),l=o("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,o,u,f){var b=n+e.length,p=o.length,m=d;return void 0!==u&&(u=r(u),m=c),s(f,m,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,b);case"<":c=u[l(s,1,-1)];break;default:var d=+s;if(0===d)return r;if(d>p){var f=i(d/10);return 0===f?r:f<=p?void 0===o[f-1]?a(s,1):o[f-1]+a(s,1):r}c=o[d-1]}return void 0===c?"":c}))}},9037:function(e,t,n){"use strict";var o=function(e){return e&&e.Math===Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||o("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6812:(e,t,n)=>{"use strict";var o=n(8844),r=n(690),i=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(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,n)=>{"use strict";var o=n(6058);e.exports=o("document","documentElement")},8506:(e,t,n)=>{"use strict";var o=n(7697),r=n(3689),i=n(6420);e.exports=!o&&!r((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},4413:(e,t,n)=>{"use strict";var o=n(8844),r=n(3689),i=n(6648),a=Object,s=o("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},3457:(e,t,n)=>{"use strict";var o=n(9985),r=n(8999),i=n(9385);e.exports=function(e,t,n){var a,s;return i&&o(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},6738:(e,t,n)=>{"use strict";var o=n(8844),r=n(9985),i=n(4091),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},5375:(e,t,n)=>{"use strict";var o=n(9989),r=n(8844),i=n(7248),a=n(8999),s=n(6812),l=n(2560).f,c=n(2741),d=n(6062),u=n(7049),f=n(4630),b=n(1594),p=!1,m=f("meta"),h=0,g=function(e){l(e,m,{value:{objectID:"O"+h++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},p=!0;var e=c.f,t=r([].splice),n={};n[m]=1,e(n).length&&(c.f=function(n){for(var o=e(n),r=0,i=o.length;r<i;r++)if(o[r]===m){t(o,r,1);break}return o},o({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";g(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!u(e))return!0;if(!t)return!1;g(e)}return e[m].weakData},onFreeze:function(e){return b&&p&&u(e)&&!s(e,m)&&g(e),e}};i[m]=!0},618:(e,t,n)=>{"use strict";var o,r,i,a=n(9834),s=n(9037),l=n(8999),c=n(5773),d=n(6812),u=n(4091),f=n(2713),b=n(7248),p=s.TypeError,m=s.WeakMap;if(a||u.state){var h=u.state||(u.state=new m);h.get=h.get,h.has=h.has,h.set=h.set,o=function(e,t){if(h.has(e))throw new p("Object already initialized");return t.facade=e,h.set(e,t),t},r=function(e){return h.get(e)||{}},i=function(e){return h.has(e)}}else{var g=f("state");b[g]=!0,o=function(e,t){if(d(e,g))throw new p("Object already initialized");return t.facade=e,c(e,g,t),t},r=function(e){return d(e,g)?e[g]:{}},i=function(e){return d(e,g)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},3292:(e,t,n)=>{"use strict";var o=n(4201),r=n(9478),i=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},2297:(e,t,n)=>{"use strict";var o=n(6648);e.exports=Array.isArray||function(e){return"Array"===o(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,n)=>{"use strict";var o=n(8844),r=n(3689),i=n(9985),a=n(926),s=n(6058),l=n(6738),c=function(){},d=s("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=o(u.exec),b=!u.test(c),p=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 b||!!f(u,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!d||r((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?m:p},6251:(e,t,n)=>{"use strict";var o=n(6812);e.exports=function(e){return void 0!==e&&(o(e,"value")||o(e,"writable"))}},5266:(e,t,n)=>{"use strict";var o=n(3689),r=n(9985),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===d||n!==c&&(r(t)?o(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,n)=>{"use strict";var o=n(9985);e.exports=function(e){return"object"==typeof e?null!==e:o(e)}},598:(e,t,n)=>{"use strict";var o=n(8999);e.exports=function(e){return o(e)||null===e}},3931:e=>{"use strict";e.exports=!1},1245:(e,t,n)=>{"use strict";var o=n(8999),r=n(6648),i=n(4201)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===r(e))}},734:(e,t,n)=>{"use strict";var o=n(6058),r=n(9985),i=n(3622),a=n(9525),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&i(t.prototype,s(e))}},8734:(e,t,n)=>{"use strict";var o=n(4071),r=n(2615),i=n(5027),a=n(3691),s=n(3292),l=n(6310),c=n(3622),d=n(5185),u=n(1664),f=n(2125),b=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var h,g,v,y,w,x,k,_=n&&n.that,E=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),S=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),A=o(t,_),O=function(e){return h&&f(h,"normal",e),new p(!0,e)},D=function(e){return E?(i(e),T?A(e[0],e[1],O):A(e[0],e[1])):T?A(e,O):A(e)};if(C)h=e.iterator;else if(S)h=e;else{if(!(g=u(e)))throw new b(a(e)+" is not iterable");if(s(g)){for(v=0,y=l(e);y>v;v++)if((w=D(e[v]))&&c(m,w))return w;return new p(!1)}h=d(e,g)}for(x=C?e.next:h.next;!(k=r(x,h)).done;){try{w=D(k.value)}catch(e){f(h,"throw",e)}if("object"==typeof w&&w&&c(m,w))return w}return new p(!1)}},2125:(e,t,n)=>{"use strict";var o=n(2615),r=n(5027),i=n(4849);e.exports=function(e,t,n){var a,s;r(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=o(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return r(a),n}},974:(e,t,n)=>{"use strict";var o=n(2013).IteratorPrototype,r=n(5391),i=n(5684),a=n(5997),s=n(9478),l=function(){return this};e.exports=function(e,t,n,c){var d=t+" Iterator";return e.prototype=r(o,{next:i(+!c,n)}),a(e,d,!1,!0),s[d]=l,e}},1934:(e,t,n)=>{"use strict";var o=n(9989),r=n(2615),i=n(3931),a=n(1236),s=n(9985),l=n(974),c=n(1868),d=n(9385),u=n(5997),f=n(5773),b=n(1880),p=n(4201),m=n(9478),h=n(2013),g=a.PROPER,v=a.CONFIGURABLE,y=h.IteratorPrototype,w=h.BUGGY_SAFARI_ITERATORS,x=p("iterator"),k=function(){return this};e.exports=function(e,t,n,a,p,h,_){l(n,t,a);var E,C,S,T=function(e){if(e===p&&N)return N;if(!w&&e&&e in D)return D[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},A=t+" Iterator",O=!1,D=e.prototype,I=D[x]||D["@@iterator"]||p&&D[p],N=!w&&I||T(p),j="Array"===t&&D.entries||I;if(j&&(E=c(j.call(new e)))!==Object.prototype&&E.next&&(i||c(E)===y||(d?d(E,y):s(E[x])||b(E,x,k)),u(E,A,!0,!0),i&&(m[A]=k)),g&&"values"===p&&I&&"values"!==I.name&&(!i&&v?f(D,"name","values"):(O=!0,N=function(){return r(I,this)})),p)if(C={values:T("values"),keys:h?N:T("keys"),entries:T("entries")},_)for(S in C)(w||O||!(S in D))&&b(D,S,C[S]);else o({target:t,proto:!0,forced:w||O},C);return i&&!_||D[x]===N||b(D,x,N,{name:p}),m[t]=N,C}},2013:(e,t,n)=>{"use strict";var o,r,i,a=n(3689),s=n(9985),l=n(8999),c=n(5391),d=n(1868),u=n(1880),f=n(4201),b=n(3931),p=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(r=d(d(i)))!==Object.prototype&&(o=r):m=!0),!l(o)||a((function(){var e={};return o[p].call(e)!==e}))?o={}:b&&(o=c(o)),s(o[p])||u(o,p,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:m}},9478:e=>{"use strict";e.exports={}},6310:(e,t,n)=>{"use strict";var o=n(3126);e.exports=function(e){return o(e.length)}},8702:(e,t,n)=>{"use strict";var o=n(8844),r=n(3689),i=n(9985),a=n(6812),s=n(7697),l=n(1236).CONFIGURABLE,c=n(6738),d=n(618),u=d.enforce,f=d.get,b=String,p=Object.defineProperty,m=o("".slice),h=o("".replace),g=o([].join),v=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(b(t),0,7)&&(t="["+h(b(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return a(o,"source")||(o.source=g(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,n=Math.floor;e.exports=Math.trunc||function(e){var o=+e;return(o>0?n:t)(o)}},231:(e,t,n)=>{"use strict";var o,r,i,a,s,l=n(9037),c=n(517),d=n(4071),u=n(9886).set,f=n(4410),b=n(4764),p=n(3221),m=n(7486),h=n(806),g=l.MutationObserver||l.WebKitMutationObserver,v=l.document,y=l.process,w=l.Promise,x=c("queueMicrotask");if(!x){var k=new f,_=function(){var e,t;for(h&&(e=y.domain)&&e.exit();t=k.get();)try{t()}catch(e){throw k.head&&o(),e}e&&e.enter()};b||h||m||!g||!v?!p&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=d(a.then,a),o=function(){s(_)}):h?o=function(){y.nextTick(_)}:(u=d(u,l),o=function(){u(_)}):(r=!0,i=v.createTextNode(""),new g(_).observe(i,{characterData:!0}),o=function(){i.data=r=!r}),x=function(e){k.head||o(),k.add(e)}}e.exports=x},8742:(e,t,n)=>{"use strict";var o=n(509),r=TypeError,i=function(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw new r("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new i(e)}},2124:(e,t,n)=>{"use strict";var o=n(1245),r=TypeError;e.exports=function(e){if(o(e))throw new r("The method doesn't accept regular expressions");return e}},7897:(e,t,n)=>{"use strict";var o=n(9037),r=n(3689),i=n(8844),a=n(4327),s=n(1435).trim,l=n(6350),c=o.parseInt,d=o.Symbol,u=d&&d.iterator,f=/^[+-]?0x/i,b=i(f.exec),p=8!==c(l+"08")||22!==c(l+"0x16")||u&&!r((function(){c(Object(u))}));e.exports=p?function(e,t){var n=s(a(e));return c(n,t>>>0||(b(f,n)?16:10))}:c},5394:(e,t,n)=>{"use strict";var o=n(7697),r=n(8844),i=n(2615),a=n(3689),s=n(300),l=n(7518),c=n(9556),d=n(690),u=n(4413),f=Object.assign,b=Object.defineProperty,p=r([].concat);e.exports=!f||a((function(){if(o&&1!==f({b:1},f(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection");return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||"abcdefghijklmnopqrst"!==s(f({},t)).join("")}))?function(e,t){for(var n=d(e),r=arguments.length,a=1,f=l.f,b=c.f;r>a;)for(var m,h=u(arguments[a++]),g=f?p(s(h),f(h)):s(h),v=g.length,y=0;v>y;)m=g[y++],o&&!i(b,h,m)||(n[m]=h[m]);return n}:f},5391:(e,t,n)=>{"use strict";var o,r=n(5027),i=n(8920),a=n(2739),s=n(7248),l=n(2688),c=n(6420),d=n(2713),u=d("IE_PROTO"),f=function(){},b=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(b("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&o?p(o):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(b("document.F=Object")),e.close(),e.F):p(o);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=r(e),n=new f,f.prototype=null,n[u]=e):n=m(),void 0===t?n:i.f(n,t)}},8920:(e,t,n)=>{"use strict";var o=n(7697),r=n(5648),i=n(2560),a=n(5027),s=n(5290),l=n(300);t.f=o&&!r?Object.defineProperties:function(e,t){a(e);for(var n,o=s(t),r=l(t),c=r.length,d=0;c>d;)i.f(e,n=r[d++],o[n]);return e}},2560:(e,t,n)=>{"use strict";var o=n(7697),r=n(8506),i=n(5648),a=n(5027),s=n(8360),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor;t.f=o?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var o=d(e,t);o&&o.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:o.configurable,enumerable:"enumerable"in n?n.enumerable:o.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},2474:(e,t,n)=>{"use strict";var o=n(7697),r=n(2615),i=n(9556),a=n(5684),s=n(5290),l=n(8360),c=n(6812),d=n(8506),u=Object.getOwnPropertyDescriptor;t.f=o?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(!r(i.f,e,t),e[t])}},6062:(e,t,n)=>{"use strict";var o=n(6648),r=n(5290),i=n(2741).f,a=n(6004),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===o(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(r(e))}},2741:(e,t,n)=>{"use strict";var o=n(4948),r=n(2739).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},7518:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},1868:(e,t,n)=>{"use strict";var o=n(6812),r=n(9985),i=n(690),a=n(2713),s=n(1748),l=a("IE_PROTO"),c=Object,d=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(o(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof c?d:null}},7049:(e,t,n)=>{"use strict";var o=n(3689),r=n(8999),i=n(6648),a=n(1655),s=Object.isExtensible,l=o((function(){s(1)}));e.exports=l||a?function(e){return!!r(e)&&((!a||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},3622:(e,t,n)=>{"use strict";var o=n(8844);e.exports=o({}.isPrototypeOf)},4948:(e,t,n)=>{"use strict";var o=n(8844),r=n(6812),i=n(5290),a=n(4328).indexOf,s=n(7248),l=o([].push);e.exports=function(e,t){var n,o=i(e),c=0,d=[];for(n in o)!r(s,n)&&r(o,n)&&l(d,n);for(;t.length>c;)r(o,n=t[c++])&&(~a(d,n)||l(d,n));return d}},300:(e,t,n)=>{"use strict";var o=n(4948),r=n(2739);e.exports=Object.keys||function(e){return o(e,r)}},9556:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!n.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},9385:(e,t,n)=>{"use strict";var o=n(2743),r=n(5027),i=n(3550);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=o(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e(n,o):n.__proto__=o,n}}():void 0)},9419:(e,t,n)=>{"use strict";var o=n(7697),r=n(3689),i=n(8844),a=n(1868),s=n(300),l=n(5290),c=i(n(9556).f),d=i([].push),u=o&&r((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),f=function(e){return function(t){for(var n,r=l(t),i=s(r),f=u&&null===a(r),b=i.length,p=0,m=[];b>p;)n=i[p++],o&&!(f?n in r:c(r,n))||d(m,e?[n,r[n]]:r[n]);return m}};e.exports={entries:f(!0),values:f(!1)}},5073:(e,t,n)=>{"use strict";var o=n(3043),r=n(926);e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},5899:(e,t,n)=>{"use strict";var o=n(2615),r=n(9985),i=n(8999),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!i(s=o(n,e)))return s;if(r(n=e.valueOf)&&!i(s=o(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!i(s=o(n,e)))return s;throw new a("Can't convert object to primitive value")}},9152:(e,t,n)=>{"use strict";var o=n(6058),r=n(8844),i=n(2741),a=n(7518),s=n(5027),l=r([].concat);e.exports=o("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},496:(e,t,n)=>{"use strict";var o=n(9037);e.exports=o},9302:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},7073:(e,t,n)=>{"use strict";var o=n(9037),r=n(7919),i=n(9985),a=n(5266),s=n(6738),l=n(4201),c=n(2532),d=n(8563),u=n(3931),f=n(3615),b=r&&r.prototype,p=l("species"),m=!1,h=i(o.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(r),t=e!==String(r);if(!t&&66===f)return!0;if(u&&(!b.catch||!b.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new r((function(e){e(1)})),o=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=o,!(m=n.then((function(){}))instanceof o))return!0}return!t&&(c||d)&&!h}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:h,SUBCLASSING:m}},7919:(e,t,n)=>{"use strict";var o=n(9037);e.exports=o.Promise},2945:(e,t,n)=>{"use strict";var o=n(5027),r=n(8999),i=n(8742);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},562:(e,t,n)=>{"use strict";var o=n(7919),r=n(6431),i=n(7073).CONSTRUCTOR;e.exports=i||!r((function(e){o.all(e).then(void 0,(function(){}))}))},8055:(e,t,n)=>{"use strict";var o=n(2560).f;e.exports=function(e,t,n){n in e||o(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=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},n=this.tail;n?n.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,n)=>{"use strict";var o=n(2615),r=n(5027),i=n(9985),a=n(6648),s=n(6308),l=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var c=o(n,e,t);return null!==c&&r(c),c}if("RegExp"===a(e))return o(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},6308:(e,t,n)=>{"use strict";var o,r,i=n(2615),a=n(8844),s=n(4327),l=n(9633),c=n(7901),d=n(3430),u=n(5391),f=n(618).get,b=n(2100),p=n(6422),m=d("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,g=h,v=a("".charAt),y=a("".indexOf),w=a("".replace),x=a("".slice),k=(r=/b*/g,i(h,o=/a/,"a"),i(h,r,"a"),0!==o.lastIndex||0!==r.lastIndex),_=c.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(k||E||_||b||p)&&(g=function(e){var t,n,o,r,a,c,d,b=this,p=f(b),C=s(e),S=p.raw;if(S)return S.lastIndex=b.lastIndex,t=i(g,S,C),b.lastIndex=S.lastIndex,t;var T=p.groups,A=_&&b.sticky,O=i(l,b),D=b.source,I=0,N=C;if(A&&(O=w(O,"y",""),-1===y(O,"g")&&(O+="g"),N=x(C,b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&"\n"!==v(C,b.lastIndex-1))&&(D="(?: "+D+")",N=" "+N,I++),n=new RegExp("^(?:"+D+")",O)),E&&(n=new RegExp("^"+D+"$(?!\\s)",O)),k&&(o=b.lastIndex),r=i(h,A?n:b,N),A?r?(r.input=x(r.input,I),r[0]=x(r[0],I),r.index=b.lastIndex,b.lastIndex+=r[0].length):b.lastIndex=0:k&&r&&(b.lastIndex=b.global?r.index+r[0].length:o),E&&r&&r.length>1&&i(m,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&T)for(r.groups=c=u(null),a=0;a<T.length;a++)c[(d=T[a])[0]]=r[d[1]];return r}),e.exports=g},9633:(e,t,n)=>{"use strict";var o=n(5027);e.exports=function(){var e=o(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,n)=>{"use strict";var o=n(2615),r=n(6812),i=n(3622),a=n(9633),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||r(e,"flags")||!i(s,e)?t:o(a,e)}},7901:(e,t,n)=>{"use strict";var o=n(3689),r=n(9037).RegExp,i=o((function(){var e=r("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||o((function(){return!r("a","y").sticky})),s=i||o((function(){var e=r("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},2100:(e,t,n)=>{"use strict";var o=n(3689),r=n(9037).RegExp;e.exports=o((function(){var e=r(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},6422:(e,t,n)=>{"use strict";var o=n(3689),r=n(9037).RegExp;e.exports=o((function(){var e=r("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},4684:(e,t,n)=>{"use strict";var o=n(981),r=TypeError;e.exports=function(e){if(o(e))throw new r("Can't call method on "+e);return e}},517:(e,t,n)=>{"use strict";var o=n(9037),r=n(7697),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!r)return o[e];var t=i(o,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,n)=>{"use strict";var o=n(6058),r=n(2148),i=n(4201),a=n(7697),s=i("species");e.exports=function(e){var t=o(e);a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},5997:(e,t,n)=>{"use strict";var o=n(2560).f,r=n(6812),i=n(4201)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,i)&&o(e,i,{configurable:!0,value:t})}},2713:(e,t,n)=>{"use strict";var o=n(3430),r=n(4630),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},4091:(e,t,n)=>{"use strict";var o=n(9037),r=n(5014),i=o["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=i},3430:(e,t,n)=>{"use strict";var o=n(3931),r=n(4091);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:o?"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,n)=>{"use strict";var o=n(5027),r=n(2655),i=n(981),a=n(4201)("species");e.exports=function(e,t){var n,s=o(e).constructor;return void 0===s||i(n=o(s)[a])?t:r(n)}},730:(e,t,n)=>{"use strict";var o=n(8844),r=n(8700),i=n(4327),a=n(4684),s=o("".charAt),l=o("".charCodeAt),c=o("".slice),d=function(e){return function(t,n){var o,d,u=i(a(t)),f=r(n),b=u.length;return f<0||f>=b?e?"":void 0:(o=l(u,f))<55296||o>56319||f+1===b||(d=l(u,f+1))<56320||d>57343?e?s(u,f):o:e?c(u,f,f+2):d-56320+(o-55296<<10)+65536}};e.exports={codeAt:d(!1),charAt:d(!0)}},5984:(e,t,n)=>{"use strict";var o=n(1236).PROPER,r=n(3689),i=n(6350);e.exports=function(e){return r((function(){return!!i[e]()||"
"!=="
"[e]()||o&&i[e].name!==e}))}},1435:(e,t,n)=>{"use strict";var o=n(8844),r=n(4684),i=n(4327),a=n(6350),s=o("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),d=function(e){return function(t){var n=i(r(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,c,"$1")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},146:(e,t,n)=>{"use strict";var o=n(3615),r=n(3689),i=n(9037).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},3032:(e,t,n)=>{"use strict";var o=n(2615),r=n(6058),i=n(4201),a=n(1880);e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return o(n,this)}),{arity:1})}},6549:(e,t,n)=>{"use strict";var o=n(146);e.exports=o&&!!Symbol.for&&!!Symbol.keyFor},9886:(e,t,n)=>{"use strict";var o,r,i,a,s=n(9037),l=n(1735),c=n(4071),d=n(9985),u=n(6812),f=n(3689),b=n(2688),p=n(6004),m=n(6420),h=n(1500),g=n(4764),v=n(806),y=s.setImmediate,w=s.clearImmediate,x=s.process,k=s.Dispatch,_=s.Function,E=s.MessageChannel,C=s.String,S=0,T={};f((function(){o=s.location}));var A=function(e){if(u(T,e)){var t=T[e];delete T[e],t()}},O=function(e){return function(){A(e)}},D=function(e){A(e.data)},I=function(e){s.postMessage(C(e),o.protocol+"//"+o.host)};y&&w||(y=function(e){h(arguments.length,1);var t=d(e)?e:_(e),n=p(arguments,1);return T[++S]=function(){l(t,void 0,n)},r(S),S},w=function(e){delete T[e]},v?r=function(e){x.nextTick(O(e))}:k&&k.now?r=function(e){k.now(O(e))}:E&&!g?(a=(i=new E).port2,i.port1.onmessage=D,r=c(a.postMessage,a)):s.addEventListener&&d(s.postMessage)&&!s.importScripts&&o&&"file:"!==o.protocol&&!f(I)?(r=I,s.addEventListener("message",D,!1)):r="onreadystatechange"in m("script")?function(e){b.appendChild(m("script")).onreadystatechange=function(){b.removeChild(this),A(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:y,clear:w}},3648:(e,t,n)=>{"use strict";var o=n(8844);e.exports=o(1..valueOf)},7578:(e,t,n)=>{"use strict";var o=n(8700),r=Math.max,i=Math.min;e.exports=function(e,t){var n=o(e);return n<0?r(n+t,0):i(n,t)}},5290:(e,t,n)=>{"use strict";var o=n(4413),r=n(4684);e.exports=function(e){return o(r(e))}},8700:(e,t,n)=>{"use strict";var o=n(8828);e.exports=function(e){var t=+e;return t!=t||0===t?0:o(t)}},3126:(e,t,n)=>{"use strict";var o=n(8700),r=Math.min;e.exports=function(e){var t=o(e);return t>0?r(t,9007199254740991):0}},690:(e,t,n)=>{"use strict";var o=n(4684),r=Object;e.exports=function(e){return r(o(e))}},8732:(e,t,n)=>{"use strict";var o=n(2615),r=n(8999),i=n(734),a=n(4849),s=n(5899),l=n(4201),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,l=a(e,d);if(l){if(void 0===t&&(t="default"),n=o(l,e,t),!r(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},8360:(e,t,n)=>{"use strict";var o=n(8732),r=n(734);e.exports=function(e){var t=o(e,"string");return r(t)?t:t+""}},3043:(e,t,n)=>{"use strict";var o={};o[n(4201)("toStringTag")]="z",e.exports="[object z]"===String(o)},4327:(e,t,n)=>{"use strict";var o=n(926),r=String;e.exports=function(e){if("Symbol"===o(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}},3691:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},4630:(e,t,n)=>{"use strict";var o=n(8844),r=0,i=Math.random(),a=o(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+i,36)}},9525:(e,t,n)=>{"use strict";var o=n(146);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5648:(e,t,n)=>{"use strict";var o=n(7697),r=n(3689);e.exports=o&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1500:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},9834:(e,t,n)=>{"use strict";var o=n(9037),r=n(9985),i=o.WeakMap;e.exports=r(i)&&/native code/.test(String(i))},5405:(e,t,n)=>{"use strict";var o=n(496),r=n(6812),i=n(6145),a=n(2560).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});r(t,e)||a(t,e,{value:i.f(e)})}},6145:(e,t,n)=>{"use strict";var o=n(4201);t.f=o},4201:(e,t,n)=>{"use strict";var o=n(9037),r=n(3430),i=n(6812),a=n(4630),s=n(146),l=n(9525),c=o.Symbol,d=r("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,n)=>{"use strict";var o=n(9989),r=n(3689),i=n(2297),a=n(8999),s=n(690),l=n(6310),c=n(5565),d=n(6522),u=n(7120),f=n(9042),b=n(4201),p=n(3615),m=b("isConcatSpreadable"),h=p>=51||!r((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};o({target:"Array",proto:!0,arity:1,forced:!h||!f("concat")},{concat:function(e){var t,n,o,r,i,a=s(this),f=u(a,0),b=0;for(t=-1,o=arguments.length;t<o;t++)if(g(i=-1===t?a:arguments[t]))for(r=l(i),c(b+r),n=0;n<r;n++,b++)n in i&&d(f,b,i[n]);else c(b+1),d(f,b++,i);return f.length=b,f}})},8077:(e,t,n)=>{"use strict";var o=n(9989),r=n(2960).filter;o({target:"Array",proto:!0,forced:!n(9042)("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},5728:(e,t,n)=>{"use strict";var o=n(9989),r=n(2960).find,i=n(7370),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),o({target:"Array",proto:!0,forced:a},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},4418:(e,t,n)=>{"use strict";var o=n(9989),r=n(1055);o({target:"Array",stat:!0,forced:!n(6431)((function(e){Array.from(e)}))},{from:r})},6801:(e,t,n)=>{"use strict";var o=n(9989),r=n(4328).includes,i=n(3689),a=n(7370);o({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},752:(e,t,n)=>{"use strict";var o=n(5290),r=n(7370),i=n(9478),a=n(618),s=n(2560).f,l=n(1934),c=n(7807),d=n(3931),u=n(7697),f=a.set,b=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:o(e),index:0,kind:t})}),(function(){var e=b(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var p=i.Arguments=i.Array;if(r("keys"),r("values"),r("entries"),!d&&u&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},6203:(e,t,n)=>{"use strict";var o=n(9989),r=n(8844),i=n(4413),a=n(5290),s=n(6834),l=r([].join);o({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},886:(e,t,n)=>{"use strict";var o=n(9989),r=n(2960).map;o({target:"Array",proto:!0,forced:!n(9042)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},9730:(e,t,n)=>{"use strict";var o=n(9989),r=n(2297),i=n(9429),a=n(8999),s=n(7578),l=n(6310),c=n(5290),d=n(6522),u=n(4201),f=n(9042),b=n(6004),p=f("slice"),m=u("species"),h=Array,g=Math.max;o({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,o,u,f=c(this),p=l(f),v=s(e,p),y=s(void 0===t?p:t,p);if(r(f)&&(n=f.constructor,(i(n)&&(n===h||r(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===h||void 0===n))return b(f,v,y);for(o=new(void 0===n?h:n)(g(y-v,0)),u=0;v<y;v++,u++)v in f&&d(o,u,f[v]);return o.length=u,o}})},5137:(e,t,n)=>{"use strict";var o=n(9989),r=n(8844),i=n(509),a=n(690),s=n(6310),l=n(8494),c=n(4327),d=n(3689),u=n(382),f=n(6834),b=n(7365),p=n(7298),m=n(3615),h=n(7922),g=[],v=r(g.sort),y=r(g.push),w=d((function(){g.sort(void 0)})),x=d((function(){g.sort(null)})),k=f("sort"),_=!d((function(){if(m)return m<70;if(!(b&&b>3)){if(p)return!0;if(h)return h<603;var e,t,n,o,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)g.push({k:t+o,v:n})}for(g.sort((function(e,t){return t.v-e.v})),o=0;o<g.length;o++)t=g[o].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));o({target:"Array",proto:!0,forced:w||!x||!k||!_},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(_)return void 0===e?v(t):v(t,e);var n,o,r=[],d=s(t);for(o=0;o<d;o++)o in t&&y(r,t[o]);for(u(r,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=s(r),o=0;o<n;)t[o]=r[o++];for(;o<d;)l(t,o++);return t}})},2506:(e,t,n)=>{"use strict";var o=n(9989),r=n(690),i=n(7578),a=n(8700),s=n(6310),l=n(5649),c=n(5565),d=n(7120),u=n(6522),f=n(8494),b=n(9042)("splice"),p=Math.max,m=Math.min;o({target:"Array",proto:!0,forced:!b},{splice:function(e,t){var n,o,b,h,g,v,y=r(this),w=s(y),x=i(e,w),k=arguments.length;for(0===k?n=o=0:1===k?(n=0,o=w-x):(n=k-2,o=m(p(a(t),0),w-x)),c(w+n-o),b=d(y,o),h=0;h<o;h++)(g=x+h)in y&&u(b,h,y[g]);if(b.length=o,n<o){for(h=x;h<w-o;h++)v=h+n,(g=h+o)in y?y[v]=y[g]:f(y,v);for(h=w;h>w-o+n;h--)f(y,h-1)}else if(n>o)for(h=w-o;h>x;h--)v=h+n-1,(g=h+o-1)in y?y[v]=y[g]:f(y,v);for(h=0;h<n;h++)y[h+x]=arguments[h+2];return l(y,w-o+n),b}})},9903:(e,t,n)=>{"use strict";var o=n(6812),r=n(1880),i=n(1797),a=n(4201)("toPrimitive"),s=Date.prototype;o(s,a)||r(s,a,i)},4284:(e,t,n)=>{"use strict";var o=n(7697),r=n(1236).EXISTS,i=n(8844),a=n(2148),s=Function.prototype,l=i(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,d=i(c.exec);o&&!r&&a(s,"name",{configurable:!0,get:function(){try{return d(c,l(this))[1]}catch(e){return""}}})},5398:(e,t,n)=>{"use strict";var o=n(9989),r=n(9037);o({global:!0,forced:r.globalThis!==r},{globalThis:r})},8324:(e,t,n)=>{"use strict";var o=n(9989),r=n(6058),i=n(1735),a=n(2615),s=n(8844),l=n(3689),c=n(9985),d=n(734),u=n(6004),f=n(2643),b=n(146),p=String,m=r("JSON","stringify"),h=s(/./.exec),g=s("".charAt),v=s("".charCodeAt),y=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,E=!b||l((function(){var e=r("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),C=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),S=function(e,t){var n=u(arguments),o=f(t);if(c(o)||void 0!==e&&!d(e))return n[1]=function(e,t){if(c(o)&&(t=a(o,this,p(e),t)),!d(t))return t},i(m,null,n)},T=function(e,t,n){var o=g(n,t-1),r=g(n,t+1);return h(k,e)&&!h(_,r)||h(_,e)&&!h(k,o)?"\\u"+w(v(e,0),16):e};m&&o({target:"JSON",stat:!0,arity:3,forced:E||C},{stringify:function(e,t,n){var o=u(arguments),r=i(E?S:m,null,o);return C&&"string"==typeof r?y(r,x,T):r}})},7629:(e,t,n)=>{"use strict";var o=n(9037);n(5997)(o.JSON,"JSON",!0)},9322:(e,t,n)=>{"use strict";n(319)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(800))},6646:(e,t,n)=>{"use strict";n(9322)},7509:(e,t,n)=>{"use strict";n(5997)(Math,"Math",!0)},9288:(e,t,n)=>{"use strict";var o=n(9989),r=n(3931),i=n(7697),a=n(9037),s=n(496),l=n(8844),c=n(5266),d=n(6812),u=n(3457),f=n(3622),b=n(734),p=n(8732),m=n(3689),h=n(2741).f,g=n(2474).f,v=n(2560).f,y=n(3648),w=n(1435).trim,x=a.Number,k=s.Number,_=x.prototype,E=a.TypeError,C=l("".slice),S=l("".charCodeAt),T=function(e){var t=p(e,"number");return"bigint"==typeof t?t:A(t)},A=function(e){var t,n,o,r,i,a,s,l,c=p(e,"number");if(b(c))throw new E("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(t=S(c,0))||45===t){if(88===(n=S(c,2))||120===n)return NaN}else if(48===t){switch(S(c,1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+c}for(a=(i=C(c,2)).length,s=0;s<a;s++)if((l=S(i,s))<48||l>r)return NaN;return parseInt(i,o)}return+c},O=c("Number",!x(" 0o1")||!x("0b1")||x("+0x1")),D=function(e){return f(_,e)&&m((function(){y(e)}))},I=function(e){var t=arguments.length<1?0:x(T(e));return D(this)?u(Object(t),this,I):t};I.prototype=_,O&&!r&&(_.constructor=I),o({global:!0,constructor:!0,wrap:!0,forced:O},{Number:I});var N=function(e,t){for(var n,o=i?h(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(","),r=0;o.length>r;r++)d(t,n=o[r])&&!d(e,n)&&v(e,n,g(t,n))};r&&k&&N(s.Number,k),(O||r)&&N(s.Number,x)},1552:(e,t,n)=>{"use strict";var o=n(9989),r=n(7897);o({target:"Number",stat:!0,forced:Number.parseInt!==r},{parseInt:r})},429:(e,t,n)=>{"use strict";var o=n(9989),r=n(5394);o({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},1919:(e,t,n)=>{"use strict";var o=n(9989),r=n(3689),i=n(5290),a=n(2474).f,s=n(7697);o({target:"Object",stat:!0,forced:!s||r((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},9434:(e,t,n)=>{"use strict";var o=n(9989),r=n(146),i=n(3689),a=n(7518),s=n(690);o({target:"Object",stat:!0,forced:!r||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},8052:(e,t,n)=>{"use strict";var o=n(9989),r=n(3689),i=n(690),a=n(1868),s=n(1748);o({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},9358:(e,t,n)=>{"use strict";var o=n(9989),r=n(690),i=n(300);o({target:"Object",stat:!0,forced:n(3689)((function(){i(1)}))},{keys:function(e){return i(r(e))}})},228:(e,t,n)=>{"use strict";var o=n(3043),r=n(1880),i=n(5073);o||r(Object.prototype,"toString",i,{unsafe:!0})},6466:(e,t,n)=>{"use strict";var o=n(9989),r=n(9419).values;o({target:"Object",stat:!0},{values:function(e){return r(e)}})},1692:(e,t,n)=>{"use strict";var o=n(9989),r=n(2615),i=n(509),a=n(8742),s=n(9302),l=n(8734);o({target:"Promise",stat:!0,forced:n(562)},{all:function(e){var t=this,n=a.f(t),o=n.resolve,c=n.reject,d=s((function(){var n=i(t.resolve),a=[],s=0,d=1;l(e,(function(e){var i=s++,l=!1;d++,r(n,t,e).then((function(e){l||(l=!0,a[i]=e,--d||o(a))}),c)})),--d||o(a)}));return d.error&&c(d.value),n.promise}})},5089:(e,t,n)=>{"use strict";var o=n(9989),r=n(3931),i=n(7073).CONSTRUCTOR,a=n(7919),s=n(6058),l=n(9985),c=n(1880),d=a&&a.prototype;if(o({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&l(a)){var u=s("Promise").prototype.catch;d.catch!==u&&c(d,"catch",u,{unsafe:!0})}},6697:(e,t,n)=>{"use strict";var o,r,i,a=n(9989),s=n(3931),l=n(806),c=n(9037),d=n(2615),u=n(1880),f=n(9385),b=n(5997),p=n(4241),m=n(509),h=n(9985),g=n(8999),v=n(767),y=n(6373),w=n(9886).set,x=n(231),k=n(920),_=n(9302),E=n(4410),C=n(618),S=n(7919),T=n(7073),A=n(8742),O=T.CONSTRUCTOR,D=T.REJECTION_EVENT,I=T.SUBCLASSING,N=C.getterFor("Promise"),j=C.set,M=S&&S.prototype,L=S,P=M,R=c.TypeError,z=c.document,F=c.process,B=A.f,$=B,V=!!(z&&z.createEvent&&c.dispatchEvent),U=function(e){var t;return!(!g(e)||!h(t=e.then))&&t},H=function(e,t){var n,o,r,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&&Q(t),t.rejection=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),r=!0)),n===e.promise?c(new R("Promise-chain cycle")):(o=U(n))?d(o,n,l,c):l(n)):c(i)}catch(e){u&&!r&&u.exit(),c(e)}},Y=function(e,t){e.notified||(e.notified=!0,x((function(){for(var n,o=e.reactions;n=o.get();)H(n,e);e.notified=!1,t&&!e.rejection&&G(e)})))},W=function(e,t,n){var o,r;V?((o=z.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),c.dispatchEvent(o)):o={promise:t,reason:n},!D&&(r=c["on"+e])?r(o):"unhandledrejection"===e&&k("Unhandled promise rejection",n)},G=function(e){d(w,c,(function(){var t,n=e.facade,o=e.value;if(q(e)&&(t=_((function(){l?F.emit("unhandledRejection",o,n):W("unhandledrejection",n,o)})),e.rejection=l||q(e)?2:1,t.error))throw t.value}))},q=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){d(w,c,(function(){var t=e.facade;l?F.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)}))},Z=function(e,t,n){return function(o){e(t,o,n)}},X=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Y(e,!0))},K=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new R("Promise can't be resolved itself");var o=U(t);o?x((function(){var n={done:!1};try{d(o,t,Z(K,n,e),Z(X,n,e))}catch(t){X(n,t,e)}})):(e.value=t,e.state=1,Y(e,!1))}catch(t){X({done:!1},t,e)}}};if(O&&(P=(L=function(e){v(this,P),m(e),d(o,this);var t=N(this);try{e(Z(K,t),Z(X,t))}catch(e){X(t,e)}}).prototype,(o=function(e){j(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:0,value:void 0})}).prototype=u(P,"then",(function(e,t){var n=N(this),o=B(y(this,L));return n.parent=!0,o.ok=!h(e)||e,o.fail=h(t)&&t,o.domain=l?F.domain:void 0,0===n.state?n.reactions.add(o):x((function(){H(o,n)})),o.promise})),r=function(){var e=new o,t=N(e);this.promise=e,this.resolve=Z(K,t),this.reject=Z(X,t)},A.f=B=function(e){return e===L||void 0===e?new r(e):$(e)},!s&&h(S)&&M!==Object.prototype)){i=M.then,I||u(M,"then",(function(e,t){var n=this;return new L((function(e,t){d(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete M.constructor}catch(e){}f&&f(M,P)}a({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:L}),b(L,"Promise",!1,!0),p("Promise")},3964:(e,t,n)=>{"use strict";n(6697),n(1692),n(5089),n(8829),n(2092),n(7905)},8829:(e,t,n)=>{"use strict";var o=n(9989),r=n(2615),i=n(509),a=n(8742),s=n(9302),l=n(8734);o({target:"Promise",stat:!0,forced:n(562)},{race:function(e){var t=this,n=a.f(t),o=n.reject,c=s((function(){var a=i(t.resolve);l(e,(function(e){r(a,t,e).then(n.resolve,o)}))}));return c.error&&o(c.value),n.promise}})},2092:(e,t,n)=>{"use strict";var o=n(9989),r=n(8742);o({target:"Promise",stat:!0,forced:n(7073).CONSTRUCTOR},{reject:function(e){var t=r.f(this);return(0,t.reject)(e),t.promise}})},7905:(e,t,n)=>{"use strict";var o=n(9989),r=n(6058),i=n(3931),a=n(7919),s=n(7073).CONSTRUCTOR,l=n(2945),c=r("Promise"),d=i&&!s;o({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(d&&this===c?a:this,e)}})},50:(e,t,n)=>{"use strict";var o=n(9989),r=n(6058),i=n(1735),a=n(6761),s=n(2655),l=n(5027),c=n(8999),d=n(5391),u=n(3689),f=r("Reflect","construct"),b=Object.prototype,p=[].push,m=u((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),h=!u((function(){f((function(){}))})),g=m||h;o({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(h&&!m)return f(e,t,n);if(e===n){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 o=[null];return i(p,o,t),new(i(a,e,o))}var r=n.prototype,u=d(c(r)?r:b),g=i(e,u,t);return c(g)?g:u}})},2349:(e,t,n)=>{"use strict";var o=n(9989),r=n(2615),i=n(8999),a=n(5027),s=n(6251),l=n(2474),c=n(1868);o({target:"Reflect",stat:!0},{get:function e(t,n){var o,d,u=arguments.length<3?t:arguments[2];return a(t)===u?t[n]:(o=l.f(t,n))?s(o)?o.value:void 0===o.get?void 0:r(o.get,u):i(d=c(t))?e(d,n,u):void 0}})},2003:(e,t,n)=>{"use strict";var o=n(7697),r=n(9037),i=n(8844),a=n(5266),s=n(3457),l=n(5773),c=n(5391),d=n(2741).f,u=n(3622),f=n(1245),b=n(4327),p=n(3477),m=n(7901),h=n(8055),g=n(1880),v=n(3689),y=n(6812),w=n(618).enforce,x=n(4241),k=n(4201),_=n(2100),E=n(6422),C=k("match"),S=r.RegExp,T=S.prototype,A=r.SyntaxError,O=i(T.exec),D=i("".charAt),I=i("".replace),N=i("".indexOf),j=i("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,P=/a/g,R=new S(L)!==L,z=m.MISSED_STICKY,F=m.UNSUPPORTED_Y,B=o&&(!R||z||_||E||v((function(){return P[C]=!1,S(L)!==L||S(P)===P||"/a/i"!==String(S(L,"i"))})));if(a("RegExp",B)){for(var $=function(e,t){var n,o,r,i,a,d,m=u(T,this),h=f(e),g=void 0===t,v=[],x=e;if(!m&&h&&g&&e.constructor===$)return e;if((h||u(T,e))&&(e=e.source,g&&(t=p(x))),e=void 0===e?"":b(e),t=void 0===t?"":b(t),x=e,_&&"dotAll"in L&&(o=!!t&&N(t,"s")>-1)&&(t=I(t,/s/g,"")),n=t,z&&"sticky"in L&&(r=!!t&&N(t,"y")>-1)&&F&&(t=I(t,/y/g,"")),E&&(e=(i=function(e){for(var t,n=e.length,o=0,r="",i=[],a=c(null),s=!1,l=!1,d=0,u="";o<=n;o++){if("\\"===(t=D(e,o)))t+=D(e,++o);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:O(M,j(e,o+1))&&(o+=2,l=!0),r+=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:r+=t}return[r,i]}(e))[0],v=i[1]),a=s(S(e,t),m?this:T,$),(o||r||v.length)&&(d=w(a),o&&(d.dotAll=!0,d.raw=$(function(e){for(var t,n=e.length,o=0,r="",i=!1;o<=n;o++)"\\"!==(t=D(e,o))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),r+=t):r+="[\\s\\S]":r+=t+D(e,++o);return r}(e),n)),r&&(d.sticky=!0),v.length&&(d.groups=v)),e!==x)try{l(a,"source",""===x?"(?:)":x)}catch(e){}return a},V=d(S),U=0;V.length>U;)h($,S,V[U++]);T.constructor=$,$.prototype=T,g(r,"RegExp",$,{constructor:!0})}x("RegExp")},4043:(e,t,n)=>{"use strict";var o=n(9989),r=n(6308);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},2826:(e,t,n)=>{"use strict";var o=n(1236).PROPER,r=n(1880),i=n(5027),a=n(4327),s=n(3689),l=n(3477),c=RegExp.prototype,d=c.toString,u=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),f=o&&"toString"!==d.name;(u||f)&&r(c,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},7985:(e,t,n)=>{"use strict";n(319)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(800))},9649:(e,t,n)=>{"use strict";n(7985)},3843:(e,t,n)=>{"use strict";var o=n(9989),r=n(8844),i=n(2124),a=n(4684),s=n(4327),l=n(7413),c=r("".indexOf);o({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,n)=>{"use strict";var o=n(730).charAt,r=n(4327),i=n(618),a=n(1934),s=n(7807),l=i.set,c=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:r(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?s(void 0,!0):(e=o(n,r),t.index+=e.length,s(e,!1))}))},2462:(e,t,n)=>{"use strict";var o=n(2615),r=n(8678),i=n(5027),a=n(981),s=n(3126),l=n(4327),c=n(4684),d=n(4849),u=n(1514),f=n(6100);r("match",(function(e,t,n){return[function(t){var n=c(this),r=a(t)?void 0:d(t,e);return r?o(r,t,n):new RegExp(t)[e](l(n))},function(e){var o=i(this),r=l(e),a=n(t,o,r);if(a.done)return a.value;if(!o.global)return f(o,r);var c=o.unicode;o.lastIndex=0;for(var d,b=[],p=0;null!==(d=f(o,r));){var m=l(d[0]);b[p]=m,""===m&&(o.lastIndex=u(r,s(o.lastIndex),c)),p++}return 0===p?null:b}]}))},7267:(e,t,n)=>{"use strict";var o=n(1735),r=n(2615),i=n(8844),a=n(8678),s=n(3689),l=n(5027),c=n(9985),d=n(981),u=n(8700),f=n(3126),b=n(4327),p=n(4684),m=n(1514),h=n(4849),g=n(7017),v=n(6100),y=n(4201)("replace"),w=Math.max,x=Math.min,k=i([].concat),_=i([].push),E=i("".indexOf),C=i("".slice),S="$0"==="a".replace(/./,"$0"),T=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(e,t,n){var i=T?"$":"$0";return[function(e,n){var o=p(this),i=d(e)?void 0:h(e,y);return i?r(i,e,o,n):r(t,b(o),e,n)},function(e,r){var a=l(this),s=b(e);if("string"==typeof r&&-1===E(r,i)&&-1===E(r,"$<")){var d=n(t,a,s,r);if(d.done)return d.value}var p=c(r);p||(r=b(r));var h,y=a.global;y&&(h=a.unicode,a.lastIndex=0);for(var S,T=[];null!==(S=v(a,s))&&(_(T,S),y);){""===b(S[0])&&(a.lastIndex=m(s,f(a.lastIndex),h))}for(var A,O="",D=0,I=0;I<T.length;I++){for(var N,j=b((S=T[I])[0]),M=w(x(u(S.index),s.length),0),L=[],P=1;P<S.length;P++)_(L,void 0===(A=S[P])?A:String(A));var R=S.groups;if(p){var z=k([j],L,M,s);void 0!==R&&_(z,R),N=b(o(r,void 0,z))}else N=g(j,s,M,L,R,r);M>=D&&(O+=C(s,D,M)+N,D=M+j.length)}return O+C(s,D)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!S||T)},7872:(e,t,n)=>{"use strict";var o=n(2615),r=n(8678),i=n(5027),a=n(981),s=n(4684),l=n(953),c=n(4327),d=n(4849),u=n(6100);r("search",(function(e,t,n){return[function(t){var n=s(this),r=a(t)?void 0:d(t,e);return r?o(r,t,n):new RegExp(t)[e](c(n))},function(e){var o=i(this),r=c(e),a=n(t,o,r);if(a.done)return a.value;var s=o.lastIndex;l(s,0)||(o.lastIndex=0);var d=u(o,r);return l(o.lastIndex,s)||(o.lastIndex=s),null===d?-1:d.index}]}))},268:(e,t,n)=>{"use strict";var o,r=n(9989),i=n(6576),a=n(2474).f,s=n(3126),l=n(4327),c=n(2124),d=n(4684),u=n(7413),f=n(3931),b=i("".slice),p=Math.min,m=u("startsWith");r({target:"String",proto:!0,forced:!!(f||m||(o=a(String.prototype,"startsWith"),!o||o.writable))&&!m},{startsWith:function(e){var t=l(d(this));c(e);var n=s(p(arguments.length>1?arguments[1]:void 0,t.length)),o=l(e);return b(t,n,n+o.length)===o}})},8436:(e,t,n)=>{"use strict";var o=n(9989),r=n(1435).trim;o({target:"String",proto:!0,forced:n(5984)("trim")},{trim:function(){return r(this)}})},8373:(e,t,n)=>{"use strict";n(5405)("asyncIterator")},7855:(e,t,n)=>{"use strict";var o=n(9989),r=n(9037),i=n(2615),a=n(8844),s=n(3931),l=n(7697),c=n(146),d=n(3689),u=n(6812),f=n(3622),b=n(5027),p=n(5290),m=n(8360),h=n(4327),g=n(5684),v=n(5391),y=n(300),w=n(2741),x=n(6062),k=n(7518),_=n(2474),E=n(2560),C=n(8920),S=n(9556),T=n(1880),A=n(2148),O=n(3430),D=n(2713),I=n(7248),N=n(4630),j=n(4201),M=n(6145),L=n(5405),P=n(3032),R=n(5997),z=n(618),F=n(2960).forEach,B=D("hidden"),$=z.set,V=z.getterFor("Symbol"),U=Object.prototype,H=r.Symbol,Y=H&&H.prototype,W=r.RangeError,G=r.TypeError,q=r.QObject,Q=_.f,Z=E.f,X=x.f,K=S.f,J=a([].push),ee=O("symbols"),te=O("op-symbols"),ne=O("wks"),oe=!q||!q.prototype||!q.prototype.findChild,re=function(e,t,n){var o=Q(U,t);o&&delete U[t],Z(e,t,n),o&&e!==U&&Z(U,t,o)},ie=l&&d((function(){return 7!==v(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?re:Z,ae=function(e,t){var n=ee[e]=v(Y);return $(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},se=function(e,t,n){e===U&&se(te,t,n),b(e);var o=m(t);return b(n),u(ee,o)?(n.enumerable?(u(e,B)&&e[B][o]&&(e[B][o]=!1),n=v(n,{enumerable:g(0,!1)})):(u(e,B)||Z(e,B,g(1,v(null))),e[B][o]=!0),ie(e,o,n)):Z(e,o,n)},le=function(e,t){b(e);var n=p(t),o=y(n).concat(fe(n));return F(o,(function(t){l&&!i(ce,n,t)||se(e,t,n[t])})),e},ce=function(e){var t=m(e),n=i(K,this,t);return!(this===U&&u(ee,t)&&!u(te,t))&&(!(n||!u(this,t)||!u(ee,t)||u(this,B)&&this[B][t])||n)},de=function(e,t){var n=p(e),o=m(t);if(n!==U||!u(ee,o)||u(te,o)){var r=Q(n,o);return!r||!u(ee,o)||u(n,B)&&n[B][o]||(r.enumerable=!0),r}},ue=function(e){var t=X(p(e)),n=[];return F(t,(function(e){u(ee,e)||u(I,e)||J(n,e)})),n},fe=function(e){var t=e===U,n=X(t?te:p(e)),o=[];return F(n,(function(e){!u(ee,e)||t&&!u(U,e)||J(o,ee[e])})),o};c||(T(Y=(H=function(){if(f(Y,this))throw new G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,t=N(e),n=function(e){var o=void 0===this?r:this;o===U&&i(n,te,e),u(o,B)&&u(o[B],t)&&(o[B][t]=!1);var a=g(1,e);try{ie(o,t,a)}catch(e){if(!(e instanceof W))throw e;re(o,t,a)}};return l&&oe&&ie(U,t,{configurable:!0,set:n}),ae(t,e)}).prototype,"toString",(function(){return V(this).tag})),T(H,"withoutSetter",(function(e){return ae(N(e),e)})),S.f=ce,E.f=se,C.f=le,_.f=de,w.f=x.f=ue,k.f=fe,M.f=function(e){return ae(j(e),e)},l&&(A(Y,"description",{configurable:!0,get:function(){return V(this).description}}),s||T(U,"propertyIsEnumerable",ce,{unsafe:!0}))),o({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),F(y(ne),(function(e){L(e)})),o({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),o({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}),o({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue}),P(),R(H,"Symbol"),I[B]=!0},6544:(e,t,n)=>{"use strict";var o=n(9989),r=n(7697),i=n(9037),a=n(8844),s=n(6812),l=n(9985),c=n(3622),d=n(4327),u=n(2148),f=n(8758),b=i.Symbol,p=b&&b.prototype;if(r&&l(b)&&(!("description"in p)||void 0!==b().description)){var m={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:d(arguments[0]),t=c(p,this)?new b(e):void 0===e?b():b(e);return""===e&&(m[t]=!0),t};f(h,b),h.prototype=p,p.constructor=h;var g="Symbol(description detection)"===String(b("description detection")),v=a(p.valueOf),y=a(p.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),k=a("".slice);u(p,"description",{configurable:!0,get:function(){var e=v(this);if(s(m,e))return"";var t=y(e),n=g?k(t,7,-1):x(t,w,"$1");return""===n?void 0:n}}),o({global:!0,constructor:!0,forced:!0},{Symbol:h})}},3975:(e,t,n)=>{"use strict";var o=n(9989),r=n(6058),i=n(6812),a=n(4327),s=n(3430),l=n(6549),c=s("string-to-symbol-registry"),d=s("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(c,t))return c[t];var n=r("Symbol")(t);return c[t]=n,d[n]=t,n}})},4254:(e,t,n)=>{"use strict";n(5405)("iterator")},9749:(e,t,n)=>{"use strict";n(7855),n(3975),n(1445),n(8324),n(9434)},1445:(e,t,n)=>{"use strict";var o=n(9989),r=n(6812),i=n(734),a=n(3691),s=n(3430),l=n(6549),c=s("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(r(c,e))return c[e]}})},9373:(e,t,n)=>{"use strict";var o=n(5405),r=n(3032);o("toPrimitive"),r()},6793:(e,t,n)=>{"use strict";var o=n(6058),r=n(5405),i=n(5997);r("toStringTag"),i(o("Symbol"),"Symbol")},8832:(e,t,n)=>{"use strict";n(5398)},7522:(e,t,n)=>{"use strict";var o=n(9037),r=n(6338),i=n(3265),a=n(7612),s=n(5773),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in r)r[c]&&l(o[c]&&o[c].prototype);l(i)},6265:(e,t,n)=>{"use strict";var o=n(9037),r=n(6338),i=n(3265),a=n(752),s=n(5773),l=n(5997),c=n(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),r[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in r)u(o[f]&&o[f].prototype,f);u(i,"DOMTokenList")}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.b=document.baseURI||self.location.href,n.nc=void 0;var o={};return(()=>{"use strict";n.r(o),n.d(o,{Editor:()=>js,ItemStore:()=>Xc,LevelEditor:()=>wc,Presenter:()=>ks,ValidationPresenter:()=>hc,bundleLoader:()=>ad,engine:()=>Za,renderingContext:()=>Cr,system:()=>fr,utils:()=>dr,validate:()=>ss});var e="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},t="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,l="ArrayBuffer"in e;if(l)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function u(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 f(e){return"string"!=typeof e&&(e=String(e)),e}function b(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?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 m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&i&&((n=e)&&DataView.prototype.isPrototypeOf(n))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=v(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):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=m(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=m(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(i)return this.blob().then(g);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=h(t),o=/charset=([A-Za-z0-9_-]+)/.exec(e.type),r=o?o[1]:"utf-8";return t.readAsText(e,r),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=u(e),t=f(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[u(e)]},p.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},p.prototype.set=function(e,t){this.map[u(e)]=f(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),b(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),b(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),b(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function x(t,n){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var o,r,i=(n=n||{}).body;if(t instanceof x){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,n.headers||(this.headers=new p(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new p(n.headers)),this.method=(o=n.method||this.method||"GET",r=o.toUpperCase(),w.indexOf(r)>-1?r:o),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in e)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function k(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(r))}})),t}function _(e,t){if(!(this instanceof _))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 p(t.headers),this.url=t.url||"",this._initBody(e)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},y.call(x.prototype),y.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var E=[301,302,303,307,308];_.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})};var C=e.DOMException;try{new C}catch(e){(C=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),C.prototype.constructor=C}function S(t,n){return new Promise((function(o,r){var a=new x(t,n);if(a.signal&&a.signal.aborted)return r(new C("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}if(s.onload=function(){var e,t,n={statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,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 n=e.split(":"),o=n.shift().trim();if(o){var r=n.join(":").trim();try{t.append(o,r)}catch(e){console.warn("Response "+e.message)}}})),t)};0===a.url.indexOf("file://")&&(s.status<200||s.status>599)?n.status=200:n.status=s.status,n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;setTimeout((function(){o(new _(r,n))}),0)},s.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},s.onabort=function(){setTimeout((function(){r(new C("Aborted","AbortError"))}),0)},s.open(a.method,function(t){try{return""===t&&e.location.href?e.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&(i?s.responseType="blob":l&&(s.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof p||e.Headers&&n.headers instanceof e.Headers)){var d=[];Object.getOwnPropertyNames(n.headers).forEach((function(e){d.push(u(e)),s.setRequestHeader(e,f(n.headers[e]))})),a.headers.forEach((function(e,t){-1===d.indexOf(t)&&s.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){s.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=p,e.Request=x,e.Response=_);n(2506),n(8077),n(228),n(9749),n(6544),n(4254),n(752),n(1694),n(6265),n(5728),n(9358),n(7522),n(886),n(6801),n(3843),n(9373),n(9903),n(9288),n(8832),n(4338);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"__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 A=globalThis.__rdfjson_namespaces,O=0,D=function(e,t,n){return A[e]||(A[e]=t),{abbrev:e,ns:t,localname:n,full:t+n,pretty:"".concat(e,":").concat(n)}},I=function(e){var t=Object.keys(A).find((function(t){return 0===e.indexOf(A[t])}));if(t)return D(t,A[t],e.substring(A[t].length));var n=e.lastIndexOf("/"),o=e.lastIndexOf("#");return o>n&&(n=o),D("ns".concat(O+=1),e.substring(0,n+1),e.substring(n+1))};const N=function(e){var t=Object.keys(A).find((function(t){return 0===e.indexOf(A[t])}));return t?D(t,A[t],e.substring(A[t].length)).pretty:e},j=function(e){return I(e).pretty},M=function(e){var t=e.split(":");return 2===t.length&&A.hasOwnProperty(t[0])?A[t[0]]+t[1]:e},L=function(e,t){"string"==typeof e?A[e]=t:"object"===T(e)&&Object.keys(e).forEach((function(t){A[t]=e[t]}))};n(8373),n(6793),n(7629),n(7509),n(8052),n(4284),n(9730),n(3964),n(6466),n(2826),n(9649);function P(e){return(P="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 R=function(e){return void 0!==e&&(null===e||"object"===P(e)||Array.isArray(e)||"function"==typeof e)},z=function(e){return"string"==typeof e||e instanceof String},F=function(e,t,n){0===e[t][n].length&&(delete e[t][n],0===Object.keys(e[t]).length&&delete e[t])},B=function(e){if(!R(e[0]))throw new Error("Graph is not a object.");if(!z(e[1]))throw new Error("Subject is not a string.");if(!z(e[2]))throw new Error("Predicate is not a string.");if(!R(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.")},$=function(e,t){return e===t||null==e&&e===t||(z(e)?z(t)?e===t:e===t.value:z(t)?e.value===t:e.type===t.type&&e.value===t.value&&e.lang===t.lang&&e.datatype===t.datatype)},V=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},U=function(e){return"".concat(e.value).concat(e.type).concat(e.lang||"").concat(e.datatype||"").concat(e.ng||"")};const H={isObject:R,isString:z,isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},statementEquals:function(e,t){return e.s===t.s&&e.p===t.p&&$(e.o,t.o)},add:function(e,t,n,o,r){if(B([e,t,n,o]),void 0===e[t])return e[t]={},e[t][n]=[o],o;if(void 0===e[t][n])return e[t][n]=[o],o;var i,a=e[t][n];if(!r)for(i=a.length-1;i>=0;i--)if($(o,a[i]))return a[i];return a.push(o),o},remove:function(e,t,n,o){if(B([e,t,n,o]),void 0!==e[t]&&void 0!==e[t][n]){var r,i=e[t][n];for(r=i.length-1;r>=0;r--)if($(o,i[r])){var a=i[r];return i.splice(r,1),F(e,t,n),a}}},contains:function(e,t,n,o){if(B([e,t,n,o]),void 0!==e[t]&&void 0!==e[t][n]){var r,i=e[t][n];for(r=i.length-1;r>=0;r--)if($(o,i[r]))return i[r]}},cleanup:F,checkForWrongArgs:B,objectEquals:$,findDirectOrRDFValue:function(e,t,n){var o=e.find(t,n);if(o.length>0)return"bnode"!==o[0].getType()?o[0].getValue():e.findFirstValue(o[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],n={};return Object.keys(e).forEach((function(o){var r=e[o];n[o]={},Object.keys(r).forEach((function(e){var i=r[e];if(1===i.length)n[o][e]=[V(i[0])];else if(t){var a=[],s=new Set;n[o][e]=a,r[e].forEach((function(e){var t=V(e),n=U(t);s.has(n)||(s.add(n),a.push(t))}))}else{var l=[];n[o][e]=l,r[e].forEach((function(e){l.push(V(e))}))}}))})),n}};function Y(e){return(Y="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 W(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,G(o.key),o)}}function G(e){var t=function(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y(t)?t:String(t)}var q=function(){function e(t,n,o,r,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=n,this._p=o,this._o=r,this._o._statement=this,this._asserted=i}var t,n,o;return t=e,(n=[{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=M(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=M(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())}}])&&W(t.prototype,n),o&&W(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Q=(n(5137),n(6203),n(2568));const Z=function(e,t){var n=[],o=new Set((t||[]).map((function(e){return M(e)}))),r=[],i={},a=function(e){var t=e.getValue();e.getLanguage()&&(t+="@".concat(e.getLanguage()));var n=e.getDatatype();return n&&"http://www.w3.org/2001/XMLSchema#string"!==n&&"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"!==n&&(t+="^^".concat(n)),t},s=function(e,t){var n=i[e]||{rels:[]};i[e]=n,n.rels.push(t)};return e.find().forEach((function(e){var t=e.getSubject(),i=e.getPredicate();if(!o.has(i)){var l="bnode"===e.getType(),c=e.isSubjectBlank();if(c||l)return r.push(e),c&&s(e.getSubject(),l?i:i+a(e)),void("bnode"===e.getType()&&s(e.getValue(),c?i:t+i));n.push(t+i+a(e))}})),Object.values(i).forEach((function(e){e.rels.sort(),e.hash=Q(e.rels.join(""))})),r.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)),n.push(t.join(""))})),n.sort(),Q(n.join(""))};class X{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}X.prototype.termType="BlankNode";const K=X;class J{equals(e){return!!e&&e.termType===this.termType}}J.prototype.termType="DefaultGraph",J.prototype.value="";const ee=J;const te=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 n=e.fromTerm(t.subject),o=e.fromTerm(t.predicate),r=e.fromTerm(t.object),i=e.fromTerm(t.graph);return e.quad(n,o,r,i)}if("Variable"===t.termType)return e.variable(t.value);throw new Error("unknown termType "+t.termType)};class ne{constructor(e,t,n){this.value=e,this.language=t,this.datatype=n}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}}ne.prototype.termType="Literal";const oe=ne;class re{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}re.prototype.termType="NamedNode";const ie=re;class ae{constructor(e,t,n,o){this.subject=e,this.predicate=t,this.object=n,this.graph=o}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)}}ae.prototype.termType="Quad",ae.prototype.value="";const se=ae;class le{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}le.prototype.termType="Variable";const ce=le,de=new ie("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),ue=new ie("http://www.w3.org/2001/XMLSchema#string");class fe{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new ee}}namedNode(e){return new ie(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new K(e)}literal(e,t){return"string"==typeof t?new oe(e,t,de):new oe(e,"",t||ue)}variable(e){return new ce(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,n,o=this.defaultGraph()){return new se(e,t,n,o)}fromTerm(e){return te(this,e)}fromQuad(e){return te(this,e)}}fe.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const be=new fe;var pe=function(e){return 0===e.indexOf("_:")?e.substring(2):e},me=function(e){return e.find().map((function(e){var t=e.getSubject(),n=e.getPredicate(),o=function(e){if(e.value)switch(e.type){case"literal":if(e.lang)return be.literal(e.value,e.lang);if(e.datatype){var t=be.namedNode(e.datatype);return be.literal(e.value,t)}return be.literal(e.value);case"uri":return be.namedNode(e.value);case"blank":return be.blankNode(pe(e.value))}}(e.getObject()),r=e.getNamedGraph()?be.namedNode(e.getNamedGraph()):void 0;return be.quad(e.isSubjectBlank()?be.blankNode(pe(t)):be.namedNode(t),be.namedNode(n),o,r)}))},he=function(e){return 0===e.indexOf("_:")?e:"_:".concat(e)},ge=function(e,t){var n=t||new Graph,o=function(e){var t=function(e){switch(e.termType){case"NamedNode":return{value:e.value,type:"uri"};case"BlankNode":return{value:he(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){n.add("BlankNode"===e.subject.termType?he(e.subject.value):e.subject.value,"BlankNode"===e.predicate.termType?he(e.predicate.value):e.predicate.value,o(e))}))};function ve(e){return(ve="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 ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,xe(o.key),o)}}function xe(e){var t=function(e,t){if("object"!=ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ve(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ve(t)?t:String(t)}var ke=function(e){return 0===e.length?e:[e[0]]},_e=function e(t,n,o){return{object:function(r){for(var i=0;i<n.length;i++){var a=void 0;if(o)a=n[i].getSubject();else{var s=n[i].getType();if("uri"===s||"bnode"===s)continue;a=n[i].getValue()}var l=t.find(a,r);l.length>0&&e(t,[l[0]])}return e(t,[])},objects:function(r){var i,a=[];if(!0===o)for(i=0;i<n.length;i++)a=a.concat(t.find(n[i].getSubject(),r));else for(i=0;i<n.length;i++){var s=n[i].getType();"uri"!==s&&"bnode"!==s||(a=a.concat(t.find(n[i].getValue(),r)))}return e(t,a)},constr:function(r,i){var a=i;H.isString(a)&&(a={type:"uri",value:a});for(var s=[],l=0;l<n.length;l++){var c=o?n[l].getSubject():n[l].getValue();t.find(c,r,a).length>0&&s.push(n[l])}return e(t,s,o)},each:function(r,i){if(!0===o)for(var a=0;a<n.length;a++){var s="_:"===n[a].getSubject().substring(0,2)?"bnode":"uri";null!=i&&i!==s||r(e(t,n[a],o))}else for(var l=0;l<n.length;l++)r(e(t,n[l],o))},statements:function(){return n},nodes:function(e){var t=[];if(!0===o)for(var r=0;r<n.length;r++){var i="_:"===n[r].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push({type:i,value:n[r].getSubject()})}else for(var a=0;a<n.length;a++)null!=e&&e!==n[a].getType()||t.push(n[a].getObject());return t},values:function(e){var t=[];if(!0===o)for(var r=0;r<n.length;r++){var i="_:"===n[r].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push(n[r].getSubject())}else for(var a=0;a<n.length;a++)null!=e&&e!==n[a].getType()||t.push(n[a].getValue());return t},firstValue:function(e){if(!0===o)for(var t=0;t<n.length;t++){var r="_:"===n[t].getSubject().substring(0,2)?"bnode":"uri";if(null==e||e===r)return n[t].getSubject()}else for(var i=0;i<n.length;i++)if(null==e||e===n[i].getType())return n[i].getValue()}}},Ee=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;ye(this,e),this._graph=t||{},this._bnodes={},this._bnodesIndexed=!1,!1!==n&&this.validate(),this._changed=!1}var t,n,o;return t=e,(n=[{key:"addQuads",value:function(e){return ge(e,this),this}},{key:"toQuads",value:function(){return me(this)}},{key:"isEmpty",value:function(){var e=this;return!Object.keys(this._graph).find((function(t){var n=e._graph[t];return Object.keys(n).find((function(e){return n[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 n,o={},r=e.find(),i=0;i<r.length;i++){var a=r[i],s=a.getSubject(),l=a.getPredicate(),c=a.getCleanObject();t&&(c.ng=t),0===s.indexOf("_:")&&(n=o[s]||this._newBNode(),o[s]=n,s=n),0===l.indexOf("_:")&&(n=o[l]||this._newBNode(),o[l]=n,l=n),"bnode"===c.type&&(n=o[c.value]||this._newBNode(),o[c.value]=n,c.value=n),this.add(s,l,c)}}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0;if(e instanceof q){var i=e.getPredicate(),a=e.getObject(),s=e.getSubject();this._trackBNodes(s,i,a);var l=this._graphObject(a),c=H.add(this._graph,s,i,l,r);return!0!==o&&this.setChanged(),this._get(s,i,c,!0)}return this.create(e,t,n,!0,o,r)}},{key:"addL",value:function(e,t,n,o){var r={type:"literal",value:n};return"string"==typeof o&&(r.lang=o),this.create(e,t,r,!0)}},{key:"addD",value:function(e,t,n,o){var r={type:"literal",value:n};return"string"==typeof o&&(r.datatype=M(o)),this.create(e,t,r,!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,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=e,s=t,l=n;if(a=null==a?this._newBNode():M(a),s=null==s?this._newBNode():M(s),null==l?l={type:"bnode",value:this._newBNode()}:H.isString(l)?l={type:"uri",value:M(l)}:"object"!==ve(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=M(l.value)),l.datatype&&(l.datatype=M(l.datatype))),!1!==o){var c=H.add(this._graph,a,s,l,i);return!0!==r&&this.setChanged(),this._getOrCreate(a,s,c,!0)}return new q(this,a,s,l,!1)}},{key:"findAndRemove",value:function(e,t,n){for(var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=this.find(e,t,n),i=0;i<r.length;i++)this.remove(r[i],o)}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getSubject(),o=e.getPredicate(),r=e.getObject();this._trackBNodes(n,o,r),null!=H.remove(this._graph,n,o,r)&&!0!==t&&this.setChanged()}},{key:"find",value:function(e,t,n){var o=e,r=t,i=n;if("string"==typeof o&&(o=M(o)),"string"==typeof r&&(r=M(r)),"object"===ve(i)&&null!==i&&"uri"===i.type?i.value=M(i.value):"string"==typeof i&&(i={type:"uri",value:M(i)}),null==i)return null==r?null==o?this._find():this._findS(o):null==o?this._findP(r):this._findSP(o,r);if(null==r)return null==o?this._findO(i):this._findSO(o,i);if(null==o)return this._findPO(r,i);var a=this._get(o,r,H.contains(this._graph,o,r,i),!0);return null==a?[]:[a]}},{key:"findFirstValue",value:function(e,t){var n=this.find(e,t);if(n.length>0)return n[0].getValue()}},{key:"projection",value:function(e,t,n){var o=this,r={};return Object.keys(t).forEach((function(i){var a=t[i],s=Array.isArray(a)?o.findPath(e,a):o.find(e,a);if(s.length>0)switch("*"===i[0]?r[i.substr(1)]=s.map((function(e){return e.getValue()})):r[i]=s[0].getValue(),n||"none"){case"statement":r["*".concat(i)]=s;break;case"objects":r["*".concat(i)]=s.map((function(e){return e.getCleanObject()}));break;case"values":r["*".concat(i)]=s.map((function(e){return e.getValue()}))}})),r}},{key:"subjects",value:function(e,t){return _e(this,this.find(null,e,t),!0)}},{key:"subject",value:function(e,t){return _e(this,ke(this.find(null,e,t)),!0)}},{key:"objects",value:function(e,t){return _e(this,this.find(e,t,null))}},{key:"object",value:function(e,t){return _e(this,ke(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,n){var o,r=this;if(Array.isArray(e)&&0!==e.length){var i=o=this._newBNode(),a=e.length-1;e.forEach((function(e,o){r[t](i,"rdf:first",e,n),o!==a?i=r.add(i,"rdf:rest").getValue():r.add(i,"rdf:rest","rdf:nil")}))}else o=M("rdf:nil");return o}},{key:"removeList",value:function(e){var t=!1,n="object"===ve(e)?e.value:e;try{var o=M("rdf:nil");for(t=n===o;n!==o&&null!=n;){var r=this.findFirstValue(n,"rdf:rest");this.findAndRemove(n),t=null!=(n=r)}}catch(e){return console.warn("Invalid list for object: ".concat(n)),!1}return t}},{key:"getList",value:function(e){var t="object"===ve(e)?e.value:M(e),n=[];try{for(var o=M("rdf:nil");t!==o&&null!=t;)n.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 n}},{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 n=this,o=!1;return this.find(e,t).forEach((function(e){n.removeList(e.getValue())&&(n.remove(e),o=!0)})),o}},{key:"exportRDFJSON",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._graph,H.clone(this._graph,e)}},{key:"replaceSubject",value:function(e,t){return this.replaceURI(e,t)}},{key:"replaceURI",value:function(e,t){var n=this._graph;if(n.hasOwnProperty(e)){if(n.hasOwnProperty(t))throw new Error("Cannot replace subject with target URI since it already exists.");n[t]=n[e],delete n[e]}return this.forEach((function(n,o,r){"uri"===r.type&&r.value===e&&(r.value=t),n===t&&r._statement&&(r._statement._s=t)})),this}},{key:"replaceBlankWithURI",value:function(e,t,n){var o=this._graph;if(o.hasOwnProperty(e)){if(o.hasOwnProperty(t)){if(!n)throw new Error("Cannot replace subject with target URI since it already exists.");var r=o[t],i=o[e];Object.keys(i).forEach((function(e){if(r.hasOwnProperty(e)){var t=r[e],n=i[e].filter((function(e){return!t.find((function(t){return H.objectEquals(t,e)}))}));r[e]=t.concat(n)}else r[e]=i[e]})),delete o[e]}else o[t]=o[e],delete o[e];this.forEach((function(n,o,r){"bnode"===r.type&&r.value===e&&(r.value=t,r.type="uri"),n===t&&r._statement&&(r._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(n){var o=t[n];Object.keys(o).forEach((function(t){o[t].forEach((function(o){e(n,t,o)}))}))}))}},{key:"map",value:function(e){var t=[];return this.forEach((function(n){t.push(e(n))})),t}},{key:"equals",value:function(e,t){return Z(this,t)===Z(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,n,o){if(null!=n)return this._getOrCreate(e,t,n,o)}},{key:"_getOrCreate",value:function(e,t,n,o){return null==n._statement&&(n._statement=new q(this,e,t,n,o)),n._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 n=this;return null==this._graph[e]||null==this._graph[e][t]?[]:this._graph[e][t].map((function(o){return n._get(e,t,o,!0)}))}},{key:"_findS",value:function(e){var t=this,n=this._graph[e],o=Object.keys(n||{}).map((function(n){return t._findSP(e,n)}));return Array.prototype.concat.apply([],o)}},{key:"_find",value:function(){var e=this,t=[];return this.forEach((function(n,o,r){t.push(e._get(n,o,r,!0))})),t}},{key:"_findP",value:function(e){var t=this,n=[];return this.forEach((function(o,r,i){e===r&&n.push(t._get(o,r,i,!0))})),n}},{key:"_findO",value:function(e){var t=this,n=[];return this.forEach((function(o,r,i){H.objectEquals(e,i)&&n.push(t._get(o,r,i,!0))})),n}},{key:"_findSO",value:function(e,t){var n=this,o=[];return this.forEach((function(r,i,a){e===r&&H.objectEquals(t,a)&&o.push(n._get(r,i,a,!0))})),o}},{key:"_findPO",value:function(e,t){var n=this,o=[];return this.forEach((function(r,i,a){e===i&&H.objectEquals(t,a)&&o.push(n._get(r,i,a,!0))})),o}},{key:"_validate",value:function(){var e=this._graph,t={valid:!0,errors:[],nr:0};return Object.keys(e).forEach((function(n){var o=e[n];H.isObject(o)?Object.keys(o).forEach((function(e){var r=o[e];Array.isArray(r)?r.forEach((function(o,r){H.isObject(o)?null!=o.type?H.isString(o.value)?t.nr+=1:(t.errors.push({s:n,p:e,oindex:r+1,message:"Object ".concat(r+1," in object array must have the 'value' attribute pointing to a string.")}),t.valid=!1):(t.errors.push({s:n,p:e,oindex:r+1,message:"Object ".concat(r+1," in object array lacks the attribute type, must be either 'literal', 'resource' or 'bnode'.")}),t.valid=!1):(t.errors.push({s:n,p:e,oindex:r+1,message:"Element ".concat(r+1," in object array is not an object.")}),t.valid=!1)})):(t.errors.push({s:n,p:e,message:"Predicate must point to an array of objects."}),t.valid=!1)})):(t.errors.push({s:n,message:"Subject must point to an object."}),t.valid=!1)})),t}},{key:"_newBNode",value:function(){var e,t,n;for(this._indexBNodes(),e=1;e<20;e++)for(t=1;t<=e;t++)if(n="_:".concat(Math.floor(Math.random()*(Math.pow(10,e)+1))),!0!==this._bnodes[n])return this._bnodes[n]=!0,n;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(n){0===n.indexOf("_:")&&(e._bnodes[n]=!0);var o=t[n];Object.keys(o).forEach((function(t){0===t.indexOf("_:")&&(e._bnodes[t]=!0),o[t].forEach((function(t){"bnode"===t.type&&(e._bnodes[t.value]=!0)}))}))})),this._bnodesIndexed=!0}}},{key:"_trackBNodes",value:function(e,t,n){0===e.indexOf("_:")&&(this._bnodes[e]=!0),0===t.indexOf("_:")&&(this._bnodes[t]=!0),"bnode"===n.type&&(this._bnodes[n.value]=!0)}}])&&we(t.prototype,n),o&&we(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(4043),n(7267);n(268),n(50),n(6646),n(5787);function Ce(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 Se(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Te(o.key),o)}}function Te(e){var t=function(e,t){if("object"!=Ce(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ce(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ce(t)?t:String(t)}function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oe(e,t,n){return Me(t),function(e,t){if(t&&("object"===Ce(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,Ne()?Reflect.construct(t,n||[],Me(e).constructor):t.apply(e,n))}function De(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,n)}function n(){return Ie(e,arguments,Me(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),je(n,e)}(e)}function Ie(e,t,n){if(Ne())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&je(r,n.prototype),r}function Ne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}function je(e,t){return(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Me(e){return(Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Error;function Le(e){return(Le="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 Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Fe(o.key),o)}}function ze(e,t,n){return t&&Re(e.prototype,t),n&&Re(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fe(e){var t=function(e,t){if("object"!=Le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Le(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Le(t)?t:String(t)}var Be={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#"},$e={rdftype:"".concat(Be.rdf,"type"),rdfssco:"".concat(Be.rdfs,"subClassOf"),rdfsdomain:"".concat(Be.rdfs,"domain"),rdfsrange:"".concat(Be.rdfs,"range"),rdfsspo:"".concat(Be.rdfs,"subPropertyOf"),rdfsClass:"".concat(Be.rdfs,"Class"),owlClass:"".concat(Be.owl,"Class"),owlObjectProperty:"".concat(Be.owl,"ObjectProperty"),owlDatatypeProperty:"".concat(Be.owl,"DatatypeProperty"),rdfProperty:"".concat(Be.rdf,"Property")},Ve=function(e,t,n){for(var o={},r=!1,i=e.find(t,n),a=0;a<i.length;a++){var s=i[a];"literal"===s.getType()&&(o[s.getLanguage()||""]=s.getValue()||"",r=!0)}if(r)return null==o.en&&null!=o[""]&&(o.en=o[""],delete o[""]),o},Ue=function(e){for(var t=[],n={},o=0;o<e.length;o++){var r=e[o];n[r]||(t.push(r),n[r]=!0)}return t},He=function(){function e(t,n){Pe(this,e),this._uri=t,this._parents=[],this._children=[],this._graph=n}return ze(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=Ve(this._graph,this._uri,"".concat(Be.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=Ve(this._graph,this._uri,"".concat(Be.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=Ue(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=Ue(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 n=0;n<this._parents.length;n++)this._allDomainOf=this._allDomainOf.concat(this._parents[n].getAllDomainOf())}return delete this._domainOfLock,this._allDomainOf}}]),e}(),Ye=function(e,t,n,o){for(var r=0;r<n.length;r++){var i=n[r],a=i.getSubject(),s=e[a];if(s||(s=new He(a,i.getGraph()),e[a]=s,t.push(s)),o){var l=i.getValue(),c=e[l];c||(c=new He(l,i.getGraph()),e[l]=c,t.push(c)),s.addParent(c)}}},We=function(){function e(){Pe(this,e),this._cidx={},this._carr=[],this._pidx={},this._parr=[]}return ze(e,[{key:"addGraph",value:function(e){Ye(this._cidx,this._carr,e.find(null,$e.rdftype,$e.rdfsClass)),Ye(this._cidx,this._carr,e.find(null,$e.rdftype,$e.owlClass)),Ye(this._cidx,this._carr,e.find(null,$e.rdfssco,null),!0),Ye(this._pidx,this._parr,e.find(null,$e.rdftype,$e.rdfProperty)),Ye(this._pidx,this._parr,e.find(null,$e.rdfsspo,null),!0),Ye(this._pidx,this._parr,e.find(null,$e.rdftype,$e.owlDatatypeProperty)),Ye(this._pidx,this._parr,e.find(null,$e.rdftype,$e.owlObjectProperty)),function(e,t,n){for(var o,r,i,a=e.find(null,$e.rdfsdomain,null),s=0;s<a.length;s++)o=t[(i=a[s]).getSubject()],r=n[i.getValue()],null!=o&&null!=r&&o.setDomain(r);a=e.find(null,$e.rdfsrange,null);for(var l=0;l<a.length;l++)o=t[(i=a[l]).getSubject()],r=i.getValue(),null!=o&&null!=r&&o.setRange(r)}(e,this._pidx,this._cidx)}},{key:"addThing",value:function(){var e="http://www.w3.org/2002/07/owl#Thing",t=this._cidx[e],n=!1;t||(t=new He(e,new Ee),this._cidx[e]=t,this._carr.push(t),n=!0);for(var o=0;o<this._carr.length;o++){var r=this._carr[o];(n&&r!==t||-1===r.getParents().indexOf(t)&&r!==t)&&r.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=[],n=[e].concat(e.getChildren()),o=0;o<n.length;o++)for(var r=n[o],i=r.getGraph.find(null,$e.rdftype,r.getURI()),a=0;a<i.length;a++)t.push(i[a].getSubject());return t}}]),e}();We.prototype.ns=Be,We.prototype.terms=$e,We.global=new We;function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Qe(o.key),o)}}function Qe(e){var t=function(e,t){if("object"!=Ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ge(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ge(t)?t:String(t)}var Ze=function(e){this.filterObj={},this.registry=e};Ze.prototype.register=function(e){this.registry.register(this.filterObj,e)},["itemtype","choices","nodetype","datatype","rdftype","constraint","predicate","style","item","check"].forEach((function(e){Ze.prototype[e]=function(t){var n={};switch(e){case"constraint":Object.keys(t).forEach((function(e){var o=t[e];Array.isArray(o)?n[M(e)]=o.map((function(e){return M(e)})):n[M(e)]=M(o)})),this.filterObj[e]=n;break;case"predicate":case"rdftype":case"datatype":this.filterObj[e]=M(t);break;default:this.filterObj[e]=t||!0}return this}}));var Xe=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,n,o;return t=e,(n=[{key:"calculatePriority",value:function(e,t){var n=0;if(t.itemtype&&(n+=this.priorities.ITEMTYPE,e.getType()!==t.itemtype))return-1;if(t.choices)switch(n+=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&&(n+=this.priorities.NODETYPE,e.getNodetype()!==t.nodetype))return-1;if(t.datatype){n+=this.priorities.DATATYPE;var o=e.getDatatype(),r=!0;if(o&&(r=Array.isArray(o)?!o.includes(t.datatype):o!==t.datatype),r)return-1}return t.rdftype&&(n+=this.priorities.RDFTYPE,!function(e,t){var n=e.getConstraints();return null!=n&&n[rdfType]===t}(e,t.rdftype))||t.constraint&&(n+=this.priorities.CONSTRAINT,!function(e,t){if(null==t)return!0;var n=e.getConstraints(),o=!0;return null!=n&&(Object.keys(n).find((function(e){var r=t[e];return""!==r&&"*"!==r&&r!==n[e]&&(o=!1,!0)})),o)}(e,t.constraint))||t.predicate&&(n+=this.priorities.PREDICATE,e.getProperty()!==t.predicate)||t.style&&(n+=this.priorities.STYLE,!e.hasStyle(t.style))?-1:!t.item||(n+=this.priorities.ITEM,e===t.item||t.item.getId&&e.getId()===t.item.getId())?t.check&&!t.check(e)?-1:n:-1}},{key:"getPriority",value:function(e,t){for(var n=0;n<this.components.length;n++)if(this.components[n].component===t){var o=this.calculatePriority(e,this.components[n].filter);if(o>=0)return o}return 0}},{key:"getComponentBefore",value:function(e,t){var n=this.getPriority(e,t);return this.getComponent(e,n)}},{key:"getComponent",value:function(e,t){for(var n,o,r,i=-1,a=0;a<this.components.length;a++)r=this.components[a],(o=this.calculatePriority(e,r.filter))>i&&(void 0===t||o<t)&&(n=r,i=o);if(n)return n.component}},{key:"register",value:function(e,t){this.components.push({component:t,filter:e})}},{key:"itemtype",value:function(e){return new Ze(this).itemtype(e)}},{key:"choices",value:function(e){return new Ze(this).choices(e)}},{key:"nodetype",value:function(e){return new Ze(this).nodetype(e)}},{key:"datatype",value:function(e){return new Ze(this).datatype(e)}},{key:"rdftype",value:function(e){return new Ze(this).rdftype(e)}},{key:"constraint",value:function(e){return new Ze(this).constraint(e)}},{key:"predicate",value:function(e){return new Ze(this).predicate(e)}},{key:"style",value:function(e){return new Ze(this).style(e)}},{key:"item",value:function(e){return new Ze(this).item(e)}},{key:"check",value:function(e){return new Ze(this).check(e)}}])&&qe(t.prototype,n),o&&qe(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Ke=function(){this.__data__=[],this.size=0};const Je=function(e,t){return e===t||e!=e&&t!=t};const et=function(e,t){for(var n=e.length;n--;)if(Je(e[n][0],t))return n;return-1};var tt=Array.prototype.splice;const nt=function(e){var t=this.__data__,n=et(t,e);return!(n<0)&&(n==t.length-1?t.pop():tt.call(t,n,1),--this.size,!0)};const ot=function(e){var t=this.__data__,n=et(t,e);return n<0?void 0:t[n][1]};const rt=function(e){return et(this.__data__,e)>-1};const it=function(e,t){var n=this.__data__,o=et(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function at(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}at.prototype.clear=Ke,at.prototype.delete=nt,at.prototype.get=ot,at.prototype.has=rt,at.prototype.set=it;const st=at;const lt=function(){this.__data__=new st,this.size=0};const ct=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const dt=function(e){return this.__data__.get(e)};const ut=function(e){return this.__data__.has(e)};const ft="object"==typeof global&&global&&global.Object===Object&&global;var bt="object"==typeof self&&self&&self.Object===Object&&self;const pt=ft||bt||Function("return this")();const mt=pt.Symbol;var ht=Object.prototype,gt=ht.hasOwnProperty,vt=ht.toString,yt=mt?mt.toStringTag:void 0;const wt=function(e){var t=gt.call(e,yt),n=e[yt];try{e[yt]=void 0;var o=!0}catch(e){}var r=vt.call(e);return o&&(t?e[yt]=n:delete e[yt]),r};var xt=Object.prototype.toString;const kt=function(e){return xt.call(e)};var _t=mt?mt.toStringTag:void 0;const Et=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_t&&_t in Object(e)?wt(e):kt(e)};const Ct=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const St=function(e){if(!Ct(e))return!1;var t=Et(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const Tt=pt["__core-js_shared__"];var At,Ot=(At=/[^.]+$/.exec(Tt&&Tt.keys&&Tt.keys.IE_PROTO||""))?"Symbol(src)_1."+At:"";const Dt=function(e){return!!Ot&&Ot in e};var It=Function.prototype.toString;const Nt=function(e){if(null!=e){try{return It.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var jt=/^\[object .+?Constructor\]$/,Mt=Function.prototype,Lt=Object.prototype,Pt=Mt.toString,Rt=Lt.hasOwnProperty,zt=RegExp("^"+Pt.call(Rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ft=function(e){return!(!Ct(e)||Dt(e))&&(St(e)?zt:jt).test(Nt(e))};const Bt=function(e,t){return null==e?void 0:e[t]};const $t=function(e,t){var n=Bt(e,t);return Ft(n)?n:void 0};const Vt=$t(pt,"Map");const Ut=$t(Object,"create");const Ht=function(){this.__data__=Ut?Ut(null):{},this.size=0};const Yt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Wt=Object.prototype.hasOwnProperty;const Gt=function(e){var t=this.__data__;if(Ut){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Wt.call(t,e)?t[e]:void 0};var qt=Object.prototype.hasOwnProperty;const Qt=function(e){var t=this.__data__;return Ut?void 0!==t[e]:qt.call(t,e)};const Zt=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ut&&void 0===t?"__lodash_hash_undefined__":t,this};function Xt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Xt.prototype.clear=Ht,Xt.prototype.delete=Yt,Xt.prototype.get=Gt,Xt.prototype.has=Qt,Xt.prototype.set=Zt;const Kt=Xt;const Jt=function(){this.size=0,this.__data__={hash:new Kt,map:new(Vt||st),string:new Kt}};const en=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const tn=function(e,t){var n=e.__data__;return en(t)?n["string"==typeof t?"string":"hash"]:n.map};const nn=function(e){var t=tn(this,e).delete(e);return this.size-=t?1:0,t};const on=function(e){return tn(this,e).get(e)};const rn=function(e){return tn(this,e).has(e)};const an=function(e,t){var n=tn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function sn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}sn.prototype.clear=Jt,sn.prototype.delete=nn,sn.prototype.get=on,sn.prototype.has=rn,sn.prototype.set=an;const ln=sn;const cn=function(e,t){var n=this.__data__;if(n instanceof st){var o=n.__data__;if(!Vt||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new ln(o)}return n.set(e,t),this.size=n.size,this};function dn(e){var t=this.__data__=new st(e);this.size=t.size}dn.prototype.clear=lt,dn.prototype.delete=ct,dn.prototype.get=dt,dn.prototype.has=ut,dn.prototype.set=cn;const un=dn;const fn=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};const bn=function(){try{var e=$t(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const pn=function(e,t,n){"__proto__"==t&&bn?bn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var mn=Object.prototype.hasOwnProperty;const hn=function(e,t,n){var o=e[t];mn.call(e,t)&&Je(o,n)&&(void 0!==n||t in e)||pn(e,t,n)};const gn=function(e,t,n,o){var r=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=o?o(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),r?pn(n,s,l):hn(n,s,l)}return n};const vn=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};const yn=function(e){return null!=e&&"object"==typeof e};const wn=function(e){return yn(e)&&"[object Arguments]"==Et(e)};var xn=Object.prototype,kn=xn.hasOwnProperty,_n=xn.propertyIsEnumerable;const En=wn(function(){return arguments}())?wn:function(e){return yn(e)&&kn.call(e,"callee")&&!_n.call(e,"callee")};const Cn=Array.isArray;const Sn=function(){return!1};var Tn="object"==typeof exports&&exports&&!exports.nodeType&&exports,An=Tn&&"object"==typeof module&&module&&!module.nodeType&&module,On=An&&An.exports===Tn?pt.Buffer:void 0;const Dn=(On?On.isBuffer:void 0)||Sn;var In=/^(?:0|[1-9]\d*)$/;const Nn=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&In.test(e))&&e>-1&&e%1==0&&e<t};const jn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Mn={};Mn["[object Float32Array]"]=Mn["[object Float64Array]"]=Mn["[object Int8Array]"]=Mn["[object Int16Array]"]=Mn["[object Int32Array]"]=Mn["[object Uint8Array]"]=Mn["[object Uint8ClampedArray]"]=Mn["[object Uint16Array]"]=Mn["[object Uint32Array]"]=!0,Mn["[object Arguments]"]=Mn["[object Array]"]=Mn["[object ArrayBuffer]"]=Mn["[object Boolean]"]=Mn["[object DataView]"]=Mn["[object Date]"]=Mn["[object Error]"]=Mn["[object Function]"]=Mn["[object Map]"]=Mn["[object Number]"]=Mn["[object Object]"]=Mn["[object RegExp]"]=Mn["[object Set]"]=Mn["[object String]"]=Mn["[object WeakMap]"]=!1;const Ln=function(e){return yn(e)&&jn(e.length)&&!!Mn[Et(e)]};const Pn=function(e){return function(t){return e(t)}};var Rn="object"==typeof exports&&exports&&!exports.nodeType&&exports,zn=Rn&&"object"==typeof module&&module&&!module.nodeType&&module,Fn=zn&&zn.exports===Rn&&ft.process;const Bn=function(){try{var e=zn&&zn.require&&zn.require("util").types;return e||Fn&&Fn.binding&&Fn.binding("util")}catch(e){}}();var $n=Bn&&Bn.isTypedArray;const Vn=$n?Pn($n):Ln;var Un=Object.prototype.hasOwnProperty;const Hn=function(e,t){var n=Cn(e),o=!n&&En(e),r=!n&&!o&&Dn(e),i=!n&&!o&&!r&&Vn(e),a=n||o||r||i,s=a?vn(e.length,String):[],l=s.length;for(var c in e)!t&&!Un.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Nn(c,l))||s.push(c);return s};var Yn=Object.prototype;const Wn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Yn)};const Gn=function(e,t){return function(n){return e(t(n))}};const qn=Gn(Object.keys,Object);var Qn=Object.prototype.hasOwnProperty;const Zn=function(e){if(!Wn(e))return qn(e);var t=[];for(var n in Object(e))Qn.call(e,n)&&"constructor"!=n&&t.push(n);return t};const Xn=function(e){return null!=e&&jn(e.length)&&!St(e)};const Kn=function(e){return Xn(e)?Hn(e):Zn(e)};const Jn=function(e,t){return e&&gn(t,Kn(t),e)};const eo=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var to=Object.prototype.hasOwnProperty;const no=function(e){if(!Ct(e))return eo(e);var t=Wn(e),n=[];for(var o in e)("constructor"!=o||!t&&to.call(e,o))&&n.push(o);return n};const oo=function(e){return Xn(e)?Hn(e,!0):no(e)};const ro=function(e,t){return e&&gn(t,oo(t),e)};var io="object"==typeof exports&&exports&&!exports.nodeType&&exports,ao=io&&"object"==typeof module&&module&&!module.nodeType&&module,so=ao&&ao.exports===io?pt.Buffer:void 0,lo=so?so.allocUnsafe:void 0;const co=function(e,t){if(t)return e.slice();var n=e.length,o=lo?lo(n):new e.constructor(n);return e.copy(o),o};const uo=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t};const fo=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i};const bo=function(){return[]};var po=Object.prototype.propertyIsEnumerable,mo=Object.getOwnPropertySymbols;const ho=mo?function(e){return null==e?[]:(e=Object(e),fo(mo(e),(function(t){return po.call(e,t)})))}:bo;const go=function(e,t){return gn(e,ho(e),t)};const vo=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e};const yo=Gn(Object.getPrototypeOf,Object);const wo=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)vo(t,ho(e)),e=yo(e);return t}:bo;const xo=function(e,t){return gn(e,wo(e),t)};const ko=function(e,t,n){var o=t(e);return Cn(e)?o:vo(o,n(e))};const _o=function(e){return ko(e,Kn,ho)};const Eo=function(e){return ko(e,oo,wo)};const Co=$t(pt,"DataView");const So=$t(pt,"Promise");const To=$t(pt,"Set");const Ao=$t(pt,"WeakMap");var Oo=Nt(Co),Do=Nt(Vt),Io=Nt(So),No=Nt(To),jo=Nt(Ao),Mo=Et;(Co&&"[object DataView]"!=Mo(new Co(new ArrayBuffer(1)))||Vt&&"[object Map]"!=Mo(new Vt)||So&&"[object Promise]"!=Mo(So.resolve())||To&&"[object Set]"!=Mo(new To)||Ao&&"[object WeakMap]"!=Mo(new Ao))&&(Mo=function(e){var t=Et(e),n="[object Object]"==t?e.constructor:void 0,o=n?Nt(n):"";if(o)switch(o){case Oo:return"[object DataView]";case Do:return"[object Map]";case Io:return"[object Promise]";case No:return"[object Set]";case jo:return"[object WeakMap]"}return t});const Lo=Mo;var Po=Object.prototype.hasOwnProperty;const Ro=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Po.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const zo=pt.Uint8Array;const Fo=function(e){var t=new e.constructor(e.byteLength);return new zo(t).set(new zo(e)),t};const Bo=function(e,t){var n=t?Fo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var $o=/\w*$/;const Vo=function(e){var t=new e.constructor(e.source,$o.exec(e));return t.lastIndex=e.lastIndex,t};var Uo=mt?mt.prototype:void 0,Ho=Uo?Uo.valueOf:void 0;const Yo=function(e){return Ho?Object(Ho.call(e)):{}};const Wo=function(e,t){var n=t?Fo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const Go=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return Fo(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return Bo(e,n);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 Wo(e,n);case"[object Map]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return Vo(e);case"[object Set]":return new o;case"[object Symbol]":return Yo(e)}};var qo=Object.create;const Qo=function(){function e(){}return function(t){if(!Ct(t))return{};if(qo)return qo(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Zo=function(e){return"function"!=typeof e.constructor||Wn(e)?{}:Qo(yo(e))};const Xo=function(e){return yn(e)&&"[object Map]"==Lo(e)};var Ko=Bn&&Bn.isMap;const Jo=Ko?Pn(Ko):Xo;const er=function(e){return yn(e)&&"[object Set]"==Lo(e)};var tr=Bn&&Bn.isSet;const nr=tr?Pn(tr):er;var or={};or["[object Arguments]"]=or["[object Array]"]=or["[object ArrayBuffer]"]=or["[object DataView]"]=or["[object Boolean]"]=or["[object Date]"]=or["[object Float32Array]"]=or["[object Float64Array]"]=or["[object Int8Array]"]=or["[object Int16Array]"]=or["[object Int32Array]"]=or["[object Map]"]=or["[object Number]"]=or["[object Object]"]=or["[object RegExp]"]=or["[object Set]"]=or["[object String]"]=or["[object Symbol]"]=or["[object Uint8Array]"]=or["[object Uint8ClampedArray]"]=or["[object Uint16Array]"]=or["[object Uint32Array]"]=!0,or["[object Error]"]=or["[object Function]"]=or["[object WeakMap]"]=!1;const rr=function e(t,n,o,r,i,a){var s,l=1&n,c=2&n,d=4&n;if(o&&(s=i?o(t,r,i,a):o(t)),void 0!==s)return s;if(!Ct(t))return t;var u=Cn(t);if(u){if(s=Ro(t),!l)return uo(t,s)}else{var f=Lo(t),b="[object Function]"==f||"[object GeneratorFunction]"==f;if(Dn(t))return co(t,l);if("[object Object]"==f||"[object Arguments]"==f||b&&!i){if(s=c||b?{}:Zo(t),!l)return c?xo(t,ro(s,t)):go(t,Jn(s,t))}else{if(!or[f])return i?t:{};s=Go(t,f,l)}}a||(a=new un);var p=a.get(t);if(p)return p;a.set(t,s),nr(t)?t.forEach((function(r){s.add(e(r,n,o,r,t,a))})):Jo(t)&&t.forEach((function(r,i){s.set(i,e(r,n,o,i,t,a))}));var m=u?void 0:(d?c?Eo:_o:c?oo:Kn)(t);return fn(m||t,(function(r,i){m&&(r=t[i=r]),hn(s,i,e(r,n,o,i,t,a))})),s};const ir=function(e){return rr(e,5)};n(2003),n(2462);var ar=n(381),sr=n.n(ar),lr=function(e){var t=sr().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 n=Object.keys(e);return n.length>0?{value:e[n[0]],precision:"any",lang:n[0]}:{precision:"none"}},cr=function(e,t,n){var o=e.find(t,n);if(o.length>0){for(var r={},i=0;i<o.length;i++)r[o[i].getLanguage()||""]=o[i].getValue();return r}};const dr={getLocalizedValue:lr,getLocalizedMap:function(e,t,n){var o,r=t,i=n;e.getItem?(o=e.getGraph(),r=e.getValue(),i=e.getItem().getURIValueLabelProperties()):o=e,null!=i&&0!==i.length||(i=fr.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=cr(o,r,s[c]);d&&l.push(lr(d).value)}if(l.length>0)return{"":l.join(" ")}}else{var u=cr(o,r,s);if(u)return u}}},cloneArrayWithLabels:function(e,t){for(var n=[],o=0;o<e.length;o++){var r=e[o],i=lr(r.label),a={value:r.value,label:i.value||r.value||""};!0===r.top&&(a.top=!0),null!=r.children&&(a.children=ir(r.children)),!1===r.selectable?a.selectable=!1:a.selectable=!0,n.push(a)}return!0!==t&&n.sort((function(e,t){return e.label>t.label?1:-1})),n},extractGist:function(e,t){var n=t;if(n){-1===n.indexOf("$1")&&(n+="$1");var o="".concat(n).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1").replace("\\$1","(.*)"),r=new RegExp(o).exec(e);if(null!=r)return r[1]}return e},findFirstValue:function(e,t,n,o){var r=e.findFirstValueBinding(e.match(t,n,o),!1);if(r)return r.getChoice?lr(r.getChoice().label).value:r.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 n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}};var ur=function(e,t,n,o){if("URI"===e.getNodetype()||"RESOURCE"===e.getNodetype()){var r=dr.getLocalizedMap(o,t,e.getURIValueLabelProperties());if(!r){var i=t.lastIndexOf("#"),a=t.lastIndexOf("/");r=i>0||a>0?{"":decodeURIComponent(t.substring(1+(i>a?i:a)))}:{"":t}}return{value:t,label:r}}return{value:t,label:t}};const fr={hasDnDSupport:function(e){return!1},addDnD:function(e,t,n){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,n,o){return ur(e,t,0,o)},getFallbackChoice:ur,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 n=t.getChildrenRootUri(),o=n.lastIndexOf("#"),r=-1===o?"".concat(n,"#"):n.substring(0,o+1),i=t.getGraph()._graph;;){var a=r+"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);if(null==i[a])return a}}},br=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 pr(e){return(pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var mr,hr,gr,vr,yr,wr="body",xr=[{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"}}],kr={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 Xe,editorRegistry:new Xe,chooserRegistry:new Xe,renderPresenter:function(e,t,n){var o=kr.presenterRegistry.getComponent(t.getItem());o&&(kr.prePresenterRenderer(e,t,n),o(e,t,n),kr.postPresenterRenderer(e,t,n))},renderEditor:function(e,t,n){var o=kr.editorRegistry.getComponent(t.getItem());o&&(kr.preEditorRenderer(e,t,n),o(e,t,n),kr.postEditorRenderer(e,t,n))},renderValidationMessage:function(e,t,n){},renderSelect:function(){},getChoice:function(e,t){var n=kr.chooserRegistry.getComponent(e);if(null==n)throw new Error("Error, no chooser available to retrieve a choice for item: ".concat(e.getId()));return n.getChoice(e,t)},hasOpenChoiceSelector:function(e){return null!=kr.chooserRegistry.getComponent(e.getItem())},openChoiceSelector:function(e,t,n){var o=kr.chooserRegistry.getComponent(e.getItem());if(null!=o&&o&&o.getChoice)o.show(e,t,n);else{var r=e.getItem();alert("Error, no chooser available to open a choice selector for: ".concat(r))}},getExtLinkClass:function(){return""},setMessages:function(e){mr=e},getMessages:function(){return mr||br},getLanguageList:function(){return hr||xr},getPrimaryLanguageList:function(){if(!vr){for(var e,t=kr.getLanguageList(),n=gr||[],o=[],r=0;r<t.length;r++){var i=t[r].value,a=n.indexOf(i);""===i&&(e=t[r]),-1!==a&&(o[a]=t[r])}vr=[];for(var s=0;s<o.length;s++)"object"===pr(o[s])&&vr.push(o[s]);vr.length>0&&e&&vr.splice(0,0,e)}return vr},getNonPrimaryLanguageList:function(){if(!yr){var e=kr.getPrimaryLanguageList().length>0,t=kr.getLanguageList(),n=gr||[];yr=[];for(var o=0;o<t.length;o++){var r=t[o].value;-1===n.indexOf(r)&&(e&&""===r||yr.push(t[o]))}}return yr},setPrimaryLanguageCodes:function(e){yr=null,vr=null,gr=e},setLanguageList:function(e){hr=e},filterTranslations:function(e,t,n){for(var o={},r=0;r<e.length;r++){var i=e[r].getLanguage();""===i||null==i?o.noLanguage=!0:i===t?o.best=!0:-1!==i.indexOf(t)||-1!==t.indexOf(i)?o.close=!0:0===i.indexOf(n)&&(o.defaultLanguage=!0)}return o.best?e.filter((function(e){return e.getLanguage()===t})):o.close?e.filter((function(e){var n=e.getLanguage();return n&&(-1!==n.indexOf(t)||-1!==t.indexOf(n))})):o.defaultLanguage?e.filter((function(e){var t=e.getLanguage();return t&&0===t.indexOf(n)})):e},setPopoverContainer:function(e){wr=e},getPopoverContainer:function(){return wr},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(){}};fr.getChoice=kr.getChoice;var _r=function(e,t,n){new(0,n.view.constructor)({parentView:n.view,messages:n.view.messages,binding:t,topLevel:!1,compact:n.view.compact,showLanguage:n.view.showLanguage,showDescription:n.view.showDescription,defaultLanguage:n.view.defaultLanguage,filterTranslations:n.view.filterTranslations,truncate:n.view.truncate,truncateLimit:n.view.truncateLimit,includeLevel:n.view.includeLevel},e)};kr.presenterRegistry.itemtype("group").register(_r),kr.presenterRegistry.itemtype("propertygroup").register(_r);var Er=function(e,t,n){var o=new(0,n.view.constructor)({parentView:n.view,messages:n.view.messages,languages:n.view.languages,binding:t,topLevel:!1,compact:n.view.compact,showDescription:n.view.showDescription,truncate:n.view.truncate,truncateLimit:n.view.truncateLimit,includeLevel:n.view.includeLevel},e);n.view._subEditors.push(o)};kr.editorRegistry.itemtype("group").register(Er),kr.editorRegistry.itemtype("propertygroup").register(Er);const Cr=kr;var Sr=n(9755),Tr=n.n(Sr);n(2349),n(1919),n(4418);function Ar(e){return(Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Or(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Dr(o.key),o)}}function Dr(e){var t=function(e,t){if("object"!=Ar(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ar(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ar(t)?t:String(t)}var Ir=0,Nr=function(){function e(t){var n=t.item,o=t.statement,r=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=n,this._statement=o,this._graph=r,this._ancestorValid=!0,this._cardinalityTracker=null,this._hash="b_".concat(Ir),this._matchingCode=i||"correct",Ir+=1}var t,n,o;return t=e,(n=[{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 dr.extractGist(this.getValue(),this.getItem().getValueTemplate())}},{key:"setGist",value:function(e,t){var n=e,o=this.getItem().getValueTemplate();o&&n.length>0&&(-1===o.indexOf("$1")&&(o+="$1"),n=o.replace("$1",n)),this.setValue(n,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 n=this._item.getPattern();return n?null!=(t=dr.extractGist(t,this.getItem().getValueTemplate()))&&""!==t&&new RegExp("^".concat(n,"$")).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}}])&&Or(t.prototype,n),o&&Or(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();const jr={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 Mr(e){return(Mr="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 Lr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Pr(o.key),o)}}function Pr(e){var t=function(e,t){if("object"!=Mr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Mr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mr(t)?t:String(t)}var Rr=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,n,o;return t=e,(n=[{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=jr.UNKNOWN,this._depsOk=e,this.cardinalityChanged())}},{key:"increment",value:function(){this._counter+=1,this._code=jr.UNKNOWN,this._checkCounter()}},{key:"decrement",value:function(){this._counter-=1,this._code=jr.UNKNOWN,this._checkCounter()}},{key:"getCounter",value:function(){return this._counter}},{key:"checkCardinality",value:function(){this._checkCounter()}},{key:"touch",value:function(){this._code=jr.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()}}])&&Lr(t.prototype,n),o&&Lr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zr(e){return(zr="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 Fr(e){return function(e){if(Array.isArray(e))return Br(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 Br(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Br(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 Br(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function $r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Vr(o.key),o)}}function Vr(e){var t=function(e,t){if("object"!=zr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=zr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zr(t)?t:String(t)}function Ur(e,t,n){return t=Wr(t),function(e,t){if(t&&("object"===zr(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,n||[],Wr(e).constructor):t.apply(e,n))}function Hr(){return(Hr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Yr(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Yr(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Wr(e)););return e}function Wr(e){return(Wr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gr(e,t){return(Gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var qr=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=Ur(this,t,[e]);var o=e.constraints,r=void 0===o?[]:o,i=e.childrenRootUri,a=void 0===i?null:i;return n._constraints=r,n._childBindings=n._item.getChildren().map((function(){return[]})),n._rootUri=a,n._validPredicate=!0,n._validObject=!0,n._statement&&(n._validPredicate=n._isValidPredicateValue(n._statement.getPredicate()),n._validObject=n._isValidObjectValue(n._statement.getValue(),n._statement.getType())),n._cachedChildBindings=null,n}var n,o,r;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&&Gr(e,t)}(t,e),n=t,(o=[{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 n=e[0].getItem(),o=this._item.getChildren(),r=function(){if(n===o[i]){var r=t._childBindings[i].length>0?t._childBindings[i][0].getCardinalityTracker():new Rr(n);return t._childBindings[i]=t._childBindings[i].concat(e),e.forEach((function(e){e.setParent(t),e.setCardinalityTracker(r),r.increment()}),t),1}},i=o.length;i>=0&&!r();i--);}},{key:"removeChildBinding",value:function(e){this._cachedChildBindings=null;for(var t=this._item.getChildren(),n=t.length;n>=0;n--)if(e.getItem()===t[n]){this._childBindings[n].splice(this._childBindings[n].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(),n=t.length;n>=0;n--)if(e===t[n])return this._childBindings[n]}},{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,Fr(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),Hr(Wr(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(n){return n.forEach((function(n){return n.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,n){return("URI"!==this.getItem().getNodetype()||"uri"===n)&&Hr(Wr(t.prototype),"_isValidObjectValue",this).call(this,e)}}])&&$r(n.prototype,o),r&&$r(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Nr);function Qr(e){return(Qr="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 Zr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Xr(o.key),o)}}function Xr(e){var t=function(e,t){if("object"!=Qr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Qr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qr(t)?t:String(t)}var Kr=0,Jr=function(e,t,n){null==n||""===n||Array.isArray(n)&&0===n.length?delete e[t]:e[t]=n},ei=function(){function e(t){var n=t.source,o=void 0===n?{}:n,r=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=o,this._bundle=r,Kr+=1,this._internalId=Kr,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=dr.getLocalizedValue}var t,n,o;return t=e,(n=[{key:"getId",value:function(){var e=this.getSource(!0);return e.id||e["@id"]}},{key:"setId",value:function(e){Jr(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){Jr(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),n=this._itemStore.getItem(e);this._source=null==n?t:this._itemStore.createExtendedSource(n.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,n){var o=this.getSource(n);return t?dr.getLocalizedValue(o[e]):dr.getLocalizedValue(o[e]).value}},{key:"_setText",value:function(e,t,n){var o=this.getSource(!0);o[e]=this._setLangHash(o[e],t,n),this.refreshExtends()}},{key:"_setTextMap",value:function(e,t){Jr(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,n){var o=this.getSource(n).text||{};return t?dr.getLocalizedValue(o[e]):dr.getLocalizedValue(o[e]).value}},{key:"setText",value:function(e,t,n){var o=this.getSource(!0),r=o.text=o.text||{};r[e]=this._setLangHash(r[e],t,n),this.refreshExtends()}},{key:"setTextMap",value:function(e,t){var n=this.getSource(!0),o=n.text=n.text||{};Jr(o,e,t),this.refreshExtends()}},{key:"getProperty",value:function(e){var t=null,n=this.getSource(e);return n&&null!=(t=n.property)&&""!==t&&(t=M(t)),t}},{key:"setProperty",value:function(e){Jr(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 M(e)})):t}},{key:"setURIValueLabelProperties",value:function(e){Jr(this.getSource(!0),"uriValueLabelProperties",e),this.refreshExtends()}},{key:"getConstraints",value:function(e){var t=this.getSource(e).constraints;if(null!=t){var n={};return Object.keys(t).forEach((function(e){var o=t[e];Array.isArray(o)?n[M(e)]=o.map((function(e){return M(e)})):n[M(e)]=M(o)})),n}return t}},{key:"setConstraints",value:function(e){Jr(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?M(e):e})):t}},{key:"setDeps",value:function(e){Jr(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 M(e)})):M(t):t}},{key:"setDatatype",value:function(e){Jr(this.getSource(!0),"datatype",e),this.refreshExtends()}},{key:"getPattern",value:function(e){return this.getSource(e).pattern}},{key:"setPattern",value:function(e){Jr(this.getSource(!0),"pattern",e),this.refreshExtends()}},{key:"getLanguage",value:function(e){return this.getSource(e).language}},{key:"setLanguage",value:function(e){Jr(this.getSource(!0),"language",e),this.refreshExtends()}},{key:"getMember",value:function(e){return this.getSource(e).member}},{key:"setMember",value:function(e){Jr(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){Jr(this.getSource(!0),"nodetype",e),this.refreshExtends()}},{key:"getValue",value:function(e){return this.getSource(e).value}},{key:"setValue",value:function(e){Jr(this.getSource(!0),"value",e),this.refreshExtends()}},{key:"getValueTemplate",value:function(e){return this.getSource(e).valueTemplate}},{key:"setValueTemplate",value:function(e){Jr(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){Jr(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){Jr(this.getSource(!0),"cls",e),this.refreshExtends()}},{key:"hasClass",value:function(e,t){var n=this.getSource(t);return!!this.hasStyle(e,t)||null!=n.cls&&n.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){Jr(this.getSource(!0),"styles",e),this.refreshExtends()}},{key:"hasStyle",value:function(e,t){var n=this.getSource(t);return!(!n||!("styles"in n))&&n.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,n){var o=e||{};if("string"==typeof t)"string"==typeof n?o[n]=t:o[""]=t;else if("object"===Qr(t)&&null!==t)return t;return o}}])&&Zr(t.prototype,n),o&&Zr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ti(e){return(ti="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 n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,oi(o.key),o)}}function oi(e){var t=function(e,t){if("object"!=ti(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ti(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ti(t)?t:String(t)}function ri(e,t,n){return t=si(t),function(e,t){if(t&&("object"===ti(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,n||[],si(e).constructor):t.apply(e,n))}function ii(){return(ii="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=ai(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function ai(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=si(e)););return e}function si(e){return(si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function li(e,t){return(li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ci=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=ri(this,t,[e]))._children=e.children,null!=n._source.content&&(n._source.items=n._source.content,delete n._source.content),n._forceChildrenClones=!1,n._parent=null,n}var n,o,r;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&&li(e,t)}(t,e),n=t,(o=[{key:"getChildren",value:function(e){var t,n=e&&this.isExtention(),o=n?this._ochildren:this._children;return null==o&&(o=this._itemStore.getChildren(this,n),!0===this.getSource().automatic&&this._itemStore.automaticSortAllowed&&((t=o).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(n?"o":"","children")]=o),o}},{key:"originalChildrenChanged",value:function(){this.isExtention()&&delete this._children}},{key:"setExtends",value:function(e){ii(si(t.prototype),"setExtends",this).call(this,e),delete this._children,delete this._ochildren}},{key:"getNodetype",value:function(){return ii(si(t.prototype),"getNodetype",this).call(this)||"RESOURCE"}}])&&ni(n.prototype,o),r&&ni(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ei);function di(e){return(di="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 ui(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,bi(o.key),o)}}function bi(e){var t=function(e,t){if("object"!=di(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=di(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==di(t)?t:String(t)}function pi(e,t,n){return t=gi(t),function(e,t){if(t&&("object"===di(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,n||[],gi(e).constructor):t.apply(e,n))}function mi(){return(mi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=hi(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function hi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=gi(e)););return e}function gi(e){return(gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vi(e,t){return(vi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var yi=function(e){function t(){return ui(this,t),pi(this,t,arguments)}var n,o,r;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&&vi(e,t)}(t,e),n=t,(o=[{key:"getChildren",value:function(e){if(null==this._delegatedChildren){var n=function(){return{min:1,max:1,pref:1}},o=mi(gi(t.prototype),"getChildren",this).call(this,e)||[];this._delegatedChildren=o.map((function(e){var t=Object.create(e);return t.getCardinality=n,t}))}return this._delegatedChildren}},{key:"getPropertyItem",value:function(){return this.getChildren()[0]}},{key:"getObjectItem",value:function(){return this.getChildren()[1]}}])&&fi(n.prototype,o),r&&fi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ci);function wi(e){return(wi="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 ki(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_i(o.key),o)}}function _i(e){var t=function(e,t){if("object"!=wi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=wi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wi(t)?t:String(t)}function Ei(e,t,n){return t=Ci(t),function(e,t){if(t&&("object"===wi(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,n||[],Ci(e).constructor):t.apply(e,n))}function Ci(e){return(Ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Si(e,t){return(Si=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ti=function(e){function t(){return xi(this,t),Ei(this,t,arguments)}var n,o,r;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&&Si(e,t)}(t,e),n=t,(o=[{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties}}])&&ki(n.prototype,o),r&&ki(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ei);function Ai(e){return(Ai="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 Oi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Di(o.key),o)}}function Di(e){var t=function(e,t){if("object"!=Ai(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ai(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ai(t)?t:String(t)}function Ii(e,t,n){return t=Mi(t),function(e,t){if(t&&("object"===Ai(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,n||[],Mi(e).constructor):t.apply(e,n))}function Ni(){return(Ni="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=ji(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function ji(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Mi(e)););return e}function Mi(e){return(Mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Li(e,t){return(Li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Pi=function(e){null!=e&&e.forEach((function(e){e.value=M(e.value)}))},Ri=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Ii(this,t,[e]))._ontologyStore=e.ontologyStore,n}var n,o,r;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&&Li(e,t)}(t,e),n=t,(o=[{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 n=-1===this.getNodetype().indexOf("LITERAL");e&&this.isExtention()?this._origStaticIsSorted||(n&&Pi(t.choices),this._origStaticIsSorted=!0):this._staticIsSorted||(n&&Pi(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){Ni(Mi(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(n){t._dynamicChoices=n,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?M(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?M(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?M(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()}}])&&Oi(n.prototype,o),r&&Oi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ei);n(8436);function zi(e){return(zi="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 Fi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Bi(o.key),o)}}function Bi(e){var t=function(e,t){if("object"!=zi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=zi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zi(t)?t:String(t)}function $i(e,t,n){return t=Hi(t),function(e,t){if(t&&("object"===zi(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,n||[],Hi(e).constructor):t.apply(e,n))}function Vi(){return(Vi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Ui(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Ui(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Hi(e)););return e}function Hi(e){return(Hi=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 Wi=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=$i(this,t,[e]))._validObject=!0,n._validPredicate=!0,n._excludeFromTreeValidityCheck=!1,n._statement&&(n._validPredicate=n._isValidPredicateValue(n._statement.getPredicate(),!0),n._validObject=n._isValidObjectValue(n._statement.getValue())),n}var n,o,r;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),n=t,(o=[{key:"getValue",value:function(){return this._statement.getValue()}},{key:"setValue",value:function(e,t){var n="string"==typeof e?e.trim():e,o=this._validObject;this._isValidObjectValue(n)?(this._statement.setValue(n,t),this._validObject=!0,!0===o||!0!==this._validPredicate||this._excludeFromTreeValidityCheck||this._parent.oneChildValidityChanged(!0)):(""!==n&&null!==n||this._statement.setValue("",t),this._validObject=!1,!1!==o&&!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(M(e)),this.updateAssertions()}},{key:"setExcludeFromTreeValidityCheck",value:function(e){this._excludeFromTreeValidityCheck=e}},{key:"remove",value:function(){this.setValue(null),this._parent.removeChildBinding(this),Vi(Hi(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}}])&&Fi(n.prototype,o),r&&Fi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Nr);function Gi(e){return(Gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Qi(o.key),o)}}function Qi(e){var t=function(e,t){if("object"!=Gi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Gi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gi(t)?t:String(t)}function Zi(e,t,n){return t=Ji(t),function(e,t){if(t&&("object"===Gi(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,n||[],Ji(e).constructor):t.apply(e,n))}function Xi(){return(Xi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Ki(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Ki(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ji(e)););return e}function Ji(e){return(Ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ea(e,t){return(ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ta="http://www.w3.org/2000/01/rdf-schema#label",na="http://www.w3.org/2000/01/rdf-schema#seeAlso",oa=function(e){function t(e){var n,o=e.choice,r=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),(n=Zi(this,t,[{choice:o,item:r,statement:i,matchingCode:a}]))._choice=o,n._validPredicate=null!=r.getProperty(),n}var n,o,r;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&&ea(e,t)}(t,e),n=t,r=[{key:"seeAlso",get:function(){return na}}],(o=[{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(jr.WRONG_VALUE):e&&e.mismatch||this.getMatchingCode()!==jr.WRONG_VALUE||this.setMatchingCode(jr.OK)}},{key:"getChoice",value:function(){return this._choice}},{key:"setValue",value:function(e,n,o){var r=this.getValue();Xi(Ji(t.prototype),"setValue",this).call(this,e,n,o);var i=this._statement.getGraph();if(i.findAndRemove(r,ta,void 0,o),i.findAndRemove(r,na,void 0,o),null!=e&&null!=n&&(n.seeAlso&&n.inlineSeeAlso&&i.create(e,na,n.seeAlso,!0,o),!0===n.inlineLabel)){var a=n.label||{};Object.keys(a).forEach((function(t){return i.create(e,ta,{value:a[t],lang:t,type:"literal"},!0,o)}))}}}])&&qi(n.prototype,o),r&&qi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Wi);function ra(e){return(ra="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 ia(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,aa(o.key),o)}}function aa(e){var t=function(e,t){if("object"!=ra(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ra(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ra(t)?t:String(t)}function sa(e,t,n){return t=la(t),function(e,t){if(t&&("object"===ra(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,n||[],la(e).constructor):t.apply(e,n))}function la(e){return(la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ca(e,t){return(ca=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var da=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=sa(this,t,[e]))._objectBinding=e.objectBinding,n}var n,o,r;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&&ca(e,t)}(t,e),n=t,(o=[{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(){}}])&&ia(n.prototype,o),r&&ia(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(oa);function ua(e){return(ua="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 fa(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ba(o.key),o)}}function ba(e){var t=function(e,t){if("object"!=ua(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ua(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ua(t)?t:String(t)}function pa(e,t,n){return t=ma(t),function(e,t){if(t&&("object"===ua(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,n||[],ma(e).constructor):t.apply(e,n))}function ma(e){return(ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ha(e,t){return(ha=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ga=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=pa(this,t,[e]);var o=e.statement,r=e.constraints;n._statement=void 0,n._validPredicate=!0,n._constraints=[];var i,a=n._item.getChildren(),s=a[1];i=s instanceof ci?new qr({item:s,statement:o,constraints:r}):s instanceof Ri?new oa({item:s,statement:o}):new Wi({item:s,statement:o});var l=new da({item:a[0],objectBinding:i});return n.addChildBinding(l),n.addChildBinding(i),n}var n,o,r;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&&ha(e,t)}(t,e),n=t,(o=[{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()}}])&&fa(n.prototype,o),r&&fa(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(qr);function va(e){return(va="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 ya(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wa(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,xa(o.key),o)}}function xa(e){var t=function(e,t){if("object"!=va(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=va(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==va(t)?t:String(t)}function ka(e,t,n){return t=Ca(t),function(e,t){if(t&&("object"===va(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,n||[],Ca(e).constructor):t.apply(e,n))}function _a(){return(_a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Ea(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Ea(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ca(e)););return e}function Ca(e){return(Ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sa(e,t){return(Sa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ta,Aa,Oa,Da,Ia,Na=function(e){function t(){return ya(this,t),ka(this,t,arguments)}var n,o,r;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&&Sa(e,t)}(t,e),n=t,(o=[{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),_a(Ca(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){}},{key:"isValid",value:function(){return!0}}])&&wa(n.prototype,o),r&&wa(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Wi);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)}var Ma,La,Pa,Ra,za,Fa,Ba=!1,$a=function(e,t,n){var o=new qr({item:n,childrenRootUri:t,graph:e});return Ta(o),Aa(o),o},Va=function(e,t,n){var o=new qr({item:n,childrenRootUri:t,graph:e});return Ta(o),Ba=!0,Ta(o),Ba=!1,Aa(o),o},Ua=function(e,t,n,o){var r=e.findProperties(t),i=[],a={};if(null!=o){var s=function(e){null!=e&&(!function e(t){null!=t.getProperty()?a[t.getProperty()]=!0:t instanceof ci&&t.getChildren().forEach(e)}(e),i.push(e))};o.forEach((function(e){var t=n.getItem(e);null!=t?t instanceof ci&&null==t.getProperty()?t.getChildren().forEach(s):s(t):(t=n.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 r.forEach((function(e){if(!a[e]){var t=n.getItemByProperty(e);null!=t&&i.push(t)}}),void 0),n.createTemplateFromChildren(i)},Ha=function(e){return Array.isArray(e.getDatatype())?e.getDatatype()[0]:e.getDatatype()},Ya=function(e,t){var n,o,r=t.getChildren()[1],i=e.getGraph();r instanceof ci?(n=i.create(e.getChildrenRootUri(),"",null,!1),o=Ia(i,n.getSubject(),r)):n=r instanceof Ri?i.create(e.getChildrenRootUri(),"",{type:"uri",value:""},!1):i.create(e.getChildrenRootUri(),"",{type:"literal",value:""},!1);var a=new ga({item:t,statement:n,constraints:o});return e.addChildBinding(a),r instanceof ci&&r.getChildren().forEach((function(e){Wa(a.getObjectBinding(),e)})),a},Wa=function(e,t,n){return t instanceof Ti?function(e,t){if(!t.getProperty()){var n=new Na({item:t,statement:null,matchingCode:jr.OK});return e.addChildBinding(n),n}var o=e.getGraph(),r=t.getNodetype(),i={value:"",type:"literal"};"URI"===r?i.type="uri":"DATATYPE_LITERAL"===r&&(i.datatype=Ha(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=o.create(e.getChildrenRootUri(),t.getProperty(),i,!1),c=new Wi({item:t,statement:l});return e.addChildBinding(c),c}(e,t):t instanceof yi?Ya(e,t):t instanceof ci?function(e,t,n){var o,r;if(void 0!==t.getProperty()){var i=e.getGraph();o=(t.getNodetype(),i.create(e.getChildrenRootUri(),t.getProperty(),null,!1)),r=Ia(i,o.getValue(),t)}var a=new qr({item:t,statement:o,constraints:r});e.addChildBinding(a);var s=t._source["@id"];if(s){if(n[s])return a;n[s]=!0}return a}(e,t,n||{}):t instanceof Ri?function(e,t){var n=e.getGraph(),o=t.getNodetype(),r={type:"literal",value:""};"DATATYPE_LITERAL"===o?r.datatype=Ha(t):"RESOURCE"!==o&&"URI"!==o||(r.type="uri");var i=n.create(e.getChildrenRootUri(),t.getProperty(),r,!1),a=new oa({item:t,statement:i});e.addChildBinding(a);var s=t.getValue(),l=a.getCardinalityTracker();return null!=s&&1===l.getCounter()&&a.setChoice(za(t,s,n),!0),a}(e,t):void 0};Ta=function(e){Ba&&e.getChildBindings().forEach((function(e){"group"===e.getItem().getType()&&Ta(e)})),e.getItem().getChildren().forEach((function(t){Ba?void 0!==t.getProperty()&&Ma(e,t):Ma(e,t)}))};Ma=function(e,t){t instanceof Ri?function(e,t){if(null!=t.getProperty()){var n=[];e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Oa(e)){var o=La(t,e),r=Pa(t,e),i=Ra(t,e);if(o&&r&&i||Ba){var a=za(t,e.getValue(),e.getGraph());if(void 0!==a){Da(e);var s=o?jr.OK:jr.WRONG_NODETYPE;r?i?a.mismatch&&(s=jr.WRONG_VALUE):s=jr.WRONG_PATTERN:s=jr.WRONG_DATATYPE,n.push(new oa({item:t,statement:e,choice:a,matchingCode:s}))}}}})),n.length>0&&e.addChildBindings(n)}}(e,t):t instanceof yi?function(e,t){var n,o,r,i,a=t.getPropertyItem(),s=t.getObjectItem(),l=e.getGraph(),c=[];l.find(e.getChildrenRootUri()).forEach((function(e){Oa(e)&&La(s,e)&&Ra(s,e)&&void 0!==(r=za(a,e.getPredicate(),e.getGraph()))&&(o=null,s instanceof ci?void 0!==(n=Fa(l,e.getValue(),s))&&(Da(e),o=new ga({item:t,statement:e,constraints:n}),Ta(o.getObjectBinding())):s instanceof Ri?void 0!==(i=za(s,e.getValue(),e.getGraph()))&&(Da(e),(o=new ga({item:t,statement:e})).getObjectBinding().setChoice(i)):(Da(e),o=new ga({item:t,statement:e})),null!==o&&(o.getPredicateBinding().setChoice(r),c.push(o)))})),c.length>0&&e.addChildBindings(c)}(e,t):t instanceof ci?function(e,t){var n,o,r,i,a=e.getGraph();void 0!==t.getProperty()?(n=a.find(e.getChildrenRootUri(),t.getProperty())).length>0&&(o=[],n.forEach((function(e){if(Oa(e)){var n=Ra(t,e),s=La(t,e);if((n&&s||Ba)&&(void 0!==(r=Fa(a,e.getValue(),t))||Ba)){var l=s?jr.OK:jr.WRONG_NODETYPE;n?void 0===r&&(l=jr.MISSING_CONSTRAINTS):l=jr.WRONG_PATTERN,Da(e),i=new qr({item:t,statement:e,constraints:r,matchingCode:l}),o.push(i),l===jr.OK&&Ta(i)}}})),e.addChildBindings(o)):(i=new qr({item:t}),e.addChildBindings([i]),Ta(i))}(e,t):t instanceof Ti&&function(e,t){var n=[];null==t.getProperty()?n.push(new Na({item:t,statement:null,matchingCode:jr.OK})):e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Oa(e)&&Ra(t,e)){var o=La(t,e),r=Pa(t,e);if(o&&(r||t.hasStyle("relaxedDatatypeMatch"))||Ba){Da(e);var i=o?jr.OK:jr.WRONG_NODETYPE;r||(i=jr.WRONG_DATATYPE),n.push(new Wi({item:t,statement:e,matchingCode:i}))}}})),n.length>0&&e.addChildBindings(n)}(e,t)},La=function(e,t){var n=t.getType();switch(e.getNodetype()){case"LITERAL":case"ONLY_LITERAL":case"PLAIN_LITERAL":case"LANGUAGE_LITERAL":case"DATATYPE_LITERAL":return"literal"===n;case"RESOURCE":return"uri"===n||"bnode"===n;case"URI":return"uri"===n;case"BLANK":return"bnode"===n}return!1},Pa=function(e,t){var n="DATATYPE_LITERAL"===e.getNodetype()&&e.getDatatype()||null;return null==n||(Array.isArray(n)?-1!==n.indexOf(t.getDatatype()):t.getDatatype()===n)},Ra=function(e,t){var n=e.getPattern(),o=dr.extractGist(t.getValue(),e.getValueTemplate());if(void 0!==n)try{return new RegExp("^".concat(n,"$")).test(o)}catch(e){return!0}return!0},Fa=function(e,t,n){var o,r=n.getConstraints(),i=[],a=function(n,r){if(1!==(o=e.find(t,n,{type:"uri",value:r})).length)return!1;i.push(o[0])};if("object"===ja(r)&&null!==r){for(var s,l=Object.keys(r),c=function(){var e=l[d],t=r[e];if(t instanceof Array){var n=!0;if(t.forEach((function(t){!1!==a(e,t)&&(n=!1)})),n)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[]},Ia=function(e,t,n){var o=[],r=n.getConstraints();return"object"===ja(r)&&null!==r&&Object.keys(r).forEach((function(n){var i=r[n];Array.isArray(i)?o.push(e.create(t,n,{type:"uri",value:i[0]},!1)):o.push(e.create(t,n,{type:"uri",value:i},!1))})),o},za=function(e,t,n){var o,r;if(e.hasChoices()){for(r=e.getChoices(),o=0;o<r.length;o++)if(r[o].value===t)return r[o];if(!e.hasStyle("strictmatch")||Ba)return{value:t,label:{"":t},mismatch:!0}}else{var i=dr.getLocalizedMap(n,t,e.getLabelProperties());null==i&&Ba&&(i={"":t,mismatch:!0});var a=n.findFirstValue(t,oa.seeAlso);if(null!=i){var s={label:i,value:t};return a&&(s.seeAlso=a),s}if(null!=fr.getChoice)return fr.getChoice(e,t,a,n)}},Da=function(e){e._dibbs=!0},Oa=function(e){return!0!==e._dibbs},Aa=function(e){var t,n,o,r=e.getItemGroupedChildBindings()||[];for(t=0;t<r.length;t++)for(o=r[t],n=0;n<o.length;n++){var i=o[n];i._statement&&delete i._statement._dibbs,(i instanceof qr||i instanceof ga)&&Aa(i)}};var Ga=function e(t,n){for(var o="/"===n[0]?n.slice(1):n,r=t.getItemGroupedChildBindings(),i=o[0],a=0;a<r.length;a++)for(var s=r[a],l=void 0,c=0;c<s.length;c++){var d=s[c],u=d.getItem();if(u instanceof Ri&&void 0===u.getProperty()&&i===u.getId()&&2===o.length&&o[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,o)))return l;if("*"===i||i===d.getPredicate())if("group"===u.getType()){if(l=e(d,o.slice(1)))return l}else if(1===o.length||"*"===o[1]||o[1]===d.getValue())return d}}},qa=function(e,t){var n=t[0],o=e;if("/"===n){for(;o.getParent();)o=o.getParent();return o}if(".."===n){for(var r=0;r<t.length;r++){if(".."!==t[r]||!o.getParent())return o;o=o.getParent()}return o}return e},Qa=function(e,t){var n=e.getId(),o={},r={};e.getChoices().forEach((function(e){o[e.value]=0,r[e.value]=e}));t.getChildBindings().forEach((function(e){var t=e.getItem().getDeps();if(t&&(t[0]===n||"/"===t[0]&&t[1]===n)){var r="/"===t[0]?t[2]:t[1],i=o[r];void 0!==i&&(o[r]=i+1)}}));var i,a=0;return Object.keys(o).forEach((function(e){(!i||o[e]>a)&&(i=e,a=o[e])})),r[i]};const Za={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,n,o){var r=n.getCardinality();return o&&"group"===n.getType()||(null!=r?r.min>0?t.mandatory+=1:r.pref>0?t.recommended+=1:t.optional+=1:t.optional+=1),"group"===n.getType()&&n.getChildren().forEach((function(n){return e(t,n)})),t}({mandatory:0,recommended:0,optional:0},e,!0);return t.itemCount=t.mandatory+t.recommended+t.optional,t},findFirstValueBinding:function e(t,n){if(t instanceof Wi)return t;for(var o=t.getItemGroupedChildBindings(),r=sr().locale(),i=0;i<o.length;i++){var a=o[i],s=t.getItem().getChildren()[i];if(0!==a.length){if(!(s instanceof Ti))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===r?l.perfectLocaleLanguageValue=a[c]:d.substring(0,1)===r.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(n){var u=Wa(t,s,{});return u instanceof Wi?(u.setLanguage(r),u):e(u,!0)}}},create:Wa,constructTemplate:Ua,findPopularChoice:Qa,match:$a,fuzzyMatch:Va,matchPathBelowBinding:Ga,findBindingRelativeToParentBinding:qa,CODES:jr};var Xa=function(e,t){var n=t;return null==n?n={errors:[],warnings:[],deprecated:[]}:(n.errors=n.errors||[],n.warnings=n.warnings||[],n.deprecated=n.deprecated||[]),ts(e,n,!0)},Ka=function(e){for(var t=0,n=0;n<e.length;n++)e[n].isValid()&&(t+=1);return t},Ja=function(e,t){e.length>0&&e[0].getCardinalityTracker().setCode(t)},es=function(e,t){if(t.hasStyle("deprecated"))return!0;var n=t.getDeps();if(n){var o=qa(e,n);if(!Ga(o,n))return!0}return!1},ts=function e(t,n,o){if(t.getMatchingCode()===jr.OK){var r=t.getItem();if(!0===o||t.isValid()||null==r.getProperty()||r.hasStyle("atLeastOneChild")||r.hasStyle("exactlyOneChild")){var i=r.getChildren();if(r.hasStyle("disjoint")||r.hasStyle("atMostOneChild")||r.hasStyle("atLeastOneChild")||r.hasStyle("exactlyOneChild")){var a,s=t.getChildBindings(),l=Ka(s);l>1&&(r.hasStyle("disjoint")||r.hasStyle("atMostOneChild"))?a=jr.AT_MOST_ONE_CHILD:1!==l&&r.hasStyle("exactlyOneChild")?a=jr.EXACTLY_ONE_CHILD:0===l&&r.hasStyle("atLeastOneChild")&&(a=jr.AT_LEAST_ONE_CHILD),a&&(Ja([t],a),i.length>0&&n.errors.push({parentBinding:t,item:i[0],code:a}))}else t.getItemGroupedChildBindings().forEach((function(e,o){var r=i[o];if(!es(t,r)&&null!=r.getProperty()){var a=Ka(e),s=r.getCardinality();null!=s.min&&s.min>a?(n.errors.push({parentBinding:t,item:r,code:jr.TOO_FEW_VALUES_MIN}),Ja(e,jr.TOO_FEW_VALUES_MIN)):null!=s.pref&&s.pref>a&&n.warnings.push({parentBinding:t,item:r,code:jr.TOO_FEW_VALUES_PREF}),null!=s.max&&s.max<a&&(n.errors.push({parentBinding:t,item:r,code:jr.TOO_MANY_VALUES}),Ja(e,jr.TOO_MANY_VALUES))}}),void 0);t.getChildBindings().forEach((function(o){var r=o.getItem();o.getMatchingCode()!==jr.OK&&n.errors.push({parentBinding:o,item:r,code:o.getMatchingCode()}),r.hasStyle("deprecated")&&n.deprecated.push(o),es(t,r)||"group"===r.getType()&&e(o,n)}))}return n}},ns=function(e,t){return e.find(null,"rdf:type",t).map((function(e){return e.getSubject()}))},os=function(e,t,n){for(var o=e;;){var r=o.getChildrenRootUri?o.getChildrenRootUri():o.getParent().getChildrenRootUri();if(r===t)return!0;if(n[r])return!1;o=o.getParent()}},rs=function(e,t){var n=e,o=[];for(null!=t.getProperty()&&n.getItem()!==t&&o.push(j(t.getProperty()));null!=n.getItem().getProperty()&&o.push(j(n.getItem().getProperty())),null!=n.getParent();)n=n.getParent();return o.reverse(),o.join(" > ")},is=function(e){var t=e.errors,n=e.warnings,o=e.deprecated;e.errors=t.map((function(e){return{path:rs(e.parentBinding,e.item),code:e.code}})),e.warnings=n.map((function(e){return{path:rs(e.parentBinding,e.item),code:e.code}})),e.deprecated=o.map((function(e){return function(e){return"".concat(rs(e.getParent(),e.getItem())," > ").concat(e.getValue())}(e)}))},as=function(e,t,n,o){var r=Va(t,e,n),i=Xa(r);return function(e,t,n){var o=e.errors,r=e.warnings,i=e.deprecated;e.errors=o.filter((function(e){return os(e.parentBinding,t,n)})),e.warnings=r.filter((function(e){return os(e.parentBinding,t,n)})),e.deprecated=i.filter((function(e){return os(e,t,n)}))}(i,e,o||{}),is(i),i};const ss={graphReport:function(e,t){var n,o,r=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 n=ns(e,t);i[t]=n,n.forEach((function(e){a[e]=!0}))})),Object.keys(i).forEach((function(r){n=t[r],i[r].forEach((function(t){(o=as(t,e,n,a)).uri=t,o.type=r,o.template=n.getId(),s.resources.push(o),s.errors+=o.errors.length,s.warnings+=o.warnings.length,s.deprecated+=o.deprecated.length}))}));var l=[];return r.forEach((function(e){0===i[e].length&&l.push(e)})),l.length>0&&(s.mandatoryError=l,s.errors+=l.length),s},bindingReport:Xa};function ls(e){return(ls="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 cs(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ds(o.key),o)}}function ds(e){var t=function(e,t){if("object"!=ls(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ls(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ls(t)?t:String(t)}var us=0;function fs(e){return(fs="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 bs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ps(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ms(o.key),o)}}function ms(e){var t=function(e,t){if("object"!=fs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=fs(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fs(t)?t:String(t)}function hs(e,t,n){return t=ys(t),function(e,t){if(t&&("object"===fs(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,n||[],ys(e).constructor):t.apply(e,n))}function gs(){return(gs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=vs(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function vs(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ys(e)););return e}function ys(e){return(ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ws(e,t){return(ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var xs=function(e,t,n){if(0===n.length||t.hasStyle("invisible"))return!1;if(t.getProperty())return!e.filterItem(t);if("group"===t.getType()){var o=t.getChildren();return 0===o.length||!!n[0].getItemGroupedChildBindings().find((function(t,n){return xs(e,o[n],t)}))}return!0},ks=function(e){function t(){return bs(this,t),hs(this,t,arguments)}var n,o,r;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&&ws(e,t)}(t,e),n=t,(o=[{key:"_handleParams",value:function(e){this.showLanguage=!1!==e.showLanguage,this.filterTranslations=!1!==e.filterTranslations,this.defaultLanguage=e.defaultLanguage,this.styleCls=e.styleCls||"rdformsPresenter",gs(ys(t.prototype),"_handleParams",this).call(this,e)}},{key:"showNow",value:function(e,t){return xs(this,e,t)}},{key:"skipBinding",value:function(e){var t=e.getItem(),n="group"===t.getType();return!(!t.getProperty()&&n&&0===t.getChildren().length)&&n&&0===e.getChildBindings().length}},{key:"prepareBindings",value:function(e,t){return e.hasStyle("filterTranslations")||this.filterTranslations&&"LANGUAGE_LITERAL"===e.getNodetype()&&!e.hasStyle("viewAllTranslations")?Cr.filterTranslations(t,sr().locale(),this.defaultLanguage):t}},{key:"addLabel",value:function(e,t,n){n.hasStyle("noLabelInPresent")?Cr.domClassToggle(e,"rdformsInvisibleGroup",!0):Cr.renderPresenterLabel(e,t,n,this.context)}},{key:"addTable",value:function(e,t){return Cr.addPresenterTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){return Cr.fillPresenterTable(e,t,{view:this})}},{key:"preRenderView",value:function(){Cr.prePresenterViewRenderer(this.domNode,this.binding,{view:this,topLevel:this.topLevel})}},{key:"addComponent",value:function(e,t){Cr.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}}])&&ps(n.prototype,o),r&&ps(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewId=us,us+=1,this.parentView=t.parentView,this.srcNodeRef=n,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"===ls(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=Cr.createDomNode(n,this),Cr.domClassToggle(this.domNode,"rdforms",!0),Cr.domClassToggle(this.domNode,this.styleCls,!0),this.render()}var t,n,o;return t=e,(n=[{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(n){return t.namedGraphs[n]===e})):void 0}},{key:"destroy",value:function(){Cr.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),Xa(this.binding)):this.binding=$a(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(Cr.domText(this.domNode,""),null!=this.binding){var e=Cr.getMessages();if(this.messages=e,null!=this.binding){var t,n,o,r,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")?Cr.domClassToggle(this.domNode,"compact",!1):Cr.domClassToggle(this.domNode,"compact",!0),this.preRenderView(),t=0;t<s.length;t++)if(r=s[t],i=a[t],(!this.restrictToItem||this.restrictToItem===i)&&this.showNow(i,r)){if(r=this.prepareBindings(i,r),this.showAsTable(i))this.context={view:this},o=this.createRowNode(o,r[0],i),r.length>0&&(n=this.addTable(o,r[0],i),this.fillTable(n,r));else if(r.length>0)if(this.isMultiValued(i))this.context={view:this},o=this.addRow(o,r[0],!0);else{for(var l=this.truncateAt(i,r),c=0;c<r.length;c++)this.context={view:this},o=this.addRow(o,r[c],0===c||r[c]instanceof qr,c,l);if(-1!==l){var d=Cr.domQuery(".rdformsFields",o);d&&Cr.addTruncateControl(d,this.context)}}else this.context={view:this},o=this.createRowNode(o,null,i);r.length>0&&r[0].getCardinalityTracker().checkCardinality()}}}}},{key:"addRow",value:function(e,t,n,o,r){var i,a,s=n,l=t.getItem();if(!this.skipBinding(t)){if(null==s&&(s=t instanceof qr),!0===s){a=this.createRowNode(e,t,l);var c=Cr.domCreate("div",a);Cr.domClassToggle(c,"rdformsFields",!0),-1!==r&&Cr.domClassToggle(c,"rdformsTruncated",!0),l.hasStyle("inline")&&Cr.domClassToggle(c,"rdformsInline",!0),i=Cr.domCreate("div",c),this.createEndOfRowNode(a,t,l)}else{var d=Cr.domQuery(".rdformsFields",e);if(null!=d)i=Cr.domCreate("div",d),Cr.domClassToggle(i,"rdformsRepeatedValue",!0),-1!==r&&o>=r&&Cr.domClassToggle(i,"rdformsMaybeTruncated",!0);else{var u=Cr.domCreate("div",e);Cr.domClassToggle(u,"rdformsFields",!0),l.hasStyle("inline")&&Cr.domClassToggle(u,"rdformsInline",!0),i=Cr.domCreate("div",u),this.createEndOfRowNode(a,t,l)}}if(this.markOrigin){var f=this.getNamedGraphId(t);f?(Cr.domClassToggle(i,"rdformsOrigin",!0),Cr.domClassToggle(i,"rdformsOrigin_".concat(f),!0)):(Cr.domClassToggle(i,"rdformsOrigin",!0),Cr.domClassToggle(i,"rdformsOrigin_default",!0))}return"group"===l.getType()?Cr.domClassToggle(i,"rdformsGroup",!0):Cr.domClassToggle(i,"rdformsField",!0),this._binding2node[t.getHash()]=i,this.addComponent(i,t),l.hasStyle("invisible")&&Cr.domClassToggle(a||e,"rdformsInvisible",!0),a||e}}},{key:"createRowNode",value:function(e,t,n){var o;o=null==e?Cr.domCreate("div",this.domNode,t?this.getRowIndex(t):void 0):Cr.domCreateAfter("div",e,t?this.getRowIndex(t):void 0),n.getClasses().forEach((function(e){Cr.domClassToggle(o,e,!0)})),Cr.domClassToggle(o,"rdformsRow",!0),Cr.domClassToggle(o,"rdformsTopLevel",this.topLevel),Cr.domClassToggle(o,"rdformsInvisibleGroup",n.hasStyle("invisibleGroup")),Cr.domClassToggle(o,"rdformsHeading",n.hasStyle("heading")),Cr.domClassToggle(o,"notCompact","group"===n.getType()||n.hasStyle("nonCompact")),Cr.domClassToggle(o,"rdformsCompactItem",n.hasStyle("compact")),this.addLabel(o,t,n),t&&this.filterBinding(t)&&Cr.domClassToggle(o,"hiddenProperty",!0);var r=void 0!==this._subEditors;return(n.hasStyle("card")||n.hasStyle("cardInEdit")&&r||n.hasStyle("cardInPresent")&&!r)&&Cr.domClassToggle(o,"rdformsCard",!0),o}},{key:"createEndOfRowNode",value:function(e,t,n){}},{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,n=this._getFilterPredicates();return!!n&&function e(n,o){var r=n.getId();if(r&&Object.keys(o).includes(r))return!0;var i=n.getProperty();if(i){for(var a=!0,s=t;s.parentView;)s.getBinding().getItem().getProperty()&&(a=!1),s=s.parentView;var l=N(i);return a?!0===o[i]||!0===o[l]||!0===o["*".concat(i)]||!0===o["".concat(l)]:!0===o["*".concat(i)]||!0===o["*".concat(l)]}if("group"===n.getType()){var c=n.getChildren()||[],d=!1;return c.forEach((function(t){e(t,o)||(d=!0)})),!d}return!1}(e,n)}},{key:"filterProperty",value:function(e){return!0===(this._getFilterPredicates()||{})[e]}},{key:"getLabelIndex",value:function(e){var t,n=this;return e.getParent().getChildBindingsFor(e.getItem()).reverse().find((function(e){return void 0!==(t=n._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}}])&&cs(t.prototype,n),o&&cs(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}());function _s(e){return(_s="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 Cs(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ss(o.key),o)}}function Ss(e){var t=function(e,t){if("object"!=_s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=_s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_s(t)?t:String(t)}function Ts(e,t,n){return t=Ds(t),function(e,t){if(t&&("object"===_s(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,n||[],Ds(e).constructor):t.apply(e,n))}function As(){return(As="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Os(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Os(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ds(e)););return e}function Ds(e){return(Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Is(e,t){return(Is=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ns=function(e,t,n,o){if(t.hasStyle("presenterOnly"))return!1;if(t.hasStyle("deprecated")&&0===n.length)return!1;var r=t.getProperty();if(n.length>0){if(r)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(n[0].getItemGroupedChildBindings().find((function(t,n){return Ns(e,i[n],t,o)})))return!0;if(!r)return!1}var a=t.getCardinality();switch(o){case"mandatory":return a&&a.min>=1;case"recommended":return a&&(a.min>=1||a.pref>=1);default:return!0}},js=function(e){function t(){return Es(this,t),Ts(this,t,arguments)}var n,o,r;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&&Is(e,t)}(t,e),n=t,(o=[{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,As(Ds(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,n=e||Xa(this.binding);Object.keys(this._binding2node).forEach((function(e){Cr.domClassToggle(t._binding2node[e],"errorReport",!1)}));for(var o=function(){var e=n.errors[r];if(e.parentBinding===t.binding)if(e.code===jr.TOO_FEW_VALUES_MIN){var o=e.item,i=o.getCardinality().min;t.binding.getChildBindingsFor(o).find((function(e){return i-=1,e.isValid()||Cr.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0),0===i}))}else e.code===jr.AT_MOST_ONE_CHILD&&t.binding.getChildBindings().forEach((function(e){e.getMatchingCode()!==jr.OK&&Cr.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0)}))},r=0;r<n.errors.length;r++)o();for(var i=0;i<this._subEditors.length;i++)this._subEditors[i].report(n)}},{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=$a(this.graph,this.resource,this.template),this._subEditors=[],this.render()))}},{key:"show",value:function(e){this._subEditors=[],As(Ds(t.prototype),"show",this).call(this,e)}},{key:"showNow",value:function(e,t){return Ns(this,e,t,this.includeLevel)}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var n,o=t,r=e.getCardinality();if(n=r.pref>0?r.pref:r.min>0?r.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 o;if(n>o.length)for(o=o.concat([]);n>o.length;)o.push(Wa(this.binding,e));return o}},{key:"addLabel",value:function(e,t,n){Cr.renderEditorLabel(e,t,n,this.context)}},{key:"createEndOfRowNode",value:function(e,t,n){Cr.renderEditorLabelScopeEnd(e,t,n,this.context)}},{key:"addTable",value:function(e,t){return t.getItem().hasStyle("nonEditable")?this.addComponent(e,t):Cr.addEditorTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){Cr.fillEditorTable(e,t,{view:this})}},{key:"preRenderView",value:function(){Cr.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")?Cr.renderPresenter(e,t,this.context):Cr.renderEditor(e,t,this.context)}},{key:"createRowNode",value:function(e,n,o){if(null!=n||!o.hasStyle("nonEditable")){var r=As(Ds(t.prototype),"createRowNode",this).call(this,e,n,o);if("choice"===o.getType()&&void 0===o.getProperty()){var i=Qa(o,n.getParent());i&&n.setChoice(i)}var a=o.getDeps();if(a){var s=function(e){e?(Cr.domClassToggle(r,"missingDepsWithValue",!1),Cr.domClassToggle(r,"missingDeps",!1)):n.isValid()?Cr.domClassToggle(r,"missingDepsWithValue",!0):Cr.domClassToggle(r,"missingDeps",!0),n.getCardinalityTracker().setDepsOk(e)},l=qa(n.getParent(),a);Ga(l,a)||s(!1),l.addListener((function e(){n.getParent()?s(Ga(l,a)):l.removeListener(e)}))}return this.filterBinding(n)&&Cr.domClassToggle(r,"hiddenProperty",!0),o.hasStyle("deprecated")&&Cr.domClassToggle(r,"rdformsDeprecated",!0),r}}},{key:"isMultiValued",value:function(e){return Cr.multiValueSupport&&(e.hasStyle("horizontalCheckBoxes")||e.hasStyle("verticalCheckBoxes"))}},{key:"truncateAt",value:function(e,t){return-1}}])&&Cs(n.prototype,o),r&&Cs(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ks);Cr.renderPresenterLabel=function(e,t,n,o,r){var i=o.view instanceof js&&n.getEditLabel()||n.getLabel();i=null!=i&&""!==i?i.charAt(0).toUpperCase()+i.slice(1):"";var a=n.hasStyle("heading")?Tr()('<h2 class="rdformsLabel" tabindex="0">').text(i).appendTo(e):Tr()('<div class="rdformsLabel" tabindex="0">').text(i).appendTo(e);t&&a.attr("id",o.view.createLabelIndex(t)),r&&a.addClass("rdformsLabelRow"),o&&(o.labelNode=a[0]);var s=o.view;if(n.hasStyle("showDescriptionInPresent")||s.showDescription){var l=n.hasStyle("compact")||s.compact&&!n.hasStyle("nonCompact")&&(s.topLevel&&"group"!==n.getType()||s.parentView&&s.parentView.topLevel&&s.binding.getItem().hasStyle("heading")),c=n.getDescription();!l&&c&&Tr()('<div class="rdformsDescription" tabindex="0">').text(c).appendTo(e)}Cr.attachItemInfo(n,a[0],o)},Cr.attachItemInfo=function(e,t){if(null!=e&&null!=e.getDescription()){var n=e.getDescription();t.setAttribute("title",n)}};const Ms=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&","<":"<",">":">",'"':""","'":"'"});const Ls=function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r};const Ps=function(e){return"symbol"==typeof e||yn(e)&&"[object Symbol]"==Et(e)};var Rs=mt?mt.prototype:void 0,zs=Rs?Rs.toString:void 0;const Fs=function e(t){if("string"==typeof t)return t;if(Cn(t))return Ls(t,e)+"";if(Ps(t))return zs?zs.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const Bs=function(e){return null==e?"":Fs(e)};var $s=/[&<>"']/g,Vs=RegExp($s.source);const Us=function(e){return(e=Bs(e))&&Vs.test(e)?e.replace($s,Ms):e};var Hs=function(e){var t,n=function(e){return e&&e.length>1?parseInt(e[0],10):0},o=n(e.match(/([0-9])*Y/)),r=n(e.match(/([0-9])*D/)),i=n(e.match(/([0-9])*H/)),a=0;if(-1===e.indexOf("T"))t=n(e.match(/([0-9])*M/));else{var s=e.split("T");t=n(s[0].match(/([0-9])*M/)),a=n(s[1].match(/([0-9])*M/))}return{years:o,months:t,days:r,hours:i,minutes:a}},Ys=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}},Ws=function(e){var t=e.getValue();if(null!=t&&""!==t){var n=e.getItem(),o=function(e){try{if(e.includes(":")&&!e.includes("T")){var t=(new Date).toISOString().substr(0,11),n=new Date("".concat(t).concat(e));return n.setMinutes(n.getMinutes()+n.getTimezoneOffset()),n}return new Date(e)}catch(e){return null}}(t);if(o){var r=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=Ys(e.getDatatype()),a=function(e){var t=e.getDatatype();return Array.isArray(t)?Ys(t[0]):Ys(t)}(n),s=function(e){var t={},n=e.getDatatype();return(Array.isArray(n)?n:[n]).forEach((function(e){var n=Ys(e);n&&(t[n]=!0)})),t}(n);return function(e,t){switch(e){case"DateTime":return sr()(t).format("lll");case"Date":return sr()(t).format("LL");case"Time":return sr()(t).format("LT");case"Year":return sr()(t).format("YYYY");case"YearMonth":return sr()(t).format("MMMM YYYY");case"MonthDay":return sr()(t).format("D MMMM");default:return""}}(s[i]?i:s[r]?r:a,o)}}},Gs=function(e,t){var n,o=null===(n=e.getStatement()||e.getParent().getStatement())||void 0===n?void 0:n.getNamedGraph();if(o){for(var r=t.view;r.getParentView();)r=r.getParentView();return r.getNamedGraphId(o)}},qs=n(9755),Qs=Cr.presenterRegistry;Qs.itemtype("text").nodetype("URI").register((function(e,t){var n=dr.getLocalizedMap(t),o=qs('<a class="rdformsUrl">').attr("title",t.getValue()).attr("href",t.getValue()).appendTo(e);t.getItem().hasStyle("showValue")?o.text(t.getValue()):n?o.text(dr.getLocalizedValue(n).value):o.text(t.getGist()),t.getItem().hasStyle("externalLink")?fr.attachExternalLinkBehaviour(o[0],t):fr.attachLinkBehaviour(o[0],t)})),Qs.itemtype("group").nodetype("URI").style("linkWithLabel").register((function(e,t,n){var o,r=t.getValue(),i=t.getItem().getChildren().find((function(e){return e.hasStyle("label")})),a=i?Cr.filterTranslations(t.getChildBindingsFor(i),sr().locale(),n.view.defaultLanguage):[],s=t.getItem().getChildren().find((function(e){return e.hasStyle("tooltip")})),l=s?Cr.filterTranslations(t.getChildBindingsFor(s),sr().locale(),n.view.defaultLanguage):[],c=l.length>0?l[0].getValue():r,d=qs('<a class="rdformsUrl">').attr("title",c).attr("href",r).appendTo(e);if(a.length>0)o=a[0].getValue();else{var u=dr.getLocalizedMap(t);o=t.getItem().hasStyle("showValue")?r:u?dr.getLocalizedValue(u).value||r:t.getGist()}d.text(o),t.getItem().hasStyle("externalLink")?fr.attachExternalLinkBehaviour(d[0],t):fr.attachLinkBehaviour(d[0],t)})),Qs.itemtype("text").nodetype("URI").style("image").register((function(e,t){qs('<img class="rdformsImage">').attr("src",t.getGist()).appendTo(e)})),Qs.itemtype("text").register((function(e,t,n){var o=t.getLanguage();n.view.showLanguage&&o&&qs('<div class="rdformsLanguage">').text(o).appendTo(e);var r=Us(t.getItem().hasStyle("showValue")?t.getValue():t.getGist()).replace(/(\r\n|\r|\n)/g,"\n"),i=t.getParent();if(t.getItem().hasStyle("label")&&!0!==n.view.topLevel&&null!=i&&i.getItem().getChildren()[0]===t.getItem()&&null!=i.getStatement()&&"uri"===i.getStatement().getType()){var a=qs('<a class="rdformsUrl">').attr("href",i.getStatement().getValue()).html(r).appendTo(e);o&&a.attr("lang",o),fr.attachLinkBehaviour(a[0],i)}else{var s=qs("<div>").html(r).appendTo(e);o&&s.attr("lang",o)}t.getItem().hasStyle("multiline")?qs(e).toggleClass("rdformsMultiline",!0):qs(e).toggleClass("rdformsSingleline",!0)})),Qs.itemtype("text").datatype("xsd:duration").register((function(e,t,n){var o=Hs(t.getValue()),r=n.view.messages,i=qs("<div>").appendTo(e)[0];["years","months","days","hours","minutes"].forEach((function(e){o.hasOwnProperty(e)&&0!==o[e]&&qs('<span class="durationLabel">'.concat(r["duration_".concat(e)],':</span><span class="durationValue">').concat(o[e],"</span>")).appendTo(i)}))}));var Zs=function(e,t){try{var n=Ws(t);qs("<div>").html(n).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."))}};Qs.itemtype("text").datatype("xsd:dateTime").register(Zs),Qs.itemtype("text").datatype("xsd:date").register(Zs),Qs.itemtype("text").datatype("xsd:time").register(Zs),Qs.itemtype("text").datatype("xsd:gYear").register(Zs),Qs.itemtype("text").datatype("xsd:gYearMonth").register(Zs),Qs.itemtype("text").datatype("xsd:gMonthDay").register(Zs),Qs.itemtype("text").datatype("dcterms:W3CDTF").register(Zs);var Xs=n(9755),Ks=Cr.presenterRegistry,Js=function(e){return function(t,n){var o,r=n.getChoice();r&&(r.description&&(o=dr.getLocalizedValue(r.description).value),e(t,n,r,o))}};Ks.itemtype("choice").style("image").register(Js((function(e,t,n,o){Xs('<img class="rdformsImage">').attr("src",n.value).attr("title",o||n.value).appendTo(e)}))),Ks.itemtype("choice").style("stars").register(Js((function(e,t,n){isNaN(parseInt(n.value,10))||Xs('<span class="rdformsStar">').appendTo(e)}))),Ks.itemtype("choice").register(Js((function(e,t,n,o){var r,i=t.getItem(),a=dr.getLocalizedValue(n.label);i.hasStaticChoices()&&!i.hasStyle("externalLink")||i.hasStyle("noLink")?r=Xs("<div>").attr("title",o||n.seeAlso||n.value).text(dr.getLocalizedValue(n.label).value).appendTo(e):(r=Xs('<a class="rdformsUrl">').attr("href",n.seeAlso||n.value).attr("title",o||n.seeAlso||n.value).text(a.value).appendTo(e),i.hasStyle("externalLink")?fr.attachExternalLinkBehaviour(r[0],t):fr.attachLinkBehaviour(r[0],t)),null!=n.load&&n.load((function(){var e=dr.getLocalizedValue(n.label);r.text(e.value),e.lang?r.attr("lang",e.lang):r.attr("lang",void 0)})),a.lang&&r.attr("lang",a.lang)}))),Cr.addPresenterTable=function(e,t,n){var o=t.getItem(),r=o.getChildren(),i=Tr()("<table>").addClass("rdformsGroup").appendTo(e);Tr()("<thead>").appendTo(i);for(var a=Tr()("<tr>").appendTo(i),s=0;s<r.length;s++){var l=Tr()("<th>").appendTo(a);Cr.attachItemInfo(o,Tr()("<span>").text(r[s].getLabel()).appendTo(l),n)}return i[0]},Cr.fillPresenterTable=function(e,t,n){if(0!==t.length){var o,r,i,a,s=n.view.topLevel;for(n.view.topLevel=!1,o=0;o<t.length;o++)for(i=t[o].getItemGroupedChildBindings(),a=Tr()("<tr>").appendTo(e),r=0;r<i.length;r++)i[r].length>0?Cr.renderPresenter(Tr()("<td>").appendTo(a),i[r][0],{view:n.view,noCardinalityButtons:!0}):Tr()("<td>").appendTo(a);n.view.topLevel=s}};var el=function(e,t){var n=document.createElement(e);return t&&(n.id=t),n};Cr.domQuery=function(e,t){return t.querySelector(e)},Cr.domCreate=function(e,t,n){return t.appendChild(el(e,n))},Cr.domCreateAfter=function(e,t,n){return t.parentNode.insertBefore(el(e,n),t.nextSibling)},Cr.domSetAttr=function(e,t,n){""===n||null===n?e.removeAttribute(t):e.setAttribute(t,n)},Cr.domText=function(e,t){e.innerText=t},Cr.domClassToggle=function(e,t,n){t.split(" ").forEach((function(t){n?e.classList.add(t):e.classList.remove(t)}))},Cr.prePresenterViewRenderer=Cr.preEditorViewRenderer,Cr.addTruncateControl=function(e,t){var n=t.view.messages,o=Cr.domCreate("button",e);Cr.domClassToggle(o,"rdformsShowMore",!0),o.innerText=n.showMore,o.onclick=function(){Cr.domClassToggle(e,"rdformsTruncated",!1)};var r=Cr.domCreate("button",e);Cr.domClassToggle(r,"rdformsShowLess",!0),r.innerText=n.showLess,r.onclick=function(){Cr.domClassToggle(e,"rdformsTruncated",!0)}};var tl=Cr.presenterRegistry,nl=Cr.editorRegistry,ol=function(e){return function t(n,o,r){var i=o.getValue();r.inEditor&&(null!=i&&""!==i||o.setGist(dr.generateUUID(),!0)),e.getComponentBefore(o.getItem(),t)(n,o,r)}};tl.itemtype("text").style("autoUUID").register(ol(tl)),nl.itemtype("text").style("autoUUID").register(ol(nl));var rl=function(e){return function t(n,o,r){var i=o.getValue(),a=o.getItem();r.inEditor&&(null==i||""===i?(a.hasStyle("autoInitDate")||a.hasStyle("autoUpdateDate"))&&o.setValue((new Date).toISOString(),!0):a.hasStyle("autoUpdateDate")&&o.setValue((new Date).toISOString(),!0)),e.getComponentBefore(o.getItem(),t)(n,o,r)}},il=rl(tl);tl.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(il),tl.itemtype("text").datatype("xsd:date").style("autoInitDate").register(il),tl.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(il),tl.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(il);var al=rl(nl);nl.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(al),nl.itemtype("text").datatype("xsd:date").style("autoInitDate").register(al),nl.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(al),nl.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(al);var sl=function(e){return function t(n,o,r){if(r.inEditor){var i=o.getValue(),a=o.getItem().getDeps();if((null==i||""===i)&&a){var s=Za.findBindingRelativeToParentBinding(o.getParent(),a),l=function(e){var t=Za.matchPathBelowBinding(s,a),n=o.getGist(),r=t?t.getValue():"";n!=r&&o.setGist(r,e)};l(!0),s.addListener((function(e){e!=o&&l()}))}}e.getComponentBefore(o.getItem(),t)(n,o,r)}};tl.itemtype("text").style("autoValue").register(sl(tl)),nl.itemtype("text").style("autoValue").register(sl(nl)),Cr.renderEditorLabel=function(e,t,n,o){if(n.hasStyle("nonEditable")||n.hasStyle("heading"))return Cr.renderPresenterLabel(e,t,n,o,!0);var r=n.getEditLabel()||n.getLabel();r=null!=r&&""!==r?r.charAt(0).toUpperCase()+r.slice(1):"";var i=Tr()('<div class="rdformsLabelRow">').appendTo(e);t&&i.attr("id",o.view.createLabelIndex(t)),o.labelNode=i[0];var a=Tr()('<span class="rdformsLabel" tabindex="0">').text(r).appendTo(i),s=n.getCardinality(),l=o.view.messages;n.getProperty()&&(s.min>0?Tr()('<span class="rdformsMark rdformsMandatoryMark">').text(l.mandatoryMark).appendTo(i):s.pref>0?Tr()('<span class="rdformsMark rdformsRecommendedMark">').text(l.recommendedMark).appendTo(i):Tr()('<span class="rdformsMark rdformsOptionalMark">').text(l.optionalMark).appendTo(i)),null==t?Cr.addExpandButton(e,i[0],n,o):o.view.showAsTable(n)||null!==s.max&&s.max===s.min||("group"===n.getType()?n.getProperty()&&Cr.addGroupButtons(e,i[0],t,o):Cr.addCreateChildButton(e,i[0],t,o));var c=o.view;if(n.hasStyle("showDescriptionInEdit")||c.showDescription){var d=n.hasStyle("compact")||c.compact&&!n.hasStyle("nonCompact")&&(c.topLevel&&"group"!==n.getType()||c.parentView&&c.parentView.topLevel&&c.binding.getItem().hasStyle("heading")),u=o.view instanceof js&&n.getEditDescription()||n.getDescription();!d&&u&&Tr()('<div class="rdformsDescription" tabindex="0">').text(u).appendTo(e)}Cr.attachItemInfo(n,a[0],o)},Cr.attachItemInfo=function(e,t,n){if(null==e||null==e.getProperty()&&null==e.getDescription()&&null==e.getEditDescription())Tr()(t).addClass("noPointer");else{var o=n.view instanceof js&&e.getEditDescription()||e.getDescription()||"",r="";e.getProperty()&&(r='<div class="property"><a target="_blank" href="'.concat(e.getProperty(),'">').concat(e.getProperty(),"</a></div>"));var i=n.view instanceof js&&e.getEditLabel()||e.getLabel();i=null!=i&&""!==i?i.charAt(0).toUpperCase()+i.slice(1):"";var a={html:!0,container:Cr.getPopoverContainer(),placement:"auto",trigger:"focus",title:i,content:'<div class="description">'.concat(o.replace(/(\r\n|\r|\n)/g,"<br/>"),"</div>").concat(r)};Tr()(t).popover(a).attr("data-toggle","popover")}};n(1552);var ll=n(9755),cl=0;var dl=n(9755),ul=Cr.editorRegistry;ul.itemtype("text").datatype("xsd:duration").register((function(e,t,n){var o=n.view.messages,r=Hs(t.getValue()),i=ll("<div>").addClass("rdformsDuration rdformsFieldInput").appendTo(e),a=Gs(t,n)?"disabled":"",s=function(){i.empty(),["years","months","days","hours","minutes"].forEach((function(e){var n=ll("<div>").appendTo(i),s=ll("<div>").addClass("input-group").appendTo(n),l="duration_".concat(cl);cl+=1,ll("<span>").addClass("input-group-addon").attr("id",l).text(o["duration_".concat(e)]).appendTo(s);var c=ll("<input ".concat(a,">")).addClass("form-control").attr("type","number").attr("aria-describedby",l).appendTo(s);r[e]&&c.val(r[e]),c.change((function(){r[e]=ll(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}(r))}))}))};s(),n.clear=function(){r={},s()}}));var fl=function(e,t,n,o,r){var i=null,a=function(){i=null;var a=e.val().trim(),s=!0;""===a||!n||n.test(a)?(t.setGist(a),o&&a&&(o.prop("href",t.getValue()),s=!1),r&&r.toggleClass("rdformsHelpActive",!1)):r&&r.toggleClass("rdformsHelpActive",!0),o&&o.toggleClass("rdformsExtLinkDisabled",s),e.toggleClass("rdformsEmpty",""===a)};e.on("keyup paste",(function(){null!=i&&clearTimeout(i),i=setTimeout(a,200)}))},bl=function(e,t){var n=new RegExp(e);ul.itemtype("text").datatype(t).register((function(t,o,r){var i=dl('<input type="text" class="form-control rdformsFieldInput"\n placeholder="'.concat(o.getItem().getPlaceholder()||"",'">'));i.val(o.getGist()).attr("pattern",e).appendTo(t);var a,s=o.getItem().getHelp();if(s&&(a=dl('<span class="rdformsHelp">'.concat(s,"</span>"))).appendTo(t),o.getItem().hasStyle("externalLink")){var l=dl('<a class="fas fa-external-link-alt rdformsExtLink '.concat(Cr.getExtLinkClass(),'" target="_blank">'));l.appendTo(r.controlDiv),dl(t).addClass("rdformsExtLinkControl"),fl(i,o,n,l,a),i.keyup()}else fl(i,o,n,void 0,a);o.getItem().isEnabled()||i.prop("disabled",!0)}))};bl("^-?\\d+$","xsd:integer"),bl("^(\\d+(\\.\\d+)?)$","xsd:decimal"),ul.itemtype("text").register((function(e,t,n){var o,r=t.getItem(),i=Gs(t,n)?"disabled":"";if(r.hasStyle("multiline")){var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:70,n=e.split("\n").length;return n+=Number.parseInt(e.length/t,10)}(t.getGist());(o=dl("<textarea ".concat(i,' class="form-control rdformsFieldInput autoExpand" placeholder="').concat(r.getPlaceholder()||"",'" rows="').concat(a,'">'))).on("input focus",(function(){if(void 0===this.baseScrollHeight){var e=o.height();this.baseScrollHeight=o.innerHeight()-e,this.baseLineHeight=e/a}this.rows=1;var t=1+Math.ceil((this.scrollHeight-this.baseScrollHeight)/this.baseLineHeight);this.rows=t}))}else o=r.hasStyle("email")?dl("<input ".concat(i,' type="email" class="form-control rdformsFieldInput" placeholder="').concat(r.getPlaceholder()||"",'">')):dl("<input ".concat(i,' type="text" class="form-control rdformsFieldInput" placeholder="').concat(r.getPlaceholder()||"",'">'));o.val(t.getGist()).appendTo(e);var s,l=r.getHelp();l&&(s=dl('<span class="rdformsHelp">'.concat(l,"</span>"))).appendTo(e);var c=r.getPattern(),d=null;if(null!=c&&(o.attr("pattern",c),d=new RegExp(c)),r.hasStyle("externalLink")){var u=dl('<a class="fas fa-external-link-alt rdformsExtLink '.concat(Cr.getExtLinkClass(),'" target="_blank">'));u.appendTo(n.controlDiv),dl(e).addClass("rdformsExtLinkControl"),fl(o,t,d,u,s),o.keyup()}else fl(o,t,d,void 0,s);var f=r.getNodetype();if("LANGUAGE_LITERAL"===f||"PLAIN_LITERAL"===f){dl(e).addClass("rdformsLangcontrolledfield"),dl(n.controlDiv).addClass("rdformsLangFieldControl");var b=dl("<select ".concat(i,' class="form-control rdformsLanguage">')).appendTo(n.controlDiv),p=Cr.getPrimaryLanguageList(),m=Cr.getNonPrimaryLanguageList();if(m=dr.cloneArrayWithLabels(m),0===p.length||((p=dr.cloneArrayWithLabels(p,!0)).forEach((function(e){dl("<option>").html(e.label).val(e.value).appendTo(b)})),dl("<option>").html("─────").attr("disabled","disabled").appendTo(b)),m.forEach((function(e){dl("<option>").html(e.label).val(e.value).appendTo(b)})),t.isValid())b.val(t.getLanguage());else{var h=sr().locale();"string"==typeof h&&""!==h&&(b.val(h),t.setLanguage(h))}b.val(t.getLanguage()).change((function(){t.setLanguage(b.val())})),n.clear=function(){b.val(""),o.val("")}}else n.clear=function(){o.val("")}}));var pl=n(9755);function ml(e){return(ml="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 hl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,gl(o.key),o)}}function gl(e){var t=function(e,t){if("object"!=ml(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ml(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ml(t)?t:String(t)}var vl=0,yl=function(){function e(t,n){var o=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:o.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=n,this.buildRendering()}var t,n,o;return t=e,(n=[{key:"clear",value:function(){pl(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(),n=function(){var n,r=e.choices[o],i=pl('<div class="radio form-check">').appendTo(e.domNode);n=e.item.hasStyle("verticalRadioButtons")?pl("<label>").appendTo(i):pl('<label class="form-check-label">').appendTo(i),r.description&&n.attr("title",e.item._getLocalizedValue(r.editdescription||r.description).value||r.seeAlso||r.value);var a=Gs(e.binding,e.context)?"disabled":"",s=pl("<input ".concat(a,' type="radio">')).val(r.value).attr("checked",r.value===t).attr("name","rdformsRadio_".concat(vl)).appendTo(n);n.append(e.item._getLocalizedValue(r.editlabel||r.label).value),r.mismatch?(n.addClass("mismatch disabled"),s.attr("disabled",!0)):n.click((function(){e.binding.setValue(s.val())}))},o=0;o<this.choices.length;o++)n();vl+=1}}])&&hl(t.prototype,n),o&&hl(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),wl=n(9755),xl=Cr.editorRegistry;xl.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,n){new yl({binding:t,context:n},e)})),xl.itemtype("choice").choices().register((function(e,t,n){var o=t.getItem(),r=o.getChoices().map((function(e){return{id:e.value,text:o._getLocalizedValue(e.editlabel||e.label).value,choice:e}}));o.hasStyle("preserveOrderOfChoices")||r.sort((function(e,t){return e.text<t.text?-1:1})),n.choices=r,Cr.renderSelect(e,t,n);var i=n.setValue,a=t.getChoice();a&&(null!=a.load?a.load((function(){i(a)})):i(a))})),xl.itemtype("choice").choices("none").register((function(e,t,n){n.chooser=Cr.chooserRegistry.getComponent(t.getItem()),n.choices=void 0;var o=Gs(t,n)?"disabled":"",r=function(){Cr.renderSelect(e,t,n);var r=n.setValue,i=wl("<button ".concat(o,' class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm browseChoices" type="button">')).attr("title",n.view.messages.edit_browse).appendTo(e);if(n.chooser&&n.chooser.supportsInlineCreate&&n.chooser.supportsInlineCreate(t)){var a=wl('<span class="fa-stack">').appendTo(i);wl('<span class="fas fa-search fa-stack-1x" aria-hidden="true">').appendTo(a),wl('<span class="fas fa-plus fa-stack-1x" aria-hidden="true">').appendTo(a)}else wl('<span class="fas fa-search" aria-hidden="true">').appendTo(i);var s=function(e){e?(t.setChoice(e),null!=e.load?e.load((function(){r(e)})):r(e)):t.setChoice(null)};n.chooser&&"function"==typeof n.chooser.show?i.click((function(){Cr.openChoiceSelector(t,s)})):i.addClass("disabled"),fr.hasDnDSupport(t)&&fr.addDnD(t,cNode,s)},i=t.getChoice();if(i)if(null!=i.load){var a=wl('<div class="form-group rdforms-upgrade">').appendTo(e);wl('<input type="text" disabled class="form-control rdformsFieldInput">').val(i.value).appendTo(a),i.load((function(){if(i.upgrade){var e=wl("<button ".concat(o,' class="btn btn-default bmd-btn-fab bmd-btn-fab-sm')+' browseChoices" type="button">').attr("title",n.view.messages.edit_upgrade).click((function(){i.upgrade(t,(function(o){a.remove(),e.remove(),r(),n.setValue(o),t.setChoice(o)}))})).insertAfter(a);wl('<span class="fas fa-magic" aria-hidden="true">').appendTo(e)}else a.remove(),r(),n.setValue(i)}))}else r(),n.setValue(i);else r()}));var kl=n(9755);Cr.addRemoveButton=function(e,t,n){var o=Gs(t,n)?"disabled":"",r=kl("<button ".concat(o,' class="fas fa-times action rdformsActionButton">')).attr("title",n.view.messages.edit_remove).appendTo(n.controlDiv),i=t.getCardinalityTracker(),a=i.addListener((function(){}));r.click((function(){if(!i.isMin()||!i.isDepsOk()||1===i.getCardinality())if(1===i.getCardinality()){"choice"===t.getItem().getType()?t.setChoice(null):t.setValue("");var o=t.getItem().getNodetype();"LANGUAGE_LITERAL"!==o&&"PLAIN_LITERAL"!==o||t.setLanguage(""),n.clear?n.clear():kl(e).find("input").val("")}else i.removeListener(a),r.unbind("click"),t.remove(),kl(e).remove()}))},Cr.addExpandButton=function(e,t,n,o){var r=kl('<button class="fas fa-plus action rdformsActionButton">').attr("title",o.view.messages.edit_expand).appendTo(t).click((function(){var i=Wa(o.view.binding,n);if(o.view.showAsTable(n)){var a=o.view.addTable(e,i,n);o.view.fillTable(a,[i])}else o.view.addRow(e,i,!1),Cr.addGroupButtons(e,t,i,o);r.unbind("click").remove()}))},Cr.addGroupButtons=function(e,t,n,o){var r,i=n.getParent(),a=n.getItem(),s=n.getCardinalityTracker(),l=a.getCardinality();1!==l.max&&(r=kl('<button class="action fas fa-plus rdformsActionButton">').attr("title",o.view.messages.edit_add).appendTo(t)).click((function(){if(!s.isMax()){var t=Wa(i,a);o.view.addRow(e,t)}}));var c=Gs(n,o)?"disabled":"",d=kl("<button ".concat(c,' class="action fas fa-times rdformsActionButton">')).attr("title",o.view.messages.edit_remove).appendTo(t);1===l.max&&d.addClass("indentRemove");var u=s.addListener((function(){r&&r.toggleClass("disabled",s.isMax()),d.toggleClass("disabled",s.isMin()&&s.isDepsOk())}));d.click((function(){if(!s.isMin()||!s.isDepsOk())if(o.clear&&o.clear(),1===s.getCardinality()){if(s.removeListener(u),r&&r.unbind("click"),d.unbind("click"),n.remove(),o.view.showNow(a,[])){var t=o.view.prepareBindings(a,[]);t.length>0&&o.view.addRow(e,t[0])}kl(e).remove()}else s.removeListener(u),r&&r.unbind("click"),d.unbind("click"),n.remove(),kl(e).remove()}))},Cr.addCreateChildButton=function(e,t,n,o){var r=n.getParent(),i=n.getItem(),a=n.getCardinalityTracker(),s=kl('<button class="action fas fa-plus rdformsActionButton">').attr("title",o.view.messages.edit_add).appendTo(t).click((function(){if(!a.isMax()){var t=Wa(r,i);o.view.addRow(e,t)}}));a.addListener((function(){s.toggleClass("disabled",a.isMax())}))};var _l=function e(t,n,o){var r=n.getItem().getChildren(),i=n.getItemGroupedChildBindings(),a=Tr()("<tr>").appendTo(t);if(i.forEach((function(e,t){0!==e.length||r[t].hasStyle("nonEditable")||Wa(n,r[t])})),i.forEach((function(e){e.length>0&&Cr.renderEditor(Tr()("<td>").appendTo(a)[0],e[0],{view:o.view,noCardinalityButtons:!0})})),!n.getItem().hasStyle("firstcolumnfixedtable")){var s=Tr()("<td>").addClass("rdformsTableControl").appendTo(a),l=Tr()("<span>").addClass("action editDelete").attr("title",o.view.messages.edit_remove).appendTo(s),c=n.getCardinalityTracker(),d=c.addListener((function(){l.toggleClass("disabled",c.isMin())}));l.click((function(){if(!c.isMin()){if(1===c.getCardinality()){var r=n.getParent(),i=n.getItem(),s=Wa(r,i);e(t,s,o)}c.removeListener(d),removeConnect.remove(),n.remove(),a.remove()}}))}};Cr.addEditorTable=function(e,t,n){var o=t.getItem(),r=o.getChildren(),i=Tr()("<table>").appendTo(e);Tr()(i).addClass("rdformsGroup");var a=Tr()("<thead>").appendTo(i),s=Tr()("<tbody>").appendTo(i),l=Tr()("<tr>").appendTo(a);for(colInd=0;colInd<r.length;colInd++){var c=Tr()("<th>").appendTo(l);Tr()(c).addClass("rdformsColumnHeader".concat(colInd));var d=r[colInd],u=n.view instanceof js&&d.getEditLabel()||d.getLabel();Cr.attachItemInfo(o,Tr()("<span>").text(u).appendTo(c)[0],n)}if(!t.getItem().hasStyle("firstcolumnfixedtable")){var f=Tr()("<th>").addClass("rdformsTableControl").appendTo(l),b=t.getParent(),p=t.getCardinalityTracker(),m=Tr()("<span>").addClass("action editAdd").attr("title",n.view.messages.edit_add).appendTo(f).click((function(){if(!p.isMax()){var e=Wa(b,o);_l(s[0],e,n)}}));p.addListener((function(){m.toggleClass("disabled",p.isMax())}))}return s},Cr.fillEditorTable=function(e,t,n){var o=t;if(0!==o.length){var r=o[0].getItem();if(r.hasStyle("nonEditable"))return Cr.renderEditor(e,o,n);r.hasStyle("firstcolumnfixedtable")&&(o=function(e){var t=[],n=e[0].getItem(),o=n.getChildren()[0],r=o.getChoices();(r=dr.cloneArrayWithLabels(r)).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 n=t[0][0];i[n.getValue()]=e}}));var a=e[0].getParent();return(r||[]).forEach((function(e){if(null!=i[e.value])t.push(i[e.value]);else{var r=Wa(a,n),s=Wa(r,o);s.setExcludeFromTreeValidityCheck(!0),s.setAncestorValid(!1),s.setChoice(e),t.push(r)}})),t}(o)),o.forEach((function(t){_l(e,t,n)}))}},Cr.preEditorRenderer=function(e,t,n){n.$controlDiv=Tr()('<div class="rdformsFieldControl">'),n.controlDiv=n.$controlDiv[0],"group"!==t.getItem().getType()&&!0!==n.noCardinalityButtons&&Cr.addRemoveButton(e,t,n)},Cr.preEditorViewRenderer=function(e,t,n){var o,r=t.getItem();if(!n.hideAddress&&(r.hasStyle("showURI")?o=Tr()('<div class="rdformsField rdformsGroupURI">').text(t.getValue()):r.hasStyle("showLink")&&(o=Tr()('<a class="rdformsField rdformsGroupURI rdformsUrl">').text(t.getValue()).attr("href",t.getValue()),fr.attachExternalLinkBehaviour(o[0],t)),o)){var i=Tr()('<div class="rdformsRow">').appendTo(e);n.topLevel&&i.addClass("rdformsTopLevel"),Tr()('<div class="rdformsLabel">').text(n.view.messages.address_label).appendTo(i),o.appendTo(Tr()('<div class="rdformsFields">').appendTo(i))}},Cr.postEditorRenderer=function(e,t,n){n.$controlDiv.appendTo(e)};var El={error:"exclamation-triangle",warning:"exclamation-circle",deprecated:"question-circle"};Cr.renderValidationMessage=function(e,t,n){var o=El[t],r=Cr.domCreate("div",e);Cr.domClassToggle(r,"rdformsValidationMessageWrapper",!0);var i=Cr.domCreate("i",r);Cr.domClassToggle(i,"fas fa-".concat(o),!0);var a=Cr.domCreate("span",r);Cr.domClassToggle(a,"rdformsValidationMessage",!0),Cr.domText(a,n)};n(5640),n(7070),n(5700);var Cl=n(9755);function Sl(e){return(Sl="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 Tl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Al(o.key),o)}}function Al(e){var t=function(e,t){if("object"!=Sl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Sl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sl(t)?t:String(t)}var Ol=function(){function e(t,n){var o,r,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=(o=this.item,r={},i=o.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&&(r[t]=!0)})),r),this._date=null,this._valid=!1,this._excludeTime=!0,this.domNode=n,this.buildUI(),this.initDatePicker(),this.initialize()}var t,n,o;return t=e,(n=[{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=Cl(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=Cl(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=Cl(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=sr()(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,Cl(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)}}])&&Tl(t.prototype,n),o&&Tl(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Dl(e){return(Dl="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 Il(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,jl(o.key),o)}}function jl(e){var t=function(e,t){if("object"!=Dl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Dl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Dl(t)?t:String(t)}function Ml(e,t,n){return t=Ll(t),function(e,t){if(t&&("object"===Dl(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,n||[],Ll(e).constructor):t.apply(e,n))}function Ll(e){return(Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pl(e,t){return(Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Ol.register=function(e){var t=function(t,n,o){var r=new e({messages:o.view.messages,binding:n,context:o},Cl("<div>").appendTo(t)[0]);o.clear=function(){r.clear()}},n=Cr.editorRegistry;n.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#date").register(t),n.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#dateTime").register(t),n.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYear").register(t),n.itemtype("text").datatype("http://purl.org/dc/terms/W3CDTF").register(t)};var Rl=function(e){function t(){return Il(this,t),Ml(this,t,arguments)}var n,o,r;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&&Pl(e,t)}(t,e),n=t,(o=[{key:"buildUI",value:function(){var e=Gs(this.binding,this.context)?"disabled":"";this.tpdate=null,this.dpdate=null;var t=this.context.view.messages,n=this.includeYearOption()?'<option value="Year">'.concat(t.date_year,"</option>"):"",o=this.includeDateOption()?'<option value="Date" selected="true">'.concat(t.date_date,"</option>"):"",r=this.includeDateTimeOption()?'<option value="DateTime">'.concat(t.date_date_and_time,"</option>"):"";this.domNode.innerHTML='<div class="rdformsDateValue rdformsFieldInput" xmlns="http://www.w3.org/1999/html">\n <div class="rdformsDatepicker form-group input" style="padding-right: 15px;">\n <input '.concat(e,' class="form-control dateInput date" type="text" placeholder="YYYY-MM-DD" />\n <span >\n <button ').concat(e,' type="button" class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm dateButton"><span class="fa fa-calendar"></span>\n <div class="ripple-container"></div></button>\n </span>\n </div>\n <div class="form-group input" style="display:none;">\n <input ').concat(e,' type="text" class="form-control timeInput" placeholder="HH:MM"/>\n <span>\n <button ').concat(e,' type="button" class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm timeButton"><span class="fa fa-clock"></span></button>\n </span>\n </div>\n <div class="form-group input" style="display:none;">\n <input ').concat(e,' type="text" class="form-control yearInput" placeholder="YYYY"/>\n </div>\n\n <select ').concat(e,' class="form-control dateControl">\n ').concat(n,"\n ").concat(o,"\n ").concat(r,"\n </select>\n</div>"),this.cal=Tr()(this.domNode).find(".date")[0],this.dateButton=Tr()(this.domNode).find(".dateButton")[0],this.timeInput=Tr()(this.domNode).find(".timeInput")[0],this.timeButton=Tr()(this.domNode).find(".timeButton")[0],this.yearInput=Tr()(this.domNode).find(".yearInput")[0],this.dateControl=Tr()(this.domNode).find(".dateControl")[0]}},{key:"initDatePicker",value:function(){var e=this;this.$datepicker=Tr()(this.cal).bootstrapMaterialDatePicker({time:!1,date:!0,triggerEvent:"none",switchOnClick:!0,lang:sr().locale()}),this.$timepicker=Tr()(this.timeInput).bootstrapMaterialDatePicker({format:"HH:mm",time:!0,date:!1,triggerEvent:"none",switchOnClick:!0,lang:sr().locale()}),Tr()(this.dateButton).click((function(){e.$datepicker.bootstrapMaterialDatePicker("_fireCalendar")})),this.$datepicker.on("change",(function(t,n){var o=n||sr()(t.target.value);if(e.tpdate){var r=sr()(e.tpdate);o.minute(r.minute()),o.hour(r.hour())}e.dpdate=o.toDate(),e.setDateInBinding(e.dpdate)})),this.item.isEnabled()||this.$datepicker.prop("disabled",!0),Tr()(this.timeButton).click((function(){e.$timepicker.bootstrapMaterialDatePicker("_fireCalendar")})),this.$timepicker.on("change",(function(t,n){var o=n||sr()(t.target.value);if(null!=e.dpdate){var r=sr()(e.dpdate);r.minute(o.minute()),r.hour(o.hour()),e.tpdate=r.toDate(),e.setDateInBinding(e.tpdate)}else e.tpdate=o.toDate()})),this.item.isEnabled()||this.$timepicker.prop("disabled",!0)}},{key:"setDateInPicker",value:function(e){this.$datepicker.bootstrapMaterialDatePicker("setDate",e),this.$timepicker.bootstrapMaterialDatePicker("setTime",e),this.dpdate=e,this.tpdate=e}}])&&Nl(n.prototype,o),r&&Nl(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ol);Ol.register(Rl);n(7872),n(8750);var zl=n(9755);Cr.renderSelect=function(e,t,n){var o,r=zl('<div class="form-group selectizeException">').appendTo(e),i=zl('<div class="form-control">').appendTo(r),a=zl('<input type="text">').appendTo(i),s=[];t.getValue()&&s.push(t.getValue());var l={items:s,valueField:"id",labelField:"text",sortField:"text",searchField:"text",allowEmptyOption:!1,preload:"focus",maxItems:1,mode:"single",onChange:function(e){var n=o.options[e];t.setChoice(n?n.choice:null),this.clearCache()}},c=!0;n.choices&&n.choices.length>0?(c=!1,l.options=n.choices):n.chooser&&"function"==typeof n.chooser.search&&(c=!1,l.load=function(e,o){n.chooser.search(t,e).then((function(e){o(e.map((function(e){return{id:e.value,text:dr.getLocalizedValue(e.label).value||"",choice:e}})))}))}),o=a.selectize(l)[0].selectize,(c||Gs(t,n))&&o.disable(),n.clear=function(){o.clear()},n.setValue=function(e){a.toggleClass("mismatch",!0===e.mismatch);var t=dr.getLocalizedValue(e.label).value||"";o.options[e.value]||o.addOption({id:e.value,text:t,choice:e}),o.addItem(e.value,!0)}};var Fl=n(3379),Bl=n.n(Fl),$l=n(7795),Vl=n.n($l),Ul=n(569),Hl=n.n(Ul),Yl=n(3565),Wl=n.n(Yl),Gl=n(9216),ql=n.n(Gl),Ql=n(4589),Zl=n.n(Ql),Xl=n(2394),Kl={};Kl.styleTagTransform=Zl(),Kl.setAttributes=Wl(),Kl.insert=Hl().bind(null,"head"),Kl.domAPI=Vl(),Kl.insertStyleElement=ql();Bl()(Xl.Z,Kl);Xl.Z&&Xl.Z.locals&&Xl.Z.locals;var Jl=n(9285),ec={};ec.styleTagTransform=Zl(),ec.setAttributes=Wl(),ec.insert=Hl().bind(null,"head"),ec.domAPI=Vl(),ec.insertStyleElement=ql();Bl()(Jl.Z,ec);Jl.Z&&Jl.Z.locals&&Jl.Z.locals;var tc=n(5987),nc={};nc.styleTagTransform=Zl(),nc.setAttributes=Wl(),nc.insert=Hl().bind(null,"head"),nc.domAPI=Vl(),nc.insertStyleElement=ql();Bl()(tc.Z,nc);tc.Z&&tc.Z.locals&&tc.Z.locals;var oc=n(9755);Cr.postEditorRenderer=function(e,t,n){n.$controlDiv.appendTo(e),oc("body").bootstrapMaterialDesign()};var rc=n(7642),ic={};ic.styleTagTransform=Zl(),ic.setAttributes=Wl(),ic.insert=Hl().bind(null,"head"),ic.domAPI=Vl(),ic.insertStyleElement=ql();Bl()(rc.Z,ic);rc.Z&&rc.Z.locals&&rc.Z.locals;function ac(e){return(ac="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 sc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,cc(o.key),o)}}function cc(e){var t=function(e,t){if("object"!=ac(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ac(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ac(t)?t:String(t)}function dc(e,t,n){return t=bc(t),function(e,t){if(t&&("object"===ac(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,n||[],bc(e).constructor):t.apply(e,n))}function uc(){return(uc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=fc(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function fc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=bc(e)););return e}function bc(e){return(bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pc(e,t){return(pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var mc=function(e,t,n){return 1===n?e["".concat(t,"_one")]:e["".concat(t,"_more")].replace("$1",n)},hc=function(e){function t(){return sc(this,t),dc(this,t,arguments)}var n,o,r;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&&pc(e,t)}(t,e),n=t,(o=[{key:"_handleParams",value:function(e){e.showLanguage=!1!==e.showLanguage,e.filterTranslations=!1,e.styleCls=e.styleCls||"rdformsPresenter rdformsValidator",this.fuzzy=!1!==e.fuzzy,uc(bc(t.prototype),"_handleParams",this).call(this,e),this.binding&&Xa(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 n=this.binding.getMatchingCode();if(n===jr.MISSING_CONSTRAINTS||n===jr.WRONG_NODETYPE)return!1;var o=e.getCardinality();switch(this.includeLevel){case"mandatory":return o&&o.min>=1;case"recommended":default:return o&&(o.min>=1||o.pref>=1)}}},{key:"showAsTable",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var n,o=t,r=e.getCardinality(),i=null!=r.min?r.min:0,a=null!=r.pref?r.pref:0;n=r.pref>0?r.pref:r.min>0?r.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===jr.TOO_FEW_VALUES_MIN||s===jr.TOO_FEW_VALUES_PREF,c=s===jr.MISSING_CONSTRAINTS||s===jr.WRONG_NODETYPE;if(n>o.length&&l&&!c)for(o=o.concat([]);n>o.length;){var d=Wa(this.binding,e);o.length<i?d.setMatchingCode(jr.TOO_FEW_VALUES_MIN):o.length<a&&d.setMatchingCode(jr.TOO_FEW_VALUES_PREF),o.push(d)}return o}},{key:"skipBinding",value:function(){return!1}},{key:"addValidationMarker",value:function(e,t){var n,o,r=t.getItem(),i=r.getCardinality(),a=null!=i.min?i.min:0,s=null!=i.pref?i.pref:0,l="group"===r.getType()?null===(n=t.getCardinalityTracker())||void 0===n?void 0:n.getCode():void 0,c=l&&l!==jr.OK&&l!==jr.UNKNOWN?l:t.getMatchingCode(),d=c===jr.TOO_FEW_VALUES_PREF;if(c!==jr.TOO_FEW_VALUES_PREF&&c!==jr.OK)return Cr.domClassToggle(e,"error",!0),c===jr.TOO_FEW_VALUES_MIN?o=mc(this.messages,"validation_min_required",a):c===jr.TOO_MANY_VALUES?o=mc(this.messages,"validation_max",i.max||1):c===jr.AT_MOST_ONE_CHILD?o=this.messages.validation_at_most_one_child:c===jr.AT_LEAST_ONE_CHILD?o=this.messages.validation_at_least_one_child:c===jr.EXACTLY_ONE_CHILD?o=this.messages.validation_exactly_one_child:c===jr.WRONG_NODETYPE?o=this.messages.validation_nodetype:c===jr.WRONG_VALUE?o=this.messages.validation_value:c===jr.WRONG_DATATYPE?o=this.messages.validation_datatype:c===jr.MISSING_CONSTRAINTS?o=this.messages.validation_constraints:c===jr.WRONG_PATTERN?o=this.messages.validation_pattern:c===jr.MISSING_LANGUAGE&&(o=this.messages.validation_language),Cr.renderValidationMessage(e,"error",o),!0;if(d){Cr.domClassToggle(e,"warning",!0);var u=mc(this.messages,"validation_min_recommended",s);return Cr.renderValidationMessage(e,"warning",u),!0}return!!r.hasStyle("deprecated")&&(Cr.domClassToggle(e,"deprecated",!0),Cr.renderValidationMessage(e,"deprecated",this.messages.validation_deprecated),!0)}},{key:"addComponent",value:function(e,n){uc(bc(t.prototype),"addComponent",this).call(this,e,n),this.addValidationMarker(e,n)}}])&&lc(n.prototype,o),r&&lc(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ks);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 vc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,yc(o.key),o)}}function yc(e){var t=function(e,t){if("object"!=gc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=gc(o))return o;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 wc=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n instanceof Node?this.domNode=n:this.domNode="string"==typeof n?document.getElementById(n):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 t,n,o;return t=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=Tr()(this.domNode).find(".cardinality")[0],this._mandatoryButton=Tr()(this.domNode).find(".mandatory").click(this._mandatoryClick.bind(this))[0],this._recommendedButton=Tr()(this.domNode).find(".recommended").click(this._recommendedClick.bind(this))[0],this._optionalButton=Tr()(this.domNode).find(".optional").click(this._optionalClick.bind(this))[0],this._rdformsNode=Tr()(this.domNode).find(".rdformsLevelNode")[0],this.includeLevelControllsVisible&&(this._cardinalityNode.style.display=""),this.setIncludeLevel(this.includeLevel),this.externalEditor||(this._editor=new js({includeLevel:this.includeLevel,compact:this.compact},this._rdformsNode),this.show())}},{key:"show",value:function(e,t,n){this.resource=e||this.resource,this.graph=t||this.graph,this.template=n||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=Cr.getMessages();Cr.domText(this._mandatoryButton,e.mandatoryLabel),Cr.domText(this._recommendedButton,e.recommendedLabel),Cr.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")||(Cr.domClassToggle(this._mandatoryButton,"active",!0),Cr.domClassToggle(this._recommendedButton,"active",!1),Cr.domClassToggle(this._optionalButton,"active",!1),this._updateEditor("mandatory")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_recommendedClick",value:function(e){this._recommendedButton.getAttribute("disabled")||(Cr.domClassToggle(this._mandatoryButton,"active",!0),Cr.domClassToggle(this._recommendedButton,"active",!0),Cr.domClassToggle(this._optionalButton,"active",!1),this._updateEditor("recommended")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_optionalClick",value:function(e){this._optionalButton.getAttribute("disabled")||(Cr.domClassToggle(this._mandatoryButton,"active",!0),Cr.domClassToggle(this._recommendedButton,"active",!0),Cr.domClassToggle(this._optionalButton,"active",!0),this._updateEditor("optional")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_updateEditor",value:function(e){this._editor&&this._editor.setIncludeLevel(e)}}])&&vc(t.prototype,n),o&&vc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(429);const xc=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const kc=function(e){return this.__data__.has(e)};function _c(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ln;++t<n;)this.add(e[t])}_c.prototype.add=_c.prototype.push=xc,_c.prototype.has=kc;const Ec=_c;const Cc=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};const Sc=function(e,t){return e.has(t)};const Tc=function(e,t,n,o,r,i){var a=1&n,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,b=2&n?new Ec:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var p=e[u],m=t[u];if(o)var h=a?o(m,p,u,t,e,i):o(p,m,u,e,t,i);if(void 0!==h){if(h)continue;f=!1;break}if(b){if(!Cc(t,(function(e,t){if(!Sc(b,t)&&(p===e||r(p,e,n,o,i)))return b.push(t)}))){f=!1;break}}else if(p!==m&&!r(p,m,n,o,i)){f=!1;break}}return i.delete(e),i.delete(t),f};const Ac=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};const Oc=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var Dc=mt?mt.prototype:void 0,Ic=Dc?Dc.valueOf:void 0;const Nc=function(e,t,n,o,r,i,a){switch(n){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 zo(e),new zo(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=Ac;case"[object Set]":var l=1&o;if(s||(s=Oc),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;o|=2,a.set(e,t);var d=Tc(s(e),s(t),o,r,i,a);return a.delete(e),d;case"[object Symbol]":if(Ic)return Ic.call(e)==Ic.call(t)}return!1};var jc=Object.prototype.hasOwnProperty;const Mc=function(e,t,n,o,r,i){var a=1&n,s=_o(e),l=s.length;if(l!=_o(t).length&&!a)return!1;for(var c=l;c--;){var d=s[c];if(!(a?d in t:jc.call(t,d)))return!1}var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var b=!0;i.set(e,t),i.set(t,e);for(var p=a;++c<l;){var m=e[d=s[c]],h=t[d];if(o)var g=a?o(h,m,d,t,e,i):o(m,h,d,e,t,i);if(!(void 0===g?m===h||r(m,h,n,o,i):g)){b=!1;break}p||(p="constructor"==d)}if(b&&!p){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||(b=!1)}return i.delete(e),i.delete(t),b};var Lc=Object.prototype.hasOwnProperty;const Pc=function(e,t,n,o,r,i){var a=Cn(e),s=Cn(t),l=a?"[object Array]":Lo(e),c=s?"[object Array]":Lo(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&&Dn(e)){if(!Dn(t))return!1;a=!0,d=!1}if(f&&!d)return i||(i=new un),a||Vn(e)?Tc(e,t,n,o,r,i):Nc(e,t,l,n,o,r,i);if(!(1&n)){var b=d&&Lc.call(e,"__wrapped__"),p=u&&Lc.call(t,"__wrapped__");if(b||p){var m=b?e.value():e,h=p?t.value():t;return i||(i=new un),r(m,h,n,o,i)}}return!!f&&(i||(i=new un),Mc(e,t,n,o,r,i))};const Rc=function e(t,n,o,r,i){return t===n||(null==t||null==n||!yn(t)&&!yn(n)?t!=t&&n!=n:Pc(t,n,o,r,e,i))};const zc=function(e,t){return Rc(e,t)};function Fc(e){return(Fc="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 Bc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,$c(o.key),o)}}function $c(e){var t=function(e,t){if("object"!=Fc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Fc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fc(t)?t:String(t)}var Vc=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,n,o;return t=e,(n=[{key:"importRegistry",value:function(e){Object.assign(this._registry,e)}},{key:"getChoices",value:function(e,t){var n=this._findChoices(e);if(null==n);else{if(null==t)return n;t(n)}}},{key:"_findChoices",value:function(e){var t=this._registry[e.getOntologyUrl()];if(null!=t)for(var n=0;n<t.length;n++){var o=t[n];if(zc(o.constraints,e.getConstraints())&&e.getParentProperty()===o.parentProperty&&e.getHierarchyProperty()===o.hierarchyProperty&&e.isParentPropertyInverted()===(o.isParentPropertyInverted||!1)&&e.isHierarchyPropertyInverted()===(o.isHierarchyPropertyInverted||!1))return o.choices}}},{key:"_constructLoadUrl",value:function(e){var t=[];if(t.push("constr=".concat(encodeURIComponent(JSON.stringify(e.getConstraints())))),null!=e.getParentProperty()){var n=!0===e.isParentPropertyInverted()?"ipp=":"pp=";t.push(n+encodeURIComponent(e.getParentProperty()))}if(null!=e.getHierarchyProperty()){var o=!0===e.isHierarchyPropertyInverted()?"ihp=":"hp=";t.push(o+encodeURIComponent(e.getHierarchyProperty()))}return"".concat(e.getOntologyUrl(),"?").concat(t.join("&"))}}])&&Bc(t.prototype,n),o&&Bc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Uc(e){return(Uc="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 Hc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Yc(o.key),o)}}function Yc(e){var t=function(e,t){if("object"!=Uc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Uc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Uc(t)?t:String(t)}var Wc=0,Gc=function(){function e(t){var n=t.itemStore,o=t.source,r=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=n,this._source=o,this._path=r,this._readOnly=a,this._items=[],Wc+=1,this._id="_bundle_".concat(Wc),this._root=null,this._modified=!1}var t,n,o;return t=e,(n=[{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}}])&&Hc(t.prototype,n),o&&Hc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qc(e){return(qc="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 n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Zc(o.key),o)}}function Zc(e){var t=function(e,t){if("object"!=qc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=qc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qc(t)?t:String(t)}var Xc=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 Vc}var t,n,o;return t=e,(n=[{key:"getTemplate",value:function(e){return this.getItem(e)}},{key:"getChildren",value:function(e,t){if(null==e)return[];var n=e.getSource(!0),o=n.content||n.items||[];if(t)return this._createItems(o,e._forceChildrenClones,e.getBundle());var r=this.getItem(n.extends);return r?r.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 n=this._registry[e];n&&(delete this._registry[e],this._registry[t]=n,n.setId(t));for(var o=function n(o){var r=o.content;if(r)for(var i=0;i<r.length;i++){var a=r[i];a.id!==e&&a["@id"]!==e||(a.id=t,delete a["@id"]),a.content&&n(a)}},r=this.getItems(),i=0;i<r.length;i++){var a=r[i];a instanceof ci&&o(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,n){return Ua(e,t,this,n)}},{key:"registerBundle",value:function(e){e.itemStore=this;var t=new Gc(e);this._bundles.push(t),e.source&&e.source.namespaces&&L(e.source.namespaces);var n=e.source.templates||e.source.auxilliary;return n instanceof Array&&this._createItems(n,!1,t),"object"===qc(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,n=(e||[]).map((function(e){return"string"==typeof e?t.getItem(e):e}));return new ci({source:{},children:n,itemStore:this})}},{key:"setPriorities",value:function(e){this.priorities=e}},{key:"createExtendedSource",value:function(e,t){var n=Object.assign(Object.assign({},e),t);return n._extendedSource=t,n.extends=null,delete n.children,n}},{key:"createItem",value:function(e,t,n,o){var r,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,o)}}if(null!=a){switch(a){case"text":r=new Ti({source:e,itemStore:this,bundle:o});break;case"choice":r=new Ri({source:e,itemStore:this,ontologyStore:this._ontologyStore,bundle:o});break;case"group":r=new ci({source:e,children:null,itemStore:this,bundle:o});break;case"propertygroup":r=new yi({source:e,children:null,itemStore:this,bundle:o})}return!0!==n&&(null!=e.property&&(this._registryByProperty[e.property]=r,this.priorities&&null!=this.priorities[e.property]&&(r.priority=this.priorities[e.property])),null!=i&&null==this._registry[i]&&(this._registry[i]=r,null!=o&&o.addItem(r))),r}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 n=e.getBundle();null!=n&&n.removeItem(e),null!=e.getId()&&delete this._registry[e.getId()];var o=e.getProperty();null!=o&&this._registryByProperty[o]===e&&delete this._registryByProperty[o]}},{key:"_createItems",value:function(e,t,n){var o=this;return e.map((function(r,i){var a="string"==typeof r?e[i]={id:r}:r;return o.createItem(a,t,!1,n)})).filter((function(e){return e}))}},{key:"_handleError",value:function(e){if("throw"===this.handleErrorAs)throw new Error(e);console[this.handleErrorAs](e)}}])&&Qc(t.prototype,n),o&&Qc(t,o),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(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Jc=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new O(o||[]);return r(a,"_invoke",{value:C(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",b="executing",p="completed",m={};function h(){}function g(){}function v(){}var y={};c(y,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(D([])));x&&x!==n&&o.call(x,a)&&(y=x);var k=v.prototype=h.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(r,i,a,s){var l=u(e[r],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Kc(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function C(t,n,o){var r=f;return function(i,a){if(r===b)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var l=S(s,o);if(l){if(l===m)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===f)throw r=p,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=b;var c=u(t,n,o);if("normal"===c.type){if(r=o.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=p,o.method="throw",o.arg=c.arg)}}}function S(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),m;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Kc(t)+" is not iterable")}return g.prototype=v,r(k,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},_(E.prototype),c(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new E(d(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,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 n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return s.type="throw",s.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:D(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function ed(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function td(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){ed(i,o,r,a,s,"next",e)}function s(e){ed(i,o,r,a,s,"throw",e)}a(void 0)}))}}var nd=function(e,t,n){var o="Fetching template bundle ".concat(n," failed.");if(e===t-1)throw Error("".concat(o," Cannot recover from this, please fix."));console.log("".concat(o," Will try to fetch from a fallback option."))},od=function(){var e=td(Jc().mark((function e(t){var n,o,r,i,a;return Jc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.length,i=0;case 2:if(!(i<n)){e.next=34;break}return e.prev=3,e.next=6,fetch(t[i]);case 6:o=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(!o||!o.ok){e.next=30;break}if(e.prev=13,!(a=o.headers.has("content-type")&&o.headers.get("content-type"))||!a.includes("application/json")){e.next=22;break}return e.next=18,o.json();case 18:return r=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),nd(i,n,t[i]);case 28:e.next=31;break;case 30:nd(i,n,t[i]);case 31:i++,e.next=2;break;case 34:return e.abrupt("return",r);case 35:case"end":return e.stop()}}),e,null,[[3,9],[13,25]])})));return function(t){return e.apply(this,arguments)}}(),rd=function(e){return e.map((function(e){return e instanceof Array?od(e):Promise.resolve(e)}))},id=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.map((function(t){return e.registerBundle({source:t})}))};const ad=function(){var e=td(Jc().mark((function e(t){var n,o,r,i,a,s=arguments;return Jc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:[],o=s.length>2&&void 0!==s[2]?s[2]:function(){},0===n.length&&o&&o([]),r=rd(n),e.next=6,Promise.all(r);case 6:return i=e.sent,a=id(t,i),o(a),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})(),o})());
|