scrivito_sdk 1.17.0.rc2 → 1.18.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/cms/scrivito/application_error.rb +13 -0
  4. data/app/cms/scrivito/backend/base_index.rb +49 -0
  5. data/app/cms/scrivito/backend/index.rb +0 -41
  6. data/app/cms/scrivito/backend/parent_path_index.rb +1 -1
  7. data/app/cms/scrivito/backend/path_index.rb +1 -1
  8. data/app/cms/scrivito/backend/permalink_index.rb +1 -1
  9. data/app/cms/scrivito/basic_obj.rb +18 -3
  10. data/app/cms/scrivito/cms_rest_api.rb +8 -3
  11. data/app/cms/scrivito/controller_actions.rb +1 -1
  12. data/app/cms/scrivito/generator_helper.rb +5 -3
  13. data/app/cms/scrivito/internal_error.rb +8 -0
  14. data/app/cms/scrivito/layout_tags.rb +1 -1
  15. data/app/cms/scrivito/model_library.rb +1 -1
  16. data/app/cms/scrivito/obj_class_not_found.rb +7 -0
  17. data/app/cms/scrivito/resource_not_found.rb +14 -0
  18. data/app/cms/scrivito/scrivito_error.rb +7 -0
  19. data/app/cms/scrivito/sdk_engine.rb +1 -1
  20. data/app/cms/scrivito/transformation_definition_error.rb +7 -0
  21. data/app/cms/scrivito/transformation_error.rb +13 -0
  22. data/app/cms/scrivito/transformation_source_error.rb +7 -0
  23. data/app/controllers/scrivito/binary_redirect_controller.rb +2 -2
  24. data/app/controllers/scrivito/ui_controller.rb +1 -1
  25. data/config/ca-bundle.crt +665 -820
  26. data/lib/assets/javascripts/scrivito.js +1 -1
  27. data/lib/assets/javascripts/scrivito_ui_redirect.js +1 -1
  28. data/lib/assets/javascripts/scrivito_with_js_sdk.js +1 -1
  29. data/lib/assets/stylesheets/scrivito_editing.css +3 -4
  30. data/lib/generators/scrivito/page/page_generator.rb +1 -1
  31. data/lib/generators/scrivito/page/templates/model.erb +1 -1
  32. data/lib/generators/scrivito/widget/templates/model.erb +1 -1
  33. data/lib/generators/scrivito/widget/widget_generator.rb +1 -1
  34. metadata +32 -10
  35. data/app/cms/scrivito/errors.rb +0 -55
