tocco-widget-utils 3.16.5 → 3.16.6

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.16.6
2
+ - change display of StyledSidepanelContent to flex so elements within can take remaining height via flex properties
3
+
1
4
  3.16.5
2
5
  - fix validation in EditableCellRenderer
3
6
 
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={5580(t,e,r){var n=r(6110)(r(9325),"DataView");t.exports=n},1549(t,e,r){var n=r(2032),o=r(3862),c=r(6721),a=r(2749),i=r(5749);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=c,u.prototype.has=a,u.prototype.set=i,t.exports=u},79(t,e,r){var n=r(3702),o=r(80),c=r(4739),a=r(8655),i=r(1175);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=c,u.prototype.has=a,u.prototype.set=i,t.exports=u},8223(t,e,r){var n=r(6110)(r(9325),"Map");t.exports=n},3661(t,e,r){var n=r(3040),o=r(7670),c=r(289),a=r(4509),i=r(2949);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=c,u.prototype.has=a,u.prototype.set=i,t.exports=u},2804(t,e,r){var n=r(6110)(r(9325),"Promise");t.exports=n},6545(t,e,r){var n=r(6110)(r(9325),"Set");t.exports=n},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},7217(t,e,r){var n=r(79),o=r(1420),c=r(938),a=r(3605),i=r(9817),u=r(945);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=c,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,t.exports=s},1873(t,e,r){var n=r(9325).Symbol;t.exports=n},7828(t,e,r){var n=r(9325).Uint8Array;t.exports=n},8303(t,e,r){var n=r(6110)(r(9325),"WeakMap");t.exports=n},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}},695(t,e,r){var n=r(8096),o=r(2428),c=r(6449),a=r(3656),i=r(361),u=r(7167),s=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&&u(t),d=r||p||f||l,h=d?n(t.length,String):[],v=h.length;for(var y in t)!e&&!s.call(t,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||i(y,v))||h.push(y);return h}},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}},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}},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}},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))}},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)}},7534(t,e,r){var n=r(2552),o=r(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},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))}},7068(t,e,r){var n=r(7217),o=r(5911),c=r(1986),a=r(689),i=r(5861),u=r(6449),s=r(3656),p=r(7167),f="[object Arguments]",l="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,y,b){var g=u(t),w=u(e),x=g?l:i(t),m=w?l:i(e),j=(x=x==f?d:x)==d,_=(m=m==f?d:m)==d,O=x==m;if(O&&s(t)){if(!s(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 P=j&&h.call(t,"__wrapped__"),k=_&&h.call(e,"__wrapped__");if(P||k){var E=P?t.value():t,S=k?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))}},5083(t,e,r){var n=r(1882),o=r(7296),c=r(3805),a=r(7473),i=/^\[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!(!c(t)||o(t))&&(n(t)?l:i).test(a(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)]}},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}},8096(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7301(t){t.exports=function(t){return function(e){return t(e)}}},9219(t){t.exports=function(t,e){return t.has(e)}},5481(t,e,r){var n=r(9325)["__core-js_shared__"];t.exports=n},5911(t,e,r){var n=r(8859),o=r(4248),c=r(9219);t.exports=function(t,e,r,a,i,u){var s=1&r,p=t.length,f=e.length;if(p!=f&&!(s&&f>p))return!1;var l=u.get(t),d=u.get(e);if(l&&d)return l==e&&d==t;var h=-1,v=!0,y=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++h<p;){var b=t[h],g=e[h];if(a)var w=s?a(g,b,h,e,t,u):a(b,g,h,t,e,u);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,u)))return y.push(e)}))){v=!1;break}}else if(b!==g&&!i(b,g,r,a,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},1986(t,e,r){var n=r(1873),o=r(7828),c=r(5288),a=r(5911),i=r(317),u=r(4247),s=n?n.prototype:void 0,p=s?s.valueOf:void 0;t.exports=function(t,e,r,n,s,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 d=i;case"[object Set]":var h=1&n;if(d||(d=u),t.size!=e.size&&!h)return!1;var v=l.get(t);if(v)return v==e;n|=2,l.set(t,e);var y=a(d(t),d(e),n,s,f,l);return l.delete(t),y;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1}},689(t,e,r){var n=r(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,c,a,i){var u=1&r,s=n(t),p=s.length;if(p!=n(e).length&&!u)return!1;for(var f=p;f--;){var l=s[f];if(!(u?l in e:o.call(e,l)))return!1}var d=i.get(t),h=i.get(e);if(d&&h)return d==e&&h==t;var v=!0;i.set(t,e),i.set(e,t);for(var y=u;++f<p;){var b=t[l=s[f]],g=e[l];if(c)var w=u?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}},4840(t,e,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},2(t,e,r){var n=r(2199),o=r(4664),c=r(5950);t.exports=function(t){return n(t,c,o)}},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}},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}},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}},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},5861(t,e,r){var n=r(5580),o=r(8223),c=r(2804),a=r(6545),i=r(8303),u=r(2552),s=r(7473),p="[object Map]",f="[object Promise]",l="[object Set]",d="[object WeakMap]",h="[object DataView]",v=s(n),y=s(o),b=s(c),g=s(a),w=s(i),x=u;(n&&x(new n(new ArrayBuffer(1)))!=h||o&&x(new o)!=p||c&&x(c.resolve())!=f||a&&x(new a)!=l||i&&x(new i)!=d)&&(x=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case v:return h;case y:return p;case b:return f;case g:return l;case w:return d}return e}),t.exports=x},392(t){t.exports=function(t,e){return null==t?void 0:t[e]}},2032(t,e,r){var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},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}},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)}},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}},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}},4218(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},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}},5527(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3702(t){t.exports=function(){this.__data__=[],this.size=0}},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)}},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]}},8655(t,e,r){var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},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}},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}}},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}},289(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},4509(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},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}},317(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},1042(t,e,r){var n=r(6110)(Object,"create");t.exports=n},3650(t,e,r){var n=r(4335)(Object.keys,Object);t.exports=n},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},9350(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4335(t){t.exports=function(t,e){return function(r){return t(e(r))}}},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},1380(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1459(t){t.exports=function(t){return this.__data__.has(t)}},4247(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},1420(t,e,r){var n=r(79);t.exports=function(){this.__data__=new n,this.size=0}},938(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},3605(t){t.exports=function(t){return this.__data__.get(t)}},9817(t){t.exports=function(t){return this.__data__.has(t)}},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}},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""}},5288(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2428(t,e,r){var n=r(7534),o=r(346),c=Object.prototype,a=c.hasOwnProperty,i=c.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!i.call(t,"callee")};t.exports=u},6449(t){var e=Array.isArray;t.exports=e},4894(t,e,r){var n=r(1882),o=r(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},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,u=(i?i.isBuffer:void 0)||o;t.exports=u},2404(t,e,r){var n=r(270);t.exports=function(t,e){return n(t,e)}},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}},294(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3805(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346(t){t.exports=function(t){return null!=t&&"object"==typeof t}},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},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)}},3345(t){t.exports=function(){return[]}},9935(t){t.exports=function(){return!1}},4633(t,e,r){var n=r(3738).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,c=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",p=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,c=Object.create(o.prototype),i=new S(n||[]);return a(c,"_invoke",{value:O(t,r,i)}),c}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h={};function v(){}function y(){}function b(){}var g={};f(g,u,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(A([])));x&&x!==r&&c.call(x,u)&&(g=x);var m=b.prototype=v.prototype=Object.create(g);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,a,i,u){var s=d(t[o],t,a);if("throw"!==s.type){var p=s.arg,f=p.value;return f&&"object"==n(f)&&c.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,u)}),(function(t){r("throw",t,i,u)})):e.resolve(f).then((function(t){p.value=t,i(p)}),(function(t){return r("throw",t,i,u)}))}u(s.arg)}var o;a(this,"_invoke",{value: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 O(t,e,r){var n="suspendedStart";return function(o,c){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw c;return L()}for(r.method=o,r.arg=c;;){var a=r.delegate;if(a){var i=P(a,r);if(i){if(i===h)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=d(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function P(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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(k,this),this.reset(!0)}function A(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(c.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:L}}function L(){return{value:void 0,done:!0}}return y.prototype=b,a(m,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=f(b,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,p,"GeneratorFunction")),t.prototype=Object.create(m),t},e.awrap=function(t){return{__await:t}},j(_.prototype),f(_.prototype,s,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,c){void 0===c&&(c=Promise);var a=new _(l(t,r,n,o),c);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(m),f(m,p,"Generator"),f(m,u,(function(){return this})),f(m,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&c.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},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 r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=c.call(o,"catchLoc"),u=c.call(o,"finallyLoc");if(i&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&c.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):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),h},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),h}},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,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},3738(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4756(t,e,r){var n=r(4633)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},3093(t){"use strict";t.exports=JSON.parse('{"name":"tocco-widget-utils","version":"3.16.5","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":"*"}}')}},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";function t(t,e,r,n,o,c,a){try{var i=t[c](a),u=i.value}catch(t){return void r(t)}i.done?e(u):Promise.resolve(u).then(n,o)}function e(e){return function(){var r=this,n=arguments;return new Promise((function(o,c){var a=e.apply(r,n);function i(e){t(a,o,c,i,u,"next",e)}function u(e){t(a,o,c,i,u,"throw",e)}i(void 0)}))}}var n=r(4756),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/")},u=function(t,e){var r=t!==e?e:"index";return"".concat(i(t)).concat(r,".js")},s=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=s,f=u;var l=r(2404),d=r.n(l),h="toccoBootstrap",v="toccoMethods",y="tqlMeta",b="toccoBackendUrl",g="data-tocco-widget-key",w="data-tocco-visibility-status",x="widget-utils",m="widget-placeholder";function j(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _(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 O=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?_(Object(r),!0).forEach((function(e){j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(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}}))};function k(t){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(t)}function E(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 S(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(Object(r),!0).forEach((function(e){j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var A=function(t){var e=function(t){return t.startsWith("http")?new URL(t):window.location}(t.currentScript.getAttribute("src"));return e.protocol+"//"+e.host},L=function(){var t=window.toccoTheme;if(t&&"object"===k(t))return t},T=function(t){return t&&Object.keys(t).length>0&&"function"==typeof t[Object.keys(t)[0]]},z=function(t){var e=window.toccoEventHandlers;if(T(e))return e;if(e){var r=e[t];if(T(r))return r}return{}},D=function(t,e){window[v]=S(S({},window[v]),{},j({},t,e))},U=function(){return r(3093).version},C=function(t){var r=t.backendUrl,n=t.assetUrl,i=U(),u={version:i,backendUrl:r,assetUrl:n},s=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,O("".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)}}()}(u),p=window[y];if(p)return c("tocco-widget-utils - tql function is already initialized"),void(!d()(p,u)&&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:",u));window.tql=s,window[y]=u,c("tocco-widget-utils - v".concat(i," - tql"))},I="error",M=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,R(I,e,i);case 1:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),N=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,R(I,e,r);case 1:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),R=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,O("".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)}}(),F=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){M(t,"Could not apply global styles.",e)}};const V=function(t){var e=t.backendUrl,r="[".concat(w,"] {display: none;}");F(e,"tocco-initial-visibility-status-styles",r)};function q(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 B(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?q(Object(r),!0).forEach((function(e){j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var G=function(){var t=e(o().mark((function t(e,r,n,c,a){var i,u;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,u=t.catch(0),M(e,"Could not fetch package 'tocco-".concat(x,"'."),u),t.abrupt("return");case 3:try{i="".concat(r,"/js/tocco-").concat(x,"/dist/"),window.reactRegistry.render(m,n,c,a,{},i)}catch(t){M(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)}}(),W=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=L(),t.next=1,G(e,r,n,c,B(B(B({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 $(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 H(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$(Object(r),!0).forEach((function(e){j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var J=function(t){return t.getAttribute(g)},K=function(){var t=U().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")},Y=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)&&N(t,"".concat(c.message,". Visit ").concat(K()," for further information.")),403===o&&"INACTIVE"===(null==c?void 0:c.errorCode)&&N(t,"".concat(c.message,". Visit ").concat(K()," for further information.")),void(404===o&&N(t,"Widget config '".concat(r,"' not found. Visit ").concat(K()," for further information."))))},Q=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}");F(t,"".concat("tocco-visibility-status-styles","-").concat(e),o)}(t,e,a),"function"==typeof r&&r.apply(void 0,o)}},X=function(){var t=e(o().mark((function t(e,r,n){var c,a,i,u,s,l,d,h,v,y,b,g,w,x,m;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=J(n),t.next=1,O("".concat(e,"/nice2/rest/widget/configs/").concat(c)).then(P).then((function(t){return Y(e,t,c)})).then((function(t){return null==t?void 0:t.body})).catch((function(t){M(e,"Could not fetch widget config '".concat(c,"'. Visit ").concat(K()," for further information."),t)}));case 1:if(!(a=t.sent)){t.next=10;break}return i=a.appName,u=a.packageName,s=a.locale,l=a.config,t.prev=2,t.next=3,p("".concat(r).concat(f(u,i)));case 3:t.next=6;break;case 4:return t.prev=4,x=t.catch(2),M(e,"Could not fetch package 'tocco-".concat(u,"'. Visit ").concat(K()," for further information."),x),t.next=5,W(e,r,n,c,s);case 5:return t.abrupt("return");case 6:d=z(c),h=H(H({},d),{},{onVisibilityStatusChange:Q(e,c,d.onVisibilityStatusChange)}),v=L(),y=H(H(H({backendUrl:e},v?{customTheme:v}:{}),{},{locale:s},l),{},{appContext:{embedType:"widget",widgetConfigKey:c}},h),b="".concat(r,"/js/tocco-").concat(u,"/dist/"),t.prev=7,g=window.reactRegistry.render(i,n,c,y,h,b),D(c,g),t.next=9;break;case 8:return t.prev=8,m=t.catch(7),M(e,"Could not render app '".concat(i,"'. Visit ").concat(K()," for further information."),m),t.next=9,W(e,r,n,c,s);case 9:t.next=11;break;case 10:return w=document.documentElement.lang,t.next=11,W(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)}}(),Z=function(t){var e=U(),r=H({version:e},t),n=window[h];return n?(c("tocco-widget-utils - bootstrap script is already initialized"),!d()(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[h]=r,c("tocco-widget-utils - v".concat(e," - bootstrap")),!0)},tt=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(Z(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 X(r,n,t)})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();const et=tt;var rt,nt;rt=A(document),nt={backendUrl:window[b]?window[b]:rt,assetUrl:rt},V(nt),C(nt),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(nt.assetUrl,"/js/umd-react/dist/react.production.min.js"));case 1:return t.next=2,p("".concat(nt.assetUrl,"/js/umd-react/dist/react-dom.production.min.js"));case 2:return t.next=3,p("".concat(nt.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,et(nt);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={5580(t,e,r){var n=r(6110)(r(9325),"DataView");t.exports=n},1549(t,e,r){var n=r(2032),o=r(3862),c=r(6721),a=r(2749),i=r(5749);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=c,u.prototype.has=a,u.prototype.set=i,t.exports=u},79(t,e,r){var n=r(3702),o=r(80),c=r(4739),a=r(8655),i=r(1175);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=c,u.prototype.has=a,u.prototype.set=i,t.exports=u},8223(t,e,r){var n=r(6110)(r(9325),"Map");t.exports=n},3661(t,e,r){var n=r(3040),o=r(7670),c=r(289),a=r(4509),i=r(2949);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=c,u.prototype.has=a,u.prototype.set=i,t.exports=u},2804(t,e,r){var n=r(6110)(r(9325),"Promise");t.exports=n},6545(t,e,r){var n=r(6110)(r(9325),"Set");t.exports=n},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},7217(t,e,r){var n=r(79),o=r(1420),c=r(938),a=r(3605),i=r(9817),u=r(945);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=c,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,t.exports=s},1873(t,e,r){var n=r(9325).Symbol;t.exports=n},7828(t,e,r){var n=r(9325).Uint8Array;t.exports=n},8303(t,e,r){var n=r(6110)(r(9325),"WeakMap");t.exports=n},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}},695(t,e,r){var n=r(8096),o=r(2428),c=r(6449),a=r(3656),i=r(361),u=r(7167),s=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&&u(t),d=r||p||f||l,h=d?n(t.length,String):[],v=h.length;for(var y in t)!e&&!s.call(t,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||i(y,v))||h.push(y);return h}},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}},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}},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}},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))}},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)}},7534(t,e,r){var n=r(2552),o=r(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},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))}},7068(t,e,r){var n=r(7217),o=r(5911),c=r(1986),a=r(689),i=r(5861),u=r(6449),s=r(3656),p=r(7167),f="[object Arguments]",l="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,y,b){var g=u(t),w=u(e),x=g?l:i(t),m=w?l:i(e),j=(x=x==f?d:x)==d,_=(m=m==f?d:m)==d,O=x==m;if(O&&s(t)){if(!s(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 P=j&&h.call(t,"__wrapped__"),k=_&&h.call(e,"__wrapped__");if(P||k){var E=P?t.value():t,S=k?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))}},5083(t,e,r){var n=r(1882),o=r(7296),c=r(3805),a=r(7473),i=/^\[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!(!c(t)||o(t))&&(n(t)?l:i).test(a(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)]}},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}},8096(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7301(t){t.exports=function(t){return function(e){return t(e)}}},9219(t){t.exports=function(t,e){return t.has(e)}},5481(t,e,r){var n=r(9325)["__core-js_shared__"];t.exports=n},5911(t,e,r){var n=r(8859),o=r(4248),c=r(9219);t.exports=function(t,e,r,a,i,u){var s=1&r,p=t.length,f=e.length;if(p!=f&&!(s&&f>p))return!1;var l=u.get(t),d=u.get(e);if(l&&d)return l==e&&d==t;var h=-1,v=!0,y=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++h<p;){var b=t[h],g=e[h];if(a)var w=s?a(g,b,h,e,t,u):a(b,g,h,t,e,u);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,u)))return y.push(e)}))){v=!1;break}}else if(b!==g&&!i(b,g,r,a,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},1986(t,e,r){var n=r(1873),o=r(7828),c=r(5288),a=r(5911),i=r(317),u=r(4247),s=n?n.prototype:void 0,p=s?s.valueOf:void 0;t.exports=function(t,e,r,n,s,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 d=i;case"[object Set]":var h=1&n;if(d||(d=u),t.size!=e.size&&!h)return!1;var v=l.get(t);if(v)return v==e;n|=2,l.set(t,e);var y=a(d(t),d(e),n,s,f,l);return l.delete(t),y;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1}},689(t,e,r){var n=r(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,c,a,i){var u=1&r,s=n(t),p=s.length;if(p!=n(e).length&&!u)return!1;for(var f=p;f--;){var l=s[f];if(!(u?l in e:o.call(e,l)))return!1}var d=i.get(t),h=i.get(e);if(d&&h)return d==e&&h==t;var v=!0;i.set(t,e),i.set(e,t);for(var y=u;++f<p;){var b=t[l=s[f]],g=e[l];if(c)var w=u?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}},4840(t,e,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},2(t,e,r){var n=r(2199),o=r(4664),c=r(5950);t.exports=function(t){return n(t,c,o)}},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}},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}},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}},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},5861(t,e,r){var n=r(5580),o=r(8223),c=r(2804),a=r(6545),i=r(8303),u=r(2552),s=r(7473),p="[object Map]",f="[object Promise]",l="[object Set]",d="[object WeakMap]",h="[object DataView]",v=s(n),y=s(o),b=s(c),g=s(a),w=s(i),x=u;(n&&x(new n(new ArrayBuffer(1)))!=h||o&&x(new o)!=p||c&&x(c.resolve())!=f||a&&x(new a)!=l||i&&x(new i)!=d)&&(x=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case v:return h;case y:return p;case b:return f;case g:return l;case w:return d}return e}),t.exports=x},392(t){t.exports=function(t,e){return null==t?void 0:t[e]}},2032(t,e,r){var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},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}},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)}},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}},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}},4218(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},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}},5527(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3702(t){t.exports=function(){this.__data__=[],this.size=0}},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)}},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]}},8655(t,e,r){var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},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}},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}}},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}},289(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},4509(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},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}},317(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},1042(t,e,r){var n=r(6110)(Object,"create");t.exports=n},3650(t,e,r){var n=r(4335)(Object.keys,Object);t.exports=n},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},9350(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4335(t){t.exports=function(t,e){return function(r){return t(e(r))}}},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},1380(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1459(t){t.exports=function(t){return this.__data__.has(t)}},4247(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},1420(t,e,r){var n=r(79);t.exports=function(){this.__data__=new n,this.size=0}},938(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},3605(t){t.exports=function(t){return this.__data__.get(t)}},9817(t){t.exports=function(t){return this.__data__.has(t)}},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}},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""}},5288(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2428(t,e,r){var n=r(7534),o=r(346),c=Object.prototype,a=c.hasOwnProperty,i=c.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!i.call(t,"callee")};t.exports=u},6449(t){var e=Array.isArray;t.exports=e},4894(t,e,r){var n=r(1882),o=r(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},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,u=(i?i.isBuffer:void 0)||o;t.exports=u},2404(t,e,r){var n=r(270);t.exports=function(t,e){return n(t,e)}},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}},294(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3805(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346(t){t.exports=function(t){return null!=t&&"object"==typeof t}},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},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)}},3345(t){t.exports=function(){return[]}},9935(t){t.exports=function(){return!1}},4633(t,e,r){var n=r(3738).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,c=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",p=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,c=Object.create(o.prototype),i=new S(n||[]);return a(c,"_invoke",{value:O(t,r,i)}),c}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h={};function v(){}function y(){}function b(){}var g={};f(g,u,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(A([])));x&&x!==r&&c.call(x,u)&&(g=x);var m=b.prototype=v.prototype=Object.create(g);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,a,i,u){var s=d(t[o],t,a);if("throw"!==s.type){var p=s.arg,f=p.value;return f&&"object"==n(f)&&c.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,u)}),(function(t){r("throw",t,i,u)})):e.resolve(f).then((function(t){p.value=t,i(p)}),(function(t){return r("throw",t,i,u)}))}u(s.arg)}var o;a(this,"_invoke",{value: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 O(t,e,r){var n="suspendedStart";return function(o,c){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw c;return L()}for(r.method=o,r.arg=c;;){var a=r.delegate;if(a){var i=P(a,r);if(i){if(i===h)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=d(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function P(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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(k,this),this.reset(!0)}function A(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(c.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:L}}function L(){return{value:void 0,done:!0}}return y.prototype=b,a(m,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=f(b,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,p,"GeneratorFunction")),t.prototype=Object.create(m),t},e.awrap=function(t){return{__await:t}},j(_.prototype),f(_.prototype,s,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,c){void 0===c&&(c=Promise);var a=new _(l(t,r,n,o),c);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(m),f(m,p,"Generator"),f(m,u,(function(){return this})),f(m,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&c.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},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 r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=c.call(o,"catchLoc"),u=c.call(o,"finallyLoc");if(i&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&c.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):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),h},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),h}},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,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},3738(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4756(t,e,r){var n=r(4633)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},3093(t){"use strict";t.exports=JSON.parse('{"name":"tocco-widget-utils","version":"3.16.6","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":"*"}}')}},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";function t(t,e,r,n,o,c,a){try{var i=t[c](a),u=i.value}catch(t){return void r(t)}i.done?e(u):Promise.resolve(u).then(n,o)}function e(e){return function(){var r=this,n=arguments;return new Promise((function(o,c){var a=e.apply(r,n);function i(e){t(a,o,c,i,u,"next",e)}function u(e){t(a,o,c,i,u,"throw",e)}i(void 0)}))}}var n=r(4756),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/")},u=function(t,e){var r=t!==e?e:"index";return"".concat(i(t)).concat(r,".js")},s=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=s,f=u;var l=r(2404),d=r.n(l),h="toccoBootstrap",v="toccoMethods",y="tqlMeta",b="toccoBackendUrl",g="data-tocco-widget-key",w="data-tocco-visibility-status",x="widget-utils",m="widget-placeholder";function j(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _(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 O=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?_(Object(r),!0).forEach((function(e){j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(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}}))};function k(t){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(t)}function E(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 S(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(Object(r),!0).forEach((function(e){j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var A=function(t){var e=function(t){return t.startsWith("http")?new URL(t):window.location}(t.currentScript.getAttribute("src"));return e.protocol+"//"+e.host},L=function(){var t=window.toccoTheme;if(t&&"object"===k(t))return t},T=function(t){return t&&Object.keys(t).length>0&&"function"==typeof t[Object.keys(t)[0]]},z=function(t){var e=window.toccoEventHandlers;if(T(e))return e;if(e){var r=e[t];if(T(r))return r}return{}},D=function(t,e){window[v]=S(S({},window[v]),{},j({},t,e))},U=function(){return r(3093).version},C=function(t){var r=t.backendUrl,n=t.assetUrl,i=U(),u={version:i,backendUrl:r,assetUrl:n},s=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,O("".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)}}()}(u),p=window[y];if(p)return c("tocco-widget-utils - tql function is already initialized"),void(!d()(p,u)&&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:",u));window.tql=s,window[y]=u,c("tocco-widget-utils - v".concat(i," - tql"))},I="error",M=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,R(I,e,i);case 1:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),N=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,R(I,e,r);case 1:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),R=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,O("".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)}}(),F=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){M(t,"Could not apply global styles.",e)}};const V=function(t){var e=t.backendUrl,r="[".concat(w,"] {display: none;}");F(e,"tocco-initial-visibility-status-styles",r)};function q(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 B(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?q(Object(r),!0).forEach((function(e){j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var G=function(){var t=e(o().mark((function t(e,r,n,c,a){var i,u;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,u=t.catch(0),M(e,"Could not fetch package 'tocco-".concat(x,"'."),u),t.abrupt("return");case 3:try{i="".concat(r,"/js/tocco-").concat(x,"/dist/"),window.reactRegistry.render(m,n,c,a,{},i)}catch(t){M(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)}}(),W=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=L(),t.next=1,G(e,r,n,c,B(B(B({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 $(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 H(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$(Object(r),!0).forEach((function(e){j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var J=function(t){return t.getAttribute(g)},K=function(){var t=U().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")},Y=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)&&N(t,"".concat(c.message,". Visit ").concat(K()," for further information.")),403===o&&"INACTIVE"===(null==c?void 0:c.errorCode)&&N(t,"".concat(c.message,". Visit ").concat(K()," for further information.")),void(404===o&&N(t,"Widget config '".concat(r,"' not found. Visit ").concat(K()," for further information."))))},Q=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}");F(t,"".concat("tocco-visibility-status-styles","-").concat(e),o)}(t,e,a),"function"==typeof r&&r.apply(void 0,o)}},X=function(){var t=e(o().mark((function t(e,r,n){var c,a,i,u,s,l,d,h,v,y,b,g,w,x,m;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=J(n),t.next=1,O("".concat(e,"/nice2/rest/widget/configs/").concat(c)).then(P).then((function(t){return Y(e,t,c)})).then((function(t){return null==t?void 0:t.body})).catch((function(t){M(e,"Could not fetch widget config '".concat(c,"'. Visit ").concat(K()," for further information."),t)}));case 1:if(!(a=t.sent)){t.next=10;break}return i=a.appName,u=a.packageName,s=a.locale,l=a.config,t.prev=2,t.next=3,p("".concat(r).concat(f(u,i)));case 3:t.next=6;break;case 4:return t.prev=4,x=t.catch(2),M(e,"Could not fetch package 'tocco-".concat(u,"'. Visit ").concat(K()," for further information."),x),t.next=5,W(e,r,n,c,s);case 5:return t.abrupt("return");case 6:d=z(c),h=H(H({},d),{},{onVisibilityStatusChange:Q(e,c,d.onVisibilityStatusChange)}),v=L(),y=H(H(H({backendUrl:e},v?{customTheme:v}:{}),{},{locale:s},l),{},{appContext:{embedType:"widget",widgetConfigKey:c}},h),b="".concat(r,"/js/tocco-").concat(u,"/dist/"),t.prev=7,g=window.reactRegistry.render(i,n,c,y,h,b),D(c,g),t.next=9;break;case 8:return t.prev=8,m=t.catch(7),M(e,"Could not render app '".concat(i,"'. Visit ").concat(K()," for further information."),m),t.next=9,W(e,r,n,c,s);case 9:t.next=11;break;case 10:return w=document.documentElement.lang,t.next=11,W(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)}}(),Z=function(t){var e=U(),r=H({version:e},t),n=window[h];return n?(c("tocco-widget-utils - bootstrap script is already initialized"),!d()(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[h]=r,c("tocco-widget-utils - v".concat(e," - bootstrap")),!0)},tt=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(Z(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 X(r,n,t)})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();const et=tt;var rt,nt;rt=A(document),nt={backendUrl:window[b]?window[b]:rt,assetUrl:rt},V(nt),C(nt),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(nt.assetUrl,"/js/umd-react/dist/react.production.min.js"));case 1:return t.next=2,p("".concat(nt.assetUrl,"/js/umd-react/dist/react-dom.production.min.js"));case 2:return t.next=3,p("".concat(nt.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,et(nt);case 6:case"end":return t.stop()}}),t)}))))})(),{}})()));
package/dist/tql.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-tql"]=e():t["tocco-widget-utils-tql"]=e()}(this,(()=>(()=>{var t={5580(t,e,r){var n=r(6110)(r(9325),"DataView");t.exports=n},1549(t,e,r){var n=r(2032),o=r(3862),i=r(6721),a=r(2749),c=r(5749);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},79(t,e,r){var n=r(3702),o=r(80),i=r(4739),a=r(8655),c=r(1175);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},8223(t,e,r){var n=r(6110)(r(9325),"Map");t.exports=n},3661(t,e,r){var n=r(3040),o=r(7670),i=r(289),a=r(4509),c=r(2949);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},2804(t,e,r){var n=r(6110)(r(9325),"Promise");t.exports=n},6545(t,e,r){var n=r(6110)(r(9325),"Set");t.exports=n},8859(t,e,r){var n=r(3661),o=r(1380),i=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=i,t.exports=a},7217(t,e,r){var n=r(79),o=r(1420),i=r(938),a=r(3605),c=r(9817),u=r(945);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,t.exports=s},1873(t,e,r){var n=r(9325).Symbol;t.exports=n},7828(t,e,r){var n=r(9325).Uint8Array;t.exports=n},8303(t,e,r){var n=r(6110)(r(9325),"WeakMap");t.exports=n},9770(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},695(t,e,r){var n=r(8096),o=r(2428),i=r(6449),a=r(3656),c=r(361),u=r(7167),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),p=!r&&o(t),f=!r&&!p&&a(t),l=!r&&!p&&!f&&u(t),h=r||p||f||l,v=h?n(t.length,String):[],d=v.length;for(var y in t)!e&&!s.call(t,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,d))||v.push(y);return v}},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}},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}},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}},2199(t,e,r){var n=r(4528),o=r(6449);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},2552(t,e,r){var n=r(1873),o=r(659),i=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):i(t)}},7534(t,e,r){var n=r(2552),o=r(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},270(t,e,r){var n=r(7068),o=r(346);t.exports=function t(e,r,i,a,c){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,c))}},7068(t,e,r){var n=r(7217),o=r(5911),i=r(1986),a=r(689),c=r(5861),u=r(6449),s=r(3656),p=r(7167),f="[object Arguments]",l="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,d,y,b){var g=u(t),_=u(e),x=g?l:c(t),w=_?l:c(e),j=(x=x==f?h:x)==h,m=(w=w==f?h:w)==h,O=x==w;if(O&&s(t)){if(!s(e))return!1;g=!0,j=!1}if(O&&!j)return b||(b=new n),g||p(t)?o(t,e,r,d,y,b):i(t,e,x,r,d,y,b);if(!(1&r)){var P=j&&v.call(t,"__wrapped__"),L=m&&v.call(e,"__wrapped__");if(P||L){var E=P?t.value():t,S=L?e.value():e;return b||(b=new n),y(E,S,r,d,b)}}return!!O&&(b||(b=new n),a(t,e,r,d,y,b))}},5083(t,e,r){var n=r(1882),o=r(7296),i=r(3805),a=r(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))}},4901(t,e,r){var n=r(2552),o=r(294),i=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 i(t)&&o(t.length)&&!!a[n(t)]}},8984(t,e,r){var n=r(5527),o=r(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},8096(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7301(t){t.exports=function(t){return function(e){return t(e)}}},9219(t){t.exports=function(t,e){return t.has(e)}},5481(t,e,r){var n=r(9325)["__core-js_shared__"];t.exports=n},5911(t,e,r){var n=r(8859),o=r(4248),i=r(9219);t.exports=function(t,e,r,a,c,u){var s=1&r,p=t.length,f=e.length;if(p!=f&&!(s&&f>p))return!1;var l=u.get(t),h=u.get(e);if(l&&h)return l==e&&h==t;var v=-1,d=!0,y=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++v<p;){var b=t[v],g=e[v];if(a)var _=s?a(g,b,v,e,t,u):a(b,g,v,t,e,u);if(void 0!==_){if(_)continue;d=!1;break}if(y){if(!o(e,(function(t,e){if(!i(y,e)&&(b===t||c(b,t,r,a,u)))return y.push(e)}))){d=!1;break}}else if(b!==g&&!c(b,g,r,a,u)){d=!1;break}}return u.delete(t),u.delete(e),d}},1986(t,e,r){var n=r(1873),o=r(7828),i=r(5288),a=r(5911),c=r(317),u=r(4247),s=n?n.prototype:void 0,p=s?s.valueOf:void 0;t.exports=function(t,e,r,n,s,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 i(+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=c;case"[object Set]":var v=1&n;if(h||(h=u),t.size!=e.size&&!v)return!1;var d=l.get(t);if(d)return d==e;n|=2,l.set(t,e);var y=a(h(t),h(e),n,s,f,l);return l.delete(t),y;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1}},689(t,e,r){var n=r(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,c){var u=1&r,s=n(t),p=s.length;if(p!=n(e).length&&!u)return!1;for(var f=p;f--;){var l=s[f];if(!(u?l in e:o.call(e,l)))return!1}var h=c.get(t),v=c.get(e);if(h&&v)return h==e&&v==t;var d=!0;c.set(t,e),c.set(e,t);for(var y=u;++f<p;){var b=t[l=s[f]],g=e[l];if(i)var _=u?i(g,b,l,e,t,c):i(b,g,l,t,e,c);if(!(void 0===_?b===g||a(b,g,r,i,c):_)){d=!1;break}y||(y="constructor"==l)}if(d&&!y){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(d=!1)}return c.delete(t),c.delete(e),d}},4840(t,e,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},2(t,e,r){var n=r(2199),o=r(4664),i=r(5950);t.exports=function(t){return n(t,i,o)}},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}},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}},659(t,e,r){var n=r(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}},4664(t,e,r){var n=r(9770),o=r(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},5861(t,e,r){var n=r(5580),o=r(8223),i=r(2804),a=r(6545),c=r(8303),u=r(2552),s=r(7473),p="[object Map]",f="[object Promise]",l="[object Set]",h="[object WeakMap]",v="[object DataView]",d=s(n),y=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 e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case d:return v;case y:return p;case b:return f;case g:return l;case _:return h}return e}),t.exports=x},392(t){t.exports=function(t,e){return null==t?void 0:t[e]}},2032(t,e,r){var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},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}},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)}},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}},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}},4218(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7296(t,e,r){var n,o=r(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5527(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3702(t){t.exports=function(){this.__data__=[],this.size=0}},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)}},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]}},8655(t,e,r){var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},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}},3040(t,e,r){var n=r(1549),o=r(79),i=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},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}},289(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},4509(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},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}},317(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},1042(t,e,r){var n=r(6110)(Object,"create");t.exports=n},3650(t,e,r){var n=r(4335)(Object.keys,Object);t.exports=n},6009(t,e,r){t=r.nmd(t);var n=r(4840),o=e&&!e.nodeType&&e,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},9350(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4335(t){t.exports=function(t,e){return function(r){return t(e(r))}}},9325(t,e,r){var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},1380(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1459(t){t.exports=function(t){return this.__data__.has(t)}},4247(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},1420(t,e,r){var n=r(79);t.exports=function(){this.__data__=new n,this.size=0}},938(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},3605(t){t.exports=function(t){return this.__data__.get(t)}},9817(t){t.exports=function(t){return this.__data__.has(t)}},945(t,e,r){var n=r(79),o=r(8223),i=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 i(a)}return r.set(t,e),this.size=r.size,this}},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""}},5288(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2428(t,e,r){var n=r(7534),o=r(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},6449(t){var e=Array.isArray;t.exports=e},4894(t,e,r){var n=r(1882),o=r(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},3656(t,e,r){t=r.nmd(t);var n=r(9325),o=r(9935),i=e&&!e.nodeType&&e,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},2404(t,e,r){var n=r(270);t.exports=function(t,e){return n(t,e)}},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}},294(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3805(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7167(t,e,r){var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},5950(t,e,r){var n=r(695),o=r(8984),i=r(4894);t.exports=function(t){return i(t)?n(t):o(t)}},3345(t){t.exports=function(){return[]}},9935(t){t.exports=function(){return!1}},4633(t,e,r){var n=r(3738).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",p=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),c=new S(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var v={};function d(){}function y(){}function b(){}var g={};f(g,u,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(A([])));x&&x!==r&&i.call(x,u)&&(g=x);var w=b.prototype=d.prototype=Object.create(g);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){function r(o,a,c,u){var s=h(t[o],t,a);if("throw"!==s.type){var p=s.arg,f=p.value;return f&&"object"==n(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){p.value=t,c(p)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=P(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function P(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,v;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function L(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(L,this),this.reset(!0)}function A(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return y.prototype=b,a(w,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=f(b,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,p,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},j(m.prototype),f(m.prototype,s,(function(){return this})),e.AsyncIterator=m,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new m(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(w),f(w,p,"Generator"),f(w,u,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},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 r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.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,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),v}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},3738(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4756(t,e,r){var n=r(4633)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},3093(t){"use strict";t.exports=JSON.parse('{"name":"tocco-widget-utils","version":"3.16.5","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":"*"}}')}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,r),i.loaded=!0,i.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="tqlMeta",e="toccoBackendUrl";var n=function(t){var e=function(t){return t.startsWith("http")?new URL(t):window.location}(t.currentScript.getAttribute("src"));return e.protocol+"//"+e.host};function o(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var i=r(4756),a=r.n(i),c=r(2404),u=r.n(c);const s=function(){var t;window.console&&(t=console).log.apply(t,arguments)},p=function(){window.console&&(console.error||console.log).apply(void 0,arguments)};function f(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 l,h,v=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?f(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(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)},d=function(t){var e=t.ok,r=t.status;return t.json().then((function(t){return{ok:e,status:r,body:t}}))},y=function(t){var e=t.backendUrl;return function(){var t,r=(t=a().mark((function t(r,n){var o,i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={method:"POST",body:JSON.stringify(n)},t.next=1,v("".concat(e,"/nice2/rest/entities/2.0/").concat(r,"/search?_omitLinks=true"),o).then(d).then((function(t){return null==t?void 0:t.body})).catch((function(t){p("Could not execute tql.",t)}));case 1:return i=t.sent,t.abrupt("return",i);case 2:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function c(t){o(a,n,i,c,u,"next",t)}function u(t){o(a,n,i,c,u,"throw",t)}c(void 0)}))});return function(t,e){return r.apply(this,arguments)}}()},b=function(e){var n=e.backendUrl,o=e.assetUrl,i=r(3093).version,a={version:i,backendUrl:n,assetUrl:o},c=y(a),f=window[t];if(f)return s("tocco-widget-utils - tql function is already initialized"),void(!u()(f,a)&&p("More than one tql function with different settings has been found. Add only one tql function per page.","\nInitialized tql function:",f,"\nIgnored tql function:",a));window.tql=c,window[t]=a,s("tocco-widget-utils - v".concat(i," - tql"))};l=n(document),h={backendUrl:window[e]?window[e]:l,assetUrl:l},b(h)})(),{}})()));
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-tql"]=e():t["tocco-widget-utils-tql"]=e()}(this,(()=>(()=>{var t={5580(t,e,r){var n=r(6110)(r(9325),"DataView");t.exports=n},1549(t,e,r){var n=r(2032),o=r(3862),i=r(6721),a=r(2749),c=r(5749);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},79(t,e,r){var n=r(3702),o=r(80),i=r(4739),a=r(8655),c=r(1175);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},8223(t,e,r){var n=r(6110)(r(9325),"Map");t.exports=n},3661(t,e,r){var n=r(3040),o=r(7670),i=r(289),a=r(4509),c=r(2949);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},2804(t,e,r){var n=r(6110)(r(9325),"Promise");t.exports=n},6545(t,e,r){var n=r(6110)(r(9325),"Set");t.exports=n},8859(t,e,r){var n=r(3661),o=r(1380),i=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=i,t.exports=a},7217(t,e,r){var n=r(79),o=r(1420),i=r(938),a=r(3605),c=r(9817),u=r(945);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,t.exports=s},1873(t,e,r){var n=r(9325).Symbol;t.exports=n},7828(t,e,r){var n=r(9325).Uint8Array;t.exports=n},8303(t,e,r){var n=r(6110)(r(9325),"WeakMap");t.exports=n},9770(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},695(t,e,r){var n=r(8096),o=r(2428),i=r(6449),a=r(3656),c=r(361),u=r(7167),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),p=!r&&o(t),f=!r&&!p&&a(t),l=!r&&!p&&!f&&u(t),h=r||p||f||l,v=h?n(t.length,String):[],d=v.length;for(var y in t)!e&&!s.call(t,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,d))||v.push(y);return v}},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}},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}},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}},2199(t,e,r){var n=r(4528),o=r(6449);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},2552(t,e,r){var n=r(1873),o=r(659),i=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):i(t)}},7534(t,e,r){var n=r(2552),o=r(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},270(t,e,r){var n=r(7068),o=r(346);t.exports=function t(e,r,i,a,c){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,c))}},7068(t,e,r){var n=r(7217),o=r(5911),i=r(1986),a=r(689),c=r(5861),u=r(6449),s=r(3656),p=r(7167),f="[object Arguments]",l="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,d,y,b){var g=u(t),_=u(e),x=g?l:c(t),w=_?l:c(e),j=(x=x==f?h:x)==h,m=(w=w==f?h:w)==h,O=x==w;if(O&&s(t)){if(!s(e))return!1;g=!0,j=!1}if(O&&!j)return b||(b=new n),g||p(t)?o(t,e,r,d,y,b):i(t,e,x,r,d,y,b);if(!(1&r)){var P=j&&v.call(t,"__wrapped__"),L=m&&v.call(e,"__wrapped__");if(P||L){var E=P?t.value():t,S=L?e.value():e;return b||(b=new n),y(E,S,r,d,b)}}return!!O&&(b||(b=new n),a(t,e,r,d,y,b))}},5083(t,e,r){var n=r(1882),o=r(7296),i=r(3805),a=r(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))}},4901(t,e,r){var n=r(2552),o=r(294),i=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 i(t)&&o(t.length)&&!!a[n(t)]}},8984(t,e,r){var n=r(5527),o=r(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},8096(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7301(t){t.exports=function(t){return function(e){return t(e)}}},9219(t){t.exports=function(t,e){return t.has(e)}},5481(t,e,r){var n=r(9325)["__core-js_shared__"];t.exports=n},5911(t,e,r){var n=r(8859),o=r(4248),i=r(9219);t.exports=function(t,e,r,a,c,u){var s=1&r,p=t.length,f=e.length;if(p!=f&&!(s&&f>p))return!1;var l=u.get(t),h=u.get(e);if(l&&h)return l==e&&h==t;var v=-1,d=!0,y=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++v<p;){var b=t[v],g=e[v];if(a)var _=s?a(g,b,v,e,t,u):a(b,g,v,t,e,u);if(void 0!==_){if(_)continue;d=!1;break}if(y){if(!o(e,(function(t,e){if(!i(y,e)&&(b===t||c(b,t,r,a,u)))return y.push(e)}))){d=!1;break}}else if(b!==g&&!c(b,g,r,a,u)){d=!1;break}}return u.delete(t),u.delete(e),d}},1986(t,e,r){var n=r(1873),o=r(7828),i=r(5288),a=r(5911),c=r(317),u=r(4247),s=n?n.prototype:void 0,p=s?s.valueOf:void 0;t.exports=function(t,e,r,n,s,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 i(+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=c;case"[object Set]":var v=1&n;if(h||(h=u),t.size!=e.size&&!v)return!1;var d=l.get(t);if(d)return d==e;n|=2,l.set(t,e);var y=a(h(t),h(e),n,s,f,l);return l.delete(t),y;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1}},689(t,e,r){var n=r(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,c){var u=1&r,s=n(t),p=s.length;if(p!=n(e).length&&!u)return!1;for(var f=p;f--;){var l=s[f];if(!(u?l in e:o.call(e,l)))return!1}var h=c.get(t),v=c.get(e);if(h&&v)return h==e&&v==t;var d=!0;c.set(t,e),c.set(e,t);for(var y=u;++f<p;){var b=t[l=s[f]],g=e[l];if(i)var _=u?i(g,b,l,e,t,c):i(b,g,l,t,e,c);if(!(void 0===_?b===g||a(b,g,r,i,c):_)){d=!1;break}y||(y="constructor"==l)}if(d&&!y){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(d=!1)}return c.delete(t),c.delete(e),d}},4840(t,e,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},2(t,e,r){var n=r(2199),o=r(4664),i=r(5950);t.exports=function(t){return n(t,i,o)}},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}},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}},659(t,e,r){var n=r(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}},4664(t,e,r){var n=r(9770),o=r(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},5861(t,e,r){var n=r(5580),o=r(8223),i=r(2804),a=r(6545),c=r(8303),u=r(2552),s=r(7473),p="[object Map]",f="[object Promise]",l="[object Set]",h="[object WeakMap]",v="[object DataView]",d=s(n),y=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 e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case d:return v;case y:return p;case b:return f;case g:return l;case _:return h}return e}),t.exports=x},392(t){t.exports=function(t,e){return null==t?void 0:t[e]}},2032(t,e,r){var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},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}},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)}},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}},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}},4218(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7296(t,e,r){var n,o=r(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5527(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3702(t){t.exports=function(){this.__data__=[],this.size=0}},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)}},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]}},8655(t,e,r){var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},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}},3040(t,e,r){var n=r(1549),o=r(79),i=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},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}},289(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},4509(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},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}},317(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},1042(t,e,r){var n=r(6110)(Object,"create");t.exports=n},3650(t,e,r){var n=r(4335)(Object.keys,Object);t.exports=n},6009(t,e,r){t=r.nmd(t);var n=r(4840),o=e&&!e.nodeType&&e,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},9350(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4335(t){t.exports=function(t,e){return function(r){return t(e(r))}}},9325(t,e,r){var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},1380(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1459(t){t.exports=function(t){return this.__data__.has(t)}},4247(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},1420(t,e,r){var n=r(79);t.exports=function(){this.__data__=new n,this.size=0}},938(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},3605(t){t.exports=function(t){return this.__data__.get(t)}},9817(t){t.exports=function(t){return this.__data__.has(t)}},945(t,e,r){var n=r(79),o=r(8223),i=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 i(a)}return r.set(t,e),this.size=r.size,this}},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""}},5288(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2428(t,e,r){var n=r(7534),o=r(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},6449(t){var e=Array.isArray;t.exports=e},4894(t,e,r){var n=r(1882),o=r(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},3656(t,e,r){t=r.nmd(t);var n=r(9325),o=r(9935),i=e&&!e.nodeType&&e,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},2404(t,e,r){var n=r(270);t.exports=function(t,e){return n(t,e)}},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}},294(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3805(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7167(t,e,r){var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},5950(t,e,r){var n=r(695),o=r(8984),i=r(4894);t.exports=function(t){return i(t)?n(t):o(t)}},3345(t){t.exports=function(){return[]}},9935(t){t.exports=function(){return!1}},4633(t,e,r){var n=r(3738).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",p=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),c=new S(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var v={};function d(){}function y(){}function b(){}var g={};f(g,u,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(A([])));x&&x!==r&&i.call(x,u)&&(g=x);var w=b.prototype=d.prototype=Object.create(g);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){function r(o,a,c,u){var s=h(t[o],t,a);if("throw"!==s.type){var p=s.arg,f=p.value;return f&&"object"==n(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){p.value=t,c(p)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=P(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function P(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,v;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function L(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(L,this),this.reset(!0)}function A(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return y.prototype=b,a(w,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=f(b,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,p,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},j(m.prototype),f(m.prototype,s,(function(){return this})),e.AsyncIterator=m,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new m(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(w),f(w,p,"Generator"),f(w,u,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},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 r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.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,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),v}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},3738(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4756(t,e,r){var n=r(4633)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},3093(t){"use strict";t.exports=JSON.parse('{"name":"tocco-widget-utils","version":"3.16.6","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":"*"}}')}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,r),i.loaded=!0,i.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="tqlMeta",e="toccoBackendUrl";var n=function(t){var e=function(t){return t.startsWith("http")?new URL(t):window.location}(t.currentScript.getAttribute("src"));return e.protocol+"//"+e.host};function o(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var i=r(4756),a=r.n(i),c=r(2404),u=r.n(c);const s=function(){var t;window.console&&(t=console).log.apply(t,arguments)},p=function(){window.console&&(console.error||console.log).apply(void 0,arguments)};function f(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 l,h,v=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?f(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(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)},d=function(t){var e=t.ok,r=t.status;return t.json().then((function(t){return{ok:e,status:r,body:t}}))},y=function(t){var e=t.backendUrl;return function(){var t,r=(t=a().mark((function t(r,n){var o,i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={method:"POST",body:JSON.stringify(n)},t.next=1,v("".concat(e,"/nice2/rest/entities/2.0/").concat(r,"/search?_omitLinks=true"),o).then(d).then((function(t){return null==t?void 0:t.body})).catch((function(t){p("Could not execute tql.",t)}));case 1:return i=t.sent,t.abrupt("return",i);case 2:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function c(t){o(a,n,i,c,u,"next",t)}function u(t){o(a,n,i,c,u,"throw",t)}c(void 0)}))});return function(t,e){return r.apply(this,arguments)}}()},b=function(e){var n=e.backendUrl,o=e.assetUrl,i=r(3093).version,a={version:i,backendUrl:n,assetUrl:o},c=y(a),f=window[t];if(f)return s("tocco-widget-utils - tql function is already initialized"),void(!u()(f,a)&&p("More than one tql function with different settings has been found. Add only one tql function per page.","\nInitialized tql function:",f,"\nIgnored tql function:",a));window.tql=c,window[t]=a,s("tocco-widget-utils - v".concat(i," - tql"))};l=n(document),h={backendUrl:window[e]?window[e]:l,assetUrl:l},b(h)})(),{}})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tocco-widget-utils",
3
- "version": "3.16.5",
3
+ "version": "3.16.6",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0+",
6
6
  "scripts": {