"use strict";var blazorContextMenu=function(f){var h=null;h=window.Element&&!Element.prototype.closest?function(e,t){var n,o=(e.document||e.ownerDocument).querySelectorAll(t);do{for(n=o.length;0<=--n&&o.item(n)!==e;);}while(n<0&&(e=e.parentElement));return e}:function(e,t){return e.closest(t)};var v=[];function l(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}var u=null;f.SetMenuHandlerReference=function(e){u||(u=e)};var r=function(e,t,n){var o=l();v.push({id:t,target:n,instanceId:o}),e.dataset.instanceId=o};f.ManualShow=function(e,t,n){var o=document.getElementById(e);if(!o)throw new Error("No context menu with id '"+e+"' was found");r(o,e,null),i(o,e,t,n,null,null)},f.OnContextMenu=function(e,t){var n=document.getElementById(t);if(!n)throw new Error("No context menu with id '"+t+"' was found");r(n,t,e.target);var o=JSON.parse(e.currentTarget.dataset.dotnetref);return i(n,t,e.x,e.y,e.target,o),e.preventDefault(),!1};var i=function(e,t,n,o,r,i){return f.Show(t,n,o,r,i).then(function(){0