@@ -1 +1 @@
1
- /*! Copyright (c) 2020 Infopark Group GmbH (https://scrivito.com) */!function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=454)}({155:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=e(84);function o(){var t=function(){if(window.parent!==window){var t;try{t=window.parent.connectAppDocument}catch(t){}return t?t(window.document):void 0}}();return t?t.installRailsApi():function(){window.scrivito||(window.scrivito={});var t=window.scrivito;t.on||(t.on=function(t,n){"content"===t&&Object(r.a)(document,(function(){return n(window.document)}))});t.in_editable_view||(t.in_editable_view=function(){return!1})}(),t}},454:function(t,n,e){"use strict";e.r(n);var r=e(155);Object(r.a)()},84:function(t,n,e){"use strict";function r(t,n){"interactive"===t.readyState||"complete"===t.readyState?n():t.addEventListener("DOMContentLoaded",n)}e.d(n,"a",(function(){return r}))}});
1
+ /*! Copyright (c) 2022 JustRelate Group GmbH (https://scrivito.com) */!function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=454)}({155:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=e(84);function o(){var t=function(){if(window.parent!==window){var t;try{t=window.parent.connectAppDocument}catch(t){}return t?t(window.document):void 0}}();return t?t.installRailsApi():function(){window.scrivito||(window.scrivito={});var t=window.scrivito;t.on||(t.on=function(t,n){"content"===t&&Object(r.a)(document,(function(){return n(window.document)}))});t.in_editable_view||(t.in_editable_view=function(){return!1})}(),t}},454:function(t,n,e){"use strict";e.r(n);var r=e(155);Object(r.a)()},84:function(t,n,e){"use strict";function r(t,n){"interactive"===t.readyState||"complete"===t.readyState?n():t.addEventListener("DOMContentLoaded",n)}e.d(n,"a",(function(){return r}))}});
@@ -1 +1 @@
1
- /*! Copyright (c) 2020 Infopark Group GmbH (https://scrivito.com) */!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=456)}({456:function(e,n,t){"use strict";!function(){if(window.parent===window){document.open(),document.close();var e=window.location;window.location.assign("/scrivito"+e.pathname+e.search+e.hash)}}()}});
1
+ /*! Copyright (c) 2022 JustRelate Group GmbH (https://scrivito.com) */!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=456)}({456:function(e,n,t){"use strict";!function(){if(window.parent===window){document.open(),document.close();var e=window.location;window.location.assign("/scrivito"+e.pathname+e.search+e.hash)}}()}});
@@ -1,4 +1,4 @@
1
- /*! Copyright (c) 2020 Infopark Group GmbH (https://scrivito.com) */!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=744)}({0:function(t,e,n){"use strict";n.d(e,"p",(function(){return p})),n.d(e,"d",(function(){return v})),n.d(e,"e",(function(){return m})),n.d(e,"a",(function(){return s.ArgumentError})),n.d(e,"g",(function(){return s.InternalError})),n.d(e,"h",(function(){return s.ResourceNotFoundError})),n.d(e,"i",(function(){return s.ScrivitoError})),n.d(e,"Q",(function(){return d})),n.d(e,"G",(function(){return f})),n.d(e,"I",(function(){return i})),n.d(e,"O",(function(){return u})),n.d(e,"M",(function(){return y})),n.d(e,"F",(function(){return b})),n.d(e,"x",(function(){return w})),n.d(e,"D",(function(){return _})),n.d(e,"E",(function(){return O})),n.d(e,"o",(function(){return N})),n.d(e,"q",(function(){return L})),n.d(e,"N",(function(){return I})),n.d(e,"R",(function(){return P})),n.d(e,"y",(function(){return A})),n.d(e,"f",(function(){return R})),n.d(e,"c",(function(){return D})),n.d(e,"z",(function(){return M})),n.d(e,"m",(function(){return B})),n.d(e,"L",(function(){return F})),n.d(e,"K",(function(){return q})),n.d(e,"P",(function(){return U})),n.d(e,"H",(function(){return $})),n.d(e,"t",(function(){return Q})),n.d(e,"u",(function(){return W})),n.d(e,"B",(function(){return K})),n.d(e,"w",(function(){return G})),n.d(e,"A",(function(){return Y})),n.d(e,"C",(function(){return V})),n.d(e,"S",(function(){return J})),n.d(e,"T",(function(){return tt})),n.d(e,"v",(function(){return et})),n.d(e,"J",(function(){return rt})),n.d(e,"j",(function(){return it})),n.d(e,"b",(function(){return at})),n.d(e,"s",(function(){return st})),n.d(e,"n",(function(){return lt})),n.d(e,"r",(function(){return ct})),n.d(e,"k",(function(){return dt})),n.d(e,"l",(function(){return vt}));var r=n(2);function i(t){try{return Object(r.isFunction)(t)?function(t){if(function(t){return!!t._scrivitoPrivateSchema}(t)){return"[class "+t._scrivitoPrivateSchema.name+"]"}if(function(t){var e=t.prototype;return e&&e.isReactComponent}(t)){return'[class React.Component "'+(t.displayName||t.name)+'"]'}return a(t.toString())}(t):Object(r.isObject)(t)?function(t){var e=t._scrivitoPrivateContent;if(e&&Object(r.isFunction)(e.toPrettyPrint))return e.toPrettyPrint();if(Object(r.isElement)(t))return"[object HTMLElement "+o(t.outerHTML)+"]";return o(t)}(t):o(t)}catch(t){return""}}function o(t){var e=JSON.stringify(t);return e?a(e):e}function a(t){return t.length>100?t.slice(0,100)+"...":t}var s=n(52),u=n(58);u.struct.strict=!0,u.interface.strict=!0,u.fail=function(t){throw new TypeError(t)};var l,c=[];function f(t){l?c.push(t):setTimeout(t,0)}function d(t){f((function(){throw t}))}function p(t,e,n){var r=n.docPermalink;return function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];try{n=h(i,e)}catch(t){d(t)}if(n){var a="Visit https://scrivito.com/"+r+" for more information.";throw new s.ArgumentError("Invalid arguments for '"+t+"': "+n+" "+a)}}}function h(t,e){var n=e.length,o=t.length;if(o>n)return"Expected "+n+" arguments, got "+o;var a=Object(r.flatten)(e.map((function(e,n){var r=e[0],o=e[1],a=t[n];return u.validate(a,o).errors.map((function(t){return function(t,e){var n=function(t,e){var n="argument '"+t+"'";if(0===e.path.length)return n;return"key '"+e.path.join("/")+"' in "+n}(t,e);if(void 0===e.actual)return"Missing required "+n+".";if(e.expected===u.Nil)return"Unexpected "+n+".";var r=u.getTypeName(e.expected),o="got "+i(e.actual)+", expected type "+r+".";return"Unexpected value for "+n+": "+o}(r,t)}))})));return a.length>0?a.join(" "):void 0}var v=function(){function t(){}return t.prototype.current=function(){return this.currentContext},t.prototype.runWith=function(t,e){var n=this.currentContext;try{return this.currentContext=t,e()}finally{this.currentContext=n}},t}(),m=function(){function t(){var t=this;this.promise=new it((function(e,n){t.resolve=function(n){t.settled=!0,e(n)},t.reject=function(e){t.settled=!0,n(e)}}))}return t.prototype.isPending=function(){return!this.settled},t}();function y(t){try{return{errorThrown:!1,result:t()}}catch(t){return{errorThrown:!0,error:t}}}var g=!1;function b(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];window&&window.console&&!g&&(t=window.console).error.apply(t,e)}function w(){var t="1.0.0.dev-1-gd0777df03454";return t}function _(t,e){void 0===e&&(e=window.document);var n=e.createElement("link");n.rel="stylesheet",n.href=t,k(e.head,n)}function O(t,e){void 0===e&&(e=window.document);var n=e.createElement("script");n.src=t,k(e.head,n)}function k(t,e){t.appendChild(e)}var x=/(_+)(\w)/g,C=/([A-Z])/g,E=/[A-Z]+|\d+/g,j=/^_?(_+[A-Z0-9]|[^_])+$/,S=/[_\s]+/g,T=/[A-Z][a-z]+/g;function A(t){return j.test(t)}function P(t){return t.replace(C,(function(t,e){return"_"+e.toLowerCase()}))}function N(t){return t.replace(x,(function(t,e,n,r){return r?n.toUpperCase()===n?t:""+e.substr(1)+n.toUpperCase():t}))}function L(t){var e=N(t);return e.charAt(0).toUpperCase()+e.slice(1)}function I(t){return t.replace(S," ").replace(T,(function(t){return" "+t.toLowerCase()})).replace(E,(function(t){return" "+t})).trim().replace(/./,(function(t){return t.toUpperCase()}))}n(136);var D=u.interface({size:u.Number,type:u.String},{name:"Blob",strict:!1}),R=D.extend({name:u.String},{name:"File",strict:!1});function M(t){return"_"===t[0]}function B(t,e){for(var n=t.iterator(),r=[];r.length!==e;){var i=n.next();if(i.done)return r;r.push(i.value)}return r}function q(){for(var t=Math.floor(Math.random()*Math.pow(16,8)).toString(16);t.length<8;)t="0"+t;return t}function F(){return q()+q()}var z=!1;function U(t,e,n){return z?t:r.throttle(t,e,n)}var H=/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/;function W(t){return"string"==typeof t&&t.match(/^-?\d+$/)||"number"==typeof t?X(t):null}function V(t){return function(t){return K(t)&&Math.floor(t)===t}(t)&&-9007199254740991<=t&&t<=9007199254740991}function K(t){return"number"==typeof t&&Object(r.isFinite)(t)}function Q(t){if("string"!=typeof t)return null;if(!Y(t))throw new s.InternalError('The value is not a valid ISO date time: "'+t+'"');return $(t)}function $(t){if(!t)return null;var e=t.match(H);if(!e)return null;var n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],u=parseInt(n,10),l=parseInt(r,10),c=parseInt(i,10),f=parseInt(o,10),d=parseInt(a,10),p=parseInt(s,10);return new Date(Date.UTC(u,l-1,c,f,d,p))}function G(t){return""+(""+t.getUTCFullYear()+Z(t.getUTCMonth()+1))+(""+Z(t.getUTCDate())+Z(t.getUTCHours()))+(""+Z(t.getUTCMinutes())+Z(t.getUTCSeconds()))}function Y(t){return"string"==typeof t&&!!t.match(/^\d{14}$/)}function Z(t){return t<10?"0"+t:t}function X(t){var e=parseInt(t.toString(),10);return 0===e?0:V(e)?e:null}function J(t){return tt(1e3*t)}function tt(t){return new it((function(e){setTimeout(e,t)}))}function et(t,e){return nt(t)&&nt(e)?t.equals(e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&Object(r.every)(Object(r.zip)(t,e),(function(t){return et(t[0],t[1])})):t&&e?t.valueOf()===e.valueOf():t===e}function nt(t){return!!t&&"function"==typeof t.equals}function rt(t,e){return t.then((function(t){return e(),t}),(function(t){throw e(),t}))}var it,ot=n(149);it="undefined"!=typeof Promise?Promise:ot.a;var at=function(){function t(t,e){var n=(void 0===e?{}:e).batchSize;this.mget=t,this.batchSize=n||100,this.itemsToBatch=[]}return t.prototype.retrieve=function(t){var e=this;0===this.itemsToBatch.length&&f((function(){return e.performRetrieval()}));var n=new m;return this.itemsToBatch.push({key:t,deferred:n}),n.promise},t.prototype.reset=function(){this.itemsToBatch=[]},t.prototype.performRetrieval=function(){var t=this,e=this.itemsToBatch.splice(0,this.batchSize);if(0!==e.length){var n=e.map((function(t){return t.key}));this.mget(n).then((function(n){e.forEach((function(e,r){var i=e.key,o=e.deferred;if(r<n.length){var a=n[r];o.resolve(a)}else t.retrieve(i).then(o.resolve,o.reject)}))}),(function(t){e.forEach((function(e){return e.deferred.reject(t)}))})),this.performRetrieval()}},t}();function st(t){var e=ut(t);return JSON.stringify(e)}function ut(t){return Array.isArray(t)?t.map(ut):function(t){return"object"==typeof t&&null!==t}(t)?Object.keys(t).sort().map((function(e){return[e,ut(t[e])]})):t}var lt=Object.assign||r.extend;function ct(t,e){var n=t.clientX,r=t.clientY,i=e.getBoundingClientRect();return{x:n-i.left,y:r-i.top}}var ft,dt=function(){function t(t){this.subscribeFunction=t}return t.prototype.subscribe=function(t){var e=new pt("object"==typeof t?t:{next:t}),n=this.subscribeFunction(e);return e.setUnsubscribeCallback("object"==typeof n?function(){return n.unsubscribe()}:n),e},t.prototype.map=function(e){var n=this;return new t((function(t){return n.subscribe({next:function(n){return t.next(e(n))},complete:function(){return t.complete()}})}))},t.prototype.filter=function(e){var n=this;return new t((function(t){return n.subscribe({next:function(n){e(n)&&t.next(n)},complete:function(){return t.complete()}})}))},t.prototype.toPromise=function(){var t=this;return new it((function(e){var n;t.subscribe({next:function(t){n=t},complete:function(){e(n)}})}))},t.prototype.takeOne=function(){var e=this;return new t((function(t){var n=e.subscribe({next:function(e){n.unsubscribe(),t.next(e),t.complete()},complete:function(){t.complete()}});return n}))},t.prototype.takeUntil=function(e){var n=this;return new t((function(t){var r,i;if((i=n.subscribe({next:function(e){t.next(e)},complete:function(){o()}})).isClosed())return function(){};function o(){t.complete(),a()}function a(){i&&i.unsubscribe(),r&&r.unsubscribe()}return r=e.subscribe({next:function(){o()},complete:function(){o()}}),a}))},t}(),pt=function(){function t(t){this.subscriber=t}return t.prototype.next=function(t){this.subscriber&&this.subscriber.next&&this.subscriber.next(t)},t.prototype.complete=function(){this.subscriber&&this.subscriber.complete&&this.subscriber.complete(),this.subscriber=void 0},t.prototype.unsubscribe=function(){this.subscriber&&(this.unsubscribeCallback&&this.unsubscribeCallback(),this.subscriber=void 0)},t.prototype.isClosed=function(){return!this.subscriber},t.prototype.setUnsubscribeCallback=function(t){this.unsubscribeCallback=t},t}(),ht=(ft=function(t,e){return(ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}ft(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),vt=function(t){function e(){var e=t.call(this,(function(t){if(e.isCompleted)return t.complete(),function(){};var n=(e.subscriberIdCounter++).toString();return e.subscribers[n]=t,function(){delete e.subscribers[n]}}))||this;return e.subscribers={},e.subscriberIdCounter=1,e.isCompleted=!1,e}return ht(e,t),e.prototype.next=function(t){var e=this;Object.keys(this.subscribers).forEach((function(n){e.subscribers[n].next(t)}))},e.prototype.complete=function(){var t=this;Object.keys(this.subscribers).forEach((function(e){return t.subscribers[e].complete()})),this.subscribers={},this.isCompleted=!0},e.prototype.subscriberCount=function(){return Object.keys(this.subscribers).length},e.prototype.isClosed=function(){return this.isCompleted},e}(dt)},1:function(t,e,n){"use strict";t.exports=n(225)},10:function(t,e,n){"use strict";n.d(e,"f",(function(){return f})),n.d(e,"e",(function(){return p})),n.d(e,"d",(function(){return h})),n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return s}));var r=n(2),i=n(3),o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&(n[r[i]]=t[r[i]])}return n},s=function(){function t(t,e){var n={};e._scrivitoPrivateSchema&&r.extend(n,e._scrivitoPrivateSchema.attributes),t.attributes&&r.each(t.attributes,(function(t,e){n[e]=function(t){if("string"==typeof t)return[t];return[t[0],l(t[1])]}(t)}));var i=t.onlyInside;this.definition=o({},t,i?{attributes:n,onlyInside:r.isArray(i)?i:[i]}:{attributes:n})}return t.forInstance=function(t){return this.forClass(t.constructor)},t.forClass=function(t){return t._scrivitoPrivateSchema},t.basicFieldFor=function(e,n){var r=t.forInstance(e);if(r){var o=r.attributes[n];if(o)return new i.BasicField(e._scrivitoPrivateContent,n,o)}},Object.defineProperty(t.prototype,"attributes",{get:function(){return this.definition.attributes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.definition.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onlyInside",{get:function(){return this.definition.onlyInside},enumerable:!0,configurable:!0}),t.prototype.isBinary=function(){var t=this.definition.attributes.blob;return!!t&&"binary"===t[0]},t}();function u(t){return!(!t||!t._scrivitoPrivateSchema)}function l(t){if(!("only"in t))return t;var e=t.only,n=a(t,["only"]);return o({},n,{validClasses:"string"==typeof e?[e]:e})}var c=n(0);function f(t,e){if(Object(r.isArray)(e))return Object(r.map)(e,(function(e){return f(t,e)}));if(e instanceof i.BasicObj)return d(e,t.objClassFor(e.objClass()));if(e instanceof i.BasicWidget){var n=e.objClass();return d(e,t.widgetClassFor(n))}if(e instanceof i.BasicLink){var o=Object.create(t.defaultClassForLinks.prototype);return o._scrivitoPrivateContent=e,o}return e}function d(t,e){var n=Object.create(e.prototype);return n._scrivitoPrivateContent=t,n}function p(t){return Object(r.isArray)(t)?Object(r.map)(t,p):t&&t._scrivitoPrivateContent?t._scrivitoPrivateContent:t}function h(t,e,n){return Object(r.mapObject)(t,(function(t,r){if(Object(c.z)(r))return[t];var i=e.attributes[r];if(!i)throw new c.a('Attribute "'+r+'" is not defined for CMS object class "'+n+'".');return[p(t),i]}))}var v=function(){function t(t){this._registry=t}return t.prototype.getObj=function(t,e){var n=i.BasicObj.get(e);return this._checkObjClassAndWrapInAppClass(t,n)},t.prototype.getObjIncludingDeleted=function(t,e){var n=i.BasicObj.getIncludingDeleted(e);return this._checkObjClassAndWrapInAppClass(t,n)},t.prototype.read=function(t,e){var n=s.basicFieldFor(t,e);if(!n)return null;var r=n.get();return f(this._registry,r)},t.prototype.update=function(t,e){var n=this._registry.objClassNameFor(t.constructor);if(!n){var r=void 0;throw r=t.constructor===this._registry.defaultClassForObjs?"Obj":"Widget",new c.a('Updating is not supported on the base class "'+r+'".')}if(e.constructor!==Object)throw new c.a("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");var i=h(e,s.forInstance(t),n);t._scrivitoPrivateContent.update(i)},t.prototype.wrapInAppClass=function(t){return f(this._registry,t)},t.prototype._checkObjClassAndWrapInAppClass=function(t,e){if(!e)return null;var n=this._registry.objClassNameFor(t);if(n&&n!==e.objClass())throw new c.h('Obj with id "'+e.id()+'" is not of type "'+n+'".');return this.wrapInAppClass(e)},t}();function m(t){return function(){function e(){}return e.prototype.id=function(){return this._scrivitoPrivateContent.id()},e.prototype.objClass=function(){return this._scrivitoPrivateContent.objClass()},e.prototype.finishSaving=function(){return this._scrivitoPrivateContent.finishSaving()},e.prototype.get=function(e){if(!Object(c.y)(e))throw new c.a("Attribute names have to be in camel case.");if(Object(c.z)(e))throw new c.a('Attribute name "'+e+'" is not a valid custom attribute name.');return t.read(this,e)},e.prototype.update=function(e){t.update(this,e)},e}()}function y(t,e,n,r){var i={};return Object.keys(n.definition.attributes).forEach((function(n){if(!Object.prototype.hasOwnProperty.call(t,n)){var o=e.initialContentFor(r,n);void 0!==o&&(i[n]=o)}})),i}var g,b=(g=function(t,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function w(t){var e=new v(t);function n(e,n){var r=new t.ObjSearch;return e&&r.and("_objClass","equals",e),n&&r._scrivitoPrivateContent.batchSize(n),r}function o(e){return f(t,e)}return function(a){function u(){return null!==a&&a.apply(this,arguments)||this}return b(u,a),u.get=function(t){return e.getObj(this,t)},u.getIncludingDeleted=function(t){return e.getObjIncludingDeleted(this,t)},u.getByPath=function(t){return o(i.BasicObj.getByPath(t))},u.getByPermalink=function(t){return o(i.BasicObj.getByPermalink(t))},u.all=function(){return n(t.objClassNameFor(this),1e3)},u.root=function(){return o(i.BasicObj.root())},u.where=function(e,r,i,o){return void 0===o&&(o=null),n(t.objClassNameFor(this)).and(e,r,i,o)},u.create=function(t){void 0===t&&(t={}),_(t,this._appClassName());var e=this._prepareAttributesForCreate(t);return o(i.BasicObj.create(e))},u.createFromFile=function(t,e){void 0===e&&(e={}),function(t){if(!c.f.is(t)){if(c.c.is(t))throw new c.a('Creating CMS objects from file is only available with instances of "File", but an instance of "Blob" is given');throw new c.a('Creating CMS objects from file is only available with instances of "File"')}}(t),function(t,e,n){if(_(t,e),Object.prototype.hasOwnProperty.call(t,"blob"))throw new c.a('Setting attribute "blob" is not allowed when creating CMS objects from file, because the file will be assigned to that attribute');if(!n.isBinary())throw new c.a('Creating CMS objects from file is only available for classes with a binary attribute "blob"')}(e,this._appClassName(),this._schema());var n=this._prepareAttributesForCreate(e);return i.BasicObj.createFromFile(t,n).then((function(t){return o(t)}))},u.prototype.lastChanged=function(){return this._scrivitoPrivateContent.lastChanged()},u.prototype.path=function(){return this._scrivitoPrivateContent.path()},u.prototype.parent=function(){return o(this._scrivitoPrivateContent.parent())},u.prototype.ancestors=function(){return o(this._scrivitoPrivateContent.ancestors())},u.prototype.backlinks=function(){return o(this._scrivitoPrivateContent.backlinks())},u.prototype.children=function(){return o(this._scrivitoPrivateContent.children())},u.prototype.orderedChildren=function(){return o(this._scrivitoPrivateContent.orderedChildren())},u.prototype.permalink=function(){return this._scrivitoPrivateContent.permalink()},u.prototype.slug=function(){return this._scrivitoPrivateContent.slug()},u.prototype.isBinary=function(){var t=s.forInstance(this);return!!t&&t.isBinary()},u.prototype.isRestricted=function(){return this._scrivitoPrivateContent.isRestricted()},u.prototype.contentLength=function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0},u.prototype.contentType=function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():""},u.prototype.contentUrl=function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():""},u.prototype.metadata=function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new i.MetadataCollection},u.prototype.restrict=function(){this._scrivitoPrivateContent.restrict()},u.prototype.unrestrict=function(){this._scrivitoPrivateContent.unrestrict()},u.prototype.widget=function(t){return o(this._scrivitoPrivateContent.widget(t))},u.prototype.widgets=function(){return o(this._scrivitoPrivateContent.widgets())},u.prototype.destroy=function(){this._scrivitoPrivateContent.destroy()},u._prepareAttributesForCreate=function(e){var n=this._schema(),i=this._appClassName(),o=y(e,t,n,i),a={_objClass:i};return h(Object(r.extend)({},e,o,a),n,i)},u._appClassName=function(){return t.objClassNameFor(this)},u._schema=function(){return s.forClass(this)},u}(m(e))}function _(t,e){if(!e)throw new c.a("Creating CMS objects is not supported for the class Obj or abstract classes.");if(t.constructor!==Object)throw new c.a("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(t._objClass)throw new c.a('Invalid attribute "_objClass". "'+t._objClass+'.create" will automatically set the CMS object class correctly.')}var O=function(){function t(t,e){this._registry=t,this._basicObjFacetValue=e}return t.prototype.name=function(){return this._basicObjFacetValue.name()},t.prototype.count=function(){return this._basicObjFacetValue.count()},t.prototype.includedObjs=function(){var t=this._basicObjFacetValue.includedObjs();return f(this._registry,t)},t}();function k(t){return r.isArray(t)?t.map((function(t){return p(t)})):p(t)}var x=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function C(t){return function(e){function n(n){void 0===n&&(n={});var r=e.call(this)||this,o=s.forInstance(r),a=t.objClassNameFor(r.constructor),u=r._prepareAttributesForConstructor(n,o,a),l=new i.BasicWidget(u);return l.onDidPersist((function(e){var n=f(t,e),r=y(u,t,o,a);n.update(r)})),r._scrivitoPrivateContent=l,r}return x(n,e),n.prototype.obj=function(){var e=this._scrivitoPrivateContent.obj();return f(t,e)},n.prototype.copy=function(){var e=t.widgetClassFor(this.objClass());return d(this._scrivitoPrivateContent.copy(),e)},n.prototype.destroy=function(){this._scrivitoPrivateContent.remove()},n.prototype._prepareAttributesForConstructor=function(t,e,n){!function(t,e){if(!t)throw new c.a("Creating widgets is not supported for the class Widget or abstract classes.");if(e.constructor!==Object)throw new c.a("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(e._objClass)throw new c.a('Invalid attribute "_objClass". "new '+e._objClass+'" will automatically set the CMS object class correctly.')}(n,t);var i={_objClass:n};return h(Object(r.extend)({},t,i),e,n)},n}(m(new v(t)))}var E=["hash","obj","query","rel","target","title","url"];function j(t){return function(t){var e=r.without.apply(r,[r.keys(t)].concat(E));if(!r.isEmpty(e))throw new c.a("Unexpected attributes "+Object(c.I)(e)+". Available attributes: "+Object(c.I)(E))}(t),r.has(t,"obj")?r.extend({},t,{objId:S(t.obj)}):t}function S(t){return t?p(t).id():null}n(140);var T=function(){function t(){var t;this.mapping={},this.defaultClassForObjs=w(this),this.defaultClassForWidgets=C(this),this.defaultClassForLinks=(t=this,function(){function e(t){var e=j(t);this._scrivitoPrivateContent=new i.BasicLink(e)}return e.prototype.title=function(){return this._scrivitoPrivateContent.title()},e.prototype.query=function(){return this._scrivitoPrivateContent.query()},e.prototype.hash=function(){return this._scrivitoPrivateContent.hash()},e.prototype.rel=function(){return this._scrivitoPrivateContent.rel()},e.prototype.target=function(){return this._scrivitoPrivateContent.target()},e.prototype.url=function(){return this._scrivitoPrivateContent.url()},e.prototype.obj=function(){var e=this._scrivitoPrivateContent.obj();return e?f(t,e):null},e.prototype.queryParameters=function(){return this._scrivitoPrivateContent.queryParameters()},e.prototype.copy=function(e){var n=this._scrivitoPrivateContent.copy(j(e)),r=Object.create(t.defaultClassForLinks.prototype);return r._scrivitoPrivateContent=n,r},e.prototype.isExternal=function(){return this._scrivitoPrivateContent.isExternal()},e.prototype.isInternal=function(){return this._scrivitoPrivateContent.isInternal()},e}()),this.ObjSearch=function(t){var e=function(){function e(){this._scrivitoPrivateContent=new i.BasicObjSearch}return e.prototype.and=function(t,n,r,i){if(t instanceof e){var o=t;this._scrivitoPrivateContent.and(o._scrivitoPrivateContent)}else{if(void 0===n)throw new c.a("Missing operator to search with");if(void 0===r)throw new c.a('Missing value to search (specify "null" for missing)');var a=k(r),s=t;this._scrivitoPrivateContent.and(s,n,a,i)}return this},e.prototype.andNot=function(t,e,n){var r=k(n);return this._scrivitoPrivateContent.andNot(t,e,r),this},e.prototype.facet=function(e,n){return this._scrivitoPrivateContent.facet(e,n).map((function(e){return new O(t,e)}))},e.prototype.first=function(){var e=this._scrivitoPrivateContent.first();return e?f(t,e):null},e.prototype.take=function(e){return this._scrivitoPrivateContent.take(e).map((function(e){return f(t,e)}))},e.prototype.toArray=function(){return this._scrivitoPrivateContent.take().map((function(e){return f(t,e)}))},e.prototype.offset=function(t){return this._scrivitoPrivateContent.offset(t),this},e.prototype.order=function(t,e){return this._scrivitoPrivateContent.order(t,e),this},e.prototype.count=function(){return this._scrivitoPrivateContent.count()},e}();if("function"==typeof Symbol){var n=Symbol.iterator;if(n)e.prototype[n]=function(){var e=this._scrivitoPrivateContent.iterator();return{next:function(){var n=e.next();return n.done?{done:n.done}:{done:n.done,value:f(t,n.value)}}}}}return e}(this)}return t.prototype.register=function(t,e){this.mapping[t]=e},t.prototype.getClass=function(t){return this.mapping[t]||null},t.prototype.allObjClasses=function(){var t=this;return r.pick(this.mapping,(function(e){return t.defaultClassForObjs.isPrototypeOf(e)}))},t.prototype.allWidgetClasses=function(){var t=this;return r.pick(this.mapping,(function(e){return t.defaultClassForWidgets.isPrototypeOf(e)}))},t.prototype.objClassFor=function(t){return this.appClassFor(t,this.defaultClassForObjs)},t.prototype.widgetClassFor=function(t){return this.appClassFor(t,this.defaultClassForWidgets)},t.prototype.objClassNameFor=function(t){return r.findKey(this.mapping,(function(e){return e===t}))},t.prototype.setInitialContentFor=function(t){this.initialContentForFunction=t},t.prototype.initialContentFor=function(t,e){if(this.initialContentForFunction)return this.initialContentForFunction(t,e)},t.prototype.appClassFor=function(t,e){var n=this.getClass(t);return n&&e.isPrototypeOf(n)?n:e},t}(),A=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function P(t,e){if(e.extend&&!D(e.extend,t.defaultClassForObjs))throw new c.a('Invalid value for "extend": not a Scrivito Obj class');var n=e.extend||t.defaultClassForObjs,r=new s(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return A(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function N(t,e){if(e.extend&&!D(e.extend,t.defaultClassForWidgets))throw new c.a('Invalid value for "extend": not a Scrivito Widget class');var n=e.extend||t.defaultClassForWidgets,r=new s(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return A(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function L(t,e,n){var i=function(t,e,n){if(u(n))return n;var i=Object(r.extend)({},n,{name:e});return P(t,i)}(t,e,n);return t.register(e,i),i}function I(t,e,n){var i=function(t,e,n){if(u(n))return n;var i=Object(r.extend)({},n,{name:e});return N(t,i)}(t,e,n);return t.register(e,i),i}function D(t,e){return!!t&&(t===e||t.prototype instanceof e)}var R=c.O.refinement(c.O.Function,u,"ObjClass"),M=c.O.interface({attributes:c.O.maybe(c.O.dict(c.O.refinement(c.O.String,(function(t){return/^[a-z](_+[A-Z0-9]|[A-Za-z0-9])*$/.test(t)}),"String (alphanumeric, starting with a lower-case character)"),c.O.union([c.O.enums.of(["binary","date","float","html","integer","link","linklist","reference","referencelist","string","stringlist","widgetlist"]),c.O.tuple([c.O.enums.of(["enum","multienum"]),c.O.interface({values:c.O.list(c.O.String)})]),c.O.tuple([c.O.enums.of(["reference","referencelist"]),c.O.interface({only:c.O.union([c.O.String,c.O.list(c.O.String)])})]),c.O.tuple([c.O.enums.of(["widgetlist"]),c.O.interface({only:c.O.union([c.O.String,c.O.list(c.O.String)])})])]),"Attributes Specification")),extend:c.O.maybe(R)}),B=c.O.refinement(c.O.Function,u,"WidgetClass"),q=c.O.interface({attributes:M.meta.props.attributes,extend:c.O.maybe(B),onlyInside:c.O.maybe(c.O.union([c.O.String,c.O.Array]))}),F=Object(c.p)("createObjClass",[["options",M]],{docPermalink:"js-sdk/createObjClass"}),z=Object(c.p)("createWidgetClass",[["options",q]],{docPermalink:"js-sdk/createWidgetClass"}),U=c.O.union([M,R]),H=Object(c.p)("provideObjClass",[["name",c.O.String],["objClassOrDefinition",U]],{docPermalink:"js-sdk/provideObjClass"}),W=c.O.union([q,B]),V=Object(c.p)("provideWidgetClass",[["name",c.O.String],["widgetClassOrDefinition",W]],{docPermalink:"js-sdk/provideWidgetClass"});var K=function(){function t(){this._registry=new T,this.appModelAccessor=new v(this._registry)}return t.init=function(e){var n=new t;return e.Obj=n.Obj,e.Widget=n.Widget,e.Link=n.Link,e.ObjSearch=n.ObjSearch,e.appModelAccessor=n.appModelAccessor,e.provideObjClass=function(t,e){return n.provideObjClass(t,e)},e.provideWidgetClass=function(t,e){return n.provideWidgetClass(t,e)},e.createObjClass=function(t){return n.createObjClass(t)},e.createWidgetClass=function(t){return n.createWidgetClass(t)},e.getClass=function(t){return n.getClass(t)},e.allObjClasses=function(){return n.allObjClasses()},e.allWidgetClasses=function(){return n.allWidgetClasses()},e._privateRealm=n,n},Object.defineProperty(t.prototype,"Obj",{get:function(){return this._registry.defaultClassForObjs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Widget",{get:function(){return this._registry.defaultClassForWidgets},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Link",{get:function(){return this._registry.defaultClassForLinks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ObjSearch",{get:function(){return this._registry.ObjSearch},enumerable:!0,configurable:!0}),t.prototype.provideObjClass=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return H.apply(void 0,[t,e].concat(n)),L(this._registry,t,e)},t.prototype.provideWidgetClass=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return V.apply(void 0,[t,e].concat(n)),I(this._registry,t,e)},t.prototype.createObjClass=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return F.apply(void 0,[t].concat(e)),P(this._registry,t)},t.prototype.createWidgetClass=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return z.apply(void 0,[t].concat(e)),N(this._registry,t)},t.prototype.getClass=function(t){return this._registry.getClass(t)},t.prototype.allObjClasses=function(){return this._registry.allObjClasses()},t.prototype.allWidgetClasses=function(){return this._registry.allWidgetClasses()},t.prototype.setInitialContentFor=function(t){this._registry.setInitialContentFor(t)},t}();e.c=K},100:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=function(t){var e=t;return e=e.replace(/^\s*/gm,""),/^\s*((|https?|s?ftp|file|blob|mailto|tel):|#|\/|data:image\/)/.test(e)?e:"unsafe:"+e}},101:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assign=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),i=0;i<e.length;i++){var o=e[i];if(null!=o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r}},102:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.preferSecond=function(t){return 0===t.length?null:t.length>=2?t[1]:t[0]},e.flatten=function t(e){return e.reduce((function(e,n){return e.concat(Array.isArray(n)?t(n):n)}),[])},e.groupConsecutiveElementsWhile=function(t,e){for(var n,r=[],i=0;i<t.length;i++)n=t[i],i>0&&e(n,t[i-1])?r[r.length-1].push(n):r.push([n]);return r.map((function(t){return 1===t.length?t[0]:t}))},e.sliceFromReverseWhile=function(t,e,n){for(var r={elements:[],sliceStartsAt:-1},i=e;i>=0&&n(t[i]);i--)r.sliceStartsAt=i,r.elements.unshift(t[i]);return r},e.intersperse=function(t,e){return t.reduce((function(n,r,i){return n.push(r),i<t.length-1&&n.push(e),n}),[])}},106:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var r,i=n(0),o=0;function a(){return r||(r=new i.e,Object(i.G)(u)),r.promise}function s(){return o+=1,t=!1,function(){if(t)throw new i.g("Unregister must not be called twice");t=!0,0==(o-=1)&&Object(i.G)(u)};var t}function u(){r&&0===o&&(r.resolve(void 0),r=void 0)}},107:function(t,e,n){t.exports=n(210)},108:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return s}));var r=n(2),i=n(7),o=0,a={};function s(t){var e=++o;a[e]=t;var n=l(),r=n.get()||[];n.set(r.concat([e]))}function u(t){var e=t.type,n=t.tag,i=l().get();if(i){var o=Object(r.find)(i,(function(t){return a[t]&&a[t].canEdit({type:e,tag:n})}));if(o)return{id:o,editorClass:a[o]}}}function l(){return i.b.subState("editors")}},109:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(32),i=n(0);function o(t,e,n){var o=Object(r.a)(t,e);if("function"==typeof o)try{return o(n)}catch(t){Object(i.Q)(t)}}},11:function(t,e,n){"use strict";var r;function i(t){return r?r.getContentStateId(t):""}function o(t){r=t}n.d(e,"g",(function(){return i})),n.d(e,"o",(function(){return o})),n.d(e,"a",(function(){return _})),n.d(e,"f",(function(){return k})),n.d(e,"b",(function(){return p})),n.d(e,"q",(function(){return m})),n.d(e,"c",(function(){return y})),n.d(e,"l",(function(){return v})),n.d(e,"i",(function(){return z})),n.d(e,"d",(function(){return q})),n.d(e,"e",(function(){return E})),n.d(e,"j",(function(){return J})),n.d(e,"p",(function(){return X})),n.d(e,"m",(function(){return I})),n.d(e,"n",(function(){return D})),n.d(e,"h",(function(){return nt})),n.d(e,"k",(function(){return ot}));var a,s=n(2),u=n.n(s),l=n(5),c=n(7),f=n(0),d=(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p="inMemory",h=!1;function v(){return h}function m(){h=!0}function y(t){if(h)throw new g(t)}var g=function(t){function e(e){return t.call(this,e+" is not supported when using the in-memory tenant")||this}return d(e,t),e}(f.i),b=n(9),w=new l.LoadableCollection({name:"facetquery",state:function(){return c.c.subState("facetQuery")},loader:function(t){var e=t[0],n=t[1];return b.e.retrieveFacetQuery(e,n)},invalidation:function(t){var e=t[0];t[1];return Object(l.loadableWithDefault)(void 0,(function(){return i(e)}))||""}}),_=function(){function t(t,e,n,r){this._requestParams=O(e,n,r),this._loadableData=w.get([t,this._requestParams])}return t.store=function(t,e,n,r,i){var o=O(e,n,r);w.get([t,o]).set(i)},t.prototype.result=function(){y("Search API");var t=this._loadableData.get();return t?t.facets[0].map((function(t){return{name:t.value,count:t.total,includedObjIds:t.results.map((function(t){return t.id}))}})):[]},t}();function O(t,e,n){var r={facets:[{attribute:t,limit:e.limit||10,include_objs:e.includeObjs||0}],size:0};return Object(s.isEmpty)(n)||(r.query=n),r}function k(t,e){var n=x(t,e);return n||(s.find(t._widget_pool,(function(t,r){if(t&&(n=x(t,e)))return n.parentWidgetId=r,!0})),n)}function x(t,e){var n;return s.find(t,(function(t,r){if(t&&!Object(f.z)(r)){var i=t;if(Object(b.h)(i)){var o=i[1];if(o){var a=o.indexOf(e);return-1!==a?(n={attributeName:r,index:a},!0):void 0}}}})),n}function C(t,e){if(!t)return e;if(!e)return null;var n={};return j(t,e,(function(r,i,o){"_widget_pool"===r?n._widget_pool=function(t,e){if(!e||u.a.isEmpty(e))return t;var n={};return j(t,e,(function(t,r,i){Object.prototype.hasOwnProperty.call(e,t)?i&&!r?n[t]=i:i&&(n[t]=C(r,i)):n[t]=r})),n}(i||{},o):Object.prototype.hasOwnProperty.call(e,r)?o&&(n[r]=o):n[r]=t[r]})),n}function E(t,e){if(!t)return e;if(!e)return null;var n={};return j(t,e,(function(t,e,r){if("_widget_pool"===t){var i=function(t,e){if(t===e)return;if(!t)return e;var n={};return j(t,e||{},(function(t,e,r){var i=T(e,r,(function(){var t=E(e,r);if(!u.a.isEmpty(t))return t}));void 0!==i&&(n[t]=i)})),n}(e,r);u.a.isEmpty(i)||(n._widget_pool=i)}else{var o=T(e,r,(function(){if(!u.a.isEqual(e,r))return r}));void 0!==o&&(n[t]=o)}})),n}function j(t,e,n){u.a.union(u.a.keys(t),u.a.keys(e)).forEach((function(r){return n(r,S(t[r]),S(e[r]))}))}function S(t){if(u.a.isArray(t)){var e=t[0],n=t[1];return"binary"===e&&n?[e,u.a.omit(n,"url")]:t}return t}function T(t,e,n){return!t&&e?e:t&&!e?null:t&&e?n():void 0}var A=function(){function t(t,e){var n=this;this._workspaceId=t,this._objId=e,this._replicationActive=!1,this._scheduledReplication=!1,this._currentRequestDeferred=null,this._nextRequestDeferred=null,this._performThrottledReplication=Object(f.P)((function(){return n._performReplication()}),1e3)}return t.prototype.start=function(){var t=this;b.e.retrieveObj(this._workspaceId,this._objId).then((function(e){Object(c.a)((function(){t.notifyBackendState(e)}))}))},t.prototype.notifyLocalState=function(t){if(!I.isDisabled()){if(void 0===this._backendState)throw new f.g("Can not set local state before backend state.");if(this._backendState&&this._backendState._deleted)throw new f.g("Can not update a fully deleted obj.");this._localState=t,this._startReplication()}},t.prototype.notifyBackendState=function(t){if(void 0===this._backendState)return this._backendState=t,void this._updateLocalState(t);if(L(t,this._bufferedBackendState||this._backendState)>0)if(this._replicationActive)this._bufferedBackendState=t;else{if(t._deleted)this._updateLocalState(null);else{var e=P(this._backendState,t);this._updateLocalState(N(this.localState,e))}this._backendState=t}},t.prototype.finishSaving=function(){var t;if(this._nextRequestDeferred)t=this._nextRequestDeferred.promise;else{if(!this._currentRequestDeferred)return f.j.resolve();t=this._currentRequestDeferred.promise}return t.catch((function(){return f.j.reject()}))},t.prototype._startReplication=function(){var t=this;u.a.isEmpty(P(this._backendState,this._localState))?this._nextRequestDeferred&&(this._nextRequestDeferred.resolve(),this._nextRequestDeferred=null):this._replicationActive?this._nextRequestDeferred||(this._nextRequestDeferred=new f.e):this._scheduledReplication||(this._scheduledReplication=!0,this._initDeferredForRequest(),I.writeStarted(this._currentRequestDeferred.promise),Object(f.G)((function(){return t._performThrottledReplication()})))},t.prototype._performReplication=function(){var t=this,e=this._localState,n=P(this._backendState,this._localState);this._scheduledReplication=!1,this._replicationActive=!0,this._replicatePatchToBackend(n).then((function(n){t._handleBackendUpdate(e,n),t._currentRequestDeferred.resolve(t._objId),t._currentRequestDeferred=null,t._replicationActive=!1,t._startReplication()}),(function(e){t._currentRequestDeferred.reject(e),t._currentRequestDeferred=null,t._replicationActive=!1}))},t.prototype._replicatePatchToBackend=function(t){if(u.a.isEmpty(t))return f.j.resolve(this._backendState);var e="workspaces/"+this._workspaceId+"/objs/"+this._objId;return b.d.put(e,{obj:t})},t.prototype._initDeferredForRequest=function(){if(this._nextRequestDeferred){var t=this._nextRequestDeferred;this._nextRequestDeferred=null,this._currentRequestDeferred=t}else this._currentRequestDeferred=new f.e},t.prototype._handleBackendUpdate=function(t,e){var n=P(t,this._localState);this._backendState=function(t,e){if(L(t,e)>0)return t;return e}(e,this._bufferedBackendState),this._bufferedBackendState=void 0,this._updateLocalState(N(this._backendState,n))},t.prototype._updateLocalState=function(t){this._localState=t,F(this._workspaceId,this._objId,this._localState)},Object.defineProperty(t.prototype,"backendState",{get:function(){return this._backendState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"localState",{get:function(){return this._localState},enumerable:!0,configurable:!0}),t.prototype.isNotStoredInBackend=function(){return null===this._backendState},t.prototype.isRequestInFlight=function(){return this._replicationActive},t}();function P(t,e){return E(t,e)}function N(t,e){return C(t,e)}function L(t,e){return t?e?function(t,e){if(t>e)return 1;if(e>t)return-1;return 0}(t._version,e._version):1:-1}var I=new(function(){function t(){this.replicationCache={},this.disabled=!1,this.writeWriteCallbacks={},this.subscriptionToken=0}return t.prototype.get=function(t,e){return this.replicationCache[t]||(this.replicationCache[t]={}),this.replicationCache[t][e]||(this.replicationCache[t][e]=new A(t,e)),this.replicationCache[t][e]},t.prototype.subscribeWrites=function(t){return this.subscriptionToken+=1,this.writeWriteCallbacks[this.subscriptionToken]=t,this.subscriptionToken},t.prototype.unsubscribeWrites=function(t){delete this.writeWriteCallbacks[t]},t.prototype.isDisabled=function(){return this.disabled},t.prototype.writeStarted=function(t){Object(s.each)(this.writeWriteCallbacks,(function(e){e(t)}))},t.prototype.disableReplication=function(){this.disabled=!0},t.prototype.enableReplication=function(){this.disabled=!1},t.prototype.clearWriteCallbacks=function(){this.writeWriteCallbacks={}},t.prototype.clearCache=function(){this.replicationCache={}},t}());function D(t){I=t}function R(){return c.m.subState("objData")}var M=new l.LoadableCollection({name:"objdata",state:R,loader:function(t){var e=t[0],n=t[1];return I.get(e,n).start(),new f.j((function(){}))}});var B=function(){function t(t,e){this._workspaceId=t,this._id=e,this._loadableData=M.get([t,e])}return t.prototype.get=function(){return Object(c.h)("for performance reasons, avoid this method when rendering"),this._loadableData.get()},t.prototype.getWidget=function(t){return Object(c.h)("for performance reasons, avoid this method when rendering"),this.getWidgetState(t).get()},t.prototype.getWidgetWithBadPerformance=function(t){return this.getWidgetState(t).get()},t.prototype.getAttribute=function(t){if("_widget_pool"===t)throw new f.g("_widget_pool is not an attribute, use getWidget or getWidgetAttribute");return this.getSubReader(t).get()},t.prototype.getWidgetAttribute=function(t,e){return this.getWidgetState(t).subState(e).get()},t.prototype.isNonExistent=function(){return!!this.getSubReader("_deleted").get()||!this.getSubReader("_id").get()},t.prototype.set=function(t){Object(c.g)("Changing CMS content"),this._loadableData.set(t)},t.prototype.setError=function(t){this._loadableData.setError(t)},t.prototype.ensureAvailable=function(){return this._loadableData.ensureAvailable()},t.prototype.isAvailable=function(){return this._loadableData.isAvailable()},t.prototype.update=function(t){var e=C(this.get(),t);this.set(e),this._replication().notifyLocalState(e)},t.prototype.finishSaving=function(){return this._replication().finishSaving()},t.prototype.workspaceId=function(){return this._workspaceId},t.prototype.equals=function(e){return e instanceof t&&(this.workspaceId()===e.workspaceId()&&this._id===e._id)},t.prototype._replication=function(){return I.get(this._workspaceId,this._id)},t.prototype.getWidgetState=function(t){return this.getSubReader("_widget_pool").subState(t)},t.prototype.getSubReader=function(t){return this._loadableData.reader().subState(t)},t}();function q(t,e){var n=U(t,e);return n.set(null),I.get(t,e).notifyBackendState(null),n}function F(t,e,n){U(t,e).set(n)}function z(t,e){var n=U(t,e);if(n.ensureAvailable())return n}function U(t,e){return new B(t,e)}var H=function(){return(H=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},W={results:[],total:0},V=new l.LoadableCollection({name:"objquery",state:function(){return tt()},loader:function(t,e,n){var r=t[0],i=t[1],o=t[2],a=e.push,s=e.isReload,u=e.wasCancelled;return function(t,e,n,r){if(r>0){var i=new K(t,e,n,r-1);return Object(l.load)((function(){return i.continuationForNextBatch()}))}return f.j.resolve()}(r,i,n,o).then((function(t){if(u())throw new Error;var e={size:n,continuation:t,include_objs:!s()},o=H({},i,e);return b.e.retrieveObjQuery(r,o).then((function(t){var e=t.objs;return e&&a((function(){return e.forEach((function(t){t._id&&I.get(r,t._id).notifyBackendState(t)}))})),function(t,e){e.forEach((function(e){return function(t,e){Object(l.load)((function(){return z(t,e)}))}(t,e)}))}(r,t.results),{results:t.results,total:t.total,continuation:t.continuation}}))}))},invalidation:function(t){var e=t[0];t[1],t[2];return Object(l.loadableWithDefault)(void 0,(function(){return i(e)}))||""}}),K=function(){function t(t,e,n,r){void 0===r&&(r=0),this._workspaceId=t,this._params=e,this._batchSize=n,this._index=r}return t.store=function(t,e,n,r){void 0===r&&(r=n.length),V.get([t,$(e),0]).set({results:n,total:r})},t.firstBatchFor=function(e,n,r){return new t(e,$(n),r)},t.countFor=function(t,e){return this.firstBatchFor(t,e,0).count()},t.prototype.objIds=function(){return this._response().results},t.prototype.count=function(){return this._response().total||0},t.prototype.nextBatch=function(){if(this.continuationForNextBatch())return new t(this._workspaceId,this._params,this._batchSize,this._index+1)},Object.defineProperty(t.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0}),t.prototype.continuationForNextBatch=function(){return this._response().continuation},t.prototype._response=function(){return this._data().get()||W},t.prototype._data=function(){return V.get([this._workspaceId,this._params,this._index],this._batchSize)},t}(),Q=K;function $(t){var e=Object(s.omit)({query:t.query,offset:t.offset,sort_by:t.sortBy,sort_order:t.sortDirection},s.isUndefined);return t.includeDeleted&&(e.options={include_deleted:!0}),e}var G=function(){function t(t,e,n){this._workspaceId=t,this._params=e,this._batchSize=n}return t.store=function(t,e,n,r){Q.store(t,e,n,r)},t.count=function(t,e){return Q.countFor(t,e)},t.prototype.iterator=function(){var t={},e=Q.firstBatchFor(this._workspaceId,this._params,this._batchSize),n=0;return{next:function r(){if(!e)return{done:!0};var i=e.objIds();if(n<i.length){var o=i[n];return n++,t[o]?r():(t[o]=!0,{value:o,done:!1})}return e=e.nextBatch(),n=0,r()}}},t}(),Y=function(){function t(t,e,n){this._workspaceId=t,this._params=e,this._batchSize=n}return t.prototype.count=function(){return G.count(this._workspaceId,this._params)},t.prototype.iterator=function(){return new Z(this._workspaceId,this._params,this._batchSize)},t}(),Z=function(){function t(t,e,n){this._workspaceId=t,this._iterator=new G(t,e,n).iterator()}return t.prototype.next=function(){if(!this._iterator)return{done:!0};var t=this._iterator.next().value;if(!t)return{done:!0};var e=z(this._workspaceId,t);return void 0===e?(this._iterator=void 0,{done:!0}):e.isNonExistent()?this.next():{value:e,done:!1}},t}();function X(t,e,n,r){G.store(t,e,n,r)}function J(t,e,n){return y("Search API"),new Y(t,e,n)}function tt(){return c.c.subState("objQuery")}var et=new l.LoadableCollection({name:"objFieldDiffs",state:function(){return c.c.subState("objFieldDiffs")},loader:function(t){var e=t[0],n=t[1];return b.e.retrieveObjFieldDiffs(e,n)},invalidation:function(t){return function(t,e){var n=z(t,e);if(n)return n.getAttribute("_version")||"";return""}(t[0],t[1])}});function nt(t,e,n,r){if("published"===t)return null;var i=function(t,e){return rt(t,e).get()||{}}(t,n);return r?function(t,e,n){var r=n._widget_pool;if(r){var i=r[e];if(i)return it(t,i)}return null}(e,r,i):it(e,i)}function rt(t,e){return et.get([t,e])}function it(t,e){var n=e[Object(f.R)(t)];return n?n[1]:null}function ot(t,e,n){var r=z("published",e),i=z(t,e);return r&&i?r.isNonExistent()&&i.isNonExistent()?null:r.isNonExistent()&&!i.isNonExistent()?"new":!r.isNonExistent()&&i.isNonExistent()?"deleted":function(t,e,n){var r=t.getWidgetWithBadPerformance(n),i=e.getWidgetWithBadPerformance(n);return r?i?function(t,e){var n=E(t,e);return Object(s.some)(Object.keys(n),(function(t){return!Object(f.z)(t)||"_obj_class"===t}))}(r,i)?"edited":null:"deleted":i?"new":null}(r,i,n):null}},110:function(t,e,n){"use strict";e.a=function(t){t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain",t.target.id)}catch(t){}}},111:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n(7),i=n(0),o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e,n){return Object(i.G)((function(){return u((function(r){r[t]={content:e,parentElementId:n}}))})),function(){return Object(i.G)((function(){return u((function(e){delete e[t]}))}))}}function s(){var t=l();return Object.keys(t).map((function(e){var n=parseInt(e,10);return o({elementId:n},t[n])}))}function u(t){var e=o({},l());t(e),c().set(e)}function l(){return c().get()||{}}function c(){return r.b.subState("contentZoneRegistry")}},112:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n(17),i=new(n(0).d),o=128;function a(t){return i.runWith(!0,t)}function s(t){if(t.isRaw()||t.isExplicitlyTransformed())return{initialUrl:t.url()};var e=function(t){return t.optimizeFor({width:o})}(t).url();if(i.current())return{initialUrl:e};var n=function(t){return t.optimizeFor({width:Object(r.j)().width*Object(r.a)()})}(t).urlWithoutPlaceholder();return n&&e!==n?{initialUrl:e,highResUrlToDecode:n}:{initialUrl:e}}},115:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r,i=n(0);function o(){return r||(r="https://assets.scrivito.com/sjs/"+Object(i.x)()),r}function a(t){if(r)throw new Error("Refusing attempt to reconfigure asset url base (again or after first access).");r=t}},117:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(5);function i(t,e,n){void 0===n&&(n=[]);var o=Object(r.runAndCatchErrorsWhileLoading)((function(){return t.next()}));if(!o.allDataLoaded)return{done:!1,objs:n};var a=o.result;return a.done||0===e?{done:a.done,objs:n}:i(t,e-1,n.concat([a.value]))}},12:function(t,e,n){var r,i,o;
1
+ /*! Copyright (c) 2022 JustRelate Group GmbH (https://scrivito.com) */!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=744)}({0:function(t,e,n){"use strict";n.d(e,"p",(function(){return p})),n.d(e,"d",(function(){return v})),n.d(e,"e",(function(){return m})),n.d(e,"a",(function(){return s.ArgumentError})),n.d(e,"g",(function(){return s.InternalError})),n.d(e,"h",(function(){return s.ResourceNotFoundError})),n.d(e,"i",(function(){return s.ScrivitoError})),n.d(e,"Q",(function(){return d})),n.d(e,"G",(function(){return f})),n.d(e,"I",(function(){return i})),n.d(e,"O",(function(){return u})),n.d(e,"M",(function(){return y})),n.d(e,"F",(function(){return b})),n.d(e,"x",(function(){return w})),n.d(e,"D",(function(){return _})),n.d(e,"E",(function(){return O})),n.d(e,"o",(function(){return N})),n.d(e,"q",(function(){return L})),n.d(e,"N",(function(){return I})),n.d(e,"R",(function(){return P})),n.d(e,"y",(function(){return A})),n.d(e,"f",(function(){return R})),n.d(e,"c",(function(){return D})),n.d(e,"z",(function(){return M})),n.d(e,"m",(function(){return B})),n.d(e,"L",(function(){return F})),n.d(e,"K",(function(){return q})),n.d(e,"P",(function(){return U})),n.d(e,"H",(function(){return $})),n.d(e,"t",(function(){return Q})),n.d(e,"u",(function(){return W})),n.d(e,"B",(function(){return K})),n.d(e,"w",(function(){return G})),n.d(e,"A",(function(){return Y})),n.d(e,"C",(function(){return V})),n.d(e,"S",(function(){return J})),n.d(e,"T",(function(){return tt})),n.d(e,"v",(function(){return et})),n.d(e,"J",(function(){return rt})),n.d(e,"j",(function(){return it})),n.d(e,"b",(function(){return at})),n.d(e,"s",(function(){return st})),n.d(e,"n",(function(){return lt})),n.d(e,"r",(function(){return ct})),n.d(e,"k",(function(){return dt})),n.d(e,"l",(function(){return vt}));var r=n(2);function i(t){try{return Object(r.isFunction)(t)?function(t){if(function(t){return!!t._scrivitoPrivateSchema}(t)){return"[class "+t._scrivitoPrivateSchema.name+"]"}if(function(t){var e=t.prototype;return e&&e.isReactComponent}(t)){return'[class React.Component "'+(t.displayName||t.name)+'"]'}return a(t.toString())}(t):Object(r.isObject)(t)?function(t){var e=t._scrivitoPrivateContent;if(e&&Object(r.isFunction)(e.toPrettyPrint))return e.toPrettyPrint();if(Object(r.isElement)(t))return"[object HTMLElement "+o(t.outerHTML)+"]";return o(t)}(t):o(t)}catch(t){return""}}function o(t){var e=JSON.stringify(t);return e?a(e):e}function a(t){return t.length>100?t.slice(0,100)+"...":t}var s=n(52),u=n(58);u.struct.strict=!0,u.interface.strict=!0,u.fail=function(t){throw new TypeError(t)};var l,c=[];function f(t){l?c.push(t):setTimeout(t,0)}function d(t){f((function(){throw t}))}function p(t,e,n){var r=n.docPermalink;return function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];try{n=h(i,e)}catch(t){d(t)}if(n){var a="Visit https://scrivito.com/"+r+" for more information.";throw new s.ArgumentError("Invalid arguments for '"+t+"': "+n+" "+a)}}}function h(t,e){var n=e.length,o=t.length;if(o>n)return"Expected "+n+" arguments, got "+o;var a=Object(r.flatten)(e.map((function(e,n){var r=e[0],o=e[1],a=t[n];return u.validate(a,o).errors.map((function(t){return function(t,e){var n=function(t,e){var n="argument '"+t+"'";if(0===e.path.length)return n;return"key '"+e.path.join("/")+"' in "+n}(t,e);if(void 0===e.actual)return"Missing required "+n+".";if(e.expected===u.Nil)return"Unexpected "+n+".";var r=u.getTypeName(e.expected),o="got "+i(e.actual)+", expected type "+r+".";return"Unexpected value for "+n+": "+o}(r,t)}))})));return a.length>0?a.join(" "):void 0}var v=function(){function t(){}return t.prototype.current=function(){return this.currentContext},t.prototype.runWith=function(t,e){var n=this.currentContext;try{return this.currentContext=t,e()}finally{this.currentContext=n}},t}(),m=function(){function t(){var t=this;this.promise=new it((function(e,n){t.resolve=function(n){t.settled=!0,e(n)},t.reject=function(e){t.settled=!0,n(e)}}))}return t.prototype.isPending=function(){return!this.settled},t}();function y(t){try{return{errorThrown:!1,result:t()}}catch(t){return{errorThrown:!0,error:t}}}var g=!1;function b(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];window&&window.console&&!g&&(t=window.console).error.apply(t,e)}function w(){var t="1.0.0.dev-1-gc831e5305284";return t}function _(t,e){void 0===e&&(e=window.document);var n=e.createElement("link");n.rel="stylesheet",n.href=t,k(e.head,n)}function O(t,e){void 0===e&&(e=window.document);var n=e.createElement("script");n.src=t,k(e.head,n)}function k(t,e){t.appendChild(e)}var x=/(_+)(\w)/g,C=/([A-Z])/g,E=/[A-Z]+|\d+/g,j=/^_?(_+[A-Z0-9]|[^_])+$/,S=/[_\s]+/g,T=/[A-Z][a-z]+/g;function A(t){return j.test(t)}function P(t){return t.replace(C,(function(t,e){return"_"+e.toLowerCase()}))}function N(t){return t.replace(x,(function(t,e,n,r){return r?n.toUpperCase()===n?t:""+e.substr(1)+n.toUpperCase():t}))}function L(t){var e=N(t);return e.charAt(0).toUpperCase()+e.slice(1)}function I(t){return t.replace(S," ").replace(T,(function(t){return" "+t.toLowerCase()})).replace(E,(function(t){return" "+t})).trim().replace(/./,(function(t){return t.toUpperCase()}))}n(136);var D=u.interface({size:u.Number,type:u.String},{name:"Blob",strict:!1}),R=D.extend({name:u.String},{name:"File",strict:!1});function M(t){return"_"===t[0]}function B(t,e){for(var n=t.iterator(),r=[];r.length!==e;){var i=n.next();if(i.done)return r;r.push(i.value)}return r}function q(){for(var t=Math.floor(Math.random()*Math.pow(16,8)).toString(16);t.length<8;)t="0"+t;return t}function F(){return q()+q()}var z=!1;function U(t,e,n){return z?t:r.throttle(t,e,n)}var H=/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/;function W(t){return"string"==typeof t&&t.match(/^-?\d+$/)||"number"==typeof t?X(t):null}function V(t){return function(t){return K(t)&&Math.floor(t)===t}(t)&&-9007199254740991<=t&&t<=9007199254740991}function K(t){return"number"==typeof t&&Object(r.isFinite)(t)}function Q(t){if("string"!=typeof t)return null;if(!Y(t))throw new s.InternalError('The value is not a valid ISO date time: "'+t+'"');return $(t)}function $(t){if(!t)return null;var e=t.match(H);if(!e)return null;var n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],u=parseInt(n,10),l=parseInt(r,10),c=parseInt(i,10),f=parseInt(o,10),d=parseInt(a,10),p=parseInt(s,10);return new Date(Date.UTC(u,l-1,c,f,d,p))}function G(t){return""+(""+t.getUTCFullYear()+Z(t.getUTCMonth()+1))+(""+Z(t.getUTCDate())+Z(t.getUTCHours()))+(""+Z(t.getUTCMinutes())+Z(t.getUTCSeconds()))}function Y(t){return"string"==typeof t&&!!t.match(/^\d{14}$/)}function Z(t){return t<10?"0"+t:t}function X(t){var e=parseInt(t.toString(),10);return 0===e?0:V(e)?e:null}function J(t){return tt(1e3*t)}function tt(t){return new it((function(e){setTimeout(e,t)}))}function et(t,e){return nt(t)&&nt(e)?t.equals(e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&Object(r.every)(Object(r.zip)(t,e),(function(t){return et(t[0],t[1])})):t&&e?t.valueOf()===e.valueOf():t===e}function nt(t){return!!t&&"function"==typeof t.equals}function rt(t,e){return t.then((function(t){return e(),t}),(function(t){throw e(),t}))}var it,ot=n(149);it="undefined"!=typeof Promise?Promise:ot.a;var at=function(){function t(t,e){var n=(void 0===e?{}:e).batchSize;this.mget=t,this.batchSize=n||100,this.itemsToBatch=[]}return t.prototype.retrieve=function(t){var e=this;0===this.itemsToBatch.length&&f((function(){return e.performRetrieval()}));var n=new m;return this.itemsToBatch.push({key:t,deferred:n}),n.promise},t.prototype.reset=function(){this.itemsToBatch=[]},t.prototype.performRetrieval=function(){var t=this,e=this.itemsToBatch.splice(0,this.batchSize);if(0!==e.length){var n=e.map((function(t){return t.key}));this.mget(n).then((function(n){e.forEach((function(e,r){var i=e.key,o=e.deferred;if(r<n.length){var a=n[r];o.resolve(a)}else t.retrieve(i).then(o.resolve,o.reject)}))}),(function(t){e.forEach((function(e){return e.deferred.reject(t)}))})),this.performRetrieval()}},t}();function st(t){var e=ut(t);return JSON.stringify(e)}function ut(t){return Array.isArray(t)?t.map(ut):function(t){return"object"==typeof t&&null!==t}(t)?Object.keys(t).sort().map((function(e){return[e,ut(t[e])]})):t}var lt=Object.assign||r.extend;function ct(t,e){var n=t.clientX,r=t.clientY,i=e.getBoundingClientRect();return{x:n-i.left,y:r-i.top}}var ft,dt=function(){function t(t){this.subscribeFunction=t}return t.prototype.subscribe=function(t){var e=new pt("object"==typeof t?t:{next:t}),n=this.subscribeFunction(e);return e.setUnsubscribeCallback("object"==typeof n?function(){return n.unsubscribe()}:n),e},t.prototype.map=function(e){var n=this;return new t((function(t){return n.subscribe({next:function(n){return t.next(e(n))},complete:function(){return t.complete()}})}))},t.prototype.filter=function(e){var n=this;return new t((function(t){return n.subscribe({next:function(n){e(n)&&t.next(n)},complete:function(){return t.complete()}})}))},t.prototype.toPromise=function(){var t=this;return new it((function(e){var n;t.subscribe({next:function(t){n=t},complete:function(){e(n)}})}))},t.prototype.takeOne=function(){var e=this;return new t((function(t){var n=e.subscribe({next:function(e){n.unsubscribe(),t.next(e),t.complete()},complete:function(){t.complete()}});return n}))},t.prototype.takeUntil=function(e){var n=this;return new t((function(t){var r,i;if((i=n.subscribe({next:function(e){t.next(e)},complete:function(){o()}})).isClosed())return function(){};function o(){t.complete(),a()}function a(){i&&i.unsubscribe(),r&&r.unsubscribe()}return r=e.subscribe({next:function(){o()},complete:function(){o()}}),a}))},t}(),pt=function(){function t(t){this.subscriber=t}return t.prototype.next=function(t){this.subscriber&&this.subscriber.next&&this.subscriber.next(t)},t.prototype.complete=function(){this.subscriber&&this.subscriber.complete&&this.subscriber.complete(),this.subscriber=void 0},t.prototype.unsubscribe=function(){this.subscriber&&(this.unsubscribeCallback&&this.unsubscribeCallback(),this.subscriber=void 0)},t.prototype.isClosed=function(){return!this.subscriber},t.prototype.setUnsubscribeCallback=function(t){this.unsubscribeCallback=t},t}(),ht=(ft=function(t,e){return(ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}ft(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),vt=function(t){function e(){var e=t.call(this,(function(t){if(e.isCompleted)return t.complete(),function(){};var n=(e.subscriberIdCounter++).toString();return e.subscribers[n]=t,function(){delete e.subscribers[n]}}))||this;return e.subscribers={},e.subscriberIdCounter=1,e.isCompleted=!1,e}return ht(e,t),e.prototype.next=function(t){var e=this;Object.keys(this.subscribers).forEach((function(n){e.subscribers[n].next(t)}))},e.prototype.complete=function(){var t=this;Object.keys(this.subscribers).forEach((function(e){return t.subscribers[e].complete()})),this.subscribers={},this.isCompleted=!0},e.prototype.subscriberCount=function(){return Object.keys(this.subscribers).length},e.prototype.isClosed=function(){return this.isCompleted},e}(dt)},1:function(t,e,n){"use strict";t.exports=n(225)},10:function(t,e,n){"use strict";n.d(e,"f",(function(){return f})),n.d(e,"e",(function(){return p})),n.d(e,"d",(function(){return h})),n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return s}));var r=n(2),i=n(3),o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&(n[r[i]]=t[r[i]])}return n},s=function(){function t(t,e){var n={};e._scrivitoPrivateSchema&&r.extend(n,e._scrivitoPrivateSchema.attributes),t.attributes&&r.each(t.attributes,(function(t,e){n[e]=function(t){if("string"==typeof t)return[t];return[t[0],l(t[1])]}(t)}));var i=t.onlyInside;this.definition=o({},t,i?{attributes:n,onlyInside:r.isArray(i)?i:[i]}:{attributes:n})}return t.forInstance=function(t){return this.forClass(t.constructor)},t.forClass=function(t){return t._scrivitoPrivateSchema},t.basicFieldFor=function(e,n){var r=t.forInstance(e);if(r){var o=r.attributes[n];if(o)return new i.BasicField(e._scrivitoPrivateContent,n,o)}},Object.defineProperty(t.prototype,"attributes",{get:function(){return this.definition.attributes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.definition.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onlyInside",{get:function(){return this.definition.onlyInside},enumerable:!0,configurable:!0}),t.prototype.isBinary=function(){var t=this.definition.attributes.blob;return!!t&&"binary"===t[0]},t}();function u(t){return!(!t||!t._scrivitoPrivateSchema)}function l(t){if(!("only"in t))return t;var e=t.only,n=a(t,["only"]);return o({},n,{validClasses:"string"==typeof e?[e]:e})}var c=n(0);function f(t,e){if(Object(r.isArray)(e))return Object(r.map)(e,(function(e){return f(t,e)}));if(e instanceof i.BasicObj)return d(e,t.objClassFor(e.objClass()));if(e instanceof i.BasicWidget){var n=e.objClass();return d(e,t.widgetClassFor(n))}if(e instanceof i.BasicLink){var o=Object.create(t.defaultClassForLinks.prototype);return o._scrivitoPrivateContent=e,o}return e}function d(t,e){var n=Object.create(e.prototype);return n._scrivitoPrivateContent=t,n}function p(t){return Object(r.isArray)(t)?Object(r.map)(t,p):t&&t._scrivitoPrivateContent?t._scrivitoPrivateContent:t}function h(t,e,n){return Object(r.mapObject)(t,(function(t,r){if(Object(c.z)(r))return[t];var i=e.attributes[r];if(!i)throw new c.a('Attribute "'+r+'" is not defined for CMS object class "'+n+'".');return[p(t),i]}))}var v=function(){function t(t){this._registry=t}return t.prototype.getObj=function(t,e){var n=i.BasicObj.get(e);return this._checkObjClassAndWrapInAppClass(t,n)},t.prototype.getObjIncludingDeleted=function(t,e){var n=i.BasicObj.getIncludingDeleted(e);return this._checkObjClassAndWrapInAppClass(t,n)},t.prototype.read=function(t,e){var n=s.basicFieldFor(t,e);if(!n)return null;var r=n.get();return f(this._registry,r)},t.prototype.update=function(t,e){var n=this._registry.objClassNameFor(t.constructor);if(!n){var r=void 0;throw r=t.constructor===this._registry.defaultClassForObjs?"Obj":"Widget",new c.a('Updating is not supported on the base class "'+r+'".')}if(e.constructor!==Object)throw new c.a("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");var i=h(e,s.forInstance(t),n);t._scrivitoPrivateContent.update(i)},t.prototype.wrapInAppClass=function(t){return f(this._registry,t)},t.prototype._checkObjClassAndWrapInAppClass=function(t,e){if(!e)return null;var n=this._registry.objClassNameFor(t);if(n&&n!==e.objClass())throw new c.h('Obj with id "'+e.id()+'" is not of type "'+n+'".');return this.wrapInAppClass(e)},t}();function m(t){return function(){function e(){}return e.prototype.id=function(){return this._scrivitoPrivateContent.id()},e.prototype.objClass=function(){return this._scrivitoPrivateContent.objClass()},e.prototype.finishSaving=function(){return this._scrivitoPrivateContent.finishSaving()},e.prototype.get=function(e){if(!Object(c.y)(e))throw new c.a("Attribute names have to be in camel case.");if(Object(c.z)(e))throw new c.a('Attribute name "'+e+'" is not a valid custom attribute name.');return t.read(this,e)},e.prototype.update=function(e){t.update(this,e)},e}()}function y(t,e,n,r){var i={};return Object.keys(n.definition.attributes).forEach((function(n){if(!Object.prototype.hasOwnProperty.call(t,n)){var o=e.initialContentFor(r,n);void 0!==o&&(i[n]=o)}})),i}var g,b=(g=function(t,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function w(t){var e=new v(t);function n(e,n){var r=new t.ObjSearch;return e&&r.and("_objClass","equals",e),n&&r._scrivitoPrivateContent.batchSize(n),r}function o(e){return f(t,e)}return function(a){function u(){return null!==a&&a.apply(this,arguments)||this}return b(u,a),u.get=function(t){return e.getObj(this,t)},u.getIncludingDeleted=function(t){return e.getObjIncludingDeleted(this,t)},u.getByPath=function(t){return o(i.BasicObj.getByPath(t))},u.getByPermalink=function(t){return o(i.BasicObj.getByPermalink(t))},u.all=function(){return n(t.objClassNameFor(this),1e3)},u.root=function(){return o(i.BasicObj.root())},u.where=function(e,r,i,o){return void 0===o&&(o=null),n(t.objClassNameFor(this)).and(e,r,i,o)},u.create=function(t){void 0===t&&(t={}),_(t,this._appClassName());var e=this._prepareAttributesForCreate(t);return o(i.BasicObj.create(e))},u.createFromFile=function(t,e){void 0===e&&(e={}),function(t){if(!c.f.is(t)){if(c.c.is(t))throw new c.a('Creating CMS objects from file is only available with instances of "File", but an instance of "Blob" is given');throw new c.a('Creating CMS objects from file is only available with instances of "File"')}}(t),function(t,e,n){if(_(t,e),Object.prototype.hasOwnProperty.call(t,"blob"))throw new c.a('Setting attribute "blob" is not allowed when creating CMS objects from file, because the file will be assigned to that attribute');if(!n.isBinary())throw new c.a('Creating CMS objects from file is only available for classes with a binary attribute "blob"')}(e,this._appClassName(),this._schema());var n=this._prepareAttributesForCreate(e);return i.BasicObj.createFromFile(t,n).then((function(t){return o(t)}))},u.prototype.lastChanged=function(){return this._scrivitoPrivateContent.lastChanged()},u.prototype.path=function(){return this._scrivitoPrivateContent.path()},u.prototype.parent=function(){return o(this._scrivitoPrivateContent.parent())},u.prototype.ancestors=function(){return o(this._scrivitoPrivateContent.ancestors())},u.prototype.backlinks=function(){return o(this._scrivitoPrivateContent.backlinks())},u.prototype.children=function(){return o(this._scrivitoPrivateContent.children())},u.prototype.orderedChildren=function(){return o(this._scrivitoPrivateContent.orderedChildren())},u.prototype.permalink=function(){return this._scrivitoPrivateContent.permalink()},u.prototype.slug=function(){return this._scrivitoPrivateContent.slug()},u.prototype.isBinary=function(){var t=s.forInstance(this);return!!t&&t.isBinary()},u.prototype.isRestricted=function(){return this._scrivitoPrivateContent.isRestricted()},u.prototype.contentLength=function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0},u.prototype.contentType=function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():""},u.prototype.contentUrl=function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():""},u.prototype.metadata=function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new i.MetadataCollection},u.prototype.restrict=function(){this._scrivitoPrivateContent.restrict()},u.prototype.unrestrict=function(){this._scrivitoPrivateContent.unrestrict()},u.prototype.widget=function(t){return o(this._scrivitoPrivateContent.widget(t))},u.prototype.widgets=function(){return o(this._scrivitoPrivateContent.widgets())},u.prototype.destroy=function(){this._scrivitoPrivateContent.destroy()},u._prepareAttributesForCreate=function(e){var n=this._schema(),i=this._appClassName(),o=y(e,t,n,i),a={_objClass:i};return h(Object(r.extend)({},e,o,a),n,i)},u._appClassName=function(){return t.objClassNameFor(this)},u._schema=function(){return s.forClass(this)},u}(m(e))}function _(t,e){if(!e)throw new c.a("Creating CMS objects is not supported for the class Obj or abstract classes.");if(t.constructor!==Object)throw new c.a("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(t._objClass)throw new c.a('Invalid attribute "_objClass". "'+t._objClass+'.create" will automatically set the CMS object class correctly.')}var O=function(){function t(t,e){this._registry=t,this._basicObjFacetValue=e}return t.prototype.name=function(){return this._basicObjFacetValue.name()},t.prototype.count=function(){return this._basicObjFacetValue.count()},t.prototype.includedObjs=function(){var t=this._basicObjFacetValue.includedObjs();return f(this._registry,t)},t}();function k(t){return r.isArray(t)?t.map((function(t){return p(t)})):p(t)}var x=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function C(t){return function(e){function n(n){void 0===n&&(n={});var r=e.call(this)||this,o=s.forInstance(r),a=t.objClassNameFor(r.constructor),u=r._prepareAttributesForConstructor(n,o,a),l=new i.BasicWidget(u);return l.onDidPersist((function(e){var n=f(t,e),r=y(u,t,o,a);n.update(r)})),r._scrivitoPrivateContent=l,r}return x(n,e),n.prototype.obj=function(){var e=this._scrivitoPrivateContent.obj();return f(t,e)},n.prototype.copy=function(){var e=t.widgetClassFor(this.objClass());return d(this._scrivitoPrivateContent.copy(),e)},n.prototype.destroy=function(){this._scrivitoPrivateContent.remove()},n.prototype._prepareAttributesForConstructor=function(t,e,n){!function(t,e){if(!t)throw new c.a("Creating widgets is not supported for the class Widget or abstract classes.");if(e.constructor!==Object)throw new c.a("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(e._objClass)throw new c.a('Invalid attribute "_objClass". "new '+e._objClass+'" will automatically set the CMS object class correctly.')}(n,t);var i={_objClass:n};return h(Object(r.extend)({},t,i),e,n)},n}(m(new v(t)))}var E=["hash","obj","query","rel","target","title","url"];function j(t){return function(t){var e=r.without.apply(r,[r.keys(t)].concat(E));if(!r.isEmpty(e))throw new c.a("Unexpected attributes "+Object(c.I)(e)+". Available attributes: "+Object(c.I)(E))}(t),r.has(t,"obj")?r.extend({},t,{objId:S(t.obj)}):t}function S(t){return t?p(t).id():null}n(140);var T=function(){function t(){var t;this.mapping={},this.defaultClassForObjs=w(this),this.defaultClassForWidgets=C(this),this.defaultClassForLinks=(t=this,function(){function e(t){var e=j(t);this._scrivitoPrivateContent=new i.BasicLink(e)}return e.prototype.title=function(){return this._scrivitoPrivateContent.title()},e.prototype.query=function(){return this._scrivitoPrivateContent.query()},e.prototype.hash=function(){return this._scrivitoPrivateContent.hash()},e.prototype.rel=function(){return this._scrivitoPrivateContent.rel()},e.prototype.target=function(){return this._scrivitoPrivateContent.target()},e.prototype.url=function(){return this._scrivitoPrivateContent.url()},e.prototype.obj=function(){var e=this._scrivitoPrivateContent.obj();return e?f(t,e):null},e.prototype.queryParameters=function(){return this._scrivitoPrivateContent.queryParameters()},e.prototype.copy=function(e){var n=this._scrivitoPrivateContent.copy(j(e)),r=Object.create(t.defaultClassForLinks.prototype);return r._scrivitoPrivateContent=n,r},e.prototype.isExternal=function(){return this._scrivitoPrivateContent.isExternal()},e.prototype.isInternal=function(){return this._scrivitoPrivateContent.isInternal()},e}()),this.ObjSearch=function(t){var e=function(){function e(){this._scrivitoPrivateContent=new i.BasicObjSearch}return e.prototype.and=function(t,n,r,i){if(t instanceof e){var o=t;this._scrivitoPrivateContent.and(o._scrivitoPrivateContent)}else{if(void 0===n)throw new c.a("Missing operator to search with");if(void 0===r)throw new c.a('Missing value to search (specify "null" for missing)');var a=k(r),s=t;this._scrivitoPrivateContent.and(s,n,a,i)}return this},e.prototype.andNot=function(t,e,n){var r=k(n);return this._scrivitoPrivateContent.andNot(t,e,r),this},e.prototype.facet=function(e,n){return this._scrivitoPrivateContent.facet(e,n).map((function(e){return new O(t,e)}))},e.prototype.first=function(){var e=this._scrivitoPrivateContent.first();return e?f(t,e):null},e.prototype.take=function(e){return this._scrivitoPrivateContent.take(e).map((function(e){return f(t,e)}))},e.prototype.toArray=function(){return this._scrivitoPrivateContent.take().map((function(e){return f(t,e)}))},e.prototype.offset=function(t){return this._scrivitoPrivateContent.offset(t),this},e.prototype.order=function(t,e){return this._scrivitoPrivateContent.order(t,e),this},e.prototype.count=function(){return this._scrivitoPrivateContent.count()},e}();if("function"==typeof Symbol){var n=Symbol.iterator;if(n)e.prototype[n]=function(){var e=this._scrivitoPrivateContent.iterator();return{next:function(){var n=e.next();return n.done?{done:n.done}:{done:n.done,value:f(t,n.value)}}}}}return e}(this)}return t.prototype.register=function(t,e){this.mapping[t]=e},t.prototype.getClass=function(t){return this.mapping[t]||null},t.prototype.allObjClasses=function(){var t=this;return r.pick(this.mapping,(function(e){return t.defaultClassForObjs.isPrototypeOf(e)}))},t.prototype.allWidgetClasses=function(){var t=this;return r.pick(this.mapping,(function(e){return t.defaultClassForWidgets.isPrototypeOf(e)}))},t.prototype.objClassFor=function(t){return this.appClassFor(t,this.defaultClassForObjs)},t.prototype.widgetClassFor=function(t){return this.appClassFor(t,this.defaultClassForWidgets)},t.prototype.objClassNameFor=function(t){return r.findKey(this.mapping,(function(e){return e===t}))},t.prototype.setInitialContentFor=function(t){this.initialContentForFunction=t},t.prototype.initialContentFor=function(t,e){if(this.initialContentForFunction)return this.initialContentForFunction(t,e)},t.prototype.appClassFor=function(t,e){var n=this.getClass(t);return n&&e.isPrototypeOf(n)?n:e},t}(),A=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function P(t,e){if(e.extend&&!D(e.extend,t.defaultClassForObjs))throw new c.a('Invalid value for "extend": not a Scrivito Obj class');var n=e.extend||t.defaultClassForObjs,r=new s(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return A(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function N(t,e){if(e.extend&&!D(e.extend,t.defaultClassForWidgets))throw new c.a('Invalid value for "extend": not a Scrivito Widget class');var n=e.extend||t.defaultClassForWidgets,r=new s(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return A(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function L(t,e,n){var i=function(t,e,n){if(u(n))return n;var i=Object(r.extend)({},n,{name:e});return P(t,i)}(t,e,n);return t.register(e,i),i}function I(t,e,n){var i=function(t,e,n){if(u(n))return n;var i=Object(r.extend)({},n,{name:e});return N(t,i)}(t,e,n);return t.register(e,i),i}function D(t,e){return!!t&&(t===e||t.prototype instanceof e)}var R=c.O.refinement(c.O.Function,u,"ObjClass"),M=c.O.interface({attributes:c.O.maybe(c.O.dict(c.O.refinement(c.O.String,(function(t){return/^[a-z](_+[A-Z0-9]|[A-Za-z0-9])*$/.test(t)}),"String (alphanumeric, starting with a lower-case character)"),c.O.union([c.O.enums.of(["binary","date","float","html","integer","link","linklist","reference","referencelist","string","stringlist","widgetlist"]),c.O.tuple([c.O.enums.of(["enum","multienum"]),c.O.interface({values:c.O.list(c.O.String)})]),c.O.tuple([c.O.enums.of(["reference","referencelist"]),c.O.interface({only:c.O.union([c.O.String,c.O.list(c.O.String)])})]),c.O.tuple([c.O.enums.of(["widgetlist"]),c.O.interface({only:c.O.union([c.O.String,c.O.list(c.O.String)])})])]),"Attributes Specification")),extend:c.O.maybe(R)}),B=c.O.refinement(c.O.Function,u,"WidgetClass"),q=c.O.interface({attributes:M.meta.props.attributes,extend:c.O.maybe(B),onlyInside:c.O.maybe(c.O.union([c.O.String,c.O.Array]))}),F=Object(c.p)("createObjClass",[["options",M]],{docPermalink:"js-sdk/createObjClass"}),z=Object(c.p)("createWidgetClass",[["options",q]],{docPermalink:"js-sdk/createWidgetClass"}),U=c.O.union([M,R]),H=Object(c.p)("provideObjClass",[["name",c.O.String],["objClassOrDefinition",U]],{docPermalink:"js-sdk/provideObjClass"}),W=c.O.union([q,B]),V=Object(c.p)("provideWidgetClass",[["name",c.O.String],["widgetClassOrDefinition",W]],{docPermalink:"js-sdk/provideWidgetClass"});var K=function(){function t(){this._registry=new T,this.appModelAccessor=new v(this._registry)}return t.init=function(e){var n=new t;return e.Obj=n.Obj,e.Widget=n.Widget,e.Link=n.Link,e.ObjSearch=n.ObjSearch,e.appModelAccessor=n.appModelAccessor,e.provideObjClass=function(t,e){return n.provideObjClass(t,e)},e.provideWidgetClass=function(t,e){return n.provideWidgetClass(t,e)},e.createObjClass=function(t){return n.createObjClass(t)},e.createWidgetClass=function(t){return n.createWidgetClass(t)},e.getClass=function(t){return n.getClass(t)},e.allObjClasses=function(){return n.allObjClasses()},e.allWidgetClasses=function(){return n.allWidgetClasses()},e._privateRealm=n,n},Object.defineProperty(t.prototype,"Obj",{get:function(){return this._registry.defaultClassForObjs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Widget",{get:function(){return this._registry.defaultClassForWidgets},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Link",{get:function(){return this._registry.defaultClassForLinks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ObjSearch",{get:function(){return this._registry.ObjSearch},enumerable:!0,configurable:!0}),t.prototype.provideObjClass=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return H.apply(void 0,[t,e].concat(n)),L(this._registry,t,e)},t.prototype.provideWidgetClass=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return V.apply(void 0,[t,e].concat(n)),I(this._registry,t,e)},t.prototype.createObjClass=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return F.apply(void 0,[t].concat(e)),P(this._registry,t)},t.prototype.createWidgetClass=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return z.apply(void 0,[t].concat(e)),N(this._registry,t)},t.prototype.getClass=function(t){return this._registry.getClass(t)},t.prototype.allObjClasses=function(){return this._registry.allObjClasses()},t.prototype.allWidgetClasses=function(){return this._registry.allWidgetClasses()},t.prototype.setInitialContentFor=function(t){this._registry.setInitialContentFor(t)},t}();e.c=K},100:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=function(t){var e=t;return e=e.replace(/^\s*/gm,""),/^\s*((|https?|s?ftp|file|blob|mailto|tel):|#|\/|data:image\/)/.test(e)?e:"unsafe:"+e}},101:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assign=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),i=0;i<e.length;i++){var o=e[i];if(null!=o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r}},102:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.preferSecond=function(t){return 0===t.length?null:t.length>=2?t[1]:t[0]},e.flatten=function t(e){return e.reduce((function(e,n){return e.concat(Array.isArray(n)?t(n):n)}),[])},e.groupConsecutiveElementsWhile=function(t,e){for(var n,r=[],i=0;i<t.length;i++)n=t[i],i>0&&e(n,t[i-1])?r[r.length-1].push(n):r.push([n]);return r.map((function(t){return 1===t.length?t[0]:t}))},e.sliceFromReverseWhile=function(t,e,n){for(var r={elements:[],sliceStartsAt:-1},i=e;i>=0&&n(t[i]);i--)r.sliceStartsAt=i,r.elements.unshift(t[i]);return r},e.intersperse=function(t,e){return t.reduce((function(n,r,i){return n.push(r),i<t.length-1&&n.push(e),n}),[])}},106:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var r,i=n(0),o=0;function a(){return r||(r=new i.e,Object(i.G)(u)),r.promise}function s(){return o+=1,t=!1,function(){if(t)throw new i.g("Unregister must not be called twice");t=!0,0==(o-=1)&&Object(i.G)(u)};var t}function u(){r&&0===o&&(r.resolve(void 0),r=void 0)}},107:function(t,e,n){t.exports=n(210)},108:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return s}));var r=n(2),i=n(7),o=0,a={};function s(t){var e=++o;a[e]=t;var n=l(),r=n.get()||[];n.set(r.concat([e]))}function u(t){var e=t.type,n=t.tag,i=l().get();if(i){var o=Object(r.find)(i,(function(t){return a[t]&&a[t].canEdit({type:e,tag:n})}));if(o)return{id:o,editorClass:a[o]}}}function l(){return i.b.subState("editors")}},109:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(32),i=n(0);function o(t,e,n){var o=Object(r.a)(t,e);if("function"==typeof o)try{return o(n)}catch(t){Object(i.Q)(t)}}},11:function(t,e,n){"use strict";var r;function i(t){return r?r.getContentStateId(t):""}function o(t){r=t}n.d(e,"g",(function(){return i})),n.d(e,"o",(function(){return o})),n.d(e,"a",(function(){return _})),n.d(e,"f",(function(){return k})),n.d(e,"b",(function(){return p})),n.d(e,"q",(function(){return m})),n.d(e,"c",(function(){return y})),n.d(e,"l",(function(){return v})),n.d(e,"i",(function(){return z})),n.d(e,"d",(function(){return q})),n.d(e,"e",(function(){return E})),n.d(e,"j",(function(){return J})),n.d(e,"p",(function(){return X})),n.d(e,"m",(function(){return I})),n.d(e,"n",(function(){return D})),n.d(e,"h",(function(){return nt})),n.d(e,"k",(function(){return ot}));var a,s=n(2),u=n.n(s),l=n(5),c=n(7),f=n(0),d=(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p="inMemory",h=!1;function v(){return h}function m(){h=!0}function y(t){if(h)throw new g(t)}var g=function(t){function e(e){return t.call(this,e+" is not supported when using the in-memory tenant")||this}return d(e,t),e}(f.i),b=n(9),w=new l.LoadableCollection({name:"facetquery",state:function(){return c.c.subState("facetQuery")},loader:function(t){var e=t[0],n=t[1];return b.e.retrieveFacetQuery(e,n)},invalidation:function(t){var e=t[0];t[1];return Object(l.loadableWithDefault)(void 0,(function(){return i(e)}))||""}}),_=function(){function t(t,e,n,r){this._requestParams=O(e,n,r),this._loadableData=w.get([t,this._requestParams])}return t.store=function(t,e,n,r,i){var o=O(e,n,r);w.get([t,o]).set(i)},t.prototype.result=function(){y("Search API");var t=this._loadableData.get();return t?t.facets[0].map((function(t){return{name:t.value,count:t.total,includedObjIds:t.results.map((function(t){return t.id}))}})):[]},t}();function O(t,e,n){var r={facets:[{attribute:t,limit:e.limit||10,include_objs:e.includeObjs||0}],size:0};return Object(s.isEmpty)(n)||(r.query=n),r}function k(t,e){var n=x(t,e);return n||(s.find(t._widget_pool,(function(t,r){if(t&&(n=x(t,e)))return n.parentWidgetId=r,!0})),n)}function x(t,e){var n;return s.find(t,(function(t,r){if(t&&!Object(f.z)(r)){var i=t;if(Object(b.h)(i)){var o=i[1];if(o){var a=o.indexOf(e);return-1!==a?(n={attributeName:r,index:a},!0):void 0}}}})),n}function C(t,e){if(!t)return e;if(!e)return null;var n={};return j(t,e,(function(r,i,o){"_widget_pool"===r?n._widget_pool=function(t,e){if(!e||u.a.isEmpty(e))return t;var n={};return j(t,e,(function(t,r,i){Object.prototype.hasOwnProperty.call(e,t)?i&&!r?n[t]=i:i&&(n[t]=C(r,i)):n[t]=r})),n}(i||{},o):Object.prototype.hasOwnProperty.call(e,r)?o&&(n[r]=o):n[r]=t[r]})),n}function E(t,e){if(!t)return e;if(!e)return null;var n={};return j(t,e,(function(t,e,r){if("_widget_pool"===t){var i=function(t,e){if(t===e)return;if(!t)return e;var n={};return j(t,e||{},(function(t,e,r){var i=T(e,r,(function(){var t=E(e,r);if(!u.a.isEmpty(t))return t}));void 0!==i&&(n[t]=i)})),n}(e,r);u.a.isEmpty(i)||(n._widget_pool=i)}else{var o=T(e,r,(function(){if(!u.a.isEqual(e,r))return r}));void 0!==o&&(n[t]=o)}})),n}function j(t,e,n){u.a.union(u.a.keys(t),u.a.keys(e)).forEach((function(r){return n(r,S(t[r]),S(e[r]))}))}function S(t){if(u.a.isArray(t)){var e=t[0],n=t[1];return"binary"===e&&n?[e,u.a.omit(n,"url")]:t}return t}function T(t,e,n){return!t&&e?e:t&&!e?null:t&&e?n():void 0}var A=function(){function t(t,e){var n=this;this._workspaceId=t,this._objId=e,this._replicationActive=!1,this._scheduledReplication=!1,this._currentRequestDeferred=null,this._nextRequestDeferred=null,this._performThrottledReplication=Object(f.P)((function(){return n._performReplication()}),1e3)}return t.prototype.start=function(){var t=this;b.e.retrieveObj(this._workspaceId,this._objId).then((function(e){Object(c.a)((function(){t.notifyBackendState(e)}))}))},t.prototype.notifyLocalState=function(t){if(!I.isDisabled()){if(void 0===this._backendState)throw new f.g("Can not set local state before backend state.");if(this._backendState&&this._backendState._deleted)throw new f.g("Can not update a fully deleted obj.");this._localState=t,this._startReplication()}},t.prototype.notifyBackendState=function(t){if(void 0===this._backendState)return this._backendState=t,void this._updateLocalState(t);if(L(t,this._bufferedBackendState||this._backendState)>0)if(this._replicationActive)this._bufferedBackendState=t;else{if(t._deleted)this._updateLocalState(null);else{var e=P(this._backendState,t);this._updateLocalState(N(this.localState,e))}this._backendState=t}},t.prototype.finishSaving=function(){var t;if(this._nextRequestDeferred)t=this._nextRequestDeferred.promise;else{if(!this._currentRequestDeferred)return f.j.resolve();t=this._currentRequestDeferred.promise}return t.catch((function(){return f.j.reject()}))},t.prototype._startReplication=function(){var t=this;u.a.isEmpty(P(this._backendState,this._localState))?this._nextRequestDeferred&&(this._nextRequestDeferred.resolve(),this._nextRequestDeferred=null):this._replicationActive?this._nextRequestDeferred||(this._nextRequestDeferred=new f.e):this._scheduledReplication||(this._scheduledReplication=!0,this._initDeferredForRequest(),I.writeStarted(this._currentRequestDeferred.promise),Object(f.G)((function(){return t._performThrottledReplication()})))},t.prototype._performReplication=function(){var t=this,e=this._localState,n=P(this._backendState,this._localState);this._scheduledReplication=!1,this._replicationActive=!0,this._replicatePatchToBackend(n).then((function(n){t._handleBackendUpdate(e,n),t._currentRequestDeferred.resolve(t._objId),t._currentRequestDeferred=null,t._replicationActive=!1,t._startReplication()}),(function(e){t._currentRequestDeferred.reject(e),t._currentRequestDeferred=null,t._replicationActive=!1}))},t.prototype._replicatePatchToBackend=function(t){if(u.a.isEmpty(t))return f.j.resolve(this._backendState);var e="workspaces/"+this._workspaceId+"/objs/"+this._objId;return b.d.put(e,{obj:t})},t.prototype._initDeferredForRequest=function(){if(this._nextRequestDeferred){var t=this._nextRequestDeferred;this._nextRequestDeferred=null,this._currentRequestDeferred=t}else this._currentRequestDeferred=new f.e},t.prototype._handleBackendUpdate=function(t,e){var n=P(t,this._localState);this._backendState=function(t,e){if(L(t,e)>0)return t;return e}(e,this._bufferedBackendState),this._bufferedBackendState=void 0,this._updateLocalState(N(this._backendState,n))},t.prototype._updateLocalState=function(t){this._localState=t,F(this._workspaceId,this._objId,this._localState)},Object.defineProperty(t.prototype,"backendState",{get:function(){return this._backendState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"localState",{get:function(){return this._localState},enumerable:!0,configurable:!0}),t.prototype.isNotStoredInBackend=function(){return null===this._backendState},t.prototype.isRequestInFlight=function(){return this._replicationActive},t}();function P(t,e){return E(t,e)}function N(t,e){return C(t,e)}function L(t,e){return t?e?function(t,e){if(t>e)return 1;if(e>t)return-1;return 0}(t._version,e._version):1:-1}var I=new(function(){function t(){this.replicationCache={},this.disabled=!1,this.writeWriteCallbacks={},this.subscriptionToken=0}return t.prototype.get=function(t,e){return this.replicationCache[t]||(this.replicationCache[t]={}),this.replicationCache[t][e]||(this.replicationCache[t][e]=new A(t,e)),this.replicationCache[t][e]},t.prototype.subscribeWrites=function(t){return this.subscriptionToken+=1,this.writeWriteCallbacks[this.subscriptionToken]=t,this.subscriptionToken},t.prototype.unsubscribeWrites=function(t){delete this.writeWriteCallbacks[t]},t.prototype.isDisabled=function(){return this.disabled},t.prototype.writeStarted=function(t){Object(s.each)(this.writeWriteCallbacks,(function(e){e(t)}))},t.prototype.disableReplication=function(){this.disabled=!0},t.prototype.enableReplication=function(){this.disabled=!1},t.prototype.clearWriteCallbacks=function(){this.writeWriteCallbacks={}},t.prototype.clearCache=function(){this.replicationCache={}},t}());function D(t){I=t}function R(){return c.m.subState("objData")}var M=new l.LoadableCollection({name:"objdata",state:R,loader:function(t){var e=t[0],n=t[1];return I.get(e,n).start(),new f.j((function(){}))}});var B=function(){function t(t,e){this._workspaceId=t,this._id=e,this._loadableData=M.get([t,e])}return t.prototype.get=function(){return Object(c.h)("for performance reasons, avoid this method when rendering"),this._loadableData.get()},t.prototype.getWidget=function(t){return Object(c.h)("for performance reasons, avoid this method when rendering"),this.getWidgetState(t).get()},t.prototype.getWidgetWithBadPerformance=function(t){return this.getWidgetState(t).get()},t.prototype.getAttribute=function(t){if("_widget_pool"===t)throw new f.g("_widget_pool is not an attribute, use getWidget or getWidgetAttribute");return this.getSubReader(t).get()},t.prototype.getWidgetAttribute=function(t,e){return this.getWidgetState(t).subState(e).get()},t.prototype.isNonExistent=function(){return!!this.getSubReader("_deleted").get()||!this.getSubReader("_id").get()},t.prototype.set=function(t){Object(c.g)("Changing CMS content"),this._loadableData.set(t)},t.prototype.setError=function(t){this._loadableData.setError(t)},t.prototype.ensureAvailable=function(){return this._loadableData.ensureAvailable()},t.prototype.isAvailable=function(){return this._loadableData.isAvailable()},t.prototype.update=function(t){var e=C(this.get(),t);this.set(e),this._replication().notifyLocalState(e)},t.prototype.finishSaving=function(){return this._replication().finishSaving()},t.prototype.workspaceId=function(){return this._workspaceId},t.prototype.equals=function(e){return e instanceof t&&(this.workspaceId()===e.workspaceId()&&this._id===e._id)},t.prototype._replication=function(){return I.get(this._workspaceId,this._id)},t.prototype.getWidgetState=function(t){return this.getSubReader("_widget_pool").subState(t)},t.prototype.getSubReader=function(t){return this._loadableData.reader().subState(t)},t}();function q(t,e){var n=U(t,e);return n.set(null),I.get(t,e).notifyBackendState(null),n}function F(t,e,n){U(t,e).set(n)}function z(t,e){var n=U(t,e);if(n.ensureAvailable())return n}function U(t,e){return new B(t,e)}var H=function(){return(H=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},W={results:[],total:0},V=new l.LoadableCollection({name:"objquery",state:function(){return tt()},loader:function(t,e,n){var r=t[0],i=t[1],o=t[2],a=e.push,s=e.isReload,u=e.wasCancelled;return function(t,e,n,r){if(r>0){var i=new K(t,e,n,r-1);return Object(l.load)((function(){return i.continuationForNextBatch()}))}return f.j.resolve()}(r,i,n,o).then((function(t){if(u())throw new Error;var e={size:n,continuation:t,include_objs:!s()},o=H({},i,e);return b.e.retrieveObjQuery(r,o).then((function(t){var e=t.objs;return e&&a((function(){return e.forEach((function(t){t._id&&I.get(r,t._id).notifyBackendState(t)}))})),function(t,e){e.forEach((function(e){return function(t,e){Object(l.load)((function(){return z(t,e)}))}(t,e)}))}(r,t.results),{results:t.results,total:t.total,continuation:t.continuation}}))}))},invalidation:function(t){var e=t[0];t[1],t[2];return Object(l.loadableWithDefault)(void 0,(function(){return i(e)}))||""}}),K=function(){function t(t,e,n,r){void 0===r&&(r=0),this._workspaceId=t,this._params=e,this._batchSize=n,this._index=r}return t.store=function(t,e,n,r){void 0===r&&(r=n.length),V.get([t,$(e),0]).set({results:n,total:r})},t.firstBatchFor=function(e,n,r){return new t(e,$(n),r)},t.countFor=function(t,e){return this.firstBatchFor(t,e,0).count()},t.prototype.objIds=function(){return this._response().results},t.prototype.count=function(){return this._response().total||0},t.prototype.nextBatch=function(){if(this.continuationForNextBatch())return new t(this._workspaceId,this._params,this._batchSize,this._index+1)},Object.defineProperty(t.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0}),t.prototype.continuationForNextBatch=function(){return this._response().continuation},t.prototype._response=function(){return this._data().get()||W},t.prototype._data=function(){return V.get([this._workspaceId,this._params,this._index],this._batchSize)},t}(),Q=K;function $(t){var e=Object(s.omit)({query:t.query,offset:t.offset,sort_by:t.sortBy,sort_order:t.sortDirection},s.isUndefined);return t.includeDeleted&&(e.options={include_deleted:!0}),e}var G=function(){function t(t,e,n){this._workspaceId=t,this._params=e,this._batchSize=n}return t.store=function(t,e,n,r){Q.store(t,e,n,r)},t.count=function(t,e){return Q.countFor(t,e)},t.prototype.iterator=function(){var t={},e=Q.firstBatchFor(this._workspaceId,this._params,this._batchSize),n=0;return{next:function r(){if(!e)return{done:!0};var i=e.objIds();if(n<i.length){var o=i[n];return n++,t[o]?r():(t[o]=!0,{value:o,done:!1})}return e=e.nextBatch(),n=0,r()}}},t}(),Y=function(){function t(t,e,n){this._workspaceId=t,this._params=e,this._batchSize=n}return t.prototype.count=function(){return G.count(this._workspaceId,this._params)},t.prototype.iterator=function(){return new Z(this._workspaceId,this._params,this._batchSize)},t}(),Z=function(){function t(t,e,n){this._workspaceId=t,this._iterator=new G(t,e,n).iterator()}return t.prototype.next=function(){if(!this._iterator)return{done:!0};var t=this._iterator.next().value;if(!t)return{done:!0};var e=z(this._workspaceId,t);return void 0===e?(this._iterator=void 0,{done:!0}):e.isNonExistent()?this.next():{value:e,done:!1}},t}();function X(t,e,n,r){G.store(t,e,n,r)}function J(t,e,n){return y("Search API"),new Y(t,e,n)}function tt(){return c.c.subState("objQuery")}var et=new l.LoadableCollection({name:"objFieldDiffs",state:function(){return c.c.subState("objFieldDiffs")},loader:function(t){var e=t[0],n=t[1];return b.e.retrieveObjFieldDiffs(e,n)},invalidation:function(t){return function(t,e){var n=z(t,e);if(n)return n.getAttribute("_version")||"";return""}(t[0],t[1])}});function nt(t,e,n,r){if("published"===t)return null;var i=function(t,e){return rt(t,e).get()||{}}(t,n);return r?function(t,e,n){var r=n._widget_pool;if(r){var i=r[e];if(i)return it(t,i)}return null}(e,r,i):it(e,i)}function rt(t,e){return et.get([t,e])}function it(t,e){var n=e[Object(f.R)(t)];return n?n[1]:null}function ot(t,e,n){var r=z("published",e),i=z(t,e);return r&&i?r.isNonExistent()&&i.isNonExistent()?null:r.isNonExistent()&&!i.isNonExistent()?"new":!r.isNonExistent()&&i.isNonExistent()?"deleted":function(t,e,n){var r=t.getWidgetWithBadPerformance(n),i=e.getWidgetWithBadPerformance(n);return r?i?function(t,e){var n=E(t,e);return Object(s.some)(Object.keys(n),(function(t){return!Object(f.z)(t)||"_obj_class"===t}))}(r,i)?"edited":null:"deleted":i?"new":null}(r,i,n):null}},110:function(t,e,n){"use strict";e.a=function(t){t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain",t.target.id)}catch(t){}}},111:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n(7),i=n(0),o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e,n){return Object(i.G)((function(){return u((function(r){r[t]={content:e,parentElementId:n}}))})),function(){return Object(i.G)((function(){return u((function(e){delete e[t]}))}))}}function s(){var t=l();return Object.keys(t).map((function(e){var n=parseInt(e,10);return o({elementId:n},t[n])}))}function u(t){var e=o({},l());t(e),c().set(e)}function l(){return c().get()||{}}function c(){return r.b.subState("contentZoneRegistry")}},112:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n(17),i=new(n(0).d),o=128;function a(t){return i.runWith(!0,t)}function s(t){if(t.isRaw()||t.isExplicitlyTransformed())return{initialUrl:t.url()};var e=function(t){return t.optimizeFor({width:o})}(t).url();if(i.current())return{initialUrl:e};var n=function(t){return t.optimizeFor({width:Object(r.j)().width*Object(r.a)()})}(t).urlWithoutPlaceholder();return n&&e!==n?{initialUrl:e,highResUrlToDecode:n}:{initialUrl:e}}},115:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r,i=n(0);function o(){return r||(r="https://assets.scrivito.com/sjs/"+Object(i.x)()),r}function a(t){if(r)throw new Error("Refusing attempt to reconfigure asset url base (again or after first access).");r=t}},117:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(5);function i(t,e,n){void 0===n&&(n=[]);var o=Object(r.runAndCatchErrorsWhileLoading)((function(){return t.next()}));if(!o.allDataLoaded)return{done:!1,objs:n};var a=o.result;return a.done||0===e?{done:a.done,objs:n}:i(t,e-1,n.concat([a.value]))}},12:function(t,e,n){var r,i,o;
2
2
  /*!
3
3
  * URI.js - Mutating URLs
4
4
  *