  setTimeout(() => resolve(ret), 3000);
                //resolve(ret);
            });
        }

        function callRemoteOptionGroups() {
            return new Promise(function (resolve, reject) {
                console.log("Remote function got called for optiongroups (so you see the functionality of the `delayInput` option)");
                let arr = [];
                remoteSearchData.items.forEach(data => {
                    if (!arr.includes(data.label)) {
                        arr.push(da