tocco-widget-utils 3.15.22 → 3.15.23

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/changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ 3.15.23
2
+ - fix overflowing elemnts in StatedValueBoxes
3
+
1
4
  3.15.22
2
5
  - make closing modal on location change optional
3
6
  - fix max-width of child elements in StyledInputArea
package/dist/bootstrap.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["tocco-widget-utils-bootstrap"]=e():t["tocco-widget-utils-bootstrap"]=e()}(this,(()=>(()=>{var t={2:(t,e,r)=>{var n=r(2199),o=r(4664),c=r(5950);t.exports=function(t){return n(t,c,o)}},79:(t,e,r)=>{var n=r(3702),o=r(80),c=r(4739),a=r(8655),i=r(1175);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=c,s.prototype.has=a,s.prototype.set=i,t.exports=s},80:(t,e,r)=>{var n=r(6025),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},270:(t,e,r)=>{var n=r(7068),o=r(346);t.exports=function t(e,r,c,a,i){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,c,a,t,i))}},289:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},317:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},361:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},392:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},659:(t,e,r)=>{var n=r(1873),o=Object.prototype,c=o.hasOwnProperty,a=o.toString,i=n?n.toStringTag:void 0;t.exports=function(t){var e=c.call(t,i),r=t[i];try{t[i]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[i]=r:delete t[i]),o}},689:(t,e,r)=>{var n=r(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,c,a,i){var s=1&r,u=n(t),p=u.length;if(p!=n(e).length&&!s)return!1;for(var f=p;f--;){var l=u[f];if(!(s?l in e:o.call(e,l)))return!1}var h=i.get(t),d=i.get(e);if(h&&d)return h==e&&d==t;var v=!0;i.set(t,e),i.set(e,t);for(var y=s;++f<p;){var b=t[l=u[f]],g=e[l];if(c)var w=s?c(g,b,l,e,t,i):c(b,g,l,t,e,i);if(!(void 0===w?b===g||a(b,g,r,c,i):w)){v=!1;break}y||(y="constructor"==l)}if(v&&!y){var x=t.constructor,m=e.constructor;x==m||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof m&&m instanceof m||(v=!1)}return i.delete(t),i.delete(e),v}},695:(t,e,r)=>{var n=r(8096),o=r(2428),c=r(6449),a=r(3656),i=r(361),s=r(7167),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=c(t),p=!r&&o(t),f=!r&&!p&&a(t),l=!r&&!p&&!f&&s(t),h=r||p||f||l,d=h?n(t.length,String):[],v=d.length;for(var y in t)!e&&!u.call(t,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||i(y,v))||d.push(y);return d}},938:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},945:(t,e,r)=>{var n=r(79),o=r(8223),c=r(3661);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new c(a)}return r.set(t,e),this.size=r.size,this}},1042:(t,e,r)=>{var n=r(6110)(Object,"create");t.exports=n},1175:(t,e,r)=>{var n=r(6025);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},1380:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1420:(t,e,r)=>{var n=r(79);t.exports=function(){this.__data__=new n,this.size=0}},1459:t=>{t.exports=function(t){return this.__data__.has(t)}},1549:(t,e,r)=>{var n=r(2032),o=r(3862),c=r(6721),a=r(2749),i=r(5749);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=c,s.prototype.has=a,s.prototype.set=i,t.exports=s},1873:(t,e,r)=>{var n=r(9325).Symbol;t.exports=n},1882:(t,e,r)=>{var n=r(2552),o=r(3805);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1986:(t,e,r)=>{var n=r(1873),o=r(7828),c=r(5288),a=r(5911),i=r(317),s=r(4247),u=n?n.prototype:void 0,p=u?u.valueOf:void 0;t.exports=function(t,e,r,n,u,f,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return c(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=i;case"[object Set]":var d=1&n;if(h||(h=s),t.size!=e.size&&!d)return!1;var v=l.get(t);if(v)return v==e;n|=2,l.set(t,e);var y=a(h(t),h(e),n,u,f,l);return l.delete(t),y;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1}},2032:(t,e,r)=>{var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},2199:(t,e,r)=>{var n=r(4528),o=r(6449);t.exports=function(t,e,r){var c=e(t);return o(t)?c:n(c,r(t))}},2207:(t,e,r)=>{t.exports=r(7452)},2404:(t,e,r)=>{var n=r(270);t.exports=function(t,e){return n(t,e)}},2428:(t,e,r)=>{var n=r(7534),o=r(346),c=Object.prototype,a=c.hasOwnProperty,i=c.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!i.call(t,"callee")};t.exports=s},2552:(t,e,r)=>{var n=r(1873),o=r(659),c=r(9350),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):c(t)}},2651:(t,e,r)=>{var n=r(4218);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},2749:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},2804:(t,e,r)=>{var n=r(6110)(r(9325),"Promise");t.exports=n},2949:(t,e,r)=>{var n=r(2651);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},3040:(t,e,r)=>{var n=r(1549),o=r(79),c=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(c||o),string:new n}}},3093:t=>{"use strict";t.exports=JSON.parse('{"name":"tocco-widget-utils","version":"3.15.22","description":"","license":"AGPL-3.0+","scripts":{"compile:prod":"cd ../../../ && yarn run compile:prod --package=widget-utils","prepack":"yarn run compile:prod","test":"jest"},"devDependencies":{"tocco-util":"*","tocco-widget-placeholder":"*"}}')},3345:t=>{t.exports=function(){return[]}},3605:t=>{t.exports=function(t){return this.__data__.get(t)}},3650:(t,e,r)=>{var n=r(4335)(Object.keys,Object);t.exports=n},3656:(t,e,r)=>{t=r.nmd(t);var n=r(9325),o=r(9935),c=e&&!e.nodeType&&e,a=c&&t&&!t.nodeType&&t,i=a&&a.exports===c?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||o;t.exports=s},3661:(t,e,r)=>{var n=r(3040),o=r(7670),c=r(289),a=r(4509),i=r(2949);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=c,s.prototype.has=a,s.prototype.set=i,t.exports=s},3702:t=>{t.exports=function(){this.__data__=[],this.size=0}},3805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3862:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},4218:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},4247:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},4248:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4335:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4509:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},4528:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},4664:(t,e,r)=>{var n=r(9770),o=r(3345),c=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return c.call(t,e)})))}:o;t.exports=i},4739:(t,e,r)=>{var n=r(6025);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},4840:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},4894:(t,e,r)=>{var n=r(1882),o=r(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4901:(t,e,r)=>{var n=r(2552),o=r(294),c=r(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return c(t)&&o(t.length)&&!!a[n(t)]}},5083:(t,e,r)=>{var n=r(1882),o=r(7296),c=r(3805),a=r(7473),i=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,p=s.toString,f=u.hasOwnProperty,l=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!c(t)||o(t))&&(n(t)?l:i).test(a(t))}},5288:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},5481:(t,e,r)=>{var n=r(9325)["__core-js_shared__"];t.exports=n},5527:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},5580:(t,e,r)=>{var n=r(6110)(r(9325),"DataView");t.exports=n},5735:t=>{function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(r)}t.exports=e},5749:(t,e,r)=>{var n=r(1042);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5861:(t,e,r)=>{var n=r(5580),o=r(8223),c=r(2804),a=r(6545),i=r(8303),s=r(2552),u=r(7473),p="[object Map]",f="[object Promise]",l="[object Set]",h="[object WeakMap]",d="[object DataView]",v=u(n),y=u(o),b=u(c),g=u(a),w=u(i),x=s;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=p||c&&x(c.resolve())!=f||a&&x(new a)!=l||i&&x(new i)!=h)&&(x=function(t){var e=s(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case v:return d;case y:return p;case b:return f;case g:return l;case w:return h}return e}),t.exports=x},5911:(t,e,r)=>{var n=r(8859),o=r(4248),c=r(9219);t.exports=function(t,e,r,a,i,s){var u=1&r,p=t.length,f=e.length;if(p!=f&&!(u&&f>p))return!1;var l=s.get(t),h=s.get(e);if(l&&h)return l==e&&h==t;var d=-1,v=!0,y=2&r?new n:void 0;for(s.set(t,e),s.set(e,t);++d<p;){var b=t[d],g=e[d];if(a)var w=u?a(g,b,d,e,t,s):a(b,g,d,t,e,s);if(void 0!==w){if(w)continue;v=!1;break}if(y){if(!o(e,(function(t,e){if(!c(y,e)&&(b===t||i(b,t,r,a,s)))return y.push(e)}))){v=!1;break}}else if(b!==g&&!i(b,g,r,a,s)){v=!1;break}}return s.delete(t),s.delete(e),v}},5950:(t,e,r)=>{var n=r(695),o=r(8984),c=r(4894);t.exports=function(t){return c(t)?n(t):o(t)}},6009:(t,e,r)=>{t=r.nmd(t);var n=r(4840),o=e&&!e.nodeType&&e,c=o&&t&&!t.nodeType&&t,a=c&&c.exports===o&&n.process,i=function(){try{var t=c&&c.require&&c.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=i},6025:(t,e,r)=>{var n=r(5288);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},6110:(t,e,r)=>{var n=r(5083),o=r(392);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},6396:t=>{t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},6449:t=>{var e=Array.isArray;t.exports=e},6545:(t,e,r)=>{var n=r(6110)(r(9325),"Set");t.exports=n},6721:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},7068:(t,e,r)=>{var n=r(7217),o=r(5911),c=r(1986),a=r(689),i=r(5861),s=r(6449),u=r(3656),p=r(7167),f="[object Arguments]",l="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,y,b){var g=s(t),w=s(e),x=g?l:i(t),m=w?l:i(e),j=(x=x==f?h:x)==h,_=(m=m==f?h:m)==h,O=x==m;if(O&&u(t)){if(!u(e))return!1;g=!0,j=!1}if(O&&!j)return b||(b=new n),g||p(t)?o(t,e,r,v,y,b):c(t,e,x,r,v,y,b);if(!(1&r)){var k=j&&d.call(t,"__wrapped__"),P=_&&d.call(e,"__wrapped__");if(k||P){var E=k?t.value():t,S=P?e.value():e;return b||(b=new n),y(E,S,r,v,b)}}return!!O&&(b||(b=new n),a(t,e,r,v,y,b))}},7167:(t,e,r)=>{var n=r(4901),o=r(7301),c=r(6009),a=c&&c.isTypedArray,i=a?o(a):n;t.exports=i},7217:(t,e,r)=>{var n=r(79),o=r(1420),c=r(938),a=r(3605),i=r(9817),s=r(945);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=c,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,t.exports=u},7296:(t,e,r)=>{var n,o=r(5481),c=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!c&&c in t}},7301:t=>{t.exports=function(t){return function(e){return t(e)}}},7452:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,c=Object.create(o.prototype),a=new S(n||[]);return c._invoke=function(t,e,r){var n=f;return function(o,c){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw c;return L()}for(r.method=o,r.arg=c;;){var a=r.delegate;if(a){var i=k(a,r);if(i){if(i===v)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=p(t,e,r);if("normal"===s.type){if(n=r.done?d:l,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),c}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",l="suspendedYield",h="executing",d="completed",v={};function y(){}function b(){}function g(){}var w={};w[c]=function(){return this};var x=Object.getPrototypeOf,m=x&&x(x(A([])));m&&m!==r&&n.call(m,c)&&(w=m);var j=g.prototype=y.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,c,a,i){var s=p(t[o],t,c);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,i)}),(function(t){r("throw",t,a,i)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,i)}))}i(s.arg)}var o;this._invoke=function(t,n){function c(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(c,c):c()}}function k(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=p(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:L}}function L(){return{value:e,done:!0}}return b.prototype=j.constructor=g,g.constructor=b,b.displayName=s(g,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,i,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},_(O.prototype),O.prototype[a]=function(){return this},t.AsyncIterator=O,t.async=function(e,r,n,o,c){void 0===c&&(c=Promise);var a=new O(u(e,r,n,o),c);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(j),s(j,i,"Generator"),j[c]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,S.prototype={constructor:S,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(E),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return i.type="throw",i.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var a=this.tryEntries[c],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var c=o;break}}c&&("break"===t||"continue"===t)&&c.tryLoc<=e&&e<=c.finallyLoc&&(c=null);var a=c?c.completion:{};return a.type=t,a.arg=e,c?(this.method="next",this.next=c.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},7473:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7534:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},7670:(t,e,r)=>{var n=r(2651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},7828:(t,e,r)=>{var n=r(9325).Uint8Array;t.exports=n},8096:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},8223:(t,e,r)=>{var n=r(6110)(r(9325),"Map");t.exports=n},8303:(t,e,r)=>{var n=r(6110)(r(9325),"WeakMap");t.exports=n},8655:(t,e,r)=>{var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},8859:(t,e,r)=>{var n=r(3661),o=r(1380),c=r(1459);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=c,t.exports=a},8984:(t,e,r)=>{var n=r(5527),o=r(3650),c=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))c.call(t,r)&&"constructor"!=r&&e.push(r);return e}},9092:t=>{function e(t,e,r,n,o,c,a){try{var i=t[c](a),s=i.value}catch(t){return void r(t)}i.done?e(s):Promise.resolve(s).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,c){var a=t.apply(r,n);function i(t){e(a,o,c,i,s,"next",t)}function s(t){e(a,o,c,i,s,"throw",t)}i(void 0)}))}}},9219:t=>{t.exports=function(t,e){return t.has(e)}},9325:(t,e,r)=>{var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,c=n||o||Function("return this")();t.exports=c},9350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9770:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,c=[];++r<n;){var a=t[r];e(a,r,t)&&(c[o++]=a)}return c}},9817:t=>{t.exports=function(t){return this.__data__.has(t)}},9935:t=>{t.exports=function(){return!1}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var c=e[n]={id:n,loaded:!1,exports:{}};return t[n](c,c.exports,r),c.loaded=!0,c.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);return(()=>{"use strict";var t=r(9092),e=r.n(t),n=r(2207),o=r.n(n);const c=function(){var t;window.console&&(t=console).log.apply(t,arguments)},a=function(){window.console&&(console.error||console.log).apply(void 0,arguments)};var i=function(t){return"/js/tocco-".concat(t,"/dist/")},s=function(t,e){var r=t!==e?e:"index";return"".concat(i(t)).concat(r,".js")},u=function(t){return new Promise((function(e,r){var n=document.createElement("script");n.src=t,n.async=!0,n.type="text/javascript",n.onload=function(){e()},n.onerror=function(){r(new Error("Could not load script."))},n.crossorogin=!0;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)}))};const p=u,f=s;var l=r(2404),h=r.n(l),d="toccoBootstrap",v="toccoMethods",y="tqlMeta",b="toccoBackendUrl",g="data-tocco-widget-key",w="data-tocco-visibility-status",x="widget-utils",m="widget-placeholder",j=r(6396),_=r.n(j);function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Headers;r.set("Content-Type","application/json");var n=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({headers:r,method:"GET",credentials:"include"},e);return fetch(t,n)},P=function(t){var e=t.ok,r=t.status;return t.json().then((function(t){return{ok:e,status:r,body:t}}))},E=r(5735),S=r.n(E);function A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var T=function(t){var e=function(t){return t.startsWith("http")?new URL(t):window.location}(t.currentScript.getAttribute("src"));return e.protocol+"//"+e.host},z=function(){var t=window.toccoTheme;if(t&&"object"===S()(t))return t},D=function(t){return t&&Object.keys(t).length>0&&"function"==typeof t[Object.keys(t)[0]]},U=function(t){var e=window.toccoEventHandlers;if(D(e))return e;if(e){var r=e[t];if(D(r))return r}return{}},C=function(t,e){window[v]=L(L({},window[v]),{},_()({},t,e))},I=function(){return r(3093).version},N=function(t){var r=t.backendUrl,n=t.assetUrl,i=I(),s={version:i,backendUrl:r,assetUrl:n},u=function(t){var r=t.backendUrl;return function(){var t=e()(o().mark((function t(e,n){var c,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={method:"POST",body:JSON.stringify(n)},t.next=1,k("".concat(r,"/nice2/rest/entities/2.0/").concat(e,"/search?_omitLinks=true"),c).then(P).then((function(t){return null==t?void 0:t.body})).catch((function(t){a("Could not execute tql.",t)}));case 1:return i=t.sent,t.abrupt("return",i);case 2:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()}(s),p=window[y];if(p)return c("tocco-widget-utils - tql function is already initialized"),void(!h()(p,s)&&a("More than one tql function with different settings has been found. Add only one tql function per page.","\nInitialized tql function:",p,"\nIgnored tql function:",s));window.tql=u,window[y]=s,c("tocco-widget-utils - v".concat(i," - tql"))},F="error",R=function(){var t=e()(o().mark((function t(e,r,n){var c,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c="ERROR MESSAGE: ".concat(n.message," \nSTACK: ").concat(n.stack?n.stack.substring(0,1e3):"-"),i="".concat(r,"\n").concat(c),a(i),t.next=1,V(F,e,i);case 1:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),M=function(){var t=e()(o().mark((function t(e,r){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a(r),t.next=1,V(F,e,r);case 1:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),V=function(){var t=e()(o().mark((function t(e,r,n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,k("".concat(r,"/nice2/log?level=").concat(e,"&message=").concat(encodeURI(n)),{method:"POST"});case 1:t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}}),t,null,[[0,2]])})));return function(e,r,n){return t.apply(this,arguments)}}(),q=function(t,e,r){try{var n=document.getElementById(e)||function(t){var e=document.createElement("style");return e.id=t,document.head.appendChild(e),e}(e);n.innerHTML=r}catch(e){R(t,"Could not apply global styles.",e)}};const B=function(t){var e=t.backendUrl,r="[".concat(w,"] {display: none;}");q(e,"tocco-initial-visibility-status-styles",r)};function G(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function W(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?G(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var $=function(){var t=e()(o().mark((function t(e,r,n,c,a){var i,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,p("".concat(r).concat(f(x,m)));case 1:t.next=3;break;case 2:return t.prev=2,s=t.catch(0),R(e,"Could not fetch package 'tocco-".concat(x,"'."),s),t.abrupt("return");case 3:try{i="".concat(r,"/js/tocco-").concat(x,"/dist/"),window.reactRegistry.render(m,n,c,a,{},i)}catch(t){R(e,"Could not render app '".concat(m,"'."),t)}case 4:case"end":return t.stop()}}),t,null,[[0,2]])})));return function(e,r,n,o,c){return t.apply(this,arguments)}}(),H=function(){var t=e()(o().mark((function t(e,r,n,c,a){var i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=z(),t.next=1,$(e,r,n,c,W(W(W({backendUrl:e},a?{locale:a}:{}),i?{customTheme:i}:{}),{},{placeholder:"error",appContext:{embedType:"widget"}}));case 1:case"end":return t.stop()}}),t)})));return function(e,r,n,o,c){return t.apply(this,arguments)}}();function J(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function K(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?J(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Y=function(t){return t.getAttribute(g)},Q=function(){var t=I().split(".").slice(0,2).map((function(t,e){return 0===e?t:t.padStart(2,"0")})).join("");return"https://".concat(t,".docs.tocco.ch/Web/widgets/Web_Einbindung_Tocco_Widgets_Fehlermeldungen.html")},X=function(t,e,r){var n=e.ok,o=e.status,c=e.body;return n?e:(403===o&&"INVALID_DOMAIN"===(null==c?void 0:c.errorCode)&&M(t,"".concat(c.message,". Visit ").concat(Q()," for further information.")),403===o&&"INACTIVE"===(null==c?void 0:c.errorCode)&&M(t,"".concat(c.message,". Visit ").concat(Q()," for further information.")),void(404===o&&M(t,"Widget config '".concat(r,"' not found. Visit ").concat(Q()," for further information."))))},Z=function(t,e,r){return function(){for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];var a=o[0].status;!function(t,e,r){var n=r.map((function(t){return"[".concat("data-tocco-widget-ref",'="').concat(e,'"][').concat(w,'~="').concat(t,'"]')})).join(",\n"),o="".concat(n," {\n display: inherit;\n}");q(t,"".concat("tocco-visibility-status-styles","-").concat(e),o)}(t,e,a),"function"==typeof r&&r.apply(void 0,o)}},tt=function(){var t=e()(o().mark((function t(e,r,n){var c,a,i,s,u,l,h,d,v,y,b,g,w,x,m;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=Y(n),t.next=1,k("".concat(e,"/nice2/rest/widget/configs/").concat(c)).then(P).then((function(t){return X(e,t,c)})).then((function(t){return null==t?void 0:t.body})).catch((function(t){R(e,"Could not fetch widget config '".concat(c,"'. Visit ").concat(Q()," for further information."),t)}));case 1:if(!(a=t.sent)){t.next=10;break}return i=a.appName,s=a.packageName,u=a.locale,l=a.config,t.prev=2,t.next=3,p("".concat(r).concat(f(s,i)));case 3:t.next=6;break;case 4:return t.prev=4,x=t.catch(2),R(e,"Could not fetch package 'tocco-".concat(s,"'. Visit ").concat(Q()," for further information."),x),t.next=5,H(e,r,n,c,u);case 5:return t.abrupt("return");case 6:h=U(c),d=K(K({},h),{},{onVisibilityStatusChange:Z(e,c,h.onVisibilityStatusChange)}),v=z(),y=K(K(K({backendUrl:e},v?{customTheme:v}:{}),{},{locale:u},l),{},{appContext:{embedType:"widget",widgetConfigKey:c}},d),b="".concat(r,"/js/tocco-").concat(s,"/dist/"),t.prev=7,g=window.reactRegistry.render(i,n,c,y,d,b),C(c,g),t.next=9;break;case 8:return t.prev=8,m=t.catch(7),R(e,"Could not render app '".concat(i,"'. Visit ").concat(Q()," for further information."),m),t.next=9,H(e,r,n,c,u);case 9:t.next=11;break;case 10:return w=document.documentElement.lang,t.next=11,H(e,r,n,c,w);case 11:case"end":return t.stop()}}),t,null,[[2,4],[7,8]])})));return function(e,r,n){return t.apply(this,arguments)}}(),et=function(t){var e=I(),r=K({version:e},t),n=window[d];return n?(c("tocco-widget-utils - bootstrap script is already initialized"),!h()(n,r)&&a("More than one bootstrap script with different settings has been found. Add only one bootstrap script per page.","\nInitialized bootstrap script:",n,"\nIgnored bootstrap script:",r),!1):(window[d]=r,c("tocco-widget-utils - v".concat(e," - bootstrap")),!0)},rt=function(){var t=e()(o().mark((function t(e){var r,n,c,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(et(e)){t.next=1;break}return t.abrupt("return");case 1:return r=e.backendUrl,n=e.assetUrl,c=document.querySelectorAll("[".concat(g,"]")),a=Array.prototype.slice.call(c),t.next=2,Promise.all(a.map((function(t){return tt(r,n,t)})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();const nt=rt;var ot,ct;ot=T(document),ct={backendUrl:window[b]?window[b]:ot,assetUrl:ot},B(ct),N(ct),document.addEventListener("DOMContentLoaded",e()(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.React&&window.reactRegistry){t.next=4;break}return t.next=1,p("".concat(ct.assetUrl,"/js/umd-react/dist/react.production.min.js"));case 1:return t.next=2,p("".concat(ct.assetUrl,"/js/umd-react/dist/react-dom.production.min.js"));case 2:return t.next=3,p("".concat(ct.assetUrl,"/nice2/javascript/nice2-newclient-react-registry.release.js"));case 3:t.next=5;break;case 4:c("tocco-widget-utils - React and react-registry already loaded - v".concat(window.React.version));case 5:return t.next=6,nt(ct);case 6:case"end":return t.stop()}}),t)}))))})(),{}})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["tocco-widget-utils-bootstrap"]=e():t["tocco-widget-utils-bootstrap"]=e()}(this,(()=>(()=>{var t={2:(t,e,r)=>{var n=r(2199),o=r(4664),c=r(5950);t.exports=function(t){return n(t,c,o)}},79:(t,e,r)=>{var n=r(3702),o=r(80),c=r(4739),a=r(8655),i=r(1175);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=c,s.prototype.has=a,s.prototype.set=i,t.exports=s},80:(t,e,r)=>{var n=r(6025),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},270:(t,e,r)=>{var n=r(7068),o=r(346);t.exports=function t(e,r,c,a,i){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,c,a,t,i))}},289:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},317:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},361:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},392:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},659:(t,e,r)=>{var n=r(1873),o=Object.prototype,c=o.hasOwnProperty,a=o.toString,i=n?n.toStringTag:void 0;t.exports=function(t){var e=c.call(t,i),r=t[i];try{t[i]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[i]=r:delete t[i]),o}},689:(t,e,r)=>{var n=r(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,c,a,i){var s=1&r,u=n(t),p=u.length;if(p!=n(e).length&&!s)return!1;for(var f=p;f--;){var l=u[f];if(!(s?l in e:o.call(e,l)))return!1}var h=i.get(t),d=i.get(e);if(h&&d)return h==e&&d==t;var v=!0;i.set(t,e),i.set(e,t);for(var y=s;++f<p;){var b=t[l=u[f]],g=e[l];if(c)var w=s?c(g,b,l,e,t,i):c(b,g,l,t,e,i);if(!(void 0===w?b===g||a(b,g,r,c,i):w)){v=!1;break}y||(y="constructor"==l)}if(v&&!y){var x=t.constructor,m=e.constructor;x==m||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof m&&m instanceof m||(v=!1)}return i.delete(t),i.delete(e),v}},695:(t,e,r)=>{var n=r(8096),o=r(2428),c=r(6449),a=r(3656),i=r(361),s=r(7167),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=c(t),p=!r&&o(t),f=!r&&!p&&a(t),l=!r&&!p&&!f&&s(t),h=r||p||f||l,d=h?n(t.length,String):[],v=d.length;for(var y in t)!e&&!u.call(t,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||i(y,v))||d.push(y);return d}},938:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},945:(t,e,r)=>{var n=r(79),o=r(8223),c=r(3661);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new c(a)}return r.set(t,e),this.size=r.size,this}},1042:(t,e,r)=>{var n=r(6110)(Object,"create");t.exports=n},1175:(t,e,r)=>{var n=r(6025);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},1380:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1420:(t,e,r)=>{var n=r(79);t.exports=function(){this.__data__=new n,this.size=0}},1459:t=>{t.exports=function(t){return this.__data__.has(t)}},1549:(t,e,r)=>{var n=r(2032),o=r(3862),c=r(6721),a=r(2749),i=r(5749);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=c,s.prototype.has=a,s.prototype.set=i,t.exports=s},1873:(t,e,r)=>{var n=r(9325).Symbol;t.exports=n},1882:(t,e,r)=>{var n=r(2552),o=r(3805);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1986:(t,e,r)=>{var n=r(1873),o=r(7828),c=r(5288),a=r(5911),i=r(317),s=r(4247),u=n?n.prototype:void 0,p=u?u.valueOf:void 0;t.exports=function(t,e,r,n,u,f,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return c(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=i;case"[object Set]":var d=1&n;if(h||(h=s),t.size!=e.size&&!d)return!1;var v=l.get(t);if(v)return v==e;n|=2,l.set(t,e);var y=a(h(t),h(e),n,u,f,l);return l.delete(t),y;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1}},2032:(t,e,r)=>{var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},2199:(t,e,r)=>{var n=r(4528),o=r(6449);t.exports=function(t,e,r){var c=e(t);return o(t)?c:n(c,r(t))}},2207:(t,e,r)=>{t.exports=r(7452)},2404:(t,e,r)=>{var n=r(270);t.exports=function(t,e){return n(t,e)}},2428:(t,e,r)=>{var n=r(7534),o=r(346),c=Object.prototype,a=c.hasOwnProperty,i=c.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!i.call(t,"callee")};t.exports=s},2552:(t,e,r)=>{var n=r(1873),o=r(659),c=r(9350),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):c(t)}},2651:(t,e,r)=>{var n=r(4218);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},2749:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},2804:(t,e,r)=>{var n=r(6110)(r(9325),"Promise");t.exports=n},2949:(t,e,r)=>{var n=r(2651);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},3040:(t,e,r)=>{var n=r(1549),o=r(79),c=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(c||o),string:new n}}},3093:t=>{"use strict";t.exports=JSON.parse('{"name":"tocco-widget-utils","version":"3.15.23","description":"","license":"AGPL-3.0+","scripts":{"compile:prod":"cd ../../../ && yarn run compile:prod --package=widget-utils","prepack":"yarn run compile:prod","test":"jest"},"devDependencies":{"tocco-util":"*","tocco-widget-placeholder":"*"}}')},3345:t=>{t.exports=function(){return[]}},3605:t=>{t.exports=function(t){return this.__data__.get(t)}},3650:(t,e,r)=>{var n=r(4335)(Object.keys,Object);t.exports=n},3656:(t,e,r)=>{t=r.nmd(t);var n=r(9325),o=r(9935),c=e&&!e.nodeType&&e,a=c&&t&&!t.nodeType&&t,i=a&&a.exports===c?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||o;t.exports=s},3661:(t,e,r)=>{var n=r(3040),o=r(7670),c=r(289),a=r(4509),i=r(2949);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=c,s.prototype.has=a,s.prototype.set=i,t.exports=s},3702:t=>{t.exports=function(){this.__data__=[],this.size=0}},3805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3862:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},4218:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},4247:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},4248:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4335:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4509:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},4528:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},4664:(t,e,r)=>{var n=r(9770),o=r(3345),c=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return c.call(t,e)})))}:o;t.exports=i},4739:(t,e,r)=>{var n=r(6025);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},4840:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},4894:(t,e,r)=>{var n=r(1882),o=r(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4901:(t,e,r)=>{var n=r(2552),o=r(294),c=r(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return c(t)&&o(t.length)&&!!a[n(t)]}},5083:(t,e,r)=>{var n=r(1882),o=r(7296),c=r(3805),a=r(7473),i=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,p=s.toString,f=u.hasOwnProperty,l=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!c(t)||o(t))&&(n(t)?l:i).test(a(t))}},5288:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},5481:(t,e,r)=>{var n=r(9325)["__core-js_shared__"];t.exports=n},5527:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},5580:(t,e,r)=>{var n=r(6110)(r(9325),"DataView");t.exports=n},5735:t=>{function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(r)}t.exports=e},5749:(t,e,r)=>{var n=r(1042);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5861:(t,e,r)=>{var n=r(5580),o=r(8223),c=r(2804),a=r(6545),i=r(8303),s=r(2552),u=r(7473),p="[object Map]",f="[object Promise]",l="[object Set]",h="[object WeakMap]",d="[object DataView]",v=u(n),y=u(o),b=u(c),g=u(a),w=u(i),x=s;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=p||c&&x(c.resolve())!=f||a&&x(new a)!=l||i&&x(new i)!=h)&&(x=function(t){var e=s(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case v:return d;case y:return p;case b:return f;case g:return l;case w:return h}return e}),t.exports=x},5911:(t,e,r)=>{var n=r(8859),o=r(4248),c=r(9219);t.exports=function(t,e,r,a,i,s){var u=1&r,p=t.length,f=e.length;if(p!=f&&!(u&&f>p))return!1;var l=s.get(t),h=s.get(e);if(l&&h)return l==e&&h==t;var d=-1,v=!0,y=2&r?new n:void 0;for(s.set(t,e),s.set(e,t);++d<p;){var b=t[d],g=e[d];if(a)var w=u?a(g,b,d,e,t,s):a(b,g,d,t,e,s);if(void 0!==w){if(w)continue;v=!1;break}if(y){if(!o(e,(function(t,e){if(!c(y,e)&&(b===t||i(b,t,r,a,s)))return y.push(e)}))){v=!1;break}}else if(b!==g&&!i(b,g,r,a,s)){v=!1;break}}return s.delete(t),s.delete(e),v}},5950:(t,e,r)=>{var n=r(695),o=r(8984),c=r(4894);t.exports=function(t){return c(t)?n(t):o(t)}},6009:(t,e,r)=>{t=r.nmd(t);var n=r(4840),o=e&&!e.nodeType&&e,c=o&&t&&!t.nodeType&&t,a=c&&c.exports===o&&n.process,i=function(){try{var t=c&&c.require&&c.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=i},6025:(t,e,r)=>{var n=r(5288);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},6110:(t,e,r)=>{var n=r(5083),o=r(392);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},6396:t=>{t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},6449:t=>{var e=Array.isArray;t.exports=e},6545:(t,e,r)=>{var n=r(6110)(r(9325),"Set");t.exports=n},6721:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},7068:(t,e,r)=>{var n=r(7217),o=r(5911),c=r(1986),a=r(689),i=r(5861),s=r(6449),u=r(3656),p=r(7167),f="[object Arguments]",l="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,y,b){var g=s(t),w=s(e),x=g?l:i(t),m=w?l:i(e),j=(x=x==f?h:x)==h,_=(m=m==f?h:m)==h,O=x==m;if(O&&u(t)){if(!u(e))return!1;g=!0,j=!1}if(O&&!j)return b||(b=new n),g||p(t)?o(t,e,r,v,y,b):c(t,e,x,r,v,y,b);if(!(1&r)){var k=j&&d.call(t,"__wrapped__"),P=_&&d.call(e,"__wrapped__");if(k||P){var E=k?t.value():t,S=P?e.value():e;return b||(b=new n),y(E,S,r,v,b)}}return!!O&&(b||(b=new n),a(t,e,r,v,y,b))}},7167:(t,e,r)=>{var n=r(4901),o=r(7301),c=r(6009),a=c&&c.isTypedArray,i=a?o(a):n;t.exports=i},7217:(t,e,r)=>{var n=r(79),o=r(1420),c=r(938),a=r(3605),i=r(9817),s=r(945);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=c,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,t.exports=u},7296:(t,e,r)=>{var n,o=r(5481),c=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!c&&c in t}},7301:t=>{t.exports=function(t){return function(e){return t(e)}}},7452:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,c=Object.create(o.prototype),a=new S(n||[]);return c._invoke=function(t,e,r){var n=f;return function(o,c){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw c;return L()}for(r.method=o,r.arg=c;;){var a=r.delegate;if(a){var i=k(a,r);if(i){if(i===v)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=p(t,e,r);if("normal"===s.type){if(n=r.done?d:l,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),c}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",l="suspendedYield",h="executing",d="completed",v={};function y(){}function b(){}function g(){}var w={};w[c]=function(){return this};var x=Object.getPrototypeOf,m=x&&x(x(A([])));m&&m!==r&&n.call(m,c)&&(w=m);var j=g.prototype=y.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,c,a,i){var s=p(t[o],t,c);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,i)}),(function(t){r("throw",t,a,i)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,i)}))}i(s.arg)}var o;this._invoke=function(t,n){function c(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(c,c):c()}}function k(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=p(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:L}}function L(){return{value:e,done:!0}}return b.prototype=j.constructor=g,g.constructor=b,b.displayName=s(g,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,i,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},_(O.prototype),O.prototype[a]=function(){return this},t.AsyncIterator=O,t.async=function(e,r,n,o,c){void 0===c&&(c=Promise);var a=new O(u(e,r,n,o),c);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(j),s(j,i,"Generator"),j[c]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,S.prototype={constructor:S,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(E),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return i.type="throw",i.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var a=this.tryEntries[c],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var c=o;break}}c&&("break"===t||"continue"===t)&&c.tryLoc<=e&&e<=c.finallyLoc&&(c=null);var a=c?c.completion:{};return a.type=t,a.arg=e,c?(this.method="next",this.next=c.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},7473:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7534:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},7670:(t,e,r)=>{var n=r(2651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},7828:(t,e,r)=>{var n=r(9325).Uint8Array;t.exports=n},8096:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},8223:(t,e,r)=>{var n=r(6110)(r(9325),"Map");t.exports=n},8303:(t,e,r)=>{var n=r(6110)(r(9325),"WeakMap");t.exports=n},8655:(t,e,r)=>{var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},8859:(t,e,r)=>{var n=r(3661),o=r(1380),c=r(1459);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=c,t.exports=a},8984:(t,e,r)=>{var n=r(5527),o=r(3650),c=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))c.call(t,r)&&"constructor"!=r&&e.push(r);return e}},9092:t=>{function e(t,e,r,n,o,c,a){try{var i=t[c](a),s=i.value}catch(t){return void r(t)}i.done?e(s):Promise.resolve(s).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,c){var a=t.apply(r,n);function i(t){e(a,o,c,i,s,"next",t)}function s(t){e(a,o,c,i,s,"throw",t)}i(void 0)}))}}},9219:t=>{t.exports=function(t,e){return t.has(e)}},9325:(t,e,r)=>{var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,c=n||o||Function("return this")();t.exports=c},9350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9770:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,c=[];++r<n;){var a=t[r];e(a,r,t)&&(c[o++]=a)}return c}},9817:t=>{t.exports=function(t){return this.__data__.has(t)}},9935:t=>{t.exports=function(){return!1}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var c=e[n]={id:n,loaded:!1,exports:{}};return t[n](c,c.exports,r),c.loaded=!0,c.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);return(()=>{"use strict";var t=r(9092),e=r.n(t),n=r(2207),o=r.n(n);const c=function(){var t;window.console&&(t=console).log.apply(t,arguments)},a=function(){window.console&&(console.error||console.log).apply(void 0,arguments)};var i=function(t){return"/js/tocco-".concat(t,"/dist/")},s=function(t,e){var r=t!==e?e:"index";return"".concat(i(t)).concat(r,".js")},u=function(t){return new Promise((function(e,r){var n=document.createElement("script");n.src=t,n.async=!0,n.type="text/javascript",n.onload=function(){e()},n.onerror=function(){r(new Error("Could not load script."))},n.crossorogin=!0;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)}))};const p=u,f=s;var l=r(2404),h=r.n(l),d="toccoBootstrap",v="toccoMethods",y="tqlMeta",b="toccoBackendUrl",g="data-tocco-widget-key",w="data-tocco-visibility-status",x="widget-utils",m="widget-placeholder",j=r(6396),_=r.n(j);function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Headers;r.set("Content-Type","application/json");var n=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({headers:r,method:"GET",credentials:"include"},e);return fetch(t,n)},P=function(t){var e=t.ok,r=t.status;return t.json().then((function(t){return{ok:e,status:r,body:t}}))},E=r(5735),S=r.n(E);function A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var T=function(t){var e=function(t){return t.startsWith("http")?new URL(t):window.location}(t.currentScript.getAttribute("src"));return e.protocol+"//"+e.host},z=function(){var t=window.toccoTheme;if(t&&"object"===S()(t))return t},D=function(t){return t&&Object.keys(t).length>0&&"function"==typeof t[Object.keys(t)[0]]},U=function(t){var e=window.toccoEventHandlers;if(D(e))return e;if(e){var r=e[t];if(D(r))return r}return{}},C=function(t,e){window[v]=L(L({},window[v]),{},_()({},t,e))},I=function(){return r(3093).version},N=function(t){var r=t.backendUrl,n=t.assetUrl,i=I(),s={version:i,backendUrl:r,assetUrl:n},u=function(t){var r=t.backendUrl;return function(){var t=e()(o().mark((function t(e,n){var c,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={method:"POST",body:JSON.stringify(n)},t.next=1,k("".concat(r,"/nice2/rest/entities/2.0/").concat(e,"/search?_omitLinks=true"),c).then(P).then((function(t){return null==t?void 0:t.body})).catch((function(t){a("Could not execute tql.",t)}));case 1:return i=t.sent,t.abrupt("return",i);case 2:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()}(s),p=window[y];if(p)return c("tocco-widget-utils - tql function is already initialized"),void(!h()(p,s)&&a("More than one tql function with different settings has been found. Add only one tql function per page.","\nInitialized tql function:",p,"\nIgnored tql function:",s));window.tql=u,window[y]=s,c("tocco-widget-utils - v".concat(i," - tql"))},F="error",R=function(){var t=e()(o().mark((function t(e,r,n){var c,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c="ERROR MESSAGE: ".concat(n.message," \nSTACK: ").concat(n.stack?n.stack.substring(0,1e3):"-"),i="".concat(r,"\n").concat(c),a(i),t.next=1,V(F,e,i);case 1:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),M=function(){var t=e()(o().mark((function t(e,r){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a(r),t.next=1,V(F,e,r);case 1:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),V=function(){var t=e()(o().mark((function t(e,r,n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,k("".concat(r,"/nice2/log?level=").concat(e,"&message=").concat(encodeURI(n)),{method:"POST"});case 1:t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}}),t,null,[[0,2]])})));return function(e,r,n){return t.apply(this,arguments)}}(),q=function(t,e,r){try{var n=document.getElementById(e)||function(t){var e=document.createElement("style");return e.id=t,document.head.appendChild(e),e}(e);n.innerHTML=r}catch(e){R(t,"Could not apply global styles.",e)}};const B=function(t){var e=t.backendUrl,r="[".concat(w,"] {display: none;}");q(e,"tocco-initial-visibility-status-styles",r)};function G(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function W(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?G(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var $=function(){var t=e()(o().mark((function t(e,r,n,c,a){var i,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,p("".concat(r).concat(f(x,m)));case 1:t.next=3;break;case 2:return t.prev=2,s=t.catch(0),R(e,"Could not fetch package 'tocco-".concat(x,"'."),s),t.abrupt("return");case 3:try{i="".concat(r,"/js/tocco-").concat(x,"/dist/"),window.reactRegistry.render(m,n,c,a,{},i)}catch(t){R(e,"Could not render app '".concat(m,"'."),t)}case 4:case"end":return t.stop()}}),t,null,[[0,2]])})));return function(e,r,n,o,c){return t.apply(this,arguments)}}(),H=function(){var t=e()(o().mark((function t(e,r,n,c,a){var i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=z(),t.next=1,$(e,r,n,c,W(W(W({backendUrl:e},a?{locale:a}:{}),i?{customTheme:i}:{}),{},{placeholder:"error",appContext:{embedType:"widget"}}));case 1:case"end":return t.stop()}}),t)})));return function(e,r,n,o,c){return t.apply(this,arguments)}}();function J(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function K(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?J(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Y=function(t){return t.getAttribute(g)},Q=function(){var t=I().split(".").slice(0,2).map((function(t,e){return 0===e?t:t.padStart(2,"0")})).join("");return"https://".concat(t,".docs.tocco.ch/Web/widgets/Web_Einbindung_Tocco_Widgets_Fehlermeldungen.html")},X=function(t,e,r){var n=e.ok,o=e.status,c=e.body;return n?e:(403===o&&"INVALID_DOMAIN"===(null==c?void 0:c.errorCode)&&M(t,"".concat(c.message,". Visit ").concat(Q()," for further information.")),403===o&&"INACTIVE"===(null==c?void 0:c.errorCode)&&M(t,"".concat(c.message,". Visit ").concat(Q()," for further information.")),void(404===o&&M(t,"Widget config '".concat(r,"' not found. Visit ").concat(Q()," for further information."))))},Z=function(t,e,r){return function(){for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];var a=o[0].status;!function(t,e,r){var n=r.map((function(t){return"[".concat("data-tocco-widget-ref",'="').concat(e,'"][').concat(w,'~="').concat(t,'"]')})).join(",\n"),o="".concat(n," {\n display: inherit;\n}");q(t,"".concat("tocco-visibility-status-styles","-").concat(e),o)}(t,e,a),"function"==typeof r&&r.apply(void 0,o)}},tt=function(){var t=e()(o().mark((function t(e,r,n){var c,a,i,s,u,l,h,d,v,y,b,g,w,x,m;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=Y(n),t.next=1,k("".concat(e,"/nice2/rest/widget/configs/").concat(c)).then(P).then((function(t){return X(e,t,c)})).then((function(t){return null==t?void 0:t.body})).catch((function(t){R(e,"Could not fetch widget config '".concat(c,"'. Visit ").concat(Q()," for further information."),t)}));case 1:if(!(a=t.sent)){t.next=10;break}return i=a.appName,s=a.packageName,u=a.locale,l=a.config,t.prev=2,t.next=3,p("".concat(r).concat(f(s,i)));case 3:t.next=6;break;case 4:return t.prev=4,x=t.catch(2),R(e,"Could not fetch package 'tocco-".concat(s,"'. Visit ").concat(Q()," for further information."),x),t.next=5,H(e,r,n,c,u);case 5:return t.abrupt("return");case 6:h=U(c),d=K(K({},h),{},{onVisibilityStatusChange:Z(e,c,h.onVisibilityStatusChange)}),v=z(),y=K(K(K({backendUrl:e},v?{customTheme:v}:{}),{},{locale:u},l),{},{appContext:{embedType:"widget",widgetConfigKey:c}},d),b="".concat(r,"/js/tocco-").concat(s,"/dist/"),t.prev=7,g=window.reactRegistry.render(i,n,c,y,d,b),C(c,g),t.next=9;break;case 8:return t.prev=8,m=t.catch(7),R(e,"Could not render app '".concat(i,"'. Visit ").concat(Q()," for further information."),m),t.next=9,H(e,r,n,c,u);case 9:t.next=11;break;case 10:return w=document.documentElement.lang,t.next=11,H(e,r,n,c,w);case 11:case"end":return t.stop()}}),t,null,[[2,4],[7,8]])})));return function(e,r,n){return t.apply(this,arguments)}}(),et=function(t){var e=I(),r=K({version:e},t),n=window[d];return n?(c("tocco-widget-utils - bootstrap script is already initialized"),!h()(n,r)&&a("More than one bootstrap script with different settings has been found. Add only one bootstrap script per page.","\nInitialized bootstrap script:",n,"\nIgnored bootstrap script:",r),!1):(window[d]=r,c("tocco-widget-utils - v".concat(e," - bootstrap")),!0)},rt=function(){var t=e()(o().mark((function t(e){var r,n,c,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(et(e)){t.next=1;break}return t.abrupt("return");case 1:return r=e.backendUrl,n=e.assetUrl,c=document.querySelectorAll("[".concat(g,"]")),a=Array.prototype.slice.call(c),t.next=2,Promise.all(a.map((function(t){return tt(r,n,t)})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();const nt=rt;var ot,ct;ot=T(document),ct={backendUrl:window[b]?window[b]:ot,assetUrl:ot},B(ct),N(ct),document.addEventListener("DOMContentLoaded",e()(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.React&&window.reactRegistry){t.next=4;break}return t.next=1,p("".concat(ct.assetUrl,"/js/umd-react/dist/react.production.min.js"));case 1:return t.next=2,p("".concat(ct.assetUrl,"/js/umd-react/dist/react-dom.production.min.js"));case 2:return t.next=3,p("".concat(ct.assetUrl,"/nice2/javascript/nice2-newclient-react-registry.release.js"));case 3:t.next=5;break;case 4:c("tocco-widget-utils - React and react-registry already loaded - v".concat(window.React.version));case 5:return t.next=6,nt(ct);case 6:case"end":return t.stop()}}),t)}))))})(),{}})()));
package/dist/tql.js CHANGED
@@ -1 +1 @@
1
- !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports["tocco-widget-utils-tql"]=r():t["tocco-widget-utils-tql"]=r()}(this,(()=>(()=>{var t={2:(t,r,e)=>{var n=e(2199),o=e(4664),i=e(5950);t.exports=function(t){return n(t,i,o)}},79:(t,r,e)=>{var n=e(3702),o=e(80),i=e(4739),a=e(8655),c=e(1175);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},80:(t,r,e)=>{var n=e(6025),o=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=n(r,t);return!(e<0)&&(e==r.length-1?r.pop():o.call(r,e,1),--this.size,!0)}},270:(t,r,e)=>{var n=e(7068),o=e(346);t.exports=function t(r,e,i,a,c){return r===e||(null==r||null==e||!o(r)&&!o(e)?r!=r&&e!=e:n(r,e,i,a,t,c))}},289:(t,r,e)=>{var n=e(2651);t.exports=function(t){return n(this,t).get(t)}},294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},317:t=>{t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},361:t=>{var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},392:t=>{t.exports=function(t,r){return null==t?void 0:t[r]}},659:(t,r,e)=>{var n=e(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var r=i.call(t,c),e=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(r?t[c]=e:delete t[c]),o}},689:(t,r,e)=>{var n=e(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,i,a,c){var u=1&e,s=n(t),p=s.length;if(p!=n(r).length&&!u)return!1;for(var f=p;f--;){var l=s[f];if(!(u?l in r:o.call(r,l)))return!1}var h=c.get(t),v=c.get(r);if(h&&v)return h==r&&v==t;var y=!0;c.set(t,r),c.set(r,t);for(var d=u;++f<p;){var b=t[l=s[f]],g=r[l];if(i)var _=u?i(g,b,l,r,t,c):i(b,g,l,t,r,c);if(!(void 0===_?b===g||a(b,g,e,i,c):_)){y=!1;break}d||(d="constructor"==l)}if(y&&!d){var x=t.constructor,w=r.constructor;x==w||!("constructor"in t)||!("constructor"in r)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(y=!1)}return c.delete(t),c.delete(r),y}},695:(t,r,e)=>{var n=e(8096),o=e(2428),i=e(6449),a=e(3656),c=e(361),u=e(7167),s=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=i(t),p=!e&&o(t),f=!e&&!p&&a(t),l=!e&&!p&&!f&&u(t),h=e||p||f||l,v=h?n(t.length,String):[],y=v.length;for(var d in t)!r&&!s.call(t,d)||h&&("length"==d||f&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||c(d,y))||v.push(d);return v}},938:t=>{t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},945:(t,r,e)=>{var n=e(79),o=e(8223),i=e(3661);t.exports=function(t,r){var e=this.__data__;if(e instanceof n){var a=e.__data__;if(!o||a.length<199)return a.push([t,r]),this.size=++e.size,this;e=this.__data__=new i(a)}return e.set(t,r),this.size=e.size,this}},1042:(t,r,e)=>{var n=e(6110)(Object,"create");t.exports=n},1175:(t,r,e)=>{var n=e(6025);t.exports=function(t,r){var e=this.__data__,o=n(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this}},1380:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1420:(t,r,e)=>{var n=e(79);t.exports=function(){this.__data__=new n,this.size=0}},1459:t=>{t.exports=function(t){return this.__data__.has(t)}},1549:(t,r,e)=>{var n=e(2032),o=e(3862),i=e(6721),a=e(2749),c=e(5749);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},1873:(t,r,e)=>{var n=e(9325).Symbol;t.exports=n},1882:(t,r,e)=>{var n=e(2552),o=e(3805);t.exports=function(t){if(!o(t))return!1;var r=n(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},1986:(t,r,e)=>{var n=e(1873),o=e(7828),i=e(5288),a=e(5911),c=e(317),u=e(4247),s=n?n.prototype:void 0,p=s?s.valueOf:void 0;t.exports=function(t,r,e,n,s,f,l){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!f(new o(t),new o(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var h=c;case"[object Set]":var v=1&n;if(h||(h=u),t.size!=r.size&&!v)return!1;var y=l.get(t);if(y)return y==r;n|=2,l.set(t,r);var d=a(h(t),h(r),n,s,f,l);return l.delete(t),d;case"[object Symbol]":if(p)return p.call(t)==p.call(r)}return!1}},2032:(t,r,e)=>{var n=e(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},2199:(t,r,e)=>{var n=e(4528),o=e(6449);t.exports=function(t,r,e){var i=r(t);return o(t)?i:n(i,e(t))}},2207:(t,r,e)=>{t.exports=e(7452)},2404:(t,r,e)=>{var n=e(270);t.exports=function(t,r){return n(t,r)}},2428:(t,r,e)=>{var n=e(7534),o=e(346),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},2552:(t,r,e)=>{var n=e(1873),o=e(659),i=e(9350),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},2651:(t,r,e)=>{var n=e(4218);t.exports=function(t,r){var e=t.__data__;return n(r)?e["string"==typeof r?"string":"hash"]:e.map}},2749:(t,r,e)=>{var n=e(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return n?void 0!==r[t]:o.call(r,t)}},2804:(t,r,e)=>{var n=e(6110)(e(9325),"Promise");t.exports=n},2949:(t,r,e)=>{var n=e(2651);t.exports=function(t,r){var e=n(this,t),o=e.size;return e.set(t,r),this.size+=e.size==o?0:1,this}},3040:(t,r,e)=>{var n=e(1549),o=e(79),i=e(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},3093:t=>{"use strict";t.exports=JSON.parse('{"name":"tocco-widget-utils","version":"3.15.22","description":"","license":"AGPL-3.0+","scripts":{"compile:prod":"cd ../../../ && yarn run compile:prod --package=widget-utils","prepack":"yarn run compile:prod","test":"jest"},"devDependencies":{"tocco-util":"*","tocco-widget-placeholder":"*"}}')},3345:t=>{t.exports=function(){return[]}},3605:t=>{t.exports=function(t){return this.__data__.get(t)}},3650:(t,r,e)=>{var n=e(4335)(Object.keys,Object);t.exports=n},3656:(t,r,e)=>{t=e.nmd(t);var n=e(9325),o=e(9935),i=r&&!r.nodeType&&r,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?n.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},3661:(t,r,e)=>{var n=e(3040),o=e(7670),i=e(289),a=e(4509),c=e(2949);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},3702:t=>{t.exports=function(){this.__data__=[],this.size=0}},3805:t=>{t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},3862:t=>{t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}},4218:t=>{t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},4247:t=>{t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e}},4248:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}},4335:t=>{t.exports=function(t,r){return function(e){return t(r(e))}}},4509:(t,r,e)=>{var n=e(2651);t.exports=function(t){return n(this,t).has(t)}},4528:t=>{t.exports=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}},4664:(t,r,e)=>{var n=e(9770),o=e(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(r){return i.call(t,r)})))}:o;t.exports=c},4739:(t,r,e)=>{var n=e(6025);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},4840:(t,r,e)=>{var n="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=n},4894:(t,r,e)=>{var n=e(1882),o=e(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4901:(t,r,e)=>{var n=e(2552),o=e(294),i=e(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},5083:(t,r,e)=>{var n=e(1882),o=e(7296),i=e(3805),a=e(7473),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,p=u.toString,f=s.hasOwnProperty,l=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?l:c).test(a(t))}},5288:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},5481:(t,r,e)=>{var n=e(9325)["__core-js_shared__"];t.exports=n},5527:t=>{var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},5580:(t,r,e)=>{var n=e(6110)(e(9325),"DataView");t.exports=n},5735:t=>{function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},5749:(t,r,e)=>{var n=e(1042);t.exports=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=n&&void 0===r?"__lodash_hash_undefined__":r,this}},5861:(t,r,e)=>{var n=e(5580),o=e(8223),i=e(2804),a=e(6545),c=e(8303),u=e(2552),s=e(7473),p="[object Map]",f="[object Promise]",l="[object Set]",h="[object WeakMap]",v="[object DataView]",y=s(n),d=s(o),b=s(i),g=s(a),_=s(c),x=u;(n&&x(new n(new ArrayBuffer(1)))!=v||o&&x(new o)!=p||i&&x(i.resolve())!=f||a&&x(new a)!=l||c&&x(new c)!=h)&&(x=function(t){var r=u(t),e="[object Object]"==r?t.constructor:void 0,n=e?s(e):"";if(n)switch(n){case y:return v;case d:return p;case b:return f;case g:return l;case _:return h}return r}),t.exports=x},5911:(t,r,e)=>{var n=e(8859),o=e(4248),i=e(9219);t.exports=function(t,r,e,a,c,u){var s=1&e,p=t.length,f=r.length;if(p!=f&&!(s&&f>p))return!1;var l=u.get(t),h=u.get(r);if(l&&h)return l==r&&h==t;var v=-1,y=!0,d=2&e?new n:void 0;for(u.set(t,r),u.set(r,t);++v<p;){var b=t[v],g=r[v];if(a)var _=s?a(g,b,v,r,t,u):a(b,g,v,t,r,u);if(void 0!==_){if(_)continue;y=!1;break}if(d){if(!o(r,(function(t,r){if(!i(d,r)&&(b===t||c(b,t,e,a,u)))return d.push(r)}))){y=!1;break}}else if(b!==g&&!c(b,g,e,a,u)){y=!1;break}}return u.delete(t),u.delete(r),y}},5950:(t,r,e)=>{var n=e(695),o=e(8984),i=e(4894);t.exports=function(t){return i(t)?n(t):o(t)}},6009:(t,r,e)=>{t=e.nmd(t);var n=e(4840),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,c=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},6025:(t,r,e)=>{var n=e(5288);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},6110:(t,r,e)=>{var n=e(5083),o=e(392);t.exports=function(t,r){var e=o(t,r);return n(e)?e:void 0}},6396:t=>{t.exports=function(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}},6449:t=>{var r=Array.isArray;t.exports=r},6545:(t,r,e)=>{var n=e(6110)(e(9325),"Set");t.exports=n},6721:(t,r,e)=>{var n=e(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(n){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return o.call(r,t)?r[t]:void 0}},7068:(t,r,e)=>{var n=e(7217),o=e(5911),i=e(1986),a=e(689),c=e(5861),u=e(6449),s=e(3656),p=e(7167),f="[object Arguments]",l="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,y,d,b){var g=u(t),_=u(r),x=g?l:c(t),w=_?l:c(r),j=(x=x==f?h:x)==h,m=(w=w==f?h:w)==h,O=x==w;if(O&&s(t)){if(!s(r))return!1;g=!0,j=!1}if(O&&!j)return b||(b=new n),g||p(t)?o(t,r,e,y,d,b):i(t,r,x,e,y,d,b);if(!(1&e)){var L=j&&v.call(t,"__wrapped__"),P=m&&v.call(r,"__wrapped__");if(L||P){var E=L?t.value():t,S=P?r.value():r;return b||(b=new n),d(E,S,e,y,b)}}return!!O&&(b||(b=new n),a(t,r,e,y,d,b))}},7167:(t,r,e)=>{var n=e(4901),o=e(7301),i=e(6009),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},7217:(t,r,e)=>{var n=e(79),o=e(1420),i=e(938),a=e(3605),c=e(9817),u=e(945);function s(t){var r=this.__data__=new n(t);this.size=r.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,t.exports=s},7296:(t,r,e)=>{var n,o=e(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},7301:t=>{t.exports=function(t){return function(r){return t(r)}}},7452:t=>{var r=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,r,e){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return k()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===f)throw n=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=h;var u=p(t,r,e);if("normal"===u.type){if(n=e.done?v:l,u.arg===y)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=v,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",l="suspendedYield",h="executing",v="completed",y={};function d(){}function b(){}function g(){}var _={};_[i]=function(){return this};var x=Object.getPrototypeOf,w=x&&x(x(A([])));w&&w!==e&&n.call(w,i)&&(_=w);var j=g.prototype=d.prototype=Object.create(_);function m(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function O(t,r){function e(o,i,a,c){var u=p(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,a,c)}),(function(t){e("throw",t,a,c)})):r.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(i,i):i()}}function L(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,L(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function P(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function E(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:k}}function k(){return{value:r,done:!0}}return b.prototype=j.constructor=g,g.constructor=b,b.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===b||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},m(O.prototype),O.prototype[a]=function(){return this},t.AsyncIterator=O,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new O(s(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(j),u(j,c,"Generator"),j[i]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),E(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;E(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},7473:t=>{var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7534:(t,r,e)=>{var n=e(2552),o=e(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},7670:(t,r,e)=>{var n=e(2651);t.exports=function(t){var r=n(this,t).delete(t);return this.size-=r?1:0,r}},7828:(t,r,e)=>{var n=e(9325).Uint8Array;t.exports=n},8096:t=>{t.exports=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}},8223:(t,r,e)=>{var n=e(6110)(e(9325),"Map");t.exports=n},8303:(t,r,e)=>{var n=e(6110)(e(9325),"WeakMap");t.exports=n},8655:(t,r,e)=>{var n=e(6025);t.exports=function(t){return n(this.__data__,t)>-1}},8859:(t,r,e)=>{var n=e(3661),o=e(1380),i=e(1459);function a(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new n;++r<e;)this.add(t[r])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},8984:(t,r,e)=>{var n=e(5527),o=e(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var r=[];for(var e in Object(t))i.call(t,e)&&"constructor"!=e&&r.push(e);return r}},9092:t=>{function r(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))}}},9219:t=>{t.exports=function(t,r){return t.has(r)}},9325:(t,r,e)=>{var n=e(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},9350:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},9770:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var a=t[e];r(a,e,t)&&(i[o++]=a)}return i}},9817:t=>{t.exports=function(t){return this.__data__.has(t)}},9935:t=>{t.exports=function(){return!1}}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,e),i.loaded=!0,i.exports}e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),e.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);return(()=>{"use strict";e(5735);var t=e(6396),r=e.n(t),n="tqlMeta",o="toccoBackendUrl";var i=function(t){var r=function(t){return t.startsWith("http")?new URL(t):window.location}(t.currentScript.getAttribute("src"));return r.protocol+"//"+r.host},a=e(9092),c=e.n(a),u=e(2207),s=e.n(u),p=e(2404),f=e.n(p);const l=function(){var t;window.console&&(t=console).log.apply(t,arguments)},h=function(){window.console&&(console.error||console.log).apply(void 0,arguments)};function v(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}var y,d,b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Headers;n.set("Content-Type","application/json");var o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){r()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}({headers:n,method:"GET",credentials:"include"},e);return fetch(t,o)},g=function(t){var r=t.ok,e=t.status;return t.json().then((function(t){return{ok:r,status:e,body:t}}))},_=function(t){var r=t.backendUrl,o=t.assetUrl,i=e(3093).version,a={version:i,backendUrl:r,assetUrl:o},u=function(t){var r=t.backendUrl;return function(){var t=c()(s().mark((function t(e,n){var o,i;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={method:"POST",body:JSON.stringify(n)},t.next=1,b("".concat(r,"/nice2/rest/entities/2.0/").concat(e,"/search?_omitLinks=true"),o).then(g).then((function(t){return null==t?void 0:t.body})).catch((function(t){h("Could not execute tql.",t)}));case 1:return i=t.sent,t.abrupt("return",i);case 2:case"end":return t.stop()}}),t)})));return function(r,e){return t.apply(this,arguments)}}()}(a),p=window[n];if(p)return l("tocco-widget-utils - tql function is already initialized"),void(!f()(p,a)&&h("More than one tql function with different settings has been found. Add only one tql function per page.","\nInitialized tql function:",p,"\nIgnored tql function:",a));window.tql=u,window[n]=a,l("tocco-widget-utils - v".concat(i," - tql"))};y=i(document),d={backendUrl:window[o]?window[o]:y,assetUrl:y},_(d)})(),{}})()));
1
+ !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports["tocco-widget-utils-tql"]=r():t["tocco-widget-utils-tql"]=r()}(this,(()=>(()=>{var t={2:(t,r,e)=>{var n=e(2199),o=e(4664),i=e(5950);t.exports=function(t){return n(t,i,o)}},79:(t,r,e)=>{var n=e(3702),o=e(80),i=e(4739),a=e(8655),c=e(1175);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},80:(t,r,e)=>{var n=e(6025),o=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=n(r,t);return!(e<0)&&(e==r.length-1?r.pop():o.call(r,e,1),--this.size,!0)}},270:(t,r,e)=>{var n=e(7068),o=e(346);t.exports=function t(r,e,i,a,c){return r===e||(null==r||null==e||!o(r)&&!o(e)?r!=r&&e!=e:n(r,e,i,a,t,c))}},289:(t,r,e)=>{var n=e(2651);t.exports=function(t){return n(this,t).get(t)}},294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},317:t=>{t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},361:t=>{var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},392:t=>{t.exports=function(t,r){return null==t?void 0:t[r]}},659:(t,r,e)=>{var n=e(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var r=i.call(t,c),e=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(r?t[c]=e:delete t[c]),o}},689:(t,r,e)=>{var n=e(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,i,a,c){var u=1&e,s=n(t),p=s.length;if(p!=n(r).length&&!u)return!1;for(var f=p;f--;){var l=s[f];if(!(u?l in r:o.call(r,l)))return!1}var h=c.get(t),v=c.get(r);if(h&&v)return h==r&&v==t;var y=!0;c.set(t,r),c.set(r,t);for(var d=u;++f<p;){var b=t[l=s[f]],g=r[l];if(i)var _=u?i(g,b,l,r,t,c):i(b,g,l,t,r,c);if(!(void 0===_?b===g||a(b,g,e,i,c):_)){y=!1;break}d||(d="constructor"==l)}if(y&&!d){var x=t.constructor,w=r.constructor;x==w||!("constructor"in t)||!("constructor"in r)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(y=!1)}return c.delete(t),c.delete(r),y}},695:(t,r,e)=>{var n=e(8096),o=e(2428),i=e(6449),a=e(3656),c=e(361),u=e(7167),s=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=i(t),p=!e&&o(t),f=!e&&!p&&a(t),l=!e&&!p&&!f&&u(t),h=e||p||f||l,v=h?n(t.length,String):[],y=v.length;for(var d in t)!r&&!s.call(t,d)||h&&("length"==d||f&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||c(d,y))||v.push(d);return v}},938:t=>{t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},945:(t,r,e)=>{var n=e(79),o=e(8223),i=e(3661);t.exports=function(t,r){var e=this.__data__;if(e instanceof n){var a=e.__data__;if(!o||a.length<199)return a.push([t,r]),this.size=++e.size,this;e=this.__data__=new i(a)}return e.set(t,r),this.size=e.size,this}},1042:(t,r,e)=>{var n=e(6110)(Object,"create");t.exports=n},1175:(t,r,e)=>{var n=e(6025);t.exports=function(t,r){var e=this.__data__,o=n(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this}},1380:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1420:(t,r,e)=>{var n=e(79);t.exports=function(){this.__data__=new n,this.size=0}},1459:t=>{t.exports=function(t){return this.__data__.has(t)}},1549:(t,r,e)=>{var n=e(2032),o=e(3862),i=e(6721),a=e(2749),c=e(5749);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},1873:(t,r,e)=>{var n=e(9325).Symbol;t.exports=n},1882:(t,r,e)=>{var n=e(2552),o=e(3805);t.exports=function(t){if(!o(t))return!1;var r=n(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},1986:(t,r,e)=>{var n=e(1873),o=e(7828),i=e(5288),a=e(5911),c=e(317),u=e(4247),s=n?n.prototype:void 0,p=s?s.valueOf:void 0;t.exports=function(t,r,e,n,s,f,l){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!f(new o(t),new o(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var h=c;case"[object Set]":var v=1&n;if(h||(h=u),t.size!=r.size&&!v)return!1;var y=l.get(t);if(y)return y==r;n|=2,l.set(t,r);var d=a(h(t),h(r),n,s,f,l);return l.delete(t),d;case"[object Symbol]":if(p)return p.call(t)==p.call(r)}return!1}},2032:(t,r,e)=>{var n=e(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},2199:(t,r,e)=>{var n=e(4528),o=e(6449);t.exports=function(t,r,e){var i=r(t);return o(t)?i:n(i,e(t))}},2207:(t,r,e)=>{t.exports=e(7452)},2404:(t,r,e)=>{var n=e(270);t.exports=function(t,r){return n(t,r)}},2428:(t,r,e)=>{var n=e(7534),o=e(346),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},2552:(t,r,e)=>{var n=e(1873),o=e(659),i=e(9350),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},2651:(t,r,e)=>{var n=e(4218);t.exports=function(t,r){var e=t.__data__;return n(r)?e["string"==typeof r?"string":"hash"]:e.map}},2749:(t,r,e)=>{var n=e(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return n?void 0!==r[t]:o.call(r,t)}},2804:(t,r,e)=>{var n=e(6110)(e(9325),"Promise");t.exports=n},2949:(t,r,e)=>{var n=e(2651);t.exports=function(t,r){var e=n(this,t),o=e.size;return e.set(t,r),this.size+=e.size==o?0:1,this}},3040:(t,r,e)=>{var n=e(1549),o=e(79),i=e(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},3093:t=>{"use strict";t.exports=JSON.parse('{"name":"tocco-widget-utils","version":"3.15.23","description":"","license":"AGPL-3.0+","scripts":{"compile:prod":"cd ../../../ && yarn run compile:prod --package=widget-utils","prepack":"yarn run compile:prod","test":"jest"},"devDependencies":{"tocco-util":"*","tocco-widget-placeholder":"*"}}')},3345:t=>{t.exports=function(){return[]}},3605:t=>{t.exports=function(t){return this.__data__.get(t)}},3650:(t,r,e)=>{var n=e(4335)(Object.keys,Object);t.exports=n},3656:(t,r,e)=>{t=e.nmd(t);var n=e(9325),o=e(9935),i=r&&!r.nodeType&&r,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?n.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},3661:(t,r,e)=>{var n=e(3040),o=e(7670),i=e(289),a=e(4509),c=e(2949);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},3702:t=>{t.exports=function(){this.__data__=[],this.size=0}},3805:t=>{t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},3862:t=>{t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}},4218:t=>{t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},4247:t=>{t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e}},4248:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}},4335:t=>{t.exports=function(t,r){return function(e){return t(r(e))}}},4509:(t,r,e)=>{var n=e(2651);t.exports=function(t){return n(this,t).has(t)}},4528:t=>{t.exports=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}},4664:(t,r,e)=>{var n=e(9770),o=e(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(r){return i.call(t,r)})))}:o;t.exports=c},4739:(t,r,e)=>{var n=e(6025);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},4840:(t,r,e)=>{var n="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=n},4894:(t,r,e)=>{var n=e(1882),o=e(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4901:(t,r,e)=>{var n=e(2552),o=e(294),i=e(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},5083:(t,r,e)=>{var n=e(1882),o=e(7296),i=e(3805),a=e(7473),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,p=u.toString,f=s.hasOwnProperty,l=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?l:c).test(a(t))}},5288:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},5481:(t,r,e)=>{var n=e(9325)["__core-js_shared__"];t.exports=n},5527:t=>{var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},5580:(t,r,e)=>{var n=e(6110)(e(9325),"DataView");t.exports=n},5735:t=>{function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},5749:(t,r,e)=>{var n=e(1042);t.exports=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=n&&void 0===r?"__lodash_hash_undefined__":r,this}},5861:(t,r,e)=>{var n=e(5580),o=e(8223),i=e(2804),a=e(6545),c=e(8303),u=e(2552),s=e(7473),p="[object Map]",f="[object Promise]",l="[object Set]",h="[object WeakMap]",v="[object DataView]",y=s(n),d=s(o),b=s(i),g=s(a),_=s(c),x=u;(n&&x(new n(new ArrayBuffer(1)))!=v||o&&x(new o)!=p||i&&x(i.resolve())!=f||a&&x(new a)!=l||c&&x(new c)!=h)&&(x=function(t){var r=u(t),e="[object Object]"==r?t.constructor:void 0,n=e?s(e):"";if(n)switch(n){case y:return v;case d:return p;case b:return f;case g:return l;case _:return h}return r}),t.exports=x},5911:(t,r,e)=>{var n=e(8859),o=e(4248),i=e(9219);t.exports=function(t,r,e,a,c,u){var s=1&e,p=t.length,f=r.length;if(p!=f&&!(s&&f>p))return!1;var l=u.get(t),h=u.get(r);if(l&&h)return l==r&&h==t;var v=-1,y=!0,d=2&e?new n:void 0;for(u.set(t,r),u.set(r,t);++v<p;){var b=t[v],g=r[v];if(a)var _=s?a(g,b,v,r,t,u):a(b,g,v,t,r,u);if(void 0!==_){if(_)continue;y=!1;break}if(d){if(!o(r,(function(t,r){if(!i(d,r)&&(b===t||c(b,t,e,a,u)))return d.push(r)}))){y=!1;break}}else if(b!==g&&!c(b,g,e,a,u)){y=!1;break}}return u.delete(t),u.delete(r),y}},5950:(t,r,e)=>{var n=e(695),o=e(8984),i=e(4894);t.exports=function(t){return i(t)?n(t):o(t)}},6009:(t,r,e)=>{t=e.nmd(t);var n=e(4840),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,c=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},6025:(t,r,e)=>{var n=e(5288);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},6110:(t,r,e)=>{var n=e(5083),o=e(392);t.exports=function(t,r){var e=o(t,r);return n(e)?e:void 0}},6396:t=>{t.exports=function(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}},6449:t=>{var r=Array.isArray;t.exports=r},6545:(t,r,e)=>{var n=e(6110)(e(9325),"Set");t.exports=n},6721:(t,r,e)=>{var n=e(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(n){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return o.call(r,t)?r[t]:void 0}},7068:(t,r,e)=>{var n=e(7217),o=e(5911),i=e(1986),a=e(689),c=e(5861),u=e(6449),s=e(3656),p=e(7167),f="[object Arguments]",l="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,y,d,b){var g=u(t),_=u(r),x=g?l:c(t),w=_?l:c(r),j=(x=x==f?h:x)==h,m=(w=w==f?h:w)==h,O=x==w;if(O&&s(t)){if(!s(r))return!1;g=!0,j=!1}if(O&&!j)return b||(b=new n),g||p(t)?o(t,r,e,y,d,b):i(t,r,x,e,y,d,b);if(!(1&e)){var L=j&&v.call(t,"__wrapped__"),P=m&&v.call(r,"__wrapped__");if(L||P){var E=L?t.value():t,S=P?r.value():r;return b||(b=new n),d(E,S,e,y,b)}}return!!O&&(b||(b=new n),a(t,r,e,y,d,b))}},7167:(t,r,e)=>{var n=e(4901),o=e(7301),i=e(6009),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},7217:(t,r,e)=>{var n=e(79),o=e(1420),i=e(938),a=e(3605),c=e(9817),u=e(945);function s(t){var r=this.__data__=new n(t);this.size=r.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,t.exports=s},7296:(t,r,e)=>{var n,o=e(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},7301:t=>{t.exports=function(t){return function(r){return t(r)}}},7452:t=>{var r=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,r,e){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return k()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===f)throw n=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=h;var u=p(t,r,e);if("normal"===u.type){if(n=e.done?v:l,u.arg===y)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=v,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",l="suspendedYield",h="executing",v="completed",y={};function d(){}function b(){}function g(){}var _={};_[i]=function(){return this};var x=Object.getPrototypeOf,w=x&&x(x(A([])));w&&w!==e&&n.call(w,i)&&(_=w);var j=g.prototype=d.prototype=Object.create(_);function m(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function O(t,r){function e(o,i,a,c){var u=p(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,a,c)}),(function(t){e("throw",t,a,c)})):r.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(i,i):i()}}function L(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,L(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function P(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function E(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:k}}function k(){return{value:r,done:!0}}return b.prototype=j.constructor=g,g.constructor=b,b.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===b||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},m(O.prototype),O.prototype[a]=function(){return this},t.AsyncIterator=O,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new O(s(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(j),u(j,c,"Generator"),j[i]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),E(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;E(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},7473:t=>{var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7534:(t,r,e)=>{var n=e(2552),o=e(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},7670:(t,r,e)=>{var n=e(2651);t.exports=function(t){var r=n(this,t).delete(t);return this.size-=r?1:0,r}},7828:(t,r,e)=>{var n=e(9325).Uint8Array;t.exports=n},8096:t=>{t.exports=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}},8223:(t,r,e)=>{var n=e(6110)(e(9325),"Map");t.exports=n},8303:(t,r,e)=>{var n=e(6110)(e(9325),"WeakMap");t.exports=n},8655:(t,r,e)=>{var n=e(6025);t.exports=function(t){return n(this.__data__,t)>-1}},8859:(t,r,e)=>{var n=e(3661),o=e(1380),i=e(1459);function a(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new n;++r<e;)this.add(t[r])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},8984:(t,r,e)=>{var n=e(5527),o=e(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var r=[];for(var e in Object(t))i.call(t,e)&&"constructor"!=e&&r.push(e);return r}},9092:t=>{function r(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))}}},9219:t=>{t.exports=function(t,r){return t.has(r)}},9325:(t,r,e)=>{var n=e(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},9350:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},9770:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var a=t[e];r(a,e,t)&&(i[o++]=a)}return i}},9817:t=>{t.exports=function(t){return this.__data__.has(t)}},9935:t=>{t.exports=function(){return!1}}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,e),i.loaded=!0,i.exports}e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),e.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);return(()=>{"use strict";e(5735);var t=e(6396),r=e.n(t),n="tqlMeta",o="toccoBackendUrl";var i=function(t){var r=function(t){return t.startsWith("http")?new URL(t):window.location}(t.currentScript.getAttribute("src"));return r.protocol+"//"+r.host},a=e(9092),c=e.n(a),u=e(2207),s=e.n(u),p=e(2404),f=e.n(p);const l=function(){var t;window.console&&(t=console).log.apply(t,arguments)},h=function(){window.console&&(console.error||console.log).apply(void 0,arguments)};function v(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}var y,d,b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Headers;n.set("Content-Type","application/json");var o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){r()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}({headers:n,method:"GET",credentials:"include"},e);return fetch(t,o)},g=function(t){var r=t.ok,e=t.status;return t.json().then((function(t){return{ok:r,status:e,body:t}}))},_=function(t){var r=t.backendUrl,o=t.assetUrl,i=e(3093).version,a={version:i,backendUrl:r,assetUrl:o},u=function(t){var r=t.backendUrl;return function(){var t=c()(s().mark((function t(e,n){var o,i;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={method:"POST",body:JSON.stringify(n)},t.next=1,b("".concat(r,"/nice2/rest/entities/2.0/").concat(e,"/search?_omitLinks=true"),o).then(g).then((function(t){return null==t?void 0:t.body})).catch((function(t){h("Could not execute tql.",t)}));case 1:return i=t.sent,t.abrupt("return",i);case 2:case"end":return t.stop()}}),t)})));return function(r,e){return t.apply(this,arguments)}}()}(a),p=window[n];if(p)return l("tocco-widget-utils - tql function is already initialized"),void(!f()(p,a)&&h("More than one tql function with different settings has been found. Add only one tql function per page.","\nInitialized tql function:",p,"\nIgnored tql function:",a));window.tql=u,window[n]=a,l("tocco-widget-utils - v".concat(i," - tql"))};y=i(document),d={backendUrl:window[o]?window[o]:y,assetUrl:y},_(d)})(),{}})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tocco-widget-utils",
3
- "version": "3.15.22",
3
+ "version": "3.15.23",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0+",
6
6
  "scripts": {